/* ==========================================================================
   Shared layout + components — imported after tokens.css on every page.
   ========================================================================== */

/* ---------- site nav ---------- */
.site-nav {
  padding: 1.75rem 0;
}
.site-nav .navrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav .brand {
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.site-nav .brand-short { display: none; }
.site-nav ul {
  list-style: none; display: flex; gap: clamp(1rem, 3vw, 2rem);
  margin: 0; padding: 0;
}
.site-nav a {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .10em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 400px) {
  .site-nav .brand-full { display: none; }
  .site-nav .brand-short { display: inline; font-size: 2.125rem; }
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: 1rem; }
}

/* ---------- masthead ---------- */
header.masthead { padding: clamp(2.5rem, 9vh, 6rem) 0 3rem; }

/* ---------- sections ---------- */
section { padding: 3.5rem 0; }
section.pad-lg { padding: 5rem 0; }

.cols {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
/* grid items default to min-width:auto, so a wide descendant (e.g. the
   horizontally-scrolling flowchart) would otherwise stretch the whole
   track — and the page — instead of scrolling inside its own container */
.cols > * { min-width: 0; }
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; gap: .75rem; }
  /* a dl.meta panel is substantial (company/role/timeline/team) — reading it
     before the title it belongs to reads backwards once stacked, unlike a
     plain one-line label. Push it below the title/content column instead. */
  .cols > div:has(dl.meta) { order: 2; }
}

/* major section marker — "Context", "Service flow", "Decision 01", "Outcome",
   etc. — the label sitting directly above a section's heading/content */
.section-label { font-size: .8125rem; }

/* ---------- meta definition list ---------- */
dl.meta { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
dl.meta div { padding: .55rem 0; border-top: 1px solid var(--rule); }
dl.meta div:first-child { border-top: 0; padding-top: 0; }
dl.meta dt {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .10em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .15rem;
}
dl.meta dd { margin: 0; }

/* ---------- options list (decision alternatives) ---------- */
ol.options {
  list-style: none; margin: 0 0 2rem; padding: 0;
  max-width: var(--measure); counter-reset: opt;
}
ol.options li {
  counter-increment: opt;
  display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem;
  padding: .75rem 0; border-top: 1px dashed var(--rule);
  font-size: 1rem; line-height: 1.55; color: var(--muted);
}
ol.options li::before {
  content: counter(opt, decimal-leading-zero);
  font-family: var(--display); font-weight: 500; font-size: .75rem;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: .06em;
  color: var(--muted); padding-top: .45rem;
}
ol.options li[data-chosen] {
  color: var(--ink);
  border-top-style: solid; border-top-color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 1.05rem; margin-left: -1.05rem; padding-right: 5.5rem;
  position: relative;
}
ol.options li[data-chosen]::before { color: var(--ink); }
ol.options li[data-chosen]::after {
  content: "Chosen"; position: absolute; right: 0; top: .85rem;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
@media (max-width: 560px) {
  ol.options li[data-chosen] { padding-right: 0; }
  ol.options li[data-chosen]::after { position: static; display: block; margin-top: .4rem; }
}

/* unordered sibling of ol.options — same dashed-divider language, no
   counter/chosen state since these are independent supporting facts */
.fact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: var(--measure); }
.fact-list li {
  padding: .75rem 0; border-top: 1px dashed var(--rule);
  font-size: 1rem; line-height: 1.55;
}
.fact-list li:first-child { border-top: 0; padding-top: 0; }

/* dashed hairline variant — same dashed-divider language as ol.options /
   .fact-list, used for the rare section break that wants a bit more
   presence than the plain solid hairline (e.g. masthead into the main
   listing below it). Pairs with the existing .hairline.reveal-line
   scaleX reveal, which still applies since this keeps that class too. */
hr.hairline-dashed {
  background: none; border: 0; border-top: 1px dashed var(--rule); height: 0;
}

.answer {
  border-left: 2px solid var(--accent);
  padding-left: 1.05rem; margin-left: -1.05rem;
  padding-top: 1.1rem; padding-bottom: .35rem; margin-top: 0; margin-bottom: 2rem;
  max-width: calc(var(--measure) + 1.05rem);
}

/* two-line marketing/product style comparison callout (Weluma Decision 3) */
.compare-callout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: calc(var(--measure) + 8rem); margin: 0 0 2rem;
}
.compare-callout div { border-top: 1px dashed var(--rule); padding-top: .85rem; }
.compare-callout .k {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .4rem;
}
@media (max-width: 560px) { .compare-callout { grid-template-columns: 1fr; } }

