@import url("/assets/fonts/fonts.css");

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --paper: #faf9f7;
  --ink: #141414;
  --ink-2: #3d3d3b;
  --muted: #76746f;
  --line: #e7e4df;
  --stone: #a8977c;      /* travertine accent, used sparingly */
  --stone-deep: #7b6b53;
  --glow: #f4c47c;      /* warm lamplight highlight, lifted from the hero photo */
  --overlay: 16 18 22;   /* rgb triplet for the hero tint (cooled for the blue-grey building) */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.85rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);
  --step-4: clamp(2.8rem, 1.8rem + 4.6vw, 6rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --section: clamp(5.5rem, 12vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@view-transition { navigation: auto; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 300 var(--step-0)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--ink); color: var(--white); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }

.label {
  display: inline-flex; align-items: center; gap: .9rem;
  font: 500 var(--step--1)/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; transform-origin: left; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--muted); }

/* ---------- Links & buttons ---------- */
.link {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding-bottom: .35rem; font-weight: 400;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(.35); opacity: .5;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.link:hover::after { transform-origin: left; transform: scaleX(1); opacity: 1; }
.link .arrow { transition: transform .6s var(--ease); }
.link:hover .arrow { transform: translateX(.35rem); }

.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.5rem; padding: 0 2rem; border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 400 .95rem/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fg); transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--white); border-color: var(--ink); }
.btn .magnet-inner { display: inline-flex; align-items: center; gap: .75rem; transition: transform .5s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5rem; }
.site-header.is-solid, .site-header.is-plain {
  color: var(--ink); background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.wordmark { display: inline-flex; align-items: center; font: 400 1.65rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
/* ZignaHQ logo: white lettering over the hero photo, ink lettering on light headers */
.wordmark { flex: none; }
.wordmark .logo { display: block; height: 1.9rem; width: auto; max-width: none; aspect-ratio: 305 / 96; }
.site-header .logo--ink { display: none; }
.site-header.is-solid .logo--white, .site-header.is-plain .logo--white, .menu-open .site-header .logo--white { display: none; }
.site-header.is-solid .logo--ink, .site-header.is-plain .logo--ink, .menu-open .site-header .logo--ink { display: block; }
.nav { display: none; gap: 2.5rem; font-size: .9rem; font-weight: 400; }
.nav a { position: relative; padding-block: .4rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 2.75rem; height: 2.75rem; padding: 0 .5rem; background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle span { display: block; height: 1px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 6rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.mobile-menu a { font: 300 var(--step-3)/1.1 var(--serif); }
.mobile-menu .muted { font-size: .9rem; margin-top: 2rem; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--ink); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open { overflow: hidden; }

@media (min-width: 60rem) {
  .nav, .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Intro curtain (first visit per session; class set in <head>) ---------- */
.has-curtain body::before, .has-curtain body::after {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  animation: curtain-up 1.1s var(--ease-in-out) .9s forwards;
}
.has-curtain body::before { content: ""; background: var(--white); }
.has-curtain body::after {
  content: "Zigna"; display: grid; place-items: center; color: var(--ink);
  font: 400 clamp(1.8rem, 5vw, 2.6rem)/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; text-indent: .3em;
  animation: curtain-word 1.3s var(--ease) forwards, curtain-fade .5s var(--ease) .9s forwards;
}
@keyframes curtain-word { 0% { opacity: 0; letter-spacing: .6em; } 60% { opacity: 1; } 100% { opacity: 1; letter-spacing: .3em; } }
@keyframes curtain-up { to { clip-path: inset(0 0 100% 0); } }
@keyframes curtain-fade { to { opacity: 0; transform: translateY(-1.5rem); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: #24262b;
}
.hero-media { position: absolute; inset: -6% 0 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 54%; transform: scale(1.14); animation: hero-settle 2.8s var(--ease) .2s forwards; }
.has-curtain .hero-media img { animation-delay: 1.1s; }
@keyframes hero-settle { to { transform: scale(1.02); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgb(var(--overlay) / .55) 0%, rgb(var(--overlay) / .2) 30%, rgb(var(--overlay) / .62) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: clamp(3rem, 9vh, 6.5rem); padding-top: 8rem; }
.hero .label { color: rgb(255 255 255 / .82); }
.hero h1 { font-size: var(--step-4); max-width: 13ch; margin: 1.6rem 0 1.8rem; }
.hero h1 em { font-weight: 300; }
.hero-sub { max-width: 40ch; font-size: var(--step-1); line-height: 1.55; color: rgb(255 255 255 / .88); margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero-actions .link { color: rgb(255 255 255 / .92); }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 9vh, 6.5rem); z-index: 2;
  display: none; width: 1px; height: 4.5rem; background: rgb(255 255 255 / .25); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 48rem) { .scroll-cue { display: block; } }

/* Line-mask headline reveal (JS wraps words in .line > span) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0ms)); }
.split.is-in .w > span { transform: none; }

/* ---------- Generic reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(2.25rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.rule { height: 1px; background: var(--line); }
.js .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.rule.is-in { transform: none; }
/* Clip lives on an inner .img-clip layer: Chrome's IntersectionObserver
   clips the intersection rect by the target's own clip-path, so a fully
   clipped observed element would report ratio 0 and never trigger. */
.img-reveal { overflow: hidden; }
.img-clip { height: 100%; }
.js .img-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0ms); }
.js .img-clip img { transform: scale(1.12); transition: transform 2s var(--ease); transition-delay: var(--d, 0ms); }
.img-reveal.is-in .img-clip { clip-path: inset(0 0 0 0); }
.img-reveal.is-in .img-clip img { transform: none; }

/* ---------- Section heads ---------- */
.head { display: grid; gap: 1.75rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.head h2 { font-size: var(--step-3); max-width: 18ch; }
.head p { max-width: 46ch; color: var(--ink-2); margin: 0; }
@media (min-width: 60rem) {
  .head--split { grid-template-columns: 1.1fr .9fr; align-items: end; column-gap: 4rem; }
  .head--split .label { grid-column: 1 / -1; }
}

/* ---------- Problem (staggered editorial grid, oversized numerals) ---------- */
.costs { display: grid; border-top: 1px solid var(--line); }
.cost {
  display: grid; gap: .8rem; padding: 2.25rem 0; border-bottom: 1px solid var(--line); align-content: start;
}
.cost .num {
  font: 300 clamp(3rem, 2.2rem + 2.6vw, 4.6rem)/0.95 var(--serif); color: var(--stone);
  transition: color .6s var(--ease);
}
.cost:hover .num { color: var(--stone-deep); }
.cost h3 { font-size: var(--step-2); }
.cost p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.cost .example { display: block; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.cost .example code { font: 400 .85rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: .2rem .45rem; border-radius: 4px; }
@media (min-width: 60rem) {
  .costs { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 7vw, 7rem); border-top: 0; }
  .cost { padding: 0 0 3.75rem; border-bottom: 0; border-top: 1px solid var(--line); }
  .cost:nth-child(even) { margin-top: 5.5rem; }
}

/* ---------- Prices (editorial hairline rows, serif numerals) ---------- */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price { padding: 2.5rem 0 2.75rem; border-bottom: 1px solid var(--line); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2.5rem; }
.price-name { font-family: var(--sans); font-weight: 400; font-size: var(--step-1); line-height: 1.3; letter-spacing: 0; }
.price-cost { display: flex; align-items: baseline; gap: .55rem; margin-left: auto; white-space: nowrap; }
.price-amt { font: 300 clamp(2.1rem, 1.6rem + 1.9vw, 3.2rem)/1 var(--serif); }
.price-note { font-size: .85rem; color: var(--muted); }
.price-desc { margin: 1rem 0 0; color: var(--ink-2); max-width: 52ch; }
.price-foot { margin: 1.75rem 0 0; font-size: .88rem; color: var(--muted); max-width: 56ch; }
@media (max-width: 40rem) {
  .price-row { gap: .6rem 1rem; }
  .price-name { font-size: var(--step-0); }
}

/* ---------- Questions (native <details>, no scripts needed) ---------- */
.faq-list { border-top: 1px solid rgb(250 249 247 / .16); }
.faq { border-bottom: 1px solid rgb(250 249 247 / .16); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; cursor: pointer;
  list-style: none; padding: 1.7rem 0; color: var(--white);
  font-family: var(--sans); font-weight: 400; font-size: var(--step-1); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 2rem/1 var(--serif); color: var(--stone); transition: transform .5s var(--ease), color .5s var(--ease); }
.faq summary:hover::after { color: var(--stone-deep); }
.faq[open] summary::after { transform: rotate(45deg); color: var(--stone-deep); }
.faq p { margin: 0 0 1.9rem; padding-right: 3rem; color: rgb(250 249 247 / .66); max-width: 60ch; }
@media (max-width: 40rem) { .faq p { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Fixes ---------- */
.fixes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fix { position: relative; background: var(--white); padding: 2.25rem 1.75rem 2.5rem; overflow: hidden; }
.fix::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.fix:hover::before { transform: scaleX(1); }
.fix .icon { width: 2rem; height: 2rem; color: var(--stone-deep); margin-bottom: 2.25rem; transition: transform .8s var(--ease); }
.fix:hover .icon { transform: translateY(-.25rem) rotate(-4deg); }
.fix h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 400; letter-spacing: 0; line-height: 1.35; margin-bottom: .75rem; }
.fix p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (min-width: 40rem) { .fixes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .fixes { grid-template-columns: repeat(4, 1fr); } .fix--wide { grid-column: span 2; } }

/* ---------- Steps — scattered canvas with ghost numerals ----------
   Each step is a hairline card on its own counter-drift layer; a jumbo
   serif numeral sits behind it on a slower layer (data-parallax in the
   markup), so numeral and card separate as the section scrolls. */
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 4.5rem 0 0; display: grid; gap: 4.5rem; }
.step { position: relative; }
.step-num {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font: 300 clamp(4.5rem, 15vw, 7rem)/0.75 var(--serif);
  color: var(--stone-deep); opacity: .34; letter-spacing: -.02em;
}
.step--a .step-num { top: -2.6rem; left: -.4rem; }
.step--b .step-num { top: -2.8rem; right: 0; opacity: .3; }
.step--c .step-num { top: -3.2rem; right: 8%; font-size: clamp(6rem, 22vw, 9rem); opacity: .26; }
.step-drift { position: relative; z-index: 1; }
.step-card {
  display: grid; gap: 1.1rem; padding: 1.6rem 1.5rem 1.8rem;
  border: 1px solid var(--line); background: rgb(255 255 255 / .6);
}
.step-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.step-idx { font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.step h3 { margin: 0; font-size: var(--step-2); max-width: 15ch; }
.step h3 em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: 0; }
.step p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.step .tag { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps-line { display: none; }
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(12, 1fr); gap: 4rem 2rem; padding-top: 5.5rem; }
  .step--a { grid-column: 1 / span 5; }
  .step--a .step-num { top: -3.4rem; left: -1.4rem; font-size: clamp(6rem, 11vw, 10rem); }
  .step--b { grid-column: 7 / span 5; margin-top: clamp(5rem, 14vh, 10rem); }
  .step--b .step-num { top: auto; bottom: -2.6rem; right: -.6rem; font-size: clamp(5rem, 8vw, 8rem); }
  .step--c { grid-column: 3 / span 6; margin-top: clamp(2rem, 7vh, 5rem); }
  .step--c .step-num { top: -4.6rem; right: 9%; font-size: clamp(8rem, 15vw, 14rem); opacity: .22; }
  .step-card { padding: 2rem 1.9rem 2.2rem; }
  .steps-line { display: block; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
  .steps-line span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
}

/* ---------- Work list ---------- */
.work-list { border-top: 1px solid var(--line); }
.work-item a {
  display: grid; gap: .5rem 2rem; padding: 2.25rem 0; border-bottom: 1px solid var(--line);
  transition: padding .7s var(--ease), color .5s;
}
.work-item .name { font: 300 var(--step-3)/1 var(--serif); transition: transform .8s var(--ease); }
.work-item .kind { color: var(--ink-2); }
.work-item .status { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .55rem; }
.work-item .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); border: 1px solid var(--stone); }
.work-item .status.live::before { background: var(--stone-deep); border-color: var(--stone-deep); }
.work-item .go { display: none; }
.work-thumb { margin-top: 1rem; border-radius: 6px; overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 60rem) {
  .work-item a { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; padding: 3rem 0; }
  .work-item a:hover { padding-inline: 1.5rem; }
  .work-item a:hover .name { transform: translateX(.5rem); font-style: italic; }
  .work-item .go { display: inline-flex; width: 3.25rem; height: 3.25rem; border: 1px solid var(--line); border-radius: 50%; align-items: center; justify-content: center; transition: background .6s var(--ease), color .6s var(--ease), border-color .6s; }
  .work-item a:hover .go { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .work-thumb { display: none; }
  .work-meta { display: grid; gap: .35rem; }
}
.work-note { margin-top: 2rem; font-size: .9rem; color: var(--muted); max-width: 60ch; }

/* Cursor-follow preview (desktop, pointer: fine) */
.preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 22rem; aspect-ratio: 16 / 10; pointer-events: none;
  border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -20px rgb(20 20 20 / .35);
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s var(--ease); }
.preview img.is-active { opacity: 1; }

/* ---------- About ---------- */
.about { display: grid; gap: 3rem; }
.about-photo { position: relative; border-radius: 4px; aspect-ratio: 4 / 5; max-width: 26rem; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-copy h2 { font-size: var(--step-3); margin: 1.5rem 0 2rem; max-width: 16ch; }
.about-copy p { color: var(--ink-2); max-width: 54ch; }
.facts { display: grid; gap: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); max-width: 36rem; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (min-width: 60rem) { .about { grid-template-columns: 5fr 7fr; gap: 6rem; align-items: start; } .about-photo { position: sticky; top: 7rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 4rem; }
.contact h2 { font-size: var(--step-4); max-width: 11ch; margin: 1.5rem 0 2rem; }
.contact-mail { font: 300 var(--step-2)/1.2 var(--serif); }
.reassure { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .8rem; color: var(--ink-2); font-size: .95rem; }
.reassure li { display: flex; gap: .85rem; }
.reassure li::before { content: ""; flex: none; width: .9rem; height: 1px; background: var(--stone-deep); margin-top: .85rem; }
.form { display: grid; gap: 1.75rem; }
.field { position: relative; display: grid; }
.field label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; transition: color .4s; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 300 1.05rem/1.5 var(--sans); padding: .6rem 0 .8rem; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .45rem; }
.form .consent { font-size: .82rem; color: var(--muted); margin: 0; }
.form .consent a { text-decoration: underline; text-underline-offset: 3px; }
.form .form-alt { font-size: .82rem; color: var(--muted); margin: 0; max-width: 44ch; }
.form .form-alt a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
@media (min-width: 40rem) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (min-width: 60rem) { .contact { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; font-size: .9rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-top .wordmark { font-size: 2rem; }
.footer-top .wordmark .logo { height: 2.5rem; }
.footer-top p { color: var(--muted); max-width: 34ch; margin-top: 1rem; }
.footer-links { display: grid; gap: .65rem; align-content: start; }
.footer-links h2 { font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (min-width: 48rem) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Case study ---------- */
.cs-hero { padding: clamp(9rem, 18vw, 13rem) 0 clamp(3rem, 7vw, 5rem); }
.cs-hero h1 { font-size: var(--step-4); margin: 1.75rem 0 1.5rem; }
.cs-hero .lead { max-width: 46ch; }
.cs-meta { display: grid; gap: 1.25rem 3rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .92rem; }
.cs-meta dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.cs-meta dd { margin: 0; }
@media (min-width: 48rem) { .cs-meta { grid-template-columns: repeat(3, 1fr); } }
.cs-gallery { display: grid; gap: 1.25rem; align-items: start; }
.cs-gallery figure { margin: 0; }
.cs-gallery .frame { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cs-gallery .frame--phone { max-width: 20rem; margin-inline: auto; border-radius: 22px; padding: .5rem; }
.cs-gallery .frame--phone img { border-radius: 16px; }
.cs-gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: .85rem; max-width: 46ch; }
@media (min-width: 48rem) {
  .cs-gallery--phones { grid-template-columns: repeat(3, 1fr); }
  .cs-gallery--phones figure:nth-child(2) { margin-top: 4rem; }
  .cs-gallery--two { grid-template-columns: 1fr 1fr; }
  .cs-gallery--two figure:nth-child(2) { margin-top: 5rem; }
}
.cs-cols { display: grid; gap: 2.5rem; }
.cs-cols h2 { font-size: var(--step-3); }
.cs-cols p { color: var(--ink-2); max-width: 58ch; }
@media (min-width: 60rem) { .cs-cols { grid-template-columns: 4fr 8fr; gap: 6rem; } }
.built { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.built li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.decisions { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.decision { background: var(--white); padding: 2rem 1.75rem 2.25rem; }
.decision h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 400; line-height: 1.35; margin-bottom: .85rem; }
.decision p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (min-width: 48rem) { .decisions { grid-template-columns: 1fr 1fr; } }
.stack { font-size: .9rem; color: var(--muted); }
.stack strong { font-weight: 500; color: var(--ink-2); }
.next-cs { display: block; padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--line); }
.next-cs .name { display: block; font: 300 var(--step-4)/1 var(--serif); margin-top: 1rem; transition: transform .8s var(--ease); }
.next-cs:hover .name { transform: translateX(1rem); font-style: italic; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 44rem; }
.prose h1 { font-size: var(--step-3); margin: 1.5rem 0 2.5rem; }
.prose h2 { font: 400 var(--step-1)/1.3 var(--sans); margin: 3rem 0 1rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .6rem 1.5rem; margin: 0; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .has-curtain body::before, .has-curtain body::after { display: none; }
  .reveal, .split .w > span, .img-reveal, .img-clip, .img-clip img, .rule { opacity: 1; transform: none; clip-path: none; }
  .hero-media img { transform: none; }
}

/* =====================================================================
   Reference-driven layer (Fragment / Ksen / Ciuslabs DNA, white theme)
   ===================================================================== */
.display { font-family: var(--sans); font-weight: 300; letter-spacing: -0.045em; line-height: .98; }
.display em, .serif-em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.01em; }

/* Header: uppercase tracked nav, status dot, live clock */
.nav { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.status { display: none; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 400; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #5fbf7a; box-shadow: 0 0 0 0 rgb(95 191 122 / .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(95 191 122 / 0); } 100% { box-shadow: 0 0 0 0 rgb(95 191 122 / 0); } }
.clock { display: none; font-size: .8rem; opacity: .75; font-variant-numeric: tabular-nums; }
.clock b { font-weight: 500; opacity: 1; }
@media (min-width: 80rem) { .status, .clock { display: inline-flex; gap: .35rem; white-space: nowrap; } .status { gap: .6rem; } }

/* Hero rebuilt: bottom-left statement, meta column right, hour ruler */
.hero { align-items: stretch; }
.hero .container { display: grid; align-content: end; gap: 3rem; min-height: 100svh; padding-bottom: 5.5rem; }
.hero h1 { font-size: min(clamp(2.5rem, 1rem + 5vw, 5.6rem), 10.5svh); max-width: none; margin: 1.25rem 0 0; }
.hero h1 .ln { display: block; }
.hero-foot { display: grid; gap: 2rem; align-items: center; }
.hero-sub { margin: 0; font-size: var(--step-0); max-width: 38ch; }
.hero-meta { display: none; }
@media (min-width: 60rem) {
  .hero-foot { grid-template-columns: minmax(0, 26rem) auto; gap: 3rem; justify-content: start; }
  .hero .container { grid-template-columns: 1.35fr 1fr; column-gap: 4rem; }
  .hero-main { grid-column: 1; }
  .hero-meta {
    display: grid; grid-column: 2; align-self: start; margin-top: 9rem;
    grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .28);
    font-size: .92rem; color: rgb(255 255 255 / .92);
  }
  .hero-meta dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .6); margin-bottom: .35rem; }
  .hero-meta dd { margin: 0; line-height: 1.55; }
  .hero-meta .wide { grid-column: 1 / -1; }
}
.ruler {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2.6rem; color: rgb(255 255 255 / .55);
  font: 400 .62rem/1 var(--sans); letter-spacing: .05em;
}
.ruler svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 1.1rem; }
.ruler .nums { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; padding-inline: .6rem; }
.ruler .now { position: absolute; bottom: 0; width: 1px; height: 1.6rem; background: var(--white); transition: left 1s var(--ease); }
.ruler .nums span:nth-child(odd) { visibility: hidden; }
@media (min-width: 48rem) { .ruler .nums span:nth-child(odd) { visibility: visible; } }
.scroll-cue { display: none !important; }

/* Fragment-style service accordion */
.services { display: grid; gap: 2.5rem; }
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc button {
  width: 100%; display: flex; align-items: center; gap: 1.25rem; padding: 1.35rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: 300 clamp(1.6rem, 1.1rem + 2.2vw, 3rem)/1.1 var(--sans); letter-spacing: -0.035em; color: #b9b6b0;
  transition: color .6s var(--ease), padding .6s var(--ease);
}
.svc button:hover { color: var(--ink-2); }
.svc .diamond { flex: none; width: .85rem; height: .85rem; border: 1px solid currentColor; transform: rotate(45deg); transition: background .6s var(--ease), transform .8s var(--ease); }
.svc.is-active button { color: var(--ink); padding-left: .25rem; }
.svc.is-active .diamond { background: var(--ink); transform: rotate(225deg); }
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc-panel > div { overflow: hidden; }
.svc.is-active .svc-panel { grid-template-rows: 1fr; }
.svc-panel p { color: var(--ink-2); max-width: 52ch; margin: 0 0 1.25rem; padding-left: 2.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 0 1.75rem 2.1rem; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--ink-2); }
.chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--stone-deep); }
.svc-detail { display: none; }
@media (min-width: 60rem) {
  .services { grid-template-columns: 1.1fr 1fr; gap: 6rem; align-items: start; }
  .svc-panel { display: none; }
  .svc-detail { display: block; position: sticky; top: 8rem; min-height: 16rem; }
  .svc-detail .pane { display: none; }
  .svc-detail .pane.is-active { display: block; animation: pane-in .8s var(--ease); }
  .svc-detail p { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); margin: 0 0 2rem; }
  .svc-detail .chips { padding: 0; }
  .svc-detail .why { font-size: .95rem; color: var(--muted); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
}
@keyframes pane-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* Ksen-style email pill with avatar */
.mail-pill { display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.mail-pill .avatar { width: 3.75rem; height: 3.75rem; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.mail-pill .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.mail-pill a {
  display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.4rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 1rem; font-weight: 400; transition: border-color .5s var(--ease), background .5s var(--ease);
}
.mail-pill a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--stone-deep); }
.mail-pill a:hover { border-color: var(--ink); background: var(--paper); }
.contact h2.display { font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); max-width: 12ch; }
.about-copy h2.display, .head h2.display { letter-spacing: -0.04em; }
.head h2.display { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); max-width: 16ch; line-height: 1.02; }
.cs-hero h1.display { font-size: clamp(3rem, 1.6rem + 6vw, 7rem); }

