/* TABOX, film edition. Filmic one-shot: a dark world the scroll pushes
   through, layered planes at different rates, the product window in the hero.
   Tokens first; engine classes are never restyled.

   Tokens live in tokens.css, shared verbatim with the dashboard in app/. */
@import url("tokens.css");

/* two grounds: the page ground (follows the theme) and the film (always dark) */
[data-ground="paper"] { --g: var(--paper); --t: var(--paper-ink); --s: var(--paper-soft); --a: var(--paper-accent); --sf: var(--surface); --sf2: var(--surface-2); --hc: var(--hair-c); }
[data-ground="film"]  { --g: var(--film); --t: #efebe2; --s: #b5b1a7; --a: #7fcd8a; --sf: #14161c; --sf2: #1b1e26; --hc: #efebe2; }
[data-ground] { --hair: color-mix(in oklab, var(--hc) 16%, transparent); --hair-strong: color-mix(in oklab, var(--hc) 34%, transparent); color: var(--t); }
section[data-ground] { background: var(--g); }
section[data-ground] .sc-stage { background: var(--g); }

html { scroll-padding-top: 4rem; }
body { font-family: var(--sc-font-text); }
.sc-grain { opacity: 0.05; }

/* ------------------------------------------------------------ chrome -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1rem var(--gutter); color: var(--t);
  transition: color 240ms var(--sc-ease-out);
}
/* The bar carries no plate, so page text used to run under its own ink: at 390
   seventeen scroll positions put a headline or a caption behind the wordmark or
   the theme pill, ten did at 1440. A band scrim separates them. It is keyed to
   --g, which the bar already follows through data-ground, so it is correct in
   both themes and over both film and paper acts, and it adds no motion. Colour
   sits on background-color with the fade in a mask, because a gradient cannot
   transition and the ground swap would snap while the ink crossfades. */
.bar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 90px;
  pointer-events: none; z-index: 0; background-color: var(--g);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  transition: background-color 240ms var(--sc-ease-out);
}
.bar > * { position: relative; z-index: 1; }
.bar .wm { font-family: var(--sc-font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.06em; text-decoration: none; color: var(--t); line-height: 1.4; white-space: nowrap; }
.bar .bcta {
  margin-inline-start: auto; white-space: nowrap;
  font-size: 0.9rem; color: var(--t); text-decoration: none; line-height: 1.6;
  border-bottom: 1px solid var(--a); padding-bottom: 1px;
}
.bar .bcta:hover { border-bottom-color: var(--t); }
/* Login: the one action in the bar. Mono caps on a pill, like the theme toggle
   beside it, but outlined in the accent so it reads as the way in. Shown at
   every width. */
.bar .blogin {
  margin-inline-start: auto; white-space: nowrap; text-decoration: none;
  font-family: var(--sc-font-mono); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--t); border: 1px solid var(--a); border-radius: 999px;
  padding: 0.2rem 0.95rem; line-height: 1.9;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.bar .blogin:hover { background: var(--a); color: #07080b; }
.theme-toggle {
  font-family: var(--sc-font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid color-mix(in oklab, var(--paper-ink) 34%, transparent); border-radius: 999px;
  padding: 0.2rem 0.85rem; line-height: 1.9; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.theme-toggle:hover { background: color-mix(in oklab, var(--paper-ink) 8%, var(--paper)); }
.theme-toggle:active { transform: translateY(1px); }

/* --------------------------------------------------------------- type -- */
.label { font-family: var(--sc-font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--s); margin: 0; line-height: 1.5; }
.h1 { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.016em; text-wrap: balance; margin: 0; }
.h2 { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.014em; text-wrap: balance; margin: 0; }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; max-width: 40ch; text-wrap: pretty; margin: 0; color: var(--t); }
.body { max-width: 52ch; margin: 0; line-height: 1.62; text-wrap: pretty; color: var(--t); }
.run a { color: var(--t); text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--a); text-underline-offset: 0.3em; }
.run a:hover { text-decoration-color: var(--t); }
.wrap { width: 100%; max-width: 88rem; margin-inline: auto; padding-inline: var(--gutter); }
.dot { display: inline-flex; align-items: center; gap: 0.55rem; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 3px color-mix(in oklab, var(--a) 22%, transparent); }

/* --------------------------------------------------------------- hero -- */
.hero .sc-stage { background: var(--film); }
.hero .plane { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero .plane img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; mix-blend-mode: screen; }
.hero .plane--mid img { opacity: 0.75; -webkit-mask-image: linear-gradient(to bottom, transparent 22%, #000 40%, #000 58%, transparent 74%); mask-image: linear-gradient(to bottom, transparent 22%, #000 40%, #000 58%, transparent 74%); }
.hero .plane--near img { opacity: 0.62; -webkit-mask-image: linear-gradient(to bottom, transparent 64%, #000 86%); mask-image: linear-gradient(to bottom, transparent 64%, #000 86%); }
/* pointer parallax lives on an inner wrapper; the engine owns the outer transform */
.hero .plane .pp { position: absolute; inset: 0; transition: transform 180ms var(--sc-ease-out); }
.hero .plane--mid .pp { transform: translate3d(calc((var(--sc-mx, 0.5) - 0.5) * -18px), calc((var(--sc-my, 0.5) - 0.5) * -10px), 0); }
.hero .plane--near .pp { transform: translate3d(calc((var(--sc-mx, 0.5) - 0.5) * 26px), calc((var(--sc-my, 0.5) - 0.5) * 16px), 0); }
.hero .plane--near { z-index: 3; }
.hero .plane--mid { z-index: 1; }
.only-desktop { display: block; } .only-mobile { display: none; }
.hero .sc-copy--lead { max-width: min(52rem, 78vw); bottom: clamp(3rem, 11vh, 7rem); z-index: 20; }
.hero .sub { margin-top: 1.1rem; max-width: 44ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.5; color: #e7e2d8; }
.hero .run { margin-top: 1.4rem; }
.hero .run a { color: #efebe2; }

/* the ranking window: a real product surface between the mid and near planes */
.win {
  position: absolute; z-index: 2; right: var(--gutter); top: 13vh;
  width: min(44vw, 620px); height: 100vh;
  background: var(--surface); color: var(--paper-ink);
  border: 1px solid color-mix(in oklab, #efebe2 14%, transparent); border-radius: 14px 14px 0 0;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 2px 0 rgba(255,255,255,0.04) inset;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
:root[data-theme="light"] .win { background: #14161c; }
.win-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.07); font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: #a9a59b; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.win-bar .url { margin-inline-start: 0.6rem; }
.win-body { display: grid; grid-template-columns: 8.5rem 1fr; min-height: 0; }
.win-side { border-right: 1px solid rgba(255,255,255,0.07); padding: 0.9rem 0.6rem; font-size: 0.78rem; color: #a9a59b; }
.win-side .item { padding: 0.42rem 0.6rem; border-radius: 7px; }
.win-side .item.on { background: rgba(255,255,255,0.07); color: #efebe2; }
.win-main { padding: 0.9rem 1rem 0; min-height: 0; }
.win-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.win-head h3 { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.15rem; margin: 0; color: #efebe2; }
.win-head .state { font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7fcd8a; }
.rows { list-style: none; margin: 0; padding: 0; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.rows li { display: grid; grid-template-columns: 1.6rem 4.2rem 1fr 3rem; gap: 0.7rem; align-items: center; height: 1.85rem; border-top: 1px solid rgba(255,255,255,0.06); position: relative; }
.rows .rk { color: #a9a59b; opacity: var(--rk, 0); }
.rows .tk { color: #efebe2; font-weight: 500; }
.rows .sb { height: 3px; background: rgba(255,255,255,0.08); position: relative; }
.rows .sb i { position: absolute; inset: 0; background: #7fcd8a; transform-origin: left; transform: scaleX(var(--v, 0)); }
.rows .wt { text-align: right; color: #a9a59b; opacity: var(--wo, 0); }
.rows li.held { background: linear-gradient(90deg, rgba(127,205,138,0.10), transparent 70%); }
.win-tail { margin-top: 0.7rem; height: 40vh; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.6; }
.win-note { font-family: var(--sc-font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a9a59b; margin: 0.5rem 0 0; }

/* -------------------------------------------------------- the argument -- */
.argument .sc-stage { display: grid; align-content: center; }
.argument .ground { position: absolute; inset: 0; }
.argument .ground img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.argument .arg-scrim { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(120% 90% at 30% 50%, rgba(7,8,11,0.05) 25%, rgba(7,8,11,0.7) 100%),
  linear-gradient(to right, rgba(7,8,11,0.72) 0%, rgba(7,8,11,0.3) 50%, rgba(7,8,11,0.05) 100%); }
.argument .arg-grid { position: relative; z-index: 20; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: center; padding-inline: var(--gutter); max-width: 88rem; width: 100%; margin-inline: auto; }
.argument .lines { display: grid; gap: 1.1rem; max-width: 34rem; }
.argument .lines .h2 { color: #efebe2; margin-bottom: 0.6rem; }
.argument .lines .body { color: #efebe2; max-width: 44ch; }
.argument .lines .soft { color: #b5b1a7; }
.card.fee { max-width: 26rem; justify-self: end; }
.card.fee .track { height: 3px; background: rgba(239,235,226,0.14); margin: 0.6rem 0 1.2rem; position: relative; }
.card.fee .track i { position: absolute; inset: 0; background: #b5b1a7; transform-origin: left; transform: scaleX(calc(0.12 + 0.88 * clamp(0, (var(--sc-p, 0) - 0.12) / 0.72, 1))); }
.card.fee .bars { display: grid; grid-template-columns: 1fr; gap: 0.5rem 0; margin: 0; }
.card.fee dt { font-size: 0.9rem; display: flex; justify-content: space-between; gap: 1rem; }
.card.fee dt span { font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s); align-self: center; }
.card.fee dd { margin: 0 0 0.9rem; height: 14px; background: rgba(239,235,226,0.08); border-radius: 3px; position: relative; overflow: hidden; }
.card.fee dd i { position: absolute; inset: 0; border-radius: 3px; transform-origin: left; }
.card.fee dd.grow i { background: #c9a06a; transform: scaleX(calc(0.14 + 0.86 * clamp(0, (var(--sc-p, 0) - 0.12) / 0.72, 1))); }
.card.fee dd.flat i { background: #7fcd8a; transform: scaleX(0.3); }
.card.fee .sample { margin-top: 0.3rem; }

/* -------------------------------------------------------- the overlap -- */
.turn { padding-block: clamp(5rem, 12vh, 9rem); }
.turn .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.stack2 { position: relative; padding-bottom: 8rem; }
.stack2 figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair-strong); box-shadow: var(--sc-e3); }
.stack2 figure img { width: 100%; height: auto; display: block; }
.card {
  background: var(--sf); color: var(--t); border: 1px solid var(--hair-strong); border-radius: 12px;
  box-shadow: var(--sc-e3), var(--sc-edge); padding: 1.1rem 1.2rem 1rem;
}
.stack2 .card { position: absolute; right: -4%; bottom: 0; width: min(62%, 420px); }
.card h3 { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; margin: 0 0 0.9rem; }
.card table { width: 100%; border-collapse: collapse; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.card td { padding: 0.45rem 0; border-top: 1px solid var(--hair); vertical-align: middle; }
.card td.lab { width: 48%; } .card td.val { width: 16%; text-align: right; } .card td.w { width: 14%; text-align: right; color: var(--s); }
.card .barr { display: block; height: 4px; background: var(--hair); position: relative; margin-top: 0.3rem; }
.card .barr i { position: absolute; inset: 0; background: var(--a); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 900ms var(--sc-ease-out); }
.card tfoot td { border-top: 1px solid var(--hair-strong); font-weight: 500; padding-top: 0.6rem; }
.card .sample { margin-top: 0.8rem; }
.turn .text .h2 { margin-bottom: 1rem; }
.turn .text .body { margin-bottom: 1.6rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.steps li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.8rem; align-items: start; }
.steps .n { font-family: var(--sc-font-mono); font-size: 0.7rem; color: var(--s); padding-top: 0.35rem; }
.steps h4 { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.2rem; margin: 0 0 0.2rem; line-height: 1.2; }
.steps .k { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--s); max-width: 40ch; }

/* -------------------------------------------------------------- sizes -- */
.sizes .sc-copy--trail { max-width: min(30rem, 78vw); }
.sizes .card { text-align: left; margin-top: 1rem; }
.orders { list-style: none; padding: 0; margin: 0; font-family: var(--sc-font-mono); font-size: 0.74rem; letter-spacing: 0.03em; }
.orders li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: 0.9rem; padding: 0.45rem 0; border-top: 1px solid var(--hair); }
.orders li:first-child { border-top: 0; padding-top: 0; }
.orders .n { color: var(--s); } .orders .it-h { font-weight: 500; letter-spacing: 0.08em; }
.sizes .h2 { color: #efebe2; }
.sizes .sub { color: #e7e2d8; margin-top: 0.8rem; max-width: 38ch; }

/* ------------------------------------------------------------ custody -- */
.custody { padding-block: clamp(4rem, 10vh, 7rem); }
.custody .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: start; }
.ledger { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 0; font-size: 0.98rem; line-height: 1.5; }
.ledger dt { font-family: var(--sc-font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--s); padding-top: 0.2rem; }
.ledger dd { margin: 0; max-width: 34ch; text-wrap: pretty; border-top: 1px solid var(--hair); padding-top: 0.6rem; }
.ledger dd:first-of-type { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------- rail -- */
.range .sc-stage { display: grid; align-content: center; }
.rail { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); padding-inline: var(--gutter); width: max-content; }
.rail .lead { flex: 0 0 auto; width: min(30rem, 60vw); }
.rail .lead .h2 { margin-bottom: 1rem; }
.mk { flex: 0 0 auto; width: clamp(18rem, 30vw, 28rem); margin: 0; }
.mk > div { border-radius: 14px; overflow: hidden; border: 1px solid var(--hair-strong); box-shadow: var(--sc-e2); background: var(--sf); }
.mk img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.mk figcaption { padding: 0.9rem 1rem 1rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.85rem; }
.mk figcaption .l { font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s); padding-top: 0.15rem; }
.mk figcaption b { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.25rem; grid-column: 1 / -1; margin-bottom: 0.2rem; }
.rail .note { flex: 0 0 auto; width: min(22rem, 60vw); }
@media (prefers-reduced-motion: no-preference) {
  .mk { opacity: calc(0.55 + 0.45 * clamp(0, (var(--sc-p, 0) - var(--at, 0)) / 0.18, 1)); transform: translateY(calc((1 - clamp(0, (var(--sc-p, 0) - var(--at, 0)) / 0.18, 1)) * 10px)); }
  .mk:first-of-type { --at: 0; opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- close -- */
.close .sc-stage { display: grid; align-content: end; }
.close .ground { position: absolute; inset: 0; }
.close .ground img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.close .close-plate { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(to top, rgba(7,8,11,0.94) 0%, rgba(7,8,11,0.78) 40%, rgba(7,8,11,0.3) 62%, transparent 80%); }
.close .inner { position: relative; z-index: 20; padding: 0 var(--gutter) 0; max-width: 60rem; }
.close .h2 { color: #efebe2; max-width: 22ch; }
.close .pick { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0.4rem; border-radius: 999px; background: rgba(7,8,11,0.82); }
.seg label { position: relative; display: inline-flex; align-items: center; padding: 0.55rem 0.9rem; border: 1px solid rgba(239,235,226,0.35); border-radius: 999px; font-size: 0.9rem; color: #efebe2; cursor: pointer; line-height: 1; background: rgba(7,8,11,0.55); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: rgba(127,205,138,0.22); border-color: #7fcd8a; }
.seg label:has(input:focus-visible) { outline: 2px solid #7fcd8a; outline-offset: 3px; }
.close .when { font-family: var(--sc-font-display); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); color: #efebe2; margin: 1.2rem 0 0; max-width: 34ch; }
.close .when .fn { color: #b5b1a7; }
.cta {
  display: inline-block; margin-top: 1.6rem; padding: 0.95rem 1.5rem; border-radius: 999px;
  background: #7fcd8a; color: #07080b; text-decoration: none; font-weight: 500; line-height: 1;
  font-family: var(--sc-font-mono); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(127,205,138,0.5);
  transition: transform 120ms var(--sc-ease-out);
}
.cta:hover { background: #8fd899; } .cta:active { transform: scale(0.97); }
.cta span { display: inline-block; margin-left: 0.35em; transition: transform 140ms var(--sc-ease-out); }
.cta:hover span { transform: translateX(3px); }
/* In the hero the pill replaces an underlined text link: no underline, no top gap. */
.run a.cta--hero, .hero .run a.cta--hero { margin-top: 0; color: #07080b; text-decoration: none; padding: 0.8rem 1.35rem; }
.foot { position: relative; z-index: 20; margin-top: clamp(2.5rem, 7vh, 4rem); padding: 1.25rem var(--gutter) 1.5rem; border-top: 1px solid rgba(239,235,226,0.14); display: flex; flex-wrap: wrap; gap: 0.6rem 3rem; justify-content: space-between; font-size: 0.8rem; line-height: 1.5; color: #b5b1a7; background: rgba(7,8,11,0.6); }
.foot p { margin: 0; max-width: 62ch; }
.foot .foot-about { flex-basis: 100%; max-width: 78ch; color: #d6d2c8; }
.foot .foot-about a { color: #efebe2; text-decoration: underline; text-underline-offset: 2px; }
.foot .foot-links { display: flex; gap: 1.25rem; }
.foot .foot-links a { color: #efebe2; text-decoration: underline; text-underline-offset: 2px; }
.foot .wm-small { font-family: var(--sc-font-display); font-weight: 500; letter-spacing: 0.06em; color: #efebe2; margin-right: 0.6rem; }

/* ------------------------------------------------------------ phone -- */
@media (max-width: 860px) {
  .only-desktop { display: none; } .only-mobile { display: block; }
  .bar .bcta { display: none; }
  .win { right: var(--gutter); left: var(--gutter); width: auto; top: 9vh; height: 48svh; border-radius: 12px; }
  .win-side { display: none; } .win-body { grid-template-columns: 1fr; }
  .rows li:nth-child(n+7) { display: none; }
  .win-tail { display: none; }
  .hero .plane--near { display: none; }
  .hero .sc-copy--lead { bottom: 2.2rem; }
  .hero .sub { max-width: none; }
  .argument .arg-grid { grid-template-columns: 1fr; row-gap: 1.4rem; padding-top: 4rem; }
  .argument .lines { gap: 0.7rem; }
  .argument .lines .body { font-size: 0.92rem; }
  .card.fee { justify-self: stretch; max-width: none; padding: 0.9rem 1rem; }
  .card.fee dd { margin-bottom: 0.6rem; }
  .turn .grid { grid-template-columns: 1fr; row-gap: 2rem; }
  .stack2 { padding-bottom: 0; }
  .stack2 .card { position: static; width: 92%; margin: -2.5rem 0 0 auto; }
  .custody .grid { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .rail .lead { width: 72vw; } .mk { width: 72vw; } .rail .note { width: 72vw; }
  .sizes .sc-copy--trail { max-width: none; }
  .sizes .card { display: none; }
  .close .h2 { font-size: 1.6rem; }
}

/* ------------------------------------------------------------- touch -- */
@media (hover: none), (pointer: coarse) {
  .bar { padding-block: 0.75rem; }
  .bar .wm { padding-block: 0.6rem; }
  .theme-toggle { padding: 0.55rem 1rem; line-height: 1.6; font-size: 0.78rem; }
  .hero .run a, .run a { display: inline-block; padding-block: 0.7rem; }
  .seg label { padding: 0.8rem 1.1rem; font-size: 0.95rem; }
  .card.fee dt span, .mk figcaption .l, .win-bar, .win-head .state, .win-note, .orders { font-size: 0.72rem; }
  .rows li { height: 2.1rem; font-size: 0.76rem; }
}
@media (max-width: 860px) {
  .win-bar { font-size: 0.72rem; }
  .win-head .state { font-size: 0.7rem; }
  .win-note { font-size: 0.7rem; }
  .mk figcaption .l { font-size: 0.72rem; }
  .card.fee dt span { font-size: 0.7rem; }
  /* the order sheet stays on the phone: top of the stage, copy in the band below */
  .sizes .card { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 9vh; bottom: auto; max-width: none; padding: 0.8rem 0.9rem; }
  .sizes .orders { font-size: 0.7rem; }
  .sizes .orders li { padding: 0.3rem 0; }
  .sizes .card .sample { display: none; }
  .sizes .sc-copy--trail:not(.card) { bottom: 2rem; }
  .sizes .h2 { font-size: 1.7rem; }
}

/* the logo: geometry, inherits the bar's ink; the O stays green */
.wm .logo { display: block; height: 1.35rem; width: auto; color: inherit; }
