/* ================================================================
   JB BRANDHOUSE — Main Stylesheet
   Design system · Base · Components · Layout · Pages · Motion
   ================================================================ */


/* ----------------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------------- */

:root {

  /* — Colors — */
  --color-bg:           #F7F5F0;
  --color-surface:      #FFFFFF;
  --color-surface-alt:  #EFECE6;
  --color-ink:          #0E0E0E;
  --color-ink-mid:      rgba(14, 14, 14, 0.52);
  --color-ink-faint:    rgba(14, 14, 14, 0.22);
  --color-ink-ghost:    rgba(14, 14, 14, 0.08);
  --color-accent:       #0000FF;
  --color-accent-warm:  #C2A070;
  --color-white:        #FFFFFF;
  --color-border:       rgba(14, 14, 14, 0.11);
  --color-border-mid:   rgba(14, 14, 14, 0.22);

  /* Dark variants (for dark sections) */
  --color-dark-bg:      #0000FF;
  --color-dark-surface: #0000CC;
  --color-dark-ink:     #F7F5F0;
  --color-dark-mid:     rgba(247, 245, 240, 0.50);
  --color-dark-faint:   rgba(247, 245, 240, 0.20);
  --color-dark-border:  rgba(247, 245, 240, 0.12);

  /* — Typography — */
  --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;

  --text-display:  clamp(3.25rem, 7.5vw, 9rem);
  --text-h1:       clamp(2.5rem, 5vw, 6.5rem);
  --text-h2:       clamp(1.875rem, 3.25vw, 4rem);
  --text-h3:       clamp(1.375rem, 2vw, 2.5rem);
  --text-h4:       clamp(1.0625rem, 1.4vw, 1.375rem);
  --text-subtitle: clamp(1.5rem, 2vw, 1.85rem);
  --text-body:     clamp(1.1rem, 1.3vw, 1.25rem);
  --text-small:    0.8125rem;
  --text-label:    0.6875rem;

  --leading-tight:   1.04;
  --leading-snug:    1.2;
  --leading-normal:  1.65;
  --leading-loose:   1.85;

  --tracking-tight:   -0.025em;
  --tracking-normal:   0em;
  --tracking-label:    0.10em;
  --tracking-wide:     0.15em;

  /* — Spacing — */
  --section-y:     clamp(5rem, 13vh, 10rem);
  --container-x:   clamp(1.5rem, 6vw, 6.5rem);
  --gap:           clamp(1.25rem, 3vw, 2rem);
  --gap-sm:        clamp(0.75rem, 1.5vw, 1.25rem);
  --gap-lg:        clamp(2rem, 5vw, 4rem);

  /* — Shape — */
  --radius-sm:     3px;
  --radius-md:     8px;
  --radius-lg:     20px;
  --radius-full:   9999px;

  /* — Shadows — */
  --shadow-sm:     0 1px 4px rgba(14,14,14,0.06);
  --shadow-md:     0 6px 24px rgba(14,14,14,0.08);
  --shadow-lg:     0 24px 64px rgba(14,14,14,0.12);

  /* — Motion — */
  --ease-out:       cubic-bezier(0.0,  0.0, 0.22, 1.0);
  --ease-in-out:    cubic-bezier(0.76, 0.0, 0.24, 1.0);
  --ease-spring:    cubic-bezier(0.34, 1.5, 0.64, 1.0);
  --ease-cinematic: cubic-bezier(0.22, 1.0, 0.36, 1.0);

  --dur-fast:      0.22s;
  --dur-base:      0.55s;
  --dur-slow:      0.90s;
  --dur-cinematic: 1.30s;

  /* — Z-index — */
  --z-base:       1;
  --z-raised:     10;
  --z-overlay:    50;
  --z-nav:        100;
  --z-loader:     200;

}

/* ── Large screens (min-width) ──────────────────────────────────── */

/* 1080p / Full HD — container élargit légèrement */
@media (min-width: 1920px) {
  .container { max-width: 1700px; }
}

/* 2K / QHD — container à ~75% de l'écran */
@media (min-width: 2560px) {
  .container { max-width: 2100px; }
  :root {
    --container-x: clamp(5rem, 5.5vw, 8rem);
    --section-y:   clamp(7rem, 14vh, 13rem);
  }
}

/* 4K / UHD — container à ~65% de l'écran */
@media (min-width: 3840px) {
  .container { max-width: 2800px; }
  :root {
    --container-x: clamp(6rem, 5vw, 10rem);
    --section-y:   clamp(8rem, 15vh, 16rem);
    --gap:         clamp(2rem, 3.5vw, 3.5rem);
    --gap-lg:      clamp(3rem, 6vw, 6rem);
  }
}

/* ── Tablet & mobile ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root { --container-x: clamp(1.25rem, 5vw, 4rem); }
}

@media (max-width: 600px) {
  :root {
    --section-y: clamp(3.5rem, 10vh, 6rem);
    --container-x: 1.375rem;
  }
}


/* ----------------------------------------------------------------
   RESET & BASE
---------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-ink);
  color: var(--color-white);
  text-shadow: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */

.display {
  font-size: var(--text-display);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1, .h1 {
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

h3, .h3 {
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: var(--leading-snug);
}

h4, .h4 {
  font-size: var(--text-h4);
  font-weight: 400;
  line-height: var(--leading-normal);
}

.label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-mid);
}

p {
  line-height: var(--leading-normal);
}

p + p {
  margin-top: 1em;
}

strong {
  font-weight: 500;
}

em {
  font-style: italic;
}

/* Reveal lines — each line clips from bottom */
.reveal-lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.reveal-lines .line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform var(--dur-cinematic) var(--ease-cinematic);
}

.reveal-lines.is-revealed .line-inner {
  transform: translateY(0);
}

/* Stagger each line */
.reveal-lines .line:nth-child(1)  .line-inner { transition-delay: 0.00s; }
.reveal-lines .line:nth-child(2)  .line-inner { transition-delay: 0.10s; }
.reveal-lines .line:nth-child(3)  .line-inner { transition-delay: 0.20s; }
.reveal-lines .line:nth-child(4)  .line-inner { transition-delay: 0.30s; }
.reveal-lines .line:nth-child(5)  .line-inner { transition-delay: 0.40s; }

/* Fade-up reveal */
.reveal-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-cinematic),
              transform var(--dur-slow) var(--ease-cinematic);
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade[data-delay="1"] { transition-delay: 0.12s; }
.reveal-fade[data-delay="2"] { transition-delay: 0.24s; }
.reveal-fade[data-delay="3"] { transition-delay: 0.36s; }
.reveal-fade[data-delay="4"] { transition-delay: 0.48s; }
.reveal-fade[data-delay="5"] { transition-delay: 0.60s; }
.reveal-fade[data-delay="6"] { transition-delay: 0.72s; }
.reveal-fade[data-delay="7"] { transition-delay: 0.84s; }


/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-x);
  padding-right: var(--container-x);
}