/* =====================================================================
   Dark chapter — "How it works" (the one dark break in the page arc)
   ===================================================================== */
.section--ink {
  background: radial-gradient(120% 55% at 50% 0%, rgb(168 151 124 / .09), transparent 62%), var(--ink);
  color: var(--paper);
}
.section--ink .label { color: rgb(250 249 247 / .48); }
.section--ink .head h2 { color: var(--white); }
.section--ink .head p { color: rgb(250 249 247 / .66); }
.section--ink .step-num { color: var(--stone); }
.section--ink .step-card {
  border-color: rgb(250 249 247 / .16); background: rgb(250 249 247 / .03);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.section--ink .step-idx { color: rgb(250 249 247 / .34); }
.section--ink .step h3 { color: var(--white); }
.section--ink .step p { color: rgb(250 249 247 / .66); }
.section--ink .step .tag {
  display: inline-flex; align-items: center; padding: .5rem 1rem;
  border: 1px solid rgb(250 249 247 / .22); border-radius: 999px;
  color: rgb(250 249 247 / .8); letter-spacing: .16em;
}
.section--ink .steps-line { background: rgb(250 249 247 / .14); }
.section--ink .steps-line span { background: var(--stone); }

/* =====================================================================
   Before / After — scroll-scrubbed browser demo
   Scroll drives --p (0 → 1) on [data-demo]; every visual interpolates
   from that single value. Without JS, or under reduced motion, the
   frame falls back to a static, stacked pair of labelled states.
   ===================================================================== */
.demo-hint { max-width: 56ch; color: var(--ink-2); margin: -2rem 0 3.5rem; }
.demo-hint code { font: 400 .85rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: .15rem .4rem; border-radius: 4px; }

.demo-stage { position: relative; }
.demo-sticky { display: grid; gap: 1.5rem; max-width: 64rem; margin-inline: auto; padding-inline: var(--gutter); }
.demo-frame {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: 0 2.75rem 5rem -3rem rgb(20 20 20 / .3);
}

/* Browser chrome */
.demo-chrome {
  display: flex; align-items: center; gap: 1em; padding: .75em .9em;
  background: var(--paper); border-bottom: 1px solid var(--line);
  font-size: clamp(.5rem, .28rem + .5vw, .8rem);
}
.demo-dots { display: inline-flex; gap: .45em; }
.demo-dots i { width: .85em; height: .85em; border-radius: 50%; background: var(--line); }
.demo-tab {
  display: inline-flex; align-items: center; gap: .55em; padding: .5em .85em;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; min-width: 0;
}
.demo-fav { position: relative; flex: none; width: 1.05em; height: 1.05em; overflow: hidden; border-radius: 2px; }
.fav { position: absolute; inset: 0; display: grid; place-items: center; }
.fav--doc { background: var(--line); transform: translateY(calc(var(--p, 1) * -135%)); }
.fav--doc::after { content: ""; width: .35em; height: .35em; background: var(--white); border-radius: 1px; }
.fav--mark { background: var(--stone-deep); color: var(--white); font-size: .7em; font-weight: 500; transform: translateY(calc((1 - var(--p, 1)) * 135%)); }
.demo-url {
  display: inline-flex; align-items: center; gap: .5em; margin-left: auto; min-width: 0;
  padding: .5em .9em; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
.demo-lock {
  flex: none; width: 1em; height: 1em; color: var(--stone-deep);
  opacity: calc((var(--p, 1) - .62) * 2.6);
  transform: scale(calc(.75 + var(--p, 1) * .25));
}
.demo-host b { color: var(--muted); font-weight: 400; }

/* Crossfading tab title / host: two stacked lines swapped by --p */
.swap { position: relative; display: block; height: 1.35em; overflow: hidden; }
.swap .s { position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.swap .s-before { transform: translateY(calc(var(--p, 1) * -135%)); }
.swap .s-after { transform: translateY(calc((1 - var(--p, 1)) * 135%)); }
.demo-tabtitle { width: 15em; }
.demo-host { width: 13em; }

/* Mock pages: static pair by default */
.demo-viewport { display: grid; background: var(--white); }
.demo-page {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 1.4em;
  padding: 3em 2.2em 1.9em; font-size: clamp(.6rem, .34rem + .55vw, 1rem);
}
.demo-page + .demo-page { border-top: 1px solid var(--line); }
.page-tag {
  position: absolute; top: .9em; right: 1.4em; margin: 0;
  font-size: .68em; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.page-nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; color: var(--muted); font-size: .95em; }
.nav-logo { font-weight: 500; color: var(--ink-2); }
.nav-links { display: inline-flex; gap: 1.5em; }
.nav-cta { display: inline-flex; align-items: center; padding: .4em 1em; border: 1px solid var(--stone); border-radius: 999px; color: var(--stone-deep); }
.page-hero { display: grid; grid-template-rows: auto auto 1fr auto; gap: .8em; align-content: start; }
.page-title { margin: 0; font-size: 2em; line-height: 1.1; color: var(--ink); }
.page-title.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.15em; color: var(--ink-2); }
.page-title.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; }
.page-sub { margin: 0; color: var(--muted); font-size: .95em; }
.page-img { min-height: 9em; border-radius: .6em; overflow: hidden; background: var(--paper); }
.page-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-img--ph { background: repeating-linear-gradient(45deg, #eceae6 0 .8em, #e2dfd9 .8em 1.6em); border: 1px dashed var(--line); }
.page-btn { display: inline-flex; align-items: center; justify-self: start; padding: .55em 1.4em; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.page-nav--after { color: var(--ink); }
.page-nav--after .nav-logo { font-family: var(--serif); font-weight: 300; font-size: 1.3em; letter-spacing: .03em; color: var(--ink); }
.page-hero--after .page-btn { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* WhatsApp share preview */
.share { display: inline-flex; align-items: center; gap: .8em; max-width: 100%; padding: .7em .95em; border-radius: .8em; font-size: .92em; justify-self: start; }
.share--before { background: #f1f0ee; }
.share--before b { font-weight: 400; color: #8d9aa7; }
.share--after { background: #e6f3dc; }
.share-thumb { flex: none; width: 3.4em; height: 3.4em; border-radius: .5em; overflow: hidden; background: var(--paper); }
.share-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-txt { display: grid; gap: .2em; min-width: 0; }
.share-txt b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-txt i { font-style: normal; color: var(--muted); font-size: .88em; }

/* Progress rail (scrub mode only) */
.demo-progress { display: none; }
.demo-bar { position: relative; height: 1px; background: var(--line); }
.demo-bar-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }

/* Scroll-driven upgrade (JS on + motion allowed): pin the frame, scrub --p.
   The sticky top below must match the pin math in app.js. */
@media (prefers-reduced-motion: no-preference) {
  .js .demo-stage { height: 260vh; }
  .js .demo-sticky { position: sticky; top: 11vh; }
  .js .demo-viewport { position: relative; display: block; height: clamp(24rem, 62vh, 44rem); overflow: hidden; }
  .js .demo-page { position: absolute; inset: 0; background: var(--white); }
  .js .demo-page + .demo-page { border-top: 0; }
  .js .demo-page--after { z-index: 2; clip-path: inset(0 0 calc((1 - var(--p, 1)) * 100%) 0); }
  /* The stone line rides the wipe edge and fades out at both ends. */
  .js .demo-page--after::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc((1 - var(--p, 1)) * 100%); height: 2px;
    background: var(--stone);
    opacity: calc(var(--p, 1) * (1 - var(--p, 1)) * 4);
  }
  .js .demo-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Promise pause (video interlude after the process chapter).
   Deep-dark overlay over the loop, paper type on top. Media inset -7%
   balances the data-parallax .14 drift, same trick as the hero. */
.pause {
  position: relative; display: grid; align-items: center; overflow: hidden;
  min-height: clamp(26rem, 82vh, 48rem);
  background: #0b0c0f;
}
.pause-media { position: absolute; inset: -7% 0; z-index: 0; }
.pause-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pause::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 85% at 50% 12%, rgb(178 191 210 / .1), transparent 60%),
    linear-gradient(180deg, rgb(8 9 11 / .88) 0%, rgb(8 9 11 / .74) 45%, rgb(8 9 11 / .92) 100%);
}
.pause-quote { position: relative; z-index: 2; color: var(--paper); text-align: center; padding-block: clamp(6rem, 16vh, 10rem); }
.pause-quote .pq-a {
  display: block; font: 400 clamp(.78rem, .7rem + .35vw, .95rem)/1.5 var(--sans);
  letter-spacing: .34em; text-transform: uppercase; color: rgb(250 249 247 / .52);
  margin-bottom: clamp(1.4rem, 3.5vh, 2.4rem);
}
.pause-quote .pq-b {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 1.6rem + 6.5vw, 7rem); line-height: 1.04; letter-spacing: -.01em;
  max-width: 20ch; margin-inline: auto;
}

/* Header/hero fit fixes (1440 check) */
.nav { gap: 2rem; white-space: nowrap; }
.header-cta { white-space: nowrap; flex: none; }
@media (min-width: 80rem) { .status { display: none; } }
@media (min-width: 92rem) { .status { display: inline-flex; } }
@media (min-width: 60rem) {
  .hero h1 { font-size: min(clamp(3.4rem, 1rem + 4.2vw, 5rem), 9.5svh); }
  .hero h1 .ln { white-space: nowrap; }
}

/* =====================================================================
   Motion layer (motion.js + sound.js). Every scrubbed value has a resting
   default (var(--x, 1)), so the page is complete without JS or motion.
   ===================================================================== */
main { position: relative; z-index: 1; background: var(--white); }
main > section:not(.hero), main > .marquee { position: relative; z-index: 1; }
main > .section:not(.section--paper):not(.section--ink) { background: var(--white); }

/* Sticky hero: the page slides over it like a card */
@media (prefers-reduced-motion: no-preference) {
  .js .hero { position: sticky; top: 0; }
  .js .hero.is-gone { visibility: hidden; }
  .js .hero .container {
    opacity: calc(1 - var(--hx, 0) * 1.5);
    translate: 0 calc(var(--hx, 0) * -14vh);
    scale: calc(1 - var(--hx, 0) * .06);
    filter: blur(calc(var(--hx, 0) * 7px));
  }
  .js .hero-media { scale: calc(1.04 + var(--hx, 0) * .14); filter: brightness(calc(1 - var(--hx, 0) * .6)); }
  .js .ruler { opacity: calc(1 - var(--hx, 0) * 2.5); }
  .js #problem {
    border-radius: calc((1 - var(--hx, 1)) * 3rem) calc((1 - var(--hx, 1)) * 3rem) 0 0;
    box-shadow: 0 -40px 80px -30px rgb(0 0 0 / calc((1 - var(--hx, 1)) * .55));
  }
  .hero .split .w > span { transform: translateY(115%) rotate(7deg); transform-origin: left bottom; }
  .hero .split.is-in .w > span { transform: none; }
}

/* Sections that open from an inset rounded card to full bleed */
[data-expand] { clip-path: inset(0 calc((1 - var(--e, 1)) * 6vw) round calc((1 - var(--e, 1)) * 2.75rem)); }
.section--ink[data-expand] > .container { scale: calc(.93 + var(--e, 1) * .07); }

/* Promise band: the loop zooms out while the line grows into place */
.pause[data-zoom] .pause-media video { scale: calc(1.35 - var(--z, .5) * .35); }
.pause[data-zoom] .pq-b { scale: calc(.8 + var(--z, .5) * .36); }
.pause[data-zoom] .pq-a { letter-spacing: calc(.62em - var(--z, .5) * .5em); }

/* Velocity skew */
[data-skew] { transform-origin: 0 50%; will-change: transform; }

/* Marquees */
.marquee { overflow: hidden; padding: clamp(1.75rem, 4vw, 3.25rem) 0; border-block: 1px solid var(--line); background: var(--white); }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track > * { margin-right: clamp(1.25rem, 2.6vw, 2.75rem); flex: none; }
.marquee span {
  font: 300 clamp(3rem, 1.8rem + 6vw, 8.5rem)/1.05 var(--sans); letter-spacing: -.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--ink); transition: color .6s var(--ease);
}
.marquee span:nth-of-type(even) { font-family: var(--serif); font-style: italic; letter-spacing: -.01em; color: var(--ink); -webkit-text-stroke: 0; }
.marquee span:hover { color: var(--ink); }
.marquee i { font-style: normal; color: var(--stone); font-size: clamp(1.1rem, 2vw, 2rem); }
.marquee--quiet { background: var(--paper); }
.marquee--quiet span { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); }

/* 3D tilt + glare */
[data-tilt] { position: relative; }
.js [data-tilt].is-in, [data-tilt]:not(.reveal) {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
[data-tilt].is-tilting { transition: transform .35s var(--ease), opacity 1.1s var(--ease); transition-delay: 0s; }
.cost[data-tilt]::after, .step-card[data-tilt]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 50%), rgb(168 151 124 / .16), transparent 55%);
}
.cost[data-tilt].is-tilting::after, .step-card[data-tilt].is-tilting::after { opacity: 1; }

