/* ==========================================================================
   Xoft · dark landing page
   Colour allocation: ~60% ink surfaces, ~30% warm neutrals (text, lines,
   illustrations), <=10% brand orange. Orange is reserved for the mark and
   wordmark, the primary action, active/focus states and one data highlight
   per illustration. Nothing else is orange.
   Radius system: buttons & chips = pill · cards/panels = 24px · inputs = 14px
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #100f0d;
  --surface: #151311;
  --surface-2: #1c1916;
  --line: rgba(255, 214, 170, 0.08);
  --line-2: rgba(255, 214, 170, 0.15);
  --text: #efe8df;
  --muted: #a1978c;
  --dim: #6c645b;

  --orange: #f5992e;
  --orange-hi: #ffc27a;
  --orange-lo: #e86f14;
  --orange-a: rgba(245, 153, 46, 0.12);
  --grad: linear-gradient(135deg, var(--orange-hi) 0%, var(--orange) 45%, var(--orange-lo) 100%);
  --soft: #6f675f;            /* secondary headline tone */
  --ink-hi: rgba(239, 232, 223, 0.08);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --r: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0; background: transparent; /* html paints --bg so the fixed silk layer can sit behind content */ color: var(--text);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.is-loading { overflow: hidden; }
main, .footer { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--orange); color: var(--bg); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

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

/* Type */
.h2 {
  margin: 0; max-width: 18ch; text-wrap: balance;
  font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500;
}
em { font-style: normal; color: var(--soft); }
.lede { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 52ch; margin: 24px 0 0; }