.container--narrow {
  max-width: 860px;
}

.container--prose {
  max-width: 720px;
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--dense {
  padding-top: calc(var(--section-y) * 0.5);
  padding-bottom: calc(var(--section-y) * 0.5);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.rule--mid { background-color: var(--color-border-mid); }


/* ----------------------------------------------------------------
   LANGUAGE SYSTEM
---------------------------------------------------------------- */

html[lang="en"] .lang-fr { display: none !important; }
html[lang="fr"] .lang-en { display: none !important; }


/* ----------------------------------------------------------------
   CUSTOM CURSOR (desktop / fine-pointer only)
---------------------------------------------------------------- */

html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }

.cursor {
  /* Color controlled via CSS custom props set instantly by JS */
  --cursor-fg:      rgba(14, 14, 14, 0.82);
  --cursor-fg-ring: rgba(14, 14, 14, 0.52);

  position: fixed;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cursor-fg);
  border: 1.5px solid transparent;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  /* Shape transitions only — color must be instant */
  transition: width  0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              opacity 0.25s var(--ease-out);
}

.cursor.is-hovering {
  width: 30px;
  height: 30px;
  background: transparent;
  border-color: var(--cursor-fg-ring);
}

.cursor.is-hidden { opacity: 0; }

/* ----------------------------------------------------------------
   PAGE TRANSITION OVERLAY
---------------------------------------------------------------- */

.transition-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-dark-bg);
  z-index: var(--z-loader);
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-cinematic);
}

.transition-overlay.is-entering {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

.transition-overlay.is-leaving {
  clip-path: inset(100% 0 0 0);
}

/* Site loader (first load) — slides up after content ready */
.site-loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-dark-bg);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 1.1s var(--ease-cinematic);
  pointer-events: all;
}

.site-loader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Greeting words */
.site-loader-word {
  position: absolute;
  font-family: var(--font-primary);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.10s var(--ease-out),
              letter-spacing 0.10s var(--ease-out);
  user-select: none;
  pointer-events: none;
}

.site-loader-word.is-visible {
  opacity: 1;
  letter-spacing: 0.10em;
}

/* Logo — uses logo-loader.svg (symbol #00ffa9, text white), no filter needed */
.site-loader-logo {
  position: absolute;
  width: clamp(168px, 28vw, 280px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.site-loader-logo.is-visible {
  opacity: 1;
}


/* ----------------------------------------------------------------
   NAVIGATION
---------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0 var(--container-x);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease-in-out),
              border-color var(--dur-base) var(--ease-in-out);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--container-x);
  right: var(--container-x);
  height: 1px;
  background-color: var(--color-border);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-in-out);
}

.nav.is-scrolled {
  background-color: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav.is-scrolled::after {
  opacity: 1;
}

/* Dark nav variant */
.nav--dark {
  --color-ink: var(--color-dark-ink);
  --color-ink-mid: var(--color-dark-mid);
  --color-border: var(--color-dark-border);
}

.nav--dark.is-scrolled {
  background-color: rgba(14, 14, 14, 0.92);
}

/* Hero overlay variant — active while nav overlaps the hero section */
.nav--over-hero:not(.is-scrolled) .nav__link {
  color: rgba(247, 245, 240, 0.65);
}
.nav--over-hero:not(.is-scrolled) .nav__link:hover,
.nav--over-hero:not(.is-scrolled) .nav__link.is-active {
  color: #F7F5F0;
}
.nav--over-hero:not(.is-scrolled) .lang-toggle {
  color: rgba(247, 245, 240, 0.65);
  border-color: rgba(247, 245, 240, 0.3);
}
.nav--over-hero:not(.is-scrolled) .lang-toggle:hover {
  color: #F7F5F0;
  border-color: rgba(247, 245, 240, 0.7);
}
.nav--over-hero:not(.is-scrolled) .nav-toggle-bar {
  background-color: #F7F5F0;
}
.nav--over-hero:not(.is-scrolled) .nav__compact-lines span {
  background-color: #F7F5F0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 20px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.nav__link {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-ink-mid);
  position: relative;
  transition: color var(--dur-fast) var(--ease-in-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-cinematic);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-left: 0.5em;

}

/* Language toggle */
.lang-toggle {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-mid);
  padding: 0.4em 0.8em;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-in-out),
              border-color var(--dur-fast) var(--ease-in-out),
              background-color var(--dur-fast) var(--ease-in-out);
}

.lang-toggle:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-ink);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-in-out),
              opacity var(--dur-base) var(--ease-in-out);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: calc(var(--z-nav) - 1);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-in-out);
}

/* When compact nav is active (scrolled, not expanded), the drawer collapses
   to 0 height but its background + border-bottom still render as a 1px line
   behind the transparent nav. Hide it until the drawer is actually opened. */
.nav.is-scrolled:not(.is-expanded) ~ .nav-drawer:not(.is-open) {
  background-color: transparent;
  border-bottom: none;
}

.nav-drawer.is-open {
  max-height: 400px;
}

.nav-drawer__inner {
  padding: var(--gap) var(--container-x) var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.nav-drawer__link {
  font-size: var(--text-h4);
  font-weight: 300;
  color: var(--color-ink);
  padding: 0.5em 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer__link:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .nav { height: 64px; padding: 0 var(--container-x); }
  .nav-drawer { top: 64px; }
}

@media (max-width: 430px) {
  /* Logo réduit de ~35 % + gap explicite pour éviter tout contact avec FR/EN */
  .nav__logo img { height: 13px; }
  .nav__inner { gap: 8px; }
  /* Espacement réduit entre les éléments */
  .nav__actions { gap: 6px; margin-left: 0; }
  /* Bouton CONTACT : padding horizontal réduit, taille conservée */
  .nav__actions .btn { padding-left: 0.75em; padding-right: 0.75em; }
  /* Zone tactile hamburger ≥ 44 px */
  .nav-toggle { min-width: 44px; min-height: 44px; }
}

/* ----------------------------------------------------------------
   NAV — COMPACT SCROLL STATE (desktop only)
---------------------------------------------------------------- */

/* Logo needs relative positioning for the symbol overlay */
.nav__logo {
  position: relative;
}

/* Full logo — default visible, fades out when compact */
.nav__logo-full {
  display: block;
  transition: opacity 0.35s var(--ease-out);
}

/* Symbol — hidden by default, fades in when compact */
.nav__logo-symbol {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 28px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

/* Circular menu button — hidden by default */
.nav__compact-trigger {
  position: absolute;
  right: var(--container-x);
  top: 50%;
  transform: translateY(-50%) scale(0.75);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out),
              transform 0.35s var(--ease-out),
              background-color 0.4s var(--ease-in-out);
  z-index: 1;
}

.nav__compact-trigger:hover {
  background-color: #00ffa9;
}

.nav__compact-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
  pointer-events: none;
}

.nav__compact-lines span {
  display: block;
  height: 1.5px;
  background: #ffffff;
  border-radius: 1px;
}

