:root {
  --teal-900: #062a2c;
  --teal-800: #0b3b3f;
  --teal-700: #0f5c5e;
  --teal-600: #0f766e;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;

  --ink: #10201f;
  --muted: #55706d;
  --line: #d9ebe8;
  --bg: #ffffff;
  --tint: #f4faf9;

  --wrap: 68rem;
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--teal-600); text-decoration: none; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.375rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 46rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--teal-300); }

.lead { font-size: 1.125rem; color: rgba(255,255,255,.78); max-width: 38rem; }
.lead--dark { color: var(--muted); }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-stuck { border-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 1rem; height: 4rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
}
.brand__mark { width: 28px; height: 28px; color: var(--teal-600); }

.nav { display: none; gap: 1.5rem; margin-left: 1.5rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.9375rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav { display: flex; } }

.lang { margin-left: auto; display: flex; gap: 2px; background: var(--tint); padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang button {
  font: inherit; font-size: 0.8125rem; font-weight: 600;
  background: none; border: 0; color: var(--muted);
  padding: 0.3rem 0.65rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--teal-600); color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--teal-900);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb--1 { width: 34rem; height: 34rem; left: -12rem; top: -10rem; background: var(--teal-600); }
.orb--2 { width: 26rem; height: 26rem; right: -8rem; top: 20%; background: var(--teal-500); animation-duration: 22s; animation-delay: -6s; }
.orb--3 { width: 20rem; height: 20rem; left: 30%; bottom: -12rem; background: var(--teal-700); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(3rem, -2rem, 0) scale(1.12); }
}

