html { scroll-behavior: smooth; }
body { margin: 0; background: #F8F2E4; }
a { color: inherit; }

/* Earth grounds (Tho) with a Fire accent (Hoa, which feeds Earth). No blue, black or green. */
.mifu {
  --paper: #F8F2E4; --card: #FFFBF2; --ink: #241A12; --muted: #5F5244; --faint: #746656;
  --rule: #DFD3BC; --rule-soft: #ECE3D1; --rule-strong: #A99C84; --ok: #8A5E00;
  --dark: #241710; --dark-2: #33231A; --dark-rule: #4C3A2D;
  --on-dark: #FAF3E6; --on-dark-muted: #D0C1AB;
  --accent: #BE2D17; --accent-deep: #96210F; --accent-soft: #F7DACE; --accent-on-dark: #F2BC7E; --gold: #C9A24E;
  --sans: 'Be Vietnam Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.6; color: var(--ink);
  background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased;
}

.mifu section { scroll-margin-top: 88px; }
.mifu a:focus-visible, .mifu button:focus-visible, .stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.cta a:focus-visible { outline-color: #fff !important; }
.dark a:focus-visible, .foot a:focus-visible { outline-color: var(--accent-on-dark) !important; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.sec { padding-block: clamp(72px, 9vw, 136px); }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 16px 0 0; font-size: clamp(2.05rem, 4.1vw, 3.8rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.lede { margin: 20px 0 0; max-width: 34em; color: var(--muted); text-wrap: pretty; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(248, 242, 228, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 28px; height: 28px; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 2vw, 30px); }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 2px; border: 1px solid var(--rule-strong); border-radius: 10px; }
.lang-btn { min-width: 42px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-family: var(--mono); font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-on { background: var(--ink); color: var(--paper); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font-family: inherit; font-size: 15.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: none; border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }

/* Hero */
.hero { position: relative; overflow: clip; }
.rules { position: absolute; inset: 0; max-width: 1360px; margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); pointer-events: none; }
.rules span { border-left: 1px solid var(--rule-soft); transform-origin: 50% 0; }
.rules span:last-child { border-right: 1px solid var(--rule-soft); }
.hero-inner { position: relative; padding-block: clamp(48px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.display { margin: 20px 0 0; font-size: clamp(2rem, 5.2vw, 5rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 500; }
.line { display: block; overflow: hidden; padding-block: .14em .16em; margin-block: -.14em -.16em; }
.line > span { display: block; text-wrap: balance; }
.dot { color: var(--accent); font-weight: inherit; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(32px, 3.6vw, 52px); }
.hero-copy p { margin: 0 0 28px; max-width: 30em; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Automation trace */
.trace { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 1px 2px rgba(36, 23, 16, .05), 0 28px 64px -36px rgba(36, 23, 16, .36); overflow: hidden; }
.trace-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-family: var(--mono); font-size: 13px; }
.trace-top > span:last-child { color: var(--muted); }
.trace-bar { height: 2px; background: var(--rule-soft); }
.trace-bar > span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.trace-list { list-style: none; margin: 0; padding: 8px 0; }
.tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px; font-size: 15.5px; transition: color .3s; }
.tick { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.tick svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .4s .05s; }
.tr-note { font-family: var(--mono); font-size: 12.5px; color: var(--ok); opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s var(--ease); }
.is-pending { color: var(--faint); }
.is-active { color: var(--ink); }
.is-active .tick { border-color: var(--accent); }
.is-done { color: var(--ink); }
.is-done .tick { background: var(--ok); border-color: var(--ok); }
.is-done .tick svg { stroke-dashoffset: 0; }
.is-done .tr-note { opacity: 1; transform: none; }
.trace-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--muted); }

/* Platforms */
.plat { border-top: 1px solid var(--rule); }
.plat-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-block: 22px; }
.plat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3.6vw, 56px); }
.plat-list li { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -.02em; }

/* Proof */
.proof { border-block: 1px solid var(--rule); background: var(--card); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat > b { display: block; font-size: clamp(2.3rem, 4.7vw, 4.3rem); line-height: 1.05; letter-spacing: -.05em; font-weight: 500; }
.stat > span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.proof-note { margin: 0; padding: 14px 0 18px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--muted); }

