/* ==========================================================================
   ENDERIFY — style.css
   Tokens → base → fixed UI → sections → responsive → reduced motion
   ========================================================================== */

:root {
  --void: #07070A;
  --void-2: #0E0E13;
  --line: rgba(237, 234, 227, 0.10);
  --line-2: rgba(237, 234, 227, 0.22);
  --bone: #EDEAE3;
  --ash: #8A8790;
  --ember: #FF5A1F;
  --ember-glow: rgba(255, 90, 31, 0.35);
  --haze: #6B4CFF;
  --live: #3DFF8A;

  --f-display: 'Syne', 'Arial Black', sans-serif;
  --f-body: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 2px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --fs-display: clamp(2.9rem, 8.4vw, 11.5rem);
  --fs-h1: clamp(3rem, 10vw, 10rem);
  --fs-h2: clamp(2rem, 5vw, 4.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
em { font-style: normal; color: var(--ember); }
::selection { background: var(--ember); color: var(--void); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow { color: var(--ash); margin-bottom: 1.5rem; }
.h1, .h2, .hero__title, .cta__title, .footer__word, .pillar__title {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.h1 { font-size: var(--fs-h1); line-height: 0.86; }
.h2 { font-size: var(--fs-h2); line-height: 0.95; font-weight: 700; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .6rem 1rem; background: var(--ember); color: var(--void);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Split-text helpers */
.w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.c { display: inline-block; will-change: transform; }
[data-split="fill"] .w { overflow: visible; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1.05em 1.6em;
  border-radius: 999px;
  background: var(--ember);
  color: var(--void);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  box-shadow: 0 0 0 0 var(--ember-glow);
  cursor: pointer;
}
.btn:hover { background: var(--bone); box-shadow: 0 0 40px 0 var(--ember-glow); }
.btn--ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--bone); color: var(--void); }
.btn--small { padding: .75em 1.2em; font-size: .7rem; }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); margin-right: .6em; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(61, 255, 138, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 255, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 138, 0); } }

