/* =========================================================
   NEODIGITAL — main.css
   Design: blanc cassé / noir / couleurs pleines
   Style: Pentagram (grille, typo, sobriété)
          × Ramotion (bento asymétrique, pills, hovers)
   ========================================================= */


/* ---------------------------------------------------------
   1. RESET & BASE
   --------------------------------------------------------- */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }


/* ---------------------------------------------------------
   2. DESIGN TOKENS
   --------------------------------------------------------- */

:root {
  /* Palette — editorial white + anthracite, touch gold (neoprodwedding DNA) */
  --bg: #FFFFFF;
  --bg-alt: #FAF8F4;           /* crème très léger pour alternance */
  --fg: #1A1A1A;               /* anthracite */
  --fg-muted: #6E6A64;
  --fg-soft: #B5B0A8;
  --rule: #ECE8E1;

  /* Accent — or/champagne discret (dose homéopathique) */
  --accent: #C9A96E;
  --accent-soft: #F3EBDA;

  /* Legacy couleurs — dark neutral pour overlays photo */
  --c-yellow: #1A1712;
  --c-blue:   #141721;
  --c-red:    #1E1515;
  --c-pink:   #2A1F24;
  --c-green:  #151B17;
  --c-orange: #1D1712;
  --c-purple: #16141C;
  --c-sand:   #E8DFCD;

  /* Typographie — Jost (display + body) + Nunito (body léger) + Dancing Script pour accent rare */
  --ff-display: 'Jost', 'Helvetica Neue', system-ui, sans-serif;
  --ff-body:    'Nunito', 'Helvetica Neue', system-ui, sans-serif;
  --ff-script:  'Dancing Script', 'Snell Roundhand', cursive;
  --ff-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Echelle typo — éditoriale, poids léger, uppercase spacé */
  --fs-hero:    clamp(44px, 7vw, 108px);
  --fs-display: clamp(36px, 5.2vw, 82px);
  --fs-h2:      clamp(28px, 3.4vw, 56px);
  --fs-h3:      clamp(20px, 1.9vw, 28px);
  --fs-body:    16px;
  --fs-lead:    clamp(17px, 1.3vw, 20px);
  --fs-label:   11px;

  /* Espacement — plus d'air, éditorial */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Layout */
  --max-w: 1480px;
  --pad-x: clamp(20px, 4vw, 48px);
  --gutter: clamp(12px, 1vw, 20px);

  /* Radii — quasi plat (neoprod : angles droits) */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;
  --r-xl: 6px;

  /* Shadows — ultra discrètes (éditorial flat) */
  --sh-sm: 0 1px 0 rgba(26,26,26,0.04);
  --sh-md: 0 4px 18px -6px rgba(26,26,26,0.08);
  --sh-lg: 0 12px 36px -12px rgba(26,26,26,0.12);

  /* Animation — easing signature neoprod */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --dur: 320ms;
  --dur-slow: 900ms;
}


/* ---------------------------------------------------------
   3. TYPO UTILITIES
   --------------------------------------------------------- */

