/* ---------- Tokens ---------- */
:root {
  --bg: #F3EFE6;
  --bg-2: #EAE4D7;
  --ink: #191714;
  --ink-2: #4A453D;
  --ink-3: #7A7366;
  --rule: rgba(25, 23, 20, .16);
  --rule-strong: rgba(25, 23, 20, .85);
  --accent: #C8401A;
  --on-accent: #FFF8F2;
  --live: #2F7D4F;
  --grain: .07;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13120F;
    --bg-2: #1C1A16;
    --ink: #ECE6D9;
    --ink-2: #B7AF9F;
    --ink-3: #8A8272;
    --rule: rgba(236, 230, 217, .14);
    --rule-strong: rgba(236, 230, 217, .8);
    --accent: #FF6B3D;
    --on-accent: #1A0D07;
    --live: #5BC48A;
    --grain: .09;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13120F;
  --bg-2: #1C1A16;
  --ink: #ECE6D9;
  --ink-2: #B7AF9F;
  --ink-3: #8A8272;
  --rule: rgba(236, 230, 217, .14);
  --rule-strong: rgba(236, 230, 217, .8);
  --accent: #FF6B3D;
  --on-accent: #1A0D07;
  --live: #5BC48A;
  --grain: .09;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
b { font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: 70px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 400; }
.skip:focus { left: 8px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* Theme switch circle wipe */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Loader ---------- */
.loader { display: none; }
.intro .loader {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--ink); color: var(--bg);
  animation: loader-failsafe .01s 4.5s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader-row { display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; opacity: .6; }
.loader-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.loader-hello { font-family: var(--deva); font-size: clamp(36px, 6vw, 72px); line-height: 1; color: var(--accent); padding-bottom: .1em; }
.loader-count {
  font-size: min(30vw, 340px); line-height: .8; font-weight: 800; letter-spacing: -.05em;
  font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums;
}
.loading body { overflow: hidden; }

/* Hide hero pieces until the intro animation takes over (failsafe shows them anyway) */
.motion:not(.ready) [data-hero] { visibility: hidden; animation: show-failsafe .01s 3.5s forwards; }
.intro:not(.ready) [data-hero] { animation-delay: 5s; }
@keyframes show-failsafe { to { visibility: visible; } }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; opacity: 0; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 450; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid #fff; mix-blend-mode: difference;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, opacity .3s;
}
.cursor-ring.is-link { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: #fff; }
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
.cursor-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor-ring.has-label .cursor-label { opacity: 1; }

/* ---------- Grain + progress ---------- */
.grain {
  position: fixed; inset: -100%; width: 300%; height: 300%;
  pointer-events: none; z-index: 420; opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, transform .5s var(--ease-out);
}
.topbar.scrolled { border-bottom-color: var(--rule); }
.topbar.tucked { transform: translateY(-100%); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  font-variation-settings: "wdth" 125;
  transition: background .3s, transform .6s var(--ease-out);
}
.brand:hover .brand-mark { background: var(--accent); transform: rotate(-90deg); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { display: inline-block; white-space: nowrap; padding: 6px 14px; border: 1.5px solid var(--accent); border-radius: 99px; color: var(--accent); font-weight: 600; transition: background .25s, color .25s; }
.nav .nav-cta:hover { background: var(--accent); color: var(--on-accent); }
.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle svg { transition: transform .7s var(--ease-out); }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:hover svg { transform: rotate(180deg); }

/* ---------- Hero ---------- */
.hero { padding-top: 28px; padding-bottom: 72px; overflow: clip; }
.hero-strip {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  text-transform: uppercase;
}
.dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--live); vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

.mh { position: relative; margin: 18px 0 8px; }
.masthead {
  display: flex; flex-direction: column;
  font-size: min(15.2vw, 196px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
}
/* clip box for the rising letters, padded so glyph tops aren't cut */
.mh-line { display: block; overflow-x: visible; overflow-y: clip; padding: .07em 0 .02em; margin: -.07em 0 -.02em; white-space: nowrap; }
.mh-word { display: inline-block; white-space: nowrap; }
.mh-accent { color: var(--accent); }

.mh-side {
  position: absolute; top: 0; right: 0;
  display: flex; align-items: center; gap: 22px;
}
.deva { font-family: var(--deva); font-size: clamp(20px, 2.2vw, 30px); color: var(--ink-3); white-space: nowrap; }
.badge {
  position: relative; display: grid; place-items: center;
  width: clamp(84px, 11vw, 148px); aspect-ratio: 1;
  border-radius: 50%; color: var(--ink); text-decoration: none;
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge:hover .badge-ring { animation-duration: 5s; }
.badge-ring text { font-family: var(--mono); font-size: 8.4px; font-weight: 500; text-transform: uppercase; fill: currentColor; }
.badge-core {
  display: grid; place-items: center;
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  transition: transform .7s var(--ease-out);
}
.badge-core .motif { width: 56%; height: 56%; }
.badge:hover .badge-core { transform: scale(1.14) rotate(90deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px;
  padding-top: 28px; margin-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero-statement {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08; font-weight: 600; letter-spacing: -.02em;
  font-variation-settings: "wdth" 92;
  max-width: 17ch;
}
.hero-statement em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-sub { margin-top: 20px; max-width: 52ch; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid::before { background: var(--accent); }
.btn-solid:hover { color: var(--on-accent); border-color: var(--accent); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--bg); }
.btn span { transition: transform .45s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }

.hero-facts { align-self: end; border-top: 2px solid var(--rule-strong); }
.hero-facts > div {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.hero-facts dt { color: var(--ink-3); text-transform: uppercase; padding-top: 3px; }
.hero-facts dd { font-size: 15.5px; line-height: 1.45; }

/* Toy tracker stage */
.cv-stage, .cv-caption { display: none; }
.js .cv-stage { display: block; }
.js .cv-caption { display: flex; }
.cv-stage {
  position: relative; margin-top: 56px;
  aspect-ratio: 2.6 / 1;
  border: 1.5px solid var(--ink);
  background: var(--bg-2);
  overflow: hidden;
  touch-action: pan-y;
}
.cv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; pointer-events: none; color: var(--ink-2); text-transform: uppercase; font-size: 11px; }
.hud-tl { top: 12px; left: 14px; }
.hud-tr { top: 12px; right: 14px; color: var(--accent); }
.hud-bl { bottom: 12px; left: 14px; font-variant-numeric: tabular-nums; }
.hud-br { bottom: 12px; right: 14px; }
.rec-dot { color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.cv-caption { justify-content: space-between; gap: 16px; margin-top: 10px; color: var(--ink-3); }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-head {
  display: grid; grid-template-columns: 80px 1fr; column-gap: 24px;
  align-items: baseline;
  padding-top: 14px; margin-bottom: 40px;
  border-top: 2px solid var(--rule-strong);
}
.section-num { color: var(--accent); }
.section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02; font-weight: 700; letter-spacing: -.03em;
  font-variation-settings: "wdth" 88;
}
.section-note { grid-column: 2; margin-top: 14px; max-width: 60ch; color: var(--ink-2); }

/* ---------- Case studies ---------- */
.case {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.case-idx {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 18px;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-size: 13px; font-weight: 500;
}
.case-meta dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.case-meta dt { color: var(--ink-3); text-transform: uppercase; }
.case-meta dd { font-size: 14.5px; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { padding: 3px 8px; border: 1px solid var(--rule); color: var(--ink-2); font-size: 11.5px; transition: border-color .2s, color .2s; }
.tags li:hover { border-color: var(--accent); color: var(--accent); }

.case-body h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.14; font-weight: 650; letter-spacing: -.02em;
  font-variation-settings: "wdth" 90;
  max-width: 24ch;
}
.lede { margin-top: 14px; max-width: 62ch; font-size: 18px; color: var(--ink-2); }
.after { margin-top: 18px; max-width: 62ch; color: var(--ink-2); }
.points { margin-top: 22px; max-width: 64ch; }
.points li { position: relative; padding-left: 22px; margin-top: 8px; color: var(--ink-2); }
.points li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

/* Pipeline diagram */
.pipeline { margin-top: 28px; }
.pipeline ol { display: flex; align-items: stretch; }
.pipeline li {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 84px; padding: 12px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  transition: background-color .6s, color .6s, border-color .6s;
}
.pipeline li + li { margin-left: 22px; }
.pipeline li + li::before {
  content: ""; position: absolute; left: -23px; top: 50%;
  width: 22px; height: 1.5px; background: var(--ink);
}
.pipeline li + li::after {
  content: ""; position: absolute; left: -7px; top: calc(50% - 4px);
  border: 4.5px solid transparent; border-left: 6px solid var(--ink); border-right: 0;
}
.pipeline b { font-size: 15px; font-weight: 650; line-height: 1.2; }
.pipeline small { margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); transition: color .6s; }
.pipeline .hot { background: var(--ink); color: var(--bg); }
.pipeline .hot small { color: var(--bg); opacity: .7; }
.pipeline li.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pipeline li.on small { color: var(--on-accent); opacity: .8; }
.rec { position: absolute; top: -9px; left: 8px; padding: 0 5px; background: var(--bg); color: var(--accent); font-size: 10px; }

/* Stat + steps */
.stat-row { margin-top: 20px; }
.stat { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.stat-num {
  font-size: clamp(56px, 8vw, 104px); line-height: .85; font-weight: 800;
  letter-spacing: -.04em; color: var(--accent);
  font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums;
}
.stat-label { max-width: 22ch; color: var(--ink-2); text-transform: uppercase; padding-bottom: 6px; }
.steps { margin-top: 22px; max-width: 70ch; border-top: 1px solid var(--rule); }
.steps li {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-size: 13.5px; line-height: 1.5;
}
.steps li span { color: var(--accent); }

/* Signals */
.signals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.signal { padding: 9px 14px; border: 1.5px solid var(--ink); font-size: 14.5px; font-weight: 550; transition: background-color .5s, color .5s; }
.signal.lit { background: var(--ink); color: var(--bg); }
.signal.lit::before { content: "✓ "; color: var(--accent); }
.signal-rule {
  padding: 9px 14px; background: var(--accent); color: var(--on-accent);
  outline: 1.5px dashed transparent;
  transition: background-color .4s, color .4s, transform .5s var(--ease-out), outline-color .4s;
}
.signal-rule.wait { background: transparent; color: var(--ink-2); outline-color: var(--ink-3); }
.signal-rule.flag { transform: scale(1.06); }

/* Also built */
.also { margin-top: 8px; padding: 28px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.also h3 { color: var(--ink-3); text-transform: uppercase; font-weight: 500; }
.also ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.also li { color: var(--ink-2); font-size: 15.5px; }
.also b { color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; margin: 32px 0 8px; padding: 20px 0;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; gap: 40px; padding-right: 40px; }
.marquee span {
  font-size: clamp(44px, 7.5vw, 104px); line-height: 1; font-weight: 800;
  letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap;
  font-variation-settings: "wdth" 108;
}
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee .motif { flex-shrink: 0; width: clamp(28px, 4vw, 54px); height: clamp(28px, 4vw, 54px); color: var(--accent); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.services li { padding: 30px 32px 34px 0; border-bottom: 1px solid var(--rule); }
.services li:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule); }
.svc-num { display: inline-block; color: var(--accent); transition: transform .6s var(--ease-out); }
.services h3 {
  margin-top: 10px;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 650; letter-spacing: -.015em;
  font-variation-settings: "wdth" 92;
  transition: transform .6s var(--ease-out), color .3s;
}
.services li:hover h3 { transform: translateX(10px); color: var(--accent); }
.services li:hover .svc-num { transform: translateX(10px); }
.services p { margin-top: 10px; color: var(--ink-2); max-width: 48ch; }
.services .svc-stack { margin-top: 16px; color: var(--ink-3); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.process li { padding: 24px 24px 28px 0; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.process span { color: var(--accent); text-transform: uppercase; }
.process h3 { margin-top: 10px; font-size: 21px; font-weight: 650; letter-spacing: -.01em; }
.process p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Background ---------- */
.bg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.stack { border-top: 1px solid var(--rule); }
.stack > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.stack dt { color: var(--ink-3); text-transform: uppercase; padding-top: 3px; }
.stack dd { font-size: 15.5px; }

.timeline h3 { color: var(--ink-3); text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.timeline h3:not(:first-child) { margin-top: 28px; }
.timeline > ol > li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 18px; border-left: 2px solid var(--ink); }
.timeline > ol > li + li { border-left-color: var(--rule); }
.timeline .when { color: var(--accent); }
.timeline b { font-size: 17px; }
.timeline > ol > li > span:not(.when) { color: var(--ink-2); font-size: 15px; }
.timeline ul { margin-top: 10px; }
.timeline ul li { padding: 6px 0; font-size: 14.5px; color: var(--ink-2); border-top: 1px dashed var(--rule); }
.timeline ul .mono { display: block; color: var(--ink-3); font-size: 11.5px; }

/* ---------- Contact ---------- */
.contact { margin-top: 48px; padding: 88px 0 96px; background: var(--ink); color: var(--bg); }
.contact .section-num { color: var(--accent); text-transform: uppercase; }
.contact-title {
  margin-top: 18px; max-width: 14ch;
  font-size: clamp(42px, 7.4vw, 104px); line-height: .98; font-weight: 750; letter-spacing: -.035em;
  font-variation-settings: "wdth" 90;
}
.contact-sub { margin-top: 22px; max-width: 54ch; font-size: 18px; opacity: .78; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 40px; padding: 22px 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.mail-link {
  font-size: clamp(20px, 4vw, 48px); font-weight: 600; letter-spacing: -.02em;
  text-decoration: none; word-break: break-all;
  font-variation-settings: "wdth" 85;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.mail-link:hover { color: var(--accent); background-size: 100% 3px; }
.copy-btn {
  margin-left: auto; height: 38px; padding: 0 16px;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  text-transform: uppercase;
}
.copy-btn:hover, .copy-btn.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; text-transform: uppercase; }
.socials a { text-decoration: none; opacity: .8; transition: opacity .2s, color .2s; }
.socials a:hover { opacity: 1; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bg); border-top: 1px solid rgba(127, 127, 127, .3); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; opacity: .65; }
.footer a { text-decoration: none; }
.footer-deva { font-family: var(--deva), var(--mono); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .rec-dot, .badge-ring, .grain { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .bg-grid { grid-template-columns: 1fr; gap: 40px; }
  .case, .also { grid-template-columns: 1fr; gap: 24px; }
  .case-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
  .case-meta dl { grid-column: 2; }
  .case-meta .tags { grid-column: 1 / -1; }
  .case-idx { margin-bottom: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pipeline ol { flex-wrap: wrap; gap: 22px 0; }
  .pipeline li { flex: 0 0 calc((100% - 44px) / 3); }
  .pipeline li:nth-child(4) { margin-left: 0; }
  .pipeline li:nth-child(4)::before, .pipeline li:nth-child(4)::after { display: none; }
  .cv-stage { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .deva { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .hide-sm { display: none; }
  .hero { padding-bottom: 48px; }
  .mh-side { top: calc(100% + 54px); }
  .badge { width: 84px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section-head { grid-template-columns: 1fr; row-gap: 8px; }
  .section-note { grid-column: 1; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(even) { padding: 24px 0; border-left: 0; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .process li:first-child { border-top: 0; }
  .also ul { grid-template-columns: 1fr; }
  .stack > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .cv-stage { margin-top: 40px; aspect-ratio: 4 / 3.6; }
  .cv-caption { flex-direction: column; gap: 4px; }

  .pipeline ol { flex-direction: column; gap: 0; }
  .pipeline li, .pipeline li:nth-child(4) { flex: none; min-height: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 10px; padding: 12px 14px; margin-left: 0; }
  .pipeline li + li { margin-left: 0; margin-top: 22px; }
  .pipeline li + li::before, .pipeline li:nth-child(4)::before { display: block; left: 24px; top: -23px; width: 1.5px; height: 22px; }
  .pipeline li + li::after, .pipeline li:nth-child(4)::after { display: block; left: 20.5px; top: -7px; border: 4.5px solid transparent; border-top: 6px solid var(--ink); border-bottom: 0; }
  .pipeline small { margin-top: 0; }
  .rec { left: auto; right: 10px; }

  .copy-btn { margin-left: 0; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 400px) {
  .brand-name, .mh-side { display: none; }
  .hero-strip { font-size: 11px; }
  .hero-strip > span { white-space: nowrap; }
}