/* ---------- Fixed UI ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
  background: var(--void);
}
.preloader__row { display: flex; justify-content: space-between; color: var(--ash); }
.preloader__word { overflow: hidden; }
.preloader__word span {
  display: block;
  font-family: var(--f-display); font-weight: 800;
  font-size: 10.5vw; line-height: .85; letter-spacing: -0.05em; white-space: nowrap;
}
.preloader__count { color: var(--bone); font-size: 1rem; }

.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--void); }
.stage__canvas, .stage__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__video { object-fit: cover; display: none; }
.stage.has-video .stage__video { display: block; }
.stage.has-video .stage__canvas { display: none; }
.stage__dim { position: absolute; inset: 0; background: var(--void); opacity: 0; }
.stage__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(7, 7, 10, .85) 100%);
}

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  overflow: hidden;
  opacity: .07; mix-blend-mode: overlay;
}
.grain::before {
  content: ""; position: absolute; inset: -100%;
  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 1s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-5%, -10%); } 25% { transform: translate(-15%, 5%); }
  37% { transform: translate(7%, -25%); } 50% { transform: translate(-5%, 25%); }
  62% { transform: translate(-15%, 10%); } 75% { transform: translate(15%, 0); }
  87% { transform: translate(0, 15%); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; }
.progress span { display: block; height: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); }

.cursor { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-moving { opacity: 1; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--bone); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(237, 234, 227, .45);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .45s var(--ease-out), border-color .45s;
}
.cursor__label { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--void); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ember); border-color: var(--ember); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--ember); }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 96;
  padding: .9rem 1.4rem; border-radius: 999px;
  background: var(--ember); color: var(--void);
  transform: translate(-50%, 250%); pointer-events: none;
  visibility: hidden;
  transition: transform .6s var(--ease-out), visibility 0s .6s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out); }

/* ---------- Nav & menu ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -40% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 7, 10, .75), transparent);
  transition: background .4s, inset .4s;
}
/* Once the page scrolls, the nav gets a solid bar so content never shows through it */
.nav.is-scrolled::before {
  inset: 0;
  background: rgba(7, 7, 10, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__logo { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__logo sup { font-size: .5em; color: var(--ember); }
.nav__status { color: var(--ash); }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.nav__menu { position: relative; padding: .5rem 0; }
.nav__menu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__menu:hover::after, .nav__menu[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }

.menu {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem var(--gutter) var(--gutter);
  background: var(--void);
  clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none; }
.menu__list li { overflow: hidden; border-top: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 1.5rem;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 7.5vw, 6.5rem); line-height: 1.05; letter-spacing: -0.04em;
  transition: color .4s, padding .5s var(--ease-out);
}
.menu__list a .mono { color: var(--ember); }
.menu__list a:hover { color: var(--ember); padding-left: 1rem; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; color: var(--ash); }

/* Underline links */
.footer a, .cta__mail, .menu__foot a, .contact__facts a {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.footer a:hover, .cta__mail:hover, .menu__foot a:hover, .contact__facts a:hover { background-size: 100% 1px; background-position: 0 100%; }

/* ---------- Layout ---------- */
main, .footer { position: relative; z-index: 1; }
section { position: relative; }

/* 01 Hero */
.hero { height: 260vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}
.hero__sticky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 7, 10, .92) 0%, rgba(7, 7, 10, .4) 45%, transparent 70%);
}
.hero__eyebrow { margin-bottom: 1rem; }
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.86;
  max-width: 13ch;
  transform-origin: left bottom;
}
.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero__copy { max-width: 34rem; }
.hero__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.35rem); margin-bottom: .9rem; }
.proof { color: var(--ember); }
.hero__ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: var(--ash); writing-mode: vertical-rl;
}
.scroll-cue i { display: block; width: 1px; height: 64px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ember); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* 02 Stats */
.stats {
  background: var(--void);
  padding: clamp(6rem, 14vh, 10rem) var(--gutter) 0;
  border-top: 1px solid var(--line);
}
.stats__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 8vh, 5rem); }
.stats__head .h2 { max-width: 16ch; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats__grid--growth { margin-top: -1px; }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: 2rem 1.5rem 2rem 0;
  border-bottom: 1px solid var(--line);
  min-height: clamp(12rem, 26vh, 17rem);
}
.stat:not(:nth-child(3n + 1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 8rem); line-height: .9; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--ash); max-width: 20ch; }
.stat--ember .stat__num { color: var(--ember); text-shadow: 0 0 40px var(--ember-glow); }