.h-display {
  font-family: var(--ff-display);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.h-hero {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.h-2 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h-3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Accent script — usage rare, pour numéros/signatures */
.h-script {
  font-family: var(--ff-script);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

.label {
  font-family: var(--ff-display);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 56ch;
}

.muted { color: var(--fg-muted); }


/* ---------------------------------------------------------
   4. LAYOUT HELPERS
   --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--rule);
}

.section--plain { border-top: none; }

.section__head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-lg);
}

@media (max-width: 760px) {
  .section__head {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

.section__index {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  padding-top: 0.4rem;
}


/* ---------------------------------------------------------
   5. TOP NAV
   --------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: transform 320ms var(--ease-out),
              background 320ms var(--ease-out),
              border-color 320ms var(--ease-out),
              color 320ms var(--ease-out);
}

.nav.is-solid {
  background: var(--bg);
  border-bottom-color: var(--rule);
  color: var(--fg);
}

/* Dark hero state : assure contraste du menu sur vidéo */
.nav .nav__status {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.45);
}

.nav.is-solid .nav__status {
  color: var(--fg-muted);
  border-color: var(--rule);
}

.nav .nav__lang span { color: rgba(255, 255, 255, 0.65); }
.nav.is-solid .nav__lang span { color: var(--fg-muted); }

.nav__logo {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav__logo::after {
  content: '®';
  font-size: 10px;
  vertical-align: super;
  margin-left: 2px;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
  transition: color var(--dur) var(--ease-out);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--dur) var(--ease-out);
}

.nav__links a:hover::after { right: 0; }

.nav__lang {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.nav__lang span { color: var(--fg-muted); }

@media (max-width: 620px) {
  .nav__links { display: none; }
}


/* ---------------------------------------------------------
   6. HERO — vidéo reel en background fullscreen
   --------------------------------------------------------- */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  padding: 0;
  color: #fff;
  overflow: hidden;
  /* cancel container padding, we reset below */
  max-width: 100%;
  margin: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.38) 55%, rgba(10,10,10,0.78) 100%);
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-inline: var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  padding-top: calc(60px + 1.5rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}

.hero__grid > * {
  width: 100%;
}

.hero .pill {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.hero .pill:hover {
  background: #fff;
  color: var(--fg);
}

.hero .pill--dot::before {
  background: var(--c-green);
}

.hero .lead {
  color: rgba(255,255,255,0.9);
}

.hero .cta {
  background: #fff;
  color: var(--fg);
}

.hero .cta:hover {
  background: rgba(255,255,255,0.9);
}

.hero .cta__arrow {
  background: var(--fg);
  color: #fff;
}

.hero .cta--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.hero .cta--ghost:hover {
  background: #fff;
  color: var(--fg);
}

.hero .cta--ghost .cta__arrow {
  background: #fff;
  color: var(--fg);
}

.hero .cta--ghost:hover .cta__arrow {
  background: var(--fg);
  color: #fff;
}

.hero__scroll-hint {
  position: absolute;
  right: var(--pad-x);
  bottom: 1.2rem;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-hint::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleX(0.4); opacity: 0.4; transform-origin: left; }
  50% { transform: scaleX(1); opacity: 1; transform-origin: left; }
}

.hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  max-width: 14ch;
  color: #fff;
}

/* Hero visual strip — 4 vignettes (legacy, masqué quand vidéo fullscreen) */
.hero__visual {
  display: none;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--gutter);
  margin-top: var(--space-lg);
  height: clamp(180px, 26vw, 360px);
}

.hero__visual__tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--fg);
}

.hero__visual__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms var(--ease-out);
}

.hero__visual__tile:hover img {
  transform: scale(1.04);
}

.hero__visual__tile__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,10,10,0.55);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

@media (max-width: 760px) {
  .hero__visual {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .hero__visual__tile { aspect-ratio: 4 / 3; }
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}

.hero__meta > div { grid-column: span 3; }
.hero__meta > div:first-child { grid-column: 1 / span 4; }

@media (max-width: 760px) {
  .hero__meta > div,
  .hero__meta > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }
}

.hero__meta h4 {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.hero__meta p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
}


/* ---------------------------------------------------------
   7. PROJECTS GRID — cases couleur pleines (coeur Pentagram)
   --------------------------------------------------------- */

.projects {
  padding-top: var(--space-lg);
}

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

.project {
  grid-column: span 6;
  position: relative;
  aspect-ratio: 4 / 3;
  padding: clamp(20px, 2.5vw, 36px);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--r-lg, 28px);
  box-shadow: var(--sh-md);
  transition: transform 500ms var(--ease-spring, var(--ease-out)),
              box-shadow 500ms var(--ease-out);
  cursor: pointer;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.project--tall { grid-column: span 6; aspect-ratio: 3 / 4; }
.project--wide { grid-column: span 12; aspect-ratio: 21 / 9; }

@media (max-width: 820px) {
  .project,
  .project--tall,
  .project--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project__title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 3.2vw, 56px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-top: auto;
}

.project__sub {
  font-size: 14px;
  margin-top: 0.5rem;
  opacity: 0.75;
}

/* Project base = neutral dark placeholder under photo */
.project--yellow,
.project--blue,
.project--red,
.project--pink,
.project--green,
.project--orange,
.project--purple,
.project--sand,
.project--black { background: var(--fg); color: #fff; }

/* Image layer — photo réelle avec overlay couleur */
.project__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}

.project:hover .project__media img {
  transform: scale(1.04);
}

/* Unified neutral gradient overlay — let photos dominate (taste-skill) */
.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.10) 0%,
    rgba(10,10,10,0.28) 55%,
    rgba(10,10,10,0.78) 100%
  );
  pointer-events: none;
}

/* One featured accent card — gives the eye a focal point */
.project--accent .project__media::after {
  background: linear-gradient(
    180deg,
    rgba(193,61,91,0.08) 0%,
    rgba(10,10,10,0.34) 55%,
    rgba(10,10,10,0.82) 100%
  );
}

