/* ============================================================
   THE LIGHTERS — Design system
   ============================================================ */

:root{
  --bg:#0c0c0d;
  --bg-soft:#131314;
  --surface:#161617;
  --text:#f2f0e9;
  --text-dim:#c9c6bf;
  --muted:#8d8a83;
  --gold:#f3b51b;
  --line:#252525;
  --serif:'DM Serif Display', Didot, 'Bodoni 72', 'Times New Roman', serif;
  --sans:'DM Sans', Arial, sans-serif;
  --gutter:clamp(18px,4vw,64px);
  --max:1400px;
  --ease:cubic-bezier(.16,.8,.24,1);
  --header-h:78px;

  /* theme-aware tokens — redefined under [data-theme="light"] below */
  --header-glass-bg:rgba(12,12,13,.72);
  --header-glass-border:rgba(255,255,255,.08);
  --mobile-menu-bg:rgba(10,10,11,.98);
  --surface-invert:#fff;
  --overlay-strong:rgba(0,0,0,.92);
  --shadow-color:rgba(0,0,0,.4);
  --glow-color:255,255,255;

  /* text grays — lightest to darkest role, theme-aware */
  --gray-1:#dedad2;
  --gray-2:#c7c2b8;
  --gray-3:#b9b6ae;
  --gray-4:#a7a49c;
  --gray-5:#9a9791;
  --gray-6:#8d8a83;
  --gray-7:#85817a;
  --gray-8:#77736c;
  --gray-9:#6b6862;
  --gray-10:#4c4a45;

  /* tracked pointer position for the Apple-style cursor glow (set via JS) */
  --pointer-x:50%;
  --pointer-y:50%;
}

[data-theme="light"]{
  --bg:#f0eee6;
  --bg-soft:#e8e6dc;
  --surface:#e0ddd3;
  --text:#1a1915;
  --text-dim:#3d3b34;
  --muted:#847d6e;
  --line:#d8d5cb;

  --header-glass-bg:rgba(240,238,230,.80);
  --header-glass-border:rgba(20,18,14,.10);
  --mobile-menu-bg:rgba(240,238,230,.98);
  --surface-invert:#171512;
  --overlay-strong:rgba(20,18,14,.9);
  --shadow-color:rgba(60,50,30,.12);
  --glow-color:20,18,14;

  --gray-1:#3a362d;
  --gray-2:#433f35;
  --gray-3:#4c473c;
  --gray-4:#554f43;
  --gray-5:#5d574a;
  --gray-6:#645e50;
  --gray-7:#6c6656;
  --gray-8:#756e5d;
  --gray-9:#7d7664;
  --gray-10:#8c846f;
}

*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  background:var(--bg);
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  transition:background .5s var(--ease), color .5s var(--ease);
}