.marquee { overflow: hidden; padding: 1.6rem 0; margin: 0 calc(var(--gutter) * -1); border-bottom: 1px solid var(--line); color: var(--ash); }
.marquee__track { display: flex; gap: 2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track b { color: var(--ember); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 03 Mission */
.mission {
  background: var(--void);
  padding: clamp(8rem, 20vh, 14rem) var(--gutter);
}
.mission__text {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 6rem); line-height: 1.02; letter-spacing: -0.035em;
  max-width: 20ch;
}
.mission__text .w { color: var(--bone); }
.mission__text em .w { color: var(--ember); }

/* 04 Pillars */
.pillars { background: transparent; }
.pillars__pin {
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--void) 0%, transparent 18%, transparent 82%, var(--void) 100%);
}
.pillars__track { display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--gutter); will-change: transform; }
.pillars__intro { flex: 0 0 min(36rem, 80vw); display: flex; flex-direction: column; justify-content: center; padding-right: 4vw; }
.pillars__intro .h1 { font-size: clamp(3rem, 8vw, 8.5rem); }
.pillars__lede { color: var(--ash); max-width: 26rem; margin-top: 1.5rem; }
.pillar {
  flex: 0 0 min(30rem, 82vw);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: min(34rem, 68vh);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(14, 14, 19, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .5s, transform .6s var(--ease-out);
}
.pillar:hover { border-color: var(--ember); }
.pillar__num { color: var(--ember); }
.pillar__title { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .95; font-weight: 700; margin-top: auto; }
.pillar p { color: rgba(237, 234, 227, .78); max-width: 24rem; }
.pillar__tag { color: var(--ash); padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* 05 Story */
.story {
  background: var(--void);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(7rem, 18vh, 12rem) var(--gutter);
  align-items: start;
}
.story__portrait { position: sticky; top: 14vh; overflow: hidden; }
main { overflow-x: clip; }
/* Studio card: monogram on a design-tool grid, with key facts along the bottom */
.story__img {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 90, 31, .30), transparent 55%),
    radial-gradient(circle at 15% 95%, rgba(107, 76, 255, .18), transparent 45%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--void-2);
}
.story__ring {
  position: absolute; left: 50%; top: 40%;
  width: 68%; aspect-ratio: 1;
  border: 1px dashed rgba(255, 90, 31, .45); border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 40s linear infinite;
}
.story__ring::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--ember); box-shadow: 0 0 16px var(--ember);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.story__mark {
  position: relative; margin-bottom: 20%;
  font-family: var(--f-display); font-weight: 800; line-height: .8;
  font-size: clamp(7rem, 15vw, 14rem); letter-spacing: -0.05em;
  color: var(--bone); text-shadow: 0 0 80px var(--ember-glow);
}
.story__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 10, .72);
}
.story__meta li { padding: 1rem; font-size: .68rem; line-height: 1.45; color: var(--bone); }
.story__meta li + li { border-left: 1px solid var(--line); }
.story__meta span { display: block; color: var(--ash); margin-bottom: .35rem; }
.story__portrait figcaption { color: var(--ash); margin-top: 1rem; }
.story__copy .h2 { margin-bottom: 2.5rem; }
.story__copy > p { max-width: 36rem; color: rgba(237, 234, 227, .82); margin-bottom: 1.3rem; }
.story__copy > p em { color: var(--bone); font-style: italic; }
.story__kicker { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; color: var(--bone) !important; margin-top: 2.5rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; border-top: 1px solid var(--line); }
.timeline li { padding: 1rem .75rem 0 0; color: var(--ash); position: relative; }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ash); }
.timeline li span { display: block; color: var(--bone); margin-bottom: .3rem; }
.timeline li.is-next { color: var(--ember); }
.timeline li.is-next::before { background: var(--ember); box-shadow: 0 0 14px var(--ember); }

/* 06 Services */
.services { background: var(--void); padding: clamp(6rem, 14vh, 10rem) var(--gutter); border-top: 1px solid var(--line); }
.services__head { margin-bottom: clamp(3rem, 8vh, 5rem); }
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 4rem 1.1fr 1fr 3rem; gap: 1.5rem; align-items: center;
  padding: clamp(1.6rem, 3.5vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: padding .6s var(--ease-out);
}
.service::before { content: ""; position: absolute; inset: 0; background: var(--ember); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); z-index: -1; }
.service > span.mono { color: var(--ember); transition: color .4s; }
.service h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.service p { color: var(--ash); transition: color .4s; }
.service__arrow { font-size: 1.8rem; justify-self: end; transition: transform .6s var(--ease-out); }
.service:hover { padding-left: 1.25rem; padding-right: 1.25rem; color: var(--void); }
.service:hover::before { transform: scaleY(1); }
.service:hover > span.mono, .service:hover p { color: var(--void); }
.service:hover .service__arrow { transform: rotate(45deg); }

.process { margin-top: clamp(6rem, 14vh, 9rem); position: relative; }
.process__line { height: 1px; background: var(--line); margin: 1rem 0 2.5rem; }
.process__line span { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--ember); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process__steps span { color: var(--ember); }
.process__steps h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.2rem); text-transform: uppercase; letter-spacing: -0.03em; margin: .8rem 0 .5rem; }
.process__steps p { color: var(--ash); font-size: .95rem; max-width: 18rem; }


