/* Rankode Solutions — site styles
   Layout concept: an "org blueprint" — wide editorial headlines over a faint engineering grid,
   with live system diagrams (integrations, agent runs, release pipeline) as the hero moments. */
:root {
  --bg: #F4F5FA;
  --surface: #FFFFFF;
  --surface-2: #E9ECF5;
  --ink: #0C1222;
  --muted: #586079;
  --line: #D9DEEA;
  --accent: #2F45F0;
  --accent-ink: #FFFFFF;
  --accent-soft: #E1E5FF;
  --signal: #E8930C;
  --signal-soft: #FFF1D9;
  --ok: #12936A;
  --grid: rgba(47, 69, 240, 0.06);
  --shadow: 0 1px 2px rgba(12, 18, 34, .05), 0 12px 32px -12px rgba(12, 18, 34, .18);
  --glow: rgba(47, 69, 240, .28);
  --cta-bg: #0C1222;
  --cta-fg: #F4F5FA;
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .7);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-edge-2: rgba(47, 69, 240, .12);
  --glass-line: rgba(12, 18, 34, .08);
  --glass-shine: rgba(255, 255, 255, .9);
  --amb-1: #6C7BFF; --amb-2: #FFB65C; --amb-3: #5FD3C6; --amb-4: #C08BFF; --amb-op: .34;

  --f-display: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);

  --radius: 14px;
  --max: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070A12; --surface: #0D1220; --surface-2: #141B2D; --ink: #E9EDF8; --muted: #97A0B8;
    --line: #1E2638; --accent: #7486FF; --accent-ink: #070A12; --accent-soft: #171F47;
    --signal: #FFBE55; --signal-soft: #2A2112; --ok: #3FD49B; --grid: rgba(116, 134, 255, 0.07);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7); --glow: rgba(116, 134, 255, .35); --cta-bg: #141C44; --cta-fg: #EEF1FA; --glass: rgba(20, 27, 48, .46); --glass-strong: rgba(22, 30, 54, .66); --glass-edge: rgba(255, 255, 255, .16); --glass-edge-2: rgba(116, 134, 255, .1); --glass-line: rgba(255, 255, 255, .07); --glass-shine: rgba(255, 255, 255, .12); --amb-1: #3B4CFF; --amb-2: #C9741A; --amb-3: #138C80; --amb-4: #7B3FE0; --amb-op: .3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070A12; --surface: #0D1220; --surface-2: #141B2D; --ink: #E9EDF8; --muted: #97A0B8;
  --line: #1E2638; --accent: #7486FF; --accent-ink: #070A12; --accent-soft: #171F47;
  --signal: #FFBE55; --signal-soft: #2A2112; --ok: #3FD49B; --grid: rgba(116, 134, 255, 0.07);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7); --glow: rgba(116, 134, 255, .35); --cta-bg: #141C44; --cta-fg: #EEF1FA; --glass: rgba(20, 27, 48, .46); --glass-strong: rgba(22, 30, 54, .66); --glass-edge: rgba(255, 255, 255, .16); --glass-edge-2: rgba(116, 134, 255, .1); --glass-line: rgba(255, 255, 255, .07); --glass-shine: rgba(255, 255, 255, .12); --amb-1: #3B4CFF; --amb-2: #C9741A; --amb-3: #138C80; --amb-4: #7B3FE0; --amb-op: .3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: var(--step-3); letter-spacing: -0.035em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.band--alt { background: color-mix(in srgb, var(--surface) 35%, transparent); border-block: 1px solid var(--glass-line); }
.stack { display: grid; gap: 16px; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow {
  font: 500 var(--step--1)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--signal) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -10px var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--glow); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn--ghost:hover { border-color: var(--accent); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 1.22rem/1 var(--f-display); letter-spacing: -0.03em; }