/* Softer, blurred text reveals + drawn label rules */
.js .reveal:not([data-tilt]) { filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in:not([data-tilt]) { filter: none; }
.js .label.reveal::before { transform: scaleX(0); transition: transform 1.2s var(--ease) .25s; }
.js .label.reveal.is-in::before { transform: none; }

/* Custom cursor (fine pointers only) */
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-cursor] { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: difference;
  opacity: 0; transition: opacity .3s;
}
.cursor-live .cursor-dot, .cursor-live .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor-ring span {
  display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid #fff; border-radius: 50%;
  font: 500 .42rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #000;
  transition: scale .55s var(--ease), background .4s var(--ease), opacity .3s;
}
.cursor-ring.is-hover span { scale: 1.6; }
.cursor-ring.has-word span { scale: 2.3; background: #fff; }
.cursor-ring.is-text span { scale: .5; opacity: .4; }
.cursor-ring.is-down span { scale: .8; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* Scroll progress hairline under the header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }

/* Sound toggle */
.sound {
  display: inline-flex; align-items: center; gap: .65rem; flex: none; margin-left: auto;
  padding: .6rem .95rem; border: 1px solid rgb(128 128 128 / .38); border-radius: 999px; background: none; color: inherit;
  font: 400 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.sound:hover { border-color: currentColor; }
.sound-label { display: none; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; transition: height .5s var(--ease); }
.sound.is-on .bars i { animation: eq 1.1s ease-in-out infinite; }
.sound.is-on .bars i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.sound.is-on .bars i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.sound.is-on .bars i:nth-child(4) { animation-duration: .95s; animation-delay: -.15s; }
.sound.is-on .bars i:nth-child(5) { animation-duration: 1.2s; animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@media (min-width: 60rem) { .sound { margin-left: 0; } .sound-label { display: inline; } }

/* About: a ghost line drifting sideways behind the copy */
.about-sec { overflow: clip; }
.about-sec > .container { position: relative; z-index: 1; }
.ghost-word {
  position: absolute; top: clamp(1rem, 4vw, 3rem); left: 0; z-index: 0; margin: 0; pointer-events: none; white-space: nowrap;
  font: italic 300 clamp(5rem, 2.5rem + 12vw, 16rem)/1 var(--serif); color: var(--ink); opacity: .05;
}

/* Footer: fixed underneath, uncovered at the end; giant wordmark settles in */
.site-footer { overflow: clip; background: var(--white); }
.footer-reveal .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }
.footer-giant {
  margin: 0 0 2rem; white-space: nowrap; text-align: center;
  font: 300 clamp(5rem, 2rem + 19vw, 21rem)/.82 var(--serif); text-transform: uppercase; color: var(--ink);
  letter-spacing: calc(.34em - var(--f, 1) * .26em);
  translate: 0 calc((1 - var(--f, 1)) * 35%);
  opacity: calc(.15 + var(--f, 1) * .85);
}

/* Page-to-page transitions (same-origin navigations) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .55s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in .9s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; scale: .96; filter: blur(6px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .grain, .cursor-dot, .cursor-ring { display: none; }
  [data-expand] { clip-path: none; }
}

/* Hour ruler: the live Lagos time is the one bright thing on it */
.ruler { overflow: visible; }
.ruler .now {
  width: 2px; height: 2.6rem; margin-left: -1px; background: var(--glow);
  box-shadow: 0 0 10px 1px rgb(244 196 124 / .75), 0 0 28px 4px rgb(244 196 124 / .3);
}
.ruler .now::before {
  content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 0 rgb(244 196 124 / .6); animation: now-pulse 2.4s infinite;
}
@keyframes now-pulse { 70% { box-shadow: 0 0 0 10px rgb(244 196 124 / 0); } 100% { box-shadow: 0 0 0 0 rgb(244 196 124 / 0); } }
.ruler .now-tag {
  position: absolute; bottom: calc(100% + .7rem); left: 50%; translate: var(--tag-x, -50%) 0;
  padding: .4rem .7rem; border-radius: 999px; white-space: nowrap;
  background: var(--glow); color: var(--ink); font: 500 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 24px -6px rgb(244 196 124 / .7);
}
.ruler .now-tag b { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ruler .nums span.is-now { visibility: visible; color: var(--glow); font-weight: 600; }

/* Other cities on the ruler: fainter markers, tags on an upper tier */
.ruler .city-mark { position: absolute; bottom: 0; width: 1px; height: 1.9rem; margin-left: -.5px; background: rgb(255 255 255 / .85); transition: left 1s var(--ease); }
.ruler .city-mark::before { content: ""; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--white); }
.ruler .city-tag {
  position: absolute; bottom: calc(100% + 2.35rem); left: 50%; translate: var(--tag-x, -50%) 0; white-space: nowrap;
  padding: .32rem .6rem; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px;
  background: rgb(16 18 22 / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--white); font: 500 .64rem/1 var(--sans); letter-spacing: .1em;
}
.ruler .city-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 2.05rem; background: rgb(255 255 255 / .35); }
.ruler .city-tag b { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .2rem; }
.ruler .now-tag { letter-spacing: .1em; }
@media (min-width: 60rem) { .hero .container { padding-bottom: 8rem; } }

/* Hero meta: all seven clocks; cities sharing Lagos time glow with it */
.world { display: flex; flex-wrap: wrap; gap: .45rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.world li {
  display: inline-flex; align-items: baseline; gap: .45rem; padding: .38rem .7rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .22); font-size: .78rem; color: rgb(255 255 255 / .8);
}
.world li b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--white); }
.world li.same { border-color: rgb(244 196 124 / .55); }
.world li.same b { color: var(--glow); }
.world li.home { background: var(--glow); border-color: var(--glow); color: var(--ink); }
.world li.home b { color: var(--ink); font-weight: 600; }