/* 07 Work */
.work { background: var(--void); }
.work__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4vh, 3rem); overflow: hidden; padding: 5rem 0 2rem; }
.work__head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.work__head .eyebrow { margin: 0; order: 2; }
.work__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.card { flex: 0 0 auto; width: clamp(18rem, 44vw, 46rem); display: block; text-align: left; }
.card__cover {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--void-2); border: 1px solid var(--line);
  transition: transform .8s var(--ease-out), border-color .5s;
}
.card__cover .mock { transition: transform 1.2s var(--ease-out); transform-origin: 50% 0; pointer-events: none; }
.card:hover .card__cover { transform: scale(.985); border-color: var(--ember); }
.card:hover .card__cover .mock { transform: scale(1.04); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; }
.card__meta h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; letter-spacing: -0.02em; }
.card__meta .mono { color: var(--ash); }
.card--next {
  width: clamp(16rem, 30vw, 28rem);
  aspect-ratio: 16 / 13;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 2rem; border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.card--next .mono { color: var(--ash); }
.card--next__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(2.2rem, 4vw, 4rem); line-height: .9; }

/* 08 CTA */
.cta { height: 240vh; }
.cta__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  overflow: hidden;
}
.cta__sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(7, 7, 10, .75), transparent 70%); pointer-events: none; }
.cta__title { font-size: clamp(2.6rem, 8vw, 10.5rem); line-height: .86; max-width: 14ch; }
.cta__bottom { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vh, 3.5rem); }
.cta__sub { max-width: 28rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.35rem); }
.cta__orb {
  display: grid; place-items: center; text-align: center;
  width: clamp(8.5rem, 14vw, 12rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--ember); color: var(--void);
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
  box-shadow: 0 0 80px var(--ember-glow);
  transition: background .4s, box-shadow .4s;
}
.cta__orb:hover { background: var(--bone); box-shadow: 0 0 120px var(--ember-glow); }
.cta__mail { color: var(--bone); }