/* Contenu au-dessus de la média */
.project > *:not(.project__media) {
  position: relative;
  z-index: 1;
}


/* ---------------------------------------------------------
   8. WHAT WE DO — liste numérotée
   --------------------------------------------------------- */

.capabilities__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.cap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--rule);
  transition: background var(--dur) var(--ease-out);
}

.cap:last-child { border-bottom: 1px solid var(--rule); }

.cap__num {
  grid-column: 1 / span 1;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  padding-top: 0.2rem;
}

.cap__title {
  grid-column: 2 / span 5;
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.2vw, 56px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.cap__body {
  grid-column: 8 / -1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  max-width: 52ch;
}

@media (max-width: 820px) {
  .cap__num { grid-column: 1 / span 2; }
  .cap__title { grid-column: 3 / -1; margin-bottom: 1rem; }
  .cap__body  { grid-column: 3 / -1; }
}


/* ---------------------------------------------------------
   9. APPROACH / 3 colonnes simples
   --------------------------------------------------------- */

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

.approach__col {
  grid-column: span 4;
  padding-top: var(--space-md);
  border-top: 1px solid var(--fg);
}

@media (max-width: 760px) {
  .approach__col { grid-column: 1 / -1; }
}

.approach__num {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.approach__title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
}

.approach__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}


/* ---------------------------------------------------------
   10. STATEMENT — gros bloc éditorial
   --------------------------------------------------------- */

.statement {
  padding-block: var(--space-2xl);
}

.statement__body {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.2vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.statement__body em {
  font-style: italic;
  font-weight: 400;
}


/* ---------------------------------------------------------
   11. CLIENTS — logos / liste
   --------------------------------------------------------- */

.clients__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  margin-top: var(--space-md);
}

.clients__row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.clients__row:last-child { border-bottom: 1px solid var(--rule); }

.clients__row span:last-child {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0;
}


/* ---------------------------------------------------------
   12. CONTACT
   --------------------------------------------------------- */

.contact {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: none;
}

.contact .section__index,
.contact .label { color: var(--bg); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.contact__title {
  grid-column: 1 / -1;
  font-family: var(--ff-display);
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.contact__col {
  grid-column: span 3;
  border-top: 1px solid rgba(244,243,238,0.3);
  padding-top: var(--space-sm);
}

@media (max-width: 820px) {
  .contact__col { grid-column: span 6; margin-bottom: 1.5rem; }
}
@media (max-width: 520px) {
  .contact__col { grid-column: 1 / -1; }
}

.contact__col h4 {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.contact__col a,
.contact__col p {
  font-size: 15px;
  line-height: 1.5;
  display: block;
  color: var(--bg);
}

.contact__col a:hover { text-decoration: underline; }


/* ---------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------- */

.footer {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(244,243,238,0.2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--fg-muted);
}

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


/* ---------------------------------------------------------
   14. REVEAL / ANIMATION HELPERS
   --------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}


/* ---------------------------------------------------------
   15. PRELOADER (minimal)
   --------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms var(--ease-out), visibility 500ms;
}

.preloader__mark {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ---------------------------------------------------------
   BLENND LAYER — marquee, text reveal, transitions
   --------------------------------------------------------- */

/* Marquee — défilement horizontal infini */
.marquee {
  overflow: hidden;
  padding: 1.8rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  position: relative;
}

.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee__item {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee__item::after {
  content: '●';
  font-size: 0.5em;
  color: var(--c-red);
  margin-left: 3rem;
}

.marquee--dark {
  background: var(--fg);
  color: var(--bg);
  border: none;
}

.marquee--slow .marquee__track { animation-duration: 48s; }

.marquee--reverse .marquee__track { animation-direction: reverse; }

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


/* Text reveal — mot par mot, mask clip */
.reveal-words {
  display: inline-block;
}

.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.reveal-word__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal-words.is-in .reveal-word__inner {
  transform: translateY(0);
}


/* Line reveal — clip-path sur ligne entière */
[data-reveal-line] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-out);
}

[data-reveal-line].is-in {
  clip-path: inset(0 0 0 0);
}


/* Section flip noir — statement en inversé */
.statement--dark {
  background: var(--fg);
  color: var(--bg);
  border-top-color: var(--fg);
}

.statement--dark .section__index { color: var(--bg); opacity: 0.5; }


/* Parallax helpers */
.parallax {
  will-change: transform;
}


/* ---------------------------------------------------------
   SHOWREEL — vidéo pleine largeur + overlay contenu
   --------------------------------------------------------- */

.showreel {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--r-lg, 28px);
  background: var(--fg);
  margin-top: var(--space-lg);
  box-shadow: var(--sh-lg);
}

.showreel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.showreel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.showreel__meta {
  position: absolute;
  left: clamp(18px, 2.5vw, 36px);
  right: clamp(18px, 2.5vw, 36px);
  bottom: clamp(18px, 2.5vw, 36px);
  color: #fff;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.showreel__title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 26ch;
}

.showreel__label {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

/* Motion grid — galerie vidéos portfolio */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: var(--space-lg);
}

.motion-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md, 3px);
  background: var(--fg);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: transform 500ms var(--ease-spring, var(--ease-out)),
              box-shadow 500ms var(--ease-out);
}
.motion-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.motion-tile--lg { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.motion-tile--md { grid-column: span 8; aspect-ratio: 16 / 9; }
.motion-tile--sm { grid-column: span 4; }
.motion-tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.motion-grid { grid-auto-rows: minmax(180px, auto); }

/* Editorial variant — tighter gutter, flatter, hairline rule */
.motion-grid--editorial {
  gap: clamp(6px, 0.6vw, 10px);
  grid-auto-rows: minmax(190px, auto);
}
.motion-grid--editorial .motion-tile {
  border-radius: var(--r-sm, 2px);
  box-shadow: none;
}
.motion-grid--editorial .motion-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.motion-grid--editorial .motion-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(26,26,26,0.04);
  z-index: 1;
}
.motion-grid--editorial .motion-tile__tag {
  font-family: var(--ff-display, inherit);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  background: rgba(255,255,255,0.92);
  color: var(--fg);
  border-radius: 0;
  padding: 0.4rem 0.65rem;
  backdrop-filter: blur(4px);
}
.motion-grid--editorial .motion-tile__play {
  background: rgba(255,255,255,0.96);
  box-shadow: var(--sh-sm);
  width: 40px; height: 40px;
}