.ruler .city-tag { bottom: calc(100% + 3.3rem); }
.ruler .city-tag::after { height: 3.3rem; }
.ruler .city-mark.is-before .city-tag { left: auto; right: -6px; translate: none; }
.ruler .city-mark.is-before .city-tag::after { left: auto; right: 5px; }
.ruler .city-mark.is-after .city-tag { left: -6px; translate: none; }
.ruler .city-mark.is-after .city-tag::after { left: 5px; }
@media (max-width: 47.99rem) {
  .ruler .now-tag { font-size: .62rem; padding: .36rem .55rem; }
  .ruler .city-tag { font-size: .58rem; }
}
@media (max-width: 59.99rem) { .hero .container { padding-bottom: 8.5rem; } }

/* =====================================================================
   Case studies (/work/*.html, built by scripts/build-work.py)
   ===================================================================== */
.cs-hero h1.display { font-size: clamp(3.4rem, 1.4rem + 9vw, 10rem); line-height: .92; margin: 1.5rem 0 2rem; }
.cs-hero .label { color: var(--muted); }
.cs-meta .status { font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); display: inline-flex; align-items: center; gap: .55rem; }
.cs-meta .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--stone); }
.cs-meta .status.live::before { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 0 0 rgb(244 196 124 / .6); animation: now-pulse 2.4s infinite; }