/* 09 Contact form */
.contact {
  background: var(--void);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(7rem, 16vh, 11rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.contact__intro { position: sticky; top: 14vh; align-self: start; }
.contact__lede { color: rgba(237, 234, 227, .8); max-width: 30rem; margin: 2rem 0 2.5rem; }
.contact__facts { display: grid; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.contact__facts dt { color: var(--ash); margin-bottom: .2rem; }
.contact__facts dd { color: var(--bone); }
.contact__facts a { color: var(--ember); text-transform: none; letter-spacing: .04em; }

.form { display: grid; gap: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.6rem 0 .7rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  color: var(--bone); font: inherit; font-size: 1.15rem;
  transition: border-color .4s;
  resize: vertical;
}
.field textarea { min-height: 8rem; }
.field label {
  position: absolute; left: 0; top: 1.6rem; color: var(--ash); pointer-events: none;
  transform-origin: left top; transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(.72); color: var(--ember);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff3d3d; }
.field.is-invalid label { color: #ff6b6b; }

.chips { border: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips legend { color: var(--ash); margin-bottom: .9rem; padding: 0; }
.chips.is-invalid legend { color: #ff6b6b; }
.budget__cur { color: var(--ember); }
.budget__region { flex-basis: 100%; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; color: var(--ash); }
.budget__region select {
  appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23EDEAE3'/%3E%3C/svg%3E") no-repeat right center;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  color: var(--bone); font: inherit; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem 1.4rem .3rem 0; cursor: pointer; max-width: 100%;
}
.budget__region select:focus { outline: none; border-color: var(--ember); }
.budget__region option { background: var(--void-2); color: var(--bone); text-transform: none; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .7em 1.15em; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .92rem;
  transition: background .35s, color .35s, border-color .35s;
}
.chips label:hover span { border-color: var(--bone); }
.chips input:checked + span { background: var(--ember); border-color: var(--ember); color: var(--void); }
.chips input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 3px; }


.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 1rem; }
.form__status { color: var(--ash); max-width: 26rem; }
.form__status.is-error { color: #ff6b6b; }
.form__status.is-error a { color: var(--bone); text-decoration: underline; }
.form__submit[disabled] { opacity: .6; pointer-events: none; }
.form__done {
  grid-column: 2; align-self: start;
  padding: 2.5rem; border: 1px solid rgba(255, 90, 31, .5); border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 90, 31, .1), transparent 60%);
}
.form__done h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: .95; margin-bottom: 1rem; }
.form__done p { color: rgba(237, 234, 227, .82); }
.form__again { margin-top: 1.8rem; }

/* Concept preview overlay */
.preview {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column;
  background: rgba(7, 7, 10, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: inset(100% 0 0 0);
}
.preview__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem var(--gutter); border-bottom: 1px solid var(--line);
}
.preview__cat { color: var(--ember); }
.preview__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1; }
.preview__actions { display: flex; align-items: center; gap: 1rem; }
.preview__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1rem; transition: background .3s, color .3s; }
.preview__close:hover { background: var(--bone); color: var(--void); }
.preview__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 4rem; }
.preview__frame { max-width: 1200px; margin: 0 auto; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 90, 31, .08); }
.preview__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #15151b; }
.preview__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c35; }
.preview__url { margin: 0 auto; color: var(--ash); font-size: .65rem; padding: 4px 16px; background: #0d0d12; border-radius: 6px; }
.preview__note { text-align: center; color: var(--ash); margin-top: 1.5rem; }

/* ---------- Concept site mockups (scale with their container) ---------- */
.mock { container-type: inline-size; width: 100%; }
.m {
  --m-bg: #000; --m-fg: #fff; --m-acc: #f00; --m-muted: #888; --m-card: rgba(255,255,255,.05);
  background: var(--m-bg); color: var(--m-fg);
  font-family: var(--f-body); font-size: 1.35cqw; line-height: 1.5;
}
.m-display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: .88; }
.m[data-font="serif"] .m-display { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; text-transform: none; letter-spacing: -0.02em; line-height: .92; }
.m-acc { color: var(--m-acc); }
.m-muted { color: var(--m-muted); }
.m-label { font-family: var(--f-mono); font-size: .9cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--m-muted); }
.m-btn { display: inline-block; padding: 1cqw 2cqw; border-radius: 99cqw; background: var(--m-acc); color: var(--m-bg); font-size: 1.05cqw; font-weight: 500; }
.m-btn--ghost { background: transparent; color: var(--m-fg); border: .1cqw solid currentColor; }

.m-nav { display: flex; justify-content: space-between; align-items: center; padding: 2.2cqw 4cqw; }
.m-nav__logo { font-size: 1.9cqw; }
.m-nav__links { display: flex; gap: 2.6cqw; font-size: 1.05cqw; color: var(--m-muted); }

.m-hero { position: relative; min-height: 54cqw; padding: 3cqw 4cqw 5cqw; display: grid; align-items: end; overflow: hidden; }
.m-hero__copy { position: relative; z-index: 1; }
.m-hero__title { font-size: 8.4cqw; margin: 1.2cqw 0 2cqw; }
.m-hero--split .m-hero__title { font-size: 5cqw; }
.m[data-font="serif"] .m-hero__title { font-size: 8.6cqw; }
.m-hero p { font-size: 1.5cqw; max-width: 38cqw; color: var(--m-muted); margin-bottom: 2.4cqw; }
.m-hero__btns { display: flex; gap: 1cqw; }
.m-hero--center { text-align: center; place-items: center; align-content: center; }
.m-hero--center p { margin-left: auto; margin-right: auto; }
.m-hero--center .m-hero__btns { justify-content: center; }
.m-hero--split .m-hero__copy { max-width: 54cqw; }