/* key callout (Weluma "the middle band is mine") */
.key-callout {
  border-left: 2px solid var(--accent); padding: .2rem 0 .2rem 1.05rem;
  margin: 2.0625rem 0 2rem; max-width: var(--measure);
}
.key-callout strong { display: block; margin-bottom: .3rem; }

/* ---------- outcomes figures ---------- */
.outcomes { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.outcomes li {
  padding: 1.1rem 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 10rem 1fr; gap: 1.25rem; align-items: baseline;
}
.outcomes .fig {
  font-family: var(--display); font-weight: 700; font-size: 1.75rem;
  line-height: 1; letter-spacing: -.02em; color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 560px) { .outcomes li { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- threshold / scale rule (signature element) ---------- */
.threshold { margin: 2.5rem 0; max-width: var(--measure); }
.threshold .track { position: relative; height: 2.25rem; border-bottom: 1px solid var(--ink); }
.threshold .tick { position: absolute; bottom: 0; width: 1px; height: .5rem; background: var(--rule); }
.threshold .marker { position: absolute; bottom: 0; width: 2px; height: 2.25rem; background: var(--accent); }
.threshold .marker span {
  position: absolute; bottom: calc(100% + .35rem); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: .75rem;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: .04em; color: var(--accent);
}
.threshold .scale {
  display: flex; justify-content: space-between; margin-top: .4rem;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- figure / caption ---------- */
figure.shot { margin: 2.5rem 0; }
/* a small screenshot-of-a-card reads better as an actual card — centered,
   narrower than the column — rather than stretched edge-to-edge like the
   rest of the mobile layout */
figure.shot.shot-card { max-width: 22rem; }
@media (max-width: 760px) {
  figure.shot.shot-card { max-width: 85%; margin-left: auto; margin-right: auto; }
}
figure.shot img, figure.shot svg { width: 100%; border: 1px solid var(--rule); background: var(--surface); }
figure.shot figcaption {
  margin-top: .65rem; font-size: 1rem; line-height: 1.5; color: var(--muted);
  max-width: var(--measure);
}
figure.shot figcaption strong { color: var(--ink); font-weight: 600; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .shot-row { grid-template-columns: 1fr; } }
.shot-row figure.shot { margin: 0; }

/* ---------- home: case cards ---------- */
.card {
  display: block; color: inherit; text-decoration: none;
  padding: clamp(2.25rem, 5vh, 3.25rem) 0; border-top: 1px solid var(--rule);
}
.card .cardtitle { transition: color .22s var(--ease-breath); }
.card:hover .cardtitle { color: var(--accent); }
/* no hover on touch — as a card scrolls through the reading band, fade its
   title the same way a rollover would (see card-scroll-highlight.js) */
@media (max-width: 820px) {
  .card.in-view .cardtitle { color: var(--accent); }
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.cardgrid {
  display: grid; grid-template-columns: 10rem 1fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.cardgrid > * { min-width: 0; }
@media (max-width: 820px) {
  .cardgrid { grid-template-columns: 1fr; gap: 1rem; }
  /* dl.meta's company/role/years all reappear via the tagline on mobile */
  .cardgrid > dl.meta { display: none; }
}

.cardtitle {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.028em;
  margin: .6rem 0 .75rem; max-width: 18ch;
}
.cardlead { font-size: 1.0625rem; line-height: 1.6; color: #3A3E44; max-width: 34rem; margin: 0; }

.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.75rem 0 0; max-width: 34rem; }
@media (max-width: 640px) { .figs { grid-template-columns: 1fr; gap: .75rem; } }
.figs div { border-top: 1px solid var(--rule); padding-top: .75rem; }
.figs .v {
  display: block; font-family: var(--display); font-weight: 700; font-size: 1.625rem;
  line-height: 1; letter-spacing: -.025em; color: var(--accent);
  font-variant-numeric: tabular-nums lining-nums;
}
.figs .k { display: block; margin-top: .4rem; font-size: .875rem; line-height: 1.4; color: var(--muted); }

/* three-line compressed case summary (Complexity / Decision / Outcome) */
.breakdown { margin: 1.75rem 0 0; max-width: 34rem; }
.breakdown div { padding: .85rem 0; border-top: 1px solid var(--rule); }
.breakdown div:first-child { border-top: 0; padding-top: 0; }
.breakdown .k {
  display: block; font-family: var(--mono); font-size: .8125rem; letter-spacing: .10em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .35rem;
}
.breakdown .v { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); margin: 0; max-width: none; }
/* Outcome is always the breakdown's last row — its figures get the accent,
   same as outcome stats elsewhere on the site. */
.breakdown div:last-child .v .num { color: var(--accent); font-weight: 600; }
.card-kicker { display: block; margin-bottom: .3rem; font-size: .75rem; }
.label-lock { display: inline-block; width: 1.3em; height: 1.3em; margin-left: .45em; vertical-align: -0.25em; color: inherit; }

/* ---------- social links (LinkedIn) ---------- */
.social-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); text-decoration: none;
  transition: color .2s var(--ease-breath);
}
.social-link:hover { color: var(--accent); }
.social-link svg { width: 1.1em; height: 1.1em; display: block; }
.footer-social { margin-top: .6rem; }
.footer-social .social-link svg { width: 1.6em; height: 1.6em; }
/* desktop already states role/years in dl.meta's own column — redundant
   alongside the title there. Mobile hides that column (see .cardgrid media
   query below), so a trimmed role/years line stands in for it instead. */
.card-tagline { display: none; font-style: italic; color: var(--muted); font-size: 1.25rem; margin: 0 0 .25rem; }
@media (max-width: 820px) { .card-tagline { display: block; } }

/* always-visible sibling of .card-tagline — for compact work-index entries
   (Sealed, KPMG) where the dl.meta sidebar doesn't restate company/role/
   timeline at any width, unlike the homepage-style cards above them */
.case-tagline { display: block; font-style: italic; color: var(--muted); font-size: 1.25rem; margin: 0 0 .25rem; }

.more {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem;
  font-family: var(--mono); font-size: 1.125rem; letter-spacing: .10em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); padding: .7rem 1.1rem;
  position: relative; isolation: isolate;
  transition: color .5s var(--ease-breath);
}
/* fills in solid teal once, as the card scrolls into view — see js/more-fill.js */
.more::before {
  content: ""; position: absolute; inset: -1px; background: var(--accent); z-index: -1;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease-breath);
}
.more.in { color: var(--paper); }
.more.in::before { transform: scaleX(1); }
.more span { transition: transform .22s var(--ease-breath); display: inline-block; }
.card:hover .more span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .more::before { transition: none; }
}

