/* =========================================================
   OccultX Solutions — Design System v2
   Brand kit v1.0: ink · cyan · off-white · a touch of gold
   Type: Zodiak (display) · General Sans (text) · Geist Mono
   ========================================================= */

:root {
  /* Brand scales (from the kit — don't invent new colours) */
  --ink-950: #060d0e;
  --ink-900: #0a1416;
  --ink-850: #101c1f;
  --ink-800: #16252a;
  --ink-700: #22353a;
  --ink-600: #33494f;
  --ink-500: #56676a;
  --ink-400: #82918f;
  --ink-300: #b7c4c2;
  --ink-200: #dce3e1;
  --ink-100: #ecf0ef;
  --ink-50: #f2f5f4;
  --cyan-400: #1fd1b8;
  --cyan-300: #4fdec9;
  --cyan-500: #17ae99;
  --cyan-700: #0b7a6b;
  --cyan-900: #053b34;
  --on-cyan: #04211d;
  --gold-400: #e0b868;
  --gold-700: #8a6a22;

  /* Semantic (dark by default) */
  --bg: var(--ink-900);
  --bg-deep: var(--ink-950);
  --surface: var(--ink-850);
  --surface-2: var(--ink-800);
  --border: var(--ink-700);
  --line: rgba(242, 245, 244, 0.09);
  --line-strong: rgba(242, 245, 244, 0.18);
  --fg: var(--ink-50);
  --fg-2: var(--ink-300);
  --fg-3: var(--ink-400);
  --accent: var(--cyan-400);
  --accent-hover: var(--cyan-300);
  --accent-press: var(--cyan-500);
  --on-accent: var(--on-cyan);
  --gold: var(--gold-400);

  --f-display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --f-logo: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1480px;
  --r: 10px;
  --r-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Light sections (kit light theme) */
.light {
  --bg: var(--ink-50);
  --bg-deep: var(--ink-100);
  --surface: #ffffff;
  --surface-2: var(--ink-100);
  --border: var(--ink-200);
  --line: rgba(10, 20, 22, 0.1);
  --line-strong: rgba(10, 20, 22, 0.2);
  --fg: var(--ink-900);
  --fg-2: var(--ink-600);
  --fg-3: var(--ink-500);
  --accent: var(--cyan-700);
  --accent-hover: var(--cyan-500);
  --accent-press: var(--cyan-900);
  --on-accent: #ffffff;
  --gold: var(--gold-700);
  background: var(--bg);
  color: var(--fg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
::selection {
  background: var(--cyan-400);
  color: var(--on-cyan);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Film grain — subtle cinematic texture */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 90;
  opacity: 0.05;
  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='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  position: relative;
}
.section {
  padding: clamp(96px, 13vw, 200px) 0;
}
.section--tight {
  padding: clamp(64px, 8vw, 120px) 0;
}

/* ---------- Type ---------- */
.label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label--muted {
  color: var(--fg-3);
}
.label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.label .bar {
  display: none;
}
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}
.display em {
  font-style: normal;
  color: var(--fg-3);
}
.display-xxl {
  font-size: clamp(56px, 11vw, 196px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.display-xl {
  font-size: clamp(50px, 7.6vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.042em;
}
.display-l {
  font-size: clamp(42px, 6vw, 104px);
}
.display-m {
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 1;
}
.display-s {
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 54ch;
  margin: 0;
}
.body-s {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.55;
}
.accent {
  color: var(--accent);
}
.gold {
  color: var(--gold);
}

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

/* ---------- Logo (typeset wordmark per kit) ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-logo);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.045em;
  color: var(--fg);
  line-height: 1;
}
.logo b {
  color: var(--cyan-400);
  font-weight: 700;
}
.light .logo b {
  color: var(--cyan-700);
}
.logo small {
  font-family: var(--f-logo);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 54px;
  padding: 0 26px;
  border-radius: 6px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.35s var(--ease-out), color 0.35s, box-shadow 0.35s, transform 0.3s var(--ease-out);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
}
.btn--primary:active {
  background: var(--accent-press);
}
/* Kit: gold on the "Start a project" hover */
.btn--start:hover {
  background: var(--gold-400);
  color: var(--ink-900);
}
.btn--ghost {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}
.btn--sm {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.link {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.link--accent {
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
button.chip:hover,
a.chip:hover {
  color: var(--fg);
  border-color: var(--fg-3);
}
.chip.is-active {
  color: var(--fg);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.chip--accent {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.chip--gold {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: transform 0.6s var(--ease-out);
}
.nav.is-hidden {
  transform: translateY(-110%);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink-900) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.is-scrolled::before {
  opacity: 1;
}
.nav .wrap {
  position: relative;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 84px;
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease-out), border-color 0.4s;
}
.nav.is-scrolled .nav-inner {
  height: 68px;
  border-color: var(--line);
}
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.is-current {
  color: var(--fg);
}
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.nav-clock {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.nav-clock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: blink 2.4s infinite;
}
@keyframes blink {
  50% { opacity: 0.25; }
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink-950);
  padding: 110px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-io);
  pointer-events: none;
}
.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.mm-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(42px, 12vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.mm-link span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0;
}
.mm-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--fg-2);
}

/* ---------- Cursor ---------- */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--cyan-400);
}
.cursor {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(242, 245, 244, 0.35);
  display: grid;
  place-items: center;
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), margin 0.5s var(--ease-out), background 0.3s, border-color 0.3s;
}
.cursor-label {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-cyan);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--cyan-400);
}
.cursor.is-active {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--cyan-400);
  border-color: var(--cyan-400);
}
.cursor.is-active .cursor-label {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ---------- Preloader / curtain ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-950);
  display: grid;
  place-items: center;
}
.pl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.pl-center .logo {
  font-size: clamp(44px, 6vw, 76px);
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pl-center .logo small {
  font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: 0.6em;
  margin-right: -0.6em;
}
.pl-line {
  width: 180px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.pl-line i {
  position: absolute;
  inset: 0;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
}
.pl-meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--fg-3);
}
.curtain {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}
.curtain span {
  background: var(--ink-950);
  transform: scaleX(0);
  transform-origin: left;
}
.is-loading [data-intro] {
  opacity: 0;
}
.is-arriving body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--ink-950);
  z-index: 149;
}

/* ---------- Home: hero + anatomy (sticky scrollytelling) ---------- */
.anatomy {
  position: relative;
  height: 600vh;
}
.anatomy-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.anatomy-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.anatomy-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 44px;
}
.hero-copy a,
.hero-copy button {
  pointer-events: auto;
}
.hero-title {
  max-width: 8.4ch;
}
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-top: clamp(28px, 3.4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-3);
}
.scroll-cue .track {
  width: 1px;
  height: 46px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue .track::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--cyan-400);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue {
  to { top: 100%; }
}

.layer-tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.layer-tag {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  white-space: nowrap;
  will-change: transform, opacity;
}
.layer-tag::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--line-strong);
}
.layer-tag b {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-3);
}
.layer-tag span {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.layer-tag.is-active::before {
  background: var(--cyan-400);
}
.layer-tag.is-active span {
  color: var(--cyan-400);
}

.chapters {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 50%;
  width: min(470px, 36vw);
  pointer-events: none;
}
.chapter {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}
.chapter .ch-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chapter .ch-num i {
  width: 28px;
  height: 1px;
  background: var(--gold-400);
}
.chapter h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 4.8vw, 80px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 18px 0;
}
.chapter h3 em {
  font-style: italic;
  color: var(--cyan-400);
}
.chapter p {
  margin: 0 0 22px;
  color: var(--fg-2);
  font-size: 17px;
  max-width: 40ch;
}
.chapter .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.anatomy-progress {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
}
.anatomy-progress i {
  width: 2px;
  height: 22px;
  background: var(--line-strong);
  transition: background 0.3s, height 0.4s var(--ease-out);
}
.anatomy-progress i.on {
  background: var(--cyan-400);
  height: 40px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 56px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}
.page-hero .wrap {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.page-hero .wrap a,
.page-hero .wrap button,
.page-hero .wrap input {
  pointer-events: auto;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.crumbs {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
}
.crumbs a:hover {
  color: var(--accent);
}

/* ---------- Ticker ---------- */
.marquee {
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  animation: marquee var(--dur, 50s) linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 56px);
  letter-spacing: -0.035em;
}
.ticker-item em {
  font-style: italic;
  color: var(--accent);
}
.ticker-item .sep {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  flex: none;
}

/* ---------- Section heads ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.sec-head > :last-child {
  justify-self: end;
}
.sec-head .label {
  margin-bottom: 26px;
}

/* ---------- Manifesto (light) ---------- */
.manifesto {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 4.7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 19ch;
  margin: 32px 0 0;
}
.manifesto .word {
  color: color-mix(in srgb, var(--fg) 16%, transparent);
}
.manifesto em {
  font-style: normal;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(72px, 9vw, 140px);
  border-top: 1px solid var(--line-strong);
}
.stat {
  padding: 28px 24px 0 0;
}
.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 6.4vw, 108px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat-num sup {
  font-size: 0.4em;
  vertical-align: top;
  position: relative;
  top: 0.25em;
  color: var(--accent);
  margin-left: 4px;
}
.stat-label {
  margin-top: 14px;
}

/* ---------- Capabilities rows ---------- */
.caps {
  border-top: 1px solid var(--line-strong);
}
.cap {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease-out), padding 0.6s var(--ease-out);
}
.cap:hover {
  background: var(--surface);
  padding-left: 20px;
  padding-right: 20px;
}
.cap-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.cap-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cap-title em {
  font-style: normal;
}
.cap:hover .cap-title em {
  color: var(--accent);
}
.cap-desc {
  font-size: 15px;
  color: var(--fg-2);
  max-width: 44ch;
}
.cap-go {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color 0.3s;
}
.cap:hover .cap-go {
  color: var(--accent);
}

