/* =========================================================================
   ONYX — style.css
   The particle field is the site; type sits lightly on top of it.
   Charcoal field · bone type · one red accent · one inverted light panel.
   ========================================================================= */

:root {
  --ink: #0c0c0e;
  --ink-2: #141417;
  --bone: #efece6;
  --mute: rgba(239, 236, 230, 0.66);
  --faint: rgba(239, 236, 230, 0.5);
  --line: rgba(239, 236, 230, 0.12);
  --accent: #ff3b30;        /* red for text/lines on dark (5.4:1) */
  --accent-fill: #e3101a;   /* red for fills behind white text (4.8:1) */
  --accent-on-light: #c4000c;

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

  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* pages without Lenis (legal, 404) still glide to in-page anchors */
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--accent-fill); color: #fff; }

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

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--mute); }
.accent { color: var(--accent); }
.link { border-bottom: 1px solid currentColor; transition: color .3s; }
.link:hover { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--bone); color: var(--ink); border-radius: 6px; transition: top .2s; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* -------------------------------------------------------------------------
   Background layers (the original field — unchanged)
   ------------------------------------------------------------------------- */
.field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}
@keyframes grain { 0% { transform: translate(0,0); } 33% { transform: translate(-3%,2%); } 66% { transform: translate(2%,-3%); } 100% { transform: translate(0,0); } }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0,0,0,.4) 100%); }
main, .footer { position: relative; z-index: 2; }

/* Pause-motion mode */
.is-still .grain, .is-still .preloader__mark { animation: none; }

/* -------------------------------------------------------------------------
   Floating 3D labels — positioned every frame by field.js
   ------------------------------------------------------------------------- */
/* z-index 1: above the particles, below all page content */
.hotspots { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.hotspot {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 10px; color: var(--bone); white-space: nowrap;
  opacity: 0; will-change: transform, opacity;
}
.hotspot::before, .hotspot::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid rgba(239,236,230,.55); }
.hotspot::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hotspot::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hotspot i { width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* -------------------------------------------------------------------------
   Preloader
   ------------------------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); clip-path: inset(0 0 0 0); }