/* Silk: fixed light strands behind every section */
.silk { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Grain (fixed, non-scrolling layer) */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

/* Loader */
.loader { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--bg); }
.loader__mark { width: min(180px, 40vw); overflow: visible; }
.loader__mark polygon { transform-box: fill-box; transform-origin: 100% 50%; animation: chev .8s var(--ease) both .1s; }
.loader__mark polygon + polygon { animation-delay: .18s; }
.loader__mark circle { transform-box: fill-box; transform-origin: center; animation: pop .55s var(--ease) both; animation-delay: calc(.35s + var(--d) * .6s); }
@keyframes chev { from { opacity: 0; transform: translateX(-30%); } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
.loader.is-done { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }

/* Wordmark: the brand's own lettering. The X carries the orange; "oft" stays neutral. */
.wordmark { display: inline-flex; align-items: stretch; gap: 0; width: 83px; aspect-ratio: 950 / 308; }
.wordmark span { display: block; height: 100%; }
.wordmark__x {
  aspect-ratio: 403 / 308; background: var(--grad);
  -webkit-mask: url("assets/xoft-wordmark-x.png") center / contain no-repeat;
  mask: url("assets/xoft-wordmark-x.png") center / contain no-repeat;
}
.wordmark__oft {
  aspect-ratio: 547 / 308; background: #ffffff;
  -webkit-mask: url("assets/xoft-wordmark-oft.png") center / contain no-repeat;
  mask: url("assets/xoft-wordmark-oft.png") center / contain no-repeat;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px;
  display: flex; align-items: center; gap: 24px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: transform .6s var(--ease), background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav .wordmark { margin-right: auto; }
.nav.is-scrolled { background: rgba(11, 10, 9, 0.7); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; font-size: 15px; color: var(--muted); border-radius: 999px; transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active { background: var(--ink-hi); color: var(--text); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 214, 170, .02); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease), opacity .3s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; align-items: flex-end; padding: 100px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu a { font-size: clamp(34px, 9.5vw, 56px); letter-spacing: -0.045em; font-weight: 500; line-height: 1.15; transform: translateY(20px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open a:nth-child(2) { transition-delay: .04s; } .menu.is-open a:nth-child(3) { transition-delay: .08s; }
.menu.is-open a:nth-child(4) { transition-delay: .12s; } .menu.is-open a:nth-child(5) { transition-delay: .16s; } .menu.is-open a:nth-child(6) { transition-delay: .2s; }
.menu.is-open a:last-child { transition-delay: .24s; color: var(--orange); }

/* Buttons */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .4s, border-color .4s, box-shadow .4s;
}
.btn:active { transform: scale(0.98); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  color: #1a0f04; background: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, .45), 0 8px 24px -14px rgba(245, 153, 46, .5);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 240, 220, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 214, 170, .02); }
.btn--ghost:hover { border-color: rgba(239, 232, 223, .5); color: var(--text); background: var(--ink-hi); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: 96px 0 64px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none; width: 820px; height: 820px; right: -120px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(245, 153, 46, .07), rgba(232, 111, 20, .02) 55%, transparent 75%);
}
.hero__orbits {
  position: absolute; z-index: 0; width: 740px; right: -80px; top: 50%; transform: translateY(-50%);
  fill: none; stroke: rgba(239, 232, 223, .06); stroke-width: 1; animation: spin 90s linear infinite;
}
.hero__sat { fill: var(--muted); stroke: none; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__title { margin: 0; font-size: clamp(46px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 500; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--soft); }
.hero__lede { max-width: 40ch; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* Manifesto */
.manifesto { padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.manifesto__text { margin: 0; max-width: 22ch; font-size: clamp(32px, 4.4vw, 66px); line-height: 1.1; letter-spacing: -0.045em; font-weight: 500; }
.manifesto__text .w { opacity: .18; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: clamp(80px, 10vw, 140px) 0 0; border-top: 1px solid var(--line); }
.figure { padding-top: 28px; }
.figure dt { font-size: clamp(64px, 8vw, 120px); line-height: .9; letter-spacing: -0.06em; font-weight: 300; font-variant-numeric: tabular-nums; }
.figure dt sup { font-size: .4em; vertical-align: top; position: relative; top: .15em; color: var(--soft); font-weight: 400; margin-left: 4px; }
.figure dd { margin: 18px 0 0; color: var(--muted); max-width: 26ch; font-size: 16px; }

/* Practices: sticky stack */
.practices { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); }
.practices__title { margin-bottom: clamp(48px, 6vw, 80px); }
.stack { display: grid; gap: 24px; }
.pcard {
  --dim: 0; position: sticky; top: 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: stretch;
  min-height: min(620px, 78vh); padding: clamp(28px, 3.5vw, 52px); border-radius: var(--r);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%, #120f0d);
  border: 1px solid var(--line); overflow: hidden; transform-origin: 50% 0;
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 214, 170, .06);
}
.pcard::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(239, 232, 223, .035), transparent 70%);
}
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--bg); opacity: var(--dim, 0); border-radius: inherit; }
.pcard__copy { display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 1; }
.pcard h3 { margin: 0; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; }
.pcard p { margin: 20px 0 0; color: var(--muted); max-width: 40ch; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.pcard__art { width: 100%; height: 100%; min-height: 300px; position: relative; z-index: 1; }

/* AI */
.ai { padding: clamp(100px, 12vw, 170px) 0; }
.ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ai__points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.ai__points li { display: flex; gap: 14px; align-items: baseline; }
.ai__points b { font-weight: 500; color: var(--text); min-width: 92px; }
.ai__points span { color: var(--muted); }
.terminal {
  border-radius: var(--r); background: linear-gradient(180deg, #13110f, #0d0c0a); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 214, 170, .06);
  overflow: hidden; font-family: var(--f-mono); font-size: 13px;
}
.terminal__bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.terminal__dots { display: inline-flex; gap: 6px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2521; }
.terminal__dots i:first-child { background: #3a342e; }
.terminal__live { margin-left: auto; font-style: normal; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.terminal__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.terminal__body { height: 380px; padding: 20px 22px; overflow: hidden; line-height: 1.85; display: flex; flex-direction: column; justify-content: flex-end; }
.tline { white-space: pre-wrap; word-break: break-word; color: var(--muted); animation: tin .45s var(--ease) both; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }
.tline .t { color: var(--dim); } .tline .k { color: var(--orange); } .tline .ok { color: var(--text); } .tline .w { color: var(--text); }
.tline .caret { display: inline-block; width: 8px; height: 15px; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.terminal__foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.terminal__foot div { padding: 16px 20px; }
.terminal__foot div + div { border-left: 1px solid var(--line); }
.terminal__foot small { display: block; color: var(--dim); font-size: 11px; }
.terminal__foot b { font-size: 18px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

/* GovTech morph (pinned by GSAP) */
.morph { position: relative; height: 100vh; height: 100dvh; min-height: 640px; overflow: hidden; background: radial-gradient(60% 70% at 72% 50%, #16120e, var(--bg) 70%); }
.morph__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.morph__grid { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; pointer-events: none; }
.morph__copy { max-width: 480px; }
.stages { list-style: none; margin: 36px 0 0; padding: 0; display: grid; }
.stages li { padding: 14px 0 14px 20px; border-left: 1px solid var(--line-2); opacity: .38; transition: opacity .5s var(--ease), border-color .5s; }
.stages li b { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.stages li p { margin: 0; color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), margin .5s; }
.stages li.is-active { opacity: 1; border-color: var(--orange); }
.stages li.is-active p { max-height: 90px; margin-top: 6px; }
.morph__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 1px; background: var(--line-2); z-index: 1; }
.morph__bar span { display: block; height: 100%; background: var(--muted); transform-origin: left; transform: scaleX(0); }

/* Statement: an orange card grows to fill the viewport, then folds into the mark.
   The one deliberate full-orange moment on the page. Static by default; main.js
   adds .is-live and drives --t --r --b --l --rad --fold. */
.expand { position: relative; padding: clamp(60px, 8vw, 120px) var(--gutter); }
.expand__stage { position: relative; }
.expand__card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 70vh; padding: 48px var(--gutter); border-radius: var(--r); color: #1a0f04;
  background:
    radial-gradient(circle at 1px 1px, rgba(26, 15, 4, .16) 1px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 0%, #ffc27a 0%, #f5992e 48%, #e86f14 100%);
}
.expand__label { margin: 0 0 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; opacity: .7; }
.expand__title { margin: 0; font-size: clamp(30px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; }
.expand__title em { color: rgba(26, 15, 4, .55); font-style: normal; }
.expand__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.expand__title .line > span { display: inline-block; text-wrap: balance; }
.expand__sub { margin: 26px auto 0; max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); color: rgba(26, 15, 4, .72); }
.expand__tile { display: none; }

.expand.is-live { height: 240vh; padding: 0; }
.expand.is-live .expand__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.expand.is-live .expand__card {
  position: absolute; inset: 0; min-height: 0; border-radius: 0;
  clip-path: inset(var(--t, 30%) var(--r, 22%) var(--b, 30%) var(--l, 22%) round var(--rad, 28px));
  will-change: clip-path;
}
.expand.is-live .expand__tile {
  display: grid; place-items: center; position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border-radius: 28px; background: #120e0a; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(245, 153, 46, .45), inset 0 0 0 1px rgba(255, 214, 170, .04);
  opacity: var(--fold, 0); transform: translateY(calc(var(--lift, 0) * -38vh)) scale(calc(.6 + var(--fold, 0) * .4));
}
.expand__tile img { width: 58%; height: auto; }

/* Ventures */
.ventures { padding: clamp(100px, 12vw, 170px) 0; }
.ventures__lede { margin-bottom: clamp(48px, 6vw, 72px); }
.vp-row { display: flex; gap: 14px; height: clamp(360px, 38vw, 480px); }
.vp {
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: flex-grow .9s var(--ease), border-color .6s;
}
.vp::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(circle, rgba(239, 232, 223, .22) 1.4px, transparent 2px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(90% 80% at 100% 0%, #000, transparent 70%); mask: radial-gradient(90% 80% at 100% 0%, #000, transparent 70%);
}
.vp::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(80% 70% at 100% 0%, rgba(239, 232, 223, .05), transparent 70%);
}
.vp.is-open { flex-grow: 2.4; border-color: var(--line-2); }
.vp.is-open::before, .vp.is-open::after { opacity: 1; }
.vp h3 { position: relative; z-index: 1; margin: 0; font-size: clamp(36px, 4vw, 64px); letter-spacing: -0.05em; font-weight: 500; line-height: 1; transition: color .6s; }
.vp.is-open h3 { color: var(--text); }
.vp p { position: relative; z-index: 1; margin: 16px 0 0; max-width: 42ch; color: var(--muted); opacity: 0; max-height: 0; transition: opacity .5s, max-height .8s var(--ease); }
.vp.is-open p { opacity: 1; max-height: 160px; transition-delay: .2s; }
.investors { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.investors p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Offices */
.offices { padding: clamp(80px, 10vw, 140px) 0; }
.offices__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.cities small { display: block; color: var(--muted); font-size: 14px; }
.cities b { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 500; letter-spacing: -0.045em; margin-top: 4px; }
.cities span { color: var(--muted); font-size: 15px; }
.map { border-radius: var(--r); overflow: hidden; background: radial-gradient(70% 70% at 70% 35%, #1a140f, var(--surface) 70%); border: 1px solid var(--line); }
.map__canvas { width: 100%; aspect-ratio: 1 / 1; }

/* Contact */
.contact { position: relative; padding: clamp(110px, 13vw, 190px) 0; overflow: hidden; }
.contact__glow { position: absolute; left: -20%; bottom: -40%; width: 80%; aspect-ratio: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(239, 232, 223, .04), transparent 70%); }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__title { margin: 0; font-size: clamp(52px, 7.4vw, 116px); line-height: .98; letter-spacing: -0.06em; font-weight: 500; }
.social-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 12px 20px 12px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, border-color .2s; }
.social-link svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.8; flex: none; }
.social-link svg circle:last-child { fill: var(--orange); stroke: none; }
.social-link b { color: var(--text); font-weight: 500; }
.social-link:hover { color: var(--text); border-color: var(--line-2); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 214, 170, .06); }
.hp { position: absolute; left: -9999px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label, .topics legend { font-size: 14px; color: var(--text); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 153, 46, .15); }
.field .err { display: none; color: var(--orange-hi); font-size: 13px; }
.field.is-invalid input { border-color: var(--orange-lo); }
.field.is-invalid .err { display: block; }
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { margin-bottom: 10px; padding: 0; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; padding: 9px 16px; font-size: 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: all .3s var(--ease); }
.topics label:hover span { color: var(--text); border-color: rgba(245, 153, 46, .4); }
.topics input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.topics input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--text); }

/* Footer */
.footer { padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer__mark {
  width: 100%; aspect-ratio: 950 / 308; margin: 20px 0 48px;
  background: linear-gradient(180deg, #332d28, #171411);
  -webkit-mask: url("assets/xoft-wordmark.png") center / contain no-repeat;
  mask: url("assets/xoft-wordmark.png") center / contain no-repeat;
  opacity: 1;
}
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.footer__row p { margin: 0; }
.footer__row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__row a:hover { color: var(--text); }


/* Hero floating cards */
.float {
  position: absolute; z-index: 2; width: 220px; padding: 14px 16px; border-radius: 16px;
  background: rgba(21, 19, 17, .62); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 214, 170, .07);
  animation: bob 7s ease-in-out infinite;
}
.float small { display: block; font-size: 12px; color: var(--dim); }
.float b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; transition: color .4s; font-variant-numeric: tabular-nums; }
.float b.is-ok { color: var(--text); }
.float--a { right: 33vw; top: 23%; }
.float--b { right: 5vw; bottom: 16%; animation-delay: -3.5s; }
.float__bar { display: block; height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255, 214, 170, .08); overflow: hidden; }
.float__bar i { display: block; height: 100%; width: 100%; background: var(--muted); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.float svg { width: 100%; height: 30px; margin-top: 8px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawLine 3.4s var(--ease) infinite; }
@keyframes drawLine { 0% { stroke-dashoffset: 200; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }
@keyframes bob { 50% { transform: translateY(-12px); } }
@media (max-width: 1100px) { .float { display: none; } }

/* Interfaces showcase */
.work { position: relative; padding: 104px 0 0; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.work__note { margin: 0; color: var(--dim); font-size: 14px; }
.work__viewport { overflow: hidden; }
.work__track { display: flex; gap: clamp(20px, 2.4vw, 40px); padding: 0 var(--gutter) clamp(60px, 7vw, 100px); width: max-content; will-change: transform; }
.shot { margin: 0; width: min(72vw, 1040px, calc((100vh - 330px) * 1.6)); flex: none; }
.shot figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; }
.shot figcaption b { font-weight: 500; font-size: 18px; }
.shot figcaption span { color: var(--muted); font-size: 15px; }
.win {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(170deg, #17140f, #0f0d0b 60%); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 214, 170, .06);
  display: flex; flex-direction: column; font-size: clamp(10px, .95vw, 14px);
}
.win__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.win__dots { display: inline-flex; gap: 6px; }
.win__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2521; }
.win__dots i:first-child { background: #3a342e; }
.win__url { flex: 1; max-width: 340px; margin: 0 auto; text-align: center; padding: 4px 12px; border-radius: 999px; background: rgba(255, 214, 170, .04); color: var(--dim); font-family: var(--f-mono); font-size: 11px; }

/* Ledger */
.ledger { flex: 1; display: grid; grid-template-columns: 56px 1fr; min-height: 0; }
.ledger__side { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.lg-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); margin-bottom: 8px; }
.ledger__side i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 214, 170, .1); }
.ledger__side i.on { background: var(--muted); }
.ledger__main { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.ledger__top { display: flex; justify-content: space-between; align-items: baseline; }
.ledger__top b { font-size: 1.5em; font-weight: 500; letter-spacing: -0.03em; }
.ledger__top span { color: var(--dim); font-family: var(--f-mono); font-size: .85em; }
.ledger__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ledger__kpis > div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 214, 170, .03); border: 1px solid var(--line); }
.ledger__kpis small { display: block; color: var(--dim); }
.ledger__kpis b { display: block; font-size: 1.55em; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ledger__kpis b em { font-size: .5em; color: var(--dim); font-style: normal; }
.ledger__kpis i { font-style: normal; font-family: var(--f-mono); font-size: .8em; color: var(--muted); }
.ledger__kpis i.up { color: var(--text); }
.ledger__body { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; min-height: 0; }
.chart { border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 214, 170, .02); padding: 10px; min-height: 0; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid path { stroke: rgba(255, 214, 170, .06); stroke-width: 1; fill: none; }
.chart__line { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; vector-effect: non-scaling-stroke; }
.chart__area { opacity: 0; transition: opacity 1s var(--ease) .8s; }
.chart__dot { fill: var(--orange-hi); opacity: 0; }
.is-live .chart__line { animation: drawChart 1.8s var(--ease) forwards; }
.is-live .chart__area { opacity: 1; }
.is-live .chart__dot { opacity: 1; animation: dotPulse 1.6s ease-in-out 1.8s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drawChart { to { stroke-dashoffset: 0; } }
@keyframes dotPulse { 50% { transform: scale(1.8); opacity: .5; } }
.inv { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.inv__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.inv__row:first-child { border-top: 0; }
.inv__row.new { animation: rowIn .7s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: var(--ink-hi); } }
.inv__row small { color: var(--dim); font-family: var(--f-mono); font-size: .8em; }
.inv__row b { font-weight: 500; }
.chip { justify-self: end; align-self: center; grid-row: span 2; font-size: .8em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: all .5s var(--ease); }
.chip.paid { border-color: rgba(239, 232, 223, .3); color: var(--text); background: var(--ink-hi); }

/* Permit */
.win--stage { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 40%, #1d1712, #0e0c0a 70%); }
.win--stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(239, 232, 223, .12) 1.2px, transparent 1.8px) 0 0 / 22px 22px; -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); }
.phone { position: relative; width: 27%; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 10px; background: #0c0b09; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 4px #15120f; }
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 30%; height: 16px; border-radius: 10px; background: #000; z-index: 2; }
.phone__screen { height: 100%; border-radius: 26px; background: linear-gradient(180deg, #16130f, #0f0d0b); padding: 38px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ph-top small { display: block; color: var(--dim); font-size: .8em; }
.ph-top b { font-size: 1.2em; font-weight: 500; }
.ring { position: relative; width: 44%; margin: 4px auto; }
.ring svg { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: rgba(255, 214, 170, .08); }
.ring__fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3em; font-weight: 500; font-variant-numeric: tabular-nums; }
.ph-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .85em; }
.ph-steps li { display: flex; align-items: center; gap: 8px; color: var(--dim); transition: color .4s; }
.ph-steps li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; border: 1.5px solid #3a322b; transition: all .4s var(--ease); }
.ph-steps li.done { color: var(--text); }
.ph-steps li.done::before { background: var(--text); border-color: var(--text); }
.ph-qr { margin-top: auto; align-self: center; width: 38%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; }
.ph-qr i { border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .35s var(--ease); }
.ph-qr i.on { transform: scale(1); }
.toast { position: absolute; right: 7%; top: 12%; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(28, 25, 22, .85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(-14px) scale(.96); transition: all .6s var(--ease); }
.toast.is-on { opacity: 1; transform: none; }
.toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); flex: none; }
.toast b { display: block; font-weight: 500; }
.toast small { color: var(--muted); }

/* DocAI */
.docai { flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; padding: 18px; min-height: 0; }
.paper { position: relative; overflow: hidden; border-radius: 12px; padding: 18px; background: linear-gradient(180deg, #211c17, #19150f); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 9px; }
.paper__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.paper__head b { font-weight: 600; letter-spacing: .04em; }
.paper__head span { color: var(--dim); font-family: var(--f-mono); }
.pl { display: block; height: 7px; border-radius: 4px; background: rgba(255, 214, 170, .1); }
.pl.gap { margin-top: 10px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; }
.paper__total { margin-top: auto; display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255, 214, 170, .25); }
.paper__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(239, 232, 223, .08)); border-bottom: 1px solid var(--orange); pointer-events: none; }
.is-live .paper__scan { animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
.fields { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: .9em; }
.fields > div { position: relative; display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 214, 170, .02); overflow: hidden; }
.fields small { color: var(--dim); }
.fields span { color: var(--text); min-height: 1.2em; }
.fields .ok span { color: var(--text); }
.fields > div > i { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--muted); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.fields > div.got > i { transform: scaleX(1); }
.fields span.typing::after { content: ""; display: inline-block; width: 7px; height: 1em; background: var(--orange); vertical-align: -2px; margin-left: 2px; animation: blink .8s steps(1) infinite; }

/* Studio kanban */
.kanban { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; min-height: 0; }
.col { border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 214, 170, .02); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.col h4 { margin: 0 0 4px; font-weight: 500; font-size: .9em; color: var(--muted); display: flex; justify-content: space-between; }
.col h4 span { color: var(--muted); font-family: var(--f-mono); }
.col > div { display: flex; flex-direction: column; gap: 8px; }
.vcard { padding: 10px 12px; border-radius: 10px; background: #1a1612; border: 1px solid var(--line); animation: cardIn .6s var(--ease); }
.vcard small { color: var(--dim); font-size: .8em; }
.vcard b { display: block; font-weight: 500; }
.vcard .meter { height: 3px; border-radius: 2px; margin-top: 8px; background: rgba(255, 214, 170, .08); overflow: hidden; }
.vcard .meter i { display: block; height: 100%; background: var(--muted); }
.vcard.moved { border-color: rgba(239, 232, 223, .35); }
@keyframes cardIn { from { opacity: 0; transform: translateX(-14px) scale(.96); } }

@media (max-width: 860px) {
  .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .work__viewport::-webkit-scrollbar { display: none; }
  .shot { width: 86vw; scroll-snap-align: center; }
  .win { aspect-ratio: 4 / 5; font-size: 11px; }
  .phone { width: 50%; }
  .shot { width: 86vw; }
  .ledger { grid-template-columns: 1fr; }
  .ledger__side { display: none; }
  .ledger__kpis { grid-template-columns: 1fr 1fr; }
  .ledger__kpis > div:last-child { display: none; }
  .ledger__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .docai { grid-template-columns: 1fr; }
  .paper { min-height: 150px; }
  .kanban { grid-template-columns: repeat(2, 1fr); overflow: auto; }
  .shot figcaption { flex-direction: column; gap: 2px; }
}


/* Team */
.team { position: relative; padding: clamp(100px, 12vw, 170px) 0; }
.team__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.team__head .lede { margin: 0; }
.orbit-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.orbit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.orbit-list button { display: block; width: 100%; text-align: left; padding: 18px 20px; border-radius: 18px; border: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.orbit-list b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.035em; color: var(--dim); transition: color .5s var(--ease); }
.orbit-list span { display: block; color: var(--muted); font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.orbit-list button.is-on { background: linear-gradient(90deg, var(--ink-hi), transparent); border-color: var(--line); }
.orbit-list button.is-on b { color: var(--text); }
.orbit-list button.is-on span { max-height: 60px; opacity: 1; margin-top: 4px; }
.orbit { width: 100%; aspect-ratio: 1; }

.leads { margin-top: clamp(80px, 10vw, 140px); }
.leads__label { margin: 0 0 18px; color: var(--muted); font-size: 14px; font-weight: 500; }
.lead {
  position: relative; display: grid; grid-template-columns: 1fr auto 40px; gap: 24px; align-items: center;
  padding: clamp(18px, 2.2vw, 28px) 0; border-top: 1px solid var(--line); cursor: default;
}
.lead:last-child { border-bottom: 1px solid var(--line); }
.lead.has-photo { grid-template-columns: auto 1fr auto 40px; }
.lead__avatar {
  width: clamp(52px, 5.2vw, 76px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 25%;
  border: 1px solid var(--line-2); filter: grayscale(1) brightness(.8); transition: filter .6s var(--ease), transform .7s var(--ease);
}
.lead:hover .lead__avatar { filter: grayscale(0) brightness(1); transform: translateX(14px); }
.lead::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.lead__role { font-size: clamp(28px, 4.2vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; color: var(--text); transition: color .5s var(--ease), transform .7s var(--ease); }
.lead__role small { display: block; font-size: 15px; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.lead__focus { color: var(--muted); font-size: 15px; text-align: right; }
.lead__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: all .5s var(--ease); }
.lead__arrow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); color: var(--muted); }
@media (hover: hover) { .leads:hover .lead .lead__role { color: var(--dim); } }
.leads .lead:hover .lead__role { color: var(--text); transform: translateX(14px); }
.lead:hover::before { transform: scaleX(1); }
.lead:hover .lead__arrow { background: var(--orange); border-color: var(--orange); }
.lead:hover .lead__arrow::after { color: var(--bg); }

.lead-float {
  position: fixed; left: 0; top: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: 20px; overflow: hidden; background: radial-gradient(90% 70% at 50% 30%, #211a13, #110f0d 70%);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg); transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.lead-float.is-on { opacity: 1; }
.lead-float canvas, .lead-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.lead-float img { filter: grayscale(1) contrast(1.05) brightness(.92); }
.lead-float canvas.is-on, .lead-float img.is-on { opacity: 1; }
@media (hover: none), (max-width: 860px) { .lead-float { display: none; } }

/* Insights */
.insights { padding: clamp(100px, 12vw, 170px) 0; border-top: 1px solid var(--line); }
.insights__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.journal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.journal__preview {
  position: sticky; top: 110px; display: block; aspect-ratio: 5 / 6; border-radius: calc(var(--r) + 6px); overflow: hidden;
  background: radial-gradient(80% 90% at 70% 30%, #1d1712, #0f0d0b 70%); border: 1px solid var(--line);
}
.journal__preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.journal__preview canvas.is-on { opacity: 1; transform: none; }
.journal__top { position: absolute; left: 22px; right: 22px; top: 20px; z-index: 1; display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.journal__count b { color: var(--text); font-weight: 500; }
.journal__bar { flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.journal__bar i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.journal__bar i.run { animation: jbar 5s linear forwards; }
@keyframes jbar { to { transform: scaleX(1); } }
.journal__excerpt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 60px 24px 22px; color: #cfc6bb; font-size: 15px; line-height: 1.55;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 9, .92) 45%);
}
.journal__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.journal__list li { border-bottom: 1px solid var(--line); }
.jrow { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 18px; align-items: start; padding: clamp(22px, 2.6vw, 34px) 0; }
.jrow::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.jrow__n { padding-top: 4px; font-family: var(--f-mono); font-size: 13px; color: var(--dim); transition: color .4s; }
.jrow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--dim); font-size: 13px; }
.jrow__meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.jrow__title { display: block; margin-top: 10px; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; color: var(--dim); text-wrap: balance; transition: color .5s var(--ease), transform .7s var(--ease); }
.jrow__arrow { width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: all .5s var(--ease); }
.jrow__arrow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); color: var(--muted); }
.jrow.is-on .jrow__title { color: var(--text); transform: translateX(10px); }
.jrow.is-on .jrow__n { color: var(--text); }
.jrow.is-on::before { transform: scaleX(1); }
.jrow:hover .jrow__arrow, .jrow:focus-visible .jrow__arrow { background: var(--orange); border-color: var(--orange); }
.jrow:hover .jrow__arrow::after, .jrow:focus-visible .jrow__arrow::after { color: var(--bg); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@media (max-width: 1200px) { .nav__links a { padding: 8px 10px; } }
@media (max-width: 1100px) { .nav__links, .nav__cta { display: none; } .nav__burger { display: block; } }
@media (max-width: 1024px) {
  .team__head, .orbit-wrap { grid-template-columns: 1fr; }
  .orbit { max-width: 560px; margin: 0 auto; }
  .orbit-wrap .orbit { order: -1; max-width: 380px; }
  .orbit-list button { padding: 14px 0; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
  .orbit-list li:last-child button { border-bottom: 1px solid var(--line); }
  .orbit-list button.is-on { background: none; }
  .journal { grid-template-columns: 1fr; }
  .journal__preview { position: relative; top: 0; aspect-ratio: auto; height: clamp(260px, 60vw, 420px); }
}
@media (max-width: 640px) {
  .jrow { grid-template-columns: 30px minmax(0, 1fr) 36px; gap: 12px; }
  .journal__preview { height: 300px; }
  .journal__excerpt { display: none; }
  .jrow__arrow { width: 36px; height: 36px; }
  .jrow__title { color: var(--text); }
  .jrow.is-on .jrow__title { transform: none; }
  .lead { grid-template-columns: 1fr 36px; gap: 12px; }
  .lead.has-photo { grid-template-columns: auto 1fr 36px; column-gap: 14px; }
  .lead.has-photo .lead__avatar { grid-row: 1 / span 2; width: 52px; filter: grayscale(.35); }
  .lead.has-photo .lead__avatar { grid-column: 1; }
  .lead.has-photo .lead__role { grid-column: 2; grid-row: 1; }
  .lead.has-photo .lead__focus { grid-column: 2; }
  .lead.has-photo .lead__arrow { grid-column: 3; }
  .lead__focus { grid-column: 1; grid-row: 2; text-align: left; font-size: 14px; }
  .lead__arrow { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; }
}

/* Responsive */
@media (max-width: 1024px) {
  .ai__grid, .offices__grid, .contact__grid { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; min-height: 0; top: 84px; }
  .pcard__art { min-height: 240px; height: 240px; order: -1; }
}
@media (max-width: 860px) {
  .nav { height: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { align-items: flex-end; padding-top: 0; }
  .hero__inner { padding-top: calc(64px + 52vw); }
  .hero__glow { width: 700px; height: 700px; right: -220px; top: 22%; }
  .hero__orbits { width: 620px; right: -180px; top: 22%; }
  .figures { grid-template-columns: 1fr; gap: 0; }
  .figure { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .figure dt { font-size: 64px; }
  .figure dd { margin: 0; }
  .morph__grid { align-items: flex-end; padding-bottom: 80px; }
  .morph__copy { max-width: none; }
  .morph__lede { display: none; }
  .stages li:not(.is-active) { display: none; }
  .vp-row { flex-direction: column; height: auto; }
  .vp { min-height: 96px; }
  .vp.is-open { min-height: 260px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .hero__title { font-size: 41px; }
  .hero__lede { margin-top: 7px; }
  .hero__actions { margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .row2 { grid-template-columns: 1fr; }
  .terminal { font-size: 11.5px; }
  .terminal__body { height: 320px; padding: 16px; }
  .tline .t { display: none; }
  .terminal__foot div { padding: 12px 14px; }
  .terminal__foot b { font-size: 15px; }
  .investors .btn { width: 100%; }
  .cities { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .manifesto__text .w { opacity: 1; }
  .pcard { position: relative; top: 0; }
  .stages li { opacity: 1; display: block !important; }
  .stages li p { max-height: none; margin-top: 6px; }
}