/* ---------- Work reel ---------- */
.hscroll {
  overflow: hidden;
}
.hscroll-track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter);
  width: max-content;
}
.work-card {
  width: clamp(300px, 38vw, 600px);
  flex: none;
  display: block;
}
.work-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.work-card:hover .work-card-media img {
  transform: scale(1.05);
}
.work-card-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.work-card-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sample-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(6, 13, 14, 0.75);
  color: var(--ink-300);
}
.work-end {
  width: clamp(280px, 26vw, 420px);
  flex: none;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s;
}
.work-end:hover {
  background: var(--surface);
}

/* ---------- Panel grid (AI, principles, who) ---------- */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.panel {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 2.6vw, 40px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.5s var(--ease-out);
}
.panel:hover {
  background: var(--surface);
}
.panel .p-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.panel h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: auto 0 0;
}
.panel p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}
.panel .ic {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--accent);
  display: grid;
  place-items: center;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
}
.process-sticky {
  position: sticky;
  top: 130px;
  align-self: start;
}
.steps {
  border-top: 1px solid var(--line-strong);
}
.step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}
.step.is-on::after {
  transform: scaleX(1);
}
.step-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
  padding-top: 10px;
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  line-height: 1.05;
}
.step p {
  margin: 0;
  color: var(--fg-2);
  max-width: 50ch;
}
.step .step-out {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------- Industries ---------- */
.ind-list {
  border-top: 1px solid var(--line-strong);
}
.ind {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease-out);
}
.ind .mono {
  color: var(--fg-3);
}
.ind .ind-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.4s;
}
.ind .ind-note {
  color: var(--fg-3);
  font-size: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.ind:hover {
  padding-left: 14px;
}
.ind:hover .ind-name {
  color: var(--accent);
}
.ind:hover .ind-note {
  opacity: 1;
  transform: none;
}
.ind-list:hover .ind:not(:hover) .ind-name {
  color: var(--fg-3);
}

/* ---------- Stack grid ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stack-cell {
  aspect-ratio: 1.3;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s;
}
.stack-cell:hover {
  background: var(--surface);
}
.stack-cell b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.stack-cell span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(24px, 2.6vw, 40px);
  position: relative;
  overflow: hidden;
}
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s var(--ease-out);
}
.tilt-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 245, 244, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.tilt:hover .tilt-shine {
  opacity: 1;
}

/* ---------- Strip ---------- */
.strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding: clamp(32px, 5vw, 80px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.strip-orbit {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.strip-orbit::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-400);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.strip > div {
  position: relative;
}
.strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 28px);
  letter-spacing: -0.025em;
}
.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative;
  transition: box-shadow 0.3s, color 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.5s var(--ease-out);
}
.faq-item.is-open .faq-icon {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}
.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  margin: 0 0 28px;
  max-width: 68ch;
  color: var(--fg-2);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field--full {
  grid-column: 1 / -1;
}
.field > label,
.flabel {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 14px;
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231FD1B8' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}
.field select option {
  background: var(--ink-850);
  color: var(--ink-50);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--fg) 28%, transparent);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--gold);
}
.field.is-invalid > label {
  color: var(--gold);
}
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.choice span:hover {
  color: var(--fg);
  border-color: var(--fg-3);
}
.choice input:checked + span {
  color: var(--fg);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field.is-invalid .choice span {
  border-color: var(--gold);
}
.form-success {
  display: none;
  padding: 40px;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.form-success.is-on {
  display: block;
}
.form-success h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}

/* ---------- CTA / contact ---------- */
.cta-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(60px, 11.5vw, 210px);
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin: 0;
}
.cta-title em {
  font-style: normal;
  color: var(--fg-3);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 120px);
  margin-top: clamp(56px, 7vw, 104px);
}
.contact-side .row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-side .row:first-child {
  border-top: 1px solid var(--line);
}
.contact-side .row > .flabel {
  display: block;
  margin-bottom: 6px;
}
.contact-side .row a,
.contact-side .row p {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-950);
  color: var(--ink-50);
  padding: clamp(72px, 9vw, 130px) 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer h4 {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 18px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer ul a {
  color: var(--ink-300);
  transition: color 0.3s;
}
.footer ul a:hover {
  color: var(--cyan-400);
}
.footer-news {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin-top: 22px;
  border-bottom: 1px solid var(--ink-700);
  padding-bottom: 8px;
}
.footer-news input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink-50);
  font: inherit;
  font-size: 16px;
}
.footer-news input:focus {
  outline: none;
}
.footer-news input::placeholder {
  color: var(--ink-500);
}
.footer-word {
  margin: clamp(64px, 9vw, 140px) 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--ink-800);
  padding-bottom: 28px;
}
.footer-word .logo {
  font-size: clamp(72px, 17vw, 300px);
  letter-spacing: -0.06em;
  line-height: 0.8;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.footer-word .logo span,
.footer-word .logo b {
  display: inline-block;
}
.footer-word .fw-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  padding-bottom: 1.2vw;
  color: var(--ink-300);
}
.footer-word .fw-side i {
  width: 120px;
  height: 1px;
  background: var(--gold-400);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-500);
}
.footer-bottom a:hover,
.footer-bottom button:hover {
  color: var(--ink-50);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 200%);
  visibility: hidden;
  z-index: 130;
  background: var(--ink-50);
  color: var(--ink-900);
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.6s var(--ease-out);
  max-width: calc(100% - 32px);
}
.toast.is-on {
  transform: translate(-50%, 0);
  visibility: visible;
}
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--ink-850);
  color: var(--cyan-400);
  box-shadow: inset 0 0 0 1px var(--ink-700);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-out);
}
.fab:hover {
  transform: translateY(-3px);
}
.fab[hidden] {
  display: none;
}