/* ---------- also / work-index entries ---------- */
.entry-list { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); }
.entry-list li {
  padding: .9rem 0; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1.5rem; font-size: 1rem;
}
.entry-list li:first-child { border-top: 0; }
.entry-list .who { font-weight: 600; }
.entry-list .what { color: var(--muted); text-align: right; }
.entry-list a { text-decoration: none; }
.entry-list a:hover .who { color: var(--accent); }

/* ---------- panel (sunken section: spec notes, footer) ---------- */
.panel-section { background: var(--panel); }
.panel-section .label { color: var(--muted-on-panel); }
.panel-section .small { color: var(--muted-on-panel); }

/* ---------- next-case chain link (above the footer) ---------- */
.next-case { padding: 2.5rem 0; }
.next-case a {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: .65rem;
}
.next-case a:hover { text-decoration: underline; }
.next-case a span { transition: transform .22s var(--ease-breath); display: inline-block; }
.next-case a:hover span { transform: translateX(4px); }

/* ---------- footer / contact ---------- */
footer.site-footer { padding: 3.5rem 0 5rem; }
footer.site-footer .contact-line {
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em;
}
footer.site-footer .foot-meta {
  margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; font-size: .8125rem; color: var(--muted);
}

/* ---------- back link ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .10em;
  text-transform: uppercase; color: var(--muted);
}
.back-link:hover { color: var(--ink); }

/* ---------- flowchart (FLOWCHART-STYLE-GUIDE.md) ----------
   Real DOM nodes + one SVG overlay for connectors — never baked SVG text.
   Static render: positions come from a column-index function, computed once
   and on resize. No scroll-scrubbed choreography. */
