/* oc/home-cinematic.css, homepage only (v3). White, editorial, hairline.
   Colours are the site's existing light --oc-* tokens (index.html data-theme="light").
   The brand gradient is an accent only (1-2 words, the production route, rings, charts).
   Base rules = the static, fully readable page (no JS, reduced motion, prerender, mobile for now).
   .hs-motion rules = the pinned sequences, added by oc/home-motion.js on desktop only. */

.hs {
  --ink: var(--oc-text, #0A0A0F);
  --body: var(--oc-text-body, rgba(10,10,15,0.85));
  --muted: var(--oc-muted, rgba(10,10,15,0.6));
  --faint: var(--oc-faint, rgba(10,10,15,0.4));
  --line: var(--oc-line, rgba(10,10,15,0.10));
  --line-2: var(--oc-line-strong, rgba(10,10,15,0.20));
  --tint: var(--oc-surface, #F2F1EC);
  --grad: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16,1,.3,1);
  position: relative;
  background: var(--oc-bg, #FAFAF7);
  color: var(--ink);
  overflow-x: clip;
}
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs-wrap { position: relative; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* ── type ─────────────────────────────────────────────────────────────── */
.hs-display {
  font-family: 'Manrope', sans-serif; font-weight: 800; margin: 0; color: var(--ink);
  font-size: clamp(2.8rem, 5.6vw, 6.2rem); line-height: 0.98; letter-spacing: -0.045em;
}
.hs-h2 { font-family: 'Manrope', sans-serif; margin: 0; font-size: clamp(2.2rem, 4.2vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.hs-h3 { font-family: 'Manrope', sans-serif; margin: 0 0 40px; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.025em; }
.hs-muted, .hs-line-alt { color: var(--faint); }
.hs-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hs-line > span { display: block; }
.hs-grad {
  font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hs-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hs-dot { width: 7px; height: 7px; border-radius: 50%; background: #15803D; box-shadow: 0 0 0 4px rgba(21,128,61,0.12); }
.hs-lede { font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.65; color: var(--body); max-width: 34em; margin: 26px 0 0; }
.hs-tags { margin: 14px 0 18px; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ── controls ─────────────────────────────────────────────────────────── */
.hs-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.hs-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: 600 15px/1 'Inter', sans-serif; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
}
.hs-btn-primary { background: var(--ink); color: #FAFAF7; }
.hs-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(139,92,246,0.55); }
.hs-btn-ghost { color: var(--ink); border: 1px solid var(--line-2); }
.hs-btn-ghost:hover { border-color: var(--ink); }
.hs-btn-arrow { transition: transform .35s var(--ease); }
.hs-btn:hover .hs-btn-arrow { transform: translate(2px, -2px); }
.hs-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s; }
.hs-link:hover { border-color: #8B5CF6; }
.hs-link-quiet { color: var(--muted); font-weight: 500; }
.hs a:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 4px; border-radius: 6px; }

/* ── 1. story stage (static base) ─────────────────────────────────────── */
.st-pin { position: relative; padding: 140px 0 96px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.st-copy { display: flex; flex-direction: column; gap: 80px; }
.st-h2 { font: 800 clamp(2.2rem, 3.8vw, 3.9rem)/1.02 'Manrope', sans-serif; letter-spacing: -0.04em; margin: 0; }
.st-layers { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.st-layer { display: grid; grid-template-columns: 30px 128px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.st-layer-num { font: 500 11px 'JetBrains Mono', monospace; color: var(--faint); }
.st-layer strong { font: 700 15px 'Manrope', sans-serif; }
.st-layer span:last-child { font-size: 13.5px; color: var(--muted); }
.st-art { position: relative; }
.st-draw { display: block; width: 100%; height: auto; max-height: 68vh; overflow: visible; }
.st-rail { display: none; }

/* the hairline drawings (story + build) */
.st-draw .ln { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.st-draw .ln-2 { stroke-opacity: 0.32; }
.st-draw .fill-bg { fill: var(--oc-bg, #FAFAF7); }
.st-draw .red { stroke: #E5484D; stroke-opacity: 1; }
.st-draw .ok { fill: #15803D; }
/* sizes are SVG user units (the drawing renders at ~0.65x on a 1400px screen, so 16 ≈ 10.5px) */
.st-draw text { font: 500 16px 'JetBrains Mono', monospace; letter-spacing: 0.1em; fill: var(--muted); }
.st-draw .d-q { font: 400 17px 'Inter', sans-serif; letter-spacing: 0; fill: var(--body); }
.st-draw .d-ok { fill: #15803D; }
.st-draw .d-core-label, .st-draw .d-idea-label { fill: var(--ink); }
.st-draw .d-plate-hi { fill: none; stroke: url(#hs-grad); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.st-draw .d-plate-label { fill: var(--ink); }
.st-draw .d-path-solid, .st-draw .d-uptime { stroke: url(#hs-grad-u); stroke-width: 1.8; }
.st-draw .d-check { stroke: #15803D; stroke-width: 1.6; }
.st-draw .b-conf { fill: url(#hs-grad); }
.hs:not(.hs-motion) .st-draw .d-mid { display: none; }
/* hero drawing (chapter 0 only, desktop motion): blueprint grid, gates, travelling pulse, ping, typed ideas */
.st-draw .d-hero-grid .ln { stroke-opacity: 0.07; }
.st-draw .d-gate .ln { stroke-opacity: 0.55; }
.st-draw .d-gate-hi { opacity: 0; }
.st-draw .d-gate-hi circle, .st-draw .d-gate-hi path { fill: none; stroke: url(#hs-grad-u); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.st-draw .d-gate-icon .ln { stroke-opacity: 0.75; }
.st-draw .d-gate-label { font-size: 14px; fill: var(--ink); }
.st-draw .d-gate-cap { font-size: 12px; letter-spacing: 0.08em; fill: var(--faint); }
.st-draw .d-send circle { fill: var(--ink); }
.st-draw .d-send path { fill: none; stroke: #FAFAF7; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.st-draw .d-comet { fill: none; stroke: url(#hs-grad-u); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 90 2000; stroke-dashoffset: 90; }
.st-draw .d-ping { fill: none; stroke: #8B5CF6; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0; }
.st-draw .d-typed { font: 400 19px 'Inter', sans-serif; letter-spacing: 0; fill: var(--body); }
.st-draw .d-caret { fill: #8B5CF6; }
.st-art { transform-style: preserve-3d; will-change: transform; }

/* ── 1. story stage (motion, desktop) ─────────────────────────────────── */
.hs-motion .st-pin, .hs-motion .seq-pin {
  height: 100vh; height: 100svh; padding: 92px 0 84px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hs-motion .st-copy { display: grid; gap: 0; align-items: center; }
.hs-motion .st-ch { grid-area: 1 / 1; }
.hs-motion .st-ch-0 .st-title { font-size: clamp(2.6rem, 3.9vw, 4.6rem); }
.hs-motion .st-draw .d-draw { stroke-dasharray: 1 1; }
.hs-motion .st-draw .d-mark-a, .hs-motion .st-draw .d-mark-b { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
/* the rail stops short of the shared chatbot pill (bottom-right, ~320px wide) */
.hs-motion .st-rail {
  display: block; position: absolute; left: var(--pad); right: calc(var(--pad) + 330px); bottom: 34px;
}
.st-rail-labels { display: flex; justify-content: space-between; margin-bottom: 12px; }
.st-rail-labels span { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); transition: color .3s; }
.st-rail-labels span.is-active { color: var(--ink); }
.st-rail-line { height: 1px; background: var(--line); }
.st-rail-line i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ── sections ─────────────────────────────────────────────────────────── */
.hs-sec { padding: clamp(96px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.hs-sec-tint { background: var(--tint); }
.hs-sec-head { margin-bottom: clamp(48px, 7vh, 80px); }
.hs-sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.seq { position: relative; }
.seq.hs-sec { padding: 0; }
.seq-pin { position: relative; padding: clamp(96px, 14vh, 160px) 0; }
.seq-head { margin-bottom: clamp(48px, 7vh, 80px); }
.seq-art { display: none; }

/* 2 · what we build */
.seq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.b-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.b-ch { border-top: 1px solid var(--line-2); padding-top: 24px; }
.b-ch .hs-kicker { color: #7C3AED; margin-bottom: 16px; }
.b-title { margin: 0; font: 800 clamp(1.7rem, 2.8vw, 2.9rem)/1.06 'Manrope', sans-serif; letter-spacing: -0.035em; max-width: 13em; }
.b-blurb { margin: 18px 0 0; color: var(--body); line-height: 1.65; max-width: 32em; }

/* 3 · principles */
.hs-models { display: none; }
.p-ring-svg { display: none; }
.hs-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.hs-principles li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.hs-service-num { font: 500 12px 'JetBrains Mono', monospace; color: var(--faint); padding-top: 6px; }
.hs-principles strong { font: 700 clamp(1.3rem, 1.8vw, 1.6rem) 'Manrope', sans-serif; letter-spacing: -0.02em; }
.hs-principles p { grid-column: 2; margin: 10px 0 0; color: var(--body); line-height: 1.6; }
.hs-engage { padding-top: clamp(40px, 6vh, 80px); padding-bottom: clamp(96px, 14vh, 160px); }
.hs-tiers { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hs-tiers li { border-top: 1px solid var(--ink); padding-top: 20px; }
.hs-tiers strong { font: 700 19px 'Manrope', sans-serif; letter-spacing: -0.02em; }
.hs-tiers p, .hs-phases p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.hs-phases-line { display: block; height: 1px; background: var(--line-2); margin-bottom: 24px; }
.hs-phases-line i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; }
.hs-phases ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hs-phases span { display: block; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.hs-phases strong { font: 700 17px 'Manrope', sans-serif; }

/* 4 · work */
.hs-projects { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(72px, 10vh, 120px); }
.hs-project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hs-project:nth-child(even) .hs-project-media { order: 2; }
.hs-project-media { position: relative; height: clamp(360px, 38vw, 520px); background: var(--tint); border-radius: 20px; overflow: hidden; }
.hs-shot { position: absolute; top: 50%; left: 50%; width: clamp(140px, 13vw, 200px); height: auto; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 30px 60px -30px rgba(10,10,15,0.35); }
.hs-shot-0 { transform: translate(-50%, -50%); z-index: 3; }
.hs-shot-1 { transform: translate(-50%, -50%) translateX(66%) rotate(6deg) scale(0.9); z-index: 2; }
.hs-shot-2 { transform: translate(-50%, -50%) translateX(-66%) rotate(-6deg) scale(0.9); z-index: 1; }
.is-web .hs-shot { width: min(86%, 600px); border-radius: 10px; }
.is-web .hs-shot-0 { transform: translate(-50%, -62%); }
.is-web .hs-shot-1 { transform: translate(-42%, -22%) scale(0.86); }
.hs-project-tag { margin: 0 0 14px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #7C3AED; }
.hs-project-name { margin: 0; font: 800 clamp(2.2rem, 3.8vw, 3.8rem)/1 'Manrope', sans-serif; letter-spacing: -0.04em; }
.hs-project-client { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.hs-project-summary { margin: 18px 0 0; color: var(--body); line-height: 1.65; max-width: 32em; }
.hs-project-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 26px 0 0; }

/* 5 · trust */
.hs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0 0 96px; }
.hs-stat { display: flex; flex-direction: column-reverse; gap: 12px; border-top: 1px solid var(--ink); padding-top: 22px; }
.hs-stat dd { margin: 0; font: 800 clamp(2.8rem, 5vw, 4.8rem)/0.95 'Manrope', sans-serif; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.hs-stat dt { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hs-quote-lead { margin: 0 0 72px; }
.hs-quote-lead blockquote { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2.5rem)/1.25 'Manrope', sans-serif; letter-spacing: -0.025em; max-width: 26em; }
.hs-quote-lead figcaption, .hs-quotes figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; font-size: 14px; }
.hs-quote-lead figcaption span, .hs-quotes figcaption span { color: var(--muted); }
.hs-quotes { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.hs-quotes li { border-top: 1px solid var(--line-2); padding-top: 22px; }
.hs-quotes figure { margin: 0; }
.hs-quotes blockquote { margin: 0; color: var(--body); line-height: 1.65; }
.hs-credentials { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; padding: 26px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.hs-upwork { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; text-decoration: none; color: var(--ink); }
.hs-upwork strong { font: 800 18px 'Manrope', sans-serif; color: #15803D; }
.hs-upwork span { color: var(--body); font-size: 14px; }
.hs-compliance { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hs-compliance li { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hs-place { margin: 26px 0 0; color: var(--muted); font-size: 15px; }

/* 6 · finale */
.hs-finale-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hs-finale-mark { width: 84px; height: auto; margin-bottom: 40px; overflow: visible; }
.hs-ring { fill: none; stroke: url(#hs-grad-v); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.hs-finale-title { font-size: clamp(2.6rem, 6.4vw, 6.6rem); }
.hs-finale-inner .hs-lede { margin-left: auto; margin-right: auto; }
.hs-finale-inner .hs-ctas { justify-content: center; }
.hs-finale-phone { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.hs-finale-phone a { color: var(--ink); }

/* ════ sequences in motion (desktop) ════════════════════════════════════ */
.hs-motion .seq-head { margin-bottom: clamp(20px, 3.5vh, 40px); }
.hs-motion .seq-head .hs-h2 { font-size: clamp(1.8rem, 2.8vw, 2.9rem); }
.hs-motion .seq-head .hs-kicker { margin-bottom: 14px; }
.hs-motion .seq-ch { grid-area: 1 / 1; }

/* build */
.hs-motion .seq-build .seq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hs-motion .seq-build .seq-art { display: block; }
.hs-motion .b-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; }
.hs-motion .b-ch { border-top: 0; padding-top: 0; }
.hs-motion .b-title { font-size: clamp(2rem, 3.2vw, 3.4rem); }

/* principles */
.hs-motion .seq-principles .hs-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hs-motion .hs-models { display: block; position: absolute; left: 0; right: 0; top: 17%; overflow: hidden; pointer-events: none; }
.hs-motion .hs-models-row { display: flex; gap: 3em; width: max-content; }
.hs-motion .hs-models-row span { font: 800 clamp(1.4rem, 2.8vw, 2.6rem) 'Manrope', sans-serif; letter-spacing: -0.03em; color: rgba(10,10,15,0.06); white-space: nowrap; }
.hs-motion .p-ring-svg { display: block; width: 76px; height: 76px; margin: 0 auto 26px; overflow: visible; }
.hs-motion .p-ring-svg .ln { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.hs-motion .p-ring-svg .ln-2 { stroke-opacity: 0.18; }
.p-ring { fill: none; stroke: url(#hs-grad-p); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-linecap: round; }
.hs-motion .hs-principles { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 1100px; }
.hs-motion .hs-principles li { display: block; border-top: 0; padding: 0; }
.hs-motion .hs-principles .hs-service-num { display: none; }
.hs-motion .hs-principles strong { display: block; font-size: clamp(2.6rem, 6.4vw, 6.8rem); line-height: 1; letter-spacing: -0.045em; }
.hs-motion .hs-principles p { margin: 22px auto 0; max-width: 34em; font-size: clamp(1rem, 1.2vw, 1.15rem); }

/* work */
.hs-motion .hs-projects { display: grid; gap: 0; }
.hs-motion .hs-project { perspective: 1400px; }
.hs-motion .hs-project:nth-child(even) .hs-project-media { order: 0; }
.hs-motion .hs-project-media { height: min(56vh, 500px); }
.hs-motion .hs-shot { width: clamp(130px, 11.5vw, 185px); }
.hs-motion .is-web .hs-shot { width: min(86%, 580px); }

/* nav.js renders an in-flow spacer that shrinks 76 → 64px on the first scroll, which shifts the
   page under the story pin. The stage pads for the fixed nav itself, so collapse it here. Homepage only. */
#root > div[style*="height 320ms"] { height: 0 !important; }

/* responsive.css sets `html, body { overflow-x: hidden }`; clip avoids a body scroll container. Homepage only. */
html, body { overflow-x: clip !important; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden !important; } }

/* ── below 900px: the static stacked layout (no JS, reduced motion, prerender, landscape phones);
   the animated phone stages are the .hs-motion block at the end of this file */
@media (max-width: 899px) {
  .st-pin { padding: 116px 0 72px; }
  .st-grid { grid-template-columns: 1fr; }
  .st-copy { gap: 56px; }
  .st-art { order: 2; }
  .st-layer { grid-template-columns: 26px 1fr; }
  .st-layer span:last-child { grid-column: 2; }
  .b-copy { grid-template-columns: 1fr; gap: 40px; }
  .hs-principles, .hs-tiers, .hs-phases ol, .hs-quotes { grid-template-columns: 1fr; }
  .hs-project { grid-template-columns: 1fr; gap: 24px; }
  .hs-project:nth-child(even) .hs-project-media { order: 0; }
  .hs-project-media { height: 380px; }
  .hs-shot { width: 140px; }
  .hs-stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-btn, .hs-btn-arrow, .hs-link, .st-rail-labels span { transition: none; }
}

/* ════ sequences in motion (phones and small tablets, < 900px, 2026-10-12) ══════════════════
   The same pinned, scrubbed sequences as desktop, re-composed for a tall narrow screen: each
   stage is one 100svh frame, centred, with the drawing on top and the chapter copy under it.
   oc/*-motion.js fitStages() sets --art-h on each pin to the room the copy leaves (between a
   floor and the drawing's natural height) and zooms a chapter that still does not fit.
   Landscape phones under 560px tall keep the static page (see MQ.motion). */
@media (max-width: 899px) {
  .hs-motion .st-pin, .hs-motion .seq-pin { padding: 74px 0 58px; justify-content: center; }
  .hs-motion .st-pin > .hs-wrap, .hs-motion .seq-pin > .hs-wrap { flex: 0 0 auto; display: flex; flex-direction: column; width: 100%; }

  /* the story / hero stage: drawing above, chapters below */
  .hs-motion .st-grid { gap: 16px; }
  .hs-motion .st-art { order: -1; flex: 0 0 auto; height: var(--art-h, 30svh); display: flex; align-items: center; justify-content: center; }
  /* the drawing bleeds into the side gutters (its viewBox carries its own margins) */
  .hs-motion .st-draw { flex: 0 0 auto; width: calc(100% + 2 * var(--pad) - 8px); height: 100%; max-height: none; margin: 0 calc(4px - var(--pad)); }
  .hs-motion .st-copy { flex: 0 0 auto; order: 2; align-items: start; }
  .hs-motion .st-ch-0 .st-title, .hs-motion .cine-hero .st-ch-0 .cine-h1 { font-size: clamp(2rem, 8.6vw, 2.75rem); }
  .hs-motion .st-h2, .hs-motion .cine-hero .st-h2 { font-size: clamp(1.65rem, 7.2vw, 2.25rem); }
  .hs-motion .hs-lede { font-size: 15px; line-height: 1.55; margin-top: 14px; }
  .hs-motion .hs-kicker { margin-bottom: 12px; font-size: 11px; letter-spacing: 0.14em; }
  .hs-motion .hs-ctas { margin-top: 20px; gap: 10px; }
  .hs-motion .seq-ch .hs-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .hs-motion .st-layers { margin-top: 14px; }
  .hs-motion .st-layer { padding: 6px 0; }
  .hs-motion .st-layer strong { font-size: 14px; }
  .hs-motion .st-layer span:last-child { font-size: 12.5px; }
  .hs-motion .hs-tags { margin: 10px 0 0; }

  /* section heads inside a pin */
  .hs-motion .seq-head { margin-bottom: 14px; flex: 0 0 auto; }
  .hs-motion .seq-head .hs-h2 { font-size: clamp(1.5rem, 6.6vw, 2.1rem); }
  .hs-motion .seq-head .hs-kicker { margin-bottom: 10px; }
  .hs-motion .seq-head.hs-sec-head-row { gap: 8px 20px; }
  .hs-motion .seq-head .hs-lede { display: none; } /* intros read in the static page; the pin keeps its frame */

  /* build-style morph: drawing above the chapter copy */
  .hs-motion .seq-build .seq-grid { display: flex; flex-direction: column; gap: 14px; }
  .hs-motion .seq-build .seq-art { display: flex; order: -1; flex: 0 0 auto; height: var(--art-h, 30svh); align-items: center; justify-content: center; }
  .hs-motion .b-copy { flex: 0 0 auto; align-items: start; }
  .hs-motion .b-title { font-size: clamp(1.5rem, 6.6vw, 2.1rem); }
  .hs-motion .b-blurb { font-size: 15px; line-height: 1.55; margin-top: 12px; }

  /* principles: big statements, centred */
  .hs-motion .seq-principles .hs-wrap { justify-content: center; }
  .hs-motion .hs-models { top: 15%; }
  .hs-motion .p-ring-svg { width: 60px; height: 60px; margin-bottom: 18px; }
  .hs-motion .hs-principles strong { font-size: clamp(2rem, 10vw, 3.2rem); }
  .hs-motion .hs-principles p { margin-top: 14px; font-size: 15px; line-height: 1.55; }

  /* work / showcase: the product above, its story below */
  .hs-motion .hs-projects { flex: 0 0 auto; align-items: start; }
  .hs-motion .hs-project { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hs-motion .hs-project-media { height: var(--art-h, 31svh); border-radius: 16px; }
  .hs-motion .hs-shot { width: clamp(84px, 24vw, 130px); border-radius: 12px; }
  .hs-motion .is-web .hs-shot { width: min(84%, 460px); border-radius: 8px; }
  .hs-motion .hs-project-tag { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.12em; }
  .hs-motion .hs-project-name { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
  .hs-motion .hs-project-client { margin-top: 8px; font-size: 14px; }
  .hs-motion .hs-project-summary { margin-top: 10px; font-size: 14.5px; line-height: 1.55; }
  .hs-motion .hs-project-links { margin-top: 14px; gap: 10px 20px; }

  /* the rail: the line plus the active label only, clear of the chatbot button */
  .hs-motion .st-rail { left: var(--pad); right: calc(var(--pad) + 76px); bottom: 22px; }
  .hs-motion .st-rail-labels { justify-content: flex-start; margin-bottom: 8px; }
  .hs-motion .st-rail-labels span { display: none; font-size: 10px; }
  .hs-motion .st-rail-labels span.is-active { display: inline; }
}
/* short phones (iPhone SE class, < 720px tall): tighter stage, and list rows keep their name only
   inside the pin (the short tag line stays in the static page and the DOM) */
@media (max-width: 899px) and (max-height: 720px) {
  .hs-motion .st-pin, .hs-motion .seq-pin { padding: 68px 0 50px; }
  .hs-motion .st-ch-0 .st-title, .hs-motion .cine-hero .st-ch-0 .cine-h1 { font-size: clamp(1.8rem, 7.8vw, 2.3rem); }
  .hs-motion .st-h2, .hs-motion .cine-hero .st-h2, .hs-motion .b-title, .hs-motion .seq-head .hs-h2 { font-size: clamp(1.4rem, 6.2vw, 1.8rem); }
  .hs-motion .hs-lede, .hs-motion .b-blurb { font-size: 14px; margin-top: 10px; }
  .hs-motion .hs-ctas { margin-top: 14px; }
  .hs-motion .seq-ch .hs-btn { min-height: 40px; }
  .hs-motion .st-layer { padding: 4px 0; }
  .hs-motion .st-layer span:last-child { display: none; }
  .hs-motion .seq-head { margin-bottom: 10px; }
  .hs-motion .hs-principles strong { font-size: clamp(1.8rem, 9vw, 2.6rem); }
}