/* ---------- Services ---------- */
.svc-nav {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.svc-nav::-webkit-scrollbar {
  display: none;
}
.svc-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(72px, 9vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}
.svc-block h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 18px 0 24px;
}
.svc-block h2 em {
  font-style: normal;
  color: var(--fg-3);
}
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  align-self: start;
}
.svc-item {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.svc-item:hover {
  background: var(--surface);
}
.svc-item b {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.svc-item span {
  display: block;
  font-size: 14px;
  color: var(--fg-3);
}
.deliverables {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.model {
  display: flex;
  flex-direction: column;
}
.model h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.035em;
  margin: 28px 0 10px;
  line-height: 1;
}
.model ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.model li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}
.model li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.model--featured {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.gold-line {
  position: absolute;
  top: 0;
  left: clamp(24px, 2.6vw, 40px);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Work page ---------- */
.work-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.work-stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: pan-y;
}
.work-stage canvas.is-dragging {
  cursor: grabbing;
}
.work-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: 120px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work-hud * {
  pointer-events: none;
}
.work-hud a,
.work-hud button {
  pointer-events: auto;
}
.work-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.work-hud-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}
.wc-idx {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
}
.wc-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 8px 0;
}
.wc-cat {
  font-size: 14px;
  color: var(--fg-3);
}
.g-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.g-btn {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: center;
  background: rgba(10, 20, 22, 0.6);
  transition: box-shadow 0.3s, color 0.3s;
}
.g-btn:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}
.work-progress {
  width: 180px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.work-progress i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20%;
  background: var(--accent);
}
.view-toggle {
  justify-self: end;
  display: inline-flex;
  padding: 4px;
  border-radius: 8px;
  background: rgba(10, 20, 22, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.view-toggle button {
  height: 38px;
  padding: 0 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color 0.3s, background 0.3s;
}
.view-toggle button.is-active {
  background: var(--ink-800);
  color: var(--fg);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.index-table {
  border-top: 1px solid var(--line-strong);
}
.index-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 64px 40px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.5s var(--ease-out);
}
.index-row:hover {
  background: var(--surface);
  padding-left: 16px;
  padding-right: 16px;
}
.index-row .ir-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.index-row .mono {
  color: var(--fg-3);
}
.index-row .ir-arrow {
  color: var(--fg-3);
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.index-row:hover .ir-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.ide {
  border-radius: var(--r-lg);
  background: var(--ink-950);
  color: var(--ink-100);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ink-800);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 600px;
  font-family: var(--f-mono);
  font-size: 13px;
}
.ide-bar {
  grid-column: 1 / -1;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ink-800);
}
.ide-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-700);
}
.ide-bar span {
  margin-left: 12px;
  color: var(--ink-400);
  font-size: 12px;
}
.ide-tree {
  border-right: 1px solid var(--ink-800);
  padding: 14px 0;
  overflow-y: auto;
  max-height: 640px;
}
.tree-group {
  padding: 8px 16px 4px;
  color: var(--ink-500);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ide-tree button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 24px;
  text-align: left;
  color: var(--ink-300);
  font-family: inherit;
  font-size: 12.5px;
  transition: background 0.2s, color 0.2s;
}
.ide-tree button:hover {
  background: var(--ink-900);
  color: var(--ink-50);
}
.ide-tree button.is-active {
  background: var(--ink-850);
  color: var(--ink-50);
  box-shadow: inset 2px 0 0 var(--cyan-400);
}
.ide-tree .dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan-400);
  flex: none;
}
.ide-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ide-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink-800);
  padding-right: 10px;
}
.ide-tab {
  padding: 12px 18px;
  font-size: 12px;
  color: var(--ink-50);
  box-shadow: inset 0 -1px 0 var(--cyan-400);
}
.ide-copy {
  font-family: inherit;
  font-size: 11px;
  color: var(--ink-400);
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--ink-700);
}
.ide-copy:hover {
  color: var(--cyan-400);
}
.ide-code {
  margin: 0;
  padding: 20px 0;
  overflow: auto;
  flex: 1;
  line-height: 1.75;
  max-height: 560px;
  counter-reset: ln;
}
.ide-code .ln {
  display: block;
  white-space: pre;
  padding-right: 24px;
}
.ide-code .ln::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 48px;
  padding-right: 18px;
  text-align: right;
  color: var(--ink-600);
  user-select: none;
}
.ide-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 11px;
  border-top: 1px solid var(--ink-800);
  color: var(--ink-400);
}
.ide-status span:first-child::before {
  content: "●";
  color: var(--cyan-400);
  margin-right: 8px;
}
.tok-k { color: var(--cyan-300); }
.tok-s { color: var(--gold-400); }
.tok-c { color: var(--ink-500); font-style: italic; }
.tok-n { color: #e6c47f; }
.tok-f { color: var(--ink-50); font-weight: 500; }
.tok-t { color: var(--cyan-300); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(1120px, 100%);
  background: var(--ink-900);
  box-shadow: -1px 0 0 var(--ink-800);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-close {
  position: sticky;
  top: 18px;
  float: right;
  margin: 18px 18px 0 0;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--ink-850);
  box-shadow: inset 0 0 0 1px var(--ink-700);
  display: grid;
  place-items: center;
  transition: color 0.3s, box-shadow 0.3s;
}
.modal-close:hover {
  color: var(--cyan-400);
  box-shadow: inset 0 0 0 1px var(--cyan-400);
}
.cs-cover {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--ink-850);
}
.cs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-body {
  padding: clamp(24px, 4vw, 64px);
}
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 36px 0 48px;
}
.cs-meta div {
  padding: 18px 16px 18px 0;
  font-size: 15px;
}
.cs-meta span {
  display: block;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.cs-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cs-panel {
  display: none;
}
.cs-panel.is-on {
  display: block;
}
.cs-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.cs-cols h4 {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.cs-cols p {
  margin: 0;
  color: var(--fg-2);
}
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.cs-metric {
  padding: 26px 20px 0 0;
}
.cs-metric + .cs-metric {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.cs-metric b {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.cs-metric span {
  font-size: 14px;
  color: var(--fg-3);
}
.cs-arch {
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
  overflow-x: auto;
}
.cs-arch svg {
  min-width: 640px;
  width: 100%;
  height: auto;
}
.cs-code .ide {
  grid-template-columns: 1fr;
  min-height: 0;
}

/* ---------- AI Labs ---------- */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.idea {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 2.4vw, 38px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease-out);
}
.idea:hover {
  background: var(--surface);
}
.idea-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.idea-ic {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.idea h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 36px 0 12px;
}
.idea p {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--fg-2);
}
.idea-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.heat {
  display: inline-flex;
  gap: 3px;
}
.heat i {
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: var(--line-strong);
}
.heat i.on {
  background: var(--accent);
}
.scanner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}
.scanner-out {
  border-radius: var(--r-lg);
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px var(--ink-800);
  padding: clamp(24px, 3vw, 40px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  color: var(--ink-50);
}
.scan-result {
  margin-top: 24px;
  border-top: 1px solid var(--ink-800);
}
.scan-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-800);
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 4px 14px;
}
.scan-item .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-500);
  padding-top: 6px;
}
.scan-item b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.scan-item p {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--ink-400);
}
.scan-item .fit {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cyan-400);
  padding-top: 6px;
}
.scan-empty {
  margin: auto 0;
  color: var(--ink-500);
}
.chat {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px var(--ink-700);
  display: grid;
  place-items: center;
  font-family: var(--f-logo);
  font-weight: 700;
  color: var(--cyan-400);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.msg--bot {
  background: var(--surface-2);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.msg--me {
  box-shadow: inset 0 0 0 1px var(--accent);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.msg.typing {
  display: inline-flex;
  gap: 4px;
}
.msg.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
  animation: typing 1.2s infinite;
}
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-suggest {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 20px 12px;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}
.chat-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.chat-form button {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
  flex: none;
}

/* ---------- Partners ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tier .tier-rate {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 72px;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 26px 0 6px;
}
.tier .tier-rate small {
  font-family: var(--f-body);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--fg-3);
  margin-left: 8px;
}
.tier ul {
  margin-bottom: 32px;
}
.tier .btn {
  margin-top: auto;
}
.steps-h {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.step-h {
  padding: 30px 28px 0 0;
}
.step-h + .step-h {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.step-h .mono {
  color: var(--accent);
}
.step-h h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 18px 0 12px;
  line-height: 1.05;
}
.step-h p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}
.wizard {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.wizard-head {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.wizard-head::-webkit-scrollbar {
  display: none;
}
.wz-step {
  flex: 1;
  min-width: 140px;
  padding: 20px 24px;
  text-align: left;
  font-size: 14px;
  color: var(--fg-3);
  position: relative;
}
.wz-step b {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  margin-bottom: 4px;
}
.wz-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.wz-step.is-on {
  color: var(--fg);
}
.wz-step.is-on::after,
.wz-step.is-done::after {
  transform: scaleX(1);
}
.wz-step.is-done {
  color: var(--fg-2);
}
.wizard-body {
  padding: clamp(24px, 4vw, 56px);
}
.wz-pane {
  display: none;
}
.wz-pane.is-on {
  display: block;
  animation: paneIn 0.6s var(--ease-out);
}
@keyframes paneIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.wz-pane h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
}
.wizard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.verify {
  display: flex;
  gap: 8px;
  max-width: 560px;
  padding: 6px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.verify input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  padding: 0 14px;
}
.verify input:focus {
  outline: none;
}
.verify-out {
  margin-top: 16px;
  font-size: 15px;
  min-height: 24px;
}
.verify-out.ok {
  color: var(--cyan-400);
}
.verify-out.no {
  color: var(--gold-400);
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.compare th {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.compare td {
  color: var(--fg-2);
}
.compare td:first-child {
  color: var(--fg);
}
.compare .yes {
  color: var(--accent);
}
.compare tr:last-child td {
  border-bottom: 0;
}

/* ---------- Estimator ---------- */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}
.est-out {
  border-radius: var(--r-lg);
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px var(--ink-800);
  color: var(--ink-50);
  padding: clamp(24px, 3vw, 40px);
  position: sticky;
  top: 100px;
  align-self: start;
}
.est-big {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(64px, 7vw, 112px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 18px 0 6px;
}
.est-rows {
  margin-top: 28px;
}
.est-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--ink-800);
  font-size: 14px;
  color: var(--ink-300);
}
.est-rows b {
  color: var(--ink-50);
  font-weight: 500;
  text-align: right;
}
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  margin: 20px 0 8px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links,
  .nav-clock {
    display: none;
  }
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .burger {
    display: block;
  }
  .panel-grid,
  .ideas-grid,
  .models,
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps-h {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .step-h:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
  .index-row {
    grid-template-columns: 40px minmax(0, 1.6fr) minmax(0, 1fr) 32px;
  }
  .index-row .ir-hide {
    display: none;
  }
  .cap {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
  }
  .cap-go {
    display: none;
  }
}

