:root {
  --ink: #173052;
  --ink-2: #10264a;
  --ink-soft: #5c6f8b;
  --paper: #f6f9ff;
  --white: #ffffff;
  --blue: #3d7cf2;
  --blue-dark: #2563d9;
  --violet: #7f8ef0;
  --blue-soft: #dcecff;
  --blue-wash: #edf5ff;
  --pink: #f3a8c5;
  --pink-deep: #d9578f;
  --pink-soft: #fff0f6;
  --line: #d9e5f2;
  --line-strong: #bfd1e6;
  --ok: #246c51;
  --ok-line: #a8d6c1;
  --ok-wash: #ebf8f1;
  --warn: #a4561a;
  --warn-line: #f0c08a;
  --warn-wash: #fff6ea;
  --grad: linear-gradient(115deg, #3d7cf2 0%, #7f8ef0 55%, #f08ab6 100%);
  --grad-text: linear-gradient(100deg, #2563d9 0%, #6f7fe9 52%, #d4508c 100%);
  --shadow: 0 24px 70px rgba(48, 85, 135, .13);
  --shadow-soft: 0 12px 34px rgba(48, 85, 135, .09);
  --radius: 22px;
  --max: 1240px;
  --band-pad: max(28px, calc((100vw - var(--max)) / 2 + 28px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(243, 168, 197, .21), transparent 22%),
    radial-gradient(circle at 92% 12%, rgba(75, 141, 248, .17), transparent 25%),
    linear-gradient(180deg, #fbfdff 0%, var(--paper) 55%, #fffafd 100%);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(71, 119, 180, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 119, 180, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.mono { font-family: "DM Mono", monospace; letter-spacing: .04em; }

/* Navigation */
.nav-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(191, 209, 230, .72);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 5px 25px rgba(51, 83, 124, .05);
}
.nav {
  max-width: var(--max);
  height: 80px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
}
/* The wordmark: "Sparrow" in Manrope with its o drawn as a ring the sparrow stands on, sized in em to the type. */
.wordmark { white-space: nowrap; }
.wordmark-o { display: inline-block; width: .627em; height: 1.02em; vertical-align: -.02em; overflow: visible; }
.wordmark-bird { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .wordmark-bird { transform: translateY(-5px) rotate(-6deg); }
.nav-links { display: flex; gap: 28px; }
.nav-links a, .text-link {
  color: var(--ink-soft);
  font-size: .88rem;
  text-decoration: none;
}
.nav-links a:hover, .text-link:hover { color: var(--blue-dark); }
.text-link span { color: var(--pink-deep); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 23px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #3d7cf2 0%, #6f86f2 50%, #d9578f 100%) 0 0 / 200% 100%;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(61, 124, 242, .25);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-position .45s ease;
}
.button:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 15px 30px rgba(217, 87, 143, .28); }
.button-small { padding: 9px 17px; font-size: .82rem; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue-dark); cursor: pointer; font: 650 .85rem Manrope, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; }


/* Sections */
.section-grid, .section { max-width: var(--max); margin: auto; padding-left: 28px; padding-right: 28px; }
.section { padding-top: 105px; padding-bottom: 105px; }
.section-number { margin-bottom: 64px; padding-top: 13px; border-top: 1px solid var(--line); color: #7d91aa; font-size: .68rem; }
.section h2 { margin: 0; color: var(--ink-2); font-size: clamp(2.3rem, 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.band { max-width: none; padding-right: var(--band-pad); padding-left: var(--band-pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero {
  min-height: 760px;
  padding-top: 140px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(2.6rem, 3.7vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;   /* no lone word on a line */
}
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 38px 0 0; }

.hero-media {
  position: relative;
  min-width: 0;
  padding: 48px 12px 12px;
  overflow: hidden;
  border: 1px solid #b7cbe3;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--ink-2), #173c72);
  box-shadow: 0 30px 85px rgba(48, 85, 135, .2);
}
.hero-media-head {
  position: absolute;
  inset: 0 18px auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cde0ff;
  font-size: .58rem;
}
#heroHeadNote { transition: color .3s ease; }
#heroHeadNote.fast { color: var(--pink); }
.recording-indicator { display: inline-flex; align-items: center; gap: 7px; }
.recording-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7ea8;
  box-shadow: 0 0 0 4px rgba(255,126,168,.16);
  animation: recPulse 1.35s ease-in-out infinite;
}
@keyframes recPulse { 50% { opacity: .45; transform: scale(.82); } }
.hero-stage { position: relative; overflow: hidden; border-radius: 19px; }
.hero-media-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(245px, .85fr);
  gap: 12px;
  align-items: stretch;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .7s ease;
}
.hero-stage.show-entry .hero-media-body { transform: translateX(-104%); opacity: 0; }
.hero-video-pane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 19px;
  background: #091528;
}
.hero-media video {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  background: #091528;
  object-fit: cover;
}
.hero-eln-panel {
  min-width: 0;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 19px;
  background: #f8fbff;
  box-shadow: 0 18px 45px rgba(10,30,60,.22);
}
.hero-event-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-event-top span { color: var(--blue-dark); font-size: .54rem; }
.hero-event-top b {
  padding: 3px 6px;
  border: 1px solid #efb4ca;
  border-radius: 999px;
  color: #a43c68;
  background: #fff4f8;
  font-size: .48rem;
  font-weight: 500;
}
.draft-slot {
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
  align-content: start;
  gap: 2px;
  border: 1px dashed #c9d8ea;
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
}
.draft-slot > span { color: #8aa0bb; font-size: .46rem; }
.draft-slot strong { color: #9aabc0; font-size: .82rem; font-weight: 650; }
.draft-slot small { color: var(--ink-soft); font-size: .6rem; line-height: 1.35; }
.draft-slot.filled { border-style: solid; border-color: #cbdced; background: var(--white); box-shadow: 0 6px 16px rgba(48,85,135,.08); animation: slotIn .55s ease; }
.draft-slot.filled > span { color: var(--blue-dark); }
.draft-slot.filled strong { color: var(--ink-2); }
#heroMassSlot.filled strong { font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.15; }
.coa-slot.filled { border-color: var(--ok-line); background: #f2fbf6; animation: coaDrop .65s cubic-bezier(.2, .9, .3, 1.2); }
.coa-slot.filled > span, .coa-slot.filled strong { color: var(--ok); }
@keyframes slotIn { from { background: var(--blue-wash); transform: scale(.98); } }
@keyframes coaDrop { from { opacity: 0; transform: translateY(-16px) rotate(-1.5deg); } }
.hero-confirm {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8fb1d7;
  border-radius: 10px;
  color: #fff;
  background: var(--blue-dark);
  font: 500 .63rem "DM Mono", monospace;
  letter-spacing: .02em;
  cursor: pointer;
}
.hero-confirm:hover { background: #245a96; }
.hero-confirm:disabled { border-color: #c9d6e6; background: #dfe8f3; color: #7d90a8; cursor: default; }
.hero-eln-panel.ready .hero-event-top b { border-color: #8fc5f5; color: var(--blue-dark); background: var(--blue-soft); }
.hero-eln-panel.ready .hero-confirm { animation: confirmPulse 1.6s ease-in-out infinite; }
@keyframes confirmPulse { 50% { box-shadow: 0 0 0 6px rgba(75,141,248,.22); } }
.hero-eln-panel > small { color: var(--ink-soft); font-size: .61rem; line-height: 1.35; }

.hero-entry {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  border-radius: 19px;
  background: var(--white);
  transform: translateX(104%);
  transition: transform .7s cubic-bezier(.65, 0, .35, 1);
}
.hero-stage.show-entry .hero-entry { transform: none; }
.hero-entry > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--blue-dark); font-size: .54rem; }
.hero-entry > header b { padding: 3px 8px; border: 1px solid var(--ok-line); border-radius: 999px; color: var(--ok); background: var(--ok-wash); font-weight: 500; }
.entry-body { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.entry-text h3 { margin: 0; color: var(--ink-2); font-size: 1.15rem; letter-spacing: -.02em; }
.entry-meta { margin: 2px 0 10px; color: #8aa0bb; font-size: .5rem; }
.entry-line { margin: 0 0 10px; color: var(--ink-2); font-size: .82rem; line-height: 1.5; }
.entry-line strong { color: var(--blue-dark); }
.entry-table { margin: 0; }
.entry-table div { padding: 6px 0; display: grid; grid-template-columns: 78px 1fr; gap: 8px; border-top: 1px solid var(--line); }
.entry-table dt { color: #8799af; font-family: "DM Mono", monospace; font-size: .52rem; padding-top: 2px; }
.entry-table dd { margin: 0; color: var(--ink-2); font-size: .68rem; line-height: 1.4; }
.entry-evidence { display: grid; align-content: start; gap: 8px; }
.entry-evidence figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #091528; }
.entry-evidence img { width: 100%; height: 92px; display: block; object-fit: cover; }
.entry-evidence figcaption { padding: 4px 8px; background: var(--white); color: var(--blue-dark); font-size: .48rem; }
.hero-entry > footer { margin-top: auto; padding-top: 10px; display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .66rem; }
.entry-replay { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--blue-dark); cursor: pointer; font: 500 .6rem "DM Mono", monospace; white-space: nowrap; }
.entry-replay:hover { border-color: var(--blue); }

.hero-flow {
  margin: 11px 4px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8fa9cc;
  font-size: .5rem;
}
.hero-flow b { color: var(--pink); font-weight: 400; }
.hero-flow span { transition: color .3s ease; }
.hero-flow span.active { color: #fff; text-shadow: 0 0 12px rgba(160,200,255,.6); }

/* Outcomes */
/* How it runs: five steps in one strip under the hero, each icon a step along the gradient. */
.flow-strip { max-width: calc(var(--max) - 56px); margin: 0 auto; }
.flow-strip ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .88); box-shadow: var(--shadow-soft); }
.flow-strip li { position: relative; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.flow-strip li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow-strip li:last-child { border-right: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.flow-strip li:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -6px; z-index: 1; width: 11px; height: 11px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); background: var(--white); transform: rotate(45deg); }
.flow-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--white); box-shadow: 0 8px 18px rgba(61, 124, 242, .18); }
.flow-strip li:nth-child(1) .flow-icon { background: #3d7cf2; }
.flow-strip li:nth-child(2) .flow-icon { background: #5f86f2; }
.flow-strip li:nth-child(3) .flow-icon { background: #7f8ef0; }
.flow-strip li:nth-child(4) .flow-icon { background: #b48dd8; box-shadow: 0 8px 18px rgba(217, 87, 143, .18); }
.flow-strip li:nth-child(5) .flow-icon { background: #e985b2; box-shadow: 0 8px 18px rgba(217, 87, 143, .2); }
.flow-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-strip h3 { margin: 0; color: var(--ink-2); font-size: 1.08rem; letter-spacing: -.01em; }
.flow-strip p { margin: 4px 0 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }

/* The workspace: video on the left, the record's four stages on the right */
.workspace-intro { max-width: 1000px; }
.chain { margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; color: var(--ink-soft); font-size: .64rem; }
.chain li:not(:last-child)::after { content: "→"; margin: 0 10px; color: var(--pink-deep); }
.chain li:last-child { color: var(--blue-dark); }
.workspace { margin: 44px 0 0; overflow: hidden; border: 1px solid #b7cbe3; border-radius: 25px; background: var(--white); box-shadow: 0 30px 80px rgba(48, 85, 135, .17); scroll-margin-top: 100px; }
.workspace-head { min-height: 62px; padding: 10px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #f8fbff; }
.workspace-name { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: .56rem; }
.workspace-clock { justify-self: end; color: #7185a0; font-size: .56rem; }
.live-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #56bf94; box-shadow: 0 0 0 5px rgba(86,191,148,.12); }
.stage-steps { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.stage-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; font: 650 .8rem Manrope, system-ui, sans-serif; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.stage-steps b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-wash); color: var(--blue-dark); font-size: .6rem; font-weight: 500; transition: background .25s ease, color .25s ease; }
.stage-steps button.done b { background: var(--ok-wash); color: var(--ok); }
.stage-steps button:hover:not([aria-current="step"]) { background: var(--blue-wash); color: var(--blue-dark); }
.stage-steps button[aria-current="step"] { background: var(--ink-2); color: var(--white); }
.stage-steps button[aria-current="step"] b { background: var(--pink); color: var(--ink-2); }
.stage-steps button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.stage-steps button:disabled { opacity: .42; cursor: not-allowed; }
.stage-steps button:disabled:hover { background: none; color: var(--ink-soft); }

.workspace-live { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.workspace-live[hidden], .workspace-final[hidden] { display: none; }
.demo-source-pane { padding: 18px; border-right: 1px solid var(--line); background: var(--blue-wash); }
.demo-video-shell { position: relative; padding: 44px 8px 8px; overflow: hidden; border: 1px solid #244b7c; border-radius: 18px; background: linear-gradient(145deg, var(--ink-2), #173c72); box-shadow: 0 18px 44px rgba(28,56,95,.2); }
.demo-video-meta { position: absolute; inset: 0 0 auto; height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bed8ff; font-size: .56rem; }
.demo-video-shell video { width: 100%; display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: #091528; object-fit: cover; }
.speed-tag { color: var(--pink); text-align: right; }
.demo-subtitle { position: absolute; left: 50%; bottom: 68px; max-width: 86%; margin: 0; padding: 5px 12px; border-radius: 8px; background: rgba(9,21,40,.82); color: #fff; font-size: .82rem; line-height: 1.4; text-align: center; transform: translateX(-50%); pointer-events: none; }
.demo-subtitle[hidden] { display: none; }
.source-caption { margin: 14px 4px 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.55; }

.workspace-panel { position: relative; min-height: 440px; background: #fbfdff; }
.panel-scroll { position: absolute; inset: 0; padding: 18px; overflow-y: auto; scrollbar-width: thin; }
.panel-scroll[hidden] { display: none; }
.panel-title { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.panel-title span { display: block; margin-bottom: 3px; color: var(--blue-dark); font-size: .5rem; }
.panel-title strong { color: var(--ink-2); font-size: .92rem; }
.feed { margin: 12px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.feed-card { padding: 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); animation: enter .55s ease; transition: border-color .5s ease, background .5s ease; }
.feed-card[hidden], .feed-line[hidden], .feed-prop[hidden] { display: none; }
.feed-card.warn { border-color: var(--warn-line); background: #fffaf3; }
.feed-line { padding: 9px 0; display: grid; grid-template-columns: 70px 1fr; gap: 10px; border-top: 1px solid var(--line); animation: enter .55s ease; }
.feed-line:first-child { border-top: 0; }
.feed-meta { padding-top: 2px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.feed-kind { color: #8799af; font-size: .5rem; white-space: nowrap; }
.feed-line p, .feed-prop p { margin: 0; color: var(--ink-2); font-size: .78rem; line-height: 1.45; }
.feed-line small { color: var(--ink-soft); font-size: .66rem; }
.feed-line.key p { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
.feed-prop { margin: 0 -14px; padding: 10px 14px 12px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; border-top: 1px dashed #b9cfe8; background: var(--blue-wash); animation: enter .55s ease; }
.feed-prop .feed-kind { color: var(--blue-dark); }
.feed-prop p { font-weight: 650; }
.feed-card.warn .feed-prop { border-top-color: var(--warn-line); background: #fff1de; }
.feed-card.warn .feed-prop .feed-kind { color: var(--warn); }
.feed-empty { margin-top: 12px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.feed-empty[hidden] { display: none; }
.feed-empty > p { margin: 0 0 12px; color: var(--blue-dark); font-size: .54rem; }
.feed-empty dl { margin: 0; display: grid; gap: 10px; }
.feed-empty dl div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.feed-empty dt { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-wash); color: var(--blue-dark); font-size: .58rem; }
.feed-empty dd { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.feed-empty dd b { display: block; color: var(--ink-2); font-size: .84rem; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.seek { padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--blue-dark); cursor: pointer; font-size: .52rem; }
.seek:hover { border-color: var(--blue); background: var(--blue-wash); }
.rec-badge { padding: 2px 6px; border: 1px solid var(--pink); border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); font: 500 .5rem "DM Mono", monospace; letter-spacing: .02em; white-space: nowrap; }
.rec-badge.ok { border-color: var(--ok-line); background: var(--ok-wash); color: var(--ok); }
.rec-badge.bad { border-color: var(--warn-line); background: var(--warn-wash); color: var(--warn); }

.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-head span { color: var(--blue-dark); font-size: .54rem; }
.review-head b { padding: 3px 8px; border: 1px solid #efb4ca; border-radius: 999px; background: #fff4f8; color: #a43c68; font-size: .5rem; font-weight: 500; }
.review-head b.ready { border-color: var(--ok-line); background: var(--ok-wash); color: var(--ok); }
.panel-review h3 { margin: 10px 0 12px; color: var(--ink-2); font-size: 1.05rem; letter-spacing: -.01em; }
.review-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.review-row { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); animation: enter .45s ease; }
.review-row.check { border-color: #efb4ca; background: #fff7fa; box-shadow: 0 0 0 3px rgba(243,168,197,.18); }
.review-row.check.done { border-color: var(--ok-line); background: #f5fcf9; box-shadow: none; }
.review-text { min-width: 0; flex: 1; display: grid; gap: 1px; }
.review-text > span { color: #8799af; font-size: .48rem; }
.review-row.check:not(.done) .review-text > span { color: #a43c68; }
.review-text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); font-size: .86rem; }
.review-text small { color: var(--ink-soft); font-size: .66rem; line-height: 1.45; }
.review-ctl { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.review-ctl[hidden] { display: none; }
.review-ctl button, .review-edit button { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink-2); cursor: pointer; font: 650 .7rem Manrope, system-ui, sans-serif; }
.review-ctl .ctl-ok, .review-edit button[type="submit"] { border-color: var(--blue); background: var(--blue); color: var(--white); }
.review-ctl button:hover, .review-edit button:hover { border-color: var(--blue-dark); }
.review-chip { color: var(--ok); font-size: .7rem; font-weight: 700; }
.review-chip.edited { color: #a43c68; }
.review-edit { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 500; }
.review-edit input { min-width: 0; padding: 6px 8px; border: 1px solid var(--blue); border-radius: 8px; color: var(--ink-2); font: 600 .82rem Manrope, system-ui, sans-serif; }
.review-edit input[type="number"] { width: 90px; }
.review-edit input[type="text"] { flex: 1 1 200px; }
.review-edit span { color: var(--ink-soft); font-size: .78rem; }
.review-foot { position: sticky; bottom: -18px; margin: 4px -18px -18px; padding: 16px 18px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border-top: 1px solid var(--line); background: rgba(251, 253, 255, .96); backdrop-filter: blur(6px); }
.review-foot small { color: var(--ink-soft); font-size: .68rem; }
.review-foot .button:disabled { border-color: #c3d3e8; background: #c3d3e8; box-shadow: none; cursor: not-allowed; transform: none; }

.workspace-final { padding: 22px; background: var(--blue-wash); animation: finalIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes finalIn { from { opacity: 0; transform: translateX(28px); } }
.final-bar { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.final-status { color: var(--ok); font-size: .92rem; font-weight: 750; }
.final-bar div { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace > figcaption { padding: 14px 20px 16px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); background: #f8fbff; color: var(--ink-soft); font-size: .67rem; }
.workspace > figcaption .mono { color: var(--blue-dark); font-size: .53rem; white-space: nowrap; }

/* The ELN entry */
.eln-doc { padding: 44px 52px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--white); box-shadow: 0 18px 50px rgba(48, 85, 135, .12); color: var(--ink); }
.doc-head { padding-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--ink-2); }
.doc-head .mono { color: var(--blue-dark); font-size: .6rem; }
.doc-head h3 { margin: 8px 0 0; color: var(--ink-2); font-size: 1.7rem; line-height: 1.15; letter-spacing: -.03em; }
.doc-status { flex-shrink: 0; padding: 6px 12px; border: 1px solid var(--ok-line); border-radius: 999px; background: var(--ok-wash); color: var(--ok); font-size: .74rem; font-weight: 650; }
.doc-meta { margin: 0; padding: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border-bottom: 1px solid var(--line); }
.doc-meta dt, .doc-foot dt, .doc-prov dt { color: #8799af; font-family: "DM Mono", monospace; font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; }
.doc-meta dd { margin: 3px 0 0; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.doc-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc-block h4 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 1.05rem; }
.doc-block h4 .mono { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue-dark); font-size: .62rem; }
.doc-summary p { max-width: 780px; margin: 0; color: var(--ink-2); font-size: 1rem; }
.doc-result { margin-top: 16px; padding: 14px 18px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-radius: 12px; background: var(--blue-wash); }
.doc-result .mono { color: var(--blue-dark); font-size: .58rem; }
.doc-result strong { color: var(--ink-2); font-size: 1.35rem; letter-spacing: -.02em; }
.doc-result small { color: var(--ink-soft); font-size: .76rem; }
.doc-table-wrap { overflow-x: auto; }
.eln-doc table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.eln-doc th { padding: 8px 10px; border-bottom: 1px solid var(--line-strong); background: #f7faff; color: #7185a0; font: 500 .58rem "DM Mono", monospace; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.eln-doc td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.45; vertical-align: top; }
.doc-log td:first-child { color: #7185a0; font-size: .68rem; white-space: nowrap; }
.doc-log td:first-child b { color: var(--ink-2); font-size: .78rem; }
.doc-log td:nth-child(2) { color: #8799af; font-size: .7rem; }
.doc-row-warn td { background: #fff8ee; }
.doc-ok { color: var(--ok); font-weight: 650; }
.doc-warn { color: var(--warn); font-weight: 650; }
.doc-fig-ref { color: var(--blue-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.doc-fig-ref:hover { text-decoration: underline; }
.doc-calc { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.doc-calc li { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; background: #fbfdff; }
.doc-calc span { display: block; color: var(--ink-2); font-size: .85rem; font-weight: 700; }
.doc-calc code { margin: 6px 0; display: block; color: var(--ink-2); font: 500 .82rem "DM Mono", monospace; overflow-wrap: anywhere; }
.doc-calc small { color: #7185a0; font-size: .72rem; }
.doc-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .8rem; }
.doc-figures { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.doc-figures figure { margin: 0; scroll-margin-top: 120px; }
.doc-figures img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; }
.doc-figures figure:target img { outline: 3px solid var(--blue); outline-offset: 2px; }
.doc-figures figcaption { margin-top: 6px; color: var(--ink-soft); font-size: .7rem; line-height: 1.4; }
.doc-evidence { border-bottom: 1px solid var(--line); }
.doc-evidence summary { padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--blue-dark); cursor: pointer; font-weight: 750; list-style: none; }
.doc-evidence summary::-webkit-details-marker { display: none; }
.doc-evidence summary::before { content: "+"; width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 500; }
.doc-evidence[open] summary::before { content: "−"; }
.doc-evidence summary small { color: #8799af; font-size: .56rem; font-weight: 500; }
.doc-evidence .doc-block:last-child { border-bottom: 0; }
.doc-audit { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); font-size: .8rem; }
.doc-prov { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc-prov dd { margin: 3px 0 0; color: var(--ink-2); font-size: .8rem; }
.doc-foot { padding: 22px 0 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; color: var(--ink-soft); font-size: .76rem; }
.doc-foot p { margin: 0; }
.doc-foot dl { margin: 0; display: grid; gap: 12px; }
.doc-foot dd { margin: 2px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink-2); color: var(--ink-2); font-weight: 600; }

/* The value */
.value { background: linear-gradient(135deg, rgba(225, 239, 255, .75), rgba(255, 239, 247, .7)); }
.value-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.value-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.value-list li { padding: 24px 0; display: grid; grid-template-columns: 44px 1fr; gap: 14px; border-bottom: 1px solid var(--line-strong); }
.value-list b { width: 34px; height: 24px; margin-top: 1px; display: grid; place-items: center; border-radius: 999px; color: var(--pink-deep); font-size: .7rem; font-weight: 500; transition: background .25s ease, color .25s ease; }
.value-list h3 { margin: 0; color: var(--ink-2); font-size: 1.2rem; letter-spacing: -.015em; }
.value-list p { margin: 6px 0 0; color: var(--ink-soft); font-size: .92rem; }

/* The certificate: a CoA chip wherever it appears, and a preview of its values in a bubble beside it. */
.coa-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 9px 3px 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--blue-dark); cursor: pointer; font: 500 .62rem "DM Mono", monospace; letter-spacing: .04em; line-height: 1.3; vertical-align: 1px; transition: border-color .2s ease, background .2s ease; }
.coa-chip svg { width: 10px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.coa-chip:hover, .coa-chip:focus-visible { border-color: var(--blue); background: var(--blue-wash); outline: none; }
.coa-chip[hidden] { display: none; }
.coa-slot { position: relative; }
.coa-slot .coa-chip { position: absolute; top: 9px; right: 9px; margin: 0; }
.coa-bubble { position: fixed; top: 0; left: 0; z-index: 30; width: 270px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 24px 60px rgba(16, 38, 74, .24); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.coa-bubble.on { opacity: 1; }
.coa-title { position: relative; display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 2px solid var(--ink-2); }
.coa-title .mono { color: var(--blue-dark); font-size: .55rem; }
.coa-title b { color: var(--ink-2); font-size: 1rem; }
.coa-title small { color: var(--ink-soft); font-size: .7rem; }
.coa-tag { position: absolute; top: 0; right: 0; padding: 2px 8px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); font: 650 .58rem Manrope, system-ui, sans-serif; }
.coa-doc dl { margin: 10px 0 0; display: grid; gap: 6px; }
.coa-doc dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.coa-doc dt { color: #8799af; font-size: .55rem; }
.coa-doc dd { margin: 0; color: var(--ink-2); font-size: .8rem; font-weight: 700; text-align: right; }
.coa-doc dd small { color: var(--ink-soft); font-size: .66rem; font-weight: 500; }
.coa-doc .coa-lot { margin: 0 -8px; padding: 4px 8px; border-radius: 8px; background: var(--blue-wash); }
.coa-doc .coa-lot dd { color: var(--blue-dark); font-size: .78rem; font-weight: 500; }
.coa-rows { margin-top: 10px; display: grid; gap: 5px; }
.coa-rows i { height: 6px; border-radius: 3px; background: #e9eef5; }
.coa-rows i:nth-child(2) { width: 82%; }
.coa-rows i:nth-child(3) { width: 64%; }
.coa-rows i:nth-child(4) { width: 74%; }
.coa-foot { margin: 10px 0 0; color: var(--ok); font-size: .55rem; }

/* The value pictures: one per point, under the heading. Each plays once when it comes up and ends on its full
   scene, so reduced motion shows the finished picture. */
.value-head { min-width: 0; }
.value-art { position: relative; height: 300px; margin-top: 52px; }
.value-art .art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.value-art .art.on { opacity: 1; transform: none; }
.art text { font-family: Manrope, system-ui, sans-serif; }
.art .m { font-family: "DM Mono", monospace; letter-spacing: .06em; }
.art * { transform-box: fill-box; transform-origin: center; }
.art .grow { transform: scaleX(0); transform-origin: left center; }
.art.on .grow { animation: artGrow .7s cubic-bezier(.2, .8, .2, 1) both; }
.art.on .playhead { animation-duration: 2.8s; animation-timing-function: linear; }
.art .pop { opacity: 0; transform: translateY(8px) scale(.96); }
.art.on .pop { animation: artPop .45s cubic-bezier(.2, .8, .2, 1) both; }
.art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.art.on .draw { animation: artDraw .55s ease both; }
.art.on .rec { animation: artBlink 1.3s ease-in-out infinite; }
.art .flow circle { opacity: 0; }
.art.on .flow circle { animation: artFlow 1.1s linear 3 both; }
.art .scan { opacity: 0; }
.art.on .scan { animation: artScan 1.7s ease-in-out both; }
.art .move { opacity: 0; transform: translate(64px, 52px); }
.art.on .move { animation: artCursor .8s cubic-bezier(.3, .7, .2, 1) both; }
.art .press { transform-origin: 0 0; }
.art.on .press { animation: artPress .22s ease .85s both; }
.art .ring { opacity: 0; }
.art.on .ring { animation: artRing .7s ease-out 1s both; }
.art .wave { opacity: 0; }
.art.on .wave { animation: artWave 1.5s ease-out 3 both; }
@keyframes artGrow { to { transform: scaleX(1); } }
@keyframes artPop { to { opacity: 1; transform: none; } }
@keyframes artDraw { to { stroke-dashoffset: 0; } }
@keyframes artBlink { 50% { opacity: .25; } }
@keyframes artFlow { 0% { opacity: 0; transform: translateX(-10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); } }
@keyframes artScan { 0% { opacity: 0; transform: translateY(0); } 10%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(128px); } }
@keyframes artCursor { 0% { opacity: 0; transform: translate(64px, 52px); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes artPress { 50% { transform: scale(.82); } }
@keyframes artRing { 0% { opacity: .9; transform: none; } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes artWave { 0% { opacity: .9; transform: none; } 100% { opacity: 0; transform: translateX(6px); } }
.value-list li { cursor: default; outline: none; }
.value-list li:focus-visible { box-shadow: inset 3px 0 0 var(--blue); }

/* The glasses */
.glasses-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.glasses-intro > p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.glasses-stage { position: relative; margin: 44px 0 0; overflow: hidden; border: 1px solid #c7d7ea; border-radius: 26px; background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eaf1fb 55%, #dbe6f5 100%); box-shadow: var(--shadow); }
.stage-btn { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-2); cursor: pointer; font: 650 .76rem Manrope, system-ui, sans-serif; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.stage-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.stage-btn[aria-pressed="true"] { border-color: var(--ink-2); background: var(--ink-2); color: var(--white); }
.stage-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.glasses-view { position: relative; height: 600px; height: clamp(340px, calc(100vh - 270px), 600px); height: clamp(340px, calc(100svh - 270px), 600px); }
.concept-tag { position: absolute; top: 16px; left: 18px; z-index: 2; padding: 6px 13px 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink-2); font: 700 .76rem Manrope, system-ui, sans-serif; pointer-events: none; box-shadow: 0 6px 16px rgba(16, 38, 74, .08); }
.concept-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--grad); vertical-align: 0; }
.glasses-canvas, .glasses-canvas canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.glasses-canvas canvas:active { cursor: grabbing; }
.glasses-hotspots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hotspot { position: absolute; top: 0; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; font: 500 .6rem "DM Mono", monospace; box-shadow: 0 4px 12px rgba(40, 105, 216, .35); cursor: pointer; pointer-events: auto; transition: opacity .25s ease, background .2s ease; }
.hotspot:hover, .hotspot:focus-visible { background: var(--pink-deep); outline: none; }
.hotspot.related { background: var(--pink-deep); animation: hotspotPulse 1.6s ease-in-out infinite; }
@keyframes hotspotPulse { 50% { box-shadow: 0 0 0 8px rgba(219, 110, 157, .2), 0 4px 12px rgba(40, 105, 216, .3); } }
.hotspot.dim { opacity: .28; }
.hotspot.behind { opacity: .12; pointer-events: none; }
.hotspot-tag { position: absolute; top: 50%; left: 32px; padding: 3px 9px; border-radius: 999px; background: var(--ink-2); color: var(--white); font: 600 .68rem Manrope, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 16px rgba(16, 38, 74, .22); opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity .25s ease; }
.hotspot.tag-left .hotspot-tag { right: 32px; left: auto; }
.hotspot.show-tag:not(.behind) .hotspot-tag { opacity: 1; }
.glasses-stage.focused .hotspot { opacity: 0; pointer-events: none; }
.feature-callout { position: absolute; top: 0; left: 0; z-index: 3; width: 280px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 44px rgba(16, 38, 74, .18); pointer-events: none; opacity: 0; transition: opacity .16s ease; }
.feature-callout.on { opacity: 1; }
.feature-callout b { min-width: 26px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: .6rem; font-weight: 500; }
.feature-callout strong { display: block; margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.feature-callout p { margin: 4px 0 8px; color: var(--ink-soft); font-size: .82rem; line-height: 1.45; }
.feature-callout small { color: var(--blue-dark); font-size: .52rem; }
.glasses-fallback { position: absolute; right: 20px; bottom: 20px; left: 20px; margin: 0; color: var(--ink-soft); font-size: .8rem; text-align: center; }
.glasses-fallback[hidden] { display: none; }
.glasses-bar { position: relative; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .8); }
.bar-info { min-height: 70px; padding: 12px 20px; display: flex; align-items: center; }
.bar-idle { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
/* The caption lives in the bar under the model, so it never covers the glasses. A principle's meaning shows in the
   same place, and either one stands in for the stand's status. */
.feature-caption { width: 100%; display: grid; grid-template-columns: minmax(180px, auto) 1fr auto; align-items: center; gap: 6px 24px; animation: enter .35s ease; }
.feature-caption[hidden] { display: none; }
.feature-caption:not([hidden]) ~ .bar-idle { display: none; }
.principle-caption .caption-title .mono { color: var(--pink-deep); }
.principle-caption .caption-body b { color: var(--ink-2); font-weight: 700; }
.bar-controls { padding: 10px 14px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; border-top: 1px solid var(--line); background: rgba(246, 249, 255, .9); }
.principles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.principles > span { color: #7d91aa; font-size: .54rem; white-space: nowrap; }
.principle-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.principle-chips button { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink-2); cursor: pointer; font: 650 .78rem Manrope, system-ui, sans-serif; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.principle-chips button:hover { border-color: var(--pink-deep); color: #a43c68; transform: translateY(-1px); }
.principle-chips button.on { border-color: var(--ink-2); background: var(--ink-2); color: var(--white); }
.principle-chips button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#tourToggle { flex-shrink: 0; }
.caption-title { display: grid; gap: 2px; }
.caption-title .mono { color: var(--blue-dark); font-size: .56rem; }
.caption-title strong { color: var(--ink-2); font-size: 1.08rem; letter-spacing: -.015em; white-space: nowrap; }
.caption-body { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.caption-body p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.caption-nav { display: flex; gap: 4px; }
.caption-nav button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); color: var(--ink-2); cursor: pointer; font-size: .85rem; line-height: 1; }
.caption-nav button:hover { border-color: var(--blue); color: var(--blue-dark); }
.caption-progress { position: absolute; top: -1px; right: 0; left: 0; height: 3px; background: var(--blue-wash); }
.caption-progress[hidden] { display: none; }
.caption-progress i { width: 0; height: 100%; display: block; background: linear-gradient(90deg, var(--blue), var(--pink-deep)); }
#dockStatus { color: var(--blue-dark); font-size: .56rem; }
.glasses-hint { color: #8a9cb4; font-size: .54rem; }
.hint-tap { display: none; }
@media (hover: none) {
  .hint-hover { display: none; }
  .hint-tap { display: inline; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.feature-list.fallback { margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; list-style: none; }
.feature-list.fallback li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.feature-list.fallback strong { color: var(--ink-2); }
.feature-list.fallback p { margin: 4px 0 0; color: var(--ink-soft); font-size: .84rem; }

/* Privacy */
.privacy-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.privacy-intro > p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.privacy-commitments { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 20px; background: linear-gradient(145deg, var(--ink-2), #173c72); }
.privacy-commitments div { padding: 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.privacy-commitments div:last-child { border-right: 0; }
.privacy-commitments strong { display: block; color: var(--white); font-size: .95rem; }
.privacy-commitments span { margin-top: 6px; display: block; color: #b9cbe3; font-size: .78rem; line-height: 1.5; }

/* The privacy architecture: the lab's network, the one logged way out, and how each part keeps data private. */
.privacy-arch { margin-top: 52px; }
.arch-diagram { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow-soft); }
.arch { width: 100%; height: auto; display: block; overflow: visible; }
.arch-v { display: none; }
.arch text { font-family: Manrope, system-ui, sans-serif; }
.arch .m { font-family: "DM Mono", monospace; letter-spacing: .06em; }
.arch-boundary { fill: #f6f9ff; stroke: #a9c1e0; stroke-width: 1.5; stroke-dasharray: 7 7; }
.arch-node .card { fill: #fff; stroke: #d9e5f2; stroke-width: 1.2; filter: drop-shadow(0 8px 18px rgba(48, 85, 135, .08)); transition: stroke .25s ease; }
.arch-node.outside .card { fill: #fbfcfe; stroke-dasharray: 4 4; }
.arch-link { fill: none; stroke: #9fb4d6; stroke-width: 2; }
.arch-link.out { stroke: #e58bb4; }
.arch-link.optional { stroke-dasharray: 5 6; }
.arch-node { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.arch-node.lit .card { stroke: var(--blue); stroke-width: 2.2; stroke-dasharray: none; }
.arch-route.lit .arch-link { stroke: #7ea3e6; }
.arch-route.lit .arch-link.out { stroke: #e98cb6; }
/* Focus: during the walkthrough, whatever the step isn't about steps back. */
.arch .arch-node, .arch .arch-route, .arch .arch-chip { transition: opacity .45s ease; }
.privacy-arch.focused .arch .arch-node:not(.lit), .privacy-arch.focused .arch .arch-route:not(.lit) { opacity: .38; }
.privacy-arch.focused .arch .arch-chip { opacity: .55; }
/* What travels: cloned from hidden templates, with the wire lit behind it. */
.arch-template { display: none; }
.arch-flying { filter: drop-shadow(0 4px 8px rgba(16, 38, 74, .28)); transition: opacity .4s ease; }
.arch-flying.gone { opacity: 0; }
.arch-wire { fill: none; stroke: #3d7cf2; stroke-width: 3.4; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 4px rgba(61, 124, 242, .55)); transition: opacity .5s ease; }
.arch-wire.out { stroke: #e0559a; filter: drop-shadow(0 0 4px rgba(224, 85, 154, .5)); }
.arch-wire.gone { opacity: 0; }
/* A card reacts when something arrives. */
.arch-node.arrive { animation: archArrive .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes archArrive { 40% { transform: scale(1.045); } }
/* Each card's moment. */
.arch-node .badge { opacity: 0; transition: opacity .3s ease; }
.arch-node.recording .b-rec, .arch-node.recording .b-store, .arch-node.docked .b-store, .arch-node.docked .b-stand, .arch-node.drafting .b-draft, .arch-node.logged .b-logged, .arch-node.checking .b-checks, .arch-node.filed .b-filed { opacity: 1; }
.arch-node.recording .rec-dot { animation: archBlink 1s ease-in-out infinite; }
@keyframes archBlink { 50% { opacity: .2; } }
.arch-node .b-draft .bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.arch-node.drafting .b-draft .bar { animation: archFill 3.6s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes archFill { to { transform: scaleX(1); } }
/* The glasses keep footage on board while recording, then send it from their stand. */
.arch-node .b-store .bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.arch-node.recording .b-store .bar { animation: archFill 2.1s linear .1s forwards; }
.arch-node.docked .b-store .bar { transform: scaleX(1); }
.arch-node.docked.sending .b-store .bar { animation: archDrain 1.9s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes archDrain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.arch-node .b-stand { transform-box: fill-box; transform-origin: center; }
.arch-node.docked .b-stand { animation: archStamp .45s cubic-bezier(.3, 1.7, .5, 1); }
.arch-node .b-logged, .arch-node .b-filed { transform-box: fill-box; transform-origin: center; }
.arch-node.logged .b-logged, .arch-node.filed .b-filed { animation: archStamp .45s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes archStamp { from { transform: scale(1.6); opacity: 0; } }
.arch-node .tick { transform-box: fill-box; transform-origin: center; opacity: 0; }
.arch-node.checking .tick { animation: archStamp .4s cubic-bezier(.3, 1.7, .5, 1) both; opacity: 1; }
.arch-drafting { opacity: 0; transition: opacity .3s ease; }
.arch-drafting.on { opacity: 1; }
.arch-drafting .pop { transform-box: fill-box; transform-origin: center; }
.arch-drafting.on .pop { animation: archPop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.arch-drafting .ln { transform-box: fill-box; transform-origin: left center; }
.arch-drafting.on .ln { animation: archFill .5s ease both; }
.arch-drafting.on .ln:nth-of-type(2) { animation-delay: .5s; }
.arch-drafting.on .ln:nth-of-type(3) { animation-delay: 1s; }
.arch-drafting.on .ln:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes archPop { from { transform: scale(.4); } to { transform: none; } }
.arch-h { max-height: calc(100svh - 330px); min-height: 300px; margin: 0 auto; }
/* The steps bar under the diagram: one step described at a time, chosen with the numbered buttons, or played through. */
.arch-progress { height: 3px; background: var(--blue-wash); }
.arch-progress[hidden] { display: none; }
.arch-progress i { width: 0; height: 100%; display: block; background: linear-gradient(90deg, var(--blue), var(--pink-deep)); }
.arch-caption p.fresh { animation: enter .4s ease; }
.arch-bar { margin: 14px -20px -20px; overflow: hidden; border-top: 1px solid var(--line); border-radius: 0 0 24px 24px; background: rgba(255, 255, 255, .85); }
.arch-caption { min-height: 72px; padding: 12px 24px; display: grid; grid-template-columns: minmax(150px, auto) 1fr; align-items: center; gap: 6px 24px; }
.arch-caption-title { display: grid; gap: 2px; }
.arch-caption-title .mono { color: var(--blue-dark); font-size: .56rem; }
.arch-caption-title strong { color: var(--ink-2); font-size: 1.08rem; letter-spacing: -.015em; white-space: nowrap; }
.arch-caption p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.arch-picks { padding: 10px 20px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid var(--line); background: rgba(246, 249, 255, .9); border-radius: 0 0 24px 24px; }
.arch-picks button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink-2); cursor: pointer; font: 650 .8rem Manrope, system-ui, sans-serif; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.arch-picks button b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font: 500 .62rem "DM Mono", monospace; }
.arch-picks button:hover { border-color: var(--blue); }
.arch-picks button[aria-pressed="true"] { border-color: var(--ink-2); background: var(--ink-2); color: var(--white); }
.arch-picks .arch-play { margin-left: auto; padding: 6px 14px; }
.arch-picks .arch-play[aria-pressed="true"] { border-color: var(--line-strong); background: var(--white); color: var(--ink-2); }
.arch-picks button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) {
  .arch-h { display: none; }
  .arch-v { display: block; }
  .arch-diagram { padding: 10px; border-radius: 18px; }
  .arch-bar { margin: 12px -10px -10px; border-radius: 0 0 18px 18px; }
  .arch-caption { min-height: 0; padding: 14px 16px; grid-template-columns: 1fr; }
  .arch-picks { padding: 10px 12px 14px; border-radius: 0 0 18px 18px; }
  .arch-picks .arch-play { margin-left: 0; }
}

/* Pilot */
.pilot { padding-top: 30px; }
.pilot-panel { padding: 65px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; border: 1px solid #c8daef; border-radius: 30px; background: linear-gradient(135deg, #dcecff, #fff0f6); box-shadow: var(--shadow); }
.pilot-panel h2 { font-size: clamp(2.4rem, 4.4vw, 4.6rem); }
.pilot-copy > p { max-width: 560px; margin: 20px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
/* The pilot form: posts to /api/pilot, which emails it to the team. */
.pilot-form { max-width: 560px; margin-top: 28px; display: grid; gap: 14px; }
.pilot-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pilot-form label { display: grid; gap: 6px; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.pilot-form label em { color: var(--ink-soft); font-style: normal; font-weight: 500; }
.pilot-form input, .pilot-form textarea { width: 100%; padding: 11px 14px; border: 1px solid #c8daef; border-radius: 14px; background: rgba(255, 255, 255, .85); color: var(--ink-2); font: inherit; font-size: .95rem; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.pilot-form textarea { resize: vertical; min-height: 64px; }
.pilot-form input:focus, .pilot-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 124, 242, .18); }
.pilot-form textarea::placeholder { color: #9aa9be; }
.pilot-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pilot-form .button[disabled] { opacity: .65; cursor: wait; transform: none; }
.pilot-status { margin: 0; min-height: 1.2em; color: var(--pink-deep); font-size: .85rem; font-weight: 600; }
.pilot-status:empty { display: none; }
.pilot-sent { max-width: 560px; margin-top: 28px; padding: 22px 24px; border: 1px solid #c8daef; border-radius: 18px; background: rgba(255, 255, 255, .85); }
.pilot-sent strong { color: var(--ink-2); font-size: 1.15rem; }
.pilot-sent p { margin: 6px 0 0; color: var(--ink-soft); }
.pilot-cta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pilot-cta .mono { color: var(--ink-soft); font-size: .62rem; }
.pilot-cta .mono a { color: var(--blue-dark); }
.pilot-checklist { padding-left: 45px; border-left: 1px solid rgba(49, 91, 146, .18); }
.pilot-checklist > span { color: var(--blue-dark); font-size: .65rem; }
.pilot-checklist ol { margin: 18px 0 24px; padding-left: 22px; display: grid; gap: 9px; color: var(--ink-2); font-weight: 600; }
.pilot-checklist li::marker { color: var(--pink-deep); font-family: "DM Mono", monospace; font-size: .8em; }
.copy-status { display: block; margin-top: 10px; color: var(--blue-dark); font-family: "DM Mono", monospace; font-size: .65rem; }

/* Technical details */
.details { padding-top: 70px; }
.details .section-number { margin-bottom: 0; }
.details details { border-bottom: 1px solid var(--line); }
.details summary { padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--ink-2); cursor: pointer; font-size: .68rem; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+ OPEN"; color: var(--blue-dark); white-space: nowrap; }
.details details[open] summary::after { content: "− CLOSE"; }
.details details[open] { padding-bottom: 36px; }
.path-track { --reach: 0; --gap: 14px; position: relative; margin: 4px 0 0; padding: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); list-style: none; }
.path-track::before, .path-track::after { content: ""; position: absolute; top: 14px; left: 27px; height: 2px; border-radius: 2px; }
.path-track::before { width: calc(3 * (100% + var(--gap)) / 4); background: var(--line-strong); }
.path-track::after { width: calc(var(--reach) * (100% + var(--gap)) / 4); background: linear-gradient(90deg, var(--pink-deep), var(--blue)); transition: width .45s cubic-bezier(.3, .7, .2, 1); }
.path-track:has(.path-stage:nth-child(2):is(:hover, :focus-within)) { --reach: 1; }
.path-track:has(.path-stage:nth-child(3):is(:hover, :focus-within)) { --reach: 2; }
.path-track:has(.path-stage:nth-child(4):is(:hover, :focus-within)) { --reach: 3; }
.path-stage { position: relative; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); outline: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .3s ease; }
.path-dot { position: absolute; top: -27px; left: 20px; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--white); transition: background .3s ease, border-color .3s ease; }
.path-stage.now .path-dot { border-color: var(--pink-deep); background: var(--pink-deep); animation: nowPulse 2s ease-in-out infinite; }
@keyframes nowPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(219, 110, 157, .2); } 50% { box-shadow: 0 0 0 9px rgba(219, 110, 157, .06); } }
.path-track:has(.path-stage:nth-child(2):is(:hover, :focus-within)) .path-stage:nth-child(-n+2) .path-dot,
.path-track:has(.path-stage:nth-child(3):is(:hover, :focus-within)) .path-stage:nth-child(-n+3) .path-dot,
.path-track:has(.path-stage:nth-child(4):is(:hover, :focus-within)) .path-stage .path-dot { border-color: var(--blue); }
.path-stage:is(:hover, :focus-within) { border-color: var(--blue); box-shadow: 0 18px 40px rgba(48, 85, 135, .14); transform: translateY(-4px); }
.path-stage:is(:hover, :focus-within) .path-dot { border-color: var(--blue); background: var(--blue); }
.path-track:has(.path-stage:is(:hover, :focus-within)) .path-stage:not(:hover):not(:focus-within) { opacity: .55; }
.path-head { display: flex; align-items: center; gap: 8px; }
.path-head b { color: var(--blue-dark); font-size: .66rem; font-weight: 500; }
.path-now { padding: 2px 7px; border-radius: 999px; background: var(--pink-soft); color: #a43c68; font-size: .5rem; }
.path-stage h3 { margin: 8px 0 4px; color: var(--ink-2); font-size: 1.05rem; letter-spacing: -.01em; }
.path-stage > p { margin: 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.45; }
.path-stage dl { margin: 14px 0 0; padding-top: 12px; display: grid; gap: 8px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.path-stage:is(:hover, :focus-within) dl, .path-track:not(:has(.path-stage:is(:hover, :focus-within))) .path-stage.now dl { opacity: 1; transform: none; }
.path-stage dt { color: #8799af; font-size: .5rem; }
.path-stage dd { margin: 2px 0 0; color: var(--ink); font-size: .78rem; line-height: 1.45; }
.readiness-note { margin: 18px 0 0; color: #7589a2; font-size: .76rem; }
.readiness-note a { color: var(--blue-dark); }
.sources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 60px; }
.sources-grid p { margin: 0; color: #7589a2; font-size: .72rem; }
.sources-grid a { color: var(--blue-dark); }

.site-foot { max-width: var(--max); margin: auto; padding: 35px 28px 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #7287a1; font-size: .74rem; }
.site-foot p { margin: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* A small hover motion on the page's numbered and bulleted items. */
.value-list li { position: relative; }
.value-list li::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: -14px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--pink-deep)); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.value-list li > div { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.value-list h3 { transition: color .25s ease; }
.value-list li:hover::before { transform: scaleY(1); }
.value-list li:hover > div { transform: translateX(6px); }
.value-list li:hover b { background: var(--pink-deep); color: var(--white); }
.value-list li:hover h3 { color: var(--blue-dark); }
.pilot-checklist li { transition: transform .25s ease, color .25s ease; }
.pilot-checklist li:hover { color: var(--blue-dark); transform: translateX(6px); }
.flow-strip li { transition: opacity .7s ease, transform .7s ease, background .3s ease; }
.flow-icon { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.flow-strip li:hover { background: rgba(237, 245, 255, .7); }
.flow-strip li:hover .flow-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.privacy-commitments div { transition: background .3s ease; }
.privacy-commitments div:hover { background: rgba(255, 255, 255, .07); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1200px) {
  .workspace-live { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .doc-meta { grid-template-columns: repeat(2, 1fr); }
  .doc-figures { grid-template-columns: repeat(3, 1fr); }
  .value-layout { gap: 50px; }
}

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 130px; }
  .hero-media { max-width: 900px; }
  .flow-strip { margin: 0 28px; }
  .workspace-head { grid-template-columns: 1fr auto; }
  .stage-steps { grid-column: 1 / -1; grid-row: 2; }
  .stage-steps button { flex: 1; justify-content: center; }
  .workspace-live { grid-template-columns: 1fr; }
  .demo-source-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-panel { min-height: 0; }
  .panel-scroll { position: static; max-height: 560px; }
  .value-layout { grid-template-columns: 1fr; gap: 36px; }
  .value-art { display: none; }
  .privacy-intro { grid-template-columns: 1fr; gap: 24px; }
  .privacy-commitments { grid-template-columns: 1fr 1fr; }
  .privacy-commitments div:nth-child(2) { border-right: 0; }
  .privacy-commitments div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .pilot-panel { grid-template-columns: 1fr; gap: 40px; }
  .pilot-checklist { padding-left: 0; border-left: 0; }
  .glasses-intro { grid-template-columns: 1fr; gap: 20px; }
  .sources-grid { grid-template-columns: 1fr; }
  .eln-doc { padding: 32px 28px; }
  .doc-foot, .doc-prov { grid-template-columns: 1fr; gap: 14px; }
}

/* The strip tightens in five columns, then stacks once five no longer fit. */
@media (max-width: 1080px) {
  .flow-strip li { padding: 18px 16px 20px; }
  .flow-strip h3 { font-size: 1rem; }
  .flow-strip p { font-size: .8rem; }
}
@media (max-width: 900px) {
  .flow-strip ol { grid-template-columns: 1fr; }
  .flow-strip li { padding: 16px 20px; flex-direction: row; align-items: center; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-strip li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .flow-strip li:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .flow-strip li:not(:last-child)::after { top: auto; right: auto; bottom: -6px; left: 39px; transform: rotate(135deg); }
  .flow-icon { flex-shrink: 0; }
}

@media (max-width: 760px) {
  .glasses-view { height: 46vh; height: min(370px, 46svh); }
  .path-track { padding: 0 0 0 30px; grid-template-columns: 1fr; }
  .path-track::before { top: 10px; bottom: 10px; left: 8px; width: 2px; height: auto; }
  .path-track::after { display: none; }
  .path-dot { top: 22px; left: -29px; }
  .path-stage dl { opacity: 1; transform: none; }
  .path-track:has(.path-stage:is(:hover, :focus-within)) .path-stage:not(:hover):not(:focus-within) { opacity: 1; }
}

@media (max-width: 620px) {
  .nav { padding: 0 18px; }
  .section, .section-grid { padding-right: 18px; padding-left: 18px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section-number { margin-bottom: 36px; }
  .hero { padding-top: 110px; padding-bottom: 50px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-actions { gap: 20px; }
  .hero-media { padding: 40px 7px 7px; border-radius: 20px; }
  .hero-media-head { inset: 0 11px auto; height: 40px; font-size: .47rem; }
  .hero-media-body { grid-template-columns: 1fr; }
  .hero-video-pane { border-radius: 14px; }
  .hero-media video { height: auto; aspect-ratio: 4 / 3; }
  .hero-eln-panel { padding: 15px; border-radius: 14px; }
  .hero-stage, .hero-entry { border-radius: 14px; }
  .entry-body { grid-template-columns: 1fr; }
  .entry-evidence { grid-template-columns: 1fr 1fr; }
  .flow-strip { margin: 0 18px; }
  .workspace { margin-top: 32px; border-radius: 18px; }
  .workspace-head { padding: 10px 12px; gap: 10px; }
  .stage-steps { gap: 2px; padding: 3px; }
  .stage-steps button { gap: 5px; padding: 5px 7px 5px 4px; font-size: .68rem; }
  .stage-steps b { width: 19px; height: 19px; font-size: .54rem; }
  /* Four labels do not fit a phone: the current stage is named, the others show their letter. */
  .stage-steps button:not([aria-current="step"]) { flex: 0 0 auto; padding: 5px; }
  .stage-steps button:not([aria-current="step"]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-source-pane { padding: 10px; }
  .demo-video-shell { padding: 40px 6px 6px; border-radius: 14px; }
  .demo-video-meta { height: 40px; padding: 0 10px; font-size: .48rem; }
  .demo-subtitle { bottom: 62px; font-size: .72rem; }
  .panel-scroll { padding: 12px; max-height: 70vh; }
  .review-foot { bottom: -12px; margin: 4px -12px -12px; padding: 14px 12px 12px; }
  .review-row { flex-wrap: wrap; }
  .workspace-final { padding: 10px; }
  .workspace > figcaption { flex-direction: column; gap: 4px; padding: 12px 14px; }
  .value-list h3 { font-size: 1.08rem; }
  .pilot-panel { padding: 35px 24px; border-radius: 22px; }
  .pilot-form-row { grid-template-columns: 1fr; }
  .stage-btn { padding: 6px 11px; font-size: .7rem; }
  .bar-info { min-height: 92px; padding: 12px 14px; }
  .bar-idle { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bar-controls { position: relative; padding: 12px 14px 14px; }
  .principles > span { min-height: 28px; display: flex; align-items: center; flex-basis: 100%; }
  #tourToggle { position: absolute; top: 12px; right: 14px; }
  .principle-chips button { padding: 6px 11px; font-size: .74rem; }
  .feature-caption { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .caption-body { grid-column: 1 / -1; }
  .caption-nav { grid-row: 1; grid-column: 2; }
  .glasses-stage { border-radius: 18px; }
  .eln-doc { padding: 22px 16px; border-radius: 14px; }
  .doc-head { flex-direction: column; gap: 12px; }
  .doc-head h3 { font-size: 1.35rem; }
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .doc-figures { grid-template-columns: 1fr 1fr; }
  .privacy-commitments { grid-template-columns: 1fr; }
  .privacy-commitments div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-foot { align-items: flex-start; flex-direction: column; gap: 16px; padding-right: 18px; padding-left: 18px; }
}