/* Services */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.split-head { position: sticky; top: 112px; align-self: start; }
.svc { border-top: 1px solid var(--rule); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc-h { margin: 0; font: inherit; }
.svc-btn { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 26px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.svc-t { font-size: clamp(1.28rem, 2.3vw, 1.95rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; transition: transform .45s var(--ease), color .2s; }
.svc-btn:hover .svc-t { transform: translateX(8px); color: var(--accent); }
.svc-i { width: 24px; height: 24px; transition: transform .45s var(--ease); }
.is-open .svc-i { transform: rotate(45deg); }
.svc-p { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility .5s; }
.is-open .svc-p { grid-template-rows: 1fr; visibility: visible; }
.svc-pi { overflow: hidden; min-height: 0; }
.svc-pc { padding: 0 40px 30px 56px; color: var(--muted); }
.svc-pc p { margin: 0; max-width: 38em; text-wrap: pretty; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* Work */
.work { background: var(--card); border-block: 1px solid var(--rule); }
.work-head { margin-bottom: clamp(36px, 5vw, 64px); }
.case { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 24px; box-shadow: 0 -18px 44px -30px rgba(36, 23, 16, .32); }
.case-copy { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.case h3 { margin: 4px 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.case-sub { margin: 0; font-size: 1.08rem; }
.case-body { margin: 0; color: var(--muted); text-wrap: pretty; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 6px 0 0; padding-top: 20px; border-top: 1px solid var(--rule-soft); }
.metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.metrics dt { font-size: 14px; line-height: 1.35; color: var(--muted); }
.metrics dd { margin: 0; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin-top: auto; font-weight: 500; color: var(--accent); text-decoration: none; }
.link .ico { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link:hover .ico { transform: translate(3px, -3px); }
.case-note { margin: auto 0 0; padding-top: 10px; font-size: 14px; color: var(--muted); }

.case-sys { background: var(--dark); color: var(--on-dark); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.sys-title { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); }
.sys-list { list-style: none; margin: 0; padding: 0; }
.sys-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--dark-rule); font-size: 15px; line-height: 1.45; }
.sys-list .k { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--accent-on-dark); }
.sys-note { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; }
.flow-col { display: grid; gap: 8px; }
.node { padding: 10px 12px; border: 1px solid var(--dark-rule); border-radius: 8px; background: var(--dark-2); font-size: 14px; line-height: 1.35; }
.node.hub { border-color: var(--accent-on-dark); text-align: center; }
.wire { height: 2px; background-image: repeating-linear-gradient(90deg, var(--accent-on-dark) 0 5px, transparent 5px 10px); }

.also { margin-top: clamp(40px, 5vw, 72px); }
.also-list { margin-top: 16px; }
.also-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) 20px; gap: 16px; align-items: center; min-height: 64px; border-top: 1px solid var(--rule); text-decoration: none; transition: color .2s; }
.also-row:last-child { border-bottom: 1px solid var(--rule); }
.also-row > b { font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; transition: transform .45s var(--ease); }
.also-row > span { color: var(--muted); }
.also-row .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.also-row:hover { color: var(--accent); }
.also-row:hover > b { transform: translateX(8px); }
.also-row:hover .ico { transform: translate(3px, -3px); }

/* Dark: principles and process */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .eyebrow { color: var(--on-dark-muted); }
.prin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.prin article { padding-top: 24px; border-top: 1px solid var(--dark-rule); }
.prin h3 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.prin p { margin: 0; color: var(--on-dark-muted); text-wrap: pretty; }
.proc-block { margin-top: clamp(72px, 9vw, 136px); }
.proc { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
.proc-line { position: absolute; top: 19px; left: 0; right: 0; height: 1px; background: var(--accent-on-dark); transform-origin: 0 50%; }
.pstep { position: relative; padding-top: 58px; }
.pnum { position: absolute; top: 0; left: 0; width: 38px; height: 38px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent-on-dark); background: var(--dark); font-family: var(--mono); font-size: 13px; color: var(--accent-on-dark); }
.pstep h3 { margin: 0 0 8px; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.pstep p { margin: 0; font-size: 15.5px; color: var(--on-dark-muted); text-wrap: pretty; }

/* Digital card: 1em is 1mm on the printed card, so this matches card.html */
.card-sec { background: #EFE5CF; border-block: 1px solid var(--rule); }
.card-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.card-actions { margin-top: 28px; }
.card-hint { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.stage { --w: clamp(260px, 88vw, 540px); position: relative; display: grid; place-items: center; min-height: calc(var(--w) * .611 + 130px); perspective: calc(var(--w) * 2.6); cursor: grab; user-select: none; -webkit-user-select: none; }
.stage.is-grabbing { cursor: grabbing; }
.card-shadow { position: absolute; left: 50%; top: calc(50% + var(--w) * .31 + 16px); width: calc(var(--w) * .86); height: calc(var(--w) * .09); transform: translateX(-50%); background: radial-gradient(closest-side, rgba(36, 23, 16, .32), rgba(36, 23, 16, 0)); pointer-events: none; }
.card3d { position: relative; width: var(--w); height: calc(var(--w) * 55 / 90); font-size: calc(var(--w) / 90); line-height: 1.2; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(-22deg); will-change: transform; touch-action: none; }
.face { position: absolute; inset: 0; box-sizing: border-box; padding: 5.5em 6em; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, 0) 65%); background-size: 260% 100%; background-position: var(--glare, 0%) 0; }
.face-a { background: #FFFBF2; color: var(--ink); transform: translateZ(1.5px); }
.face-b { background: var(--accent); color: #fff; transform: rotateY(180deg) translateZ(1.5px); }
.face a { text-decoration: none; position: relative; z-index: 1; }
.face a:hover { text-decoration: underline; }
.edge { position: absolute; background: var(--gold); }
.edge-t { left: 0; top: -1.5px; width: 100%; height: 3px; transform: rotateX(90deg); }
.edge-b { left: 0; bottom: -1.5px; width: 100%; height: 3px; transform: rotateX(90deg); }
.edge-l { top: 0; left: -1.5px; width: 3px; height: 100%; transform: rotateY(90deg); }
.edge-r { top: 0; right: -1.5px; width: 3px; height: 100%; transform: rotateY(90deg); }
.card-brand { display: flex; align-items: center; gap: 2em; }
.card-brand > svg { width: 7.6em; height: 7.6em; display: block; flex: none; }
.card-brand path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.face-a .card-brand rect { fill: var(--accent); }
.face-a .card-brand path { stroke: #fff; }
.face-b .card-brand rect { fill: #fff; }
.face-b .card-brand path { stroke: var(--accent); }
.card-id > b { display: block; font-size: 3.4em; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.card-id > span { display: block; margin-top: .15em; font-size: 2.35em; line-height: 1.3; color: var(--muted); }
.card-about { margin: 0; font-size: 2.6em; line-height: 1.42; color: var(--muted); }
.card-bottom { display: grid; grid-template-columns: 39em 39em; align-items: end; padding-top: 3em; border-top: .2em solid #D9CDB6; }
.card-who > b { display: block; font-size: 5.1em; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.card-who > span { display: block; margin-top: .4em; font-size: 2.7em; line-height: 1.3; color: var(--muted); }
.card-lines { list-style: none; margin: 0; padding: 0 0 0 1.6em; font-family: var(--mono); }
.card-lines > li { font-size: 2.45em; line-height: 1.55; white-space: nowrap; }
.card-tag { margin: 0; }
.card-tag > span { display: block; font-size: 3.7em; line-height: 1.24; font-weight: 500; letter-spacing: -.02em; }
.card-svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 39em 39em; row-gap: 1em; }
.card-svc > li { display: flex; align-items: center; gap: 1.2em; }
.card-svc > li > svg { width: 2.6em; height: 2.6em; flex: none; fill: none; stroke: #F6D9A4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card-svc > li > span { font-size: 2.55em; line-height: 1.25; }
.card-proof { margin: 0; display: flex; justify-content: space-between; gap: 2em; padding-top: 2.6em; border-top: .2em solid #F0C98A; }
.card-proof > span { font-size: 2.5em; line-height: 1.25; font-weight: 500; white-space: nowrap; }
.card-proof > span:first-child { font-weight: 400; color: #F6D9A4; }

/* Contact */
.cta { background: var(--accent); color: #fff; }
.cta .eyebrow { color: #fff; }
.cta h2 { margin: 16px 0 0; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; }
.cta-mail { display: inline-block; margin-top: clamp(28px, 4vw, 48px); padding-bottom: 6px; max-width: 100%; font-size: clamp(1.4rem, 5.5vw, 5.1rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 100% 3px; background-position: 100% 100%; transition: background-size .6s var(--ease); }
.cta-mail:hover { background-size: 0% 3px; }
.cta p { margin: 28px 0 0; max-width: 36em; font-size: 1.08rem; text-wrap: pretty; }

/* Footer */
.foot { background: var(--dark); color: var(--on-dark-muted); font-size: 14.5px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 32px; }
.foot .brand { color: var(--on-dark); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color .2s; }
.foot nav a:hover { color: var(--on-dark); }
.foot p { margin: 0; }

/* Vietnamese stacks marks above and below the letters, so tight display settings would clip them */
.lang-vi .display { font-size: clamp(2rem, 4.7vw, 4.5rem); line-height: 1.18; letter-spacing: -.03em; }
.lang-vi .h2, .lang-vi .case h3, .lang-vi .cta h2 { line-height: 1.22; letter-spacing: -.025em; }
.lang-vi .svc-t, .lang-vi .prin h3, .lang-vi .pstep h3 { line-height: 1.3; }

/* Layout at narrower widths */
@media (min-width: 1024px) and (min-height: 760px) {
  .case { position: sticky; }
  .case:nth-child(1) { top: 92px; }
  .case:nth-child(2) { top: 106px; }
  .case:nth-child(3) { top: 120px; }
  .case:nth-child(4) { top: 134px; margin-bottom: 0; }
}
@media (max-width: 1023px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .link, .case-note { margin-top: 4px; }
}
@media (max-width: 900px) {
  .hero-foot, .split, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
  .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-line { display: none; }
}
@media (max-width: 720px) {
  .nav { position: static; }
  .nav-inner { padding-block: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 0 8px; }
  .nav-links a { font-size: 14px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-inline: 16px; border-top: 1px solid var(--rule-soft); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .svc-pc { padding: 0 0 26px; }
  .svc-btn { grid-template-columns: 32px minmax(0, 1fr) 24px; }
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .wire { width: 2px; height: 24px; justify-self: center; background-image: repeating-linear-gradient(180deg, var(--accent-on-dark) 0 5px, transparent 5px 10px); }
  .also-row { grid-template-columns: minmax(0, 1fr) 20px; padding-block: 12px; }
  .also-row > span { grid-column: 1; grid-row: 2; }
  .also-row .ico { grid-column: 2; grid-row: 1 / span 2; }
  .proc { grid-template-columns: minmax(0, 1fr); }
  .rules span:nth-child(n+3) { display: none; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .nav-cta { display: none; }
  .tr { grid-template-columns: 22px minmax(0, 1fr); }
  .tr-note { display: none; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
}

/* Motion: everything lives behind this query, so reduced-motion visitors get the finished page */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(125%); } to { transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes draw-down { from { transform: scaleY(0); } to { transform: none; } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 8px var(--accent-soft); } 100% { box-shadow: 0 0 0 10px transparent; } }
  @keyframes march { from { background-position: 0 0; } to { background-position: 10px 10px; } }

  .rules span { animation: draw-down 1.4s var(--ease) both; }
  .rules span:nth-child(2) { animation-delay: .08s; }
  .rules span:nth-child(3) { animation-delay: .16s; }
  .rules span:nth-child(4) { animation-delay: .24s; }
  .hero .eyebrow { animation: fade-up .8s var(--ease) both; }
  .line > span { animation: rise 1.05s var(--ease) both; animation-delay: .08s; }
  .line:nth-child(2) > span { animation-delay: .2s; }
  .line:nth-child(3) > span { animation-delay: .32s; }
  .hero-copy { animation: fade-up .9s var(--ease) .5s both; }
  .trace { animation: fade-up .9s var(--ease) .65s both; }
  .is-active .tick { animation: ping 1.1s ease-out infinite; }
  .wire { animation: march 1s linear infinite; }

  .rv { transition: opacity .85s var(--ease), transform .85s var(--ease); }
  .rv-line { transition: transform 1.8s var(--ease); }
  [data-motion] .rv:not(.in) { opacity: 0; transform: translateY(24px); }
  [data-motion] .rv-line:not(.in) { transform: scaleX(0); }
  .stagger > .rv:nth-child(2) { transition-delay: .08s; }
  .stagger > .rv:nth-child(3) { transition-delay: .16s; }
  .stagger > .rv:nth-child(4) { transition-delay: .24s; }
  .stagger > .rv:nth-child(5) { transition-delay: .32s; }
  .stagger > .rv:nth-child(6) { transition-delay: .4s; }

  @supports (animation-timeline: scroll()) {
    .nav-progress { animation: grow linear both; animation-timeline: scroll(root); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