a{ color:inherit; text-decoration:none; }
button{ font:inherit; }
img{ max-width:100%; display:block; }
::selection{ background:var(--gold); color:#000; }

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

.skip-link{
  position:fixed; left:16px; top:-60px;
  background:var(--gold); color:#000;
  padding:10px 14px; z-index:1000;
  transition:top .25s var(--ease);
}
.skip-link:focus{ top:16px; }

/* ============================================================
   Header / Navbar — glass pill, always legible on scroll
   ============================================================ */

.site-header{
  position:fixed;
  left:0; right:0; top:0;
  z-index:200;
  display:flex;
  justify-content:center;
  padding:20px var(--gutter);
  pointer-events:none;
  /* Always visible by default — JS controls the entrance animation */
  opacity:0;
}

/* Pages without loader: JS adds .is-visible directly */
.site-header.is-visible{
  opacity:1;
}

/* Index page: JS adds .nav-ready to body after loader */
body.nav-ready .site-header{
  opacity:1;
}

.site-header-inner{
  pointer-events:auto;
  width:100%;
  max-width:calc(var(--max) - (var(--gutter) * 2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:12px 18px;
  border-radius:999px;
  background:transparent;
  border:1px solid transparent;
  box-shadow:none;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transform:translateY(0) scale(1);
  transition:
    background .7s cubic-bezier(.4,0,.2,1),
    border-color .7s cubic-bezier(.4,0,.2,1),
    box-shadow .7s cubic-bezier(.4,0,.2,1),
    padding .7s cubic-bezier(.4,0,.2,1),
    max-width .8s cubic-bezier(.34,1.1,.64,1),
    transform .7s cubic-bezier(.4,0,.2,1);
}

/* Apple-style tangible pointer glow — a soft light that tracks the cursor */
.site-header-inner:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:0;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(220px circle at var(--pointer-x) var(--pointer-y), rgba(var(--glow-color),.14), transparent 65%);
  transition:opacity .35s var(--ease);
}
.site-header-inner:hover:before{ opacity:1; }
.site-header-inner > *{ position:relative; z-index:1; }

/* Scrolled state: liquid glass pill — Dynamic Island style */
.site-header.is-compact .site-header-inner{
  background:var(--header-glass-bg);
  backdrop-filter:blur(32px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter:blur(32px) saturate(200%) brightness(1.06);
  border-color:var(--header-glass-border);
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 12px 40px var(--shadow-color),
    0 0 0 .5px rgba(255,255,255,.08);
  max-width:min(760px, calc(100% - (var(--gutter) * 2)));
  padding:10px 12px 10px 22px;
}
[data-theme="light"] .site-header.is-compact .site-header-inner{
  box-shadow:
    0 2px 0 rgba(255,255,255,.55) inset,
    0 12px 40px var(--shadow-color),
    0 0 0 .5px rgba(0,0,0,.06);
}

.brand{
  font-weight:700;
  letter-spacing:-.04em;
  font-size:18px;
  white-space:nowrap;
}

.nav{
  display:flex;
  gap:26px;
  font-size:12px;
  color:var(--gray-3);
}
.nav a{ position:relative; }
.nav a:hover,
.nav a.is-active{ color:var(--text); }
.nav a.is-active:after{
  content:"";
  position:absolute; left:0; right:0; bottom:-7px;
  height:1px; background:var(--gold);
}

.site-header.is-compact .nav{ gap:20px; }

.header-cta{
  background:var(--gold);
  color:#080808;
  padding:10px 18px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  border-radius:999px;
  white-space:nowrap;
  transition:transform .25s var(--ease);
}
.header-cta:hover{ transform:translateY(-1px); }

.menu-toggle{
  display:none;
  position:relative;
  background:none; border:0; color:var(--text);
  width:38px; height:38px;
  cursor:pointer;
}
.menu-toggle span{
  display:block; width:20px; height:1px;
  background:var(--text); margin:6px auto;
  transition:transform .35s var(--ease), opacity .25s var(--ease), background .3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2){
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-menu{
  display:none;
}

@media (prefers-reduced-motion:reduce){
  .site-header-inner{ transition:opacity .15s linear !important; transform:none !important; }
}

/* ============================================================
   Word-by-word title reveal (used on all big headings)
   ============================================================ */

[data-split="words"] .word{
  display:inline-block;
  overflow:hidden;
  vertical-align:top;
}
[data-split="words"] .word > span{
  display:inline-block;
  transform:translateY(115%) rotate(3deg);
  opacity:0;
  transition:transform .85s var(--ease), opacity .6s var(--ease);
  transition-delay:calc(var(--i, 0) * 55ms);
  will-change:transform;
}
[data-split="words"].is-revealed .word > span{
  transform:translateY(0) rotate(0deg);
  opacity:1;
}

@media (prefers-reduced-motion:reduce){
  [data-split="words"] .word > span{
    transition:opacity .3s linear;
    transform:none !important;
    opacity:1;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero{
  min-height:100svh;
  position:relative;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}

.hero-media{
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 50% 25%, rgba(243,181,27,.10), transparent 30%),
    linear-gradient(120deg, rgba(26,42,52,.58) 0%, rgba(14,19,24,.72) 55%, rgba(25,19,13,.72) 100%),
    url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=2200&q=85") center/cover;
  transform:translateY(var(--parallax-y, 0px)) scale(1.12);
  will-change:transform;
  transition:transform 0s; /* no CSS transition — JS handles it smoothly */
}

.hero-content{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--gutter) 9vh;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  column-gap:48px;
  row-gap:22px;
  align-items:end;
}
.hero-content .eyebrow{ grid-column:1/-1; }
#hero-title{ grid-column:1; }

.eyebrow,
.section-kicker,
.small-label{
  font-size:10px;
  letter-spacing:.18em;
  color:var(--gold);
  margin:0 0 18px;
  text-transform:uppercase;
}

/* Light theme: kickers become small dark pill badges for legibility */
[data-theme="light"] .section-kicker,
[data-theme="light"] .eyebrow,
[data-theme="light"] .small-label{
  display:inline-block;
  background:var(--text);
  color:#f5f4f1;
  padding:4px 10px;
  border-radius:999px;
  font-size:9px;
  letter-spacing:.16em;
}
/* Exceptions: kickers inside page-hero sit on dark image — keep gold */
[data-theme="light"] .page-hero .section-kicker,
[data-theme="light"] .works-hero .section-kicker,
[data-theme="light"] .hero .section-kicker,
[data-theme="light"] .hero .eyebrow{
  background:transparent;
  color:var(--gold);
  padding:0;
}

.hero h1{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(42px,7vw,128px);
  line-height:.88;
  letter-spacing:-.03em;
  margin:0;
  max-width:100%;
  overflow-wrap:break-word;
  word-break:keep-all;
  hyphens:none;
}

.hero-side{
  grid-column:2;
  align-self:end;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:76px auto;
  gap:18px;
  align-items:center;
  max-width:300px;
}
.play-button,
.circle-cta{
  border:0;
  background:var(--gold);
  color:#060606;
  width:76px; height:76px;
  border-radius:50%;
  display:grid; place-items:center;
  font-size:19px;
  cursor:pointer;
  transition:transform .3s var(--ease);
}
.play-button:hover,
.circle-cta:hover{ transform:scale(1.06); }
.hero-side .play-button{ grid-column:1/-1; grid-row:1; justify-self:start; }
.hero-side p{ grid-column:1; grid-row:2; margin:0; color:var(--gray-2); font-size:12px; }
.arrow-link{ grid-column:2; grid-row:2; color:var(--gold); font-size:24px; line-height:1; }

.scroll-cue{
  position:absolute;
  right:var(--gutter); bottom:26px;
  font-size:9px; color:#777;
  letter-spacing:.2em;
  writing-mode:vertical-rl;
}
.scroll-cue span{
  display:block; width:1px; height:36px;
  background:#777; margin:0 auto 8px;
}

/* ============================================================
   Sections — shared rhythm
   ============================================================ */

.section{
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(90px,13vw,190px) var(--gutter);
}

.intro{
  display:grid;
  grid-template-columns:1.1fr .8fr;
  gap:clamp(36px,8vw,140px);
  align-items:start;
}
.intro h2{
  font-size:clamp(38px,6vw,82px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:600;
  margin:0;
}
.intro h2 em,
.manifesto-big em,
.cta h2 em,
h1 em,
h2 em{
  font-family:var(--serif);
  font-weight:400;
  font-style:italic;
}
.intro-copy{
  max-width:460px;
  color:var(--gray-5);
  font-size:15px;
  padding-top:8px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  gap:32px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin-bottom:clamp(40px,6vw,72px);
}
.section-head h2{
  font-size:clamp(34px,6vw,78px);
  letter-spacing:-.045em;
  line-height:1.02;
  margin:0;
}
.text-link{ font-size:12px; color:var(--gray-3); transition:color .25s; }
.text-link:hover{ color:var(--text); }
.text-link span{ color:var(--gold); font-size:18px; margin-left:6px; }

/* Works */

.work-grid{
  display:flex;
  flex-direction:column;
  gap:clamp(56px,9vw,130px);
}
.work-media{
  display:block;
  position:relative;
  overflow:hidden;
  background:var(--surface);
  border-radius:18px;
}
.work-media--portrait,
.work-media--landscape{ aspect-ratio:16/9; }
.demo-image{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .6s;
}
.demo-image:after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
}
.demo-image--portrait{ background-image:linear-gradient(135deg,rgba(42,33,24,.16),rgba(13,13,13,.5)),url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1800&q=85"); }
.demo-image--landscape{ background-image:linear-gradient(135deg,rgba(26,36,32,.12),rgba(13,13,13,.48)),url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1800&q=85"); }
.work-media:hover .demo-image{ transform:scale(1.035); filter:saturate(1.05); }

.tag,
.work-view{
  position:absolute; top:18px;
  font-size:9px; letter-spacing:.15em;
  z-index:2;
}
.tag{ left:18px; color:var(--gray-1); }
.work-view{ right:18px; color:var(--gold); }

/* Play button revealed on hover/focus — shared by work cards and archive cards */
.media-play{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%) scale(.72);
  width:72px; height:72px;
  border-radius:50%;
  background:var(--gold);
  display:grid; place-items:center;
  z-index:3;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s var(--ease), transform .4s var(--ease);
}
.media-play svg{
  width:24px; height:24px;
  fill:#0c0c0c;
  margin-left:3px;
}
.work-media:hover .media-play,
.work-media:focus-visible .media-play,
.archive-media:hover .media-play,
.archive-media:focus-visible .media-play{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

@media (prefers-reduced-motion:reduce){
  .media-play{ transition:opacity .2s linear; }
}

.work-meta{ margin-top:24px; }
.work-meta > div{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; }
.work-meta span{ font-size:9px; letter-spacing:.15em; color:var(--gold); }
.work-meta h3{ font-size:clamp(20px,2.4vw,25px); line-height:1.1; margin:6px 0 0; letter-spacing:-.03em; font-weight:500; }
.work-meta p{ margin:10px 0 0; color:var(--gray-8); font-size:12px; max-width:420px; }

/* Manifesto */

.manifesto{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  align-items:end;
  gap:clamp(32px,8vw,160px);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.manifesto-big{
  font-family:var(--sans);
  font-weight:700;
  font-size:clamp(52px,11vw,170px);
  letter-spacing:-.06em;
  line-height:.86;
}
.manifesto-note{
  max-width:360px;
  color:#88847c;
  font-size:13px;
  padding-bottom:8px;
}

/* ============================================================
   Services (formerly "Legacy")
   ============================================================ */

.years{ color:var(--gray-9); font-size:11px; letter-spacing:.2em; white-space:nowrap; }

.legacy-timeline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:6px 0;
  margin-bottom:clamp(40px,6vw,64px);
}
.legacy-step{
  flex:1 1 150px;
  display:flex;
  align-items:baseline;
  gap:10px;
  background:none;
  border:0;
  color:var(--gray-9);
  padding:18px 14px;
  cursor:pointer;
  text-align:left;
  border-radius:4px;
  transition:color .3s, background .3s;
}
.legacy-step span{ font-family:var(--serif); font-size:15px; color:var(--gold); opacity:.7; }
.legacy-step strong{ font-size:12px; letter-spacing:.14em; font-weight:600; }
.legacy-step:hover{ color:var(--text); background:rgba(255,255,255,.03); }
.legacy-step.is-active{ color:var(--text); }
.legacy-step.is-active span{ opacity:1; }

.legacy-panels{ position:relative; }
.legacy-panel{
  display:grid;
  grid-template-columns:80px 1fr 1fr;
  gap:clamp(20px,4vw,40px);
  align-items:start;
  animation:panel-in .5s var(--ease);
}
@keyframes panel-in{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
.legacy-panel-number{ font-family:var(--serif); font-size:34px; color:var(--gold); }
.legacy-panel-main h3{
  font-size:clamp(28px,4.2vw,52px);
  line-height:1.05;
  letter-spacing:-.04em;
  margin:10px 0 0;
  max-width:600px;
}
.legacy-panel > p{
  color:var(--gray-7);
  font-size:13px;
  line-height:1.7;
  max-width:380px;
  margin:0;
  padding-top:8px;
}

@media (prefers-reduced-motion:reduce){
  .legacy-panel{ animation:none; }
}

/* Clients — horizontal auto-scroll marquee */

.clients-note{ font-size:10px; letter-spacing:.14em; color:var(--muted); white-space:nowrap; }

.logo-marquee-wrap{
  position:relative;
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:0;
}
/* fade edges */
.logo-marquee-wrap:before,
.logo-marquee-wrap:after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:clamp(60px,10vw,140px);
  z-index:2;
  pointer-events:none;
}
.logo-marquee-wrap:before{
  left:0;
  background:linear-gradient(to right, var(--bg), transparent);
}
.logo-marquee-wrap:after{
  right:0;
  background:linear-gradient(to left, var(--bg), transparent);
}

.logo-marquee{
  display:flex;
  width:max-content;
  animation:marquee-scroll 28s linear infinite;
}
.logo-marquee:hover{ animation-play-state:paused; }

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

/* duplicate track sits inside .logo-marquee via JS — no JS fallback: both tracks in HTML */
.logo-track{
  display:flex;
  align-items:center;
}

.client-logo{
  height:110px;
  min-width:180px;
  display:grid;
  place-items:center;
  color:var(--gray-10);
  font-size:11px;
  letter-spacing:.14em;
  padding:0 40px;
  border-right:1px solid var(--line);
  flex:none;
  transition:color .3s;
}
.client-logo:last-child{ border-right:none; }
.client-logo:hover{ color:var(--gray-4); }

/* legacy grid fallback — keep for non-marquee contexts */
.logo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}

/* CTA */

.cta{ padding-bottom:clamp(80px,10vw,120px); }
.cta h2{
  font-size:clamp(40px,7.5vw,110px);
  line-height:.88;
  letter-spacing:-.05em;
  margin:0 0 clamp(40px,6vw,70px);
}
.cta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:28px;
}
.contact-email{ font-size:clamp(18px,3vw,40px); letter-spacing:-.03em; word-break:break-word; }
.circle-cta{ width:84px; height:84px; font-size:24px; flex:none; }

/* Footer */

.site-footer{
  position:relative;
  z-index:1;
  background:var(--bg);
  border-top:1px solid var(--line);
  padding:56px var(--gutter) 40px;
  display:grid;
  grid-template-columns:1.8fr 1fr 1fr auto;
  gap:40px 24px;
  align-items:start;
  max-width:100%;
  font-size:11px;
  color:var(--muted);
  transition:background .5s var(--ease), border-color .5s var(--ease);
}
.footer-brand{ }
.footer-brand .brand{
  font-size:15px;
  font-weight:700;
  letter-spacing:-.04em;
  display:block;
  margin-bottom:12px;
}
.footer-tagline{
  font-size:12px;
  line-height:1.65;
  color:var(--muted);
  max-width:260px;
  margin:0 0 20px;
}
.footer-email{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--text);
  letter-spacing:-.01em;
  border-bottom:1px solid var(--line);
  padding-bottom:2px;
  transition:border-color .25s, color .25s;
}
.footer-email:hover{ color:var(--gold); border-color:var(--gold); }

.footer-nav-group h4{
  font-size:9px;
  letter-spacing:.16em;
  color:var(--muted);
  text-transform:uppercase;
  margin:0 0 16px;
  font-weight:600;
}
.footer-links{ display:grid; gap:10px; align-content:start; }
.footer-links a{ font-size:13px; transition:color .25s; color:var(--muted); }
.footer-links a:hover{ color:var(--text); }
.footer-sitemap-links{ display:grid; gap:10px; align-content:start; }
.footer-sitemap-links a{ font-size:13px; transition:color .25s; color:var(--muted); }
.footer-sitemap-links a:hover{ color:var(--text); }

.footer-social{ display:flex; flex-direction:column; gap:10px; }
.footer-social a{
  font-size:13px;
  color:var(--muted);
  transition:color .25s;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.footer-social a:hover{ color:var(--text); }
.footer-social a svg{
  width:14px; height:14px;
  stroke:currentColor;
  stroke-width:1.6;
  fill:none;
  flex:none;
}

.footer-bottom{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:24px;
  border-top:1px solid var(--line);
  gap:16px;
  flex-wrap:wrap;
}
.footer-bottom p{ margin:0; font-size:11px; color:var(--muted); opacity:.65; }
.muted{ color:var(--muted); opacity:.75; }

/* Theme toggle — small switch in the footer */

.theme-toggle{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.theme-toggle-label{
  font-size:9px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.theme-toggle-switch{
  position:relative;
  width:46px; height:26px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--bg-soft);
  cursor:pointer;
  padding:0;
  flex:none;
  transition:background .35s var(--ease), border-color .35s var(--ease);
}
.theme-toggle-switch:before{
  content:"";
  position:absolute;
  top:2px; left:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:var(--gold);
  transform:translateX(0);
  transition:transform .35s var(--ease);
  box-shadow:0 2px 6px rgba(0,0,0,.3);
}
[data-theme="light"] .theme-toggle-switch:before{
  transform:translateX(20px);
}
.theme-toggle-switch:focus-visible{
  outline:1px solid var(--gold);
  outline-offset:3px;
}

@media (max-width:900px){
  .theme-toggle{ justify-self:start; }
}

/* Video modal */

.video-modal{
  position:fixed; inset:0;
  background:var(--overlay-strong);
  display:none; place-items:center;
  z-index:300;
  padding:24px;
}
.video-modal.is-open{ display:grid; }
.modal-inner{ width:min(1000px,90vw); position:relative; }
.modal-close{
  position:absolute; right:-4px; top:-46px;
  border:0; background:none; color:var(--text);
  font-size:34px; cursor:pointer;
  line-height:1;
}
.video-placeholder{
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#171717,#0b0b0b);
  border:1px solid var(--line);
  display:grid; place-items:center;
  text-align:center;
  position:relative;
}
.video-placeholder span{ font-family:var(--serif); font-size:clamp(32px,7vw,96px); }
.video-placeholder small{ color:var(--gray-8); position:absolute; bottom:24px; left:50%; transform:translateX(-50%); white-space:nowrap; }

/* ============================================================
   Go-to-top button
   ============================================================ */

.go-top{
  position:fixed;
  right:clamp(16px,3vw,32px);
  bottom:clamp(16px,3vw,32px);
  z-index:150;
  width:48px; height:48px;
  border-radius:50%;
  border:1px solid var(--header-glass-border);
  background:var(--header-glass-bg);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:var(--text);
  display:grid; place-items:center;
  font-size:16px;
  cursor:pointer;
  opacity:0;
  isolation:isolate;
  overflow:hidden;
  transform:translateY(12px) scale(.9);
  pointer-events:none;
  transition:opacity .35s var(--ease), transform .35s var(--ease), background .25s, border-color .25s;
}
.go-top:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  z-index:0;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(60px circle at var(--pointer-x) var(--pointer-y), rgba(var(--glow-color),.22), transparent 70%);
  transition:opacity .35s var(--ease);
}
.go-top:hover:before{ opacity:1; }
.go-top span,
.go-top:after{ position:relative; z-index:1; }
.go-top.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.go-top:hover{
  transform:scale(1.12);
}
.go-top:active{
  transform:scale(0.9);
  transition:transform .1s var(--ease);
}

@media (prefers-reduced-motion:reduce){
  .go-top{ transition:opacity .2s linear; transform:none; }
}

/* ============================================================
   Cookie banner
   ============================================================ */

.cookie-banner{
  position:fixed;
  left:clamp(16px,3vw,28px);
  right:clamp(16px,3vw,28px);
  bottom:clamp(16px,3vw,28px);
  z-index:400;
  max-width:560px;
  margin:0 auto;
  background:var(--header-glass-bg);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  border:1px solid var(--header-glass-border);
  border-radius:16px;
  padding:22px 24px;
  box-shadow:0 20px 50px var(--shadow-color);
  display:flex;
  flex-direction:column;
  gap:16px;
  transform:translateY(140%);
  opacity:0;
  transition:transform .55s var(--ease), opacity .4s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.cookie-banner.is-visible{
  transform:translateY(0);
  opacity:1;
}
.cookie-banner p{
  margin:0;
  font-size:12.5px;
  line-height:1.65;
  color:var(--gray-3);
}
.cookie-banner a{ color:var(--gold); text-decoration:underline; text-underline-offset:2px; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-btn{
  flex:1 1 auto;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:var(--text);
  padding:10px 16px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  border-radius:999px;
  cursor:pointer;
  text-align:center;
  white-space:nowrap;
  transition:background .25s, border-color .25s, transform .2s;
}
.cookie-btn:hover{ transform:translateY(-1px); }
.cookie-btn--accept{ background:var(--gold); color:#080808; border-color:var(--gold); }

@media (prefers-reduced-motion:reduce){
  .cookie-banner{ transition:opacity .2s linear; transform:none; }
}

/* ============================================================
   Inner pages — shared hero / layout patterns
   ============================================================ */

.page-hero,
.works-hero{
  width:100%;
  margin:0;
  padding:clamp(150px,20vw,220px) var(--gutter) clamp(60px,8vw,100px);
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:clamp(32px,6vw,80px);
  align-items:end;
  position:relative;
  overflow:hidden;
}
.page-hero:before,
.works-hero:before{
  content:"";
  position:absolute;
  inset:-15%;
  background:
    linear-gradient(90deg,rgba(11,11,11,.96) 0%,rgba(11,11,11,.8) 48%,rgba(11,11,11,.52) 100%),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=2200&q=80") center/cover;
  transform:translateY(var(--parallax-y, 0px));
  will-change:transform;
  z-index:0;
}
.page-hero > *,
.works-hero > *{ position:relative; z-index:1; }
.page-hero-inner,
.works-hero-inner{
  max-width:var(--max);
  margin:0 auto;
  width:100%;
  display:contents;
}
.page-hero h1,
.works-hero h1{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(38px,6.5vw,96px);
  line-height:.98;
  letter-spacing:-.03em;
  margin:14px 0 0;
  color:#f2f0e9;
}
.page-hero .section-kicker,
.works-hero .section-kicker{
  color:var(--gold);
}
.page-hero-copy,
.works-hero-copy{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.page-hero-copy p,
.works-hero-copy p{
  margin:0;
  color:rgba(242,240,233,.72);
  font-size:14.5px;
  line-height:1.7;
  max-width:420px;
}
.page-index,
.works-count{
  font-size:10px;
  letter-spacing:.16em;
  color:var(--gold);
  text-transform:uppercase;
}

.agency-intro h2{
  font-size:clamp(30px,4.6vw,58px);
  line-height:1.12;
  letter-spacing:-.03em;
  max-width:900px;
  margin:0 0 28px;
}
.agency-copy{
  max-width:640px;
  color:var(--gray-4);
  font-size:15px;
  line-height:1.8;
}

.agency-values{
  margin-top:clamp(56px,8vw,90px);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:clamp(28px,4vw,40px);
  border-top:1px solid var(--line);
  padding-top:clamp(40px,6vw,56px);
}
.agency-values h3{
  font-size:15px;
  letter-spacing:-.01em;
  margin:0 0 10px;
}
.agency-values p{
  color:var(--gray-7);
  font-size:13px;
  line-height:1.7;
  margin:0;
}
.agency-value-number{
  font-family:var(--serif);
  color:var(--gold);
  font-size:26px;
  display:block;
  margin-bottom:14px;
}

.agency-location{
  margin-top:clamp(56px,8vw,90px);
  border-top:1px solid var(--line);
  padding-top:clamp(40px,6vw,56px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(28px,5vw,60px);
}
.agency-location h3{
  font-size:clamp(24px,3.2vw,36px);
  letter-spacing:-.03em;
  margin:0 0 14px;
}
.agency-location p{
  color:var(--gray-4);
  font-size:14px;
  line-height:1.8;
  max-width:440px;
  margin:0;
}

.service-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.service-item{
  background:var(--bg);
  padding:clamp(30px,4vw,46px);
}
.service-number{ color:var(--gold); font-family:var(--serif); font-size:22px; }
.service-item h3{ font-size:19px; letter-spacing:-.02em; margin:16px 0 10px; }
.service-item p{ color:var(--gray-7); font-size:13px; line-height:1.7; margin:0; }

.agency-statement h2{
  font-size:clamp(32px,5.4vw,68px);
  line-height:1.1;
  letter-spacing:-.03em;
  max-width:900px;
  margin:0 0 28px;
}

/* Works archive page */

.works-filter{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  padding-top:clamp(40px,6vw,70px);
  padding-bottom:clamp(30px,4vw,50px);
  border-top:1px solid var(--line);
}
.filter-label{ font-size:10px; letter-spacing:.16em; color:var(--muted); }
.filter-list{ display:flex; flex-wrap:wrap; gap:8px; }
.filter-btn{
  background:none;
  border:1px solid var(--line);
  color:var(--gray-5);
  padding:8px 16px;
  border-radius:999px;
  font-size:11.5px;
  cursor:pointer;
  transition:all .25s var(--ease);
}
.filter-btn:hover{ color:var(--text); border-color:var(--gray-9); }
.filter-btn.is-active{ background:var(--gold); border-color:var(--gold); color:#080808; }

.works-archive{ padding-top:0; }
.archive-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(32px,5vw,60px) clamp(24px,4vw,48px);
}
.archive-card--featured,
.archive-card--wide{ grid-column:1/-1; }
.archive-media{
  display:block;
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:18px;
  background:var(--surface);
}
.archive-media:before{
  content:"";
  position:absolute; inset:0;
  background:var(--archive-image);
  background-size:cover;
  background-position:center;
  transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.archive-media:hover:before{ transform:scale(1.04); filter:saturate(1.12); }
.archive-media--01{ --archive-image:linear-gradient(135deg,rgba(28,27,24,.2),rgba(13,13,13,.52)),url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--02{ --archive-image:linear-gradient(135deg,rgba(25,52,48,.18),rgba(10,14,13,.5)),url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--03{ --archive-image:linear-gradient(135deg,rgba(90,39,28,.2),rgba(15,12,11,.54)),url("https://images.unsplash.com/photo-1531058020387-3be344556be6?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--04{ --archive-image:linear-gradient(135deg,rgba(45,45,75,.2),rgba(10,11,16,.54)),url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--05{ --archive-image:linear-gradient(135deg,rgba(42,67,62,.2),rgba(10,14,14,.54)),url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--06{ --archive-image:linear-gradient(135deg,rgba(85,65,33,.2),rgba(14,13,10,.54)),url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--07{ --archive-image:linear-gradient(135deg,rgba(72,33,60,.2),rgba(15,9,15,.54)),url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85"); }
.archive-media--08{ --archive-image:linear-gradient(135deg,rgba(38,67,88,.2),rgba(9,13,17,.54)),url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=85"); }
.archive-tag,
.archive-arrow{
  position:absolute; top:16px;
  font-size:9px; letter-spacing:.14em; z-index:2;
}
.archive-tag{ left:16px; color:var(--gray-1); }
.archive-arrow{ right:16px; color:var(--gold); }
.archive-number{
  position:absolute; bottom:16px; left:16px;
  font-family:var(--serif); font-size:26px; color:rgba(255,255,255,.5);
  z-index:2;
}
.archive-meta{ margin-top:18px; }
.archive-meta > div{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.archive-meta span{ font-size:9px; letter-spacing:.14em; color:var(--gold); }
.archive-meta h3{ font-size:19px; letter-spacing:-.02em; margin:6px 0 0; }
.archive-meta p{ color:var(--gray-8); font-size:12px; margin:8px 0 0; max-width:420px; }

.works-quote{ text-align:left; }
.works-quote blockquote{
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(26px,4.4vw,52px);
  line-height:1.2;
  letter-spacing:-.02em;
  margin:16px 0 28px;
  max-width:820px;
}

/* Contact / project form */

.project-section{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:clamp(36px,6vw,80px);
  align-items:start;
}
.project-section h2{
  font-size:clamp(32px,4.8vw,64px);
  line-height:1.0;
  letter-spacing:-.04em;
  margin:0 0 20px;
}

/* ---- Clients CTA button ---- */
.clients-cta-wrap{
  display:flex;
  justify-content:center;
  padding-top:clamp(28px,4vw,44px);
}
/* ── "Je me lance" ─ typographic CTA, no border, coin-flip arrow ── */
.clients-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:20px;
  background:none;
  border:none;
  color:var(--text);
  font-family:var(--serif);
  font-size:clamp(22px,3vw,32px);
  font-weight:400;
  font-style:italic;
  letter-spacing:-.02em;
  padding:0;
  cursor:pointer;
  text-decoration:none;
  isolation:isolate;
  transition:color .35s var(--ease);
}
.clients-cta:before{
  content:"";
  position:absolute;
  inset:-20px -32px;
  border-radius:999px;
  background:radial-gradient(ellipse at 50% 60%, rgba(243,181,27,.10) 0%, transparent 68%);
  opacity:0;
  transform:scaleY(.7);
  transition:opacity .55s var(--ease), transform .55s var(--ease);
  z-index:-1;
  pointer-events:none;
}
.clients-cta:hover:before{ opacity:1; transform:scaleY(1); }
.clients-cta:hover{ color:var(--gold); }
.clients-cta-label{
  position:relative;
  display:inline-block;
}
.clients-cta-label:after{
  content:"";
  position:absolute;
  left:0; bottom:-3px;
  width:0%; height:1px;
  background:currentColor;
  transition:width .5s cubic-bezier(.16,.8,.24,1);
}
.clients-cta:hover .clients-cta-label:after{ width:100%; }
.clients-cta-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:50%;
  background:var(--gold);
  color:#080808;
  font-size:18px;
  font-style:normal;
  font-weight:700;
  flex-shrink:0;
  transform-style:preserve-3d;
  transition:transform .55s cubic-bezier(.34,1.2,.64,1), box-shadow .35s var(--ease);
  box-shadow:0 3px 14px rgba(243,181,27,.28);
}
.clients-cta:hover .clients-cta-arrow{
  transform:translateX(6px) rotateY(180deg);
  box-shadow:0 0 0 6px rgba(243,181,27,.10), 0 6px 24px rgba(243,181,27,.42);
}
.clients-cta:active .clients-cta-arrow{
  transform:translateX(3px) rotateY(90deg) scale(.88);
  transition:transform .14s;
}
.project-note{
  color:var(--gray-4);
  font-size:14px;
  line-height:1.8;
  max-width:380px;
  margin:0 0 36px;
}
.project-form{
  display:grid;
  gap:20px;
}
.project-form label{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:10px;
  letter-spacing:.12em;
  color:var(--muted);
  text-transform:uppercase;
}
.project-form input,
.project-form textarea{
  font:inherit;
  background:transparent;
  border:none;
  border-bottom:1px solid var(--line);
  color:var(--text);
  padding:14px 0;
  border-radius:0;
  font-size:15px;
  text-transform:none;
  letter-spacing:0;
  transition:border-color .3s var(--ease);
  width:100%;
}
.project-form input::placeholder,
.project-form textarea::placeholder{
  color:var(--muted);
  opacity:.5;
}
.project-form input:focus,
.project-form textarea:focus{
  outline:none;
  border-color:var(--gold);
}
.project-form textarea{
  min-height:120px;
  resize:none;
  border:none;
  border-bottom:1px solid var(--line);
  border-radius:0;
}
.project-form textarea:focus{
  border-color:var(--gold);
}

.project-form-other{
  display:flex;
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transform:translateY(-8px);
  transition:
    max-height .45s cubic-bezier(.4,0,.2,1),
    opacity .35s var(--ease),
    transform .4s var(--ease);
}
.project-form-other.is-visible{
  max-height:120px;
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.project-submit{
  justify-self:start;
  background:var(--gold);
  color:#080808;
  border:0;
  padding:15px 26px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  cursor:pointer;
  transition:transform .25s var(--ease);
}
.project-submit:hover{ transform:translateY(-1px); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width:1080px){
  .hero-content{ grid-template-columns:1fr; }
  #hero-title{ grid-column:1; }
  .hero-side{ grid-column:1; max-width:520px; }
  .archive-grid{ grid-template-columns:1fr; }
  .archive-card--featured,
  .archive-card--wide{ grid-column:auto; }
}


/* Compact service accordion */

.service-detail-number{ font-size:26px; }
.service-detail-head svg,
.service-detail summary svg{ width:25px; height:25px; stroke:var(--gold); stroke-width:1.2; transition:transform .35s var(--ease); }
@media (max-width:900px){
  .nav,
  .header-cta{ display:none; }
  .menu-toggle{ display:block; }
  .site-header-inner{ align-items:center; }
  .site-header.is-compact .site-header-inner{ max-width:calc(100% - (var(--gutter) * 0)); }

  .mobile-menu{
    position:fixed; inset:0;
    background:var(--mobile-menu-bg);
    backdrop-filter:blur(10px);
    z-index:190;
    padding:120px var(--gutter) 40px;
    display:flex;
    flex-direction:column; gap:22px;
    font-size:38px; letter-spacing:-.03em;
    visibility:hidden;
    opacity:0;
    transition:opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .mobile-menu.is-open{
    visibility:visible;
    opacity:1;
    transition:opacity .4s var(--ease), visibility 0s linear 0s;
  }
  .mobile-menu a{
    opacity:0;
    transform:translateY(16px);
    transition:opacity .45s var(--ease), transform .45s var(--ease);
    transition-delay:calc(var(--mi, 0) * 60ms);
  }
  .mobile-menu.is-open a{
    opacity:1;
    transform:translateY(0);
  }

  .hero-content{ grid-template-columns:1fr; gap:26px; padding-bottom:12vh; }
  .hero-side{ grid-template-columns:64px minmax(0,1fr) auto; grid-template-rows:64px auto; max-width:460px; }
  .play-button{ width:64px; height:64px; }
  .hero-side .play-button{ grid-column:1; grid-row:1; }
  .hero-side p{ grid-column:1/3; grid-row:2; }
  .arrow-link{ grid-column:3; grid-row:2; }

  .intro,
  .manifesto{ grid-template-columns:1fr; gap:44px; }
  .work-grid{ grid-template-columns:1fr; }

  .legacy-panel{ grid-template-columns:56px 1fr; }
  .legacy-panel > p{ grid-column:2; }

  .agency-location,
  .service-grid{ grid-template-columns:1fr; }

  .page-hero,
  .works-hero{ grid-template-columns:1fr; align-items:start; gap:24px; }

  .project-section{ grid-template-columns:1fr; }

  .site-footer{ grid-template-columns:1fr 1fr; gap:32px 24px; }
  .footer-brand{ grid-column:1/-1; }
  .footer-bottom{ padding-top:20px; }
  .theme-toggle{ grid-column:1/-1; justify-self:start; margin-top:0; }

  .cookie-banner{ left:12px; right:12px; bottom:12px; max-width:none; }
}

@media (max-width:600px){
  body{ font-size:15px; }
  .site-header{ padding:14px 14px; }
  .hero h1{ font-size:clamp(46px,15vw,90px); }
  .hero-side{ grid-template-columns:54px minmax(0,1fr) auto; grid-template-rows:54px auto; gap:14px; }
  .play-button{ width:54px; height:54px; font-size:16px; }
  .hero-side .play-button{ grid-column:1; grid-row:1; }
  .hero-side p{ grid-column:1/3; grid-row:2; }
  .hero-side .arrow-link{ grid-column:3; grid-row:2; }

  .section{ padding-top:70px; padding-bottom:70px; }
  .section-head{ align-items:flex-start; flex-direction:column; gap:14px; margin-bottom:32px; }

  .work-meta > div{ gap:10px; }

  .legacy-timeline{ flex-direction:column; }
  .legacy-step{ flex:1 1 auto; }
  .legacy-panel{ grid-template-columns:1fr; gap:12px; }
  .legacy-panel > p{ grid-column:auto; }

  .logo-grid{ grid-template-columns:repeat(2,1fr); }

  .cta-row{ flex-direction:column; align-items:flex-start; gap:18px; }
  .contact-email{ font-size:19px; }
  .circle-cta{ width:60px; height:60px; font-size:18px; }

  .site-footer{ grid-template-columns:1fr; gap:28px; }
  .footer-brand{ grid-column:auto; }
  .theme-toggle{ grid-column:auto; }
  .mobile-menu{ font-size:30px; gap:18px; }

  .page-hero,
  .works-hero{ padding-top:130px; }
  .page-hero h1,
  .works-hero h1{ font-size:clamp(34px,11vw,60px); }

  .agency-values{ grid-template-columns:1fr; }

  .archive-meta > div{ flex-direction:column; align-items:flex-start; gap:4px; }

  .go-top{ width:42px; height:42px; font-size:14px; }

  .cookie-banner{ padding:18px 18px; }
  .cookie-actions{ flex-direction:column; }
}

@media (max-width:380px){
  .hero h1{ font-size:clamp(38px,15vw,70px); }
  .manifesto-big{ font-size:clamp(40px,15vw,90px); }
  .cta h2{ font-size:clamp(38px,13vw,90px); }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,
  *:before,
  *:after{ transition:none !important; animation:none !important; }
}

/* ============================================================
   Loading / intro screen — "We Illuminate."
   ============================================================ */

.site-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#0c0c0d;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:32px;
  pointer-events:all;
  transition:opacity .7s var(--ease), visibility 0s linear .7s;
}
.site-loader.is-done{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.site-loader-text{
  font-family:var(--serif);
  font-style:italic;
  color:#f2f0e9;
  font-size:clamp(22px,5vw,40px);
  letter-spacing:.01em;
  opacity:0;
  transform:translateY(8px);
  animation:loader-text-in .9s var(--ease) .15s forwards;
}
@keyframes loader-text-in{
  to{ opacity:1; transform:translateY(0); }
}
.site-loader-bar{
  width:clamp(120px,20vw,200px);
  height:1px;
  background:rgba(242,240,233,.18);
  border-radius:999px;
  overflow:hidden;
  opacity:0;
  animation:loader-text-in .6s var(--ease) .35s forwards;
}
.site-loader-bar-fill{
  height:100%;
  width:0%;
  background:#f2f0e9;
  border-radius:999px;
  animation:loader-bar-grow 1.6s cubic-bezier(.4,0,.2,1) .5s forwards;
}
@keyframes loader-bar-grow{
  0%{ width:0%; }
  60%{ width:75%; }
  100%{ width:100%; }
}

/* ============================================================
   Navbar — force dark (white text) at top of page,
   switch to theme-aware on scroll (compact state)
   ============================================================ */

/* At top: brand + nav links always white so they read on dark hero images */
.site-header:not(.is-compact) .brand,
.site-header:not(.is-compact) .nav a,
.site-header:not(.is-compact) .menu-toggle span{
  color:#f2f0e9;
}
.site-header:not(.is-compact) .nav a{ color:rgba(242,240,233,.65); }
.site-header:not(.is-compact) .nav a:hover,
.site-header:not(.is-compact) .nav a.is-active{ color:#f2f0e9; }

/* glow stays white at top regardless of theme */
.site-header:not(.is-compact) .site-header-inner:before{
  background:radial-gradient(220px circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.14), transparent 65%);
}

/* compact (scrolled) — use theme tokens normally (dark: white text, light: dark text) */
.site-header.is-compact .brand,
.site-header.is-compact .nav a,
.site-header.is-compact .menu-toggle span{
  color:var(--text);
}
.site-header.is-compact .nav a{ color:var(--gray-3); }
.site-header.is-compact .nav a:hover,
.site-header.is-compact .nav a.is-active{ color:var(--text); }
.site-header.is-compact .site-header-inner:before{
  background:radial-gradient(220px circle at var(--pointer-x) var(--pointer-y), rgba(var(--glow-color),.14), transparent 65%);
}

/* Services page */

.services-intro{ border-top:1px solid var(--line); }
.services-intro h2,
.service-process h2,
.services-cta h2{ max-width:980px; margin:0; font-size:clamp(38px,5.8vw,78px); line-height:.98; letter-spacing:-.05em; }
.services-intro-copy{ max-width:550px; margin:34px 0 0 auto; color:var(--gray-5); font-size:15px; line-height:1.8; }
.service-list{ display:grid; grid-template-columns:1fr; gap:0; padding-top:0; padding-bottom:0; }
.service-detail{ min-height:0; height:auto; padding:0; border-bottom:1px solid var(--line); display:block; background:transparent; }
.service-detail:hover{ background:transparent; }
.service-detail-head{ display:flex; justify-content:space-between; align-items:start; }
.service-detail-number{ color:var(--gold); font-family:var(--serif); font-size:30px; line-height:1; }
.service-detail-head svg{ width:30px; height:30px; stroke:var(--gold); stroke-width:1.2; }
.service-detail h3{ margin:0 0 16px; font-family:var(--serif); font-size:clamp(32px,4vw,58px); font-weight:400; line-height:.95; letter-spacing:-.045em; }
.service-detail > div:last-child > p:not(.small-label){ max-width:400px; margin:0; color:var(--gray-6); font-size:13px; line-height:1.75; }
.service-detail ul{ display:flex; flex-wrap:wrap; gap:8px 18px; max-width:500px; margin:28px 0 0; padding:0; list-style:none; color:var(--gray-2); font-size:11px; }
.service-detail li:before{ content:"/"; margin-right:8px; color:var(--gold); }
.service-detail summary{ display:grid; grid-template-columns:60px minmax(0,1fr) 30px; gap:20px; align-items:center; min-height:118px; padding:22px 0; list-style:none; cursor:pointer; }
.service-detail summary::-webkit-details-marker{ display:none; }
.service-detail summary:focus-visible{ outline:1px solid var(--gold); outline-offset:8px; }
.service-detail-title{ font-family:var(--serif); font-size:clamp(25px,3.2vw,46px); line-height:1; letter-spacing:-.04em; }
.service-detail summary svg{ width:25px; height:25px; stroke:var(--gold); stroke-width:1.2; transition:transform .55s var(--ease), opacity .3s ease; }
.service-detail[open] summary svg,
.service-detail.is-open summary svg{ transform:rotate(45deg); }

.service-description{
  display:block;
  max-height:0;
  overflow:hidden;
  margin:0 50px 0 80px;
  padding-bottom:0;
  color:var(--gray-6);
  font-size:13px;
  line-height:1.75;
  opacity:0;
  transform:translateY(-10px);
  transition:max-height .55s var(--ease), opacity .35s ease, transform .55s var(--ease), margin-bottom .55s var(--ease), padding-bottom .55s var(--ease);
}
.service-detail[open] .service-description,
.service-detail.is-open .service-description{
  max-height:var(--description-height, 320px);
  margin-bottom:28px;
  padding-bottom:4px;
  opacity:1;
  transform:translateY(0);
}
.service-description p{ margin:0; }
.service-description ul{ display:flex; flex-wrap:wrap; gap:8px 18px; margin:18px 0 0; padding:0; list-style:none; color:var(--gray-2); font-size:11px; }
.service-description li:before{ content:"/"; margin-right:8px; color:var(--gold); }
.service-process{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(40px,8vw,120px); border-top:1px solid var(--line); }
.process-steps{ padding-top:10px; }
.process-steps p{ display:flex; gap:24px; align-items:center; margin:0; padding:18px 0; border-bottom:1px solid var(--line); color:var(--gray-4); font-size:14px; }
.process-steps strong{ color:var(--gold); font-family:var(--serif); font-size:24px; font-weight:400; }
.services-cta{ border-top:1px solid var(--line); }
.services-cta h2{ margin-bottom:42px; }

@media (max-width:900px){
  .intro{ grid-template-columns:1fr; gap:34px; }
  .intro-copy{ grid-column:1; max-width:600px; padding-top:0; }
  .service-detail{ min-height:0; }
  .service-process{ grid-template-columns:1fr; gap:44px; }
}

@media (max-width:600px){
  .service-list{ grid-template-columns:1fr; }
  .intro{ gap:28px; }
  .intro-copy{ padding-top:0; }
  .service-detail{ min-height:0; }
  .service-detail summary{ grid-template-columns:40px minmax(0,1fr) 25px; gap:14px; min-height:92px; }
  .service-detail-number{ font-size:22px; }
  .service-detail-title{ font-size:clamp(23px,7vw,34px); }
  .service-description{ margin:0 0 24px 54px; }
  .services-intro-copy{ margin-left:0; }
}

/* Scroll reveal for inner pages */

[data-reveal]{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
}
.service-list .service-detail:nth-of-type(2){ transition-delay:.08s; }
.service-list .service-detail:nth-of-type(3){ transition-delay:.16s; }
.service-list .service-detail:nth-of-type(4){ transition-delay:.24s; }

/* ============================================================
   Universal reveal system — all page elements
   ============================================================ */

/* Base state — applied via JS to all reveal targets */
.js-reveal{
  opacity:0;
  will-change:opacity, transform;
}

/* Slide-up (default — most elements) */
.js-reveal[data-r="up"]{
  transform:translateY(40px);
  transition:opacity .75s var(--ease), transform .85s var(--ease);
}

/* Slide-right (eyebrows, kickers) */
.js-reveal[data-r="right"]{
  transform:translateX(-24px);
  transition:opacity .6s var(--ease), transform .7s var(--ease);
}

/* Fade only (images, large blocks) */
.js-reveal[data-r="fade"]{
  transform:none;
  transition:opacity .9s var(--ease);
}

/* Scale-in (cards, media blocks) */
.js-reveal[data-r="scale"]{
  transform:scale(.96) translateY(20px);
  transition:opacity .7s var(--ease), transform .8s var(--ease);
}

/* Revealed state */
.js-reveal.is-visible{
  opacity:1;
  transform:none;
}

/* Stagger delays for child groups */
.js-reveal[data-delay="1"]{ transition-delay:.06s; }
.js-reveal[data-delay="2"]{ transition-delay:.13s; }
.js-reveal[data-delay="3"]{ transition-delay:.20s; }
.js-reveal[data-delay="4"]{ transition-delay:.27s; }
.js-reveal[data-delay="5"]{ transition-delay:.34s; }
.js-reveal[data-delay="6"]{ transition-delay:.41s; }

@media (prefers-reduced-motion:reduce){
  .js-reveal{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
.service-list .service-detail:nth-of-type(5){ transition-delay:.32s; }

/* ============================================================
   Hero section — text always white (sits on dark image)
   ============================================================ */

.hero,
.hero *:not(.header-cta){
  /* text inside hero is always light */
}
.hero h1,
.hero .eyebrow,
.hero-side p,
.hero .scroll-cue{
  color:#f2f0e9 !important;
}
.hero-side p{ color:rgba(242,240,233,.78) !important; }

/* Hero word-split animation: paused until body.hero-ready */
[data-split="words"] .word > span{
  /* default: will animate on is-revealed */
}
/* Before hero-ready: keep hero title hidden without breaking layout */
.hero [data-split="words"]:not(.is-revealed) .word > span{
  opacity:0;
  transform:translateY(115%) rotate(3deg);
}

/* ============================================================
   Custom select dropdown — theme-aware, cohérent, sans select natif
   ============================================================ */

.select-wrapper{
  position:relative;
  width:100%;
}
.select-wrapper select{
  /* masqué mais accessible au clavier */
  position:absolute;
  inset:0;
  opacity:0;
  width:100%;
  height:100%;
  cursor:pointer;
  z-index:2;
  font-size:15px;
}
.select-display{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0 14px;
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-size:15px;
  font-family:inherit;
  cursor:pointer;
  transition:border-color .3s var(--ease);
  user-select:none;
  pointer-events:none; /* clics capturés par le select natif au-dessus */
}
.select-display svg{
  flex:none;
  width:12px; height:12px;
  stroke:var(--gold);
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .35s var(--ease);
}
.select-wrapper:has(select:focus) .select-display{
  border-color:var(--gold);
}
.select-wrapper:has(select:focus) .select-display svg{
  transform:rotate(180deg);
}

/* Options styled by native select — color-scheme ensures dark/light matching */
.project-form select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  font:inherit;
  background:var(--bg-soft);
  color:var(--text);
  border:none;
  padding:0;
  cursor:pointer;
  color-scheme:dark;
}
[data-theme="light"] .project-form select{
  color-scheme:light;
}
/* ============================================================
   Sitemap page
   ============================================================ */

.sitemap-hero:before{
  background:
    linear-gradient(135deg,rgba(11,11,11,.97) 0%,rgba(11,11,11,.85) 100%),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=2200&q=80") center/cover;
}
.sitemap-section{ max-width:var(--max); margin:0 auto; }
.sitemap-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(40px,6vw,80px);
}
.sitemap-group-title{
  font-size:10px;
  letter-spacing:.18em;
  color:var(--gold);
  text-transform:uppercase;
  margin:0 0 24px;
  font-weight:600;
  font-family:var(--sans);
}
.sitemap-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:0;
}
.sitemap-list li{
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.sitemap-list a{
  font-size:16px;
  font-weight:500;
  letter-spacing:-.02em;
  color:var(--text);
  transition:color .25s;
}
.sitemap-list a:hover{ color:var(--gold); }
.sitemap-list span{
  font-size:11.5px;
  color:var(--muted);
  line-height:1.5;
}
@media (max-width:600px){
  .sitemap-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   merci.html — confirmation page
   ============================================================ */
.merci-wrap{
  min-height:100svh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:24px;
}
.merci-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  max-width:540px;
}
.merci-icon{
  width:72px; height:72px;
  border-radius:50%;
  background:rgba(243,181,27,.12);
  border:1px solid rgba(243,181,27,.28);
  display:grid;
  place-items:center;
  margin-bottom:36px;
  animation:merci-pop .7s cubic-bezier(.34,1.4,.64,1) forwards;
}
@keyframes merci-pop{
  from{ transform:scale(.5); opacity:0; }
  to{ transform:scale(1); opacity:1; }
}
.merci-icon svg{
  width:28px; height:28px;
  stroke:var(--gold);
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:40;
  stroke-dashoffset:40;
  animation:merci-check .5s ease .5s forwards;
}
@keyframes merci-check{
  to{ stroke-dashoffset:0; }
}
.merci-kicker{
  font-size:10px;
  letter-spacing:.18em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:600;
  margin:0 0 20px;
}
.merci-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(40px,7vw,88px);
  line-height:.95;
  letter-spacing:-.03em;
  margin:0 0 24px;
  color:var(--text);
}
.merci-sub{
  color:var(--muted);
  font-size:15px;
  line-height:1.75;
  margin:0 0 44px;
  max-width:380px;
}
.merci-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--text);
  color:var(--bg);
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  padding:14px 28px;
  border-radius:999px;
  transition:transform .3s var(--ease), box-shadow .3s;
  box-shadow:0 4px 18px rgba(0,0,0,.18);
}
.merci-cta:hover{ transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.26); }
.merci-cta:active{ transform:scale(.97); transition:transform .1s; }

.merci-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  width:100%;
}
.merci-cta-secondary{
  font-size:13px;
  color:var(--muted);
  letter-spacing:.02em;
  transition:color .25s var(--ease);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.merci-cta-secondary:hover{ color:var(--text); }
.merci-cta-secondary span{ color:var(--gold); }
