/* H1 iteration: the reference's motion (live orb, snapping pages, rising curtains, embossed icons)
   dressed in the draft site's own system: Inter Tight + Instrument Serif accents, mono kickers,
   ink buttons, the grey "aurum" stage, gold only as a highlight, the site's nav, HUD and footer. */
:root {
  --ink: #0B0B0A;
  --ink-2: #1A1A1A;
  --body: #34342F;
  --mute: #5C5C56;
  --dim: #8A887F;
  --line: rgba(26,26,26,.12);
  --card: rgba(255,255,255,.5);
  --card-line: rgba(26,26,26,.1);
  --gold: #E8CD78;
  --gold-deep: #D9B866;
  --gold-soft: rgba(232,205,120,.4);
  --navh: 116px;
  --gut: 28px;
}
* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; background: #FFFFFF; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #FFFFFF; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* the site's header, pinned (same skin as the homepage's grey theme) */
.h1-sitenav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; }
.h1-sitenav header { background: rgba(206,206,205,.9) !important; border-bottom-color: rgba(26,26,26,.1) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.h1-sitenav header nav a.nav-on { position: relative; color: var(--ink) !important; }
.h1-sitenav header nav a.nav-on::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -9px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); box-shadow: 0 0 12px 2px rgba(217,184,102,.55); }

