/* ============================================
   KIM-STYLE CREATIVE PORTFOLIO — DESIGN SYSTEM
   Minimal • Editorial • Confident • Spacious
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Typography */
  --font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Colors — dark base so TV static reads as dark charcoal grain (reference look) */
  --color-bg: #1a1a1a;
  --color-bg-alt: #252525;
  --color-bg-hero: #161616;
  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --color-accent: #e0e0e0;
  --color-form-accent: #c41e3a;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;
  --section-padding: 120px;
  
  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
  --duration-fast: 0.3s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

/* --- Full-viewport TV static noise (GSAP-driven; dark charcoal grain) --- */
.tv-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  filter: url(#tvNoise);
  background: #0b0b0b;
  mix-blend-mode: overlay;
  transform: translateZ(0);
}

.noise-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Keep page content above the noise layer (nav keeps its own position/z-index) */
body > .hero-wrapper,
body > .about-block-wrapper,
body > .billboard,
body > section,
body > footer,
body > main {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

a:hover {
  opacity: 0.7;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  max-width: 60ch;
  color: var(--color-text-muted);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* When hero is not in view, show dark nav */
.nav.scrolled {
  mix-blend-mode: normal;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ============================================
   HERO SECTION — Kim template: split KIM + image strip, open on scroll
   ============================================ */
.hero-wrapper {
  position: relative;
  height: 300vh; /* Extra scroll so hero opens fully before you can scroll past */
}

.hero {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-hero);
  color: var(--color-text);
}

/* Split layout: top text | image strip | bottom text — heights driven by --hero-top, --hero-strip, --hero-bottom (percent of 100) */
.hero-split-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Top section: shows only the TOP part of the word via clip wrapper */
.hero-text-top {
  flex: 0 0 calc(var(--hero-top, 50) * 1vh);
  min-height: 0;
  overflow: hidden;
}

/* Bottom section: shows only the BOTTOM part of the word via clip wrapper */
.hero-text-bottom {
  flex: 0 0 calc(var(--hero-bottom, 50) * 1vh);
  min-height: 0;
  overflow: hidden;
}

/* Full-height wrapper so the span sits in one shared coordinate system; section overflow clips it */
.hero-name-clip {
  position: relative;
  height: 100vh;
  width: 100%;
}

.hero-name-clip-bottom {
  position: relative;
  top: calc(-1 * (var(--hero-top, 50) + var(--hero-strip, 0)) * 1vh);
}

/* Single word, same position in both clips — eliminates double vision */
.hero-name-split {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: max(5rem, 85vh);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #c41e3a;
  white-space: nowrap;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.hero-text-top .hero-name-split {
  top: 0;
}

/* Push bottom half up so it meets the top half with no gap (blends at the cut) */
.hero-text-bottom .hero-name-split {
  bottom: 0;
  top: auto;
  transform: translate(-50%, -0.28em);
}

.hero-image-strip {
  flex: 0 0 calc(var(--hero-strip, 0) * 1vh);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hero-image-strip img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.hero-subtitle-hero {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  z-index: 2;
}

.hero-social {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  z-index: 3;
}

.hero-social a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.9;
}

/* Nav over pale hero: dark text */
.hero-split ~ .nav .nav-inner,
body:has(.hero-split) .nav:not(.scrolled) {
  color: var(--color-text);
}
body:has(.hero-split) .nav:not(.scrolled) {
  mix-blend-mode: normal;
  background: transparent;
}

/* Mobile: single column, softer split (strip stays smaller) */
@media (max-width: 768px) {
  .hero-name-split {
    font-size: max(4rem, 75vh);
  }
  
  .hero-subtitle-hero {
    bottom: var(--space-lg);
  }
  
  .hero-social {
    left: var(--space-md);
    bottom: var(--space-md);
  }
  
  .page-about,
  .page-contact {
    padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
  }
  
  .project-hero {
    padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-xl);
  }
  
  .project-gallery {
    padding: 0 var(--space-md);
  }
  
  .nav {
    mix-blend-mode: normal;
    color: var(--color-text);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
  }
}

/* ============================================
   ABOUT BLOCK — Pinned scroll hero: poster-scale type, scrubbed timeline
   ============================================ */
.about-block-wrapper {
  position: relative;
  height: 250vh;
}

.about-block {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--section-padding) var(--space-lg) var(--space-lg) var(--space-lg);
  background: var(--color-bg-hero);
  overflow: hidden;
  transform: translateY(var(--about-release-y, 0));
  opacity: var(--about-release-opacity, 1);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-block-type-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

/* Start: top line only end of "parent" on left; bottom line off right. JS reveals on scroll */
.about-block {
  --about-x1: -3600px;
  --about-x2: 1200px;
}

/* Parallax tint: moves slower than text for depth */
.about-block-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 22, 22, 0.6) 0%, transparent 40%, transparent 60%, rgba(22, 22, 22, 0.5) 100%);
  transform: translateX(var(--about-bg-x, 0));
  will-change: transform;
}