.brand-sub { display: block; font: 500 .58rem/1 var(--f-mono); letter-spacing: .26em; color: var(--muted); margin-top: 4px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { text-decoration: none; padding: 9px 13px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-cta { display: none; padding: 11px 18px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding-block: 12px 20px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-menu a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }
@media (min-width: 980px) {
  .nav-links { display: flex; } .nav-cta { display: inline-flex; } .menu-btn, .mobile-menu { display: none !important; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 .line { display: block; }
.status-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-size: .88rem; color: var(--muted);
}
.status-pill b { font: 600 .7rem/1 var(--f-mono); letter-spacing: .08em; background: var(--signal-soft); color: var(--signal); padding: 6px 8px; border-radius: 999px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 .82rem/1.4 var(--f-mono); color: var(--muted); }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }

.blueprint {
  position: relative; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 1 / .86; max-width: 100%; min-width: 0;
}
.blueprint canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.blueprint-bar {
  position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; font: 500 .72rem/1 var(--f-mono); color: var(--muted); letter-spacing: .04em;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); z-index: 2;
}
.blueprint-bar .dots { display: inline-flex; gap: 6px; }
.blueprint-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.blueprint-foot {
  position: absolute; inset: auto 12px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; z-index: 2;
}
.metric { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.metric small { display: block; font: 500 .62rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric strong { font: 600 1.05rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.metric strong.ok { color: var(--ok); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); font: 500 .88rem/1 var(--f-body); color: var(--muted); background: var(--bg);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento services */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; display: grid; gap: 14px; align-content: start; padding: 28px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; overflow: hidden; isolation: isolate;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.tile:hover::after { opacity: 1; }
.tile-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile-icon svg { width: 24px; height: 24px; }
.tile p { color: var(--muted); }
.tile ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tile li { font: 500 .74rem/1 var(--f-mono); padding: 7px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.tile .more { font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; margin-top: 4px; }

/* Agent console */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1.05fr; gap: 64px; } .split--rev > :first-child { order: 2; } }
.split > * { min-width: 0; }
.console {
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 .76rem/1 var(--f-mono); color: var(--muted); }
.console-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.console-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.console-body { padding: 18px; display: grid; gap: 12px; min-height: 380px; align-content: start; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.msg--user { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg--agent { background: var(--surface-2); border-bottom-left-radius: 4px; }
.step { display: flex; gap: 10px; align-items: center; font: 500 .8rem/1.4 var(--f-mono); color: var(--muted); padding-left: 4px; }
.step .tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-size: .7rem; }
.step.is-running .tick { background: transparent; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.console-body > * { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.console-note { padding: 10px 18px; border-top: 1px solid var(--line); font: 500 .7rem/1.4 var(--f-mono); color: var(--muted); }

.feature-list { display: grid; gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.feature-list .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 .8rem/1 var(--f-mono); }
.feature-list strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }
.feature-list p { color: var(--muted); }

/* Process / pipeline */
.pipeline { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: stage; position: relative; }
@media (min-width: 760px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .pipeline { grid-template-columns: repeat(6, 1fr); } }
.stage { position: relative; padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 10px; align-content: start; min-width: 0; }
.band--alt .stage { background: var(--bg); }
.stage-num { font: 600 .74rem/1 var(--f-mono); color: var(--accent); letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; }
.stage-num em { font-style: normal; color: var(--muted); font-weight: 500; }
.stage h3 { font-size: 1.15rem; }
.stage p { color: var(--muted); font-size: .93rem; }
.pipe-rail { height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.pipe-rail i { display: block; height: 100%; width: 30%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), var(--signal)); animation: rail 3.6s ease-in-out infinite; }
@keyframes rail { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* Industries */
.industry-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.industry {
  display: grid; gap: 10px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; align-content: start; transition: border-color .25s, transform .25s; min-width: 0;
}
.industry:hover { border-color: var(--accent); transform: translateY(-3px); }
.industry .tag { font: 500 .7rem/1 var(--f-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.industry p { color: var(--muted); font-size: .94rem; }

/* Proof + placeholders */
.ph {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  border: 1px dashed color-mix(in srgb, var(--signal) 70%, transparent); background: var(--signal-soft); color: var(--signal);
  font: 600 .68rem/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stat .ph { justify-self: start; white-space: normal; }
@media (max-width: 520px) { .stat { padding: 18px; } }
.stat { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; min-width: 0; }
.stat strong { font: 600 var(--step-3)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat strong.is-ph { color: var(--muted); opacity: .55; }
.stat span { color: var(--muted); font-size: .92rem; }
.quotes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { padding: 26px; border-radius: 18px; border: 1px dashed var(--line); background: var(--surface); display: grid; gap: 18px; align-content: space-between; min-width: 0; }
.quote blockquote { margin: 0; font: 500 1.08rem/1.5 var(--f-display); letter-spacing: -0.01em; color: var(--muted); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px dashed var(--line); flex: none; }
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .logo-row { grid-template-columns: repeat(6, 1fr); } }
.logo-slot { height: 64px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; font: 500 .7rem/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background: var(--cta-bg); color: var(--cta-fg); display: grid; gap: 24px; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 65%); filter: blur(10px);
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-18%, 22%) scale(1.15); } }
.cta h2 { max-width: 18ch; }
.cta p { max-width: 56ch; opacity: .78; font-size: var(--step-1); line-height: 1.5; }
.cta .btn--primary { background: var(--cta-fg); color: var(--cta-bg); box-shadow: none; }
.cta .btn--ghost { color: var(--cta-fg); border-color: color-mix(in srgb, var(--cta-fg) 30%, transparent); background: transparent; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 20%, transparent 70%);
}
.page-hero .wrap { position: relative; display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.2rem); max-width: 18ch; }
.crumbs { font: 500 .78rem/1 var(--f-mono); color: var(--muted); display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Services page layout */
.svc-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .svc-layout { grid-template-columns: 240px 1fr; gap: 56px; } }
.svc-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); align-self: start; display: none; }
@media (min-width: 1000px) { .svc-nav { display: block; } }
.svc-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.svc-nav a { display: block; padding: 8px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .93rem; }
.svc-nav a:hover, .svc-nav a.is-active { color: var(--ink); border-left-color: var(--accent); }
.svc-group-label { font: 600 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 18px 14px 8px; }
.svc { display: grid; gap: 20px; padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.svc-head h2 { font-size: var(--step-2); }
.svc-tag { font: 500 .74rem/1 var(--f-mono); color: var(--muted); padding: 7px 10px; border-radius: 8px; background: var(--surface-2); }
.svc > p { color: var(--muted); max-width: 68ch; font-size: 1.05rem; }
.svc-cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .svc-cols { grid-template-columns: 1fr 1fr; } }
.box { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; min-width: 0; }
.box h4 { font: 600 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .96rem; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; background: var(--accent-soft); border: 1.5px solid var(--accent); }

/* Cards (generic) */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p { color: var(--muted); }
.card .kicker { font: 500 .72rem/1 var(--f-mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }

/* Industry detail rows */
.ind-row { display: grid; gap: 20px; padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
@media (min-width: 900px) { .ind-row { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.ind-row > * { min-width: 0; }
.ind-row h2 { font-size: var(--step-2); }
.cloud-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tags span { font: 500 .76rem/1 var(--f-mono); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }

/* Team */
.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.person { padding: 22px; border-radius: 18px; border: 1px dashed var(--line); background: var(--surface); display: grid; gap: 12px; }
.person .avatar { width: 64px; height: 64px; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.contact-grid > * { min-width: 0; }
.form { padding: clamp(22px, 4vw, 36px); border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font: 600 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.pills input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pills label { font: 500 .9rem/1 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .2s; }
.pills input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pills input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .95rem; }
.contact-list { display: grid; gap: 14px; }
.contact-item { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.contact-item small { font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 1.05rem/1.4 var(--f-display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 64px 32px; margin-top: 0; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot-grid h4 { font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink); opacity: .85; }
.foot-grid a:hover { color: var(--accent); opacity: 1; }
.foot-about { display: grid; gap: 16px; align-content: start; }
.foot-about p { color: var(--muted); max-width: 40ch; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 .78rem/1.4 var(--f-mono); color: var(--muted); }

/* Reveal: content is visible at rest; JS only adds a gentle lift as sections arrive */
.reveal { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
.js .reveal.pre { transform: translateY(22px) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal.pre { transform: none; opacity: 1; }
}


/* ---------- v2: motion & compact layouts ---------- */
/* Scroll progress */
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--signal)); }

/* Headline words rise in on load */
.split-words .w { display: inline-block; animation: wordIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); } }
.hero .lede, .hero .btn-row, .hero .status-pill { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both; }
.hero .status-pill { animation-delay: .05s; } .hero .lede { animation-delay: .55s; } .hero .btn-row { animation-delay: .7s; }
.blueprint { animation: floatIn 1.1s cubic-bezier(.2,.8,.2,1) .3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.split-words .w.grad-text, .grad-text { background-size: 200% 100%; animation: wordIn .9s cubic-bezier(.2,.8,.2,1) both, sheen 6s ease-in-out 1.4s infinite; animation-delay: calc(var(--i, 0) * 70ms + 120ms), 1.4s; }
@keyframes sheen { 50% { background-position: 100% 0; } }

/* Aurora behind the hero */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 42vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .32; }
.aurora i:nth-child(1) { background: var(--accent); top: -20%; right: 5%; animation: orb1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: var(--signal); bottom: -30%; right: 30%; opacity: .18; animation: orb2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: color-mix(in srgb, var(--accent) 60%, var(--ok)); top: 10%; left: -15%; opacity: .14; animation: orb1 26s ease-in-out infinite alternate-reverse; }
@keyframes orb1 { to { transform: translate(-12%, 18%) scale(1.2); } }
@keyframes orb2 { to { transform: translate(15%, -20%) scale(.85); } }

/* Tiles: 3D tilt + compact */
.tile { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; padding: 26px; gap: 12px; }
.tile:hover { --ty: -4px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.tile .more { position: absolute; top: 24px; right: 24px; font-size: 1.2rem; color: var(--muted); transition: transform .3s, color .3s; margin: 0; }
.tile:hover .more { color: var(--accent); transform: translate(3px, -3px); }
.tile-icon { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tile:hover .tile-icon, .svc-card:hover .tile-icon, .card:hover .tile-icon { transform: rotate(-8deg) scale(1.08); }

/* Magnetic buttons */
.magnetic { transform: translate(var(--bx, 0), var(--by, 0)); }

/* Pipeline: stages light up in turn */
.pipeline--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important; }
.stage { transition: border-color .4s, background .4s, transform .4s; overflow: hidden; }
.stage::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--signal)); transition: transform 1.4s linear; }
.stage.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-4px); background: var(--surface); }
.stage.is-active::after { transform: scaleX(1); }
.stage.is-done .stage-num { color: var(--ok); }
.stage-num { font-size: .8rem; }