/* Smooth fade on links and actions */
.nav__links,
.nav__actions {
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Kill the ::after bottom line in compact state at all breakpoints.
   display:none is used instead of opacity:0 so no transition can flash it. */
.nav.is-scrolled:not(.is-expanded)::after {
  display: none !important;
}

@media (min-width: 901px) {
  /* COMPACT: scrolled, not expanded */

  /* Remove white bar — snap all properties immediately, no transition */
  .nav.is-scrolled:not(.is-expanded) {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    outline: none;
    transition: none;
  }

  .nav.is-scrolled:not(.is-expanded) .nav__logo-full {
    opacity: 0;
    pointer-events: none;
  }

  /* Symbol ~40% larger (37px → 52px) */
  .nav.is-scrolled:not(.is-expanded) .nav__logo-symbol {
    opacity: 1;
    pointer-events: auto;
    height: 52px;
  }

  .nav.is-scrolled:not(.is-expanded) .nav__links {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
  }

  .nav.is-scrolled:not(.is-expanded) .nav__actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
  }

  /* Circle button — 64px diameter, vertically centered with 10px top margin */
  .nav.is-scrolled:not(.is-expanded) .nav__compact-trigger {
    opacity: 1;
    pointer-events: auto;
    width: 64px;
    height: 64px;
    top: 42px;         /* center = 42 - 32 = 10px from viewport top */
    transform: translateY(-50%) scale(1);
  }

  /* EXPANDED: user clicked — full nav restored */
  .nav.is-scrolled.is-expanded .nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav.is-scrolled.is-expanded .nav__actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav.is-scrolled.is-expanded .nav__logo-full {
    opacity: 1;
    pointer-events: auto;
  }

  .nav.is-scrolled.is-expanded .nav__logo-symbol {
    opacity: 0;
    pointer-events: none;
  }

  /* COLOR ADAPTATION — over blue sections (#d5d7e0 muted tone) */
  .nav--over-blue.is-scrolled:not(.is-expanded) .nav__compact-trigger {
    background-color: #d5d7e0;
  }

  .nav--over-blue.is-scrolled:not(.is-expanded) .nav__compact-lines span {
    background: #1d35ff;
    transition: background-color 0.4s var(--ease-in-out);
  }
}


/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.70em 2em;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-base) var(--ease-in-out),
              border-color var(--dur-base) var(--ease-in-out);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--btn-fill-color, var(--color-ink));
  clip-path: circle(0% at 50% 120%);
  transition: clip-path 0.60s var(--ease-cinematic);
  will-change: clip-path;
  border-radius: inherit;
}

.btn--primary {
  color: var(--color-white);
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  --btn-fill-color: #00ffa9;
}

.btn--primary:hover {
  color: #0000ff;
  border-color: #00ffa9;
}

.btn--outline {
  color: var(--color-ink);
  border-color: var(--color-border-mid);
  background-color: transparent;
  --btn-fill-color: var(--color-accent);
}

.btn--outline:hover {
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--outline-light {
  color: var(--color-dark-ink);
  border-color: var(--color-dark-border);
  background-color: transparent;
  --btn-fill-color: var(--color-dark-ink);
}

.btn--outline-light:hover { color: var(--color-dark-bg); }

.btn:hover::before {
  clip-path: circle(150% at 50% 120%);
}

/* CTAs on blue background sections — #00ffa9 for contrast */
.footer .btn--primary,
.footer .btn--outline-light,
.intro-statement .btn--outline-light,
#impact .btn--primary {
  background-color: #00ffa9;
  border-color: #00ffa9;
  color: #0000FF;
  --btn-fill-color: #ffffff;
}

.footer .btn--primary:hover,
.footer .btn--outline-light:hover,
.intro-statement .btn--outline-light:hover,
#impact .btn--primary:hover {
  color: #1d35ff;
  border-color: #ffffff;
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-mid);
  transition: color var(--dur-fast) var(--ease-in-out),
              gap var(--dur-base) var(--ease-cinematic);
}

.link-arrow:hover {
  color: var(--color-ink);
  gap: 0.85em;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-cinematic);
}

.link-arrow:hover svg {
  transform: translate(3px, -3px);
}


/* ----------------------------------------------------------------
   NAV SPACER
---------------------------------------------------------------- */

.nav-spacer {
  height: 72px;
}

@media (max-width: 600px) {
  .nav-spacer { height: 64px; }
}


/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */

.footer {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-ink);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.footer__cta {
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.footer__cta-label {
  color: var(--color-dark-mid);
  margin-bottom: 1.5rem;
}

.footer__cta-headline {
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark-ink);
  margin-bottom: 2.5rem;
}

.footer__cta-headline em {
  color: var(--color-accent-warm);
  font-style: normal;
}

.footer__cta-sub {
  font-size: var(--text-body);
  color: var(--color-dark-mid);
  margin-bottom: 2.5rem;
  margin-top: -1rem;
}

.footer__bottom {
  border-top: 1px solid var(--color-dark-border);
  padding-top: clamp(1.5rem, 3vh, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap);
}

.footer__logo img {
  height: 22px;
  width: auto;
  opacity: 0.65;
  transition: opacity var(--dur-fast) var(--ease-in-out);
}

.footer__logo:hover img {
  opacity: 1;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}

.footer__meta-item {
  font-size: var(--text-small);
  color: var(--color-dark-mid);
}

.footer__meta a:hover {
  color: var(--color-dark-ink);
  transition: color var(--dur-fast) var(--ease-in-out);
}

/* Privacy trigger */
.footer__privacy-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: var(--text-small);
  color: var(--color-dark-mid);
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-in-out);
}
.footer__privacy-trigger:hover { opacity: 1; }

/* ================================================================
   PRIVACY MODAL
   ================================================================ */

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-cinematic);
}
.privacy-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  color: var(--color-ink);
  width: calc(100% - 3rem);
  max-width: 600px;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 3px;
  padding: clamp(2rem, 5vw, 3.5rem);
  transform: translateY(18px);
  transition: transform 0.45s var(--ease-cinematic);
}
.privacy-modal.is-open .privacy-modal__panel { transform: translateY(0); }

.privacy-modal__close {
  position: absolute;
  top: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity var(--dur-fast) var(--ease-in-out);
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1;
}
.privacy-modal__close:hover { opacity: 1; }

.privacy-modal__section {
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--color-border);
}
.privacy-modal__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.privacy-modal__title {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 0.875rem;
}

.privacy-modal__body {
  font-size: var(--text-small);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
}

/* ================================================================
   PAGE STYLES
   ================================================================ */


/* ----------------------------------------------------------------
   HOME — HERO
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   HOME — HERO MEDIA (full-viewport editorial hero)
---------------------------------------------------------------- */

/* Wrapper: full viewport, media behind, text on top */
.hero-media {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
  background-color: var(--color-dark-bg); /* visible while media loads */
}