@media (max-width: 820px) {
  .motion-tile--lg, .motion-tile--md, .motion-tile--sm, .motion-tile--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* Video controls — sound + fullscreen — appear bottom-right on hover */
.vctrl {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  gap: 6px;
  z-index: 4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  pointer-events: none;
}
.motion-tile:hover .vctrl,
.motion-tile:focus-within .vctrl,
.hero__video:hover .vctrl,
.hero__video:focus-within .vctrl,
.vctrl.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.vctrl__btn {
  appearance: none;
  border: 0;
  background: rgba(10,10,10,0.55);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.vctrl__btn:hover { background: rgba(10,10,10,0.82); transform: translateY(-1px); }
.vctrl__btn.is-on { background: #fff; color: var(--fg); }
.vctrl__ico { width: 15px; height: 15px; display: block; }
.vctrl--lg { right: 18px; bottom: 18px; gap: 8px; }
.vctrl--lg .vctrl__btn { width: 38px; height: 38px; }
.vctrl--lg .vctrl__ico { width: 18px; height: 18px; }
/* Ensure controls sit above tile overlays */
.motion-tile__play { z-index: 2; }
.vctrl { z-index: 5; }

.motion-tile video,
.motion-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
  pointer-events: none;
}

.motion-tile:hover video,
.motion-tile:hover img {
  transform: scale(1.04);
}

.motion-tile__tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,10,10,0.55);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.motion-tile__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--sh-md);
}
.motion-tile__play svg {
  width: 14px; height: 14px;
  fill: currentColor;
  transform: translateX(1px);
}

/* Hero video tile variant */
.hero__visual__tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------------------------------------------------------
   OBJECT-POSITION PAR IMAGE — évite de couper les visages
   --------------------------------------------------------- */

/* Portraits — visage haut centre, décalage vertical vers le visage réel */
img[src$="corporate-factory.jpg"]   { object-position: center 12%; }
img[src$="music-portrait.jpg"]      { object-position: center 15%; }
img[src$="corporate-portrait.jpg"]  { object-position: center 20%; }
img[src$="corporate-boardroom.jpg"] { object-position: center 15%; }
img[src$="music-stage.jpg"]         { object-position: center 20%; }
img[src$="music-concert.jpg"]       { object-position: 55% 15%; }
img[src$="ai-generated.jpg"]        { object-position: center 62%; }
img[src$="ai-portrait.jpg"]         { object-position: center 20%; }
img[src$="corporate-aerial.jpg"]    { object-position: center 25%; }
img[src$="music-live.jpg"]          { object-position: center 25%; }
img[src$="music-studio.jpg"]        { object-position: center 25%; }