@media (max-width: 860px) {
  .sec-head,
  .process,
  .contact-grid,
  .svc-block,
  .page-hero-grid,
  .strip,
  .scanner,
  .estimator {
    grid-template-columns: 1fr;
  }
  .sec-head > :last-child {
    justify-self: start;
  }
  .strip-actions {
    justify-content: flex-start;
  }
  .process-sticky,
  .est-out {
    position: relative;
    top: 0;
  }
  .hero-foot {
    grid-template-columns: 1fr;
  }
  .hero-side {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .stat {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .cap {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .cap-desc {
    grid-column: 2;
  }
  .ind {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .ind .ind-note {
    grid-column: 2;
    opacity: 1;
    transform: none;
    font-size: 14px;
  }
  .chapters {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: auto;
    bottom: 44px;
  }
  .chapter {
    top: auto;
    bottom: 0;
    transform: none;
  }
  .chapter h3 {
    font-size: 46px;
  }
  .chapter p {
    font-size: 15px;
  }
  .anatomy-progress {
    top: 92px;
    transform: none;
    flex-direction: row;
  }
  .anatomy-progress i {
    width: 18px;
    height: 2px;
  }
  .anatomy-progress i.on {
    width: 32px;
    height: 2px;
  }
  .layer-tags {
    display: none;
  }
  .cs-cols,
  .cs-metrics {
    grid-template-columns: 1fr;
  }
  .cs-metric + .cs-metric {
    padding-left: 0;
    border-left: 0;
  }
  .cs-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ide {
    grid-template-columns: 1fr;
  }
  .ide-tree {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink-800);
    padding: 8px;
    max-height: none;
  }
  .tree-group {
    display: none;
  }
  .ide-tree button {
    flex: none;
    width: auto;
    padding: 8px 12px;
  }
  .work-hud-bottom {
    grid-template-columns: 1fr;
  }
  .work-progress {
    display: none;
  }
  .view-toggle {
    justify-self: start;
  }
  .footer-word {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-word .fw-side {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .form,
  .panel-grid,
  .ideas-grid,
  .models,
  .tiers,
  .svc-list,
  .steps-h {
    grid-template-columns: 1fr;
  }
  .step-h + .step-h {
    border-left: 0;
    padding-left: 0;
  }
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .nav-right .btn,
  .logo small {
    display: none;
  }
  .btn {
    height: 52px;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .step-num {
    padding-top: 0;
  }
  .index-row {
    grid-template-columns: minmax(0, 1fr) 24px;
  }
  .index-row > :first-child,
  .index-row .ir-cat {
    display: none;
  }
  .work-hud {
    padding-top: 96px;
  }
  .work-hud-top {
    flex-direction: column;
    gap: 14px;
  }
  .work-hud .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100vw - 2 * var(--gutter));
    scrollbar-width: none;
  }
  .work-hud .filters,
  .work-hud .filters * {
    pointer-events: auto;
  }
  .wizard-foot .body-s {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain {
    display: none;
  }
}

/* Split-text keeps <em> styling */
.display .word.is-em,
.cta-title .word.is-em,
.svc-block h2 .word.is-em {
  color: var(--fg-3);
}

@media (max-width: 860px) {
  .page-hero-grid > div {
    justify-content: flex-start !important;
  }
  .page-hero {
    padding-top: 46svh;
  }
}

/* =========================================================
   Clean pass — editorial columns instead of boxed grids,
   no icon tiles, no chip clutter.
   ========================================================= */
.panel-grid,
.ideas-grid,
.svc-list,
.stack-grid {
  border: 0;
  gap: 0 clamp(24px, 3vw, 56px);
}
.panel,
.idea,
.svc-item,
.stack-cell {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  min-height: 0;
  background: none !important;
}
.panel h3,
.idea h3 {
  margin: 20px 0 10px;
}
.panel .ic,
.idea-ic,
.panel .p-top .ic {
  display: none;
}
.panel .p-top,
.idea-top {
  justify-content: flex-start;
}
.step .step-out,
.deliverables .chip:not(.chip--accent),
.chapter .chips {
  display: none;
}
.stack-cell {
  aspect-ratio: auto;
  gap: 8px;
}
.svc-item b {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.cap:hover {
  background: none;
  padding-left: 0;
  padding-right: 0;
}
.cap:hover .cap-title {
  color: var(--fg-2);
}
.sample-tag {
  top: auto;
  left: auto;
  right: 14px;
  bottom: 14px;
}
.idea-foot {
  border-top: 0;
  padding-top: 0;
}
.card {
  box-shadow: inset 0 0 0 1px var(--line);
}
.tilt-shine {
  display: none;
}

/* =========================================================
   Craft layer v2 — refined to the clean system
   ========================================================= */
/* Story section */
.anatomy {
  height: 640vh;
}
.story-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.chapter h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.chapter h3 em {
  font-style: normal;
  color: var(--fg-3);
}
.chapter .chips {
  display: flex !important;
  pointer-events: auto;
}
.chapter .ch-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  max-width: 40ch;
}
.chapter .ch-meta dt {
  color: var(--fg-3);
}
.chapter .ch-meta dd {
  margin: 0;
  color: var(--fg-2);
}
.chapter .ch-link {
  display: inline-flex;
  margin-top: 22px;
  pointer-events: auto;
}
.chapter .ch-num i {
  background: var(--gold-400);
}
.story-count {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 40px;
  color: var(--fg-3);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.4s;
}

/* Ticker in the clean type */
.ticker-item {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.ticker-item em {
  font-style: normal;
  color: var(--fg-3);
}

/* Bring back the detail: chips, icons, step outputs */
.step .step-out,
.deliverables .chip:not(.chip--accent) {
  display: flex;
}
.deliverables .chip:not(.chip--accent) {
  display: inline-flex;
}
.panel .ic,
.idea-ic {
  display: grid;
  box-shadow: none;
  width: auto;
  height: auto;
  justify-content: flex-start;
}
.panel .p-top,
.idea-top {
  justify-content: space-between;
}

/* Cursor, refined */
.cursor {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-color: rgba(242, 245, 244, 0.28);
}
.cursor-dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
}
.cursor.is-hover {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-color: rgba(242, 245, 244, 0.6);
  background: transparent;
}
.cursor.is-active {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--ink-50);
  border-color: var(--ink-50);
}
.cursor.is-active .cursor-label {
  color: var(--ink-900);
}
.light-under .cursor {
  border-color: rgba(10, 20, 22, 0.35);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: var(--cyan-400);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 860px) {
  .story-intro {
    align-items: flex-end;
    padding-bottom: 60px;
  }
  .story-count {
    display: none;
  }
}

/* Work reel meta — no duplicate title, the cover carries it */
.work-card-meta {
  grid-template-columns: auto 1fr auto;
}
.work-card-sum {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card-meta .link {
  font-size: 14px;
  white-space: nowrap;
}

/* UX fixes */
.cursor,
.cursor-dot {
  transition-property: width, height, margin, background, border-color, opacity;
}
.cursor-idle .cursor,
.cursor-idle .cursor-dot {
  opacity: 0;
}
.svc-nav {
  transition: top 0.6s var(--ease-out);
}
.nav-hidden .svc-nav {
  top: 0;
}
.svc-nav .chip.is-active {
  color: var(--fg);
  border-color: var(--accent);
}
.tier .btn,
.model .btn {
  align-self: flex-start;
  height: 46px;
  padding: 0 20px;
}
.tiers {
  align-items: stretch;
  margin-bottom: 8px;
}
.tiers + .table-wrap {
  margin-top: 56px !important;
}
.card.model {
  transform: none;
}

/* =========================================================
   Industries showcase — big type list + sticky studio stage
   ========================================================= */
.ind-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.ind-show .ind-list {
  border-top: 1px solid var(--line-strong);
}
.ind-show .ind {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 16px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}
.ind-show .ind::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.ind-show .ind.is-active::before {
  transform: scaleX(1);
}
.ind-show .ind:hover {
  padding-left: 0;
}
.ind-show .ind .mono {
  color: var(--fg-3);
  transition: color 0.4s;
}
.ind-show .ind .ind-name {
  font-size: clamp(30px, 3.4vw, 54px);
  color: var(--fg-3);
  transition: color 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.ind-show .ind .ind-note {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  font-size: 15px;
  color: var(--fg-2);
  transition: max-height 0.7s var(--ease-out), opacity 0.5s, transform 0.7s var(--ease-out), margin 0.7s var(--ease-out);
}
.ind-show .ind.is-active .mono {
  color: var(--accent);
}
.ind-show .ind.is-active .ind-name,
.ind-show .ind:hover .ind-name {
  color: var(--fg);
}
.ind-show .ind.is-active .ind-name {
  transform: translateX(6px);
}
.ind-show .ind.is-active .ind-note {
  max-height: 60px;
  opacity: 1;
  transform: none;
  margin-top: 10px;
}
.ind-list:hover .ind:not(:hover) .ind-name {
  color: var(--fg-3);
}
.ind-media {
  display: none;
}
.ind-stage {
  position: sticky;
  top: 110px;
}
.ind-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 55% 35%, #1a2a2f 0%, #0f1b1e 55%, #0a1416 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ind-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
}
.ind-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}
.ind-cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: linear-gradient(to top, rgba(10, 20, 22, 0.75), transparent);
}
.ind-cap .mono {
  color: var(--fg-3);
}
.ind-cap #ind-cap-t {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .ind-show {
    display: block;
  }
  .ind-stage {
    display: none;
  }
  .ind-show .ind-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    border-top: 0;
    scrollbar-width: none;
  }
  .ind-show .ind-list::-webkit-scrollbar {
    display: none;
  }
  .ind-show .ind {
    flex: none;
    width: 78vw;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: 0;
    scroll-snap-align: start;
  }
  .ind-show .ind::before {
    display: none;
  }
  .ind-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    background: radial-gradient(120% 90% at 55% 35%, #1a2a2f 0%, #0f1b1e 55%, #0a1416 100%);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .ind-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s var(--ease-out);
  }
  .ind-media img.is-on {
    opacity: 1;
  }
  .ind-show .ind .ind-name {
    color: var(--fg);
    font-size: 30px;
    transform: none !important;
  }
  .ind-show .ind .ind-note {
    max-height: none;
    opacity: 1;
    transform: none;
    margin: 0;
    font-size: 14px;
  }
  .ind-show .ind .mono {
    color: var(--accent);
  }
  .ind-swipe {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: var(--fg-3);
    font-size: 13px;
  }
}


/* =========================================================
   Industries — graded photography + proof card
   ========================================================= */
.ind-frame,
.ind-show .ind-media {
  background: var(--ink-850);
  isolation: isolate;
}
.ind-frame {
  aspect-ratio: 4 / 5;
}
.ind-frame .ind-photo,
.ind-show .ind-media .ind-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* one grade for every photo: cool monochrome, lifted blacks, a breath of brand cyan */
  filter: grayscale(1) contrast(1.08) brightness(0.78);
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1s var(--ease-out), transform 7s cubic-bezier(0.2, 0.6, 0.2, 1);
  z-index: 0;
}
.ind-frame .ind-photo.is-active,
.ind-show .ind-media .ind-photo.is-on {
  opacity: 1;
  transform: scale(1);
}
.ind-frame::before,
.ind-show .ind-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0b7a6b;
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
}
.ind-frame::after,
.ind-show .ind-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 13, 14, 0.92) 0%, rgba(6, 13, 14, 0.25) 42%, rgba(6, 13, 14, 0) 60%),
    radial-gradient(120% 80% at 50% 0%, rgba(6, 13, 14, 0) 40%, rgba(6, 13, 14, 0.55) 100%);
}
.ind-cap {
  top: 0;
  bottom: auto;
  background: none;
  padding: 22px 26px;
}