/* Industry pills (home) */
.ind-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: all .3s cubic-bezier(.2,.8,.2,1); }
.ind-pill span { color: var(--muted); transition: transform .3s; }
.ind-pill:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-3px); }
.ind-pill:hover span { color: inherit; transform: translate(2px, -2px); }

/* Industries page cards */
.industry { position: relative; }
.industry .more { position: absolute; top: 20px; right: 20px; color: var(--muted); transition: transform .3s, color .3s; }
.industry:hover .more { color: var(--accent); transform: translate(3px, -3px); }

/* Services grid */
.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.svc-card { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 96px; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; min-width: 0; }
.svc-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.svc-card:target { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.svc-card p { color: var(--muted); }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* Eyebrow line draws in */
.eyebrow::before { transform-origin: 0 50%; animation: drawLine .8s ease .2s both; }
@keyframes drawLine { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none; }
  .tile, .magnetic { transform: none !important; }
}


/* ---------- v3: glass finish ---------- */
/* Ambient colour field behind the whole page, so glass has something to frost */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; width: 55vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: var(--amb-op); will-change: transform; }
.ambient i:nth-child(1) { background: var(--amb-1); top: -25vmax; right: -10vmax; animation: amb1 28s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { background: var(--amb-2); bottom: -30vmax; left: -15vmax; opacity: calc(var(--amb-op) * .7); animation: amb2 34s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { background: var(--amb-3); top: 30%; left: 40%; width: 38vmax; opacity: calc(var(--amb-op) * .55); animation: amb3 40s ease-in-out infinite alternate; }
.ambient i:nth-child(4) { background: var(--amb-4); top: 50%; right: -20vmax; width: 40vmax; opacity: calc(var(--amb-op) * .6); animation: amb1 46s ease-in-out infinite alternate-reverse; }
@keyframes amb1 { to { transform: translate(-18vmax, 22vmax) scale(1.15); } }
@keyframes amb2 { to { transform: translate(24vmax, -16vmax) scale(.9); } }
@keyframes amb3 { 50% { transform: translate(-20vmax, 10vmax) scale(1.2); } to { transform: translate(10vmax, -14vmax); } }
.hero .aurora i { opacity: .22; }

/* Frosted glass surfaces */
.tile, .svc-card, .card, .stat, .stage, .industry, .console, .blueprint, .form, .contact-item,
.faq details, .metric, .status-pill, .ind-pill, .btn--ghost, .person, .box, .logo-slot {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 2px rgba(12,18,34,.04), 0 18px 40px -24px rgba(12,18,34,.25);
}
.blueprint, .console, .form { background: var(--glass-strong); }
.band--alt .stage, .stage { background: var(--glass); }
.stage.is-active { background: var(--glass-strong); }

/* Light-catching gradient edge */
.tile, .svc-card, .card, .stat, .industry, .console, .blueprint, .form { position: relative; }
.tile::before, .svc-card::before, .card::before, .stat::before, .industry::before, .console::before, .blueprint::before, .form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(140deg, var(--glass-edge), transparent 38%, transparent 62%, var(--glass-edge-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Sweeping shine on hover */
.svc-card, .card, .industry, .stat { overflow: hidden; isolation: isolate; }
.tile > .shine, .svc-card::after, .card::after, .industry::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, var(--glass-shine) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.8,.2,1); opacity: .6;
}
.svc-card:hover::after, .card:hover::after, .industry:hover::after { transform: translateX(120%); }

/* Glass header and footer */
.site-header { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.site-header.is-scrolled { border-bottom-color: var(--glass-line); box-shadow: 0 8px 30px -20px rgba(12,18,34,.35); }
.site-footer { background: color-mix(in srgb, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top-color: var(--glass-line); }
.marquee { background: color-mix(in srgb, var(--surface) 40%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--glass-line); }
.mobile-menu { background: color-mix(in srgb, var(--bg) 80%, transparent); }

/* Primary button: glossy */
.btn--primary { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent) 55%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px -10px var(--glow); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-130%); animation: btnShine 4.5s ease-in-out 2s infinite; pointer-events: none; }
@keyframes btnShine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* CTA: deep glass panel with its own glow */
.cta { background: color-mix(in srgb, var(--cta-bg) 88%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 80px -40px var(--glow); }
.cta::after { content: ""; position: absolute; inset: auto auto -50% -10%; width: 60%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--signal) 45%, transparent), transparent 65%); filter: blur(20px); animation: drift 14s ease-in-out infinite alternate-reverse; }
.cta .btn--primary { background: var(--cta-fg); color: var(--cta-bg); }