.m-art { position: absolute; pointer-events: none; }
.m-art--orb { width: 62cqw; aspect-ratio: 1; left: 50%; top: 52%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--m-acc), transparent 62%); opacity: .55; filter: blur(1cqw); }
.m-art--arch { width: 30cqw; height: 40cqw; right: 6cqw; bottom: 0; border: .25cqw solid var(--m-fg); border-bottom: 0; border-radius: 15cqw 15cqw 0 0; background: linear-gradient(to top, rgba(0,0,0,.06), transparent); }
.m-art--arch::after { content: ""; position: absolute; width: 18cqw; height: 26cqw; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 9cqw 9cqw 0 0; background: var(--m-fg); opacity: .9; }
.m-art--cup { width: 34cqw; aspect-ratio: 1; right: 5cqw; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #2a140a 0 38%, #5b2f17 39% 46%, #f3e2d3 47% 54%, transparent 55%), radial-gradient(circle, rgba(255,122,61,.45), transparent 70%); }
.m-art--chart { width: 44cqw; height: 30cqw; right: 4cqw; bottom: 5cqw; border-radius: 1.4cqw; background: linear-gradient(to top, var(--m-acc) 0 0) 8% 100% / 7% 40% no-repeat, linear-gradient(to top, var(--m-acc) 0 0) 24% 100% / 7% 55% no-repeat, linear-gradient(to top, var(--m-acc) 0 0) 40% 100% / 7% 48% no-repeat, linear-gradient(to top, var(--m-acc) 0 0) 56% 100% / 7% 70% no-repeat, linear-gradient(to top, var(--m-acc) 0 0) 72% 100% / 7% 62% no-repeat, linear-gradient(to top, var(--m-acc) 0 0) 88% 100% / 7% 88% no-repeat, var(--m-card); border: .1cqw solid rgba(255,255,255,.1); padding: 2cqw; }
.m-art--bottle { width: 15cqw; height: 34cqw; right: 16cqw; bottom: 6cqw; border-radius: 6cqw 6cqw 2cqw 2cqw; background: linear-gradient(160deg, #fff6f2, var(--m-acc)); box-shadow: 10cqw 4cqw 0 -3cqw rgba(201,120,106,.35); }
.m-art--bottle::before { content: ""; position: absolute; width: 6cqw; height: 5cqw; left: 50%; top: -4.4cqw; transform: translateX(-50%); border-radius: 1cqw 1cqw 0 0; background: var(--m-fg); }
.m-art--bars { inset: 0 0 0 auto; width: 46cqw; background: repeating-linear-gradient(115deg, var(--m-acc) 0 1.4cqw, transparent 1.4cqw 5cqw); opacity: .85; mask-image: linear-gradient(to left, #000 30%, transparent); -webkit-mask-image: linear-gradient(to left, #000 30%, transparent); }

.m-strip { display: flex; justify-content: space-around; gap: 2cqw; padding: 2cqw 4cqw; border-top: .1cqw solid rgba(127,127,127,.25); border-bottom: .1cqw solid rgba(127,127,127,.25); font-family: var(--f-mono); font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--m-muted); }
.m-sec { padding: 7cqw 4cqw; }
.m-sec__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 3.5cqw; }
.m-sec__title { font-size: 5cqw; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.m-card { background: var(--m-card); border-radius: 1cqw; overflow: hidden; }
.m-card__img { aspect-ratio: 4 / 3; position: relative; background: linear-gradient(150deg, var(--m-acc), var(--m-bg) 120%); }
.m-card__img::after { content: ""; position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.18); }
.m-card:nth-child(2) .m-card__img { filter: hue-rotate(-20deg) brightness(.9); }
.m-card:nth-child(3) .m-card__img { filter: hue-rotate(20deg) brightness(1.1); }
.m-card__body { padding: 1.8cqw; display: flex; justify-content: space-between; gap: 1cqw; align-items: start; }
.m-card__name { font-size: 1.6cqw; font-weight: 500; }
.m-card__body p { font-size: 1.1cqw; color: var(--m-muted); }
.m-card__meta { font-family: var(--f-mono); font-size: 1.1cqw; color: var(--m-acc); white-space: nowrap; }
.m-list { border-top: .1cqw solid rgba(127,127,127,.3); }
.m-list li { display: grid; grid-template-columns: 12cqw 1fr auto; align-items: center; gap: 2cqw; padding: 2cqw 0; border-bottom: .1cqw solid rgba(127,127,127,.3); font-size: 1.6cqw; }
.m-list li span:first-child { font-family: var(--f-mono); font-size: 1.1cqw; color: var(--m-acc); }
.m-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; align-items: center; padding: 0 4cqw 7cqw; }
.m-feature__art { aspect-ratio: 1; border-radius: 1.4cqw; background: radial-gradient(circle at 30% 30%, var(--m-acc), transparent 60%), var(--m-card); }
.m-feature__title { font-size: 4.6cqw; margin-bottom: 2cqw; }
.m-feature p { font-size: 1.5cqw; color: var(--m-muted); margin-bottom: 2.4cqw; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 0 4cqw 7cqw; }
.m-stats div { padding-top: 2cqw; border-top: .1cqw solid rgba(127,127,127,.35); }
.m-stats strong { display: block; font-size: 5cqw; }
.m-quote { padding: 9cqw 8cqw; text-align: center; font-size: 4.6cqw; background: var(--m-card); }
.m-quote cite { display: block; margin-top: 2.5cqw; font-style: normal; }
.m-foot { padding: 6cqw 4cqw 3cqw; }
.m-foot__word { font-size: 14cqw; }
.m-foot__row { display: flex; justify-content: space-between; margin-top: 3cqw; padding-top: 2cqw; border-top: .1cqw solid rgba(127,127,127,.3); }

/* 09 Footer */
.footer { background: var(--void); padding: clamp(5rem, 12vh, 8rem) var(--gutter) 1.5rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__label { color: var(--ash); margin-bottom: 1rem; }
.footer__cols li { margin-bottom: .4rem; }
.footer__avail { color: var(--ash); }
.footer__cols .mono { color: var(--ash); }
.clock { color: var(--bone); }
.footer__word {
  font-size: 10.5vw; line-height: .8; letter-spacing: -0.06em;
  margin: clamp(3rem, 10vh, 6rem) 0 1.5rem -0.04em;
  white-space: nowrap; width: max-content;
}
.footer__word .w { padding-bottom: 0; margin-bottom: 0; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--ash); padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__status { display: none; }
  .story, .contact { grid-template-columns: 1fr; }
  .contact__intro { position: relative; top: 0; }
  .form__done { grid-column: 1; }
  .story__portrait { position: relative; top: 0; max-width: 28rem; }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
}

@media (max-width: 899px) {
  /* Mobile performance: drop full-screen blend layers and live blurs */
  .grain { display: none; }
  .pillar, .preview, .nav.is-scrolled::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pillar { background: rgba(14, 14, 19, .9); }
  .nav.is-scrolled::before { background: rgba(7, 7, 10, .95); }
  .story__ring { animation: none; }

  .hero { height: 200vh; }
  .hero__title { font-size: 10vw; }
  .h1, .pillars__intro .h1 { font-size: 9.4vw; }
  .cta__title { font-size: 9vw; }
  .scroll-cue { display: none; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.5rem 1rem 1.5rem 0; min-height: 10rem; gap: 1.5rem; }
  .stat__num { font-size: 9.5vw; }
  .stat:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .stat:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--line); }

  /* Horizontal sections become vertical stacks */
  .pillars__pin { height: auto; display: block; padding: 6rem 0; }
  .pillars__track { flex-direction: column; }
  .pillars__intro, .pillar { flex: none; width: 100%; }
  .pillar { min-height: 22rem; }
  .work__pin { height: auto; padding: 6rem 0; }
  .work__track { flex-direction: column; width: auto; }
  .card, .card--next { width: 100%; }

  .service { grid-template-columns: 2.5rem 1fr 2rem; }
  .service p { grid-column: 2 / 4; }
  .service__arrow { grid-row: 1; grid-column: 3; }

  .cta { height: 180vh; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav .btn--small { display: none; }
  .process__steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .preview__cta { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero, .cta { height: auto; }
  .hero__sticky, .cta__sticky { position: relative; min-height: 100vh; }
  .pillars__pin, .work__pin { height: auto; padding: 6rem 0; }
  .pillars__track, .work__track { flex-wrap: wrap; width: auto; }
}