/* Proof card */
.pc {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: auto;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  padding: 16px 18px 14px;
  border-radius: 14px;
  background: rgba(10, 20, 22, 0.62);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 244, 0.12), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-50);
  font-size: 13px;
  animation: pcIn 0.9s var(--ease-out) both 0.15s;
}
@keyframes pcIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-300);
  font-size: 12px;
  margin-bottom: 4px;
}
.pc-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pc-app i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--ink-800);
  box-shadow: inset 0 0 0 1px var(--ink-600);
  position: relative;
}
.pc-app i::after {
  content: "";
  position: absolute;
  inset: 4.5px;
  border-radius: 50%;
  background: var(--cyan-400);
}
.pc-live {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--cyan-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: blink 2s infinite;
}
.pc-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pc-meta {
  color: var(--ink-400);
  font-size: 12.5px;
}
.pc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 245, 244, 0.1);
  font-size: 12.5px;
  color: var(--ink-300);
}
.pc-foot b {
  color: var(--ink-50);
  font-weight: 500;
}
.pc-foot s {
  color: var(--ink-500);
}
.pc-ok { color: var(--cyan-400); }
.pc-gold { color: var(--gold-400); }
.pc-bar {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: rgba(242, 245, 244, 0.1);
  overflow: hidden;
}
.pc-bar i {
  display: block;
  height: 100%;
  width: var(--p);
  background: var(--cyan-400);
  transform-origin: left;
  animation: pcGrow 1.4s var(--ease-out) both 0.4s;
}
@keyframes pcGrow { from { transform: scaleX(0); } }
.pc-dots {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.pc-dots i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(242, 245, 244, 0.12);
}
.pc-dots i.on {
  background: var(--cyan-400);
}
.pc-spark {
  width: 100%;
  height: 30px;
  margin-top: 4px;
}
.pc-spark path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: pcLine 1.8s var(--ease-out) forwards 0.4s;
}
@keyframes pcLine { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .ind-show .ind-media {
    aspect-ratio: 4 / 5;
  }
  .pc {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 13px 14px 12px;
    font-size: 12px;
  }
  .pc-title {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ind-photo { transition: opacity 0.3s; transform: none !important; }
  .pc, .pc-bar i, .pc-spark path { animation: none !important; stroke-dashoffset: 0; }
}
@media (max-width: 860px) {
  .ind-media .pc-meta,
  .ind-media .pc-dots,
  .ind-media .pc-bar,
  .ind-media .pc-spark {
    display: none;
  }
  .ind-media .pc-foot {
    margin-top: 4px;
  }
}

/* =========================================================
   Two colours do the work. Cyan is only for the button you
   want pressed. (Ink + off-white carry 90% of the site.)
   ========================================================= */
:root {
  --accent: var(--ink-50);
  --accent-hover: #ffffff;
  --cta: var(--cyan-400);
  --cta-hover: var(--cyan-300);
  --on-cta: var(--on-cyan);
}
.light {
  --accent: var(--ink-900);
  --accent-hover: var(--ink-700);
  --cta: var(--cyan-700);
  --cta-hover: var(--cyan-500);
  --on-cta: #ffffff;
}
.btn--primary {
  background: var(--cta);
  color: var(--on-cta);
}
.btn--primary:hover {
  background: var(--cta-hover);
}
/* everything else goes neutral */
.link--accent,
.chip--accent {
  color: var(--fg);
}
.chip--accent {
  border-color: var(--line-strong);
}
.link--accent::after {
  transform: scaleX(1);
  opacity: 0.35;
}
.link--accent:hover::after {
  opacity: 1;
}
.cursor-dot { background: var(--ink-50); }
.cursor.is-hover { border-color: rgba(242, 245, 244, 0.7); }
.nav-clock i { background: var(--ink-400); }
.nav-clock [data-clock] { transition: opacity 0.25s; display: inline-block; min-width: 72px; }
.scroll-progress i { background: var(--ink-50); }
.anatomy-progress i.on { background: var(--ink-50); }
.strip-orbit::after { background: var(--ink-50); }
.pc-ok, .pc-live { color: var(--ink-50); }
.pc-live::before, .pc-dots i.on, .pc-bar i, .pc-app i::after { background: var(--ink-50); }
.pc-spark path { stroke: var(--ink-50); }
.term-body .t-p, .term-body .t-ok { color: var(--ink-50); }
.term-body .caret { background: var(--ink-50); }
.toolkit-legend .ok { background: var(--ink-50); }
.tree-group, .ide-tree .dot { background: none; }
.ide-tree .dot { background: var(--ink-400); }
.ide-tree button.is-active { box-shadow: inset 2px 0 0 var(--ink-50); }
.ide-tab { box-shadow: inset 0 -1px 0 var(--ink-50); }
.ide-status span:first-child::before { color: var(--ink-400); }
.wc-idx, .step-h .mono { color: var(--fg-3); }
.scan-item .fit { color: var(--ink-50); }
.heat i.on { background: var(--fg); }
.choice input:checked + span {
  border-color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
.chip.is-active,
.svc-nav .chip.is-active {
  border-color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
.verify-out.ok { color: var(--fg); }
.est-out .label, .scanner-out .label { color: var(--ink-400); }

/* Worldwide — follow-the-sun clock */
.world {
  border-top: 1px solid var(--line-strong);
}
.world-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) 110px minmax(0, 2.4fr) 150px;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.world-city b {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.world-city span {
  font-size: 13px;
  color: var(--fg-3);
}
.world-city .studio {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-400) 50%, transparent);
  vertical-align: middle;
}
.world-time {
  font-family: var(--f-mono);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.world-time small {
  display: block;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0;
}
.world-day {
  position: relative;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-850);
  box-shadow: inset 0 0 0 1px var(--line);
}
.world-day .sun {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(242, 245, 244, 0.04), rgba(242, 245, 244, 0.14) 50%, rgba(242, 245, 244, 0.04));
}
.world-day .work {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(242, 245, 244, 0.45);
  border-radius: 2px;
}
.world-day .ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(242, 245, 244, 0.06) calc(100% / 24 - 1px) calc(100% / 24));
}
.world-day .now {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--ink-50);
  box-shadow: 0 0 0 3px rgba(10, 20, 22, 0.8);
  transition: left 1s var(--ease-out);
}
.world-state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
}
.world-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-600);
}
.world-row.is-open .world-state {
  color: var(--fg);
}
.world-row.is-open .world-state i {
  background: var(--ink-50);
  animation: blink 2s infinite;
}
.world-row.is-studio .world-state i {
  background: var(--gold-400);
}
.world-axis {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) 110px minmax(0, 2.4fr) 150px;
  gap: 28px;
  padding-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.world-axis div {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .world-row {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }
  .world-day {
    grid-column: 1 / -1;
    height: 26px;
  }
  .world-state {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .world-axis {
    display: none;
  }
}

/* Toolkit — a terminal that types out the stack (restored) */
.toolkit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.toolkit-legend {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg-3);
}
.toolkit-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toolkit-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.toolkit-legend .ok { background: var(--fg); }
.toolkit-legend .rd { background: var(--gold-400); }
.term {
  border-radius: 14px;
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px var(--ink-800), 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ink-800);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-700);
}
.term-bar span {
  margin: 0 auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-500);
  transform: translateX(-20px);
}
.term-body {
  margin: 0;
  padding: 22px 24px 28px;
  min-height: 430px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-300);
  white-space: pre-wrap;
}
.term-body .t-p { color: var(--ink-50); }
.term-body .t-c { color: var(--ink-50); }
.term-body .t-k { color: var(--ink-500); }
.term-body .t-ok { color: var(--ink-50); }
.term-body .t-rd { color: var(--gold-400); }
.term-body .t-m { color: var(--ink-500); }
.term-body .t-row {
  display: inline-block;
  width: calc(100% + 16px);
  border-radius: 4px;
  margin: 0 -8px;
  padding: 0 8px;
  transition: background 0.25s;
}
.term-body .t-row:hover {
  background: var(--ink-850);
  color: var(--ink-50);
}
.term-body .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--ink-50);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@media (max-width: 860px) {
  .toolkit {
    grid-template-columns: 1fr;
  }
  .term-body {
    font-size: 11.5px;
    min-height: 0;
    padding: 18px;
  }
}

/* Partner tiers — offers, not rates (restored) */
.tier-offer {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 2.6vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 26px 0 14px;
  max-width: 12ch;
}