.about-block-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
}

/* Poster-scale typography: exceeds viewport, cropped by hero overflow */
.about-block-type {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 28vw, 22rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #c41e3a;
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform;
}

.about-block-type-1 {
  margin-bottom: 0.02em;
  transform: rotate(-3deg) translate(var(--about-x1, 0), var(--about-y1, 0));
}

.about-block-type-2 {
  transform: rotate(-2deg) translate(var(--about-x2, 0), var(--about-y2, 0));
}

.about-block-content {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  width: 75vw;
  max-width: 75%;
  box-sizing: border-box;
  padding: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.about-block-content.reveal-block {
  transition-delay: 0.25s;
}

.about-block-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.about-block-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.about-block-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: none;
}

.about-block-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  display: inline-block;
}

.about-block-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .about-block-wrapper {
    height: auto;
  }
  .about-block {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-md);
  }
  .about-block-content {
    width: 100%;
    max-width: 100%;
  }
  .about-block-bg {
    padding-left: 0;
  }
  .about-block-type {
    font-size: clamp(2.5rem, 14vw, 6rem);
  }
  /* Mobile: reduced horizontal travel + subtle motion (JS uses smaller xMax); keep cropped impact */
  .about-block-type-1 {
    transform: rotate(-3deg) translate(var(--about-x1, 0), var(--about-y1, 0));
  }
  .about-block-type-2 {
    transform: rotate(-2deg) translate(var(--about-x2, 0), var(--about-y2, 0));
  }
}

/* ============================================
   BILLBOARD — Two rows auto-scroll (top L→R, bottom R→L)
   ============================================ */
.billboard {
  padding: 100px 0 120px;
  background: var(--color-bg);
  overflow: hidden;
}

.billboard-inner {
  width: 100%;
}

.billboard-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding: 0 var(--space-lg);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.billboard-row {
  overflow: hidden;
  margin-bottom: 32px;
}

.billboard-row:last-child {
  margin-bottom: 0;
}

.billboard-track {
  display: flex;
  width: 200%;
  will-change: transform;
}

/* Top row: content scrolls left → right (track moves right) */
.billboard-row-top .billboard-track {
  animation: billboardScrollLeftToRight 45s linear infinite;
}

/* Bottom row: content scrolls right → left (track moves left) */
.billboard-row-bottom .billboard-track {
  animation: billboardScrollRightToLeft 45s linear infinite;
}

@keyframes billboardScrollLeftToRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes billboardScrollRightToLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.billboard-set {
  display: flex;
  gap: 32px;
  padding: 0 24px;
  flex-shrink: 0;
  width: 50%;
  box-sizing: border-box;
}

.billboard-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 30px 40px -16px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

@media (hover: hover) {
  .billboard-card:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 50px -20px rgba(0, 0, 0, 0.45);
  }
}

.billboard-card-link {
  display: block;
  color: inherit;
}

.billboard-card-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9/16;
  margin-bottom: 12px;
  background: #333;
}

.billboard-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.billboard-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .billboard {
    padding: 48px 0 64px;
  }
  .billboard-label {
    padding: 0 var(--space-md);
  }
  .billboard-set {
    gap: 24px;
    padding: 0 16px;
  }
  .billboard-card {
    width: 260px;
  }
  .billboard-row-top .billboard-track {
    animation-duration: 40s;
  }
  .billboard-row-bottom .billboard-track {
    animation-duration: 40s;
  }
}

/* ============================================
   BRAND COLLABS / SPONSORSHIPS — scroll R→L
   ============================================ */