/* Architectures / scènes — pas de visage, ancrage visuel intéressant */
img[src$="realestate-pool.jpg"]      { object-position: center 55%; }
img[src$="realestate-villa.jpg"]     { object-position: center center; }
img[src$="realestate-interior.jpg"]  { object-position: center 45%; }
img[src$="realestate-terrace.jpg"]   { object-position: center 40%; }
img[src$="realestate-penthouse.jpg"] { object-position: center 45%; }
img[src$="realestate-drone.jpg"]     { object-position: center center; }
img[src$="corporate-industry.jpg"]   { object-position: center 45%; }
img[src$="corporate-architecture.jpg"] { object-position: center 40%; }
img[src$="corporate-action.jpg"]     { object-position: center 30%; }
img[src$="home-cinema.jpg"]          { object-position: center 40%; }
img[src$="home-editorial.jpg"]       { object-position: center 65%; }
img[src$="ai-abstract.jpg"]          { object-position: center center; }


/* ---------------------------------------------------------
   RAMOTION LAYER — badges, bento, cards, CTAs
   --------------------------------------------------------- */

/* Pills / badges — Ramotion signature */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: transparent;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.pill:hover {
  background: var(--fg);
  color: var(--bg);
}

.pill--filled {
  background: var(--fg);
  color: var(--bg);
}

.pill--dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  display: inline-block;
}

.pill--small {
  padding: 0.3rem 0.7rem;
  font-size: 11px;
  letter-spacing: 0.02em;
}


/* CTA button — Ramotion rounded */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.cta:hover {
  transform: translateY(-2px);
  background: #222;
}

.cta__arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease-spring, var(--ease-out));
}
.cta__arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta:hover .cta__arrow { transform: rotate(-45deg); }

.cta--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}

.cta--ghost:hover { background: var(--fg); color: var(--bg); }
.cta--ghost .cta__arrow { background: var(--fg); color: var(--bg); }
.cta--ghost:hover .cta__arrow { background: var(--bg); color: var(--fg); }


/* Hero CTAs row */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: var(--space-md);
}


/* BENTO GRID — Ramotion style, cases asymétriques */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: var(--gutter);
}

.bento .project {
  aspect-ratio: auto;
  min-height: 100%;
}

.bento__hero {
  grid-column: span 8;
  grid-row: span 2;
}

.bento__side {
  grid-column: span 4;
  grid-row: span 1;
}

.bento__third {
  grid-column: span 4;
  grid-row: span 1;
}

.bento__wide {
  grid-column: span 12;
  grid-row: span 1;
  min-height: 320px;
}

@media (max-width: 920px) {
  .bento__hero, .bento__side, .bento__third {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .bento__wide { grid-column: 1 / -1; }
  .bento { grid-auto-rows: minmax(220px, auto); }
}


/* Project enhanced — hover glow + scale */
.project {
  border-radius: 18px;
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.project:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.8rem;
}

.project__tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(0,0,0,0.12);
  color: inherit;
}

.project--blue .project__tag,
.project--black .project__tag,
.project--red .project__tag,
.project--green .project__tag,
.project--purple .project__tag,
.project--orange .project__tag {
  background: rgba(255,255,255,0.18);
}


/* Capability cards — asymmetric zigzag grid (taste-skill) */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.cap-card {
  grid-column: span 4;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg, 28px);
  padding: 2rem;
  box-shadow: var(--sh-sm);
  transition: transform 500ms var(--ease-spring, var(--ease-out)),
              box-shadow 500ms var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--fg);
  box-shadow: var(--sh-lg);
}

/* Asymmetric 7/5 zigzag rhythm */
.cap-card:nth-child(1) { grid-column: span 7; }
.cap-card:nth-child(2) { grid-column: span 5; }
.cap-card:nth-child(3) { grid-column: span 5; }
.cap-card:nth-child(4) { grid-column: span 7; }
.cap-card:nth-child(5) { grid-column: span 7; }
.cap-card:nth-child(6) { grid-column: span 5; }

/* Visual — vignette image en haut de la card */
.cap-card__visual {
  position: relative;
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.4rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg, 28px) var(--r-lg, 28px) 0 0;
  background: var(--fg);
}

.cap-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}

.cap-card:hover .cap-card__visual img {
  transform: scale(1.03);
}