.cs-cover { padding-bottom: clamp(3rem, 8vw, 6rem); background: var(--white); }
.cs-browser {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper);
  box-shadow: 0 50px 100px -40px rgb(20 20 20 / .35), 0 18px 36px -24px rgb(20 20 20 / .25);
}
.cs-browser-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.cs-browser-url { flex: 1; max-width: 26rem; margin-inline: auto; padding: .35rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-align: center; letter-spacing: .02em; }
.cs-browser img { width: 100%; }
.cs-phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 4vw, 3rem); }
.frame { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0; }
.frame--phone { max-width: 20rem; border-radius: 26px; padding: .5rem; box-shadow: 0 40px 80px -40px rgb(20 20 20 / .4); }
.frame--phone img { border-radius: 19px; }
.cs-phones .frame--phone:nth-child(2) { margin-top: clamp(2rem, 8vw, 6rem); }

@media (min-width: 48rem) {
  .cs-gallery--mixed { grid-template-columns: 1fr 2fr; align-items: start; }
  .cs-gallery--mixed figure:nth-child(3) { grid-column: 2; margin-top: -2rem; }
  .cs-gallery--mixed figure:nth-child(2) { margin-top: 4rem; }
}

.decisions--ink { background: rgb(250 249 247 / .12); border-color: rgb(250 249 247 / .12); }
.decisions--ink .decision { background: var(--ink); position: relative; padding: 2.4rem 2rem 2.6rem; }
.decisions--ink .decision::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 50%), rgb(244 196 124 / .12), transparent 60%);
}
.decisions--ink .decision.is-tilting::after { opacity: 1; }
.decisions--ink h3 { color: var(--white); }
.decisions--ink p { color: rgb(250 249 247 / .66); }
.decision-n { display: block; font: 300 2.6rem/1 var(--serif); color: var(--stone); margin-bottom: 1.6rem; }