.preloader__inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.preloader__mark { width: 54px; color: var(--bone); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__brand { font-family: var(--f-display); font-weight: 700; letter-spacing: .3em; font-size: 15px; margin-top: 4px; }
.preloader__line { color: var(--mute); margin-top: 22px; min-height: 1em; }
.preloader__bar { width: 180px; height: 5px; border: 1px solid rgba(255,59,48,.5); padding: 1px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.preloader__pct { color: var(--faint); }

/* -------------------------------------------------------------------------
   Cursor
   ------------------------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--bone); }
.cursor__ring { width: 38px; height: 38px; border: 1px solid rgba(239,236,230,.6); transition: width .45s var(--ease), height .45s var(--ease), border-color .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--bone); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 20px var(--gut);
  transition: color .4s;
}
.nav::before { content: ''; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(12,12,14,.8), rgba(12,12,14,0)); transition: opacity .4s; }
.nav.is-light { color: var(--ink); }
.nav.is-light::before { opacity: 0; }
.nav__logo { justify-self: start; display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; letter-spacing: .22em; font-size: 14px; }
.nav__logo svg { width: 26px; }

.chapters ol { display: flex; align-items: flex-start; gap: 6px; }
.chapters a { position: relative; display: grid; justify-items: center; }
.chapters span {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; opacity: .5;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px;
  transition: all .4s var(--ease);
}
.chapters em {
  position: absolute; top: 32px; white-space: nowrap;
  font-family: var(--f-mono); font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(-4px); transition: all .4s var(--ease);
}
.chapters a:hover span { opacity: 1; }
.chapters a.is-active span { width: 30px; height: 30px; margin-top: -3px; border-color: var(--accent); color: var(--accent); opacity: 1; }
.nav.is-light .chapters a.is-active span { border-color: var(--ink); color: var(--ink); }
.chapters a.is-active em { opacity: 1; transform: none; }

.nav__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__cta { padding: 11px 18px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.nav__cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.nav__menu { display: none; align-items: center; gap: 12px; }
.nav__chip { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px var(--gut) 60px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-size: clamp(30px, 8vw, 56px); font-weight: 500; line-height: 1.2; }
.menu__list .mono { color: var(--faint); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.menu__mail { color: var(--mute); }
.menu__legal { display: flex; flex-wrap: wrap; gap: 18px; color: var(--mute); }
.menu__legal a:hover, .menu__mail:hover { color: #fff; }

@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .chapters { display: none; }
  .nav__menu { display: flex; }
}
@media (max-width: 560px) { .nav__cta { display: none; } }

/* -------------------------------------------------------------------------
   Progress rail (right edge) + HUD (bottom)
   ------------------------------------------------------------------------- */
.rail { position: fixed; right: 10px; top: 50%; z-index: 40; width: 3px; height: 34vh; transform: translateY(-50%); background: var(--line); border-radius: 3px; pointer-events: none; }
.rail i { position: absolute; left: 0; right: 0; top: 0; height: 14%; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(255,59,48,.6); }

.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 14px var(--gut); font-size: 10px; color: var(--faint); pointer-events: none; transition: color .4s;
}
.hud b { color: var(--bone); font-weight: 500; transition: color .4s; }
.hud__right { display: flex; align-items: center; gap: 14px; }
.motion {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(239,236,230,.35);
  display: grid; place-items: center; color: var(--bone); transition: border-color .3s, background .3s, color .3s;
}
.motion svg { width: 16px; }
.motion:hover { background: var(--bone); color: var(--ink); }
.motion[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.hud.is-light, .hud.is-light b { color: var(--ink); }
.hud.is-light .motion { color: var(--ink); border-color: rgba(12,12,14,.4); }
@media (max-width: 720px) { .hud__left { display: none; } .rail { display: none; } }

/* -------------------------------------------------------------------------
   Shared
   ------------------------------------------------------------------------- */
.chip { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-family: var(--f-mono); font-size: 13px; }
.chip--dark { border-color: var(--ink); color: var(--ink); }
.eyebrow { color: var(--mute); }
.intro { display: grid; justify-items: center; gap: 16px; text-align: center; }

.h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 5vw, 76px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.h2 em { font-style: normal; color: var(--accent); }

.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > span { display: block; will-change: transform; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bone); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--ink); }
.btn--primary { background: var(--accent-fill); color: #fff; }
.btn--ghost { border: 1px solid rgba(239,236,230,.35); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--big { padding: 20px 34px; font-size: 13px; }

/* rolling labels */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: transform .6s var(--ease); }
.roll > span + span { transform: translateY(105%); }
a:hover .roll > span:first-child, button:hover .roll > span:first-child { transform: translateY(-105%); }
a:hover .roll > span + span, button:hover .roll > span + span { transform: none; }

/* -------------------------------------------------------------------------
   A · Hero — readable in 5 seconds: what we do, for whom, why trust us
   ------------------------------------------------------------------------- */
.hero { position: relative; }
.hero__stage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gut) 70px;
}
.hero__eyebrow { font-weight: 400; display: inline-flex; align-items: center; gap: 12px; color: var(--mute); margin-bottom: clamp(18px, 3vh, 30px); }
.hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.statement {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(42px, min(8.4vw, 14vh), 160px); line-height: 1.02; letter-spacing: -.04em;
}
.statement .ln { display: block; white-space: nowrap; }
.statement .ln--indent { padding-left: 16%; }
.statement .sw { display: inline-block; will-change: opacity, transform, filter; }
.statement .sw--accent { color: var(--accent); }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: clamp(28px, 5vh, 56px); }
.hero__lede { max-width: 520px; color: rgba(239,236,230,.88); font-size: clamp(16px, 1.3vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: clamp(28px, 5vh, 52px); padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--mute);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 10px; }
.hero__proof li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--bone); opacity: .7; }
@media (max-width: 820px) {
  .statement { font-size: 13vw; line-height: 1.04; }
  .statement .ln { white-space: normal; } /* phones: WE BUILD / BRANDS / THAT LEAD. */
  .statement .ln--indent { padding-left: 8%; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__proof { gap: 8px 18px; }
}

/* -------------------------------------------------------------------------
   Marquee
   ------------------------------------------------------------------------- */
.marquee { position: relative; z-index: 2; border-block: 1px solid var(--line); background: rgba(12,12,14,.7); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee span { font-family: var(--f-display); font-size: clamp(22px, 3vw, 40px); font-weight: 300; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; color: #fff; font-size: 18px; }

/* -------------------------------------------------------------------------
   Chapters (common)
   ------------------------------------------------------------------------- */
.chapter { position: relative; }

/* B · Manifesto — long breathing room for the particles, text bottom-left */
/* intro sits over the sphere, the text follows straight after — no dead screen */
.manifesto { padding: clamp(80px, 11vh, 120px) var(--gut) clamp(24px, 4vh, 48px); display: grid; gap: clamp(24px, 4vh, 44px); }
.principles { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.principles li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles .mono { color: var(--accent); padding-top: 3px; }
.principles p { margin: 0; font-size: 15px !important; }
@media (max-width: 640px) { .principles li { grid-template-columns: 1fr; gap: 4px; } .manifesto__rotate { min-height: 2.1em; } }
.manifesto__block { max-width: 1180px; display: grid; gap: 22px; justify-items: start; }
/* Manifesto: one crisp line + a rotating word (same motion as a text-word carousel) */
.manifesto__text {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.04em;
}
.manifesto__rotate {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.04em;
  min-height: 1.1em; margin-top: -.2em; overflow: hidden;
}
.carousel { display: inline-block; color: var(--accent); will-change: transform, opacity; }
.manifesto__desc { max-width: 520px; color: rgba(239,236,230,.85); font-size: clamp(16px, 1.3vw, 19px); }
.manifesto__block .head { display: flex; align-items: center; gap: 16px; }
.principles p { color: rgba(239,236,230,.85); }
.manifesto__block .btn { justify-self: start; }

/* C/D · Pinned sequences */
.seq { position: relative; height: calc(var(--n, 4) * 75vh + 100vh); }
.seq__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 120px var(--gut) 80px; display: grid; }
.seq__meta { display: flex; align-items: center; gap: 18px; color: var(--mute); }
.seq__count b { color: var(--bone); font-weight: 500; }
.seq__bar { width: 120px; height: 1px; background: var(--line); position: relative; }
.seq__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Services: names list left, detail right */
.svc-stage { grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; gap: 28px 60px; align-items: center; }
.svc-stage .seq__meta { grid-column: 1 / -1; align-self: start; }
.svc-names { display: grid; gap: .1em; }
.svc-names li {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.04em;
  color: rgba(239,236,230,.17); /* solid, not outlined: the outline showed overlapping glyph contours */
  transition: color .6s var(--ease), transform .8s var(--ease);
}
.svc-names li.is-on { color: var(--bone); transform: translateX(18px); }
.svc-names li.is-on::before { content: ''; display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--accent); margin-right: .25em; vertical-align: middle; transform: translateY(-.08em); }
.svc-details { position: relative; min-height: 260px; }
.svc-detail { position: absolute; inset: 0; display: grid; align-content: start; gap: 18px; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.svc-detail.is-on { opacity: 1; transform: none; pointer-events: auto; }
.svc-detail .mono { color: var(--accent); }
.svc-detail p { color: rgba(239,236,230,.85); font-size: clamp(16px, 1.3vw, 20px); max-width: 440px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; color: var(--mute); }
@media (max-width: 900px) {
  .svc-stage { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-items: start; gap: 28px; }
  .svc-names { gap: .18em; }
  .svc-names li { font-size: 6.6vw; white-space: nowrap; }
  .svc-names li.is-on { transform: translateX(8px); }
  .svc-details { min-height: 220px; }
}

.shape-mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Process: one phase at a time, huge outlined number behind */
.proc-stage { grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; }
.proc-stage .seq__meta { justify-self: start; }
.proc-steps { position: relative; width: 100%; display: grid; place-items: center; }
.proc-step { grid-area: 1 / 1; display: grid; justify-items: center; gap: 16px; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.proc-step.is-on { opacity: 1; transform: none; }
.proc-step__n {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 24vw, 360px); line-height: .8; letter-spacing: .02em; /* digits must not overlap: the outline would show the seam */
  color: rgba(239,236,230,.05); -webkit-text-stroke: 1.5px rgba(239,236,230,.72);
}
.proc-step h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4vw, 60px); letter-spacing: -.04em; text-transform: uppercase; margin-top: -.9em; }
.proc-step .mono { color: var(--accent); }
.proc-step p { color: rgba(239,236,230,.85); max-width: 460px; font-size: clamp(15px, 1.2vw, 18px); }
.proc-ticks { display: flex; gap: clamp(14px, 4vw, 60px); color: var(--faint); }
.proc-ticks li { display: flex; align-items: center; gap: 10px; transition: color .4s; }
.proc-ticks li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .4s, border-color .4s; }
.proc-ticks li.is-on { color: var(--bone); }
.proc-ticks li.is-on::before { background: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) { .proc-ticks { gap: 12px; } .proc-ticks li { font-size: 9px; } }