/* ─── Background layer (z-index 0) ─── */
.hero-media__background {
  position: absolute;
  inset: -10% 0;   /* extra height top+bottom so parallax never shows gaps */
  z-index: 0;
  will-change: transform;
}

/* Image background — replace src in HTML → assets/img/hero.jpg */
.hero-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video background — uncomment <video> in HTML → assets/video/hero.mp4 */
.hero-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*object-position: center;*/
  object-position: 77% 50%;
  display: block;
}

/* ─── Overlay layer (z-index 1) ─── */
/* Dark gradient: strong at bottom for text legibility, lighter at top */
.hero-media__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(14, 14, 14, 0.80) 0%,
    rgba(14, 14, 14, 0.45) 45%,
    rgba(14, 14, 14, 0.15) 100%
  );
  transition: opacity 0.4s ease;
}

.hero-media--no-overlay .hero-media__overlay {
  opacity: 0;
}

/* ─── Content layer (z-index 2) ─── */
.hero-media__content {
  position: relative;
  z-index: 2;
  padding-top: calc(72px + var(--section-y));
}

.hero-media__headline {
  font-size: var(--text-display);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark-ink);
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
  max-width: 18ch;
}

/* Override line-inner color for dark background context */
.hero-media__headline .line-inner {
  color: var(--color-dark-ink);
}

.hero-media__sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.hero-media__sub {
  font-size: var(--text-subtitle);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-dark-mid);
  max-width: 48ch;
}

.hero-media__actions {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-shrink: 0;
  padding-right: 2.5rem; /* clear the absolute scroll indicator on the right */
}

/* Light arrow link variant for dark backgrounds */
.link-arrow--light {
  color: var(--color-dark-mid);
}
.link-arrow--light:hover {
  color: var(--color-dark-ink);
}

/* ─── Scroll indicator (z-index 2) ─── */
.hero-media__scroll {
  position: absolute;
  bottom: var(--section-y);
  right: var(--container-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
  color: var(--color-dark-ink);
}

.hero-media__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background-color: var(--color-dark-ink);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-media__scroll-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-media {
    min-height: 100svh;
    justify-content: flex-end;
  }
  .hero-media__overlay {
    background: linear-gradient(
      to top,
      rgba(14, 14, 14, 0.88) 0%,
      rgba(14, 14, 14, 0.55) 50%,
      rgba(14, 14, 14, 0.20) 100%
    );
  }
  .hero-media__sub-row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap);
  }
  .hero-media__scroll { display: none; }

  /* Mobile video framing — higher X% moves window right over image → subject appears left in viewport */
  .hero-media__video[data-video="1"] { object-position: 80% center; }
  .hero-media__video[data-video="2"] { object-position: 80% center; }
  .hero-media__video[data-video="3"] { object-position: 18% center; }
  .hero-media__video[data-video="4"] { object-position: 80% center; }
}


/* ----------------------------------------------------------------
   HOME — INTRO STATEMENT
---------------------------------------------------------------- */

.intro-statement {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-ink);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.intro-statement__inner {
  padding-top: clamp(1.5rem, 4vh, 3rem);
}

.intro-statement__row {
  display: flex;
  gap: var(--gap-lg);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.intro-statement__counter {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-dark-mid);
  flex-shrink: 0;
  padding-top: 0.2em;
}

.intro-statement__text {
  flex: 1;
  min-width: 280px;
  max-width: 68ch;
}

.intro-statement__headline {
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark-ink);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.intro-statement__body {
  font-size: calc(var(--text-body) * 1.3);
  color: var(--color-dark-mid);
  line-height: var(--leading-loose);
}

.intro-statement__cta {
  flex-shrink: 0;
  align-self: flex-end;
}


/* ----------------------------------------------------------------
   HOME — TROIS ÉTAPES
---------------------------------------------------------------- */

.trois-etapes {
  background-color: var(--color-bg);
  color: var(--color-ink);
  padding: clamp(2.5rem, 5vh, 4rem) 0;
}

.trois-etapes__inner {
  max-width: 860px;
}

.trois-etapes__headline {
  font-size: clamp(2rem, 3.5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.trois-etapes__body {
  font-size: calc(var(--text-body) * 1.3);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
  max-width: 68ch;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.trois-etapes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trois-etapes__item {
  font-size: calc(var(--text-body) * 1.3);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
}

.trois-etapes__item strong {
  color: var(--color-ink);
  font-weight: 400;
}

/* ----------------------------------------------------------------
   HOME — EXPERTISE TEASER
---------------------------------------------------------------- */

.expertise-teaser {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-ink);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.expertise-teaser__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(3rem, 7vh, 6rem);
  padding-bottom: var(--gap);
  border-bottom: 1px solid var(--color-dark-border);
  flex-wrap: wrap;
}

.expertise-teaser__headline {
  font-size: var(--text-h2);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark-ink);
}

/* Scoped overrides for expertise items on blue background */
.expertise-teaser .link-arrow {
  color: var(--color-dark-ink);
}

.expertise-teaser .expertise-item {
  color: var(--color-dark-ink);
  border-bottom-color: var(--color-dark-border);
}

.expertise-teaser .expertise-item::before {
  background-color: #ffffff;
}

.expertise-teaser .expertise-item:hover {
  color: #0000ff;
}

.expertise-teaser .expertise-item__number {
  color: var(--color-dark-mid);
}

.expertise-teaser .expertise-item__symbol {
  fill: #0000ff;
}

.expertise-teaser .expertise-item__desc {
  color: var(--color-dark-mid);
}

.expertise-list {
  display: flex;
  flex-direction: column;
}

/* ── Expertise row: flex baseline layout ────────────────────── */
.expertise-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: clamp(1.25rem, 3vh, 2.25rem) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

.expertise-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  transform: translateX(-101%);
  transition: transform var(--dur-base) var(--ease-in-out);
  z-index: 0;
}

.expertise-item:hover {
  color: #0000ff;
}

.expertise-item:hover::before {
  transform: translateX(0);
}

/* Column 1: fixed-size box — symbol in flow anchors baseline; number overlays absolutely */
.expertise-item__num-wrap {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  top: 0;
  z-index: 1;
  transition: transform 0.45s var(--ease-in-out), top 0.45s var(--ease-in-out);
}

.expertise-item:hover .expertise-item__num-wrap {
  transform: translateX(var(--dx-num, 0));
  top: -12px;
}

/* Number: centered absolutely over symbol; fades out on hover */
.expertise-item__number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: #0000ff;
  transition: opacity 0.28s var(--ease-in-out);
}

.expertise-item:hover .expertise-item__number {
  opacity: 0;
}

/* Symbol: in normal flow — bottom edge anchors at text baseline */
.expertise-item__symbol {
  display: block;
  width: 28px;
  height: 28px;
  fill: #0000ff;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.3s var(--ease-in-out), transform 0.38s var(--ease-in-out);
  pointer-events: none;
}