@media (max-width: 920px) {
  .cap-card,
  .cap-card:nth-child(1),
  .cap-card:nth-child(2),
  .cap-card:nth-child(3),
  .cap-card:nth-child(4),
  .cap-card:nth-child(5),
  .cap-card:nth-child(6) { grid-column: span 6; }
}
@media (max-width: 600px) {
  .cap-card,
  .cap-card:nth-child(1),
  .cap-card:nth-child(2),
  .cap-card:nth-child(3),
  .cap-card:nth-child(4),
  .cap-card:nth-child(5),
  .cap-card:nth-child(6) { grid-column: 1 / -1; }
}

.cap-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 1.2rem;
}

.cap-card__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.cap-card__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.cap-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cap-card__tags .tag {
  font-size: 11px;
  padding: 0.25rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg);
}


/* Metrics strip — Ramotion vibe */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

.metric__num {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric__label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
}


/* Status pill in nav */
.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.nav__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ---------------------------------------------------------
   16. REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------
   ARCHIVE — masonry gallery, sector tabs
   --------------------------------------------------------- */
.archive {
  padding-inline: var(--pad-x);
}
.archive .section__hd {
  max-width: var(--max-w);
  margin: 0 auto var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: end;
}
.archive .section__hd .label {
  grid-column: 1;
  align-self: start;
}
.archive .section__hd .h-2 {
  grid-column: 1;
}
.archive .section__hd .lead {
  grid-column: 2;
  font-size: clamp(16px, 1.15vw, 19px);
  color: var(--fg-muted);
  max-width: 52ch;
}
@media (max-width: 820px) {
  .archive .section__hd {
    grid-template-columns: 1fr;
  }
  .archive .section__hd .lead { grid-column: 1; }
}

.archive__tabs {
  max-width: var(--max-w);
  margin: 0 auto var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.archive__tab {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 220ms var(--ease-out),
              color 220ms var(--ease-out),
              border-color 220ms var(--ease-out);
}
.archive__tab:hover {
  color: var(--fg);
  background: var(--bg-alt);
  border-color: var(--rule);
}
.archive__tab.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.archive__tab-count {
  font-family: var(--ff-mono);
  font-size: 11px;
  opacity: 0.65;
  font-weight: 400;
}
.archive__tab.is-active .archive__tab-count {
  opacity: 0.5;
}

.archive__grids {
  max-width: var(--max-w);
  margin: 0 auto;
}

.archive__grid {
  display: none;
  columns: 4;
  column-gap: var(--gutter);
  animation: archiveFade 320ms var(--ease-out);
}
.archive__grid.is-active { display: block; }

@keyframes archiveFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) { .archive__grid { columns: 3; } }
@media (max-width: 760px)  { .archive__grid { columns: 2; } }
@media (max-width: 420px)  { .archive__grid { columns: 1; } }

.archive__item {
  break-inside: avoid;
  margin: 0 0 var(--gutter);
  border-radius: var(--r-md, 20px);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--sh-sm);
  position: relative;
  cursor: zoom-in;
  transform: translateZ(0);
  transition: transform 500ms var(--ease-spring, var(--ease-out)),
              box-shadow 500ms var(--ease-out);
}
.archive__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.archive__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 900ms var(--ease-out);
}
.archive__item:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.archive-lb {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: archiveFade 240ms var(--ease-out);
}
.archive-lb.is-open { display: flex; }
.archive-lb img {
  max-width: min(1600px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md, 20px);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
}
.archive-lb__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
}
.archive-lb__close:hover { background: rgba(255,255,255,0.2); }

/* Video lightbox for motion tiles */
.video-lb {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.video-lb.is-open { display: flex; }
.video-lb video {
  max-width: min(1400px, 94vw);
  max-height: 90vh;
  border-radius: var(--r-md, 4px);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.7);
  outline: none;
}
.video-lb__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  z-index: 2;
  transition: background 200ms;
}
.video-lb__close:hover { background: rgba(255,255,255,0.25); }


/* ---------------------------------------------------------
   WEB & SOCIAL — dedicated section
   --------------------------------------------------------- */
.web-social { background: var(--bg); }
.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  margin-top: var(--space-md);
}
@media (max-width: 980px) { .ws-grid { grid-template-columns: 1fr; } }