/* -------------------------------------------------------------------------
   D · Work — project feature: details left, phone right
   ------------------------------------------------------------------------- */
.work { padding: clamp(130px, 20vh, 210px) var(--gut); }
.work__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.work__meta { display: grid; gap: 22px; align-content: center; }
.work__meta .head { display: flex; align-items: center; gap: 16px; }
.work__index { color: var(--faint); }
.work__title {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(84px, 13vw, 210px); line-height: .85; letter-spacing: -.05em;
  color: var(--bone); /* solid: outlined Unbounded shows its overlapping glyph contours */
}
.work__kind { color: var(--accent); }
.work__desc { color: rgba(239,236,230,.85); font-size: clamp(16px, 1.3vw, 19px); max-width: 480px; }
.work__device { justify-self: center; display: grid; justify-items: center; gap: 18px; }
.work__device figcaption { color: var(--faint); }
.phone {
  width: min(320px, 72vw); padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #26262b, #0d0d10 60%);
  border: 1px solid rgba(239,236,230,.14);
  box-shadow: 0 50px 120px -30px rgba(227,16,26,.45), 0 0 0 1px rgba(0,0,0,.6) inset;
  will-change: transform;
}
.phone img { width: 100%; height: auto; border-radius: 36px; display: block; }
@media (max-width: 900px) {
  .work__inner { grid-template-columns: 1fr; }
  .work__device { order: -1; }
}