/* track: nine snap pages, one sticky stage */
.h1-track { position: relative; height: 1000vh; height: 1000svh; }
.h1-snap { position: absolute; left: 0; width: 1px; height: 100vh; height: 100svh; top: calc(var(--i) * 100vh); scroll-snap-align: start; scroll-snap-stop: always; }
@supports (height: 100svh) { .h1-snap { top: calc(var(--i) * 100svh); } }
.h1-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.h1-bg { position: absolute; inset: 0; background: #FFFFFF; }
/* the stage dims around the orb (a vignette with a lit pocket that follows the orb) */
.h1-dusk { position: absolute; inset: 0; opacity: 0; pointer-events: none; --ox: 50%; --oy: 50%; --or: 30vh;
  background:
    radial-gradient(circle at var(--ox) var(--oy), rgba(236,234,228,.34) 0, rgba(236,234,228,.1) calc(var(--or) * .95), rgba(236,234,228,0) calc(var(--or) * 1.5)),
    radial-gradient(120% 100% at var(--ox) var(--oy), rgba(30,28,26,.1) 0, rgba(30,28,26,.5) 40%, rgba(14,13,12,.92) 100%); }
/* faint concentric rings, centred on the orb by h1.js */
.h1-rings { position: absolute; left: 50%; top: 50%; width: 100vh; height: 100vh; transform: translate(-50%,-50%);
  fill: none; stroke: rgba(26,26,26,.14); stroke-width: 1; opacity: 0; pointer-events: none; }
.h1-rings circle:nth-child(2) { stroke: rgba(255,255,255,.22); }
#orb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- the site's type system (from home-story.css) ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.kicker.pill { background: #FFFFFF; box-shadow: 0 1px 2px rgba(18,17,15,.06), 0 4px 14px -6px rgba(18,17,15,.18); border: 1px solid rgba(26,26,26,.14); border-radius: 999px; padding: 7px 14px 7px 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 4px var(--gold-soft); flex: 0 0 auto; }
.h-xl, .h-lg, .h-md { font-family: 'Inter Tight', sans-serif; font-weight: 600; margin: 0; color: var(--ink); }
.h-xl { font-size: clamp(44px, 6.4vw, 100px); line-height: .94; letter-spacing: -0.045em; }
.h-lg { font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.04em; }
.h-md { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.h-xl em, .h-lg em, .h-md em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
em.mute { color: var(--mute); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--body); margin: 0; }
.body { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; }
.dim { color: var(--dim); }
.btn { height: 50px; padding: 0 26px; border-radius: 8px; font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.btn.big { height: 54px; padding: 0 32px; font-weight: 600; }
.btn.solid { background: var(--ink-2); color: #fff; box-shadow: 0 12px 28px -14px var(--ink-2); }
.btn.line { background: transparent; border: 1px solid var(--ink-2); color: var(--ink-2); }
.btn:hover { transform: translateY(-1px); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.blk-link { font-weight: 500; font-size: 15px; color: var(--ink); border-bottom: 1px solid rgba(26,26,26,.3); padding-bottom: 2px; align-self: flex-start; transition: border-color .2s; }
.blk-link:hover, a:hover > .blk-link { border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-size: 13px; font-weight: 500; border: 1px solid rgba(26,26,26,.15); background: rgba(255,255,255,.45); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); }
.stage-n { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--dim); }

/* ---------- 001 hero ---------- */
.h1-hero { position: absolute; inset: 0; pointer-events: none; }
/* copy on the left, orb on the right (as the main homepage hero) */
.h1-hero-panel { position: absolute; left: max(var(--gut), calc((100vw - 1240px) / 2 + 28px)); top: calc(50% + var(--navh) / 2); translate: 0 -50%;
  width: min(700px, 52vw); pointer-events: auto; will-change: transform, opacity; }
.h1-hero-panel .h-xl { margin: 0; font-size: clamp(44px, min(6.2vw, 11vh), 106px); }
@media (min-width: 761px) {
  .h1-hero-panel .lede { max-width: 620px; margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); }
  .h1-hero-panel .btn { height: 54px; padding: 0 30px; font-size: 17px; }
}
#orb { cursor: default; }

/* ---------- 002 first scroll: one line over the dimmed stage ---------- */
.h1-say { left: max(var(--gut), calc((100vw - 1240px) / 2 + 28px)); bottom: clamp(110px, 17vh, 170px); max-width: 860px; }
.h1-say .h-lg { font-size: clamp(40px, min(5.4vw, 9vh), 80px); }
.h1-say .h-lg { color: #F7F6F1; text-shadow: 0 2px 24px rgba(0,0,0,.22); }
.h1-say .h-lg em { color: #0e0d0b; text-shadow: none; }
.h1-say-sub { margin: 24px 0 0; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.4; letter-spacing: -0.01em; color: rgba(247,246,241,.85); max-width: 780px; }

/* floating layers over the orb */
.h1-layer { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- 002 why ---------- */
.h1-why { left: max(var(--gut), calc((100vw - 1240px) / 2 + 28px)); top: calc(50% + var(--navh) / 2); transform: translateY(-50%); width: min(560px, 44vw); }
.h1-why .body { margin-top: 20px; }
/* why: stronger focus and contrast on the light stage */
.h1-why em.mute { color: #45433c; }
.h1-why .body { color: #26251f; }
.h1-why .row { color: var(--ink); }
.h1-why .row small { color: #2b2a26; font-weight: 500; letter-spacing: .01em; }
.h1-why .row.own small { color: #5a4108; font-weight: 600; }
@media (min-width: 761px) {
  .h1-why { width: min(620px, 45vw); }
  .h1-why .kicker { margin-bottom: 22px; }
  .h1-why .h-lg { font-size: clamp(40px, min(4.6vw, 8.4vh), 68px); }
  .h1-why .body { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; margin-top: 24px; }
  .h1-why .rows { margin-top: 30px; }
  .h1-why .row { font-size: 17px; padding: 15px 0; }
  .h1-why .row small { font-size: 15px; }
}
.rows { margin-top: 26px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.row small { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--dim); font-weight: 400; text-align: right; }
.row.own { font-weight: 600; }
.row.own small { color: #8B6B1F; }
.row.own span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: var(--ink-2); box-shadow: 0 0 0 4px var(--gold-soft); vertical-align: 1px; }

/* ---------- curtains ---------- */
.h1-curtain { position: absolute; inset: 0; background: #CDCDCC; transform: translateY(100%); will-change: transform; }
.h1-curtain-in { position: absolute; top: var(--navh); bottom: 62px; left: 0; right: 0; margin: 0 auto; width: min(1240px, 100%); padding: clamp(24px, 4.5vh, 52px) var(--gut) 0;
  display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 36px); }
.h1-head { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 48px; align-items: end; }
.h1-head .body { max-width: 420px; }
/* building blocks: heading on one line, the line of copy right under it */
.h1-head.stack { grid-template-columns: 1fr; gap: 14px; }
.h1-head.stack .h-lg { white-space: nowrap; }
.h1-head.stack .body { max-width: none; font-size: clamp(16px, 1.25vw, 18px); }
.h1-head-row { display: flex; justify-content: space-between; align-items: end; }
.h1-head > * { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .9s cubic-bezier(.2,.7,.1,1); }
.h1-curtain.in .h1-head > * { opacity: 1; transform: none; }
.h1-curtain.in .h1-head > :nth-child(2) { transition-delay: .12s; }

/* rising cards (003 / 006 / 007 share the reference's staggered rise) */
.h1-card, .h1-badge-t, .h1-story, .h1-points li { opacity: 0; transform: translateY(calc(70px + var(--i, 0) * 70px));
  transition: opacity .9s calc(var(--i, 0) * .14s), transform 1.25s cubic-bezier(.16,.8,.12,1) calc(var(--i, 0) * .14s), border-color .3s, background .3s, box-shadow .3s; }
.h1-curtain.in :is(.h1-card, .h1-badge-t, .h1-story, .h1-points li) { opacity: 1; transform: none; }

.h1-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 18px; }
.h1-card { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px; min-height: 0; }
a.h1-card:hover { background: rgba(255,255,255,.68); box-shadow: 0 24px 48px -32px rgba(26,26,26,.35); }
.h1-icon { flex: 1; min-height: 0; width: 100%; display: block; opacity: 0; overflow: visible; }
.h1-card h3, .h1-story h3 { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.h1-card p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.55; }
.h1-card .chips { margin-top: 2px; }
.h1-card .blk-link { margin-top: 4px; font-size: 14px; }
/* the dark pipeline / manifest card, as on the homepage */
.h1-card-ink { background: #181816; border-color: #262622; color: #F2F1EC; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; gap: 16px; }
.pipe { display: flex; flex-direction: column; gap: 9px; }
.pipe-row { display: flex; justify-content: space-between; gap: 12px; }
.pipe-row small { color: #8A887F; font-size: 12px; }
.pipe-row.hot { background: #0B0B0A; border: 1px solid rgba(232,205,120,.45); border-radius: 8px; padding: 9px 12px; }
.pipe-row.hot small, small.gold { color: var(--gold); }
.pipe-arrow { color: #77776F; }
.h1-card-ink .chips i { background: transparent; border-color: #34342F; color: #D6D4CB; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 400; }
.manifest { border-top: 1px solid #262622; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.manifest li { display: flex; justify-content: space-between; padding: 6px 10px; border: 1px solid #262622; border-radius: 6px; margin-bottom: 6px; color: #D6D4CB; }
.manifest li b { font-weight: 400; color: var(--gold); }
.manifest li b.wip { color: #8A887F; }
/* the ink card plays as a story each time the page arrives: base model → your data → training → your model → handover */
@property --ep { syntax: '<integer>'; inherits: true; initial-value: 12; }
@property --pct { syntax: '<integer>'; inherits: true; initial-value: 94; }
.h1-card-ink { justify-content: flex-start; gap: 10px; overflow: hidden; }
.h1-card-ink .manifest li { padding: 3px 10px; margin-bottom: 3px; }
.h1-card-ink .manifest { gap: 6px; padding-top: 10px; }
.train { flex: 1 1 0; min-height: 66px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #262622; border-radius: 10px; background: #12120f; }
.train-ep { color: #8A887F; } .train-ep b, .train-legend b { font-weight: 400; color: #F2F1EC; }
.train-n::after { counter-reset: ep var(--ep); content: counter(ep); }
.train-pct::after { counter-reset: pct var(--pct); content: counter(pct); }
.train-plot { flex: 1 1 0; min-height: 118px; width: 100%; overflow: visible; }
.tp-run { fill: none; stroke: #F2F1EC; stroke-width: .8; stroke-dasharray: 2 2.5; }
.tp-gold { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(232,205,120,.45)); }
.tp-axis { fill: none; stroke: #D6D4CB; stroke-width: 1.2; opacity: .75; }
.tp-drop { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.tp-foot { fill: var(--gold); }
.tp-ring { fill: #12120f; stroke: var(--gold); stroke-width: 2; }
.tp-n { fill: #F2F1EC; font: 600 9.5px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; text-anchor: middle; }
.tp-lab { fill: var(--gold); font: 500 9px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .04em; text-anchor: middle; }
.tp-end .tp-drop { stroke: #F2F1EC; } .tp-end .tp-foot { fill: #F2F1EC; } .tp-end .tp-ring { stroke: #F2F1EC; } .tp-end .tp-lab { fill: #F2F1EC; }
.tp-pin { transform-box: fill-box; transform-origin: 50% 100%; }
.train-legend { display: none; gap: 16px; color: #8A887F; font-size: 11.5px; }
.train-legend i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: 3px; }
.k-loss { background: repeating-linear-gradient(90deg, #F2F1EC 0 2px, transparent 2px 4px); } .k-acc { background: var(--gold); }
.train-bar { height: 3px; border-radius: 3px; background: #262622; overflow: hidden; }
.train-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a6d24, var(--gold)); transform-origin: 0 50%; }
.owner { display: inline-flex; gap: 8px; align-items: baseline; }
.owner s { color: #5c5b55; text-decoration-color: #8A887F; }
.owner .gold { color: var(--gold); }
.st-tick { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .st .st-a, .st .st-pop, .st .st-tick, .st .st-to, .st .st-hot { opacity: 0; }
  .st .tp-clip { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
  .st .tp-pin { opacity: 0; }
  .st .train-bar i { transform: scaleX(0); }
  .st .owner s { text-decoration-color: transparent; }
  .h1-curtain.in .st .st-a { animation: stIn .6s cubic-bezier(.2,.7,.1,1) var(--t) both; }
  .h1-curtain.in .st .st-pop { animation: stPop .5s cubic-bezier(.3,1.6,.5,1) var(--t) both; }
  .h1-curtain.in .st .st-tick { animation: stPop .45s cubic-bezier(.3,1.8,.5,1) var(--t) both; }
  .h1-curtain.in .st .tp-clip { animation: stBar 2.2s cubic-bezier(.3,.1,.2,1) 2.1s both; }
  .h1-curtain.in .st .tp-pin { animation: stPop .45s cubic-bezier(.3,1.6,.5,1) var(--t) both; }
  .h1-curtain.in .st .train-bar i { animation: stBar 2.2s cubic-bezier(.3,.1,.2,1) 2.1s both; }
  .h1-curtain.in .st .train { animation: stIn .6s cubic-bezier(.2,.7,.1,1) var(--t) both, stCount 2.2s cubic-bezier(.3,.1,.2,1) 2.1s both; }
  .h1-curtain.in .st .st-hot { animation: stIn .6s cubic-bezier(.2,.7,.1,1) var(--t) both, stGlow 1.6s ease-out calc(var(--t) + .2s) both; }
  .h1-curtain.in .st .owner s { animation: stStrike .4s ease-out 6.7s both; }
  .h1-curtain.in .st .st-to { animation: stPop .5s cubic-bezier(.3,1.8,.5,1) 7s both; }
  .h1-curtain.in .st .wip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; animation: stPulse 1.4s ease-in-out 6.2s infinite both; }
}
@keyframes stIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stPop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes stDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes stBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stCount { from { --ep: 0; --pct: 61; } to { --ep: 12; --pct: 94; } }
@keyframes stGlow { 0% { box-shadow: 0 0 0 0 rgba(232,205,120,.0); border-color: rgba(232,205,120,.45); } 30% { box-shadow: 0 0 0 4px rgba(232,205,120,.18), 0 0 28px rgba(232,205,120,.35); border-color: var(--gold); } 100% { box-shadow: 0 0 18px -6px rgba(232,205,120,.3); border-color: rgba(232,205,120,.6); } }
@keyframes stStrike { from { text-decoration-color: transparent; } to { text-decoration-color: #8A887F; } }
@keyframes stPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- 004 how we partner ---------- */
.h1-partner { left: max(var(--gut), calc((100vw - 1240px) / 2 + 28px)); top: calc(50% + var(--navh) / 2); transform: translateY(-50%); width: min(600px, 46vw); }

/* ---------- 005 industries ---------- */
.h1-ind { left: max(var(--gut), calc((100vw - 1240px) / 2 + 28px)); top: calc(50% + var(--navh) / 2); transform: translateY(-50%); width: min(620px, 48vw); }
.h1-ind > .body { margin-top: 14px; }
/* the two building-block marks sit at one height so the card copy lines up */
/* the two white cards share one row grid (subgrid): the mark takes the spare height, and every line of copy
   (label, title, text, chips, link) sits at the same height in both cards, so they finish together at the bottom */
@media (min-width: 761px) {
  .h1-cards { grid-template-rows: minmax(0, 1fr) repeat(5, auto); row-gap: 0; }
  .h1-cards > .h1-card { grid-row: 1 / -1; }
  .h1-cards > a.h1-card { display: grid; grid-template-rows: subgrid; row-gap: 10px; align-content: stretch; }
  .h1-cards > a.h1-card > .h1-icon { height: 100%; min-height: 72px; max-height: 230px; align-self: center; }
  .h1-cards > a.h1-card > .blk-link { align-self: end; justify-self: start; }
  .h1-cards > a.h1-card > .chips { align-self: start; align-content: flex-start; align-items: flex-start; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .h1-cards > a.h1-card > .h1-icon { min-height: 0; }
  .h1-cards > a.h1-card > .chips { display: none; }
  .h1-cards > a.h1-card { row-gap: 8px; }
}

/* ---------- 006 security ---------- */
.h1-sec { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: stretch; }
/* three type-only tiles, stacked so their top and bottom edges meet the points list */
.h1-badges { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.h1-badge-t { flex: 1; min-height: 0; background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 0 28px;
  display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; column-gap: 12px; }
.h1-badge-t b { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1; }
.h1-badge-t > span:last-child { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: right; }
.h1-points { align-self: stretch; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.h1-points li { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.h1-points li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.h1-points li:nth-child(1) { --i: 1 } .h1-points li:nth-child(2) { --i: 2 } .h1-points li:nth-child(3) { --i: 3 } .h1-points li:nth-child(4) { --i: 4 }
.h1-points h3 { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.015em; margin: 0 0 5px; }
.h1-points p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }

/* ---------- 007 stories ---------- */
.h1-stories { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.h1-story { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.h1-story:hover { background: rgba(255,255,255,.68); box-shadow: 0 24px 48px -32px rgba(26,26,26,.35); }
.h1-story > :not(.h1-stat) { margin-left: 8px; margin-right: 8px; }
.h1-stat { flex: 1; min-height: 110px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(26,26,26,.08); }
.h1-stat.ink { background: #0B0B0A; color: #F2F1EC; border-color: #0B0B0A; }
.h1-stat.gold { background: linear-gradient(135deg, #F3E3A8, #D9B866); }
.h1-stat b { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1; }
.h1-stat small { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.h1-story h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.01em; }
.h1-story p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.h1-story ul { display: flex; flex-wrap: wrap; gap: 6px; }
.h1-story li { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; border: 1px solid rgba(26,26,26,.15); border-radius: 999px; padding: 3px 10px; color: var(--body); }

/* ---------- 008 close ---------- */
.h1-end { left: 0; right: 0; margin: 0 auto; width: min(1240px, 100%); padding: 0 var(--gut); top: calc(var(--navh) + clamp(20px, 5vh, 60px)); }
.h1-end .h-xl { max-width: 900px; }
.h1-end .lede { margin-top: 20px; max-width: 520px; }

/* ---------- 009 footer: the site footer, as is ---------- */

/* ---------- HUD (the homepage's) ---------- */
.h1-hud { position: absolute; inset: 0; pointer-events: none; z-index: 6; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #4F4F49; transition: opacity .4s; }
.hud-count { position: absolute; left: var(--gut); bottom: 26px; display: flex; gap: 14px; }
.hud-count b { color: var(--ink); font-weight: 500; }
.hud-label { color: var(--ink); }
.hud-rail { position: absolute; right: 26px; top: calc(50% + var(--navh) / 2); transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; pointer-events: auto; }
.hud-rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 5px 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: #A9A79E; }
.hud-rail i { display: block; width: 14px; height: 1px; background: currentColor; transition: width .4s cubic-bezier(.2,.7,.2,1), background .3s; }
.hud-rail span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.hud-rail:hover span { opacity: 1; transform: none; }
.hud-rail button.on { color: var(--ink); }
.hud-rail button.on i { width: 36px; background: var(--ink-2); box-shadow: 0 0 8px var(--gold-soft); }
.h1-hud.lit, .h1-hud.lit .hud-count b, .h1-hud.lit .hud-label, .h1-hud.lit .hud-rail button.on { color: #F2F1EC; }
.h1-hud.lit .hud-rail button { color: rgba(242,241,236,.45); }
.h1-hud.lit .hud-rail button.on i { background: #F2F1EC; }
.hud-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(26,26,26,.1); }
.hud-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-2), var(--gold-deep)); transform-origin: 0 50%; transform: scaleX(0); }

/* short laptop screens: trim the longest copy */
@media (max-height: 820px) and (min-width: 761px) {
  .h1-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .h1-story p { display: none; }
  .h1-partner { width: min(640px, 50vw); top: calc(50% + var(--navh) / 2 - 18px); }
  .h1-card-ink { gap: 10px; font-size: 12px; overflow: hidden; }
  .pipe { gap: 6px; } .pipe-row.hot { padding: 7px 10px; }
  .manifest { padding-top: 10px; gap: 6px; } .manifest li { padding: 4px 10px; margin-bottom: 4px; }
  .train { flex: 0 0 auto; min-height: 0; padding: 8px 10px; gap: 6px; } .train-plot { display: none; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .manifest li:nth-child(n+5) { display: none; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .manifest li:nth-child(n+4) { display: none; }
  .st-data { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .h1-card h3 { font-size: 20px; }
}

/* phone: the site nav keeps its bar, logo and Book a demo; section links live in the footer */
@media (max-width: 760px) {
  :root { --gut: 20px; }
  .h1-sitenav header nav { display: none !important; }
  .h1-sitenav header > div { flex-wrap: nowrap !important; padding: 12px 20px !important; }
  .h1-sitenav header > div > a:last-child { height: 38px !important; font-size: 14px !important; padding: 0 14px !important; }
  .h-xl { font-size: clamp(34px, 10vw, 44px); }
  .h-lg { font-size: clamp(28px, 8.4vw, 36px); }
  .lede { font-size: 15.5px; }
  .body { font-size: 14.5px; }
  .kicker { font-size: 11px; margin-bottom: 12px; }
  .kicker.pill { white-space: normal; }
  .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .cta { margin-top: 18px; }
  .h1-hero-panel { left: var(--gut); right: var(--gut); width: auto; top: calc(var(--navh) + 20px); translate: none; }
  .h1-hero-panel .lede { margin-top: 14px; }
  .h1-say { left: var(--gut); right: var(--gut); bottom: 96px; }
  .h1-say .h-lg { font-size: clamp(30px, 9vw, 40px); }
  .h1-say-sub { font-size: 17px; margin-top: 14px; }
  .h1-why, .h1-ind { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 58px; transform: none; }
  .h1-why .body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; }
  .rows { margin-top: 14px; } .row { padding: 9px 0; font-size: 13.5px; } .row small { font-size: 10.5px; }
  .h1-curtain-in { bottom: 54px; padding-top: 18px; gap: 14px; }
  .h1-head { grid-template-columns: 1fr; gap: 10px; }
  .h1-cards, .h1-stories { grid-template-columns: 1fr; gap: 10px; flex: none; }
  .h1-card { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; padding: 12px 14px; border-radius: 16px; }
  .h1-icon { grid-row: span 3; width: 64px; height: 64px; }
  .h1-card h3 { font-size: 18px; }
  .h1-card p, .h1-card .chips { display: none; }
  .h1-card .blk-link { font-size: 13px; margin: 0; }
  .h1-card-ink { display: none; }
  .h1-partner { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 58px; transform: none; }
  .h1-sec { grid-template-columns: 1fr; gap: 12px; flex: none; }
  .h1-badges { flex-direction: row; gap: 8px; }
  .h1-badge-t { padding: 12px; border-radius: 14px; grid-template-columns: 1fr; row-gap: 4px; align-content: start; }
  .h1-badge-t { flex: 1 1 auto; } .h1-badge-t b { font-size: 17px; white-space: nowrap; } .h1-badge-t > span:last-child { font-size: 9.5px; text-align: left; }
  .h1-points li { padding: 9px 0; } .h1-points h3 { font-size: 15.5px; margin-bottom: 2px; } .h1-points p { font-size: 12px; line-height: 1.45; }
  .h1-story { padding: 10px; gap: 6px; border-radius: 16px; }
  .h1-stat { flex: none; min-height: 0; padding: 8px 12px; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 10px; }
  .h1-stat b { font-size: 24px; } .h1-stat small { font-size: 9.5px; }
  .h1-story h3 { font-size: 16px; }
  .h1-story p, .h1-story ul, .h1-story .mono { display: none; }
  .h1-end { top: calc(var(--navh) + 16px); }
  .hud-rail, .hud-label { display: none; }
  .hud-count { left: 20px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }

/* last page: the close, with the site footer as its bottom band (no giant wordmark, no second Book a demo) */
.h1-end { bottom: 0; display: flex; flex-direction: column; }
.h1-end > .kicker { align-self: flex-start; }
.h1-endfoot { margin-top: auto; padding-bottom: 58px; }   /* clears the page counter and the draft badge */
.h1-endfoot footer { background: transparent !important; border-top: 1px solid rgba(26,26,26,.14) !important; overflow: visible !important; }
/* the divider breaks around the burst, which sits centred in the footer's open middle */
@media (min-width: 761px) { .h1-endfoot footer { border-image: linear-gradient(90deg, rgba(26,26,26,.14) 0 30%, rgba(26,26,26,0) 37% 63%, rgba(26,26,26,.14) 70% 100%) 1 !important; } }
.h1-endfoot footer > div { padding-left: 0 !important; padding-right: 0 !important; }
.h1-endfoot footer > div:first-child { padding-top: clamp(18px, 3.2vh, 36px) !important; padding-bottom: 14px !important; }
.h1-endfoot footer > div:first-child > div:first-child a { display: none !important; }
.h1-endfoot footer > p[aria-hidden] { display: none !important; }
@media (max-height: 820px) and (min-width: 761px) {
  .h1-endfoot footer > div:first-child > div:last-child > div { gap: 7px !important; }
  .h1-endfoot footer { font-size: 14px; }
}
@media (max-width: 760px) {
  .h1-endfoot { padding-bottom: 50px; }
  .h1-endfoot footer > div:first-child { gap: 14px !important; padding-top: 14px !important; padding-bottom: 8px !important; }
  .h1-endfoot footer > div:first-child > div:first-child { display: none !important; }
  .h1-endfoot footer > div:first-child > div:last-child { gap: 22px !important; font-size: 12.5px !important; }
  .h1-endfoot footer > div:first-child > div:last-child > div { gap: 5px !important; }
  .h1-endfoot footer > div:first-child > div:last-child > div > span { font-size: 10px !important; }
  .h1-end .lede { margin-top: 12px; } .h1-end .cta { margin-top: 14px; }
}

/* why: shorter desktop screens */
@media (min-width: 761px) and (max-height: 820px) {
  .h1-why { top: calc(50% + var(--navh) / 2 - 14px); }
  .h1-why .kicker { margin-bottom: 16px; }
  .h1-why .body { font-size: 16.5px; line-height: 1.5; margin-top: 16px; }
  .h1-why .rows { margin-top: 20px; }
  .h1-why .row { font-size: 16px; padding: 11px 0; }
  .h1-why .row small { font-size: 14px; }
}

@media (max-width: 760px) { .h1-why .row small { font-size: 11.5px; } }

@media (min-width: 761px) and (min-height: 1100px) { .train-legend { display: flex; } }
@media (min-width: 761px) and (max-height: 959px) { .train { flex: 0 0 auto; min-height: 0; } .train-plot { display: none; } }

/* building blocks: true white cards, more air above and below the content in all three */
@media (min-width: 761px) {
  .h1-cards > .h1-card { padding: clamp(26px, 4vh, 44px) 26px clamp(26px, 4vh, 44px); }
  .h1-cards > a.h1-card { background: #FFFFFF; border-color: rgba(26,26,26,.07);
    box-shadow: 0 1px 2px rgba(18,17,15,.05), 0 18px 40px -28px rgba(18,17,15,.35); }
  .h1-cards > a.h1-card:hover { background: #FFFFFF; box-shadow: 0 1px 2px rgba(18,17,15,.06), 0 28px 56px -30px rgba(18,17,15,.45); }
  .h1-cards > a.h1-card .chips i { background: #F4F4F2; }
}
@media (min-width: 761px) and (max-height: 960px) { .h1-card-ink .manifest li { margin-bottom: 4px; padding: 4px 10px; } .h1-card-ink .manifest { padding-top: 10px; } }
@media (min-width: 761px) and (max-height: 760px) { .manifest li:nth-child(n+3) { display: none; } }

/* ---------- 005–007: the main homepage's sections (lists wired to the visual drawn by assets/home-story.js) ---------- */
.h1-stage > .flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
:is(#partner, #industries) .stages { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 470px; }
:is(#partner, #industries) .stage { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid rgba(26,26,26,.12); }
:is(#partner, #industries) .stage:last-child { border-bottom: 1px solid rgba(26,26,26,.12); }
:is(#partner, #industries) .stage-n { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: #8A887F; padding-top: 7px; transition: color .4s; }
:is(#partner, #industries) .stage h3 { font-family: 'Inter Tight', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #8A887F; margin: 0; transition: color .4s; }
:is(#partner, #industries) .stage p { color: #8A887F; line-height: 1.55; font-size: 15px; margin: 4px 0 0; transition: color .4s; }
:is(#partner, #industries) .stage.on h3, :is(#partner, #industries) .stage.on .stage-n { color: #111; }
:is(#partner, #industries) .stage.on p { color: #45453F; }
:is(#partner, #industries) .stage.done h3 { color: #3C3C37; }
:is(#partner, #industries) .stage.on::before { content: ''; position: absolute; left: -18px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
#industries > .body { margin-top: 14px; }
#industries .stages { margin-top: 22px; }
#industries .stage { padding: 12px 0; }
#industries .stage-code { display: inline-block; margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8A887F; background: rgba(255,255,255,.5); border: 1px solid rgba(26,26,26,.1); border-radius: 6px; padding: 4px 8px; transition: color .4s; }
#industries .sector-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.2,.7,.2,1), opacity .5s; }
#industries .sector.on .sector-more { max-height: 200px; opacity: 1; }
#industries .sector.on .stage-code, #industries .sectors.all .stage-code { color: #1A1A1A; }
#industries .sectors.all .stage h3, #industries .sectors.all .stage-n { color: #111; }
#industries .ind-metric { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(26,26,26,.1); }
#industries .ind-metric b { font-family: 'Inter Tight', sans-serif; font-size: 24px; letter-spacing: -0.02em; }
#industries .ind-metric span { font-size: 14px; color: #77776F; }
/* security: copy on the right, the shield of blocks on the left */
.h1-secure { right: max(var(--gut), calc((100vw - 1240px) / 2 + 28px)); top: calc(50% + var(--navh) / 2); transform: translateY(-50%); width: min(560px, 44vw); display: flex; flex-direction: column; gap: 22px; }
.h1-secure .kicker { margin-bottom: 0; align-self: flex-start; }
#industries { width: min(560px, 44vw); }
/* the open sector grows the list downward only (like the main page's sticky column), so the copy and its wires don't jump */
@media (min-width: 761px) { #industries { top: calc(var(--navh) + clamp(20px, 6vh, 70px)); transform: none; } }
.h1-secure .badges { display: flex; flex-wrap: wrap; gap: 12px; }
.h1-secure .badge { display: flex; align-items: center; gap: 12px; border: 1px solid #E4E2DA; background: #FFFFFF; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; line-height: 1.25; }
.h1-secure .badge.dashed { border-style: dashed; border-color: rgba(26,26,26,.18); background: transparent; font-weight: 400; }
.h1-secure .badge .dim { color: #77776F; }
.h1-secure .seal { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #0B0B0A; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; flex: 0 0 auto; box-sizing: border-box; }
.h1-secure .badge.dashed .seal { border: 2px dashed #A9A79E; }
.h1-secure .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #E4E2DA; border: 1px solid #E4E2DA; border-radius: 16px; overflow: hidden; }
.h1-secure .feats > div { background: #FFFFFF; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.h1-secure .feats svg { color: var(--ink); }
.h1-secure .feats h3 { font-size: 16px; font-weight: 600; margin: 0; }
.h1-secure .feats p { color: #55554E; line-height: 1.55; font-size: 14px; margin: 0; }
@media (max-height: 820px) and (min-width: 761px) {
  :is(#partner, #industries) .stages { margin-top: 16px; }
  :is(#partner, #industries) .stage { padding: 10px 0; }
  :is(#partner, #industries) .stage h3 { font-size: 21px; }
  #partner .stage p { font-size: 13.5px; margin-top: 3px; }
  #industries .sector-more p { display: none; }
  .h1-secure { gap: 16px; } .h1-secure .feats > div { padding: 16px 18px; } .h1-secure .feats p { font-size: 13px; }
}
@media (max-width: 1100px) and (min-width: 761px) { :is(#partner, #industries) .stage h3 { font-size: 20px; } }
@media (max-width: 760px) {
  .h1-secure { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 58px; transform: none; gap: 12px; }
  .h1-secure .body, .h1-secure .feats p, .h1-secure .feats svg { display: none; }
  .h1-secure .feats > div { padding: 10px 12px; } .h1-secure .feats h3 { font-size: 13.5px; }
  .h1-secure .badge { padding: 7px 10px; font-size: 12px; } .h1-secure .seal { width: 30px; height: 30px; font-size: 9px; }
  :is(#partner, #industries) .stages { margin-top: 14px; }
  :is(#partner, #industries) .stage { padding: 9px 0; grid-template-columns: 30px 1fr; }
  :is(#partner, #industries) .stage h3 { font-size: 18px; color: #111; }
  :is(#partner, #industries) .stage-n { padding-top: 4px; }
  #partner .stage p { font-size: 12.5px; line-height: 1.45; margin-top: 2px; color: #55554E; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #industries > .body, #industries .sector-more { display: none; }
  :is(#partner, #industries) .stage.on::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { :is(#partner, #industries) :is(.stage p, .stage h3, .stage-n), #industries .sector-more { transition: none; } }

/* ---------- phone fit pass: copy rests just above the bottom edge; each graphic is centred and scaled into the
   measured band between the header and the copy (h1.js fitMobileOrb, home-story.js fitBand), or hidden if it can't fit ---------- */
@media (max-width: 760px) {
  .h1-why, .h1-ind, .h1-partner, .h1-secure { bottom: 28px; }
  #industries { width: auto; }                                    /* the desktop 44vw column squeezed the sector list */
  .h1-why .body { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .h1-curtain-in { bottom: 28px; padding-top: 12px; justify-content: center; }
  .h1-endfoot { padding-bottom: 22px; }
}
/* taller phones have room for the card and story descriptions, so those screens aren't half empty */
@media (max-width: 760px) and (min-height: 740px) {
  .h1-card .h1-icon { grid-row: span 4; }
  .h1-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; }
  .h1-story p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; }
}
/* phone hero: larger tag line, with breathing room above the headline */
@media (max-width: 760px) {
  .h1-hero-panel .kicker { font-size: 13px; line-height: 1.5; margin-bottom: 26px; align-items: flex-start; border-radius: 6px; }
  .h1-hero-panel .kicker .dot { margin-top: calc((1.5em - 8px) / 2); }   /* centred on the first line ("THE"), not the block */
}
/* phone: "We build the model." sits a little higher */
@media (max-width: 760px) { .h1-say { bottom: 150px; } }
/* phone "Why Algodel": copy (and so the orb's band above it) sits higher; each comparison row stays on one line */
@media (max-width: 760px) {
  .h1-why { bottom: 84px; }
  .h1-why .row { white-space: nowrap; gap: 10px; }
  .h1-why .row small { font-size: 10px; letter-spacing: 0; }
  .h1-why .row.own span { font-size: 13px; }
}
/* phone "Two building blocks": the black pipeline card is shown too, condensed (no chart, no checklist);
   the two white cards drop their description lines to make room. Very short phones keep it hidden. */
@media (max-width: 760px) and (min-height: 700px) {
  .h1-cards > .h1-card-ink { display: flex; flex-direction: column; align-items: stretch; padding: 14px 16px; gap: 9px; font-size: 11.5px; border-radius: 16px; }
  .h1-card-ink .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .h1-card-ink .chips i { font-size: 10.5px; padding: 3px 8px; }
  .h1-card-ink .train { padding: 8px 10px; gap: 6px; min-height: 0; flex: 0 0 auto; }
  .h1-card-ink :is(.train-plot, .train-legend) { display: none; }
  .h1-card-ink .manifest { padding-top: 9px; gap: 0; }
  .h1-card-ink .manifest ul, .h1-card-ink .manifest > .pipe-row:first-child { display: none; }
  .h1-cards > a.h1-card p { display: none; }
  .h1-cards > a.h1-card .h1-icon { grid-row: span 3; }
}
/* phone "How we partner": no pillar graphic (data-ma="0"), so the copy fills the screen from the header down,
   "full handover." on its own line, and the four steps share the remaining height evenly */
@media (max-width: 760px) {
  .h1-partner { top: calc(var(--navh) + 30px); bottom: 34px; display: flex; flex-direction: column; }
  .h1-partner .kicker { align-self: flex-start; margin-bottom: 18px; }
  .h1-partner .h-lg { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.08; }
  .h1-partner .h-lg em { display: block; }
  #partner .stages { flex: 1 1 auto; margin-top: 26px; gap: 0; }
  #partner .stage { flex: 1 1 0; align-content: center; padding: 12px 0; }
  #partner .stage h3 { font-size: 21px; }
  #partner .stage-n { padding-top: 6px; font-size: 12.5px; }
  #partner .stage p { font-size: 14px; line-height: 1.5; margin-top: 4px; display: block; -webkit-line-clamp: unset; overflow: visible; }
}

/* ---------- phones, any size (2026-12-02 Android / iPhone pass) ----------
   The stage follows the live viewport (h1.js sets its height as the browser bars come and go), and h1.js
   fitPages() scales a page's copy down slightly when a short phone can't hold it, then falls back to .fit-tight. */
@media (max-width: 760px) {
  /* "We build the model": copy low, the orb fitted into the band above it */
  .h1-say { bottom: clamp(36px, calc(100svh - 560px), 150px); }
  /* "Why Algodel": less lift on short phones so the orb's band above keeps its room */
  .h1-why { bottom: clamp(28px, calc(100svh - 640px), 84px); }
  .h1-why.fit-tight .body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Two building blocks: the black pipeline card shows on every phone */
  .h1-cards > .h1-card-ink { display: flex; flex-direction: column; align-items: stretch; padding: 14px 16px; gap: 9px; font-size: 11.5px; border-radius: 16px; }
  .h1-card-ink .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .h1-card-ink .chips i { font-size: 10.5px; padding: 3px 8px; }
  .h1-card-ink .train { padding: 8px 10px; gap: 6px; min-height: 0; flex: 0 0 auto; }
  .h1-card-ink :is(.train-plot, .train-legend) { display: none; }
  .h1-card-ink .manifest { padding-top: 9px; gap: 0; }
  .h1-card-ink .manifest ul, .h1-card-ink .manifest > .pipe-row:first-child { display: none; }
  .h1-cards > a.h1-card p { display: none; }
  .h1-cards > a.h1-card { grid-template-columns: 52px 1fr; }
  .h1-cards > a.h1-card .h1-icon { grid-row: span 3; width: 52px; height: 52px; }
  .h1-curtain-in { justify-content: center; gap: 12px; }
  .h1-curtain-in.fit-tight .h1-head .body { display: none; }
  .h1-curtain-in.fit-tight .h1-card-ink .chips { display: none; }

  /* Industries: no graphic on phones, so it's one static screen laid out like How we partner:
     header at the top, the three sectors share the rest, each with its line of copy */
  #industries { top: calc(var(--navh) + 30px); bottom: 34px; display: flex; flex-direction: column; }
  #industries .kicker { align-self: flex-start; margin-bottom: 18px; }
  #industries > .body { display: block; margin-top: 12px; }
  #industries .stages { flex: 1 1 auto; margin-top: 18px; gap: 0; }
  #industries .stage { flex: 1 1 0; align-content: center; padding: 12px 0; }
  #industries .stage h3 { font-size: 21px; color: #111; }
  #industries .stage-n { padding-top: 6px; font-size: 12.5px; color: #111; }
  #industries .stage-code { color: #1A1A1A; font-size: 11px; margin-top: 6px; }
  #industries .sector-more { display: block; max-height: none; opacity: 1; overflow: visible; }
  #industries .sector-more p { font-size: 14px; line-height: 1.5; color: #55554E; margin: 8px 0 0; }
  #industries .ind-metric { display: none; }
  #industries.fit-tight > .body, #industries.fit-tight .stage-code { display: none; }
  #partner.fit-tight .stage p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Security: copy at the bottom, the shield fitted into the band above (home-story.js fitBand) */
  .h1-secure { gap: 14px; }
  .h1-secure .badges { gap: 8px; }
  .h1-secure .feats > div { padding: 12px 14px; }
  .h1-secure.fit-tight .badge.dashed { display: none; }

  /* last page: the footer's three link columns sit side by side so the close and footer fit one screen */
  .h1-end { bottom: 0; }
  .h1-endfoot footer > div:first-child > div:last-child { display: grid !important; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px !important; width: 100%; font-size: 12.5px !important; }
  .h1-endfoot footer > div:first-child { padding-top: 16px !important; }
  .h1-endfoot { padding-bottom: 20px; }
  .h1-end.fit-tight .lede { display: none; }
}
/* the comparison rows stay on one line on narrow phones too (360px Androids) */
@media (max-width: 760px) {
  .h1-why .row small { font-size: clamp(8.5px, 2.6vw, 10px); overflow: hidden; text-overflow: ellipsis; }
  .h1-why .row.own span { font-size: clamp(12px, 3.5vw, 13px); }
  .h1-why .row > span { flex: 0 0 auto; }
}
@media (max-width: 400px) {
  .h1-why .row.own { gap: 8px; }
  .h1-why .row.own span { font-size: 12px; }
  .h1-why .row.own small { font-size: 2.35vw; }
}

/* ---------- desktop, any window (short laptops): h1.js fitPages() scales a page's copy to fit, then .fit-tight ---------- */
@media (min-width: 761px) {
  /* the close's orb now sits beside the copy (h1.js fitDeskOrb), so the footer divider runs unbroken */
  .h1-endfoot footer { border-image: none !important; }
  .h1-why.fit-tight .body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  #partner.fit-tight .stages { margin-top: 10px; } #partner.fit-tight .stage { padding: 6px 0; }
  #industries.fit-tight > .body, #industries.fit-tight .sector-more p { display: none; }
  .h1-secure.fit-tight .body, .h1-secure.fit-tight .feats p { display: none; }
  .h1-curtain-in.fit-tight .h1-card p, .h1-curtain-in.fit-tight .h1-story p { display: none; }
  .h1-end.fit-tight .h1-endfoot footer > div:first-child > div:first-child { display: none !important; }
}
/* small laptops / tablets landscape: the header stays on one line */
@media (min-width: 761px) and (max-width: 1180px) {
  .h1-sitenav header > div { flex-wrap: nowrap !important; gap: 16px !important; }
  .h1-sitenav header nav { flex-wrap: nowrap !important; gap: 12px !important; font-size: 13px !important; white-space: nowrap; }
  .h1-sitenav header > div > a:last-child { white-space: nowrap; flex: 0 0 auto; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .h1-sitenav header nav a[href*="artner" i], .h1-sitenav header nav a[href*="areers" i] { display: none !important; }
}
/* phone, last page: the close copy is a left column with the orb to its right (h1.js fitMobileOrb);
   the block sits centred between the header and the footer */
@media (max-width: 760px) {
  .h1-end > .kicker { margin-top: auto; }
  .h1-end > .h-xl { font-size: clamp(27px, 8vw, 33px); line-height: 1; max-width: 60%; }
  .h1-end > .lede { font-size: 14px; line-height: 1.5; max-width: 57%; }
  .h1-end > .cta { max-width: 60%; }
  .h1-end > .cta .btn.big { height: 46px; padding: 0 20px; font-size: 15px; }
  .h1-endfoot { margin-top: auto; }
}