.numbers { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.num-card { display: grid; gap: .4rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.num-card dd { order: -1; margin: 0; font: 300 clamp(3.6rem, 2rem + 6vw, 7.5rem)/.95 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.num-card dt { color: var(--muted); font-size: .95rem; }
@media (min-width: 60rem) {
  .numbers { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .num-card { padding: 0 2.5rem 0 0; border-bottom: 0; border-left: 1px solid var(--line); padding-left: 2rem; }
}

.next-cs { position: relative; overflow: hidden; background: var(--white); }
.next-cs .container { display: block; }
.next-cs .name { font-family: var(--sans); letter-spacing: -.05em; }
.next-cs::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .9s var(--ease-in-out); z-index: 0;
}
.next-cs .container { position: relative; z-index: 1; transition: color .6s var(--ease) .1s; }
.next-cs:hover::after { transform: none; }
.next-cs:hover .container, .next-cs:hover .label { color: var(--white); }

/* Homepage hint: "this website" in the work list */
.work-item .status.here::before { background: var(--glow); border-color: var(--glow); }
.footer-made { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .4s; }
.footer-made:hover { text-decoration-color: currentColor; }
.num-card dd { font-size: clamp(3rem, 1.6rem + 4.4vw, 6rem); white-space: nowrap; }
.work-list { list-style: none; margin: 0; padding: 0; }

/* Sound pill nudge when the browser blocked autoplay */
.sound { position: relative; }
.sound.is-blocked { animation: sound-nudge 2.6s var(--ease) infinite; }
@keyframes sound-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgb(244 196 124 / .55); } 60% { box-shadow: 0 0 0 9px rgb(244 196 124 / 0); } }
.sound.is-blocked::after {
  content: attr(data-tip); position: absolute; top: calc(100% + .55rem); left: 50%; translate: -50% 0;
  padding: .35rem .6rem; border-radius: 999px; background: var(--glow); color: var(--ink);
  font: 500 .62rem/1 var(--sans); letter-spacing: .12em; white-space: nowrap; pointer-events: none;
  animation: tip-in .8s var(--ease) 1.2s both;
}
@keyframes tip-in { from { opacity: 0; translate: -50% -.4rem; } to { opacity: 1; translate: -50% 0; } }
.site-header.is-solid .sound.is-blocked::after, .site-header.is-plain .sound.is-blocked::after { box-shadow: 0 6px 18px -8px rgb(20 20 20 / .4); }
@media (prefers-reduced-motion: reduce) { .sound.is-blocked { animation: none; } }

/* Hero label: keep the location together when it wraps */
.label-tail { white-space: nowrap; }
/* ...except on the narrowest phones, where the IT/ES tail alone is wider than the screen */
@media (max-width: 21rem) { .label-tail { white-space: normal; } }

/* About → "A CEO's promise" */
.promise {
  margin: 0 0 2.5rem; padding: .25rem 0 .25rem 1.75rem; border-left: 2px solid var(--glow);
  font: italic 300 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.35 var(--serif); color: var(--ink);
}
.promise p { margin: 0 0 .8em; }
.promise p:last-child { margin: 0; }
.signature { display: grid; gap: .3rem; margin-top: 2.25rem; }
.sig-name { font: italic 300 clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem)/1 var(--serif); color: var(--ink); }
.sig-role { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Hero alignment pass: one grid, shared rows.
   label / title·meta (tops + bottoms aligned) / foot·world (centred). */
.hero .container { gap: 0; grid-template-columns: minmax(0, 1fr); }
.hero .hero-label { margin: 0 0 1.4rem; }
.hero h1 { margin: 0 0 2.5rem; }
.hero-world { display: none; }
@media (min-width: 60rem) {
  .hero .container {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas: "label label" "title meta" "foot world";
    column-gap: 4rem; row-gap: 0;
  }
  .hero .hero-label { grid-area: label; }
  .hero h1 { grid-area: title; margin: 0; align-self: end; }
  .hero-meta {
    grid-area: meta; grid-column: auto; margin-top: 0; align-self: stretch;
    align-content: space-between; padding-top: 1.1rem;
  }
  .hero-foot { grid-area: foot; margin-top: 3.25rem; align-self: center; }
  .hero-world {
    grid-area: world; display: grid; gap: .75rem; margin-top: 3.25rem; align-self: center;
    padding-top: 1.1rem; border-top: 1px solid rgb(255 255 255 / .28);
  }
  .world-label { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
  .hero-world .world { margin: 0; }
}
.hero-meta { margin: 0; }
/* Headline sized for its longest line, "Optimised for Google." */
.hero h1 { font-size: clamp(2.1rem, .6rem + 6.4vw, 2.6rem); }
.hero h1 .ln { white-space: nowrap; }
@media (min-width: 48rem) { .hero h1 { font-size: clamp(2.6rem, .6rem + 4.6vw, 3.4rem); } }
@media (min-width: 60rem) { .hero h1 { font-size: min(clamp(3rem, .8rem + 3.6vw, 4.4rem), 8.5svh); } }
/* Lines never wrap, so each one shrinks to fit the headline's own width.
   --hero-ems is the longest line in em (measured), a little over for safety:
   EN "Optimised for Google." · DE "Gebaut, um gebucht zu werden." ·
   IT "Costruito perché ti prenotino." · ES "Hecho para que te reserven." */
.hero h1 { container-type: inline-size; --hero-ems: 9.4; }
:lang(de) .hero h1 { --hero-ems: 13; }
:lang(it) .hero h1 { --hero-ems: 11.6; }
:lang(es) .hero h1 { --hero-ems: 11.3; }
.hero h1 .ln { font-size: min(1em, 100cqi / var(--hero-ems)); }

/* ---------- Performance pass ----------
   Pulses use transform/opacity rings (compositor) instead of animating
   box-shadow (repaints every frame). Intro is shorter so the hero paints
   sooner; hero copy reveals without blur. */
.status i { position: relative; box-shadow: none; animation: none; }
.status i::after, .ruler .now::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  animation: ring 2.4s var(--ease) infinite; will-change: transform, opacity;
}
.status i::after { inset: 0; background: #5fbf7a; }
.ruler .now::before { box-shadow: none; animation: none; }
.ruler .now::after { left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--glow); }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.cs-meta .status.live::before { box-shadow: none; animation: none; }
.sound.is-blocked { animation: none; }
.sound.is-blocked::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--glow); pointer-events: none;
  animation: pill-ring 2.6s var(--ease) infinite; will-change: transform, opacity;
}
@keyframes pill-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.18, 1.5); opacity: 0; } }
.grain { will-change: transform; }
.js .hero .reveal { filter: none; }
.has-curtain body::before { animation: curtain-up .8s var(--ease-in-out) .45s forwards; }
.has-curtain body::after { animation: curtain-word .8s var(--ease) forwards, curtain-fade .35s var(--ease) .4s forwards; }
.has-curtain .hero-media img { animation-delay: .6s; }
.share-txt i { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .status i::after, .ruler .now::after, .sound.is-blocked::before { display: none; } }
.has-curtain body::before { animation: curtain-up .7s var(--ease-in-out) .3s forwards; }
.has-curtain body::after { animation: curtain-word .6s var(--ease) forwards, curtain-fade .3s var(--ease) .28s forwards; }
.has-curtain .hero-media img { animation-delay: .4s; }
.js .hero .reveal { transition-duration: .8s; }