/* -------------------------------------------------------------------------
   E · Promise — the one inverted light panel
   ------------------------------------------------------------------------- */
.promise {
  position: relative; z-index: 3; background: var(--bone); color: var(--ink);
  border-radius: clamp(20px, 3vw, 44px); margin: 0 clamp(8px, 1.4vw, 20px);
}
.promise__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(110px, 17vh, 190px) var(--gut); display: grid; gap: 40px; }
.promise__text { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.08; letter-spacing: -.035em; max-width: 1200px; }
.promise__text em { font-style: normal; color: var(--accent-on-light); }
.promise .w { opacity: .12; }
.promise__sign { display: flex; align-items: center; gap: 16px; }
.promise__sign span { display: grid; gap: 2px; }
.promise__sign b { font-family: var(--f-display); font-weight: 500; font-size: 16px; }
.promise__sign small { color: rgba(12,12,14,.7); }
.promise :focus-visible { outline-color: var(--ink); }
.w { display: inline-block; will-change: opacity; }

/* -------------------------------------------------------------------------
   F · FAQ
   ------------------------------------------------------------------------- */
.faq { padding: clamp(130px, 22vh, 220px) var(--gut); max-width: 980px; margin: 0 auto; }
.faq .intro { margin-bottom: 56px; }
.faq .intro p { max-width: 520px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 50px 1fr 24px; align-items: center; gap: 10px;
  padding: 26px 8px; font-family: var(--f-display); font-weight: 400; font-size: clamp(15px, 1.4vw, 19px); text-transform: uppercase; letter-spacing: -.01em;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .mono { color: var(--faint); }
.qa summary:hover { color: #fff; }
.qa summary i { width: 14px; height: 14px; position: relative; justify-self: end; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa[open] summary .mono { color: var(--accent); }
.qa__body { padding: 0 8px 28px 68px; color: var(--mute); max-width: 680px; }
@media (max-width: 720px) { .qa summary { grid-template-columns: 36px 1fr 20px; } .qa__body { padding-left: 54px; } }

/* -------------------------------------------------------------------------
   G · Contact
   ------------------------------------------------------------------------- */
.contact { min-height: 100vh; padding: clamp(130px, 20vh, 200px) var(--gut) 120px; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.contact__intro { display: grid; gap: 24px; position: sticky; top: 130px; }
.contact__intro .head { display: flex; align-items: center; gap: 16px; }
.contact__intro p { max-width: 420px; }
.contact__direct .link { color: var(--bone); }

.form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: rgba(16,16,19,.9); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 8px; }
.fld > span, .choices legend { color: var(--mute); font-size: 10px; }
.fld input, .fld textarea { width: 100%; font: inherit; color: var(--bone); background: transparent; border: 0; border-bottom: 1px solid rgba(239,236,230,.25); padding: 10px 0; outline: none; resize: vertical; transition: border-color .3s; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(239,236,230,.35); }
.fld input:focus, .fld textarea:focus { border-color: var(--bone); }
.fld.has-error input, .fld.has-error textarea { border-color: #ff6b5b; }
.err { color: #ff6b5b; font-size: 12px; }
.err:empty { display: none; }
.choices { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 10px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; padding: 9px 15px; border: 1px solid rgba(239,236,230,.25); border-radius: 999px; font-size: 13px; color: var(--mute); transition: all .3s var(--ease); }
.choices label:hover span, .choices input:checked + span { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.choices input:checked + span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent-fill); vertical-align: middle; transform: translateY(-1px); }
.choices input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 3px; }
/* Budget: currency switch + one option set at a time */
.budget { flex-direction: column; gap: 12px; }
.budget__set { display: flex; flex-wrap: wrap; gap: 8px; }
.budget__set[hidden] { display: none; }
.currency { display: inline-flex; align-self: flex-start; padding: 3px; gap: 3px; border: 1px solid rgba(239,236,230,.25); border-radius: 999px; }
.currency span { padding: 6px 14px; border: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; }
.currency input:checked + span::before { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--mute); cursor: pointer; }
.consent input { accent-color: var(--bone); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn--big { justify-self: start; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form__status { min-height: 1em; color: var(--bone); }
.form__status.is-error { color: #ff6b5b; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__intro { position: relative; top: 0; }
  .field-row { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 70px var(--gut) 60px; overflow: hidden; background: linear-gradient(transparent, rgba(12,12,14,.92) 30%); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer__mail { display: block; margin-top: 10px; font-family: var(--f-display); font-size: clamp(22px, 3.4vw, 48px); letter-spacing: -.03em; transition: color .3s; word-break: break-all; }
.footer__mail:hover { color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--mute); }
.footer__legal a { transition: color .3s; }
.footer__legal a:hover { color: #fff; }
.footer__word {
  display: flex; justify-content: space-between;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(70px, 22vw, 400px); line-height: .8; letter-spacing: -.06em;
  margin: 60px -1vw 30px; color: transparent; -webkit-text-stroke: 1px rgba(239,236,230,.3);
}
.footer__word span { display: inline-block; transition: color .5s var(--ease), -webkit-text-stroke-color .5s; }
.footer__word span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.footer__bottom { display: flex; gap: 24px; flex-wrap: wrap; color: var(--faint); padding-bottom: 20px; }
.footer__bottom a:hover { color: #fff; }
.to-top { margin-left: auto; }

/* -------------------------------------------------------------------------
   Simple pages (privacy / 404)
   ------------------------------------------------------------------------- */
.page { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 150px var(--gut) 120px; }
.page h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 7vw, 88px); letter-spacing: -.05em; line-height: .95; text-transform: uppercase; margin: 20px 0 40px; }
.page h2 { font-family: var(--f-display); font-weight: 500; font-size: 20px; margin: 40px 0 12px; }
.page p, .page li { color: var(--mute); margin-bottom: 12px; }
.page ul { list-style: disc; padding-left: 20px; }
.page--center { min-height: 100vh; display: grid; place-content: center; text-align: center; justify-items: center; }
.page--center h1 { font-size: clamp(90px, 22vw, 280px); color: var(--accent); margin: 0; }

/* -------------------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------------------- */
.legal-body { background: var(--ink); }
.nav--static { position: sticky; background: rgba(12,12,14,.92); border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; }
.nav--static::before { display: none; }
.legal { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) var(--gut) 120px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); }
.legal:focus { outline: none; }
.legal__nav { position: sticky; top: 110px; align-self: start; display: grid; gap: 16px; }
.legal__nav ul { display: grid; gap: 4px; }
.legal__nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--mute); border: 1px solid transparent; transition: color .3s, border-color .3s, background .3s; }
.legal__nav a:hover { color: #fff; border-color: var(--line); }
.legal__nav a[aria-current="page"] { color: var(--ink); background: var(--bone); }
.legal__doc { max-width: 720px; }
.legal__doc h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; margin: 14px 0 32px; }
.legal__doc h2 { font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; margin: 44px 0 14px; }
.legal__doc p, .legal__doc li { color: rgba(239,236,230,.82); line-height: 1.7; }
.legal__doc p { margin-bottom: 14px; }
.legal__doc ul { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; }
.legal__doc ul li { position: relative; padding-left: 22px; }
.legal__doc ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal__doc b { color: #fff; font-weight: 600; }
.legal__doc code { font-family: var(--f-mono); font-size: .9em; padding: 2px 6px; border-radius: 4px; background: var(--ink-2); border: 1px solid var(--line); }
.legal__lede { font-size: clamp(17px, 1.4vw, 20px); color: #fff !important; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px !important; }
.legal__who { margin-top: 56px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.legal__who h2 { margin-top: 0; }
.legal__facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-left: 0 !important; }
.legal__facts li::before { display: none; }
.legal__facts b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute) !important; padding-top: 3px; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: relative; top: 0; }
  .legal__nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal__facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* -------------------------------------------------------------------------
   Turnstile slot, thank-you dialog, 404, legal "next" links
   ------------------------------------------------------------------------- */
.captcha { display: grid; gap: 6px; min-height: 65px; }

.thanks {
  margin: auto; width: min(520px, calc(100vw - 32px)); padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(239,236,230,.16); border-radius: 18px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(227,16,26,.16), transparent 60%), var(--ink-2);
  color: var(--bone); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8);
}
.thanks::backdrop { background: rgba(6,6,8,.72); backdrop-filter: blur(6px); }
.thanks[open] { animation: thanksIn .55s var(--ease); }
@keyframes thanksIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.thanks__mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; box-shadow: 0 0 30px rgba(227,16,26,.5); }
.thanks__mark svg { width: 24px; }
.thanks__eyebrow { color: var(--mute); margin-top: 22px; }
.thanks__title { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: -.035em; font-size: clamp(30px, 5vw, 44px); line-height: 1; margin: 10px 0 14px; }
.thanks__text { color: rgba(239,236,230,.82); }
.thanks__text b { color: #fff; font-weight: 600; word-break: break-all; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.notfound { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: clamp(80px, 14vh, 140px) var(--gut) clamp(90px, 14vh, 140px); }
.notfound:focus { outline: none; }
.notfound__eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); }
.notfound__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.notfound__code { font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 26vw, 300px); line-height: .85; letter-spacing: -.02em; margin: 18px 0 22px; }
.notfound__code span { color: var(--accent); }
.notfound__lede { font-size: clamp(17px, 1.6vw, 22px); color: rgba(239,236,230,.85); max-width: 560px; }
.notfound__links, .legal__next { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.notfound__links a, .legal__next a { display: grid; gap: 8px; padding: 22px; background: var(--ink); font-family: var(--f-display); font-size: 18px; text-transform: uppercase; letter-spacing: -.01em; position: relative; transition: background .3s, color .3s; }
.notfound__links a .mono, .legal__next a .mono { color: var(--faint); font-size: 10px; }
.notfound__links a i, .legal__next a i { position: absolute; right: 20px; bottom: 20px; font-style: normal; transition: transform .4s var(--ease); }
.notfound__links a:hover, .legal__next a:hover { background: var(--bone); color: var(--ink); }
.notfound__links a:hover .mono, .legal__next a:hover .mono { color: rgba(12,12,14,.6); }
.notfound__links a:hover i, .legal__next a:hover i { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .w, .statement .sw { opacity: 1 !important; filter: none !important; transform: none !important; }
  .roll > span + span { display: none; }
}
