/* VitalEdge case study — clinical teal */
:root {
  --ink: #062424;
  --teal-950: #052020;
  --teal-900: #0a3333;
  --teal-800: #0f4444;
  --teal-600: #17706a;
  --mint: #bfe8cf;
  --mint-100: #e3f4ea;
  --mint-50: #f2faf5;
  --paper: #f7faf8;
  --line: #d6e5dd;
  --muted: #557070;
  --signal: #2fe0a6;
  --done: #1aa774;
  --progress: #e3a32b;
  --planned: #7d93a3;
  --danger: #d7584b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(6, 36, 36, .06), 0 8px 28px rgba(6, 36, 36, .08);
  --max: 1120px;
  --head: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- top bar + section indicator ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: rgba(5, 32, 32, .82); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(191, 232, 207, .12);
}
.topbar .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 600 .95rem var(--head); letter-spacing: .02em; }
.topbar .brand img { width: 26px; height: 26px; object-fit: contain; }
.indicator { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.indicator .num { font-family: var(--mono); font-size: .75rem; color: var(--signal); }
.indicator .name { font-size: .85rem; color: var(--mint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.scrollbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scrollbar span { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 10px var(--signal); transition: width .1s linear; }
.dots { display: none; gap: 6px; }
.dots a { width: 8px; height: 8px; border-radius: 50%; background: rgba(191, 232, 207, .25); transition: background .2s, transform .2s; }
.dots a.on { background: var(--signal); transform: scale(1.3); }
@media (min-width: 900px) { .dots { display: flex; } }

/* ---------- sections ---------- */
section { position: relative; padding: 88px 0; scroll-margin-top: 56px; }
@media (min-width: 900px) { section { padding: 120px 0; } }
.dark { background: var(--teal-950); color: #e9f5ef; }
.tint { background: var(--mint-50); }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--teal-600); margin-bottom: 14px; }
.dark .eyebrow { color: var(--signal); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 700; max-width: 18ch; }
.lede { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 1.05rem; }
.dark .lede { color: #a9c9bd; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font: 600 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.done { color: var(--done); background: rgba(26, 167, 116, .12); }
.tag.progress { color: #b67b0c; background: rgba(227, 163, 43, .16); }
.tag.planned { color: #5b7282; background: rgba(125, 147, 163, .16); }
.tag.target { color: var(--teal-600); background: var(--mint-100); }
.dark .tag.planned { color: #b9c9d4; background: rgba(185, 201, 212, .12); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(191, 232, 207, .14); box-shadow: none; }

/* ---------- 01 hero ---------- */
.hero { min-height: 100svh; padding: 96px 0 56px; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 30%, rgba(47, 224, 166, .14), transparent 60%), var(--teal-950); color: #eaf6f0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .sub { margin-top: 18px; font-size: 1.1rem; color: #b5d3c7; max-width: 44ch; }
.role-chip { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(191, 232, 207, .08); border: 1px solid rgba(191, 232, 207, .18); font-size: .9rem; }
.role-chip b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: var(--teal-950); font: 700 .8rem var(--head); }
.proof { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.proof span { padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(191, 232, 207, .2); font-size: .82rem; color: #d6ece2; }
.proof span strong { color: var(--signal); font-weight: 600; }
.note { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: #93b6a9; max-width: 52ch; }
.note svg { flex: none; margin-top: 2px; }

/* the device */
.device-stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.device {
  position: relative; width: 210px; height: 360px; border-radius: 42px;
  background: linear-gradient(160deg, #e9efed 0%, #c7d2cf 45%, #9eaaa7 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.8), inset 0 -6px 14px rgba(0,0,0,.18), 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.15);
  transform: rotate(-8deg); animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-8deg) translateY(-10px); } }
.device .screen {
  position: absolute; left: 18px; right: 18px; top: 22px; height: 168px; border-radius: 22px;
  background: #031414; box-shadow: inset 0 0 0 2px #0d2b2b; overflow: hidden; padding: 12px 14px; color: var(--signal);
}
.device .screen .row { display: flex; justify-content: space-between; font: 600 .62rem var(--mono); letter-spacing: .06em; color: #7fc9ae; }
.device .screen .big { font: 700 1.9rem var(--head); color: #eafff6; margin-top: 2px; }
.device .screen .big small { font-size: .7rem; color: #7fc9ae; margin-left: 4px; }
.device .screen svg { position: absolute; left: 0; right: 0; bottom: 14px; width: 100%; height: 60px; }
.ecg-path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: trace 2.6s linear infinite; filter: drop-shadow(0 0 4px rgba(47, 224, 166, .8)); }
@keyframes trace { to { stroke-dashoffset: 0; } }
.device .logo-plate { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); width: 44px; opacity: .5; filter: invert(1) brightness(.4); }
.device .pads { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; gap: 12px; }
.device .pads i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6fbf9, #8d9b98); box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.device .pads i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #4e6461, #142826); width: 40px; height: 40px; margin-top: -5px; }
.device .clip { position: absolute; right: -14px; top: 210px; width: 14px; height: 70px; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, #8f9c99, #c9d3d0); }
.hero .callout { position: absolute; font: 600 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mint); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero .callout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(47, 224, 166, .2); }
.callout.c1 { top: 10%; left: 4%; } .callout.c3 { top: 32%; left: 0; } .callout.c2 { top: 22%; right: 0; } .callout.c5 { top: 48%; right: -2%; } .callout.c4 { bottom: 12%; right: 2%; }
@media (max-width: 480px) { .hero .callout { font-size: .6rem; } .callout.c2, .callout.c5 { right: 2px; } }
.proto-inset { position: absolute; left: 0; bottom: -6px; width: 150px; border-radius: 14px; overflow: hidden; border: 3px solid #fff; transform: rotate(5deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); background: #fff; }
.proto-inset img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.proto-inset figcaption { font: 600 .58rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--teal-900); padding: 6px 8px; }
.illus-note { position: absolute; right: 0; bottom: -6px; font-size: .68rem; color: #7da396; }
@media (min-width: 900px) { .proto-inset { width: 180px; left: -10px; } }
.scroll-cue { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; color: var(--mint); text-decoration: none; font-size: .85rem; }
.scroll-cue span { width: 22px; height: 34px; border: 2px solid rgba(191, 232, 207, .5); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--signal); animation: cue 1.6s infinite; }
@keyframes cue { 60% { transform: translateY(9px); opacity: 0; } }

/* ---------- 02 problem ---------- */
.problem-grid { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 900px) { .problem-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; } }
.scatter { position: relative; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.scatter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.scatter-head h3 { font-size: 1.05rem; }
.devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transition: all .6s ease; }
@media (min-width: 560px) { .devs { grid-template-columns: repeat(5, 1fr); } }
.dev { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1px dashed #b9cfc4; background: var(--mint-50); text-align: center; font-size: .78rem; font-weight: 500; transition: transform .6s cubic-bezier(.6,.0,.3,1), opacity .5s, border-color .3s; }
.dev svg { width: 34px; height: 34px; color: var(--teal-600); }
.dev small { font: 500 .62rem var(--mono); color: var(--danger); letter-spacing: .04em; }
.links-broken { display: flex; justify-content: space-around; margin: 10px 0; height: 34px; }
.links-broken i { width: 2px; background: repeating-linear-gradient(to bottom, #c9d8d1 0 4px, transparent 4px 8px); position: relative; }
.links-broken i:nth-child(odd)::after { content: "×"; position: absolute; top: 8px; left: -5px; font: 700 .8rem var(--mono); color: var(--danger); background: #fff; line-height: 1; }
.record { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff4f2; border: 1px solid #f1cfc9; font-size: .88rem; }
.record svg { flex: none; color: var(--danger); }
.scatter.merged .dev { transform: scale(.4); opacity: 0; }
.scatter .one { position: absolute; inset: 72px 22px auto 22px; display: grid; place-items: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .5s .35s; text-align: center; }
.scatter.merged .one { opacity: 1; }
.scatter .one .mini { width: 64px; height: 106px; border-radius: 16px; background: linear-gradient(160deg, #eef3f1, #a9b5b2); box-shadow: 0 10px 24px rgba(6,36,36,.25); position: relative; }
.scatter .one .mini::before { content: ""; position: absolute; inset: 8px 7px auto; height: 46px; border-radius: 8px; background: #031414; }
.scatter .one .mini::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #2a3d3b; }
.scatter.merged .links-broken i { background: var(--signal); }
.scatter.merged .links-broken i::after { content: none; }
.scatter.merged .record { background: #eafaf2; border-color: #bfe8cf; }
.scatter.merged .record svg { color: var(--done); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 0; cursor: pointer; background: var(--teal-900); color: #fff; font-weight: 600; font-size: .85rem; transition: background .2s, transform .2s; }
.btn:hover { background: var(--teal-600); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--teal-900); border: 1px solid var(--line); }
.pain { display: grid; gap: 14px; }
.pain .card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pain .card h3 svg { color: var(--teal-600); flex: none; }
.pain .card p { color: var(--muted); font-size: .95rem; }
.pain ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pain li { font-size: .75rem; padding: 4px 10px; border-radius: 99px; background: var(--mint-50); border: 1px solid var(--line); }

/* ---------- 03 product ---------- */
.explorer { margin-top: 44px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .explorer { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.ex-device { position: relative; width: min(300px, 80vw); aspect-ratio: 300 / 460; margin: 0 auto; }
.ex-device svg { width: 100%; height: 100%; }
.hot { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 0; cursor: pointer; background: transparent; display: grid; place-items: center; }
.hot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(47, 224, 166, .25); animation: ping 2s infinite; }
.hot::after { content: attr(data-n); position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--teal-950); font: 700 .75rem var(--head); box-shadow: 0 0 0 3px var(--teal-950); }
.hot[aria-pressed="true"]::after { background: #fff; }
.hot[aria-pressed="true"]::before { background: rgba(255,255,255,.3); }
@keyframes ping { 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ex-tabs button { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(191,232,207,.25); background: transparent; color: #cfe7dc; cursor: pointer; font-size: .85rem; }
.ex-tabs button[aria-selected="true"] { background: var(--signal); color: var(--teal-950); border-color: var(--signal); font-weight: 600; }
.ex-panel { min-height: 250px; }
.ex-panel h3 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 12px; }
.ex-panel h3 small { font: 500 .75rem var(--mono); color: var(--signal); letter-spacing: .06em; text-transform: uppercase; }
.ex-panel dl { margin: 18px 0 0; display: grid; gap: 12px; }
.ex-panel dt { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7fb7a3; }
.ex-panel dd { margin: 2px 0 0; color: #d9ede4; }
.ex-panel .wave { margin-top: 16px; height: 56px; width: 100%; }
.ex-panel .wave path { fill: none; stroke: var(--signal); stroke-width: 2; }
.fade-swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

.flow-wrap { margin-top: 72px; }
.flow-wrap h3 { font-size: 1.35rem; }
.flow { margin-top: 22px; display: grid; gap: 10px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1.1fr auto 1fr auto 1.2fr auto 1fr auto 1fr; align-items: center; gap: 0; } }
.node { border-radius: 16px; padding: 16px; border: 1px solid rgba(191,232,207,.18); background: rgba(255,255,255,.04); }
.node .mono { color: var(--signal); font-size: .66rem; }
.node b { display: block; font: 600 1rem var(--head); margin: 4px 0; }
.node p { font-size: .82rem; color: #a9c9bd; }
.node.ai { background: linear-gradient(135deg, rgba(47,224,166,.18), rgba(47,224,166,.04)); border-color: rgba(47,224,166,.5); }
.node.doc { border-style: dashed; }
.node ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.node li { font-size: .68rem; padding: 2px 7px; border-radius: 6px; background: rgba(191,232,207,.1); }
.arrow { display: grid; place-items: center; height: 30px; }
.arrow svg { width: 22px; height: 30px; transform: rotate(90deg); }
@media (min-width: 900px) { .arrow { width: 40px; height: auto; } .arrow svg { transform: none; width: 40px; height: 22px; } }
.arrow path { stroke: var(--signal); stroke-width: 2; fill: none; stroke-dasharray: 4 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.flow-note { margin-top: 14px; font-size: .82rem; color: #8fb3a6; }

/* ---------- 04 compare ---------- */
.compare { margin-top: 44px; display: grid; gap: 24px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1.1fr 1fr; } }
.bars h3, .matrix h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bars .sub, .matrix .sub { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.bar-row { margin-bottom: 18px; }
.bar-row .lbl { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 500; margin-bottom: 6px; }
.bar-row .lbl span:last-child { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.track { position: relative; height: 16px; border-radius: 99px; background: var(--mint-50); border: 1px solid var(--line); }
.range { position: absolute; top: 2px; bottom: 2px; border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.in .range { transform: scaleX(1); }
.range.ve { background: var(--signal); }
.range.sf { background: #9fbfb2; }
.range.pw { background: #c8d4cf; }
.axis { display: flex; justify-content: space-between; font: 500 .66rem var(--mono); color: var(--muted); margin-top: 4px; }
.matrix table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.matrix th, .matrix td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix th { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.matrix td:first-child { font-weight: 600; white-space: nowrap; }
.matrix .ve { background: var(--mint-50); }
.matrix .yes { color: var(--done); font-weight: 600; }
.saving { margin-top: 18px; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--teal-950); color: #e3f4ea; }
.saving strong { font: 700 2rem var(--head); color: var(--signal); }
.saving p { font-size: .85rem; color: #a9c9bd; }
.matrix-scroll { overflow-x: auto; }
.scatter .one { grid-auto-flow: column; justify-content: center; gap: 14px; font-size: .95rem; }
.scatter .one .mini { width: 46px; height: 76px; border-radius: 13px; }
.scatter .one .mini::before { inset: 6px 5px auto; height: 32px; border-radius: 6px; }
.scatter .one .mini::after { bottom: 9px; width: 11px; height: 11px; margin-left: -5.5px; }
.scatter.merged .links-broken i:not(:nth-child(3)) { opacity: 0; }
.links-broken i { transition: opacity .4s, background .4s; }

/* ---------- 05 testing ---------- */
.test-grid { margin-top: 44px; display: grid; gap: 20px; }
@media (min-width: 900px) { .test-grid { grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #dfe9e4; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.gallery figure.wide img { aspect-ratio: 16 / 9; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(5, 32, 32, .78); color: #e3f4ea; font-size: .72rem; line-height: 1.35; }
.real-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: var(--signal); color: var(--teal-950); font: 700 .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.stat-big { display: flex; align-items: center; gap: 18px; }
.stat-big strong { font: 700 3.6rem/1 var(--head); color: var(--teal-600); }
.stat-big p { color: var(--muted); font-size: .92rem; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; font-size: .92rem; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2317706a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.challenges { margin-top: 40px; display: grid; gap: 14px; }
@media (min-width: 760px) { .challenges { grid-template-columns: repeat(3, 1fr); } }
.challenge h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.challenge p { font-size: .88rem; color: var(--muted); }
.challenge .next { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink); }
.challenge .next b { font: 600 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); display: block; }
.challenge svg.mini { width: 100%; height: 64px; display: block; border-radius: 10px; background: var(--mint-50); }
.honest { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--progress); background: #fff8ea; border-radius: 0 12px 12px 0; font-size: .88rem; }

/* ---------- 06 recognition ---------- */
.ladder { margin-top: 40px; display: grid; gap: 0; position: relative; }
@media (min-width: 900px) { .ladder { grid-template-columns: repeat(4, 1fr); } }
.rung { position: relative; padding: 0 0 22px 34px; }
.rung::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: -6px; width: 2px; background: rgba(191,232,207,.2); }
.rung:last-child::before { display: none; }
.rung::after { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-950); border: 2px solid var(--signal); }
.rung.top::after { background: var(--signal); box-shadow: 0 0 0 6px rgba(47,224,166,.2); }
@media (min-width: 900px) {
  .rung { padding: 34px 16px 0 0; }
  .rung::before { left: 6px; right: -6px; top: 8px; bottom: auto; width: auto; height: 2px; }
  .rung::after { left: 0; top: 2px; }
}
.rung b { display: block; font: 600 1rem var(--head); color: #fff; }
.rung p { font-size: .84rem; color: #a9c9bd; margin-top: 4px; }
.rung .mono { color: var(--signal); font-size: .64rem; }
.evidence { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 760px) { .evidence { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.shot { margin: 0; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(191,232,207,.18); background: #000; }
.shot img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 10px; font-size: .84rem; color: #c7e1d6; }
.shot figcaption small { display: block; color: #7fa999; font-size: .74rem; margin-top: 3px; }
.side-cards { display: grid; gap: 16px; }
.quote { position: relative; }
.quote blockquote { margin: 0; font: 600 1.05rem/1.4 var(--head); color: #fff; }
.quote blockquote::before { content: "“"; display: block; font: 700 2.6rem/0.6 var(--head); color: var(--signal); margin-bottom: 8px; }
.quote p { margin-top: 10px; font-size: .8rem; color: #8fb3a6; }
.quote img { margin-top: 12px; border-radius: 10px; }
.invite { display: flex; gap: 14px; align-items: center; }
.invite .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,224,166,.14); color: var(--signal); }
.invite b { font-family: var(--head); color: #fff; }
.invite p { font-size: .84rem; color: #a9c9bd; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(2, 16, 16, .85); }
dialog.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
dialog.lightbox button { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 1.2rem; }

/* ---------- 07 brand ---------- */
.brand-top { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 900px) { .brand-top { grid-template-columns: 1fr 1.4fr; align-items: stretch; } }
.ig-card { display: flex; gap: 16px; align-items: center; text-decoration: none; background: linear-gradient(135deg, #3d6bff, #8b3dff); color: #fff; border: 0; }
.ig-card img { width: 120px; border-radius: 12px; flex: none; }
.ig-card b { font-family: var(--head); font-size: 1.1rem; display: block; }
.ig-card p { font-size: .85rem; opacity: .9; margin-top: 4px; }
.vote-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: s; }
@media (min-width: 560px) { .vote-steps { grid-template-columns: repeat(4, 1fr); } }
.vote-steps li { list-style: none; counter-increment: s; padding: 12px; border-radius: 12px; background: var(--mint-50); border: 1px solid var(--line); font-size: .82rem; }
.vote-steps li::before { content: "0" counter(s); display: block; font: 700 .7rem var(--mono); color: var(--teal-600); margin-bottom: 4px; }
.vote-steps { padding: 0; margin: 12px 0 0; }
.embeds { margin-top: 24px; display: grid; gap: 16px; }
@media (min-width: 760px) { .embeds { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.embed { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); min-height: 200px; }
.embed blockquote, .embed iframe { margin: 0 !important; padding: 0 !important; max-width: 100% !important; background: none !important; min-width: 0 !important; width: 100% !important; border: 0 !important; box-shadow: none !important; }
.embed .fallback { display: flex; flex-direction: column; gap: 10px; padding: 18px; text-decoration: none; color: var(--ink); min-height: 200px; justify-content: space-between; background: linear-gradient(160deg, var(--mint-50), #fff); }
.embed .fallback b { font-family: var(--head); font-size: 1.05rem; }
.embed .fallback span { font-size: .85rem; color: var(--muted); }
.embed .fallback em { font-style: normal; font-weight: 600; color: var(--teal-600); font-size: .85rem; }
.embed-label { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-600); padding: 12px 14px 0; display: block; }

/* ---------- 08 GTM ---------- */
.gtm { margin-top: 40px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .gtm { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.hub { width: 100%; max-width: 480px; margin: 0 auto; display: block; }
.hub .spoke { stroke: rgba(191,232,207,.35); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
.hub text { font-family: var(--body); }
.hub .chan circle { fill: #0f3a3a; stroke: rgba(191,232,207,.4); stroke-width: 1.5; transition: fill .2s; }
.hub .chan { cursor: pointer; }
.hub .chan:hover circle, .hub .chan.on circle { fill: #155050; stroke: var(--signal); }
.chan-list { display: grid; gap: 10px; }
.chan-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(191,232,207,.14); transition: border-color .2s, background .2s; }
.chan-item.on { border-color: var(--signal); background: rgba(47,224,166,.06); }
.chan-item .n { grid-row: span 2; font: 700 .8rem var(--mono); color: var(--signal); padding-top: 3px; }
.chan-item .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chan-item b { font-family: var(--head); color: #fff; }
.chan-item p { font-size: .85rem; color: #a9c9bd; }
.phases { margin-top: 28px; display: grid; gap: 10px; }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed rgba(191,232,207,.2); font-size: .84rem; color: #a9c9bd; }
.phase b { display: block; color: #fff; font-family: var(--head); font-size: .92rem; }

/* ---------- 09 roadmap ---------- */
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.road { margin-top: 32px; position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.steps .fill { position: absolute; left: 13px; top: 14px; width: 2px; background: var(--done); }
.step button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; width: 100%; padding: 10px 0; }
.step .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--planned); }
.step.done .dot { background: var(--done); border-color: var(--done); }
.step.done .dot::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.step.progress .dot { border-color: var(--progress); }
.step.progress .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--progress) 0 60%, transparent 0); }
.step .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.step button[aria-expanded="true"] .t { color: var(--teal-600); }
.step .detail { display: none; margin: 0 0 10px 42px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.step .detail b { color: var(--ink); font-weight: 600; }
.step.open .detail { display: block; animation: swap .3s ease; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(9, 1fr); }
  .steps::before { left: 14px; right: 14px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .steps .fill { left: 14px; top: 13px; height: 2px; width: 0; }
  .step button { grid-template-columns: 1fr; justify-items: start; gap: 10px; padding: 0 8px 0 0; align-items: start; }
  .step .t { font-size: .82rem; flex-direction: column; align-items: flex-start; gap: 6px; }
  .step .detail { display: none !important; }
  .road-detail { display: block !important; }
}
.road-detail { display: none; margin-top: 26px; }
.road-detail h3 { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.road-detail p { margin-top: 8px; color: var(--muted); }
.road-detail .ev { margin-top: 10px; font-size: .82rem; color: var(--ink); }
.road-detail .ev b { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-600); margin-right: 6px; }

/* ---------- 10 team + role ---------- */
.team-grid { margin-top: 40px; display: grid; gap: 20px; }
@media (min-width: 900px) { .team-grid { grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; } }
.wheel { width: 100%; max-width: 340px; margin: 0 auto; display: block; }
.wheel text { font-family: var(--head); font-weight: 600; }
.role h3 { font-size: 1.3rem; }
.role .title { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-600); }
.role > p { margin-top: 10px; color: var(--muted); }
.pipeline { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
@media (min-width: 560px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }
.pipeline li { position: relative; padding: 12px; border-radius: 12px; background: var(--mint-50); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.pipeline li b { display: block; font: 600 .9rem var(--head); color: var(--ink); margin-bottom: 3px; }
.unit { margin-top: 20px; }
.unit .mono { color: var(--muted); font-size: .66rem; }
.stack { margin-top: 8px; display: flex; height: 40px; border-radius: 10px; overflow: hidden; font-size: .74rem; font-weight: 600; }
.stack span { display: grid; place-items: center; color: #fff; white-space: nowrap; overflow: hidden; }
.stack .c1 { background: var(--teal-800); }
.stack .c2 { background: var(--signal); color: var(--teal-950); }
.stack-key { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .78rem; color: var(--muted); }
.learned { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--teal-950); color: #d6ece2; }
.learned b { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--signal); }
.learned ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem; }

/* ---------- 11 links ---------- */
.link-grid { margin-top: 36px; display: grid; gap: 12px; }
@media (min-width: 760px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.lnk { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 16px; border-radius: 14px; border: 1px solid rgba(191,232,207,.18); transition: border-color .2s, transform .2s, background .2s; }
.lnk:hover { border-color: var(--signal); transform: translateY(-2px); background: rgba(47,224,166,.05); }
.lnk .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(191,232,207,.08); color: var(--signal); }
.lnk b { display: block; font-family: var(--head); color: #fff; font-size: .95rem; }
.lnk span { font-size: .8rem; color: #8fb3a6; }
footer { background: var(--teal-950); color: #8fb3a6; padding: 28px 0 40px; border-top: 1px solid rgba(191,232,207,.1); font-size: .8rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-row .scroll-cue { margin-top: 0; }
.role-link { color: var(--signal); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(47,224,166,.4); }
.role-link:hover { border-color: var(--signal); }
/* grid children may shrink below their content width (tables, long words) */
.hero-grid > *, .problem-grid > *, .explorer > *, .compare > *, .test-grid > *, .evidence > *, .brand-top > *, .gtm > *, .team-grid > *, .link-grid > * { min-width: 0; }
.matrix table { min-width: 420px; }
@media (max-width: 480px) {
  .device-stage { min-height: 380px; }
  .device { width: 170px; height: 292px; border-radius: 34px; }
  .device .screen { height: 136px; left: 14px; right: 14px; top: 18px; }
  .device .logo-plate { bottom: 92px; width: 36px; }
  .device .pads { bottom: 22px; }
  .device .clip { top: 170px; height: 56px; }
  .callout.c3 { top: 40%; }
  .proto-inset { width: 130px; }
}

/* team members */
.members { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.members li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.members .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-900); color: var(--mint); font: 700 .78rem var(--head); }
.members b { display: block; font-family: var(--head); font-size: .95rem; }
.members span:not(.av) { font-size: .8rem; color: var(--muted); }
.members li.me { border-color: var(--signal); background: var(--mint-50); }
.members li.me .av { background: var(--signal); color: var(--teal-950); }
.members b, .members span:not(.av) { line-height: 1.35; } .members span:not(.av) { display: block; margin-top: 2px; }

/* term sheet highlight */
.ts-chip { margin-top: 24px; display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(47,224,166,.22), rgba(47,224,166,.06)); border: 1px solid rgba(47,224,166,.55); }
.ts-chip .mono { color: var(--signal); font-size: .68rem; }
.ts-chip b { font: 700 1.25rem var(--head); color: #fff; }
.ts-card { background: linear-gradient(135deg, rgba(47,224,166,.2), rgba(47,224,166,.04)) !important; border-color: rgba(47,224,166,.55) !important; }
.ts-card .mono { color: var(--signal); font-size: .68rem; }
.ts-card b { display: block; margin-top: 4px; font: 700 1.3rem var(--head); color: #fff; }
.ts-card p { margin-top: 6px; font-size: .84rem; color: #a9c9bd; }

@media (min-width: 760px) { .link-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