.expertise-item:hover .expertise-item__symbol {
  opacity: 1;
  transform: scale(1);
  fill: #000000;
}

/* Text row: fills remaining width — name left, desc pushed to far right */
.expertise-item__text-row {
  display: flex;
  align-items: baseline;
  flex: 1 1 0;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.expertise-item:hover .expertise-item__text-row {
  transform: translateX(var(--dx-name, 0));
  transition: transform 0.45s var(--ease-in-out);
}

/* Title */
.expertise-item__name {
  flex-shrink: 0;
  font-size: var(--text-h3);
  font-weight: 300;
  transition: font-size 0.45s var(--ease-in-out);
}

.expertise-item:hover .expertise-item__name {
  font-size: calc(var(--text-h3) * 1.3);
  white-space: nowrap;
  color: #0000ff;
}

/* Description: pushed to far right — all rows share the same right edge */
.expertise-item__desc {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  font-size: calc(var(--text-small) * 1.1);
  color: var(--color-ink-mid);
  white-space: nowrap;
  transition: font-size 0.45s var(--ease-in-out), color var(--dur-fast) var(--ease-in-out);
}

.expertise-item:hover .expertise-item__desc {
  font-size: calc(var(--text-small) * 1.22 * 1.25);
  color: #000000;
  white-space: nowrap;
  transform: translateX(calc(var(--dx-desc, 0px) - var(--dx-name, 0px)));
  transition: transform 0.45s var(--ease-in-out), font-size 0.45s var(--ease-in-out), color var(--dur-fast) var(--ease-in-out);
}

@media (max-width: 600px) {
  .expertise-item__desc { display: none; }
}


/* ----------------------------------------------------------------
   HOME — SELECTED WORK TEASER
---------------------------------------------------------------- */

.work-teaser {
  background-color: var(--color-surface-alt);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.work-teaser__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(3rem, 7vh, 6rem);
  flex-wrap: wrap;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap-sm);
}

.work-card {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface-alt);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.work-card__media {
  position: absolute;
  inset: 0;
  background-color: var(--color-ink-ghost);
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.work-card:hover .work-card__media img {
  transform: scale(1.04);
}

.work-card:not(.work-card--home-first):hover .work-card__title {
  transform: scale(1.04);
}

/* First home-page card: scale wrapper fills the card */
.work-card--home-first .work-card__scale-inner {
  position: absolute;
  inset: 0;
  transition: transform 500ms ease-out;
}

/* Image fills the scale wrapper */
.work-card--home-first .work-card__scale-inner .work-card__media {
  position: absolute;
  inset: 0;
}

/* Text always visible, no fade or slide */
.work-card--home-first .work-card__info {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Typography ×1.4 */
.work-card--home-first .work-card__title {
  font-size: calc(var(--text-h4) * 1.4);
}

.work-card--home-first .work-card__cat {
  font-size: calc(var(--text-label) * 1.4);
}

/* Hover: scale image + texts together, cursor devices only */
@media (hover: hover) and (pointer: fine) {
  .work-card--home-first:hover .work-card__scale-inner {
    transform: scale(1.04);
  }
  /* Suppress the global img-only scale on this card */
  .work-card--home-first:hover .work-card__media img {
    transform: none;
  }
}

.work-card__overlay {
  display: none;
}

.work-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 1;
}

.work-card__cta {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.4);
  margin-top: 0.15em;
}

.work-card__title {
  font-size: var(--text-h4);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 0.25em;
  transition: transform var(--dur-cinematic) var(--ease-out);
  transform-origin: bottom left;
}

.work-card__cat {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.6);
}

/* Placeholder tile (no image) */
.work-card--placeholder .work-card__media {
  background-color: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card--placeholder-dark .work-card__media {
  background-color: var(--color-dark-surface);
}

.work-card__placeholder-number {
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 200;
  color: var(--color-border-mid);
  line-height: 1;
  user-select: none;
}

.work-card--placeholder-dark .work-card__placeholder-number {
  color: var(--color-dark-border);
}

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card:first-child { grid-column: span 1; aspect-ratio: 4/3; }
}


/* ----------------------------------------------------------------
   HOME — PROPOSITION STRIP
---------------------------------------------------------------- */

.proposition {
  background-color: var(--color-ink);
  color: var(--color-dark-ink);
  overflow: hidden;
}

.proposition__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
  justify-content: space-between;
}

.proposition__stats {
  display: flex;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.proposition__stat {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.proposition__stat-value {
  font-size: var(--text-h2);
  font-weight: 200;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark-ink);
}

.proposition__stat-label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-dark-mid);
}

.proposition__text {
  max-width: 40ch;
  font-size: var(--text-h4);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-dark-mid);
}

.proposition__text strong {
  color: var(--color-dark-ink);
  font-weight: 400;
}


/* ----------------------------------------------------------------
   ABOUT PAGE
---------------------------------------------------------------- */

.about-hero {
  padding-top: calc(72px + var(--section-y));
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.about-content.section {
  padding-top: clamp(2rem, 4vh, 3rem);
}

.about-hero__label {
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.about-hero__headline {
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 24ch;
}

.about-content {
  background-color: var(--color-bg);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-lg);
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: calc(72px + 2rem);
}

.about-sidebar__image {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--color-surface-alt);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.about-sidebar__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-sidebar__caption {
  margin: 0;
  line-height: 1.5;
  font-size: 0.72rem;
  color: var(--color-ink-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-sidebar__caption strong {
  font-weight: 700;
  color: var(--color-ink);
}

.about-sidebar__caption-role {
  font-weight: 300;
}

.about-main__headline {
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.about-main__body {
  font-size: var(--text-h4);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
  max-width: 52ch;
}

.about-main__body strong {
  color: var(--color-ink);
  font-weight: 400;
}

.about-values {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-ink);
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
  border-top: 1px solid var(--color-dark-border);
  padding-top: var(--gap-lg);
}

.about-value {
  padding-top: var(--gap);
}

.about-value__number {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-dark-mid);
  margin-bottom: 1.5rem;
}

.about-value__title {
  font-size: calc(var(--text-h3) * 1.18);
  font-weight: 300;
  color: var(--color-dark-ink);
  margin-bottom: 0.75rem;
}

.about-value__body {
  font-size: calc(var(--text-small) * 1.25);
  color: var(--color-dark-mid);
  line-height: var(--leading-loose);
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: relative; top: auto; }
  .about-sidebar__image { aspect-ratio: 4/4; max-width: 480px; }
  .about-sidebar__caption { white-space: normal; overflow: visible; text-overflow: clip; }
  .about-values__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .about-values__grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   EXPERTISE PAGE
---------------------------------------------------------------- */

.expertise-hero {
  padding-top: calc(72px + var(--section-y));
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--color-border);
}

.expertise-hero__headline {
  font-size: var(--text-h1);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  max-width: 22ch;
}

/* Full-viewport expertise sections */
.expertise-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vh, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

/* ── Blue theme (01, 03, 05, 07) ─────────────────────────────── */
.expertise-section[data-theme="blue"] {
  background-color: #0000ff;
  color: #ffffff;
}
.expertise-section[data-theme="blue"] .expertise-section__number {
  color: rgba(255, 255, 255, 0.5);
}
.expertise-section[data-theme="blue"] .expertise-section__title {
  color: #ffffff;
}
.expertise-section[data-theme="blue"] .expertise-section__desc {
  color: #d5d7e0;
}
.expertise-section[data-theme="blue"] .expertise-pillar {
  background: #ffffff;
  border-color: rgba(0, 0, 255, 0.12);
}
.expertise-section[data-theme="blue"] .expertise-pillar__label {
  color: #0000ff;
}

/* ── Light theme (02, 04, 06) ────────────────────────────────── */
.expertise-section[data-theme="light"] {
  background-color: #f7f5f0;
  color: #0a0a0a;
}
.expertise-section[data-theme="light"] .expertise-section__number {
  color: rgba(0, 0, 255, 0.45);
}
.expertise-section[data-theme="light"] .expertise-section__title {
  color: #0000ff;
}
.expertise-section[data-theme="light"] .expertise-section__content > .expertise-section__desc:first-child {
  color: #0000ff;
}
.expertise-section[data-theme="light"] .expertise-section__desc {
  color: #4a4a4a;
}
.expertise-section[data-theme="light"] .expertise-pillar {
  background: #0000ff;
  border-color: rgba(255, 255, 255, 0.22);
}
.expertise-section[data-theme="light"] .expertise-pillar__label {
  color: #ffffff;
}

.expertise-section__bg-number {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(14rem, 30vw, 36rem);
  font-weight: 200;
  line-height: 1;
  opacity: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.expertise-section[data-theme="blue"] .expertise-section__bg-number {
  color: rgba(255, 255, 255, 0.06);
}
.expertise-section[data-theme="light"] .expertise-section__bg-number {
  color: rgba(230, 227, 220, 0.8);
}

.expertise-section__inner {
  position: relative;
  z-index: 1;
}

.expertise-section__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-lg);
  align-items: start;
}