/* Fields get a glass tint */
.field input, .field select, .field textarea { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.pills label { background: color-mix(in srgb, var(--surface) 50%, transparent); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tile, .svc-card, .card, .stat, .stage, .industry, .console, .blueprint, .form, .contact-item, .faq details, .metric, .person, .box { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .ambient i, .btn--primary::after { animation: none; } }

/* ---------- v4: scroll story ---------- */
.story { position: relative; height: 520vh; }
.story-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); height: calc(100vh - 72px); height: calc(100svh - 72px); display: grid; align-items: center; overflow: hidden; }
.story-grid { display: grid; gap: 20px; width: 100%; grid-template-rows: auto 1fr; height: 100%; padding-block: 16px; }
@media (min-width: 960px) { .story-grid { grid-template-columns: .85fr 1.15fr; grid-template-rows: none; gap: 56px; align-items: center; height: auto; padding-block: 0; } }
.story-text { display: grid; gap: 14px; align-content: center; min-width: 0; }
.story-steps { position: relative; display: grid; }
.story-step { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease; pointer-events: none; }
.story-step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.story-step.is-past { transform: translateY(-24px); }
.story-step h2 { font-size: clamp(1.7rem, 1.2rem + 2.6vw, 3.4rem); letter-spacing: -0.045em; }
.story-step p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 34ch; }
.story-count { font: 500 .8rem/1 var(--f-mono); letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.story-count i { font-style: normal; color: var(--muted); }
.story-out { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--glass-shine); font-weight: 500; font-size: .95rem; }
.story-out b { font: 600 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.story-dots { display: flex; gap: 8px; margin-top: 6px; }
.story-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s, width .4s; }
.story-dots i.is-on { width: 38px; background: linear-gradient(90deg, var(--accent), var(--signal)); }
@media (max-width: 959px) {
  .story-step h2 { font-size: 1.6rem; } .story-step p { font-size: 1rem; } .story-step { gap: 8px; }
  .story-text { gap: 10px; align-content: start; }
}

.story-visual { position: relative; min-width: 0; min-height: 0; border-radius: 24px; border: 1px solid var(--glass-line); background: var(--glass-strong); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 90px -50px var(--glow); display: grid; grid-template-rows: auto 1fr; }
@media (min-width: 960px) { .story-visual { aspect-ratio: 1 / .82; } }
.story-visual::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, var(--glass-edge), transparent 40%, transparent 60%, var(--glass-edge-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.story-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--glass-line); font: 500 .72rem/1 var(--f-mono); color: var(--muted); }
.story-bar .dots { display: inline-flex; gap: 6px; } .story-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.story-stage { position: relative; margin: 14px; min-height: 0; }
.story-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.story-lines line { stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }

/* the morphing chips */
.sc { position: absolute; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; overflow: hidden; will-change: transform, left, top, width, height;
  font: 500 clamp(.6rem, .5rem + .35vw, .82rem)/1.2 var(--f-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -16px rgba(12,18,34,.45); transition: background .5s, border-color .5s, border-radius .5s, color .5s; }
.sc-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sc-ic { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--muted); transition: all .5s; }
/* look 0: messy notes */
[data-look="0"] .sc { background: color-mix(in srgb, var(--signal-soft) 85%, var(--surface)); border-color: color-mix(in srgb, var(--signal) 35%, transparent); color: var(--ink); }
[data-look="0"] .sc-ic { background: var(--signal); }
/* look 1: blueprint nodes */
[data-look="1"] .sc { border-radius: 999px; justify-content: center; background: var(--surface); border-color: var(--accent); color: var(--accent); font-weight: 600; }
[data-look="1"] .sc-ic { background: var(--accent); border-radius: 50%; }
/* look 2/3: app UI */
[data-look="2"] .sc, [data-look="3"] .sc { align-items: flex-start; padding-top: 10px; background: var(--glass-strong); border-color: var(--glass-line); border-radius: 12px; }
[data-look="2"] .sc-ic, [data-look="3"] .sc-ic { background: var(--accent); margin-top: 3px; }
[data-look="3"] .sc { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
[data-look="3"] .sc-ic { background: var(--ok); width: 14px; height: 14px; border-radius: 50%; margin-top: 0; }
[data-look="3"] .sc-ic::after { content: "✓"; display: block; color: var(--surface); font-size: 10px; line-height: 14px; text-align: center; }
/* look 4: live dashboard tiles */
[data-look="4"] .sc { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; background: var(--surface); border-radius: 14px; border-color: var(--line); }
[data-look="4"] .sc-ic { width: 40%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--signal)); }
/* look 5: handover list */
[data-look="5"] .sc { background: var(--glass-strong); border-color: var(--glass-line); border-radius: 10px; }
[data-look="5"] .sc-ic { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); }
[data-look="5"] .sc-ic::after { content: "✓"; display: block; color: var(--surface); font-size: 10px; line-height: 16px; text-align: center; }

.story-hud, .story-live { position: absolute; left: 50%; transform: translate(-50%, 0); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font: 600 .74rem/1 var(--f-mono); letter-spacing: .04em; white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 5; }
.story-hud { bottom: -6px; background: var(--ink); color: var(--bg); }
.story-hud b { color: var(--ok); font-variant-numeric: tabular-nums; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1s ease-in-out infinite; }
.story-live { top: -4px; background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.story-live span { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } }

/* Bot guide */
.bot { position: absolute; z-index: 6; width: clamp(56px, 4vw + 32px, 86px); left: 0; top: 0; pointer-events: none; will-change: transform; }
.bot-inner { position: relative; transform-origin: 50% 70%; will-change: transform; }
.bot-body { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 18px rgba(47,69,240,.35)); overflow: visible; position: relative; z-index: 1; }
.bot-ant { transform-box: view-box; transform-origin: 40px 16px; }
.bot-gaze { transition: transform .25s ease-out; }
/* jet flame: grows with speed */
.bot-jet { position: absolute; left: 50%; top: 82%; width: 34%; height: 60%; transform: translateX(-50%) scaleY(var(--jet, 0)); transform-origin: 50% 0; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: radial-gradient(ellipse at 50% 0%, #fff 0 18%, var(--signal) 38%, color-mix(in srgb, var(--accent) 70%, transparent) 62%, transparent 75%); filter: blur(2px); opacity: calc(var(--jet, 0) * 1.4); animation: flicker .12s steps(2) infinite; }
@keyframes flicker { 50% { filter: blur(3px) brightness(1.25); } }
/* speed trail */
.bot-trail { position: absolute; left: 0; top: 0; width: clamp(56px, 4vw + 32px, 86px); aspect-ratio: 80 / 88; border-radius: 50%; pointer-events: none; z-index: 5;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%); will-change: transform, opacity; }
.bot-antenna { fill: var(--signal); animation: pulse 1.4s ease-in-out infinite; }
.eye { fill: #7CF3D6; transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; transition: transform .4s, height .4s, y .4s; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.bot-eyes { transition: transform .5s ease; }
@keyframes lookAround { 25% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.bot[data-mood="focus"] .eye { height: 7px; y: 44px; }
.bot[data-mood="happy"] .eye { height: 5px; y: 45px; rx: 2.5px; fill: #FFD27A; }
.bot-bubble { position: absolute; bottom: calc(100% + 6px); right: 40%; white-space: nowrap; padding: 8px 12px; border-radius: 14px 14px 4px 14px; font: 500 .78rem/1.2 var(--f-body);
  background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(12,18,34,.5); animation: pop .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(6px); } }
@media (max-width: 959px) { .bot-bubble { font-size: .7rem; padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .story-step { transition: none; filter: none; } .bot { transition: none; } }

/* Scene tint: the story's light changes colour with each step */
.story { --tint: rgb(255,170,70); }
.story-sticky::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 72% 50%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 70%),
              radial-gradient(35% 45% at 15% 60%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 70%);
  transition: background .2s linear; }
.story-visual { box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 100px -40px color-mix(in srgb, var(--tint) 70%, transparent); }
.story-out b, .story-dots i.is-on { background: var(--tint); color: #0c1222; }
.story-count { color: color-mix(in srgb, var(--tint) 70%, var(--ink)); }
.story-sticky { isolation: isolate; }

/* ---------- v5: calm, Apple-like refinement ---------- */
.products { text-align: center; color: var(--muted); font-size: .95rem; letter-spacing: .01em; padding-block: 28px 8px; max-width: 900px; margin: 0 auto; text-wrap: balance; line-height: 2; }
.grad-text, .split-words .w.grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); animation: wordIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.btn--primary::after { content: none; }
.btn--primary { background: var(--accent); box-shadow: 0 8px 24px -12px var(--glow); }
.tile { transform: none; } .tile:hover { transform: translateY(-3px); }
.tile:hover .tile-icon, .svc-card:hover .tile-icon, .card:hover .tile-icon { transform: none; }
.svc-card::after, .card::after, .industry::after { content: none; }
.ambient i { opacity: calc(var(--amb-op) * .55); animation-duration: 60s; }
.hero .aurora { display: none; }
.split-words .w { animation-duration: 1.1s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); } }
/* story: neutral cards, one accent, no mascot */
.story { --tint: var(--accent); }
.story-sticky::before { background: radial-gradient(40% 50% at 72% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.story-visual { box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 90px -50px var(--glow); }
.story-out b, .story-dots i.is-on { background: var(--accent); color: var(--accent-ink); }
.story-count { color: var(--accent); }
[data-look="0"] .sc { background: var(--surface); border-color: var(--line); color: var(--muted); box-shadow: 0 6px 18px -12px rgba(12,18,34,.35); }
[data-look="0"] .sc-ic { background: var(--line); }
[data-look="4"] .sc-ic { background: var(--accent); }
.story-bar { display: grid; grid-template-columns: auto 1fr auto; }
.story-status { justify-self: center; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 500 .74rem/1 var(--f-body); letter-spacing: 0; }
.story-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
#story-label { text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; }
.story-lines line { animation: none; stroke-dasharray: none; opacity: .5; }
.story-hud { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 600px) { #story-label { display: none; } .story-bar { grid-template-columns: auto 1fr; } }

.offer { align-content: start; }
.offer .btn { justify-self: start; margin-top: 6px; }

/* ---------- v6: How we work — auto-playing steps ---------- */
.hw { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .hw { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.hw > * { min-width: 0; }
.hw-steps { display: grid; gap: 4px; }
.hw-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 6px 14px; text-align: left; width: 100%;
  padding: 18px 18px 20px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font: inherit; cursor: pointer;
  transition: background .35s ease; overflow: hidden; }
.hw-step:hover { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.hw-step.is-active { background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 1px 0 var(--glass-shine), 0 18px 40px -28px rgba(12,18,34,.35); }
.hw-num { font: 500 .8rem/1.9 var(--f-mono); color: var(--muted); transition: color .3s; }
.hw-step.is-active .hw-num { color: var(--accent); }
.hw-body { display: grid; gap: 6px; min-width: 0; }
.hw-title { font: 600 1.2rem/1.3 var(--f-display); letter-spacing: -0.02em; color: var(--muted); transition: color .3s; }
.hw-step.is-active .hw-title, .hw-step:hover .hw-title { color: var(--ink); }
.hw-desc, .hw-out { display: grid; grid-template-rows: 0fr; overflow: hidden; color: var(--muted); font-size: .98rem; line-height: 1.5; transition: grid-template-rows .45s ease, opacity .45s ease; opacity: 0; max-height: 0; }
.hw-step.is-active .hw-desc, .hw-step.is-active .hw-out { opacity: 1; max-height: 6em; }
.hw-out { font-size: .9rem; }
.hw-out b { color: var(--ink); font-weight: 600; }
.hw-progress { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--line) 70%, transparent); opacity: 0; transition: opacity .3s; }
.hw-step.is-active .hw-progress { opacity: 1; }
.hw-progress i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.hw-step.is-active.is-playing .hw-progress i { animation: hwFill var(--hw-dur, 6s) linear forwards; }
.hw.is-paused .hw-step.is-active .hw-progress i { animation-play-state: paused; }
@keyframes hwFill { to { transform: scaleX(1); } }

.hw-preview { position: relative; display: grid; border-radius: 24px; border: 1px solid var(--glass-line); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 90px -50px var(--glow); padding: 18px; min-height: 420px; }
@media (min-width: 960px) { .hw-preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); min-height: 460px; } }
.hw-panel { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; gap: 14px; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; min-width: 0; }
.hw-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* deliverable mockups */
.dv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--glass-line); font: 600 .95rem/1.2 var(--f-display); }
.dv-tag { font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.dv-live { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--f-mono); color: var(--ok); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); }
.dv-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 1.6s ease-out infinite; box-shadow: 0 0 0 0 var(--ok); }
.dv-doc { display: grid; gap: 10px; align-content: start; }
.dv-doc h4 { font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.dv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.dv-row > span:first-child:not(.dv-tick) { flex: 1; min-width: 0; }
.dv-row--plain { background: transparent; border: 0; padding: 4px 4px; }
.dv-row--plain > span:not(.dv-tick) { flex: 1; }
.dv-pill { font: 600 .7rem/1 var(--f-mono); padding: 6px 9px; border-radius: 999px; white-space: nowrap; margin-left: auto; }
.dv-pill--warn { background: var(--signal-soft); color: var(--signal); }
.dv-pill--mid { background: var(--accent-soft); color: var(--accent); }
.dv-pill--ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.dv-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }
.dv-tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-size: .72rem; font-weight: 700; }
.dv-row .dv-tick + span { flex: 1; }
.dv-num { font: 500 .78rem/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.dv-ok { color: var(--ok); font-weight: 600; font-size: .9rem; }
.dv-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.dv-bar i { display: block; height: 100%; width: 100%; background: var(--ok); transform-origin: 0 50%; }
.hw-panel.is-active .dv-bar i { animation: hwFill 1.4s cubic-bezier(.2,.8,.2,1) both; }
.dv-bp { position: relative; min-height: 340px; margin: 6px 4%; }
.dv-bp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-bp line { stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .45; }
.dv-node { position: absolute; transform: translate(-50%, -50%); padding: 9px 12px; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--accent); font: 600 .74rem/1 var(--f-mono); white-space: nowrap; box-shadow: 0 8px 20px -14px var(--glow); }
.hw-panel.is-active .dv-node { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.dv-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.dv-col { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 60%, transparent); min-width: 0; }
.dv-col h5 { margin: 0 0 2px; font: 600 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dv-card { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; overflow-wrap: anywhere; }
.dv-card.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.dv-card.is-doing { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.dv-steps { gap: 0; padding: 8px 6px; }
.dv-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 0 14px 4px; font-size: 1rem; }
.dv-step:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 36px; bottom: -8px; width: 2px; background: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.dv-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.dv-step.is-now .dv-dot { background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.dv-file { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.dv-file > span:nth-child(2) { flex: 1; min-width: 0; }
.dv-ficon { width: 22px; height: 26px; border-radius: 4px; flex: none; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 35%, var(--accent-soft))); position: relative; }
.dv-ficon::after { content: ""; position: absolute; right: 0; top: 0; border: 5px solid transparent; border-top-color: var(--surface); border-right-color: var(--surface); }
.dv-type { font: 500 .72rem/1 var(--f-mono); color: var(--muted); }
.hw-panel.is-active .dv-row, .hw-panel.is-active .dv-file, .hw-panel.is-active .dv-step, .hw-panel.is-active .dv-col { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.hw-panel.is-active .dv-doc > :nth-child(2), .hw-panel.is-active .dv-board > :nth-child(2), .hw-panel.is-active .dv-bp > :nth-child(3) { animation-delay: .06s; }
.hw-panel.is-active .dv-doc > :nth-child(3), .hw-panel.is-active .dv-board > :nth-child(3), .hw-panel.is-active .dv-bp > :nth-child(4) { animation-delay: .12s; }
.hw-panel.is-active .dv-doc > :nth-child(4), .hw-panel.is-active .dv-bp > :nth-child(5) { animation-delay: .18s; }
.hw-panel.is-active .dv-doc > :nth-child(5), .hw-panel.is-active .dv-bp > :nth-child(6) { animation-delay: .24s; }
.hw-panel.is-active .dv-doc > :nth-child(6), .hw-panel.is-active .dv-bp > :nth-child(7) { animation-delay: .3s; }
.hw-panel.is-active .dv-doc > :nth-child(n+7), .hw-panel.is-active .dv-bp > :nth-child(n+8) { animation-delay: .36s; }
@media (max-width: 959px) {
  .hw-preview { order: -1; min-height: 360px; }
  .hw-step { padding: 14px; }
  .dv-bp { min-height: 260px; margin: 6px 6%; }
  .dv-node { font-size: .64rem; padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) { .hw-panel { transition: none; } }

.hw-desc, .hw-out { display: block; }
@media (max-width: 959px) { .hw-preview { order: 0; min-height: 0; } }
.dv-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }
.dv-foot b { font: 600 .74rem/1 var(--f-mono); color: var(--accent); white-space: nowrap; }
.dv-stack { display: grid; gap: 12px; align-content: start; }
.dv-card { overflow-wrap: normal; word-break: normal; hyphens: auto; }
@media (max-width: 520px) { .dv-board { gap: 6px; } .dv-col { padding: 7px; } .dv-card { font-size: .74rem; padding: 8px; } .dv-col h5 { font-size: .58rem; } }

/* ---------- v7: brick-red theme ---------- */
:root {
  --bg: #F6F5F4; --surface: #FFFFFF; --surface-2: #EEEBE9; --ink: #1B1514; --muted: #6A605D; --line: #E3DEDB;
  --accent: #A7392B; --accent-ink: #FFFFFF; --accent-soft: #F6E3DF; --signal: #C2851C; --signal-soft: #FBF0DC;
  --grid: rgba(167, 57, 43, .055); --glow: rgba(167, 57, 43, .3);
  --shadow: 0 1px 2px rgba(27, 21, 20, .05), 0 12px 32px -12px rgba(27, 21, 20, .18);
  --cta-bg: #1B1514; --cta-fg: #F6F5F4;
  --glass: rgba(255, 255, 255, .55); --glass-strong: rgba(255, 255, 255, .72); --glass-edge: rgba(255, 255, 255, .9);
  --glass-edge-2: rgba(167, 57, 43, .14); --glass-line: rgba(27, 21, 20, .08); --glass-shine: rgba(255, 255, 255, .9);
  --amb-1: #E07B66; --amb-2: #F1B867; --amb-3: #F3CDBE; --amb-4: #D98C8C; --amb-op: .3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0B0A; --surface: #171211; --surface-2: #211A18; --ink: #F3ECE9; --muted: #A89994; --line: #2E2523;
    --accent: #E2705B; --accent-ink: #1A0B08; --accent-soft: #3A1813; --signal: #E5AE55; --signal-soft: #2E2312;
    --grid: rgba(226, 112, 91, .07); --glow: rgba(226, 112, 91, .32);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7);
    --cta-bg: #2A1411; --cta-fg: #F6EEEB;
    --glass: rgba(32, 24, 22, .5); --glass-strong: rgba(36, 27, 25, .7); --glass-edge: rgba(255, 255, 255, .14);
    --glass-edge-2: rgba(226, 112, 91, .12); --glass-line: rgba(255, 255, 255, .07); --glass-shine: rgba(255, 255, 255, .1);
    --amb-1: #8E2E21; --amb-2: #93570F; --amb-3: #4E2219; --amb-4: #6C2238; --amb-op: .32;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0B0A; --surface: #171211; --surface-2: #211A18; --ink: #F3ECE9; --muted: #A89994; --line: #2E2523;
  --accent: #E2705B; --accent-ink: #1A0B08; --accent-soft: #3A1813; --signal: #E5AE55; --signal-soft: #2E2312;
  --grid: rgba(226, 112, 91, .07); --glow: rgba(226, 112, 91, .32);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7);
  --cta-bg: #2A1411; --cta-fg: #F6EEEB;
  --glass: rgba(32, 24, 22, .5); --glass-strong: rgba(36, 27, 25, .7); --glass-edge: rgba(255, 255, 255, .14);
  --glass-edge-2: rgba(226, 112, 91, .12); --glass-line: rgba(255, 255, 255, .07); --glass-shine: rgba(255, 255, 255, .1);
  --amb-1: #8E2E21; --amb-2: #93570F; --amb-3: #4E2219; --amb-4: #6C2238; --amb-op: .32;
  color-scheme: dark;
}
:root { --mark-dot: #E9A93A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mark-dot: #F2C062; } }
:root[data-theme="dark"] { --mark-dot: #F2C062; }
.brand-mark { width: 36px; height: 36px; }
/* v8: Code Bot logo */
:root { --mark-visor: #1B1514; --mark-code: #F2B04A; --mark-smile: #FFF4E6; --mark-dot: #E9A93A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mark-visor: #1A0B08; --mark-code: #F6C46A; --mark-smile: #FFF1E0; --mark-dot: #F2C062; } }
:root[data-theme="dark"] { --mark-visor: #1A0B08; --mark-code: #F6C46A; --mark-smile: #FFF1E0; --mark-dot: #F2C062; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-weight: 800; letter-spacing: -0.035em; }
.foot-about strong { color: var(--ink); font-family: var(--f-display); font-size: 1.05rem; }

/* v9: animated Code Bot logo */
.rk-eyes{transform-box:fill-box;transform-origin:center}
.rk-ai{transform-box:fill-box;transform-origin:center}
.rk-run,.rk-ai,.rk-glow{opacity:0}
.rk-play .rk-eyes{animation:rk-eyes 6s both}
.rk-play .rk-run{animation:rk-run 6s both}
.rk-play .rk-lines{animation:rk-scroll 6s linear both}
.rk-play .rk-cursor{animation:rk-blink .5s steps(1) infinite}
.rk-play .rk-ai{animation:rk-ai 6s both}
.rk-play .rk-glow{animation:rk-glowk 6s both}
.rk-play .rk-ear{animation:rk-ear 6s both}
.rk-play .rk-ear.rk-r{animation-delay:.15s}
@keyframes rk-eyes{0%,22%{opacity:1;transform:none}26%,80%{opacity:0;transform:scale(.8)}86%,100%{opacity:1;transform:none}}
@keyframes rk-run{0%,24%{opacity:0}28%,56%{opacity:1}60%,100%{opacity:0}}
@keyframes rk-scroll{0%,26%{transform:translateY(0)}58%,100%{transform:translateY(-27px)}}
@keyframes rk-blink{50%{opacity:0}}
@keyframes rk-ai{0%,56%{opacity:0;transform:scale(.2) rotate(-90deg)}62%{opacity:1;transform:scale(1.15) rotate(0)}66%,78%{opacity:1;transform:scale(1) rotate(0)}84%,100%{opacity:0;transform:scale(.4) rotate(45deg)}}
@keyframes rk-glowk{0%,56%,84%,100%{opacity:0}62%,78%{opacity:.55}}
@keyframes rk-ear{0%,30%,100%{opacity:1}36%,44%{opacity:.35}40%,48%{opacity:1}}
@media (prefers-reduced-motion: reduce){.rk-play *{animation:none!important}}

.contact-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* v10: plain section labels (no leading dash) */
.eyebrow::before { content: none !important; display: none !important; }
.eyebrow { gap: 0; }

/* v11: service links */
.more-link { color: var(--accent); font-weight: 600; text-decoration: none; margin-top: 4px; }
.more-link:hover { text-decoration: underline; }

/* v12: services catalogue */
.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 28px; }
.svc-jump { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.svc-jump:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.svc-cat { scroll-margin-top: 80px; }
.svc-cat-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-bottom: 28px; max-width: 820px; }
.svc-cat-head h2 { margin: 6px 0 8px; }
.svc-cat-head p { margin: 0; }
.mini-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.mini { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .25s, transform .25s; min-width: 0; }
.mini:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.mini h3 { font-size: 1.04rem; margin: 0 0 6px; }
.mini p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.5; }
@media (max-width: 600px) { .svc-cat-head { grid-template-columns: 1fr; } }
.band.svc-cat { padding-block: clamp(48px, 6vw, 80px); }
/* v13: developer skills */
.skill-groups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.skill-group { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.skill-group h3 { font-size: 1.02rem; margin: 0 0 14px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips .chip { white-space: normal; }
/* v14: AI architecture stack */
.ai-stack { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.ai-layer { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); position: relative; }
.ai-layer:first-child { border-top: 0; }
.ai-layer:nth-child(3) { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.ai-layer-name strong { display: block; font-size: 1.05rem; }
.ai-layer-name span { color: var(--muted); font-size: .9rem; }
.mini .tile-icon { margin-bottom: 12px; }
.mini-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
@media (max-width: 700px) { .ai-layer { grid-template-columns: 1fr; gap: 12px; } }
/* v15: sample solution */
.sample { display: grid; gap: 24px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.sample-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.sample-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 24px; border-top: 1px solid var(--line); }
.sample-steps li:first-child { border-top: 0; }
.sample-steps h3 { font-size: 1.04rem; margin: 0 0 4px; }
.sample-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.sample-side { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: grid; gap: 12px; }
.sample-side small { font: 500 var(--step--1)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
@media (max-width: 900px) { .sample { grid-template-columns: 1fr; } }
.sample-steps li { align-items: start; } .sample-steps .stage-num { margin-top: 4px; }