.ws-card {
  position: relative;
  padding: clamp(22px, 2vw, 32px);
  background: var(--bg-alt, #f4f3ee);
  border: 1px solid rgba(26,26,26,0.06);
  border-radius: var(--r-md, 3px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.ws-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: rgba(26,26,26,0.14);
}
.ws-card__index {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--fg);
}
.ws-card--web    .ws-card__index { background: var(--c-blue, #2f4cff); }
.ws-card--social .ws-card__index { background: var(--c-red, #e03131); }
.ws-card--growth .ws-card__index { background: var(--c-purple, #6b3df5); }

.ws-card__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.ws-card__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  opacity: 0.82;
  margin: 0;
}
.ws-card__list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.78;
  border-top: 1px solid rgba(26,26,26,0.08);
  padding-top: 14px;
}
.ws-card__list li { padding-left: 14px; position: relative; }
.ws-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px; height: 1px;
  background: var(--fg);
  opacity: 0.6;
}

.ws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(26,26,26,0.08);
}
@media (max-width: 700px) { .ws-stats { grid-template-columns: repeat(2, 1fr); } }
.ws-stats > div { text-align: left; }


/* =========================================================
   Z. PRO MAX POLISH (typography, a11y, depth, motion)
   Appended post-redesign-skill audit. Safe to tweak/remove.
   ========================================================= */

/* --- Tinted off-white to replace pure #FFFFFF --- */
:root {
  --bg: #FCFAF7;           /* warm off-white, kills the "AI white" feel */
  --bg-tint: rgba(201, 169, 110, 0.035);  /* gold-tinted wash for sections */
  --sh-gold-sm: 0 1px 0 rgba(92, 64, 16, 0.04);
  --sh-gold-md: 0 6px 24px -10px rgba(92, 64, 16, 0.10);
  --sh-gold-lg: 0 18px 48px -18px rgba(92, 64, 16, 0.14);
  --ease-spring-soft: cubic-bezier(0.34, 1.28, 0.64, 1);
}

/* --- Smooth scroll anchor behavior + nicer selection --- */
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: var(--fg); }

/* --- Skip-to-content (a11y) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 3px;
}

/* --- Visible focus rings (keyboard users) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav a:focus-visible,
.cta:focus-visible,
.cap-card:focus-visible {
  outline-offset: 4px;
}

/* --- Headline type polish: balance wrapping, tabular nums --- */
.h-hero, .h-display, .h-2, .h-3,
.hero__title, .statement__body, .contact__title, .bento-card__title,
.ws-card__title {
  text-wrap: balance;
}
.lead { text-wrap: pretty; }

/* Stats/numbers use tabular figures so they line up */
.metric__num, .ws-stat__num, .hero__meta,
.section__index {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

/* Upgrade section index to mono — more editorial */
.section__index {
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* --- Active / pressed button state (physical feedback) --- */
.cta:active,
.cap-card:active,
.motion-tile__play:active,
.vctrl__btn:active {
  transform: translateY(1px) scale(0.995);
  transition-duration: 80ms;
}

/* Hover lift on service/ws cards — subtle */
.cap-card {
  transition: transform 420ms var(--ease-spring-soft),
              box-shadow 420ms var(--ease-out),
              border-color 420ms var(--ease-out);
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-gold-md);
}
.ws-card {
  transition: transform 420ms var(--ease-spring-soft),
              box-shadow 420ms var(--ease-out);
}
.ws-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-gold-md);
}

/* --- Grain overlay (breaks digital flatness) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* Darker bg sections keep their own feel — tone grain down */
.statement--dark::before,
.marquee--dark::before { opacity: 0; }

/* --- Clients list: editorial ledger upgrade --- */
.clients__row {
  position: relative;
  transition: padding-left 420ms var(--ease-out), color 320ms var(--ease-out);
}
.clients__row::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 520ms var(--ease-out);
  transform: translateY(-50%);
}
.clients__row:hover::before { width: 24px; }
.clients__row:hover { padding-left: 36px; }
.clients__row:hover > span:first-child { color: var(--accent); }

/* Numbers in metrics — heavier treatment */
.metric__num {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* --- Contact: gold underline on links on hover --- */
.contact__col a {
  position: relative;
  display: inline-block;
  transition: color 320ms var(--ease-out);
}
.contact__col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
.contact__col a:hover { color: var(--accent); }
.contact__col a:hover::after { transform: scaleX(1); }

/* --- Footer: tighten rhythm, add legal link styling --- */
.footer a {
  position: relative;
  transition: color 240ms var(--ease-out);
}
.footer a:hover { color: var(--accent); }

/* --- Reduce motion: opt out cleanly --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before { display: none; }
}

/* --- Dark system preference: keep editorial white (we WANT warm light)  --- */
/* (Intentionally no dark-mode override — brand stays consistent.) */


/* =========================================================
   Z.1 EDITORIAL TESTIMONIAL — pattern from 21st.dev adapted
   ========================================================= */

.editorial-tm { overflow: hidden; }

.etm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: var(--space-md);
  color: var(--bg);
}