/* ---------- Loader (replaces the CSS-only intro wipe) ---------- */
.has-curtain body::before, .has-curtain body::after { content: none; display: none; animation: none; }
.loader { display: none; }
.has-curtain .loader {
  position: fixed; inset: 0; z-index: 400; display: block; background: var(--white); color: var(--ink);
  animation: loader-failsafe .01s linear 7s forwards; /* never strands anyone if JS fails */
}
.loader-mark {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  font: 400 clamp(1.8rem, 5vw, 2.8rem)/1 var(--serif); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase;
  animation: loader-mark 1.2s var(--ease) both;
}
.loader-bar { position: absolute; left: 50%; top: calc(46% + 3rem); width: min(18rem, 62vw); height: 1px; translate: -50% 0; background: var(--line); overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.loader-bar i::after { content: ""; position: absolute; right: 0; top: -1px; width: 14px; height: 3px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.loader-note { position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem); font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
/* Phones and small tablets: the counter takes the bottom row, so the label moves up */
@media (max-width: 48rem) { .loader-note { bottom: auto; top: clamp(1.5rem, 4vw, 3rem); } }
.loader-count {
  position: absolute; right: var(--gutter); bottom: clamp(1rem, 3vw, 2.25rem); display: flex; align-items: flex-start; gap: .3rem;
  font: 300 clamp(4.5rem, 3rem + 9vw, 11rem)/.8 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums;
}
.loader-count small { font-size: .22em; letter-spacing: 0; margin-top: .4em; color: var(--muted); }
.loader.is-done { animation: loader-lift .9s var(--ease-in-out) forwards; pointer-events: none; }
.loader.is-done > * { animation: loader-out .45s var(--ease) forwards; }
@keyframes loader-mark { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes loader-lift { to { clip-path: inset(0 0 100% 0); } }
@keyframes loader-out { to { opacity: 0; translate: 0 -1.5rem; } }
.loader-mark { translate: -50% -50%; }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
/* Hero photo starts settling as the loader lifts */
.has-curtain:not(.is-ready) .hero-media img { animation-play-state: paused; }
.has-curtain .hero-media img { animation-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .loader { display: none !important; } }
@media (min-width: 60rem) { .hero-meta { row-gap: 1rem; padding-top: .7rem; } .hero-meta dt { margin-bottom: .25rem; } }
/* Keep title/meta aligned on narrower desktops */
@media (min-width: 60rem) and (max-width: 84.99rem) { .hero-meta { font-size: .84rem; } .hero-meta .wide { display: none; } }
@media (min-width: 60rem) and (max-width: 71.99rem) {
  .hero-meta { display: none; }
  .hero .container { grid-template-areas: "label label" "title title" "foot world"; }
}
/* 960–1150px: stack intro over CTA; keep the header on one line */
@media (min-width: 60rem) and (max-width: 71.99rem) {
  .hero-foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-cta { display: none; }
  .nav { gap: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero + section {
    border-radius: calc((1 - var(--hx, 1)) * 3rem) calc((1 - var(--hx, 1)) * 3rem) 0 0;
    box-shadow: 0 -40px 80px -30px rgb(0 0 0 / calc((1 - var(--hx, 1)) * .55));
  }
}
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.lp-pricing { margin: 1.5rem 0 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.studio-link { display: grid; gap: 1rem; padding: clamp(3rem, 7vw, 5rem) 0; }
.studio-link .name { font: 300 clamp(2.4rem, 1.4rem + 4vw, 5rem)/1 var(--sans); letter-spacing: -.045em; }
/* "Available" is short enough to show from 80rem with the clock */
@media (min-width: 80rem) { .status { display: inline-flex; } }

/* Netlify reCAPTCHA slot + thank-you page */
.captcha:empty { display: none; }
.captcha { min-height: 78px; }
.thanks { min-height: 78svh; display: grid; align-content: center; }

/* Legal pages */
.legal { padding-top: clamp(8rem, 14vw, 11rem); }
.legal h1.display { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); margin: 1.5rem 0 1.5rem; }
.legal .lead { max-width: 52ch; margin-bottom: 1rem; }
.legal h2 { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal dl { margin-top: 1.25rem; }
.legal li { margin-bottom: .45rem; }

/* Language switcher */
.langs { display: none; gap: .2rem; font: 500 .68rem/1 var(--sans); letter-spacing: .14em; flex: none; }
.langs a { padding: .45rem .35rem; opacity: .55; transition: opacity .3s; }
.langs a:hover, .langs a[aria-current] { opacity: 1; }
.langs a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.langs--menu { display: flex; gap: .5rem; margin-top: 1rem; font-size: .85rem; }
@media (min-width: 60rem) { .site-header .langs { display: inline-flex; } }
@media (min-width: 80rem) and (max-width: 95.99rem) { .status { display: none; } }