.hero__in { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .hero { padding: 6rem 0 7rem; }
  .hero__in { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; }
}
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: -0.025em;
}
.hero .lead { margin-bottom: 1.75rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-600); color: #fff;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  box-shadow: 0 10px 24px -14px rgba(15,118,110,.8);
}
.btn:hover { transform: translateY(-2px); background: var(--teal-700); }
.btn--light { background: #fff; color: var(--teal-900); box-shadow: 0 10px 28px -14px rgba(0,0,0,.6); }
.btn--light:hover { background: var(--teal-100); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

/* hero 3D point cloud */
.hero__art { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
#cloud { width: min(100%, 30rem); aspect-ratio: 1; height: auto; display: block; }
.cloud__label { position: relative; height: 1.4rem; width: 100%; text-align: center; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); }
.cloud__label span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .6s; }
.cloud__label span.on { opacity: .9; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
@media (min-width: 900px) { .section { padding: 6rem 0; } }
.section--tint { background: var(--tint); }
.section--dark { background: var(--teal-800); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.8); }
.section--dark .lead { color: rgba(255,255,255,.78); }

.sub { margin: 3rem 0 1.25rem; font-size: 1.375rem; }

/* directions: branching tree */
.tree { margin-top: 2.5rem; position: relative; }
.tree__root {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem .55rem .6rem; border-radius: 999px;
  background: var(--teal-900); color: #fff; font-weight: 600;
  position: relative; z-index: 1;
}
.tree__root svg { width: 26px; height: 26px; color: var(--teal-500); }
.tree__fork { display: none; }

.branches { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
.branch { --line: var(--teal-600); position: relative; }
.branch__tag {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--line);
}
.branch__tag b { font-weight: 700; padding: .1rem .5rem; border-radius: 6px; background: var(--line); color: #fff; letter-spacing: 0; }
.branch--r .branch__tag b { background: transparent; color: var(--line); box-shadow: inset 0 0 0 1.5px var(--line); }
.branch h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.branch__for { color: var(--muted); margin-bottom: 1.25rem; }

.nodes { list-style: none; margin: 0 0 1.25rem; padding: 0; position: relative; display: grid; gap: 1.1rem; }
.nodes::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px;
  background: var(--line);
  transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease) .4s;
}
.branch--r .nodes::before {
  background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px);
}
.tree.in .nodes::before { transform: scaleY(1); }
.nodes li { display: flex; gap: 1rem; align-items: flex-start; }
.node {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: .2rem;
  background: var(--line); box-shadow: 0 0 0 5px var(--card, #fff); position: relative; z-index: 1;
}
.branch--r .node { background: var(--card, #fff); box-shadow: inset 0 0 0 3px var(--line), 0 0 0 5px var(--card, #fff); }
.nodes strong { display: block; font-weight: 600; }
.nodes em {
  display: inline-block; font-style: normal; font-size: .75rem; font-weight: 600;
  color: var(--line); margin: .1rem 0 .3rem;
}
.nodes p { color: var(--muted); font-size: .9375rem; }
.nodes li:first-child strong { font-size: 1.1rem; }

.branch--c { --line: var(--teal-600); }
.branch--r { --line: var(--teal-500); }

@media (min-width: 820px) {
  .tree { display: flex; flex-direction: column; align-items: center; }
  .tree__fork { display: block; width: 100%; height: 110px; margin: -2px 0 0; overflow: visible; }
  .fork { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.2s var(--ease) .15s; }
  .fork--c { stroke: var(--teal-600); }
  .fork--r { stroke: var(--teal-500); stroke-dasharray: 6 5; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s .5s; }
  .tree.in .fork--c { stroke-dashoffset: 0; }
  .tree.in .fork--r { opacity: 1; }
  .branches { grid-template-columns: 1fr 1fr; gap: 4%; width: 100%; margin-top: 0; }
  .branch { padding: 1.75rem 1.75rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card, #fff); }
  .branch--c { --card: var(--tint); border-color: transparent; }
  .branch--r { --card: #fff; border-style: dashed; border-color: #b5ded7; }
}

.more { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* medscribe */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.step__n {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-600); color: #fff; font-weight: 700; font-size: .9rem;
}
.steps strong { display: block; margin-bottom: .2rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; }

.cols { display: grid; gap: 1rem; }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.col p { color: var(--muted); font-size: 0.9875rem; }

.pilot { margin-top: 3rem; max-width: 44rem; }
.pilot .sub { margin-top: 0; }
.pilot .btn { margin-top: .75rem; }

/* research */
.projects { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.project {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  background: #fff; display: grid; gap: 1.25rem;
  transition: transform .35s var(--ease), border-color .3s;
}
@media (min-width: 900px) {
  .project { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; padding: 2rem; align-items: center; }
}
.project:hover { transform: translateY(-3px); border-color: var(--teal-300); }
.project > * { position: relative; z-index: 1; }
.project__text h3 { font-size: 1.35rem; margin: .5rem 0 .5rem; }
.project__text p { color: var(--muted); font-size: .9875rem; }
.project__status { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; color: var(--muted); }
.project__status em { font-style: normal; font-weight: 600; }
.project__status span { width: 8px; height: 8px; border-radius: 50%; background: #c2d3d0; }
.project__status--live span { background: var(--teal-500); box-shadow: 0 0 0 0 rgba(20,184,166,.5); animation: pulse 2s infinite; }
.project__status--live em { color: var(--teal-600); }
.project__status--done span { background: var(--teal-800); }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(20,184,166,0); } }

.facts { list-style: none; margin: .9rem 0 1rem; padding: 0; display: grid; gap: .35rem; font-size: .9rem; color: var(--ink); }
.facts li { padding-left: 1rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-500); }

.gallery { display: grid; gap: .75rem; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr) minmax(0, 1fr); height: 18rem; }
.gallery.gallery--3 figure { aspect-ratio: auto; height: 100%; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--teal-900); aspect-ratio: 4 / 3; position: relative; }
.gallery--1 figure { aspect-ratio: 16 / 9; }
.gallery--3 figure:first-child img { object-position: top; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .gallery img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .4rem .6rem;
  font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(6,42,44,.85));
}
.gallery figure.missing { background: repeating-linear-gradient(135deg, var(--tint) 0 10px, #e9f3f1 10px 20px); }
.gallery figure.missing img { display: none; }
.gallery figure.missing figcaption { color: var(--muted); background: none; top: 0; display: flex; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 639px) {
  .gallery--3 { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; height: 20rem; }
  .gallery--3 figure:first-child { grid-row: span 2; }
}

.research__open { margin-top: 1.5rem; color: var(--muted); }
.research__open a { font-weight: 600; }

/* partners */
.who { display: grid; gap: 1.25rem; margin: 2.25rem 0; }
@media (min-width: 760px) { .who { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.who h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.who p { font-size: .9875rem; }

/* contact */
.contacts { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.contacts .btn { gap: .5rem; }
.contacts__handle { color: var(--muted); font-weight: 500; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 1.75rem 0; color: var(--muted); font-size: .875rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.branches .reveal:nth-child(2), .steps .reveal:nth-child(2), .who .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .who .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .project__status--live span { animation: none !important; }
  .fork { transition: none; }
}

/* ---------- v3 additions ---------- */

/* scroll progress line */
.progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  transform: scaleX(var(--p, 0)); transform-origin: left;
}

/* cursor spotlight on cards */
.branch, .project { --mx: 50%; --my: 50%; }
.branch::after, .project::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(20,184,166,.12), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.branch:hover::after, .project:hover::after { opacity: 1; }
.branch > * { position: relative; z-index: 1; }
.project { position: relative; overflow: hidden; }
.project > * { position: relative; z-index: 1; }

/* hero: highlight + gentle parallax */
.hero h1 em { font-style: normal; color: var(--teal-300); }
.hero__bg { will-change: transform; transition: transform .6s var(--ease); }

/* step connector (desktop) */
.steps { position: relative; }
@media (min-width: 760px) {
  .steps::before {
    content: ""; position: absolute; left: 1rem; right: 1rem; top: 1rem; height: 2px;
    background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.2s var(--ease) .3s;
  }
  .steps.in::before { transform: scaleX(1); }
  .steps li { position: relative; flex-direction: column; gap: 1rem; }
}
.step__n { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--tint); }

/* data column icons */
.col { position: relative; }
.col__icon {
  width: 28px; height: 28px; margin-bottom: .75rem; color: var(--teal-600);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}


@media (prefers-reduced-motion: reduce) {
  .steps::before { transition: none; }
  .hero__bg { transition: none; }
}

/* ---------- direction tags + section rules ---------- */
.dirtag {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600);
}
.dirtag b { font-weight: 700; padding: .1rem .5rem; border-radius: 6px; background: var(--teal-600); color: #fff; letter-spacing: 0; }
.dirtag--r { color: var(--teal-500); }
.dirtag--r b { background: transparent; color: var(--teal-500); box-shadow: inset 0 0 0 1.5px var(--teal-500); }
.section--commercial { border-top: 3px solid var(--teal-600); }
.section--research { border-top: 3px dashed var(--teal-400); }

/* ---------- medscribe: benefits ---------- */
.benefits { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.benefits li { border-left: 3px solid var(--teal-500); padding-left: .9rem; }
.benefits strong { display: block; font-weight: 650; margin-bottom: .15rem; }
.benefits span { color: var(--muted); font-size: .9375rem; }

/* ---------- medscribe: staged demo ---------- */
.demo {
  margin: 2rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 30px 60px -40px rgba(6,42,44,.35); overflow: hidden;
}
.demo__tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--tint); }
.demo__tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem .5rem; font-size: .8125rem; font-weight: 600; color: var(--muted);
  position: relative; transition: color .3s;
}
.demo__tab i {
  font-style: normal; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center;
  background: #dbe9e6; color: var(--muted); font-size: .75rem; transition: background .3s, color .3s;
}
.demo__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal-600); transform: scaleX(0); transition: transform .4s var(--ease); }
.demo[data-stage="1"] [data-tab="1"], .demo[data-stage="2"] [data-tab="2"], .demo[data-stage="3"] [data-tab="3"] { color: var(--ink); }
.demo[data-stage="1"] [data-tab="1"] i, .demo[data-stage="2"] [data-tab="2"] i, .demo[data-stage="3"] [data-tab="3"] i { background: var(--teal-600); color: #fff; }
.demo[data-stage="1"] [data-tab="1"]::after, .demo[data-stage="2"] [data-tab="2"]::after, .demo[data-stage="3"] [data-tab="3"]::after { transform: scaleX(1); }
.demo[data-stage="2"] [data-tab="1"] i, .demo[data-stage="3"] [data-tab="1"] i, .demo[data-stage="3"] [data-tab="2"] i { background: var(--teal-100); color: var(--teal-700); }
@media (max-width: 479px) { .demo__tab span { display: none; } }

.demo__body { position: relative; min-height: 22rem; }
@media (min-width: 760px) { .demo__body { min-height: 24rem; } }
.demo__panel {
  position: absolute; inset: 0; padding: 1.5rem; opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.demo[data-stage="1"] [data-panel="1"], .demo[data-stage="2"] [data-panel="2"], .demo[data-stage="3"] [data-panel="3"] { opacity: 1; transform: none; }
.demo__caption { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 1rem; }

/* stage 1 */
.demo__rec { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.mic { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--teal-600); display: grid; place-items: center; }
.mic svg { width: 2rem; height: 2rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mic__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-500); opacity: 0; }
.demo[data-stage="1"] .mic__ring { animation: ring 2s ease-out infinite; }
.demo[data-stage="1"] .mic__ring:nth-child(2) { animation-delay: 1s; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
.rec__wave { display: flex; align-items: center; gap: 3px; height: 2.5rem; }
.rec__wave b { width: 3px; border-radius: 2px; background: var(--teal-500); height: 30%; }
.demo[data-stage="1"] .rec__wave b { animation: bar 1.1s ease-in-out infinite; }
.rec__wave b:nth-child(3n) { animation-delay: -.35s; height: 90%; }
.rec__wave b:nth-child(3n+1) { animation-delay: -.7s; height: 55%; }
.rec__wave b:nth-child(5n) { animation-delay: -.2s; height: 75%; }
.rec__label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec__dot { width: 10px; height: 10px; border-radius: 50%; background: #ef6b6b; }
.demo[data-stage="1"] .rec__dot { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec__hint { color: var(--muted); font-size: .9375rem; max-width: 26rem; }

/* stage 2 */
.tr { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tr li { display: flex; gap: .6rem; align-items: baseline; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); font-size: .9875rem; }
.tr li.on { opacity: 1; transform: none; }
.tr b { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; }
.tr__d b { background: var(--teal-100); color: var(--teal-700); }
.tr__p b { background: #eef2f1; color: var(--muted); }
.tr span::after { content: "▍"; color: var(--teal-500); opacity: 0; }
.tr li.typing span::after { opacity: 1; animation: blink .8s infinite; }

/* stage 3 */
.note { margin: 0; display: grid; gap: .8rem; }
.note > div { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.note > div.on { opacity: 1; transform: none; }
.note dt { font-size: .8125rem; font-weight: 600; color: var(--teal-700); padding-top: .15rem; }
.note dd { margin: 0; font-size: .9875rem; min-height: 1.4em; }
.note dd::after { content: "▍"; color: var(--teal-500); opacity: 0; }
.note > div.typing dd::after { opacity: 1; animation: blink .8s infinite; }
.note__done { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 600; color: var(--teal-700); opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s var(--ease); }
.note__done.on { opacity: 1; transform: none; }
.note__done svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--teal-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) { .note > div { grid-template-columns: 1fr; gap: .15rem; } }

@media (prefers-reduced-motion: reduce) {
  .demo__panel, .tr li, .note > div, .note__done { transition: none; }
  .mic__ring, .rec__wave b, .rec__dot { animation: none !important; }
}