.etm__index {
  font-family: var(--ff-display);
  font-weight: 200;
  font-size: clamp(96px, 13vw, 180px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: rgba(252, 250, 247, 0.10);
  font-variant-numeric: tabular-nums;
  user-select: none;
  transition: color 520ms var(--ease-out);
}

.etm__body {
  padding-top: clamp(8px, 1.5vw, 24px);
}

.etm__quotes {
  position: relative;
  min-height: clamp(160px, 22vw, 260px);
}

.etm__quote {
  position: absolute;
  inset: 0;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 24ch;
  color: var(--bg);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-spring-soft);
  margin: 0;
}

.etm__quote em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.etm__quote.is-active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.etm__meta { margin-top: clamp(24px, 4vw, 56px); }

.etm__author {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 320ms var(--ease-out);
}

.etm__author cite {
  font-style: normal;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--bg);
}

.etm__role {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(252, 250, 247, 0.55);
  text-transform: lowercase;
}

.etm__sep { color: rgba(252, 250, 247, 0.25); margin: 0 6px; }
.etm__company { color: rgba(252, 250, 247, 0.72); }

/* nav row */
.etm__nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(36px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(252, 250, 247, 0.08);
}

.etm__pips {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.etm__pip {
  background: transparent;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
}

.etm__pip span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(252, 250, 247, 0.22);
  transition: width 520ms var(--ease-out), background 320ms var(--ease-out);
}

.etm__pip:hover span {
  width: 34px;
  background: rgba(252, 250, 247, 0.5);
}

.etm__pip.is-active span {
  width: 52px;
  background: var(--bg);
}

.etm__counter {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(252, 250, 247, 0.45);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .etm { grid-template-columns: 1fr; gap: 0; }
  .etm__index { font-size: 96px; line-height: 0.9; margin-bottom: -16px; }
  .etm__nav { grid-column: 1; flex-wrap: wrap; gap: 16px; }
}


/* =========================================================
   Z.2 FX LAYER — cursor, letter-fx, magnetic (GSAP-driven)
   ========================================================= */

/* Hide native cursor on desktop so fx-cursor takes over */
@media (pointer: fine) {
  html { cursor: none; }
  a, button, input, textarea, .cta, .cap-card, .motion-tile { cursor: none; }
}

.fx-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: difference;
}

.fx-cursor__dot,
.fx-cursor__ring,
.fx-cursor__label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  will-change: transform, width, height, opacity;
}

.fx-cursor__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  transition: opacity 200ms ease, background 200ms ease;
}

.fx-cursor__ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width 380ms cubic-bezier(0.16,1,0.3,1),
              height 380ms cubic-bezier(0.16,1,0.3,1),
              background 280ms ease,
              border-color 280ms ease,
              opacity 200ms ease;
}

.fx-cursor__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  margin-top: 24px;
  transition: opacity 260ms ease;
}

.fx-cursor.is-link .fx-cursor__dot { opacity: 0; }
.fx-cursor.is-link .fx-cursor__ring {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.9);
}
.fx-cursor.is-video .fx-cursor__ring {
  width: 92px; height: 92px;
  background: rgba(255,255,255,0.18);
  border-width: 1px;
}
.fx-cursor.is-video .fx-cursor__label { opacity: 1; }

.fx-cursor.is-down .fx-cursor__ring {
  transform-origin: center center;
}
.fx-cursor.is-hidden { opacity: 0; transition: opacity 200ms ease; }

/* Hero letter split reveal */
.fx-letter {
  display: inline-block;
  line-height: 1;
  will-change: transform, opacity;
}
.hero__title { overflow: hidden; padding-bottom: 0.12em; }

/* Progressive image fade */
.fx-fade {
  opacity: 0;
  filter: blur(12px) saturate(0.6);
  transform: scale(1.02);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-fade.is-in {
  opacity: 1;
  filter: blur(0px) saturate(1);
  transform: scale(1);
}

/* Cap-cards in 3D tilt need perspective + smoother base transition */
.cap-card, .motion-tile, .bento-card {
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Make video tiles have gloss sweep on hover */
.motion-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%);
  pointer-events: none;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}
.motion-tile:hover::after { transform: translateX(120%); }

/* CTA arrow stronger animation */
.cta .cta__arrow { transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.cta:hover .cta__arrow { transform: translate(3px, -3px) !important; }

/* Metric numbers: bigger entrance */
.metric__num {
  display: inline-block;
  transform-origin: left bottom;
}