.flow-block { margin: 2.75rem 0 1.5rem; }
.flow-block .flow-scale { overflow-x: auto; padding-bottom: .5rem; }
.flow-field { position: relative; min-width: 640px; height: 260px; }
.flow-field svg.fc-connectors { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-field svg.fc-connectors path { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.flow-field svg.fc-connectors path.active { stroke: var(--ink); }
.flow-field svg.fc-connectors .fc-arrow { fill: var(--rule); }
.flow-field svg.fc-connectors .fc-arrow.active { fill: var(--ink); }

.fc-node {
  position: absolute; background: var(--paper); border: 1.5px solid var(--ink);
  padding: .625rem .8125rem; width: 8.5rem;
  font-family: var(--body); font-size: .75rem; line-height: 1.32; color: var(--ink);
}
.fc-node .t { font-weight: 600; display: block; margin-bottom: .15rem; }
.fc-node .s { color: var(--muted); font-size: .6875rem; }

.fc-node.terminal {
  border-radius: 999px; background: var(--ink); color: #fff; border: none;
  text-align: center; display: flex; align-items: center; justify-content: center;
  width: 7.5rem; height: 2.5rem; padding: 0;
}
.fc-node.terminal .t { margin: 0; color: #fff; font-size: .6875rem; }

.fc-node.decision {
  width: 7.25rem; height: 7.25rem; border-radius: 2px; border-color: var(--accent);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.fc-node.decision .t { font-size: .6875rem; font-weight: 600; }

.fc-node.manual {
  background: var(--accent); border-color: var(--accent); color: #fff;
  border-left: 5px solid var(--ink);
}
.fc-node.manual .t { color: #fff; }
.fc-node.manual .s { color: #CFE3E1; }

.fc-tag {
  position: absolute; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em;
  color: var(--muted);
}

.flow-readout {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  max-width: 640px; margin: 1.25rem 0 0; flex-wrap: wrap;
}
.flow-readout .count {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent);
}
.flow-readout .caption {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- process flow: linear step comparison (340B pricing) ----------
   Simpler cousin of the branching flowchart above — no decisions, no
   branches, so plain flex instead of the absolute-positioned node system. */
.pflow-block { margin: 1.75rem 0; }
.pflow-block .label { margin: 0 0 .75rem; }
.pflow { display: flex; align-items: stretch; gap: .5rem; }
.pnode {
  flex: 1 1 0; padding: .8rem .9rem; border-radius: 4px;
  font-family: var(--body); border: 1.5px solid transparent;
}
.pnode p { margin: 0; font-weight: 600; font-size: .9375rem; line-height: 1.32; }
.pflabel {
  display: block; font-family: var(--mono); font-size: .8125rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem;
}
.pnode.dashed { border-style: dashed; }

.pnode.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pnode.ink .pflabel { color: #fff; opacity: .6; }

.pnode.muted { background: var(--muted); border-color: var(--muted); color: #fff; }
.pnode.muted .pflabel { color: #fff; opacity: .7; }

.pnode.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.pnode.accent .pflabel { color: #CFE3E1; }

.pnode.pending { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.pnode.pending .pflabel { color: var(--muted); }

.parrow { flex: 0 0 auto; align-self: center; width: 1.125rem; height: auto; color: var(--muted); }

@media (max-width: 760px) {
  .pflow { flex-direction: column; }
  .parrow { transform: rotate(90deg); margin: -.1rem 0; }
  /* stacked before/after runs together without the side-by-side rows'
     natural separation — add a seam back in */
  .pflow-block + .pflow-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed var(--rule); }
  /* the before/after tag needs to read as the headline of its row, not
     blend into the muted supporting text next to it */
  .pflow-tag { color: var(--ink); font-weight: 700; }
}

/* ---------- live artifact: order cutoff timer ----------
   Real Figma coordinates (nodes 59:4118/4119/4120). System-UI font, not the
   site's Archivo/Plex — this quotes a real product, per Decision 04's point
   about leaving Salesforce's own UI plain rather than restyling it. */
.artifact-scale { margin: 2.75rem 0 1rem; }
.artifact {
  width: 100%; max-width: 514px; box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 1.75rem 0 14px; border-top: 1px solid #C9C9C8;
}
/* no card box anymore — states are separated by a rule instead */
.artifact + .artifact { margin-top: 1.75rem; }
.artifact-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* margin-left:auto (not justify-content:space-between on the row) so the
   button group stays flush right even after it wraps onto its own line */
.artifact-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.abtn {
  height: 42px; font-size: 16px; font-weight: 600; line-height: 40px;
  border-radius: 4px; border: 1px solid #C9C9C8;
  background: #FFFFFF; color: #1A1B1B; padding: 0 16px;
  font-family: inherit; box-sizing: border-box; cursor: default; white-space: nowrap;
}
.abtn.primary { background: #040404; border-color: #040404; color: #fff; }
/* fixed width (not just right-aligned) so the label and icon never shift
   position as the ticking countdown's digit count changes */
.artifact-info { width: 17rem; max-width: 100%; margin: 12px 0 0 auto; box-sizing: border-box; }
.cutoff-line { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; font-size: 14px; white-space: nowrap; }
.cutoff-line .k { color: #2B2B29; font-weight: 700; }
.cutoff-line .v { color: #1A1B1B; font-weight: 700; font-variant-numeric: tabular-nums; }
.artifact[data-state="soon"] .cutoff-line .v { color: #DE0443; font-weight: 700; }
.cutoff-line .clock-icon { width: 16px; height: 16px; display: none; flex: none; }
.artifact[data-state="soon"] .cutoff-line .clock-icon { display: inline-block; }
.schedule { margin-top: 1px; font-size: 14px; font-weight: 600; color: #6B7070; white-space: nowrap; text-align: right; }
.pill { height: 24px; background: #F1C985; border-radius: 4px; display: none; align-items: center; gap: .3rem; padding: 0 10px; margin-left: auto; width: fit-content; }
.pill svg { width: 15px; height: 15px; flex: none; }
.pill span { color: #452307; font-weight: 700; font-size: 13px; white-space: nowrap; }
.artifact[data-state="passed"] .pill { display: flex; }
.artifact[data-state="passed"] .cutoff-line { display: none; }
.next-cutoff { margin-top: 4px; font-size: 14px; color: #6B7070; display: none; text-align: right; white-space: nowrap; }
.next-cutoff b { color: #1A1B1B; font-weight: 700; }
.artifact[data-state="passed"] .next-cutoff { display: block; }
.artifact[data-state="passed"] .schedule { display: none; }

/* stacked side by side, generous gap keeps each state legible on its own */
.artifact + .artifact { margin-top: 1.75rem; }

/* ---------- live artifact: benchmark toggle ----------
   Same measurement, two reference frames. The fill + marker recompute their
   real proportion on toggle (honest data, not a frozen prop) — the point is
   made by how dramatically the same fact reads at each scale. */
.benchmark-toggle { margin: 2.5rem 0; max-width: var(--measure); }
.bt-buttons { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.bt-buttons button {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--rule); color: var(--muted);
  padding: .6rem .9rem; cursor: pointer;
  transition: border-color .2s var(--ease-breath), color .2s var(--ease-breath);
}
.bt-buttons button:hover { color: var(--ink); border-color: var(--ink); }
.bt-buttons button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.bt-track { position: relative; height: 2.25rem; background: var(--surface); border: 1px solid var(--rule); }
.bt-fill { position: absolute; top: 0; left: 0; bottom: 0; background: var(--accent); transition: width .65s var(--ease-breath); }
.bt-marker { position: absolute; top: -2.125rem; transform: translateX(-50%); transition: left .65s var(--ease-breath); white-space: nowrap; }
.bt-marker::after { content: ''; position: absolute; left: 50%; top: 1.875rem; width: 2px; height: 2.75rem; background: var(--ink); transform: translateX(-50%); }
.bt-marker span {
  font-family: var(--display); font-weight: 600; font-size: .8125rem;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink);
}
.bt-scale { display: flex; justify-content: space-between; margin-top: .5rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.bt-scale .end { transition: opacity .3s ease; }

/* ---------- gate notice (Weluma results-section access note) ---------- */
.gate-note {
  border: 1px solid var(--rule); background: var(--surface);
  padding: 1.25rem 1.5rem; max-width: var(--measure); font-size: .9375rem; color: var(--muted);
}