.brands {
  padding: 64px 0 80px;
  background: var(--color-bg);
  overflow: hidden;
}

.brands-inner {
  width: 100%;
}

.brands-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding: 0 var(--space-lg);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.brands-row {
  overflow: hidden;
}

.brands-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: brandsScrollRightToLeft 35s linear infinite;
}

@keyframes brandsScrollRightToLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brands-set {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  padding: 0 24px;
  flex-shrink: 0;
  width: max-content;
  box-sizing: border-box;
}

.brand-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  transition: opacity 0.2s ease;
}

.brand-item:hover {
  opacity: 0.85;
}

.brand-item img {
  display: block;
  max-height: 132px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .brands {
    padding: 48px 0 64px;
  }
  .brands-label {
    padding: 0 var(--space-md);
  }
  .brands-set {
    gap: 24px;
    padding: 0 16px;
  }
  .brand-item {
    padding: 12px 16px;
  }
  .brand-item img {
    max-height: 88px;
    max-width: 240px;
  }
  .brands-track {
    animation-duration: 30s;
  }
}

/* ============================================
   WORKS SECTION — Elevated cards, scroll reveal, soft hover
   ============================================ */
.works {
  padding: 120px var(--space-lg);
  background: var(--color-bg);
}

.works .container {
  max-width: 1400px;
  margin: 0 auto;
}

.works-title {
  margin-bottom: var(--space-xxl);
  padding-left: var(--space-md);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .works {
    padding: 80px var(--space-md);
  }
  .works-title {
    padding-left: 0;
    margin-bottom: var(--space-xl);
  }
}

/* Card: rounded, soft inner bg, ambient shadow; initial state for scroll reveal */
.work-card {
  background: var(--color-bg-alt);
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 40px 50px -20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}