/* Cursor reads on dark and light sections alike */
.cursor,
.cursor-dot {
  mix-blend-mode: difference;
}
.cursor { border-color: rgba(255, 255, 255, 0.6); }
.cursor.is-hover { border-color: #fff; }
.cursor.is-active { background: #fff; border-color: #fff; }
.cursor-dot { background: #fff; }

/* =========================================================
   Header — dark & light editions (switches with the section)
   ========================================================= */
.nav::before {
  transition: opacity 0.4s, background 0.5s var(--ease-out);
}
.nav .logo,
.nav .logo small,
.nav-links a,
.nav-clock,
.nav .btn--ghost,
.burger span,
.nav-inner {
  transition: color 0.5s var(--ease-out), background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.nav.nav--light {
  --fg: var(--ink-900);
  --fg-2: var(--ink-600);
  --fg-3: var(--ink-500);
  --line: rgba(10, 20, 22, 0.1);
  --line-strong: rgba(10, 20, 22, 0.22);
  --accent: var(--ink-900);
}
.nav.nav--light::before {
  background: color-mix(in srgb, var(--ink-50) 82%, transparent);
}
.nav.nav--light .logo b {
  color: var(--cyan-700);
}
.nav.nav--light .nav-clock i {
  background: var(--ink-500);
}
.nav.nav--light .btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--ink-900);
  color: var(--ink-900);
}
.on-light .scroll-progress i {
  background: var(--ink-900);
}

/* =========================================================
   Footer v3 — reveal, big CTA, live studio clocks, rippling
   wordmark, scroll-ring back-to-top
   ========================================================= */
.footer {
  padding: clamp(72px, 9vw, 120px) 0 28px;
  border-top: 1px solid var(--ink-850);
}
.ft {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.ft-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--ink-800);
}
.ft-kicker {
  font-size: 15px;
  color: var(--ink-400);
}
.ft-big {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--ink-50);
}
.ft-big-text {
  position: relative;
  display: block;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(54px, 9.5vw, 168px);
  letter-spacing: -0.055em;
  line-height: 1;
  padding-bottom: 0.08em;
}
.ft-big-a,
.ft-big-b {
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.ft-big-b {
  position: absolute;
  inset: 0;
  transform: translateY(105%);
  color: var(--cyan-400);
}
.ft-big:hover .ft-big-a { transform: translateY(-105%); }
.ft-big:hover .ft-big-b { transform: translateY(0); }
.ft-arrow {
  flex: none;
  width: clamp(64px, 8vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--ink-700);
  transition: background 0.5s var(--ease-out), color 0.5s, transform 0.8s var(--ease-out), box-shadow 0.5s;
}
.ft-arrow svg {
  width: 40%;
}
.ft-big:hover .ft-arrow {
  background: var(--cyan-400);
  color: var(--on-cyan);
  box-shadow: none;
  transform: rotate(45deg);
}

.ft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: clamp(40px, 5vw, 64px) 0;
}
.ft-col h4 {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-500);
  margin: 0 0 18px;
}
.ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ft-col ul a {
  display: inline-flex;
  overflow: hidden;
  color: var(--ink-300);
  font-size: 16px;
}
.ft-col ul a span {
  position: relative;
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.ft-col ul a:hover span {
  color: var(--ink-50);
  transform: translateX(6px);
}
.ft-news p {
  margin: 0 0 22px;
  max-width: 30ch;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink-50);
}
.ft .footer-news {
  margin: 0;
  max-width: 380px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink-700);
  display: flex;
  gap: 10px;
}
.ft .footer-news:focus-within {
  border-color: var(--ink-300);
}
.ft .footer-news button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink-700);
  color: var(--ink-50);
  transition: background 0.3s, color 0.3s;
}
.ft .footer-news button:hover {
  background: var(--ink-50);
  color: var(--ink-900);
}
.ft-clock {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--ink-850);
  font-size: 14px;
  color: var(--ink-400);
}
.ft-clock b {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-50);
  font-variant-numeric: tabular-nums;
}
.ft-clock i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-500);
  min-width: 46px;
  text-align: right;
}
.ft-clock i.is-open {
  color: var(--gold-400);
}
.ft-mail {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink-300);
  border-bottom: 1px solid var(--ink-700);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.ft-mail:hover {
  color: var(--ink-50);
  border-color: var(--ink-50);
}

.ft-word {
  display: flex;
  justify-content: flex-start;
  font-family: var(--f-logo);
  font-weight: 700;
  font-size: min(25.5vw, 440px);
  letter-spacing: -0.065em;
  line-height: 0.78;
  color: var(--ink-800);
  margin-left: -0.04em;
  margin-top: auto;
  padding-top: 24px;
  user-select: none;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.ft-word span {
  display: inline-block;
  will-change: transform;
}
.ft-word .x {
  color: var(--cyan-900);
}
.ft-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--ink-850);
  font-size: 13px;
  color: var(--ink-500);
}
.ft-social {
  display: flex;
  gap: 22px;
}
.ft-social a {
  color: var(--ink-400);
  transition: color 0.3s;
}
.ft-social a:hover {
  color: var(--ink-50);
}
.ft-top {
  width: 44px;
  height: 44px;
  color: var(--ink-50);
}
.ft-top svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ft-top .ring-bg {
  fill: none;
  stroke: var(--ink-800);
  stroke-width: 1.5;
}
.ft-top .ring {
  fill: none;
  stroke: var(--ink-50);
  stroke-width: 1.5;
  transition: stroke-dashoffset 0.15s linear;
}
.ft-top .arr {
  fill: none;
  stroke: var(--ink-50);
  stroke-width: 1.6;
  transform: rotate(90deg);
  transform-origin: 22px 22px;
  transition: transform 0.5s var(--ease-out);
}
.ft-top:hover .arr {
  transform: rotate(90deg) translateX(-3px);
}

/* Reveal: the page lifts off the footer */
@media (min-width: 861px) and (min-height: 760px) {
  main {
    position: relative;
    z-index: 1;
    background: var(--ink-900);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }
  .footer {
    position: sticky;
    bottom: 0;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    border-top: 0;
  }
  .footer > .wrap {
    flex: 1;
  }
}

@media (max-width: 1100px) {
  .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft-news {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .ft-big {
    gap: 16px;
  }
  .ft-arrow {
    width: 56px;
  }
  .ft-grid {
    gap: 32px 20px;
  }
  .ft-time {
    grid-column: 1 / -1;
  }
  .ft-bottom {
    grid-template-columns: 1fr auto;
  }
  .ft-bottom > span:first-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Header v3 — floating capsule
   ========================================================= */
.nav {
  --glass: rgba(16, 28, 31, 0.58);
  --glass-line: rgba(242, 245, 244, 0.1);
  --pill: rgba(242, 245, 244, 0.1);
  --nav-fg: var(--ink-50);
  --nav-fg-2: var(--ink-300);
  --cta-bg: var(--ink-50);
  --cta-fg: var(--ink-900);
  --cta-dot: var(--cyan-400);
  --cta-dot-fg: var(--on-cyan);
  padding: 18px var(--gutter) 0;
  pointer-events: none;
  transition: transform 0.7s var(--ease-out), padding 0.5s var(--ease-out);
}
.nav::before {
  display: none;
}
.nav.is-scrolled {
  padding-top: 12px;
}
.nav.is-hidden {
  transform: translateY(-140%);
}
.nav.nav--light {
  --glass: rgba(242, 245, 244, 0.72);
  --glass-line: rgba(10, 20, 22, 0.1);
  --pill: rgba(10, 20, 22, 0.07);
  --nav-fg: var(--ink-900);
  --nav-fg-2: var(--ink-600);
  --cta-bg: var(--ink-900);
  --cta-fg: var(--ink-50);
  --cta-dot: var(--cyan-700);
  --cta-dot-fg: #fff;
}
.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-bar > * {
  pointer-events: auto;
}
.nav-glass,
.nav-capsule,
.nav-clock,
.nav.is-scrolled .nav-brand,
.nav-menu {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 10px 30px -18px rgba(0, 0, 0, 0.5);
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

/* brand */
.nav-brand {
  justify-self: start;
  padding: 11px 16px;
  margin-left: -16px;
  border-radius: 999px;
  color: var(--nav-fg);
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), color 0.5s, margin 0.5s var(--ease-out);
}
.nav.is-scrolled .nav-brand {
  margin-left: 0;
}
.nav-brand small {
  color: var(--nav-fg-2);
  transition: opacity 0.4s, max-width 0.5s var(--ease-out);
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
}
.nav.is-scrolled .nav-brand small {
  opacity: 0;
  max-width: 0;
  margin-left: -10px;
}
.nav.nav--light .nav-brand b {
  color: var(--cyan-700);
}

/* capsule */
.nav-capsule {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
}
.nav-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--pill);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.3s, background 0.5s;
}
.nav-link {
  position: relative;
  z-index: 1;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-fg-2);
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.is-current {
  color: var(--nav-fg);
}
.nav-capsule.is-hovering .nav-link.is-current:not(:hover) {
  color: var(--nav-fg-2);
}

/* right side */
.nav-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-clock {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-fg-2);
}
.nav-clock i {
  background: var(--nav-fg-2);
}
.nav-cta {
  height: 44px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--cta-bg);
  color: var(--cta-fg);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  transition: background 0.5s var(--ease-out), color 0.5s, transform 0.4s var(--ease-out);
}
.nav-cta i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  background: var(--cta-dot);
  color: var(--cta-dot-fg);
  transition: transform 0.6s var(--ease-out), background 0.5s;
}
.nav-cta:hover i {
  transform: rotate(-45deg);
}
.nav-cta:hover {
  transform: translateY(-1px);
}