.expertise-section__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.3em;
}

.expertise-section__number {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-mid);
}

.expertise-section__title {
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.expertise-section__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vh, 2.5rem);
}

/* Inner text stack: subtitle + paragraphs only, tighter rhythm */
.expertise-text-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expertise-section__desc {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-normal);
  color: var(--color-ink-mid);
  max-width: 42ch;
}

.expertise-text-stack > .expertise-section__desc:first-child {
  font-size: calc(var(--text-body) * 1.22);
}

.expertise-section__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

.expertise-pillar {
  padding: clamp(0.75rem, 1.75vh, 1.25rem);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.expertise-pillar__label {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-ink);
}

.expertise-nav {
  position: fixed;
  right: var(--container-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.expertise-nav__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--dot-color, var(--color-ink-faint));
  opacity: 0.45;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-in-out),
              transform var(--dur-base) var(--ease-spring),
              opacity var(--dur-base) var(--ease-in-out);
}

.expertise-nav__dot.is-active {
  background-color: var(--dot-color, var(--color-ink));
  opacity: 1;
  transform: scale(1.5);
}

@media (max-width: 900px) {
  .expertise-section__row { grid-template-columns: 1fr; gap: var(--gap); }
  .expertise-section__title { font-size: var(--text-h2); }
  .expertise-nav { display: none; }
  .expertise-section__pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .expertise-section__pillars { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   WORK PAGE
---------------------------------------------------------------- */

.work-hero {
  padding-top: calc(72px + var(--section-y));
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--color-border);
}

.work-hero__headline {
  font-size: var(--text-h1);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  max-width: 22ch;
}

.work-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--color-border);
}

.work-full-card {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  aspect-ratio: 4/3;
  cursor: pointer;
  text-decoration: none;
}

.work-full-card:nth-child(3n+1) {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.work-full-card__media {
  position: absolute;
  inset: 0;
}

.work-full-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.work-full-card:hover .work-full-card__media img {
  transform: scale(1.04);
}

.work-full-card:hover .work-full-card__title {
  transform: scale(1.04);
}

.work-full-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: none;
  opacity: 1;
}

/* First card: enlarged padding */
.work-full-card--text-always .work-full-card__info {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* First card: enlarged typography ×1.4 */
.work-full-card--text-always .work-full-card__title {
  font-size: calc(var(--text-h3) * 1.4);
}

.work-full-card--text-always .work-full-card__cat,
.work-full-card--text-always .work-full-card__year {
  font-size: calc(var(--text-label) * 1.4);
}

.work-full-card__title {
  font-size: var(--text-h3);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 0.25em;
  transition: transform var(--dur-cinematic) var(--ease-out);
  transform-origin: bottom left;
}

.work-full-card__meta {
  display: flex;
  gap: var(--gap);
  align-items: center;
}

.work-full-card__cat {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.6);
}

.work-full-card__year {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.4);
}

