/* ============================================================
   SCAILE v2 draft: style.css
   Layout: dark ink opening and closing, light proof sections between,
   with tickers and a build-week strip as the signature moves.
   Palette: SCAILE red on dark graphite, with neutral light greys.
   ============================================================ */
:root {
  --ink: #1E1F23;
  --ink-2: #27282D;
  --ink-line: #37383E;
  --ink-text: #CFD0D4;
  --ink-muted: #9A9BA2;
  --paper: #FFFFFF;
  --wash: #F4F4F5;
  --line: #E2E2E6;
  --text: #3C3D43;
  --muted: #68696F;
  --hl: #E2302A;
  --hl-soft: #FCE7E6;
  --on-hl: #FFFFFF;
  --go: #1D8A5A;
  --go-soft: #E2F3E9;

  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 2px 4px rgba(18,18,22,.04), 0 18px 40px -16px rgba(18,18,22,.22);
  --hdr: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--hl); color: #fff; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.1em; height: 1.1em; flex: none; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 8.6vw, 6rem); line-height: .98; letter-spacing: -0.045em; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { max-width: 64ch; }
.dark { background: var(--ink); color: var(--ink-text); }
.dark h1, .dark h2, .dark h3 { color: #fff; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--hl); }
.dark .kicker { color: var(--ink-muted); }
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head > div { max-width: 46rem; min-width: 0; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }
.dark .sec-head p { color: var(--ink-text); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: transform .2s var(--ease), background-color .15s, border-color .15s, box-shadow .2s; }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-hl { background: var(--hl); color: var(--on-hl); box-shadow: 0 10px 28px -12px rgba(226,48,42,.7); }
.btn-hl:hover { transform: translateY(-1px); background: #C7251F; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-1px); background: #34353B; }
.btn-line { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-line-ink { border-color: var(--ink); color: var(--ink); }
.btn-line-ink:hover { background: var(--hl-soft); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--hl); padding-bottom: 2px; }
.link .i { transition: transform .2s var(--ease); width: 1em; height: 1em; }
.link:hover .i { transform: translateX(3px); }
.dark .link { color: #fff; }

/* ── Header ───────────────────────────────────────────────── */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); transition: box-shadow .25s; }
.hdr.scrolled { box-shadow: 0 1px 0 var(--ink-line), 0 14px 30px -20px rgba(0,0,0,.6); }
.hdr-row { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav > a, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--ink-text); text-decoration: none; }
.nav > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: #fff; background: rgba(255,255,255,.07); }
.nav-trigger .i { width: .9em; height: .9em; transition: transform .2s; }
.nav-item.open .nav-trigger .i { transform: rotate(180deg); }
.nav-item { position: relative; }
.mega { position: absolute; top: calc(100% + 12px); left: -20px; width: min(760px, 86vw); background: var(--paper); color: var(--text); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); display: grid; grid-template-columns: 220px 1fr; gap: 22px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-intro { background: var(--wash); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mega-intro b { font-family: var(--display); font-size: 1.2rem; color: var(--ink); line-height: 1.15; }
.mega-intro p { font-size: .9rem; color: var(--muted); }
.mega-intro .link { margin-top: auto; align-self: flex-start; font-size: .9rem; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-card { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 12px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.mega-card:hover { background: var(--wash); }
.mega-card .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--wash); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.mega-card:hover .ic { background: var(--hl); border-color: var(--hl); color: #fff; }
.mega-card .ic .i { width: 21px; height: 21px; }
.mega-card b { font-size: .95rem; color: var(--ink); font-weight: 600; }
.mega-card span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.mega-card em { font-style: normal; font-weight: 700; color: var(--go); }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; place-items: center; }
.burger .i { width: 24px; height: 24px; }

.drawer { background: var(--ink); border-top: 1px solid var(--ink-line); max-height: calc(100dvh - var(--hdr)); overflow-y: auto; }
.drawer nav { display: grid; padding-block: 12px 24px; }
.drawer details { border-bottom: 1px solid var(--ink-line); }
.drawer summary, .drawer > nav > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; color: #fff; font-weight: 600; text-decoration: none; list-style: none; cursor: pointer; }
.drawer > nav > a { border-bottom: 1px solid var(--ink-line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .i { transition: transform .2s; }
.drawer details[open] summary .i { transform: rotate(180deg); }
.drawer details a { display: block; padding: 10px 0 10px 14px; color: var(--ink-text); text-decoration: none; }
.drawer details div { padding-bottom: 10px; }
.drawer .btn { margin-top: 20px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 9vw, 120px) 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 112px 36px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 80%); }
.hero::after { content: ''; position: absolute; z-index: -1; width: 900px; height: 900px; left: 50%; top: -520px; transform: translateX(-50%); background: radial-gradient(circle, rgba(226,48,42,.16), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; text-align: left; min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 1px solid var(--ink-line); border-radius: 999px; font-size: .88rem; color: var(--ink-text); background: rgba(255,255,255,.03); }
.hero-badge b { background: var(--hl); color: var(--on-hl); font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.hero h1 { margin-top: 26px; max-width: none; font-size: clamp(2.3rem, 4.3vw, 4.1rem); }
.hero h1 .quoted { position: relative; color: var(--ink-muted); white-space: nowrap; }
.hero h1 .quoted::after { content: ''; position: absolute; left: -1.5%; right: -1.5%; top: 54%; height: .07em; z-index: 1; border-radius: 99px; background: var(--hl); transform-origin: left; transform: scaleX(1); }
.hero h1 .ship { display: block; color: #fff; }
.hero-sub { margin-top: 26px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--ink-text); max-width: 46rem; }
.hero .cta-row { margin-top: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--ink-text); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { color: var(--hl); }

.built { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--ink-line); padding-block: 26px 30px; }
.built-label { text-align: center; margin-inline: auto; font-size: .84rem; color: var(--ink-muted); margin-bottom: 18px; }

/* Hero metaphor: aerial exhibit. Tanker with a wide turning circle, SCAILE speedboat with a tight one. */
.hero-art { min-width: 0; margin: 0; }
.scene-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ink-line); background: #1A1B1F; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.boat-scene { width: 100%; height: auto; display: block; }
.boat-scene .lbl-k { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .16em; fill: #8E8F96; }
.boat-scene .lbl-hl { fill: #F2524B; }
.boat-scene .lbl-v { font-family: var(--display); font-size: 16px; font-weight: 700; fill: #ECECEF; letter-spacing: -.01em; }
.hero-art figcaption { margin-top: 14px; font-size: .9rem; color: var(--ink-muted); }
.hero-art figcaption b { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .boat { animation: carve 3.6s ease-in-out infinite; }
  .spray { animation: spray .9s ease-in-out infinite alternate; }
  .foam { stroke-dasharray: 22 12; animation: foam 1.2s linear infinite; }
  .arms { animation: arms 2.4s ease-in-out infinite alternate; }
  .ripples { animation: ripple 9s linear infinite; }
  .tanker { animation: tanker 40s linear infinite alternate; }
  .arc-tight { animation: spin 26s linear infinite; transform-origin: 206px 364px; }
}
@keyframes carve { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-2.2deg) translateY(-1.5px); } }
@keyframes spray { to { opacity: .45; } }
@keyframes foam { to { stroke-dashoffset: -34; } }
@keyframes arms { to { opacity: .7; } }
@keyframes ripple { to { transform: translateX(56px); } }
@keyframes tanker { to { transform: translateX(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tickers */
.ticker { --dur: 38s; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick var(--dur) linear infinite; }
.ticker-set { display: flex; gap: 14px; padding-right: 14px; }
.ticker.rev .ticker-track { animation-direction: reverse; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker[data-fit] .ticker-set { gap: 0; padding-right: 0; }
.ticker[data-fit] .stack-chip { padding-inline: 0 var(--gap, 56px); }
.stack-chip { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #ECECEF; padding: 6px 18px; white-space: nowrap; opacity: .85; }
.stack-chip span { color: var(--hl); margin-right: 18px; }

/* ── Proof ────────────────────────────────────────────────── */
/* Client band: label left, three logos sharing the remaining width evenly */
#proof { padding-top: clamp(36px, 5vw, 64px); }
.clients { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; align-items: center; gap: 20px clamp(28px, 4vw, 56px); padding: clamp(20px, 2.4vw, 28px) clamp(20px, 3vw, 36px); margin-bottom: clamp(36px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.clients-head { display: grid; gap: 8px; }
.clients-head p { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4; max-width: 24ch; }
.client-logos { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.client-logos li { display: flex; align-items: center; justify-content: center; min-height: 72px; padding-inline: 12px; }
.client-logos li + li { border-left: 1px solid var(--line); }
.client-logos img { max-width: 100%; object-fit: contain; }
.client-logos a { display: block; transition: transform .25s var(--ease), opacity .2s; }
.client-logos a:hover { transform: translateY(-2px); }
.client-logos img { width: auto; height: 52px; }
.client-logos img.lg-mm { height: 30px; }
.client-logos img.lg-an { height: 66px; }
.proof { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; }
.proof-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; border-radius: var(--r-lg); background: var(--wash); min-width: 0; }
.proof-card.feature { background: var(--ink); color: var(--ink-text); }
.metric { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.feature .metric { color: var(--hl); }
.metric-label { font-weight: 600; color: var(--ink); line-height: 1.35; }
.feature .metric-label { color: #fff; }
.proof-card blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--ink-text); border-left: 3px solid var(--hl); padding-left: 16px; }
.proof-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; font-size: .9rem; }
.who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--hl); color: var(--on-hl); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; flex: none; }
.who b { display: block; color: #fff; font-weight: 600; }
.who span { color: var(--ink-muted); }
.proof-card p.out { color: var(--text); font-size: .98rem; }
.proof-card .link { margin-top: auto; align-self: flex-start; font-size: .94rem; }

/* ── SMB ──────────────────────────────────────────────────── */
.smb { background: var(--wash); padding-top: clamp(64px, 8vw, 104px); }
.smb-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.smb-head h2 { margin-top: 14px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.smb-head p { margin-top: 18px; font-size: 1.12rem; color: var(--muted); }
.smb-head .btn { margin-top: 28px; }
.smb-list { display: grid; gap: 14px; counter-reset: smb; }
.smb-list li { position: relative; display: grid; gap: 6px; padding: 22px 24px 22px 76px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, transform .3s var(--ease); }
.smb-list li:hover { border-color: var(--hl); transform: translateX(4px); }
.smb-list li::before { content: ''; position: absolute; left: 24px; top: 24px; width: 32px; height: 32px; border-radius: 10px; background: var(--hl-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23E2302A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 20px; background-repeat: no-repeat; background-position: center; }
.smb-list b { color: var(--ink); font-size: 1.08rem; }
.smb-list p { color: var(--muted); font-size: .97rem; }

/* Delivery-days badge on project cards */
.deliv { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.deliv .i { width: 14px; height: 14px; color: var(--hl); }
.deliv b { font-variant-numeric: tabular-nums; }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.case.big .deliv, .proof-card.feature .deliv { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.proof-card .deliv { align-self: flex-start; }

/* ── Capability tickers ───────────────────────────────────── */
.caps { padding-block: clamp(36px, 5vw, 56px); background: var(--wash); border-block: 1px solid var(--line); display: grid; gap: 14px; }
.cap-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--ink); white-space: nowrap; font-size: .98rem; }
.cap-chip::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--hl); box-shadow: 0 0 0 3px var(--hl-soft); }
.caps .ticker { --dur: 60s; }

/* ── Industries ───────────────────────────────────────────── */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s, background-color .3s; min-width: 0; }
.ind::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(226,48,42,.14), transparent 65%); opacity: 0; transition: opacity .35s; }
.ind:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ink); }
.ind:hover::after { opacity: 1; }
.ind-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ind .ic { position: relative; width: 56px; height: 56px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.ind .ic::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--hl); border: 3px solid var(--paper); transition: transform .3s var(--ease); }
.ind .ic .i { width: 28px; height: 28px; }
.ind .num { font-family: var(--display); font-weight: 700; font-size: .95rem; color: #B5B6BC; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ind:hover .ic { background: var(--hl); border-color: var(--hl); color: #fff; }
.ind:hover .ic::after { transform: scale(0); }
.ind:hover .num { color: var(--hl); }
.ind h3 { font-size: 1.45rem; margin-top: 10px; }
.ind p { font-size: .97rem; color: var(--muted); }
.ind ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ind li { font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--wash); border-radius: 999px; padding: 4px 10px; }
.ind .link { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }

/* ── Operating model ──────────────────────────────────────── */
.model { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.model-points { display: grid; gap: 26px; margin-top: 36px; }
.model-points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.model-points .ic { position: relative; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--ink-line); color: #fff; display: grid; place-items: center; }
.model-points .ic::after { content: ''; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--hl); border: 2px solid var(--ink); }
.model-points .ic .i { width: 24px; height: 24px; }
.model-points b { display: block; color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.model-points p { color: var(--ink-text); font-size: .98rem; }

.week { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.week-head b { font-family: var(--display); font-size: 1.35rem; color: #fff; }
.week-head span { font-size: .88rem; color: var(--ink-muted); }
.days { position: relative; display: grid; grid-template-columns: 1fr 1.45fr 1fr 1fr; gap: 10px; }
.day { position: relative; z-index: 1; border-radius: var(--r); border: 1px solid var(--ink-line); background: var(--ink); padding: 16px 14px 18px; min-height: 196px; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, background-color .3s; min-width: 0; }
.day small { font-size: .78rem; font-weight: 600; color: var(--ink-muted); }
.day b { font-family: var(--display); font-size: 1.15rem; color: #fff; line-height: 1.15; }
.day p { font-size: .84rem; color: var(--ink-text); line-height: 1.45; }
.day .tag { margin-top: auto; align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink-text); }
.day.on { border-color: var(--hl); background: #2E2526; }
.day.on .tag { background: var(--hl); color: var(--on-hl); }

.week-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--ink-muted); }
.golive { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.golive-h { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.golive-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.golive-grid div { display: grid; gap: 2px; min-width: 0; }
.golive-grid b { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.golive-grid small { font-size: .5em; font-weight: 700; color: var(--hl); letter-spacing: 0; }
.golive-grid span { font-size: .84rem; color: var(--ink-text); }
.progress { margin-top: 18px; height: 6px; border-radius: 99px; background: var(--ink-line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 20%; background: var(--hl); border-radius: 99px; transition: width .6s var(--ease); }

/* ── Work grid ────────────────────────────────────────────── */
.work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.case { position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; min-width: 0; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFCFD4; }
.case.half { grid-column: span 3; }
.case.big { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: var(--ink-text); min-height: 360px; }
.case.big h3, .case.big .metric, .case.big .link { color: #fff; }
.case.big .metric { color: var(--hl); }
.case .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--ink); }
.case.big .tag { background: rgba(255,255,255,.08); color: #fff; }
.case .metric { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-top: 10px; }
.case h3 { font-size: 1.25rem; }
.case p { font-size: .96rem; color: var(--muted); }
.case.big p { color: var(--ink-text); }
.case .link { margin-top: auto; align-self: flex-start; font-size: .94rem; }

/* ── Team ─────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--wash); min-width: 0; }
.member .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--hl); display: grid; place-items: center; }
.member .ic .i { width: 24px; height: 24px; }
.member ul { display: grid; gap: 8px; }
.member li { position: relative; padding-left: 18px; font-size: .96rem; }
.member li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.backed { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.backed p { color: var(--muted); }
.backed b { color: var(--ink); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq { min-width: 0; }
.faq summary::after { content: '+'; flex: none; width: 1em; height: 1em; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); }

/* ── Closing ──────────────────────────────────────────────── */
.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.closing::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 112px 36px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 30%, transparent 80%); }
.closing h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 14ch; margin-inline: auto; }
.closing p { margin: 20px auto 0; font-size: 1.15rem; color: var(--ink-text); }
.closing .cta-row { justify-content: center; margin-top: 34px; }

/* ── Footer ───────────────────────────────────────────────── */
.foot { background: #161719; color: var(--ink-muted); padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.foot-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.foot-brand p { max-width: 30ch; }
.foot h4 { font-family: var(--body); font-size: .86rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }


/* Footer bottom bar: copyright | legal links | Ascent logo */
.foot-legal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #2E2F35; font-size: .86rem; line-height: 1.4; }
.foot-copy { justify-self: start; max-width: none; white-space: nowrap; }
.foot-btn { color: inherit; font: inherit; text-align: left; padding: 0; }
.foot-btn:hover { color: #fff; }
.foot-links { display: flex; align-items: center; justify-content: center; }
.foot-links a { position: relative; padding: 6px 0; color: var(--ink-muted); }
.foot-links a + a { margin-left: 28px; }
.foot-links a + a::before { content: ''; position: absolute; left: -15px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #4B4C53; transform: translateY(-50%); }
.foot-links a:hover { color: #fff; }
/* Ascent logo: transparent, 32px tall, width follows the artwork. The supplied SVG is dark navy,
   so it is drawn white for the dark footer (vector, so it stays sharp). */
.powered { justify-self: end; display: inline-flex; align-items: center; line-height: 0; opacity: .85; transition: opacity .2s; }
.powered:hover, .powered:focus-visible { opacity: 1; }
.powered img { display: block; height: 32px; width: auto; max-width: none; filter: brightness(0) invert(1); }

/* ── Consultation modal (front-end draft) ─────────────────── */
.modal { border: 0; padding: 0; margin: auto; width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 16px); overflow: hidden; border-radius: var(--r-lg); background: var(--paper); color: var(--text); box-shadow: 0 30px 80px rgba(12,12,15,.45); }
.modal::backdrop { background: rgba(12,12,15,.6); backdrop-filter: blur(4px); }
.modal-in { position: relative; padding: 26px 28px 22px; }
.modal h2 { font-size: 1.6rem; padding-right: 44px; }
.modal-sub { margin: 6px 0 18px; color: var(--muted); font-size: .95rem; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.modal-x:hover { background: var(--wash); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: flex; flex-direction: column; justify-content: center; height: 54px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: text; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.fld.full { grid-column: 1 / -1; height: 76px; justify-content: flex-start; }
.fld span { font-size: .72rem; font-weight: 600; color: var(--text); }
.fld span i { font-style: normal; font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { font: inherit; font-size: 16px; line-height: 22px; color: var(--ink); border: 0; outline: none; background: transparent; width: 100%; resize: none; }
.fld:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(226,48,42,.22); }
.fld.bad { border-color: #B93A33; }
.mfoot { display: flex; align-items: center; gap: 14px 18px; margin-top: 14px; }
.consent { flex: 1; display: flex; gap: 10px; font-size: .84rem; color: var(--text); line-height: 1.4; }
.consent input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin-top: 1px; }
.consent.bad { color: #B93A33; }
.mstatus { min-height: 1.3em; margin-top: 8px; font-size: .84rem; color: #B93A33; }
.done { text-align: left; padding: 6px 0; }
.done .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--hl); color: var(--on-hl); display: grid; place-items: center; margin-bottom: 14px; }
.done h3 { font-size: 1.4rem; }
.done p { margin: 8px 0 18px; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .case.big .metric { font-size: clamp(2.2rem, 3.4vw, 3rem); }
  .inds { grid-template-columns: repeat(2, 1fr); }
  .ind { min-height: 300px; }
  .model { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid, .smb-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; justify-self: center; width: 100%; }
  .nav, .hdr-cta .btn { display: none; }
  .burger { display: grid; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof-card.feature { grid-column: 1 / -1; }
  .work { grid-template-columns: 1fr 1fr; }
  .case, .case.big, .case.half { grid-column: span 1; }
  .case.big { grid-column: 1 / -1; min-height: 0; }
  .team { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .days { grid-template-columns: 1fr 1fr; }
  .day { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .foot-legal { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; margin-top: 40px; padding-top: 28px; }
  .foot-copy, .powered { justify-self: center; }
  .foot-copy { white-space: normal; }
  .foot-links { order: 1; }
  .foot-copy { order: 2; }
  .powered { order: 3; margin-top: 6px; }
  .proof, .work, .inds { grid-template-columns: 1fr; }
  .ind { min-height: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .fld.full { height: 64px; }
  .mfoot { flex-direction: column; align-items: stretch; }
  .modal { width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 100dvh; }
  .modal-in { padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero .cta-row .btn { width: 100%; }
  .hero .cta-row { width: 100%; }
  .smb-list li { padding: 18px 18px 18px 64px; }
  .smb-list li::before { left: 18px; top: 20px; }
  h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero h1 .quoted { white-space: normal; text-decoration: line-through var(--hl) .07em; }
  .hero h1 .quoted::after { display: none; }
  .stack-chip { font-size: 1rem; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .modal-sub { display: none; }
  .fld { height: 50px; }
  .fld.full { height: 50px; }
  .fld textarea { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track [aria-hidden="true"] { display: none; }
  *, *::before, *::after { transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .quoted::after { animation: strike .7s .5s var(--ease) both; }
  @keyframes strike { from { transform: scaleX(0); } }
}
@media (max-width: 600px) {
  .client-logos li { min-height: 56px; padding-inline: 8px; }
  .client-logos img { height: 34px; }
  .client-logos img.lg-mm { height: 18px; }
  .client-logos img.lg-an { height: 44px; }
}

/* ════════════════════════════════════════════════════════════
   Inner pages
   ════════════════════════════════════════════════════════════ */
.nav > a.active, .nav-trigger.active { color: #fff; background: rgba(255,255,255,.07); }
.muted { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }
.sec.wash { background: var(--wash); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 112px 36px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 30%, transparent 80%); }
.page-hero::after { content: ''; position: absolute; z-index: -1; width: 760px; height: 760px; right: -220px; top: -420px; background: radial-gradient(circle, rgba(226,48,42,.18), transparent 62%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-muted); margin-bottom: clamp(28px, 4vw, 44px); }
.crumbs a { text-decoration: none; color: var(--ink-text); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--ink-muted); }
.page-hero h1 { margin-top: 16px; max-width: 18ch; font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.case-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; }
.page-hero .lede { margin-top: 22px; font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.6; color: var(--ink-text); max-width: 60ch; }
.page-hero .cta-row { margin-top: 30px; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-meta .deliv { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; font-size: .86rem; padding: 7px 14px; }
.built-on { font-size: .9rem; color: var(--ink-text); }
.built-on a, .built-on b { color: #fff; font-weight: 600; }
.built-on a { text-decoration: none; border-bottom: 2px solid var(--hl); }
.logo-plate { display: inline-flex; align-items: center; justify-content: center; height: 76px; padding: 10px 18px; background: #fff; border-radius: 14px; }
.logo-plate img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }
.logo-plate img.lg-millennium-mams { height: 30px; }
.logo-plate.sm { align-self: flex-start; height: 52px; padding: 8px 14px; border-radius: 12px; margin-top: 6px; }
.logo-plate.sm img.lg-millennium-mams { height: 22px; }

/* Go-live band (hero) */
.golive-band { margin-top: 36px; max-width: 640px; padding-top: 22px; border-top: 1px solid var(--ink-line); }
.golive-row { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.golive-row a { display: grid; gap: 4px; text-decoration: none; padding: 14px 16px; border: 1px solid var(--ink-line); border-radius: var(--r); background: rgba(255,255,255,.03); transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
.golive-row a:hover { border-color: var(--hl); transform: translateY(-2px); }
.golive-row b { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.golive-row small { font-size: .5em; font-weight: 700; color: var(--hl); letter-spacing: 0; }
.golive-row span { font-size: .84rem; color: var(--ink-text); }

/* Stats row */
.stats-sec { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { display: grid; gap: 8px; align-content: start; padding: 24px 26px; border-radius: var(--r-lg); background: var(--wash); min-width: 0; }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: .95; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat:first-child b { color: var(--hl); }
.stat span { color: var(--text); font-weight: 500; line-height: 1.4; }
.stat-row.hl .stat { grid-template-columns: 28px 1fr; align-items: center; gap: 12px; }
.stat-row.hl .i { width: 26px; height: 26px; color: var(--hl); }
.stat-row.hl span { font-weight: 600; color: var(--ink); }

/* Numbered cards (pains, challenge, principles) */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { position: relative; display: grid; gap: 8px; padding: 26px 26px 26px 84px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); min-width: 0; }
.pain-n { position: absolute; left: 26px; top: 24px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--hl); letter-spacing: -.02em; }
.pain b { color: var(--ink); font-size: 1.1rem; }
.pain p { color: var(--muted); font-size: .98rem; }
.wash .pain { border-color: transparent; }

/* Split layout + checklists */
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { margin-top: 14px; }
.build-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.build-list.one { grid-template-columns: 1fr; }
.build-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border-radius: var(--r); font-weight: 600; color: var(--ink); line-height: 1.4; }
.build-list .i { width: 20px; height: 20px; color: var(--hl); margin-top: 1px; }

/* Solutions overview */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sol-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; min-width: 0; }
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.sol-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 8px; }
.sol-card p { color: var(--muted); }
.sol-card ul { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-card li { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--wash); border-radius: 999px; padding: 5px 11px; }
.sol-card .link { margin-top: auto; align-self: flex-start; }
.sol-card .ic { position: relative; width: 56px; height: 56px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.sol-card .ic::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--hl); border: 3px solid var(--paper); }
.sol-card .ic .i { width: 28px; height: 28px; }
.sol-card .num { font-family: var(--display); font-weight: 700; color: #B5B6BC; }
.sol-card:hover .ic { background: var(--hl); border-color: var(--hl); color: #fff; }

/* Accelerator cards */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case.acc { grid-column: auto; }
.acc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--wash); border: 1px solid var(--line); color: var(--ink); margin-top: 8px; }
.wash .case.acc .acc-ic { background: var(--paper); }
.acc-ic .i { width: 24px; height: 24px; }
.case.acc:hover .acc-ic { background: var(--hl); border-color: var(--hl); color: #fff; }

/* Related work on solution pages */
.rel-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.rel-grid.n1 { grid-template-columns: minmax(0, 640px); }
.rel-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.rel-grid .case, .work.three .case { grid-column: auto; }
.work.three { grid-template-columns: repeat(3, 1fr); }

/* Approach (dark) */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.approach > div { padding: 26px; border: 1px solid var(--ink-line); border-radius: var(--r-lg); background: var(--ink-2); display: grid; gap: 10px; align-content: start; }
.approach p { color: var(--ink-text); font-size: .98rem; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--hl); }
.approach.light > div { background: var(--paper); border-color: var(--line); }
.approach.light p { color: var(--muted); }

/* What we built */
.built-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.built-grid.n1 { grid-template-columns: minmax(0, 720px); }
.built-grid.n2 { grid-template-columns: repeat(2, 1fr); }
.built-col { padding: 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.wash .built-col { border-color: transparent; }
.built-col h3 { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--hl); display: inline-block; }
.built-col ul { display: grid; gap: 12px; }
.built-col li { position: relative; padding-left: 18px; font-size: .97rem; color: var(--text); line-height: 1.5; }
.built-col li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }

.notes { margin-top: 16px; display: grid; gap: 12px; }
.note-card { padding: 20px 22px; border-radius: var(--r); background: var(--paper); display: grid; gap: 8px; }
.note-card p { color: var(--text); font-size: .97rem; }
.note-card b { color: var(--ink); }
.note-card .link { justify-self: start; font-size: .92rem; }

/* Testimonial */
.big-quote { margin: 0; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; }
.big-quote::before { content: '\201C'; position: absolute; right: 32px; top: 8px; font-family: Georgia, serif; font-size: 9rem; line-height: 1; color: var(--hl); opacity: .9; }
.big-quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--hl); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; }
.big-quote blockquote { display: grid; gap: 16px; max-width: 62rem; }
.big-quote blockquote p:first-child { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; color: #fff; font-weight: 500; letter-spacing: -.01em; max-width: none; }
.big-quote blockquote p + p { font-size: 1.02rem; max-width: 70ch; }
.big-quote figcaption { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.big-quote figcaption b { display: block; color: #fff; }
.big-quote figcaption span span { color: var(--ink-muted); font-size: .9rem; }

/* Next case */
.next-sec { padding-block: 0 clamp(64px, 8vw, 104px); }
.next-case { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.next-case:hover { border-color: var(--ink); transform: translateX(4px); }
.next-case span { font-size: .86rem; font-weight: 600; color: var(--muted); }
.next-case b { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink); letter-spacing: -.02em; }
.next-case .i { margin-left: auto; width: 28px; height: 28px; color: var(--hl); }

/* How we work: steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; display: grid; gap: 14px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.step::after { content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--hl); transform-origin: left; transform: scaleX(.25); }
.step .step-n { font-size: 2rem; }
.step-time { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--wash); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.step-time .i { width: 14px; height: 14px; color: var(--hl); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }
#top .sec.dark .built { margin-top: clamp(48px, 7vw, 80px); }

/* About */
.member.on-wash { background: var(--paper); }

/* FAQ page */
.faq-page { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-toc { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 4px; }
.faq-toc p { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.faq-toc a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-left: 2px solid var(--line); }
.faq-toc a:hover { border-color: var(--hl); background: var(--wash); }
.faq-toc .btn { margin-top: 20px; justify-self: start; }
.faq-groups { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.faq-group h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; scroll-margin-top: calc(var(--hdr) + 20px); }
.faq-group { scroll-margin-top: calc(var(--hdr) + 20px); }

/* Legal prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose p { color: var(--text); }
.prose a { color: var(--ink); text-decoration-color: var(--hl); text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .work.three, .rel-grid.n3 { grid-template-columns: 1fr 1fr; }
  .work.three .case:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .split, .faq-page { grid-template-columns: 1fr; }
  .faq-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-toc p { width: 100%; margin: 0; }
  .faq-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
  .faq-toc .btn { display: none; }
  .acc-grid, .approach, .built-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .sol-grid, .pains, .rel-grid, .rel-grid.n3, .work.three, .acc-grid, .approach, .built-grid, .built-grid.n2, .stat-row, .steps { grid-template-columns: 1fr; }
  .build-list { grid-template-columns: 1fr; }
  .pain { padding: 22px 20px 22px 70px; }
  .pain-n { left: 20px; top: 20px; font-size: 1.3rem; }
  .stat { padding: 20px 22px; }
}
@media (max-width: 600px) {
  .golive-row { gap: 8px; }
  .golive-row a { padding: 12px; }
  .golive-row span { font-size: .76rem; }
  .next-case { padding: 22px; }
  .logo-plate { height: 56px; }
}

@media (max-width: 960px) {
  .clients { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .clients-head { justify-items: center; }
  .clients-head p { max-width: none; }
  .client-logos { width: 100%; }
}

/* ── Mobile carousels (classes added by main.js) ───────────── */
.car-dots { display: none; }
@media (max-width: 720px) {
  .car { display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .car::-webkit-scrollbar { display: none; }
  .car > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; grid-column: auto !important; }
  .car > li:hover, .car > a:hover { transform: none; }
  .car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .car-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: #D4D4D9; transition: width .3s var(--ease), background-color .3s; }
  .car-dots button.on { width: 26px; background: var(--hl); }
  .dark .car-dots button { background: var(--ink-line); }
  .dark .car-dots button.on { background: var(--hl); }
  .smb-list.car, .pains.car { counter-reset: none; }
  .steps.car .step { padding: 22px; }
  .case.big { min-height: 0; }
}
@media (max-width: 720px) {
  .build-list:not(.one) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .build-list:not(.one) li { padding: 12px; font-size: .86rem; gap: 8px; }
  .build-list:not(.one) .i { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
  .client-logos { grid-template-columns: 1fr 1fr; }
  .client-logos li { min-height: 64px; }
  .client-logos li:nth-child(2) { order: 3; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
  .client-logos li:nth-child(3) { order: 2; }
  .client-logos img { height: 42px; }
  .client-logos img.lg-mm { height: 26px; }
  .client-logos img.lg-an { height: 50px; }
}

/* Spam trap field in the consultation form (hidden from people) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Parent menu items (Solutions, Work) are not links */
@media (hover: hover) and (pointer: fine) { .nav-trigger { cursor: default; } }

/* ════════════════════════════════════════════════════════════
   LIGHT THEME: white and light-grey surfaces throughout.
   Graphite is kept for text and a few accents; SCAILE red for actions.
   (".dark" sections are now light-grey bands.)
   ════════════════════════════════════════════════════════════ */
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.028em; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
.dark { background: var(--wash); color: var(--text); }
.dark h1, .dark h2, .dark h3 { color: var(--ink); }
.dark .kicker { color: var(--muted); }
.dark .sec-head p { color: var(--muted); }
.dark .link { color: var(--ink); }
.btn-line { border-color: rgba(30,31,35,.22); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }

/* Header */
.hdr { background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr.scrolled { box-shadow: 0 12px 30px -24px rgba(18,18,22,.35); }
.nav > a, .nav-trigger { color: var(--text); }
.nav > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--ink); background: var(--wash); }
.nav > a.active, .nav-trigger.active { color: var(--ink); background: var(--wash); box-shadow: inset 0 -2px 0 var(--hl); }
.mega { border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(18,18,22,.28); }
.burger { color: var(--ink); }
.drawer { background: #fff; border-top: 1px solid var(--line); }
.drawer details, .drawer > nav > a { border-color: var(--line); }
.drawer summary, .drawer > nav > a { color: var(--ink); }
.drawer details a { color: var(--text); }

/* Home hero */
.hero { background: #fff; }
.hero::before { background-image: linear-gradient(rgba(30,31,35,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,31,35,.05) 1px, transparent 1px); }
.hero::after { background: radial-gradient(circle, rgba(226,48,42,.10), transparent 60%); }
.hero-badge { border-color: var(--line); color: var(--text); background: #fff; box-shadow: 0 2px 8px -4px rgba(18,18,22,.12); }
.hero h1 .quoted { color: #A3A4AA; }
.hero h1 .ship { color: var(--ink); }
.hero-sub, .trust { color: var(--text); }
.built { border-top-color: var(--line); background: var(--wash); }
.built-label { color: var(--muted); }
.stack-chip { color: var(--ink); opacity: 1; }
.scene-frame { border-color: var(--line); background: #F2F3F4; box-shadow: 0 30px 60px -36px rgba(18,18,22,.35); }
.boat-scene .lbl-k { fill: #68696F; }
.boat-scene .lbl-v { fill: var(--ink); }
.hero-art figcaption { color: var(--muted); }
.hero-art figcaption b { color: var(--ink); }

/* Proof and work cards */
.proof-card.feature { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature .metric-label { color: var(--ink); }
.proof-card blockquote { color: var(--text); }
.who b { color: var(--ink); }
.who span { color: var(--muted); }
.case.big { background: var(--wash); border-color: var(--wash); color: var(--text); }
.case.big:hover { border-color: #CFCFD4; }
.case.big h3, .case.big .link { color: var(--ink); }
.case.big p { color: var(--muted); }
.case.big .tag { background: #fff; color: var(--ink); }
.case.big .deliv, .proof-card.feature .deliv, .hero-meta .deliv { background: #fff; border-color: var(--line); color: var(--ink); }
.wash .case.big { background: #fff; border-color: #fff; }

/* How we work points */
.model-points .ic { background: #fff; border-color: var(--line); color: var(--ink); }
.model-points .ic::after { border-color: var(--wash); }
.model-points b { color: var(--ink); }
.model-points p { color: var(--muted); }
.model-points.row { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 0; }
.model-points.row li { padding: 24px; background: #fff; border-radius: var(--r-lg); }
.sec.wash .built, .sec.dark .built { background: transparent; border-top-color: var(--line); }

/* Methodology: four connected stage cards (replaces the build-week strip) */
.method { position: relative; }
.method-track { position: relative; height: 4px; margin: 0 0 22px; border-radius: 99px; background: var(--line); overflow: hidden; }
.method-track i { position: absolute; inset: 0 auto 0 0; width: 25%; border-radius: 99px; background: var(--hl); transition: width .7s var(--ease); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.mcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .35s, box-shadow .35s var(--ease), transform .35s var(--ease); min-width: 0; }
.mcard::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--hl); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.mcard.on { border-color: #D5D5DA; box-shadow: var(--shadow); transform: translateY(-4px); }
.mcard.on::before { transform: scaleX(1); }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mnum { font-family: var(--display); font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--hl); }
.mtime { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--ink); background: var(--wash); border-radius: 999px; padding: 4px 10px; }
.mtime .i { width: 13px; height: 13px; color: var(--hl); }
.mcard h3 { font-size: 1.2rem; margin-top: 6px; }
.mcard p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.mdel { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.mdel span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mdel ul { display: grid; gap: 8px; }
.mdel li { position: relative; padding-left: 22px; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.mdel li::before { content: ''; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-radius: 50%; background: var(--hl-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23E2302A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.wash .mcard { border-color: #fff; }
.wash .mcard.on { border-color: #D5D5DA; }

/* Inner page heroes, go-lives, case approach, quote, closing */
.page-hero { background: var(--wash); }
.page-hero::before { background-image: linear-gradient(rgba(30,31,35,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,31,35,.05) 1px, transparent 1px); }
.page-hero::after { background: radial-gradient(circle, rgba(226,48,42,.10), transparent 62%); }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }
.page-hero .lede { color: var(--text); }
.built-on { color: var(--text); }
.built-on a, .built-on b { color: var(--ink); }
.logo-plate { border: 1px solid var(--line); }
.golive-band { border-top-color: var(--line); }
.golive-h { color: var(--muted); }
.golive-row a { background: #fff; border-color: var(--line); }
.golive-row b { color: var(--ink); }
.golive-row span { color: var(--muted); }
.approach > div { background: #fff; border-color: var(--line); }
.approach p { color: var(--muted); }
.big-quote { background: var(--wash); color: var(--text); }
.big-quote blockquote p:first-child { color: var(--ink); }
.big-quote figcaption b { color: var(--ink); }
.big-quote figcaption span span { color: var(--muted); }
.closing { background: var(--wash); }
.closing::before { background-image: linear-gradient(rgba(30,31,35,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,31,35,.05) 1px, transparent 1px); }
.closing p { color: var(--text); }
.dark .car-dots button { background: #D4D4D9; }

/* Footer */
.foot { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.foot h4 { color: var(--ink); }
.foot a:hover, .foot-btn:hover, .foot-links a:hover { color: var(--ink); }
.foot-legal { border-top-color: var(--line); }
.foot-links a { color: var(--muted); }
.foot-links a + a::before { background: #C4C4CA; }
.powered img { filter: none; }
.powered { opacity: 1; }

@media (max-width: 1100px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-track { display: none; }
}
@media (max-width: 960px) {
  .model-points.row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hdr { background: #fff; }
  .mcard { transform: none !important; }
}

/* Hero headline: always stays inside its own column. The struck-through line wraps with the
   text (drawn as an underline-style background), so it can never cross into the illustration. */
.hero-inner { overflow-wrap: break-word; }
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.4rem); line-height: 1.04; max-width: 100%; }
.hero h1 .quoted { white-space: normal; display: inline; text-decoration: none;
  background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat;
  background-position: 0 58%; background-size: 100% .075em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero h1 .quoted::after { display: none !important; content: none; }
.hero h1 .ship { margin-top: .06em; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .quoted { animation: strike2 .8s .4s var(--ease) both; }
  @keyframes strike2 { from { background-size: 0% .075em; } to { background-size: 100% .075em; } }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}
@media (max-width: 960px) {
  .hero h1 { font-size: clamp(2.3rem, 7.4vw, 3.6rem); }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.1rem, 10.4vw, 2.8rem); }
}

/* Dropdowns open from the header row, so they never run past the right edge of the screen */
@media (min-width: 961px) {
  .hdr-row { position: relative; }
  .nav-item { position: static; }
  .mega { left: 120px; top: calc(100% - 4px); width: min(780px, calc(100% - 120px - var(--gutter))); }
}
.hero-badge { flex-wrap: wrap; row-gap: 6px; border-radius: 18px; max-width: 100%; }
.hero-badge b { white-space: nowrap; }
@media (max-width: 1180px) { .hero-badge { font-size: .82rem; } }
@media (max-width: 600px) { .hero-badge { padding: 7px 8px 7px 12px; } }
@media (max-width: 1180px) {
  .hero-badge { border: 0; background: none; box-shadow: none; padding: 0; gap: 8px 12px; border-radius: 0; color: var(--muted); }
  .hero-badge b { order: -1; }
}

/* "Next story" band: its own top spacing after a grey band; when it follows a white
   section (e.g. the testimonial) it tucks up so the gap is not doubled. */
.next-sec { padding-block: clamp(48px, 6vw, 80px); }
.next-sec .next-case { background: #fff; }
/* The testimonial is followed by the "Next story" band on the same white background:
   it drops its bottom padding so the card has equal space above and below. */
.quote-sec { padding-bottom: 0; }
@media (max-width: 600px) {
  .next-case { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
  .next-case span { grid-column: 1 / -1; }
  .next-case b { font-size: 1.5rem; }
  .next-case .i { grid-column: 2; grid-row: 2; margin-left: 0; }
}
/* Testimonial: the large decorative quote mark is hidden on phones, where it would sit over the text */
@media (max-width: 600px) {
  .big-quote::before { content: none; display: none; }
  .big-quote { padding: 28px 22px; }
}
/* Tablet: keep the quote mark, but keep the opening lines of text clear of it */
@media (min-width: 601px) and (max-width: 1280px) {
  .big-quote blockquote p:first-child { padding-right: 96px; }
}

/* ════════════════════════════════════════════════════════════
   Refinements: 9 Oct (round 2)
   ════════════════════════════════════════════════════════════ */

/* 1. Main menu: no pill backgrounds. A red bar sits on the header's bottom edge under the
      current section; hovering previews it in grey. */
.nav > a, .nav-trigger { position: relative; background: none !important; box-shadow: none !important; color: var(--text); border-radius: 8px; }
.nav > a::after, .nav-trigger::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -16px; height: 3px; border-radius: 3px 3px 0 0; background: #CFCFD4; transform: scaleX(0); transform-origin: center; transition: transform .28s var(--ease), background-color .2s; }
.nav > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--ink); }
.nav > a:hover::after, .nav-trigger:hover::after, .nav-item.open .nav-trigger::after { transform: scaleX(1); }
.nav > a.active, .nav-trigger.active { color: var(--ink); font-weight: 600; }
.nav > a.active::after, .nav-trigger.active::after { transform: scaleX(1); background: var(--hl); }
.nav-trigger.active .i { color: var(--hl); }
.nav > a:focus-visible, .nav-trigger:focus-visible { outline-offset: 2px; }

/* 2. Footer bottom bar without the Ascent credit: copyright left, legal links right */
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.foot-links { justify-content: flex-end; }
@media (max-width: 600px) {
  .foot-legal { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .foot-links { justify-content: center; }
}

/* 3. Floating scroll progress + back to top */
.totop { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -12px rgba(18,18,22,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translateY(12px) scale(.92); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), box-shadow .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { box-shadow: 0 0 0 1px var(--hl-soft), 0 18px 36px -14px rgba(226,48,42,.45); }
.totop-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop-track { fill: none; stroke: var(--wash); stroke-width: 3; }
.totop-bar { fill: none; stroke: var(--hl); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: 157.08; transition: stroke-dashoffset .12s linear; }
.totop-pct { position: relative; font: 700 .74rem/1 var(--body); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: opacity .2s, transform .2s; }
.totop-arrow { position: absolute; width: 20px; height: 20px; color: var(--hl); opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.totop:hover .totop-pct, .totop:focus-visible .totop-pct { opacity: 0; transform: translateY(-5px); }
.totop:hover .totop-arrow, .totop:focus-visible .totop-arrow { opacity: 1; transform: none; }
@media (max-width: 600px) { .totop { width: 50px; height: 50px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
@media print { .totop { display: none !important; } }

/* 4. Methodology: no progress bar. Four aligned stage cards with a chevron between them;
      numbers, durations, titles, text and deliverables line up across all four. */
.method-track { display: none; }
.method-grid { gap: 28px; }
.mcard { padding: 28px 26px 26px; gap: 0; transform: none; transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.mcard::before { display: none; }
.mcard.on { transform: none; box-shadow: none; border-color: var(--line); }
.wash .mcard, .wash .mcard.on { border-color: #fff; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #F2C9C7; }
.mcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mnum { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.6px var(--hl); transition: color .3s; }
.mcard:hover .mnum { color: var(--hl); }
.mstep { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A3A4AA; }
.mtime { justify-self: start; align-self: start; margin-top: 18px; width: max-content; max-width: 100%; }
.mcard h3 { margin-top: 18px; font-size: 1.22rem; }
.mcard p { margin-top: 8px; }
.mdel { margin-top: 22px; padding-top: 18px; }
.mcard:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -21px; width: 12px; height: 12px; border-top: 2px solid #C4C4CA; border-right: 2px solid #C4C4CA; transform: rotate(45deg); }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 721px) { .method-grid .mcard { display: grid; grid-row: span 5; grid-template-rows: subgrid; } }
}
@media (max-width: 1100px) {
  .mcard:not(:last-child)::after { display: none; }
  .method-grid { gap: 18px; }
}
@media (max-width: 720px) {
  .mcard:hover { transform: none; }
}

/* Back-to-top: progress ring with a permanent up arrow (no percentage) */
.totop-pct { display: none !important; }
.totop-arrow { opacity: 1 !important; transform: none !important; color: var(--ink); width: 20px; height: 20px; transition: color .2s, transform .25s var(--ease) !important; }
.totop:hover .totop-arrow, .totop:focus-visible .totop-arrow { color: var(--hl); transform: translateY(-2px) !important; }

/* "Built on <accelerator>" label on project cards */
.built-on-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: -4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.built-on-tag::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--hl); }
.note-card p a { color: var(--ink); font-weight: 600; text-decoration-color: var(--hl); text-underline-offset: 3px; }

/* Footer contact: email as an icon button (address not shown) */
.foot-mail { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); background: #fff; transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ease); }
.foot-mail .i { width: 20px; height: 20px; }
.foot-mail:hover, .foot-mail:focus-visible { border-color: var(--hl); background: var(--hl); color: #fff !important; transform: translateY(-2px); }

/* ── Consultation form on phones: full-width bottom sheet ─────────
   (overrides the browser's default dialog size limit, which pushed it off-centre) */
@media (max-width: 600px) {
  .modal { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; inset: auto 0 0 0; border-radius: 22px 22px 0 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -18px 50px -20px rgba(12,12,15,.45); }
  .modal[open] { animation: sheet-up .32s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
  .modal-in { padding: 10px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal-in::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: #D4D4D9; margin: 0 auto 14px; }
  .modal h2 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; padding-right: 52px; margin: 0; }
  .modal-sub { display: block; margin: 6px 0 16px; font-size: .86rem; line-height: 1.45; padding-right: 8px; }
  .modal-x { top: 22px; right: 16px; width: 38px; height: 38px; background: var(--wash); }
  .fgrid { grid-template-columns: 1fr; gap: 10px; }
  .fld { height: 56px; padding: 7px 14px; }
  .fld span { font-size: .74rem; }
  .fld.full { height: auto; min-height: 84px; padding-bottom: 8px; }
  .fld textarea { height: 46px; line-height: 22px; overflow: hidden; }
  .fld input::placeholder, .fld textarea::placeholder { color: #A3A4AA; font-size: 15px; }
  .mfoot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; }
  .consent { align-items: flex-start; font-size: .86rem; }
  .consent input { width: 20px; height: 20px; margin-top: 0; }
  .mfoot .btn { width: 100%; min-height: 52px; }
  .mstatus { text-align: center; margin-top: 6px; }
  .done { padding: 8px 0 4px; }
}
/* Short phones (e.g. iPhone SE): tighter, but everything still fits without scrolling */
@media (max-width: 600px) and (max-height: 700px) {
  .modal-sub { display: none; }
  .modal h2 { margin-bottom: 14px; }
  .modal-in::before { margin-bottom: 10px; }
  .modal-x { top: 18px; }
  .fgrid { gap: 8px; }
  .fld { height: 52px; }
  .fld.full { min-height: 70px; height: auto; }
  .fld textarea { height: 24px; }
  .mfoot { margin-top: 12px; gap: 12px; }
  .mfoot .btn { min-height: 48px; }
}

/* ════ Consultation form on phones: the compact layout on every phone size ════
   No subtitle, title + close on one line, single column, consent above a full-width button.
   Tablet and desktop keep the original two-column form. */
@media (max-width: 600px) {
  .modal-sub { display: none !important; }
  .modal-in { padding: 10px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal h2 { font-size: 1.4rem; line-height: 1.15; margin: 0 0 14px; padding-right: 52px; }
  .modal-x { top: 18px; right: 16px; width: 38px; height: 38px; background: var(--wash); }
  .fgrid { grid-template-columns: 1fr; gap: 8px; }
  .fld { height: 52px; padding: 7px 14px; }
  .fld.full { height: auto; min-height: 70px; padding-bottom: 8px; }
  .fld textarea { height: 24px; overflow: hidden; }
  .mfoot { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 12px; }
  .mfoot .btn { width: 100%; min-height: 48px; }
  .modal-in::before { margin-bottom: 10px; }
}

/* ── Spreadsheet to Solution campaign: header button and upload form ── */
.hdr-sheet { gap: 8px; }
.hdr-sheet .i { width: 18px; height: 18px; color: var(--hl); flex: none; }
.drawer .drawer-sheet { width: 100%; gap: 10px; }
.drawer .drawer-sheet .i { width: 18px; height: 18px; color: var(--hl); }
.drawer .drawer-sheet + .btn { margin-top: 10px; }
@media (max-width: 1240px) and (min-width: 961px) {
  /* not enough room for both labels beside the menu: the campaign button becomes an icon */
  .hdr-sheet { width: 40px; padding: 0; }
  .hdr-sheet span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.sheet-modal .kicker { margin-bottom: 8px; color: var(--hl); }
.sheet-modal h2 { line-height: 1.15; }
#modal .modal-sub span { display: block; }   /* consultation popup: second sentence always on its own line */
.sheet-modal h2 span { display: block; }   /* heading always breaks after "Send us a spreadsheet." */
@media (max-width: 720px) {
  /* phones: the close button sits beside the first line only, so the second line can use the full width */
  .sheet-modal h2 { padding-right: 0; font-size: clamp(1.05rem, 5.3vw, 1.4rem); }
  .sheet-modal h2 span:first-child { padding-right: 52px; }
}
.sheet-modal .fld.full-line { grid-column: 1 / -1; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; min-height: 76px; border: 1.5px dashed #C9C9CF; border-radius: 12px; background: var(--wash); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.drop:hover, .drop.over { border-color: var(--hl); background: var(--hl-soft); }
.drop:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(226,48,42,.22); }
.drop.has { border-style: solid; border-color: var(--ink); background: var(--paper); }
.drop.bad { border-color: #B93A33; background: #FDF2F1; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--hl); box-shadow: 0 1px 2px rgba(18,18,22,.08); }
.drop.has .drop-ic { background: var(--go-soft); color: var(--go); }
.drop-ic .i { width: 22px; height: 22px; }
.drop-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.drop-txt b { font-weight: 600; font-size: .95rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-txt u { color: var(--hl); text-underline-offset: 3px; }
.drop-txt small { font-size: .8rem; color: var(--muted); }
.drop-x { position: relative; z-index: 1; margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--wash); }
.drop-x:hover { background: var(--hl-soft); }
.drop-x .i { width: 16px; height: 16px; }
.drop-touch { display: none; }
@media (hover: none) { .drop-mouse { display: none; } .drop-touch { display: inline; } }
.sheet-tip { margin-top: 8px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.consent a { color: var(--ink); text-underline-offset: 2px; }
@media (max-width: 720px) {
  .drop { min-height: 64px; padding: 12px 14px; }
  .sheet-tip { font-size: .76rem; }
}

/* ════════════════════════════════════════════════════════════
   BLUEPRINT LAYER (Nov 2026 revamp)
   Paper white and mist surfaces, deep navy for headings and two "blueprint" bands
   with an engineering grid, SCAILE red kept for actions and diagram nodes, steel blue
   for diagram lines, mint for outcomes. The signature element is the line-drawn system
   diagram on each case study (includes/partials/diagrams.php).
   ════════════════════════════════════════════════════════════ */
:root {
  --navy: #14213D;
  --navy-2: #1B2B4D;
  --navy-3: #24375E;
  --navy-line: rgba(255,255,255,.14);
  --navy-text: #C9D3E3;
  --navy-muted: #93A3BD;
  --steel: #3D6A8C;
  --steel-soft: #E4EDF4;
  --mint: #DCEFE7;
  --mint-ink: #1F6B52;
  --ink: #14213D;
  --text: #2E3A4F;
  --muted: #5B687D;
  --wash: #F3F6F9;
  --line: #DCE3EA;
  --shadow: 0 1px 2px rgba(20,33,61,.05), 0 20px 44px -22px rgba(20,33,61,.28);
}
body { color: var(--text); }
.hero h1 .quoted { color: #9AA6B8; }
.btn-line { border-color: rgba(20,33,61,.22); }

/* Engineering grid: fine cells with a stronger line every fourth cell */
.bp-grid, .bp { position: relative; isolation: isolate; }
.bp::before, .bp-grid::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.35) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.35) 100%);
}

/* Navy blueprint bands */
.bp { background: var(--navy); color: var(--navy-text); }
.bp::after { content: none; }
.bp h1, .bp h2, .bp h3, .bp b { color: #fff; }
.bp .kicker, .bp .sec-head p, .bp .smb-head p, .bp p { color: var(--navy-text); }
.bp .kicker::before { background: var(--hl); }
.bp .link { color: #fff; }
.bp .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.bp .btn-line:hover { border-color: #fff; }

/* Why businesses choose SCAILE, on navy: list items become outlined blueprint panels */
.smb.bp { background: var(--navy); padding-block: clamp(72px, 9vw, 120px); }
.bp .smb-list li { background: rgba(255,255,255,.035); border: 1px solid var(--navy-line); border-radius: 16px; }
.bp .smb-list li:hover { border-color: rgba(255,255,255,.45); transform: none; }
.bp .smb-list li::before { background-color: rgba(226,48,42,.14); border: 1px solid rgba(226,48,42,.55); box-shadow: none; }
.bp .smb-list b { color: #fff; }
.bp .smb-list p { color: var(--navy-muted); }

/* Proof: the testimonial card is a navy blueprint panel */
.proof-card { background: var(--wash); border: 1px solid var(--line); }
.proof-card.feature { background: var(--navy); color: var(--navy-text); border-color: var(--navy); box-shadow: 0 30px 60px -34px rgba(20,33,61,.6); overflow: hidden; isolation: isolate; }
.proof-card.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.proof-card.feature .metric { color: #fff; }
.proof-card.feature .metric-label { color: #fff; }
.proof-card.feature blockquote { color: var(--navy-text); }
.proof-card.feature .who b { color: #fff; }
.proof-card.feature .who span { color: var(--navy-muted); }
.proof-card.feature .link { color: #fff; }
.proof-card.feature .deliv { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.proof-card .metric { color: var(--ink); }

/* Capability tickers */
.caps { background: var(--wash); border-color: var(--line); }
.cap-chip { border-color: var(--line); color: var(--ink); }
.cap-chip::before { background: var(--steel); box-shadow: 0 0 0 3px var(--steel-soft); border-radius: 50%; }

/* Sector cards: icons sit on a small blueprint plate; no decorative numbering */
.ind { border: 1px solid var(--line); background: #fff; }
.ind:hover { border-color: var(--steel); }
.ind .ic { width: 64px; height: 64px; border-radius: 14px; background-color: var(--steel-soft); border: 1px solid #CBDAE6; color: var(--navy);
  background-image: linear-gradient(rgba(61,106,140,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(61,106,140,.14) 1px, transparent 1px); background-size: 8px 8px; }
.ind .ic::after { background: var(--hl); border-color: #fff; }
.ind li { background: var(--steel-soft); color: var(--navy); }

/* Methodology: a real sequence, so the four stages sit on one connected rail */
#model.wash { background: var(--wash); }
.method-track { background: #D3DCE6; }
.method-grid { position: relative; }
.mcard { border-color: var(--line); }
.mcard::after { content: ''; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--steel); opacity: .55; }
.mcard:last-child::after { content: none; }
.mnum { color: var(--hl); }
.mtime { background: var(--steel-soft); color: var(--navy); }

/* Case cards: light panels with a system diagram on top */
.case.big { background: #fff; border: 1px solid var(--line); color: var(--text); }
.case.big:hover { border-color: var(--steel); }
.case.big h3, .case.big .link { color: var(--ink); }
.case.big .metric { color: var(--hl); }
.case.big p { color: var(--muted); }
.case.big .tag { background: var(--steel-soft); color: var(--navy); }
.case.big .deliv { background: var(--mint); border-color: transparent; color: var(--mint-ink); }
.case.big .deliv .i { color: var(--mint-ink); }
.case-dg { margin: 16px -6px 4px; padding: 12px 10px; border-radius: 14px; background-color: var(--wash); border: 1px solid #E3E9F0;
  background-image: linear-gradient(rgba(61,106,140,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(61,106,140,.08) 1px, transparent 1px); background-size: 16px 16px; }
.case.half { border-color: var(--line); }

/* Diagram grammar (inline SVG). Colours switch automatically inside navy bands. */
.dg { width: 100%; height: auto; overflow: visible;
  --dg-line: var(--steel); --dg-box: #fff; --dg-box-line: #B9C8D6; --dg-text: var(--navy); --dg-note: var(--muted);
  --dg-key: #fff; --dg-key-line: var(--hl); --dg-out: var(--mint); --dg-out-line: #A9D6C3; --dg-out-text: var(--mint-ink);
  --dg-tag: var(--steel-soft); --dg-tag-text: var(--navy); }
.bp .dg { --dg-line: #8FB0CC; --dg-box: var(--navy-2); --dg-box-line: rgba(255,255,255,.28); --dg-text: #fff; --dg-note: var(--navy-muted);
  --dg-key: var(--navy-3); --dg-key-line: var(--hl); --dg-out: rgba(220,239,231,.12); --dg-out-line: rgba(169,214,195,.7); --dg-out-text: #CDEFE0;
  --dg-tag: rgba(255,255,255,.08); --dg-tag-text: #fff; }
.dg text { font-family: var(--body); font-size: 11.5px; font-weight: 600; fill: var(--dg-text); }
.dg .dg-line { fill: none; stroke: var(--dg-line); stroke-width: 1.6; stroke-linecap: round; }
.dg .dg-dash { stroke-dasharray: 4 5; }
.dg .dg-arrowhead { fill: var(--dg-line); }
.dg .dg-box rect { fill: var(--dg-box); stroke: var(--dg-box-line); stroke-width: 1.2; }
.dg .dg-key rect { fill: var(--dg-key); stroke: var(--dg-key-line); stroke-width: 1.8; }
.dg .dg-out rect { fill: var(--dg-out); stroke: var(--dg-out-line); }
.dg .dg-out text { fill: var(--dg-out-text); }
.dg .dg-tag rect { fill: var(--dg-tag); stroke: none; }
.dg .dg-tag text { fill: var(--dg-tag-text); font-size: 10.5px; }
.dg .dg-tag.dg-hl rect { fill: var(--hl); }
.dg .dg-tag.dg-hl text { fill: #fff; }
.dg .dg-note { font-weight: 500; font-size: 11px; fill: var(--dg-note); }
.dg .dg-node { fill: var(--hl); stroke: var(--dg-box); stroke-width: 2; }
.dg .dg-coil circle { fill: none; stroke: var(--dg-line); stroke-width: 1.6; }
.dg .dg-coil circle:first-child { fill: var(--dg-box); stroke: var(--dg-box-line); }
.dg .dg-coil circle:last-child { fill: var(--hl); stroke: none; }
.dg-card text { font-size: 12px; }
.dg-hero text { font-size: 15px; }
.dg-hero .dg-note { font-size: 13px; }
.dg-hero .dg-tag text { font-size: 13px; }
.dg .dg-eq rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.22); stroke-dasharray: 5 5; }
.dg .dg-eq-main { font-family: var(--display); font-size: 18px; font-weight: 800; fill: #fff; }
.dg .dg-eq-sub { font-size: 13px; font-weight: 500; fill: var(--navy-muted); }

/* Team: AI drafts, engineers decide, you own it, read as one flow on navy */
#team.bp { padding-block: clamp(72px, 9vw, 120px); }
.bp .team { gap: 28px; }
.bp .member { position: relative; background: rgba(255,255,255,.035); border: 1px solid var(--navy-line); }
.bp .member:not(:last-child)::after { content: ''; position: absolute; top: 50px; right: -24px; width: 20px; height: 20px;
  background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 10h13M10 5l5 5-5 5' fill='none' stroke='%238FB0CC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bp .member .ic { background: transparent; border-color: var(--navy-line); color: var(--hl); }
.bp .member li { color: var(--navy-text); }
.bp .member li::before { background: var(--steel); }
.bp .backed { border-color: var(--navy-line); background: rgba(255,255,255,.03); }
.bp .backed p { color: var(--navy-text); }

/* Closing band on every page: navy blueprint */
.closing { background: var(--navy); color: var(--navy-text); }
.closing::before { background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.closing h2 { color: #fff; }
.closing p { color: var(--navy-text); }
.closing .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* Case study hero on navy, with its system diagram */
.page-hero.bp { background: var(--navy); padding-block: clamp(36px, 5vw, 60px) clamp(56px, 7vw, 92px); }
.page-hero.bp .crumbs, .page-hero.bp .crumbs [aria-current] { color: var(--navy-muted); }
.page-hero.bp .crumbs a { color: var(--navy-text); }
.page-hero.bp .lede { color: var(--navy-text); }
.page-hero.bp .built-on { color: var(--navy-text); }
.page-hero.bp .built-on a, .page-hero.bp .built-on b { color: #fff; }
.page-hero.bp .hero-meta .deliv { background: var(--mint); border-color: transparent; color: var(--mint-ink); }
.page-hero.bp .hero-meta .deliv .i, .page-hero.bp .hero-meta .deliv b { color: var(--mint-ink); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case-hero-grid .crumbs { margin-bottom: 26px; }
.case-hero-grid h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.case-hero-art { margin: 0; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--navy-line); border-radius: 22px; background: rgba(255,255,255,.025); }
.case-hero-art figcaption { margin-top: 12px; font-size: .84rem; color: var(--navy-muted); text-align: center; }
.stats-sec .stat b { color: var(--ink); }
.stats-sec .stat:first-child b { color: var(--hl); }
.pain { border-color: var(--line); }
.pain b { color: var(--ink); }
.pain { padding: 26px 28px; }
.pain::after { content: ''; position: absolute; left: 28px; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--steel); }
@media (max-width: 960px) { .pain { padding: 22px 22px; } .pain::after { left: 22px; } }
.approach.light > div, .wash .approach > div { background: #fff; border-color: var(--line); }

@media (max-width: 1100px) {
  .bp .member:not(:last-child)::after { content: none; }
  .mcard::after { content: none; }
}
@media (max-width: 960px) {
  .case-hero-grid { grid-template-columns: 1fr; }
  .case-hero-art { max-width: 620px; }
}
@media (max-width: 600px) {
  /* the hero diagram keeps a readable size on phones and scrolls sideways inside its frame */
  .case-hero .case-hero-art { padding: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .case-hero .case-hero-art .dg-hero { min-width: 520px; }
  .case-hero .case-hero-art figcaption { position: sticky; left: 0; text-align: left; }
  .case-hero .case-hero-art figcaption::after { content: '  Swipe to see the full flow.'; }
  .case-dg { margin-inline: -4px; padding: 10px 6px; }
  .dg-card text { font-size: 12px; }
}

/* ── Home hero, blueprint edition: navy sea, go-live race against a quarter ── */
.hero { background:
  radial-gradient(700px 420px at 92% 18%, rgba(61,106,140,.16), transparent 70%),
  radial-gradient(620px 380px at 70% 92%, rgba(226,48,42,.10), transparent 70%), #fff; }
.hero::before { background-image:
  linear-gradient(rgba(20,33,61,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(20,33,61,.07) 1px, transparent 1px),
  linear-gradient(rgba(20,33,61,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,33,61,.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.hero::after { content: none; }
.hero-badge { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 24px -14px rgba(20,33,61,.7); }
.hero h1 { font-size: clamp(2.4rem, 3.75vw, 3.55rem); }
@media (min-width: 961px) { .hero h1 .quoted { white-space: nowrap; } }
.hero h1 .ship { color: var(--navy); }

/* Go-live race: bars are drawn to scale against 90 days and fill once on load */
.hero-race { margin-top: 30px; width: 100%; max-width: 520px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 14px 30px -24px rgba(20,33,61,.5); }
.hr-h { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.hero-race ul { display: grid; gap: 8px; }
.hero-race li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 118px; align-items: center; gap: 12px; }
.hr-scale { display: grid; grid-template-columns: 72px minmax(0, 1fr) 118px; gap: 12px; margin-top: 4px; font-size: .72rem; color: var(--muted); }
.hr-scale > span:nth-child(2) { display: flex; justify-content: space-between; }
.hr-n { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.hr-n b { font-family: var(--display); font-size: 1.15rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.hr-bar { position: relative; height: 10px; border-radius: 99px; background: var(--steel-soft);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), rgba(61,106,140,.35) calc(33.333% - 1px) 33.333%); }
.hr-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--d) / 90 * 100%); border-radius: 99px; background: linear-gradient(90deg, #F2524B, var(--hl)); box-shadow: 0 0 0 3px rgba(226,48,42,.12); }
.hr-who { font-size: .82rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.hr-who:hover { color: var(--hl); }
@media (prefers-reduced-motion: no-preference) {
  .hr-bar i { animation: hr-fill 1.1s var(--ease) both; }
  .hero-race li:nth-child(2) .hr-bar i { animation-delay: .15s; }
  .hero-race li:nth-child(3) .hr-bar i { animation-delay: .3s; }
  @keyframes hr-fill { from { width: 0; } }
}

/* The speedboat scene on a navy blueprint sea */
.hero .scene-frame { background: var(--navy); border-color: var(--navy); box-shadow: 0 40px 80px -36px rgba(20,33,61,.75); }
.hero .scene-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px; }
.hero #seaG stop:first-child { stop-color: #1F3157; }
.hero #seaG stop:last-child { stop-color: #14213D; }
.hero #ripP path { stroke: #FFFFFF; stroke-opacity: .07; }
.hero #vigG stop { stop-color: #0F1A31; }
.hero #glowG stop:first-child { stop-opacity: .28; }
.hero #foamA stop, .hero #foamB stop, .hero #armG stop { stop-color: #FFFFFF; }
.hero #tankG stop:first-child { stop-color: #5D7093; }
.hero #tankG stop:last-child { stop-color: #43557A; }
.hero .boat-scene .arc-wide { stroke: #7F92B2; }
.hero .boat-scene .spray { fill: #E6ECF5; }
.hero .boat-scene .lbl-k { fill: #93A3BD; }
.hero .boat-scene .lbl-v { fill: #FFFFFF; }
.hero .boat-scene .lbl-hl { fill: #FF6A63; }

@media (max-width: 600px) {
  .hero-badge { flex-wrap: wrap; border-radius: 14px; padding: 8px 12px; gap: 6px 10px; line-height: 1.35; }
  .hr-scale { grid-template-columns: 62px minmax(0, 1fr); }
  .hr-scale > span:last-child { display: none; }
  .hero-race { padding: 14px 14px 12px; }
  .hero-race li { grid-template-columns: 62px minmax(0, 1fr); }
  .hr-who { grid-column: 2; margin-top: -4px; font-size: .78rem; }
}

/* Go-live chart on navy heroes (work, how we work) */
.hero-race.on-navy { margin-top: 34px; background: rgba(255,255,255,.04); border-color: var(--navy-line); box-shadow: none; }
.hero-race.on-navy .hr-h, .hero-race.on-navy .hr-n, .hero-race.on-navy .hr-scale { color: var(--navy-muted); }
.hero-race.on-navy .hr-n b { color: #fff; }
.hero-race.on-navy .hr-who { color: #fff; }
.hero-race.on-navy .hr-who:hover { color: #FF8A84; }
.hero-race.on-navy .hr-bar { background-color: rgba(255,255,255,.1); background-image: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), rgba(255,255,255,.28) calc(33.333% - 1px) 33.333%); }
/* Solution page heroes: copy left, a system diagram right */
.sol-hero .case-hero-art { padding: clamp(18px, 2.6vw, 30px) clamp(14px, 2vw, 22px); }
.sol-hero .case-hero-grid h1 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