/* Desktop 3-col: left col from -60px, middle -30px, right +60px; stagger L→R per row */
@media (min-width: 1024px) {
  .works.works-in-view .work-card:nth-child(3n+1) {
    animation: workRevealLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(3n+2) {
    animation: workRevealMiddle 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(3n) {
    animation: workRevealRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(1) { animation-delay: 0ms; }
  .works.works-in-view .work-card:nth-child(2) { animation-delay: 100ms; }
  .works.works-in-view .work-card:nth-child(3) { animation-delay: 200ms; }
  .works.works-in-view .work-card:nth-child(4) { animation-delay: 300ms; }
  .works.works-in-view .work-card:nth-child(5) { animation-delay: 400ms; }
  .works.works-in-view .work-card:nth-child(6) { animation-delay: 500ms; }
}

@keyframes workRevealLeft {
  from { opacity: 0; transform: translateX(-60px) translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

@keyframes workRevealMiddle {
  from { opacity: 0; transform: translateX(-30px) translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

@keyframes workRevealRight {
  from { opacity: 0; transform: translateX(60px) translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

/* Tablet 2-col: left from -60px, right from +60px; stagger */
@media (min-width: 768px) and (max-width: 1023px) {
  .works.works-in-view .work-card:nth-child(odd) {
    animation: workRevealLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(even) {
    animation: workRevealRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(1) { animation-delay: 0ms; }
  .works.works-in-view .work-card:nth-child(2) { animation-delay: 100ms; }
  .works.works-in-view .work-card:nth-child(3) { animation-delay: 200ms; }
  .works.works-in-view .work-card:nth-child(4) { animation-delay: 300ms; }
  .works.works-in-view .work-card:nth-child(5) { animation-delay: 400ms; }
  .works.works-in-view .work-card:nth-child(6) { animation-delay: 500ms; }
}

/* Mobile 1-col: reduced offset ±35px, translateY 30px; alternate left/right; tighter stagger */
@media (max-width: 767px) {
  .work-card {
    transform: translateY(30px) scale(0.97);
  }
  .works.works-in-view .work-card:nth-child(odd) {
    animation: workRevealMobileLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(even) {
    animation: workRevealMobileRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .works.works-in-view .work-card:nth-child(1) { animation-delay: 0ms; }
  .works.works-in-view .work-card:nth-child(2) { animation-delay: 80ms; }
  .works.works-in-view .work-card:nth-child(3) { animation-delay: 160ms; }
  .works.works-in-view .work-card:nth-child(4) { animation-delay: 240ms; }
  .works.works-in-view .work-card:nth-child(5) { animation-delay: 320ms; }
  .works.works-in-view .work-card:nth-child(6) { animation-delay: 400ms; }
}

@keyframes workRevealMobileLeft {
  from { opacity: 0; transform: translateX(-35px) translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

@keyframes workRevealMobileRight {
  from { opacity: 0; transform: translateX(35px) translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

/* Hover: scale + deeper shadow + subtle brightness (desktop) */
@media (hover: hover) {
  .work-card:hover {
    transform: scale(1.03);
    box-shadow: 0 50px 60px -24px rgba(0, 0, 0, 0.5);
  }
  .work-card:hover .work-card-image-wrap img {
    filter: brightness(1.04);
  }
}

.work-card-link {
  display: block;
  color: inherit;
}

.work-card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4/3;
  margin-bottom: var(--space-md);
  background: #333;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.4);
}

.work-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease-out;
}

.work-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.work-card-year {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-about {
  min-height: 100vh;
  padding: var(--section-padding) var(--space-lg);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.about-content h1 {
  margin-bottom: var(--space-lg);
}

.about-content .bio {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

.about-content .bio p {
  margin-bottom: 1.25em;
}

.about-content .bio p:last-child {
  margin-bottom: 0;
}

.about-skills h3 {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about-skills ul {
  list-style: none;
}

.about-skills li {
  padding: var(--space-xs) 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about-portrait {
  position: sticky;
  top: 120px;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.reveal-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-page {
  min-height: 100vh;
  padding-bottom: var(--section-padding);
}

.project-hero {
  width: 100%;
  padding: calc(80px + 6rem) var(--space-lg) var(--space-xxl);
  max-width: 1400px;
  margin: 0 auto;
}

.project-hero-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  background: var(--color-accent);
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1s var(--ease-out);
}

.project-hero-image.visible img {
  transform: scale(1);
}

.project-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-description {
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-xxl);
}

.project-gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.project-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-gallery .gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.project-gallery .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.page-contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding) var(--space-lg);
  text-align: left;
}

.contact-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-social a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-inner .reveal-block {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.contact-inner .reveal-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Two-column contact box: image left, form right */
.contact-box {
  width: 100%;
}

.contact-box-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.contact-box-image-col {
  position: relative;
}

.contact-box-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5);
  aspect-ratio: 3 / 4;
}

.contact-box-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-box-hand-icon {
  position: absolute;
  left: -8px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-form-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-box-form-col {
  min-width: 0;
}

.contact-box-title {
  margin-bottom: var(--space-sm);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-box-social {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-box-social > a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Form row: Name + Email side by side on desktop */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Contact form: dark inputs, rounded, lime accent */
.contact-form-section {
  margin-top: var(--space-xxl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-form-intro {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-form-accent);
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.25);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-submit {
  margin-top: var(--space-sm);
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-form-accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.contact-form-submit:hover {
  background: #d62d42;
}

.contact-form-submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.5);
}

@media (max-width: 768px) {
  .contact-box-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .contact-box-image-col {
    order: 1;
    max-width: 280px;
    margin: 0 auto;
  }
  .contact-box-form-col {
    order: 2;
  }
  .contact-box-hand-icon {
    left: 12px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 0.8rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Home page: contact form block before footer */
.contact-form-block {
  padding: var(--section-padding) var(--space-lg);
  background: var(--color-bg);
}

.contact-form-block .contact-box-home {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-block .contact-form-intro {
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .contact-form-block {
    padding: var(--space-xl) var(--space-md);
  }
}

/* ============================================
   FOOTER (optional, minimal)
   ============================================ */
.footer {
  padding: var(--space-lg) var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   FASHION UGC VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: #111;
  flex-shrink: 0;
}

.video-modal-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.video-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.video-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  flex: 1;
  min-height: 280px;
}

.video-modal-player {
  width: 100%;
  height: 100%;
  display: block;
  max-height: 60vh;
}

.video-modal-next {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.video-modal-next:hover {
  background: rgba(0, 0, 0, 0.85);
}

.video-modal-progress {
  display: flex;
  gap: 6px;
  margin-top: var(--space-sm);
  justify-content: center;
}

.video-modal-segment {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}

.video-modal-segment[aria-current="true"] {
  background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