.work-full-card--placeholder .work-full-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-full-card--light { background-color: var(--color-surface-alt); }
.work-full-card--dark  { background-color: var(--color-dark-surface); }
.work-full-card--warm  { background-color: #E8E0D4; }
.work-full-card--cool  { background-color: #D8DCE4; }

.work-placeholder-num {
  font-size: clamp(6rem, 16vw, 18rem);
  font-weight: 200;
  color: rgba(14,14,14,0.06);
  line-height: 1;
  user-select: none;
}

.work-full-card--dark .work-placeholder-num {
  color: rgba(247, 245, 240, 0.06);
}

@media (max-width: 700px) {
  .work-full-grid { grid-template-columns: 1fr; }
  .work-full-card:nth-child(3n+1) { grid-column: span 1; aspect-ratio: 4/3; }
}


/* ----------------------------------------------------------------
   CONTACT PAGE
---------------------------------------------------------------- */

.contact-hero {
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(72px + var(--section-y));
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.contact-hero__headline {
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 22ch;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-lg);
  align-items: start;
}

.contact-info {
  padding-top: 0.3em;
  position: sticky;
  top: calc(72px + 2rem);
}

.contact-info__block {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.contact-info__label {
  color: var(--color-ink-mid);
  margin-bottom: 0.75rem;
}

.contact-info__value {
  font-size: var(--text-h4);
  font-weight: 300;
  line-height: var(--leading-normal);
}

.contact-info__value a {
  transition: color var(--dur-fast) var(--ease-in-out);
}

.contact-info__value a:hover {
  color: var(--color-ink-mid);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field {
  position: relative;
  border-top: 1px solid var(--color-border);
  padding: clamp(1.25rem, 3vh, 2rem) 0;
}

.form-field:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.form-label {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin-bottom: 0.75rem;
  transition: color var(--dur-fast) var(--ease-in-out);
}

.form-field:focus-within .form-label {
  color: var(--color-ink-mid);
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--text-h4);
  font-weight: 300;
  color: var(--color-ink);
  line-height: var(--leading-normal);
  resize: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-ink-faint);
}

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-top: clamp(1rem, 2.5vh, 1.75rem);
}

.form-note {
  font-size: var(--text-small);
  color: var(--color-ink-mid);
  max-width: 36ch;
}

.form-note--error {
  color: var(--color-ink);
  margin-top: clamp(0.75rem, 1.5vh, 1rem);
}

/* Defensive [hidden] override — prevents author display rules from leaking through */
[hidden] { display: none !important; }

/* Button icon system (paper plane + checkmark) */
.btn__icons {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.btn__plane,
.btn__checkmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn__checkmark {
  opacity: 0;
}
.btn__checkmark polyline {
  stroke-dasharray: 23;
  stroke-dashoffset: 23;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
/* Sending: plane flies up-right and fades */
.btn--primary.is-sending .btn__plane,
.btn--primary.is-sent .btn__plane {
  opacity: 0;
  transform: translate(0.8em, -0.6em);
}
/* Sent: checkmark fades in and draws */
.btn--primary.is-sent .btn__checkmark {
  opacity: 1;
}
.btn--primary.is-sent .btn__checkmark polyline {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .btn__plane, .btn__checkmark, .btn__checkmark polyline {
    transition: none !important;
  }
}

/* Contact form — confirmation state */
.contact-confirmation {
  display: none;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vh, 3rem) 0;
}
.contact-confirmation.is-visible {
  display: flex;
}

.contact-confirmation__icon {
  flex-shrink: 0;
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  color: var(--color-ink);
}

.contact-confirmation__icon svg {
  width: 100%;
  height: 100%;
}

.contact-confirmation__body {
  padding-top: 0.2em;
}

.contact-confirmation__title {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

.contact-confirmation__text {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-ink-mid);
  line-height: var(--leading-loose);
  max-width: 48ch;
}

@media (max-width: 600px) {
  .contact-confirmation {
    flex-direction: column;
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: relative; top: auto; }
}


/* ----------------------------------------------------------------
   SHARED — SECTION HEADERS
---------------------------------------------------------------- */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(3rem, 8vh, 6rem);
  flex-wrap: wrap;
}

.section-header__headline {
  font-size: var(--text-h2);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
}

.section-header__link {
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 0.2em;
}


/* ----------------------------------------------------------------
   UTILITIES
---------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-center { text-align: center; }
.text-right  { text-align: right;  }

.color-mid   { color: var(--color-ink-mid);   }
.color-faint { color: var(--color-ink-faint); }

.mt-auto { margin-top: auto; }
.mb-xs { margin-bottom: var(--gap-sm); }
.mb-sm { margin-bottom: var(--gap); }
.mb-md { margin-bottom: var(--gap-lg); }
.mb-lg { margin-bottom: var(--section-y); }

/* Magnetic button wrapper — JS enhances */
.magnetic {
  display: inline-block;
  will-change: transform;
}

/* ================================================================
   PROJECT DETAIL PAGE
   ================================================================ */

/* Back link */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-cinematic);
  padding: clamp(1.5rem, 4vh, 2.5rem) 0 0;
  display: block;
}
.project-back:hover { color: var(--color-ink); }
.project-back::before {
  content: '←';
  display: inline-block;
  margin-right: 0.4em;
  transition: transform var(--dur-base) var(--ease-cinematic);
}
.project-back:hover::before { transform: translateX(-3px); }

/* Hero */
.project-hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  background-color: var(--color-ink);
  overflow: hidden;
  margin-top: 0;
}

.project-hero__media {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.project-hero__media img,
.project-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* Layered hero composition */
.project-hero__media--layered {
  position: absolute;
  inset: -10% 0;
}

.project-hero__media--layered .hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-layer--bg {
  z-index: 1;
  /* No animation — always visible, covered by overlay until it clears */
}

.hero-layer--shadow {
  z-index: 2;
  object-fit: contain;
  animation: heroShadowIn 3000ms cubic-bezier(0.22, 1, 0.36, 1) 600ms both;
}

.hero-layer--product {
  z-index: 3;
  object-fit: contain;
  animation: heroProductIn 4000ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both;
}

@keyframes heroShadowIn {
  from { transform: scale(1.15) translateX(50px); }
  to   { transform: scale(1) translateX(0); }
}

@keyframes heroProductIn {
  from { transform: scale(1.15) translate(60px, 45px); }
  to   { transform: scale(1) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer--shadow,
  .hero-layer--product {
    animation: none;
  }
}

.project-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--container-x);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.project-hero__title {
  font-size: clamp(2.75rem, 6.5vw, 7rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 16ch;
  margin-bottom: 0.75rem;
}

.project-hero__subtitle {
  font-size: var(--text-body);
  font-weight: 300;
  color: rgba(247, 245, 240, 0.55);
  letter-spacing: 0.01em;
}

/* Project header metadata */
.project-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(3rem, 7vh, 5rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--color-border);
}

.project-header__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.project-header__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.project-meta-item__label {
  font-size: calc(var(--text-small) * 0.9);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.project-meta-item__value {
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--color-ink-mid);
}

/* Content sections */
.project-section {
  padding-top: clamp(4rem, 10vh, 7rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
  border-bottom: 1px solid var(--color-border);
}

.project-section__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.project-section__label {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  padding-top: 0.35em;
}

.project-section__body {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink);
}

.project-section__body p + p {
  margin-top: 1.25em;
}

.project-section__body strong {
  font-weight: 400;
  color: var(--color-ink);
}

/* Deliverables list */
.project-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-top: 1.5em;
}

.project-deliverables li {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-ink-mid);
  padding-left: 1.2em;
  position: relative;
}

.project-deliverables li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-ink-faint);
}

/* Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--color-border);
}

.project-gallery__item {
  position: relative;
  background-color: var(--color-ink-ghost);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.project-gallery__item--tall {
  aspect-ratio: 3/4;
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.project-gallery__item:hover img {
  transform: scale(1.03);
}

/* Pull quote */
.project-quote {
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.project-quote__marks {
  font-size: 3rem;
  font-weight: 200;
  color: var(--color-ink-faint);
  line-height: 0.5;
  margin-bottom: 2rem;
  display: block;
}

.project-quote__text {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 28ch;
  margin: 0 auto 1.5rem;
}

.project-quote__attr {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
}

/* Next project navigation */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--color-border);
}

.project-nav__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2.5rem, 6vh, 5rem) clamp(2rem, 5vw, 4rem);
  background-color: var(--color-bg);
  text-decoration: none;
  transition: background-color var(--dur-base) var(--ease-cinematic);
  min-height: 240px;
}

.project-nav__item:hover {
  background-color: var(--color-ink-ghost);
}

.project-nav__item--next {
  text-align: right;
  align-items: flex-end;
}

.project-nav__direction {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.project-nav__title {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.project-nav__arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--color-ink-mid);
  transition: transform var(--dur-base) var(--ease-cinematic);
}