/* menu button (tablet / phone) */
.nav-menu {
  display: none;
  height: 44px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  align-items: center;
  gap: 12px;
  color: var(--nav-fg);
  font-size: 14px;
  font-weight: 500;
}
.nm-label {
  display: grid;
  height: 1.3em;
  overflow: hidden;
  line-height: 1.3em;
}
.nm-label span {
  transition: transform 0.6s var(--ease-out);
}
.menu-open .nm-label span {
  transform: translateY(-100%);
}
.nm-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pill);
}
.nm-icon i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.nm-icon i:nth-child(1) { top: 13px; }
.nm-icon i:nth-child(2) { top: 18px; }
.menu-open .nm-icon i:nth-child(1) { top: 15.5px; transform: rotate(45deg); }
.menu-open .nm-icon i:nth-child(2) { top: 15.5px; transform: rotate(-45deg); }
.menu-open .nav {
  --glass: rgba(16, 28, 31, 0.58);
  --glass-line: rgba(242, 245, 244, 0.1);
  --nav-fg: var(--ink-50);
  --nav-fg-2: var(--ink-300);
  --pill: rgba(242, 245, 244, 0.1);
}
.menu-open .nav .nav-brand b {
  color: var(--cyan-400);
}

/* full-screen menu */
.mobile-menu {
  padding-top: 120px;
}
.mm-link.is-current {
  color: var(--ink-400);
}
.mm-foot {
  align-items: center;
}
.mm-foot .btn {
  margin-right: auto;
}

@media (max-width: 1100px) {
  .nav-capsule,
  .nav-clock {
    display: none;
  }
  .nav-bar {
    grid-template-columns: 1fr auto;
  }
  .nav-menu {
    display: inline-flex;
  }
}
@media (max-width: 640px) {
  .nav {
    padding: 12px 12px 0;
  }
  .nav-cta {
    display: none;
  }
  .nav-brand {
    margin-left: 0;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px var(--glass-line);
  }
  .nav-brand small {
    display: none;
  }
  .mm-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Brand logo artwork (PNG, 555×160) — white on dark, black on light
   ========================================================= */
.logo-img {
  display: block;
  height: 32px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.logo-img--on-light {
  display: none;
}
.nav.nav--light .logo-img--on-dark {
  display: none;
}
.nav.nav--light .logo-img--on-light {
  display: block;
}
.menu-open .nav .logo-img--on-dark {
  display: block;
}
.menu-open .nav .logo-img--on-light {
  display: none;
}
.nav-brand {
  padding: 8px 14px;
  line-height: 0;
}
.nav-brand .logo-img {
  height: 30px;
  transition: height 0.5s var(--ease-out);
}
.nav.is-scrolled .nav-brand .logo-img {
  height: 26px;
}
/* preloader */
.pl-center .logo {
  line-height: 0;
}
.pl-center .logo-img {
  height: clamp(64px, 9vw, 110px);
}
/* footer */
.ft-word {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(20px, 3vw, 48px);
  font-size: inherit;
  line-height: 1;
  color: inherit;
  margin-left: 0;
  padding-bottom: 28px;
  overflow: visible;
}
.ft-word img {
  width: min(555px, 70vw);
  height: auto;
  opacity: 0.96;
}
.ft-word-line {
  height: 1px;
  background: var(--gold-400);
  margin-bottom: 18px;
  opacity: 0.7;
}
.ft-word-tag {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-300);
  text-align: right;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .nav-brand .logo-img,
  .nav.is-scrolled .nav-brand .logo-img {
    height: 24px;
  }
  .ft-word {
    grid-template-columns: 1fr;
  }
  .ft-word-line {
    display: none;
  }
  .ft-word-tag {
    text-align: left;
  }
}

/* =========================================================
   WhatsApp assistant
   Always ink-dark so it reads the same over light and dark
   sections. Cyan appears only on the send button and the
   tiny online dot.
   ========================================================= */
.wa {
  --wa-bg: #0b1517;
  --wa-s1: #132226;
  --wa-s2: #1b2e33;
  --wa-me: #20383d;
  --wa-line: rgba(242, 245, 244, 0.08);
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  font-family: var(--f-body);
  color: var(--ink-50);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.wa > * { pointer-events: auto; }
html.menu-open .wa { opacity: 0; visibility: hidden; }

.wa-launch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 8px;
  border-radius: 999px;
  border: 0;
  background: var(--wa-bg);
  color: var(--ink-50);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 244, 0.12), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  font: 500 15px/1 var(--f-body);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.wa-launch:hover { transform: translateY(-2px); }
.wa-launch-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa-s2);
}
.wa-launch-ico svg { width: 19px; height: 19px; }
.wa[data-open="true"] .wa-launch-label::after { content: ""; }
.wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-400);
  color: #1a1408;
  font: 600 11px/20px var(--f-mono);
  text-align: center;
  animation: wa-pop 0.6s var(--ease-out);
}
.wa-badge[hidden] { display: none; }
@keyframes wa-pop { from { transform: scale(0); } }

.wa-teaser {
  position: relative;
  width: 260px;
  padding: 16px 34px 16px 18px;
  border-radius: 16px 16px 4px 16px;
  background: var(--wa-bg);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 244, 0.1), 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-300);
  cursor: pointer;
  animation: wa-rise 0.7s var(--ease-out);
}
.wa-teaser b { display: block; color: var(--ink-50); font-weight: 500; margin-bottom: 2px; }
.wa-teaser[hidden] { display: none; }
.wa-teaser-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: var(--ink-400);
  font-size: 18px;
  cursor: pointer;
}
@keyframes wa-rise { from { opacity: 0; transform: translateY(12px); } }

.wa-panel {
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100svh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--wa-bg);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 244, 0.1), 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  transform-origin: 100% 100%;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.wa-panel.is-in { opacity: 1; transform: none; }
.wa-panel[hidden] { display: none; }

.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: var(--wa-s1);
  border-bottom: 1px solid var(--wa-line);
}
.wa-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 244, 0.12);
  display: grid;
  place-items: center;
  flex: none;
}
.wa-ava img { width: 30px; height: auto; }
.wa-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wa-who b { font-weight: 500; font-size: 15px; }
.wa-status { display: flex; align-items: center; gap: 6px; font: 400 11.5px/1 var(--f-mono); color: var(--ink-400); }
.wa-status em { font-style: normal; }
.wa-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-500); }
.wa-status.is-on i { background: var(--cyan-400); box-shadow: 0 0 0 3px rgba(31, 209, 184, 0.15); }
.wa-reset, .wa-x {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-300);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.wa-reset:hover, .wa-x:hover { background: var(--wa-s2); color: var(--ink-50); }
.wa-reset svg, .wa-x svg { width: 18px; height: 18px; }

.wa-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 1px 1px, rgba(242, 245, 244, 0.035) 1px, transparent 0) 0 0 / 18px 18px,
    var(--wa-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--wa-s2) transparent;
}
.wa-day { align-self: center; margin: 2px 0 8px; }
.wa-day span {
  font: 400 11px/1 var(--f-mono);
  color: var(--ink-400);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--wa-s1);
}
.wa-msg { display: flex; }
.wa-msg--me { justify-content: flex-end; }
.wa-msg.is-new { animation: wa-in 0.45s var(--ease-out); }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.wa-b {
  position: relative;
  max-width: 84%;
  padding: 9px 12px 7px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  background: var(--wa-s1);
  color: var(--ink-100);
  overflow-wrap: anywhere;
}
.wa-msg--bot .wa-b { border-top-left-radius: 4px; }
.wa-msg--me .wa-b { background: var(--wa-me); border-top-right-radius: 4px; }
.wa-b b { font-weight: 600; color: var(--ink-50); }
.wa-b ul { margin: 6px 0 2px; padding-left: 18px; }
.wa-b li { margin: 2px 0; }
.wa-t {
  display: block;
  margin-top: 3px;
  text-align: right;
  font: 400 10.5px/1 var(--f-mono);
  color: var(--ink-400);
}
.wa-ticks { font-style: normal; color: var(--cyan-300); letter-spacing: -2px; margin-left: 2px; }
.wa-typing .wa-b { display: flex; gap: 4px; padding: 13px 14px; }
.wa-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-400);
  animation: wa-dot 1.1s infinite ease-in-out;
}
.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.wa-card { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.wa-card-k { font: 400 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-400); }
.wa-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 13.5px; }
.wa-card dt { color: var(--ink-400); }
.wa-card dd { margin: 0; color: var(--ink-50); }
.wa-send {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  background: var(--cyan-400) !important;
  color: var(--on-cyan) !important;
}
.wa-send svg { width: 17px; height: 17px; }
.wa-alt { font-size: 12.5px; color: var(--ink-400); text-align: center; text-decoration: underline; text-underline-offset: 3px; }