.project-nav__item:hover .project-nav__arrow { transform: translateX(4px); }
.project-nav__item--prev:hover .project-nav__arrow { transform: translateX(-4px); }

/* Responsive */
@media (max-width: 900px) {
  .project-header {
    grid-template-columns: 1fr;
  }
  .project-header__meta {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .project-meta-item {
    text-align: left;
  }
  .project-section__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-section__label {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .project-hero { height: 72vh; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery__item--wide { grid-column: span 1; aspect-ratio: 4/3; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav__item--next { text-align: left; align-items: flex-start; }
}

/* ================================================================
   PROJECT DETAIL — EDITORIAL LAYOUT (v2)
   ================================================================ */

/* ── Intro: image left / text right ─────────────────────────────── */
.pi-intro {
  display: grid;
  grid-template-columns: 35fr 65fr;
}

.pi-intro__image {
  position: relative;
  overflow: hidden;
  background-color: var(--color-ink-ghost);
  min-height: 60vh;
}

.pi-intro__image--svg {
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.pi-intro__image--svg > svg {
  width: 69%;
  height: auto;
  display: block;
  will-change: transform;
}

.pi-intro__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.pi-intro__content {
  padding: clamp(3.5rem, 5vh, 7rem) clamp(2.5rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.pi-intro__eyebrow {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.pi-intro__headline {
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.pi-intro__body {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
}

.pi-intro__body p + p {
  margin-top: 1.1em;
}

/* ── Full-bleed image ────────────────────────────────────────────── */
/* Packaging showcase */
.pi-packaging {
  padding: clamp(80px, 10vw, 120px) var(--gutter);
}


.pi-packaging__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

.pi-packaging__item {
  display: flex;
  flex: 0 1 auto;
}

.pi-packaging__item img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: clamp(240px, 28vw, 420px);
  width: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .pi-packaging__row {
    flex-direction: column;
    align-items: center;
  }

  .pi-packaging__item img {
    max-height: 280px;
  }
}

.pi-fullbleed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/7;
  background-color: var(--color-ink-ghost);
}

.pi-fullbleed img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* ── Approach text block ─────────────────────────────────────────── */
.pi-text {
  padding: clamp(5rem, 11vh, 9rem) var(--container-x);
  border-bottom: 1px solid var(--color-border);
}

.pi-text__inner {
  max-width: 820px;
  margin: 0 auto;
}

.pi-text__label {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.pi-text__heading {
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.pi-text__body {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
}

.pi-text__body p + p {
  margin-top: 1.1em;
}

/* ── Image grid: 2-up top + 1 wide bottom ──────────────────────── */
.pi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: #F7F5F0;
}

.pi-grid__item {
  position: relative;
  overflow: hidden;
  background-color: #F7F5F0;
  aspect-ratio: 4/3;
}

.pi-grid__item--wide {
  grid-column: span 2;
  aspect-ratio: 21/8;
}

.pi-grid__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.pi-grid__item:hover img {
  transform: scale(1.03);
}

/* ── Impact: text left / image right ────────────────────────────── */
.pi-impact {
  display: grid;
  grid-template-columns: 55fr 45fr;
  /*border-top: 1px solid var(--color-border);*/
  border-bottom: 1px solid var(--color-border);
}

.pi-impact__text {
  padding: clamp(3rem, 4vh, 10rem) clamp(2.5rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3rem);
}

.pi-impact__heading {
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.pi-impact__body {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--color-ink-mid);
}

.pi-impact__body p + p {
  margin-top: 1em;
}

.pi-impact__image {
  position: relative;
  overflow: hidden;
  background-color: var(--color-ink-ghost);
  min-height: 480px;
}

.pi-impact__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Testimonial: image left / quote right ───────────────────────── */
.pi-testimonial {
  display: grid;
  grid-template-columns: 35fr 65fr;
  border-bottom: 1px solid var(--color-border);
  padding-top: clamp(5rem, 10vh, 7.5rem);
  padding-bottom: clamp(5rem, 10vh, 7.5rem);
}

.pi-testimonial__image {
  position: relative;
  overflow: hidden;
  background-color: var(--color-ink-ghost);
  min-height: 400px;
}

.pi-testimonial__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pi-testimonial__content {
  padding: clamp(3rem, 5vh, 10rem) clamp(2.5rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.pi-testimonial__marks {
  font-size: 5rem;
  font-weight: 200;
  color: var(--color-ink-faint);
  line-height: 0.6;
  display: block;
  margin-bottom: 1.5rem;
}

.pi-testimonial__quote {
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.pi-testimonial__attr {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
  margin-top: 0.5rem;
}

/* ── Showcase image (standalone, between impact and testimonial) ──── */
.pi-showcase {
  position: relative;
  overflow: hidden;
  background-color: var(--color-ink-ghost);
  aspect-ratio: 4/3;
}

.pi-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Autres projets ──────────────────────────────────────────────── */
.pi-others {
  background-color: var(--color-dark-bg);
  padding: clamp(3rem, 7vh, 5rem) var(--container-x) 0;
}

.pi-others__label {
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  line-height: 1.18;
  color: var(--color-dark-ink);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.pi-others__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: rgba(247, 245, 240, 0.08);
}

.pi-others__card {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--color-dark-surface, #111);
  aspect-ratio: 4/3;
  text-decoration: none;
}

.pi-others__card__media {
  position: absolute;
  inset: 0;
}

.pi-others__card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.pi-others__card:hover .pi-others__card__media img {
  transform: scale(1.03);
}

.pi-others__card:hover .pi-others__card__title {
  transform: scale(1.03);
}

.pi-others__card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.pi-others__card__cat {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.45);
  margin-bottom: 0.4rem;
  display: block;
}

.pi-others__card__title {
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  font-weight: 300;
  color: var(--color-dark-ink);
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  transition: transform var(--dur-cinematic) var(--ease-out);
  transform-origin: bottom left;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pi-intro { grid-template-columns: 1fr; }
  .pi-intro__image { min-height: 50vw; }
  .pi-impact { grid-template-columns: 1fr; }
  .pi-impact__heading { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .pi-impact__image { min-height: 60vw; }
  .pi-testimonial { grid-template-columns: 1fr; }
  .pi-testimonial__image { min-height: 80vw; }
  .pi-testimonial__quote { font-size: clamp(1.3rem, 4vw, 2rem); }
}

@media (max-width: 700px) {
  .pi-fullbleed { aspect-ratio: 4/3; }
  .pi-showcase { aspect-ratio: 4/3; }
  .pi-grid { grid-template-columns: 1fr; }
  .pi-grid__item--wide { grid-column: span 1; aspect-ratio: 4/3; }
  .pi-others__grid { grid-template-columns: 1fr; }
  .pi-intro__headline { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .pi-impact__heading { font-size: clamp(1.8rem, 7vw, 3rem); }
  .hero-media__actions {display: contents;}
  .link-arrow--light {margin-left: 27px;}
}