.wa-chips {
  display: flex;
  gap: 6px;
  padding: 8px 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
  max-height: 112px;
  overflow-y: auto;
}
.wa-chips[hidden] { display: none; }
.wa-chip {
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(242, 245, 244, 0.16);
  background: transparent;
  color: var(--ink-100);
  font: 400 13px/1.2 var(--f-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  animation: wa-in 0.4s var(--ease-out) both;
}
.wa-chip:hover { background: var(--wa-s2); border-color: rgba(242, 245, 244, 0.3); }

.wa-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px 6px;
}
.wa-input input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--wa-line);
  background: var(--wa-s1);
  color: var(--ink-50);
  font: 400 15px var(--f-body);
  outline: none;
}
.wa-input input:focus { border-color: rgba(242, 245, 244, 0.28); }
.wa-input input::placeholder { color: var(--ink-500); }
.wa-input button {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.wa-input button svg { width: 18px; height: 18px; }
.wa-foot { margin: 0; padding: 2px 12px 10px; text-align: center; font: 400 10.5px/1.3 var(--f-mono); color: var(--ink-500); }

@media (max-width: 560px) {
  .wa { right: 12px; bottom: 12px; }
  .wa-launch-label { display: none; }
  .wa-launch { padding: 0 8px; }
  /* floating card above the launcher, not full screen */
  .wa-panel { width: calc(100vw - 24px); height: min(540px, 68svh); border-radius: 20px; }
  .wa-input input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-panel, .wa-msg.is-new, .wa-chip, .wa-teaser { animation: none; transition: none; }
}

/* =========================================================
   Mobile pass — header legibility, terminal, spacing, overlaps
   ========================================================= */
@media (max-width: 860px) {
  /* AI / safety panels: no empty gap between number and title */
  .panel { min-height: 0; gap: 12px; padding: 26px 22px; }
  .panel h3 { margin-top: 6px; }
  /* services lists: tighter rhythm */
  .svc-item { padding: 18px 20px; }
  /* partner strip orbit: tuck into the corner so the dot never covers the headline */
  .strip-orbit { width: 200px; height: 200px; right: -110px; top: -110px; }
  /* toolkit terminal: smaller mono, hanging indent so wrapped tools line up */
  .term-body { min-height: 0; padding: 18px 16px 22px; font-size: 11.5px; line-height: 1.75; }
  .term-body .t-row { display: inline-block; width: 100%; margin: 0; padding: 0 0 0 14ch; text-indent: -14ch; }
  .term-bar span { font-size: 10.5px; }
}
@media (max-width: 640px) {
  /* header pills: solid enough that page text never reads through them */
  .nav { --glass: rgba(14, 24, 27, 0.9); }
  .nav.nav--light { --glass: rgba(250, 251, 251, 0.92); }
  /* footer: keep the back-to-top ring clear of the chat button */
  .ft-bottom { padding-bottom: 72px; }
  /* chat launcher a touch smaller on phones */
  .wa-launch { height: 48px; }
  .wa-launch-ico { width: 32px; height: 32px; }
}

/* Footer signature: logo centred, tagline beneath */
.ft-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 24px 0 36px;
}
.ft-word img { width: min(560px, 78vw); }
.ft-word-line { display: block; width: min(220px, 40vw); margin: 0; }
.ft-word-tag { text-align: center; margin: 0; }
@media (max-width: 640px) {
  .ft-word-line { display: block; }
  .ft-word-tag { text-align: center; }
}

/* =========================================================
   Industries rail — pinned; vertical scroll drives it sideways
   ========================================================= */
#industries { overflow: hidden; }
.ind-rail { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.ind-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  will-change: transform;
}
.ic {
  flex: none;
  width: clamp(280px, 25vw, 380px);
  opacity: 0.5;
  transform: scale(0.965);
  transform-origin: 50% 40%;
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.ic.is-active { opacity: 1; transform: none; }
.ic-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-850);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ic-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
  opacity: 0;
  transform: scale(1.18);
  transition: opacity 1s var(--ease-out);
  will-change: transform;
}
.ic-photo.is-on { opacity: 1; }
.ic-media::before,
.ic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ic-media::before { background: #0b7a6b; mix-blend-mode: color; opacity: 0.55; }
.ic-media::after {
  background:
    linear-gradient(to top, rgba(6, 13, 14, 0.92) 0%, rgba(6, 13, 14, 0.25) 45%, rgba(6, 13, 14, 0) 62%),
    radial-gradient(120% 80% at 50% 0%, rgba(6, 13, 14, 0) 40%, rgba(6, 13, 14, 0.5) 100%);
}
.ic-media .pc { transition: transform 0.8s var(--ease-out), opacity 0.6s; }
.ic:not(.is-active) .ic-media .pc { transform: translateY(10px); opacity: 0.6; }
.ic-body { padding: 22px 2px 0; }
.ic-num { color: var(--fg-3); }
.ic.is-active .ic-num { color: var(--gold-400); }
.ic-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 8px 0 10px;
}
.ic-note { margin: 0 0 16px; color: var(--fg-2); font-size: 15.5px; line-height: 1.5; max-width: 36ch; }
.ic-sol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ic-sol li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg);
}
.ic-sol li::before {
  content: "→";
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
  flex: none;
}
.ind-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(26px, 3vw, 40px);
  color: var(--fg-3);
}
.ind-bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); overflow: hidden; }
.ind-bar i { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.ind-progress #ind-count { color: var(--fg); min-width: 7ch; }

/* no-JS / reduced motion: plain swipeable row */
.ind-rail.is-static .ind-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 6px;
}
.ind-rail.is-static .ic { scroll-snap-align: start; opacity: 1; transform: none; }
.ind-rail.is-static .ind-hint { display: none; }

@media (max-width: 860px) {
  .ic { width: min(82vw, 340px); }
  .ic-media { aspect-ratio: 1 / 1; border-radius: 16px; }
  .ic-body { padding-top: 16px; }
  .ic-name { font-size: 28px; margin: 6px 0 8px; }
  .ic-note { font-size: 14.5px; margin-bottom: 12px; }
  .ic-sol li { font-size: 13.5px; padding: 8px 0; }
  .ind-progress { margin-top: 22px; }
}

/* =========================================================
   Light mode — the whole site flips to the kit's light theme.
   Sections that were already light become pure white so the
   page keeps its rhythm. Footer, terminal and chat stay ink.
   ========================================================= */
html[data-theme="light"] {
  --bg: var(--ink-50);
  --bg-deep: var(--ink-100);
  --surface: #ffffff;
  --surface-2: var(--ink-100);
  --border: var(--ink-200);
  --line: rgba(10, 20, 22, 0.1);
  --line-strong: rgba(10, 20, 22, 0.2);
  --fg: var(--ink-900);
  --fg-2: var(--ink-600);
  --fg-3: var(--ink-500);
  --accent: var(--cyan-700);
  --accent-hover: var(--cyan-500);
  --accent-press: var(--cyan-900);
  --on-accent: #ffffff;
  --gold: var(--gold-700);
  color-scheme: light;
}
html[data-theme="light"] .light {
  --bg: #ffffff;
  --surface: var(--ink-50);
  --surface-2: var(--ink-100);
}
html[data-theme="light"] main { background: var(--bg); }
/* dark islands keep their ink look in light mode: footer, menu, terminal-style panels */
html[data-theme="light"] .footer,
html[data-theme="light"] .mobile-menu,
html[data-theme="light"] .scanner-out,
html[data-theme="light"] .est-out,
html[data-theme="light"] .ide,
html[data-theme="light"] .modal-panel {
  --bg: var(--ink-900);
  --bg-deep: var(--ink-950);
  --surface: var(--ink-850);
  --surface-2: var(--ink-800);
  --border: var(--ink-700);
  --line: rgba(242, 245, 244, 0.09);
  --line-strong: rgba(242, 245, 244, 0.18);
  --fg: var(--ink-50);
  --fg-2: var(--ink-300);
  --fg-3: var(--ink-400);
  --accent: var(--cyan-400);
  --on-accent: var(--on-cyan);
  --gold: var(--gold-400);
  color-scheme: dark;
}

/* smooth cross-fade only while switching, never on load */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), fill 0.5s, stroke 0.5s !important;
}

/* theme switch button */
.nav-theme {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--nav-fg);
  cursor: pointer;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-line);
  transition: background 0.5s var(--ease-out), color 0.5s, transform 0.4s var(--ease-out);
}
.nav-theme:hover { transform: rotate(-12deg); }
.nav-theme svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.nav-theme .ic-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
html[data-theme="light"] .nav-theme .ic-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
html[data-theme="light"] .nav-theme .ic-moon { opacity: 1; transform: none; }
html.menu-open .nav-theme { opacity: 0; pointer-events: none; }
/* world clock day-bars in light mode */
html[data-theme="light"] .world-day { background: var(--ink-100); }
html[data-theme="light"] .world-day .sun { background: linear-gradient(90deg, rgba(10, 20, 22, 0.02), rgba(10, 20, 22, 0.08) 50%, rgba(10, 20, 22, 0.02)); }
html[data-theme="light"] .world-day .work { background: rgba(10, 20, 22, 0.4); }
html[data-theme="light"] .world-day .ticks { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(10, 20, 22, 0.06) calc(100% / 24 - 1px) calc(100% / 24)); }
html[data-theme="light"] .world-day .now { background: var(--ink-900); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }

/* Mobile menu is always an ink panel: keep its text and the header pills dark-edition while open */
.mobile-menu { color: var(--fg); }
html.menu-open .nav,
html.menu-open .nav.nav--light {
  --glass: rgba(16, 28, 31, 0.9);
  --glass-line: rgba(242, 245, 244, 0.12);
  --nav-fg: var(--ink-50);
  --nav-fg-2: var(--ink-300);
  --pill: rgba(242, 245, 244, 0.1);
}
html.menu-open .nav.nav--light .logo-img--on-dark { display: block; }
html.menu-open .nav.nav--light .logo-img--on-light { display: none; }

/* SEO headings styled as quiet kickers (slogans stay as the big display line) */
h1.h1-label { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 500; max-width: 60ch; }
.h1-kicker {
  margin: 0 0 18px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--fg-3);
  max-width: 60ch;
}
/* "At a glance" facts beside the FAQ */
.glance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 20px;
  margin: 40px 0 0;
  font-size: 14px;
  max-width: 440px;
  border-top: 1px solid var(--line);
}
.glance dt, .glance dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.glance dt { color: var(--fg-3); }
.glance dd { color: var(--fg); }
