/* ==========================================================================
   Barbell Pocket — Concept 01 "LOAD" (production homepage)
   Iron, chrome and calibrated plate colour. Editorial type. One moving thing.
   The product demos inside the phones are styled by app.css (the app's own system).
   ========================================================================== */
:root {
  --iron: #1a1c1f;
  --iron-2: #212428;
  --iron-3: #2a2d32;
  --rail: #3b3f45;
  --ivory: #ede9e1;
  --pewter: #a3a8ae;
  --pewter-2: #6f757c;
  --blue: #3569d1;
  --blue-deep: #2a5bc0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 3.2vw, 40px);   /* the page's side margin grows with the window */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--iron);
  color: var(--ivory);
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 15px, 18px);   /* 16 px on a phone, 18 px on a wide monitor */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 96px); letter-spacing: -0.038em; }
h2 { font-size: clamp(30px, 3.8vw, 54px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ivory); color: var(--iron); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--pewter); max-width: 34em; }
.muted { color: var(--pewter); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(26, 28, 31, 0.92); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.wordmark .brand-mark { width: 18px; height: 26px; display: block; object-fit: contain; }
.site-footer .wordmark .brand-mark { width: 15px; height: 22px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; list-style: none; padding: 0; }
.nav-links a { color: var(--pewter); font-size: 15px; padding: 8px 0; }
.nav-links a:hover { color: var(--ivory); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; cursor: pointer;
  transition: transform 220ms cubic-bezier(.22,1,.36,1), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--rail); }
.btn-ghost:hover { border-color: var(--pewter); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rail); background: transparent; color: var(--ivory); border-radius: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; }

/* ---- hero ---- */
.hero { padding: clamp(36px, 5vh, 72px) 0 0; }
.hero-copy { max-width: 820px; }
.hero-copy .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* the stage: the lifting platform (the canvas) with the load panel in its own row beneath it */
.stage {
  position: relative; display: flex; flex-direction: column;
  margin-top: clamp(14px, 2vh, 24px);
}
.stage canvas {
  position: relative; width: 100%; display: block;
  height: clamp(360px, min(44vh, 34vw), 600px);   /* the pull's travel grows with the window */
  touch-action: pan-y;                 /* vertical swipes scroll the page, always */
  cursor: grab;
}
.stage canvas.is-grabbing { cursor: grabbing; }
/* the instruction sits under the middle of the bar, between the plates (js/loadfield.js places it
   from the bar's geometry); it fades once the bar has been lifted and let go */
.stage-hint {
  position: absolute; left: 50%; top: var(--hint-top, 62%); transform: translateX(-50%);
  margin: 0; font-size: 13px; line-height: 18px; color: var(--pewter-2); white-space: nowrap;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 0s linear 700ms;
}
.stage.hint-done .stage-hint { opacity: 0; visibility: hidden; }
.stage-hint .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .stage-hint .hint-fine { display: none; }
  .stage-hint .hint-touch { display: inline; }
}
/* the load panel: a quiet configuration row of its own, set apart from the platform — the readout
   at the left, the unit switch and the five loads at the right. It steps back while the bar is
   being lifted. */
.load-control {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  /* one row under the platform, its ends lined up with the platform's (--deck, set by the stage script),
     so the readout and the pickers stay with the bar however wide the window gets */
  width: calc(100% - 2 * var(--gutter)); max-width: var(--deck, 1240px);
  margin: 26px auto 0;
  transition: opacity 260ms ease;
}
.stage.lifting .load-control { opacity: 0.22; }
.load-pickers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.segments.units button { min-width: 48px; }
.segments.loads button { min-width: 54px; }
.readout { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--pewter); margin: 0; }
.readout strong { color: var(--ivory); font-weight: 600; }
.segments { display: inline-flex; background: var(--iron-2); border: 1px solid var(--rail); border-radius: 12px; padding: 4px; gap: 2px; }
.segments button:hover { color: var(--ivory); }
.segments button {
  font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 56px; min-height: 40px; padding: 0 12px; border-radius: 9px; border: 0;
  background: transparent; color: var(--pewter); cursor: pointer;
}
.segments button[aria-checked="true"] { background: var(--iron-3); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--rail); }
.hero-rail { height: 1px; background: var(--rail); margin-top: 22px; }

/* ---- sections ---- */
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec + .sec { border-top: 1px solid var(--iron-3); }
/* Two equal columns: the copy is short, so it sits level with the middle of the phone and the
   proportions shift continuously with the window until the columns stack. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split > * { min-width: 0; }
.split.flip > .copy { order: 2; }
.copy p { margin-top: 18px; }
.copy .lead { color: var(--pewter); }
.copy .lead + .lead { margin-top: 0.4em; }
.copy ul { padding-left: 1.1em; color: var(--pewter); }

/* The product rests on a shelf: a thin rail beneath the phone, shadow pooling below. */
.shelf { position: relative; padding-bottom: 26px; }
.shelf::after { content: ""; position: absolute; left: max(-6%, calc(var(--gutter) * -1)); right: max(-6%, calc(var(--gutter) * -1)); bottom: 0; height: 1px; background: var(--rail); }

.detail-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.understand .detail-head { max-width: 860px; }
/* Understand: the copy sits level with the phone, as in Track and Visualize */
.understand .demo-split { align-items: center; }
.h-line { display: block; }

/* ---- product demos ---- */
.demo-copy > .segments { margin-top: 26px; }
.demo-hint { font-size: 14px; color: var(--pewter-2); max-width: 30em; }
.demo-hint::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 10px 4px 0; vertical-align: middle; background: var(--rail); }
.copy .demo-hint { margin-top: 26px; }
/* every demo mount has the shared frame's footprint before its screen is built (no layout shift) */
.demo-mount { position: relative; width: min(100%, 390px); margin-inline: auto; aspect-ratio: 390 / 640; }
.demo-mount > .phone-frame { width: 100%; }
/* phones: the demo takes nearly the whole screen width (8 px from each edge), so the simulated
   screen can be drawn at its true size */
@media (max-width: 480px) {
  .demo-mount { width: min(calc(100% + var(--gutter) * 2 - 16px), 390px); margin-inline: calc(8px - var(--gutter)); }
  .demo-mount > .phone-frame { border-radius: 14px; }
}
@media (max-width: 480px) and (min-width: 407px) { .demo-mount { margin-inline: auto; } }
@media (max-width: 350px) { .lens-tab { font-size: 12px; padding: 6px 4px; } .lens-tabs { gap: 4px; } }
@media (max-width: 420px) { .lift-switch { display: flex; } .lift-switch button { flex: 1; padding: 0 8px; } }
.demo-fallback { position: absolute; inset: 0; margin: 0; padding: 40px 28px; border: 1px dashed var(--rail); border-radius: 16px; color: var(--pewter); font-size: 15px; text-align: center; }
.js .demo-fallback { visibility: hidden; }
/* a quiet way back to the demo's starting state, under the phone */
.demo-reset { display: block; margin: 16px auto 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--iron-3); background: transparent; color: var(--pewter-2); font: inherit; font-size: 13px; cursor: pointer; }
.demo-reset:hover { color: var(--pewter); border-color: var(--rail); }
/* the phone lands on its shelf once, the first time the section is seen */
.js .shelf .phone-frame { opacity: 0; transform: translateY(16px); }
.js .shelf.in .phone-frame {
  opacity: 1; transform: none;
  transition: transform 760ms cubic-bezier(.22, 1, .36, 1), opacity 480ms ease;
}
.lift-switch button { min-width: 0; padding: 0 14px; white-space: nowrap; }

/* Understand: the number, read three ways — the lens beside the product */
.pane { border-radius: 18px; padding: 24px 26px; background: var(--iron-2); border: 1px solid var(--iron-3); margin-top: 28px; max-width: 32em; }
.pane .tag { font-size: 13px; color: var(--pewter-2); margin: 0 0 12px; }
.pane .big { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--ivory); margin: 0; }
.pane p { color: var(--pewter); margin: 12px 0 0; }
.lens-tabs { display: flex; gap: 6px; margin-top: 18px; padding: 4px; border-radius: 12px; background: var(--iron); border: 1px solid var(--iron-3); }
.lens-tab { flex: 1; min-width: 0; min-height: 40px; font: inherit; font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--pewter); background: transparent; border: 0; border-radius: 9px; padding: 6px; cursor: pointer; text-wrap: balance; }   /* on a narrow screen a label wraps to two lines rather than being cut */
.lens-tab:hover { color: var(--ivory); }
.lens-tab[aria-selected="true"] { background: var(--iron-3); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--rail); }
.lens-panes { position: relative; margin-top: 16px; touch-action: pan-y; }
.lens-pane { display: grid; gap: 10px; }
.lens-pane[hidden] { display: none; }
.lens-pane p { margin: 0; }
.lens-question { font-size: 13px; color: var(--pewter-2); }
.lens-headline { font-size: 16px; font-weight: 600; color: var(--ivory); letter-spacing: -0.01em; }
.lens-visual { --app-border: #2a2d32; --app-subtle: #878d92; --app-success: #4caf50; --app-negative: #e53935; --app-card: #212428; --app-text: #ede9e1; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", Roboto, sans-serif; }
.lens-visual .ranked-heading, .lens-visual .bar-label, .lens-visual .bar-value { font-family: inherit; }
.lens-visual .ranked-heading { text-transform: none; letter-spacing: 0; font-weight: 400; }
.lens-visual .bar-value { font-size: 12px; line-height: 16px; color: var(--pewter); }
.lens-line { font-size: 14px; line-height: 1.5; color: var(--pewter); }
.lens-cmp { display: grid; gap: 8px; }
.lens-cmp-row { display: grid; grid-template-columns: 5.6em 1fr 4em; align-items: center; gap: 10px; font-size: 13px; }
.lens-cmp-label { color: var(--pewter-2); }
.lens-cmp-track { height: 6px; border-radius: 3px; background: var(--iron-3); overflow: hidden; }
.lens-cmp-fill { display: block; height: 100%; border-radius: 3px; background: #5b7fe6; transform-origin: 0 50%; }
.lens-cmp-value { text-align: right; color: var(--ivory); font-variant-numeric: tabular-nums; }
.lens-open { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: -10px 0; padding: 12px 0; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ivory); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rail); text-underline-offset: 5px; }
.lens-open:hover { text-decoration-color: var(--pewter); }
.lens-open .ic { display: inline-flex; line-height: 0; color: var(--pewter); }
.lens-note { margin: 16px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--iron-3); font-size: 12.5px; line-height: 1.45; color: var(--pewter-2) !important; }

/* ---- "It adds up.": the year on a playhead ---- */
.addsup .detail-head { max-width: 760px; }
.au-mount { position: relative; margin-top: clamp(28px, 4vw, 44px); }
.au-fallback { position: static; }
.au-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--iron-3); border-radius: 20px; background: var(--iron-2); }
.au-left, .au-right { min-width: 0; }
.au-ledger { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 8px; }
.au-count { margin: 0; font-size: 14px; color: var(--pewter); font-variant-numeric: tabular-nums; }
.au-count strong { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--ivory); margin-right: 2px; }
/* the last set written down: one line that keeps its height while entries crossfade through it */
.au-last { position: relative; flex-basis: 100%; margin: 4px 0 0; min-height: 1.5em; }
.au-last-line { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; line-height: 1.5; color: var(--pewter-2); font-variant-numeric: tabular-nums; }
.au-last-line.out { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.au-last-set { color: var(--ivory); font-weight: 600; }
.au-last-est { color: var(--pewter); }
.au-chart { position: relative; width: 100%; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.au-svg, .au-strip-svg { display: block; width: 100%; overflow: visible; }
.au-grid { stroke: var(--iron-3); stroke-width: 1; shape-rendering: crispEdges; }
.au-grid-label { font-size: 11px; fill: var(--pewter-2); }
/* the signal: the record's lines sit back; the newest stretch of each is brightened behind the
   playhead (a gradient mask, js/addsup.js); the current point of each lift wears a soft halo, and
   the lift trained most recently breathes */
.au-line { opacity: 0.72; }
.au-line-live { animation: au-tail 2.6s ease-in-out infinite; }
@keyframes au-tail { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
/* the spark: a short dash that runs along the newest stretch of each line into its current point */
.au-spark { stroke-dasharray: 16 100; stroke-dashoffset: 116; opacity: 0.55; animation: au-spark 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.au-spark.active { opacity: 0.95; animation-duration: 2.2s; }
@keyframes au-spark { 0% { stroke-dashoffset: 116; } 70%, 100% { stroke-dashoffset: -4; } }
.au-playhead { stroke-width: 1; }
.au-end-label { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.au-end { transition: transform 80ms linear; }
.au-node { stroke: var(--iron-2); stroke-width: 1.5; }
.au-halo { opacity: 0.45; }
.au-pulse { transform-box: fill-box; transform-origin: center; }
.au-end.active .au-halo { animation: au-breathe 2.6s ease-in-out infinite; }
@keyframes au-breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.85; } }
.au-strip { position: relative; margin-top: 2px; touch-action: pan-y; cursor: ew-resize; }
.au-tick { stroke: var(--rail); stroke-width: 1.5; opacity: 0.45; }
.au-tick.logged { stroke: var(--pewter); opacity: 0.9; }
.au-strip-head { fill: var(--ivory); }
.au-control { margin-top: 6px; }
.au-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.au-range:focus { outline: none; }
.au-range::-webkit-slider-runnable-track { height: 2px; background: var(--rail); border-radius: 1px; }
.au-range::-moz-range-track { height: 2px; background: var(--rail); border-radius: 1px; }
.au-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--ivory); border: 4px solid var(--iron-2); box-shadow: 0 0 0 1px var(--rail); }
.au-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); border: 4px solid var(--iron-2); box-shadow: 0 0 0 1px var(--rail); }
.au-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--blue); }
.au-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--blue); }
.au-control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.au-readout { margin: 0; font-size: 14px; color: var(--pewter); font-variant-numeric: tabular-nums; }
.au-control .sr-only { position: absolute; }
.au-play { font: inherit; font-size: 13px; color: var(--pewter); background: transparent; border: 1px solid var(--rail); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.au-play:hover, .au-play[aria-pressed="true"] { color: var(--ivory); border-color: var(--pewter); }
.au-caption { margin: 0 0 12px; font-size: 13px; color: var(--pewter-2); }
.au-signals { list-style: none; margin: 0; padding: 0; display: grid; }
.au-signal { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--iron-3); transition: opacity 240ms ease; }
.au-signal.hidden, .au-signal[hidden] { display: none; }   /* a signal the record cannot support yet is not listed */
.au-signal.entering { overflow: hidden; box-sizing: border-box; }
.au-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 8px; transition: background-color 240ms ease, box-shadow 240ms ease; }
.au-signal.off .au-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rail); }
.au-signal.neutral .au-dot { background: var(--pewter-2); box-shadow: none; }
.au-signal-text { display: grid; gap: 3px; min-width: 0; }
.au-label { font-size: 15px; font-weight: 600; color: var(--ivory); }
.au-sub { font-size: 12px; line-height: 1.35; color: var(--pewter-2); }
/* a value is a short stack: one lift per line, the number aligned in its own column */
.au-value { display: grid; gap: 2px; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--pewter); font-variant-numeric: tabular-nums; }
.au-pair { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; }
.au-pair-label { color: var(--pewter-2); }
.au-pair-value { color: var(--ivory); }
.au-line:first-child { color: var(--ivory); }
.au-signal.off .au-label { color: var(--pewter); }
.au-signal.off .au-value { color: var(--pewter-2); }
@media (max-width: 1023px) {
  .au-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .au-last { min-height: 3em; }   /* the set line wraps to two lines on a phone: hold the room */
}
@media (prefers-reduced-motion: reduce) {
  .au-signal, .au-dot, .au-end { transition: none; }
  .au-end.active .au-halo, .au-line-live, .au-spark { animation: none; }
  .au-spark { stroke-dasharray: none; opacity: 0; }
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--iron-3); padding: 36px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--pewter-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .wordmark { font-size: 16px; color: var(--ivory); }
.footer-links { margin-left: auto; display: flex; gap: 24px; }
.footer-links a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--rail); text-underline-offset: 5px; padding: 10px 0; }
.footer-links a:hover { text-decoration-color: var(--pewter); }
.footer-links a[aria-current="page"] { text-decoration-color: var(--blue); }
.footer-legal { margin: 0; flex-basis: 100%; }

/* ---- responsive ---- */
/* short desktop windows: tighter hero type and spacing, a shorter platform, so the resting bar
   still lands inside the first screen */
@media (min-width: 768px) and (max-height: 820px) {
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(42px, 5.4vw, 78px); }
  .hero-copy .lead { margin-top: 16px; font-size: clamp(17px, 1.3vw, 19px); }
  .hero-actions { margin-top: 20px; }
  .stage { margin-top: 12px; }
  .stage canvas { height: clamp(316px, 42vh, 600px); }
  .load-control { margin-top: 20px; }
}
@media (max-width: 1023px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 44px); }
  .split.flip > .copy { order: 0; }
  .demo-copy .lead, .demo-copy p { max-width: 38em; }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 68px; background: var(--iron-2); border-bottom: 1px solid var(--rail); padding: 8px 20px 16px; margin: 0; }
  .nav.open .nav-links a { display: block; padding: 14px 0; font-size: 17px; }
  /* phones: the controls sit above the bar in their own box, so a lifted bar never passes under
     the buttons (the instruction stays with the bar, placed from its geometry) */
  .stage canvas { order: 1; height: clamp(250px, 38vh, 380px); }
  .load-control { order: 0; width: auto; max-width: none; margin: 12px 0 0; padding: 0 var(--gutter); flex-direction: column; align-items: stretch; gap: 10px; }
  .stage.lifting .load-control { opacity: 1; }
  .load-pickers { width: 100%; flex-wrap: nowrap; }
  .segments button { min-width: 0; flex: 1; }
  .segments.units { flex: 0 0 auto; }
  .segments.units button { min-width: 44px; }
  .segments.loads { flex: 1; min-width: 0; }
  .segments.loads button { min-width: 0; padding: 0 4px; }
  .segments { display: flex; }
  .footer-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lens-pane, .lens-cmp-fill { transition: none; animation: none; }
  .js .shelf .phone-frame { opacity: 1; transform: none; transition: none; }
  .stage-hint { transition: none; }
  .btn { transition: none; }
}

/* a phone held sideways: a compact hero, and a platform that fits the short screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 20px; }
  h1 { font-size: clamp(36px, 6vw, 56px); }
  .hero-copy .lead { margin-top: 12px; font-size: 16px; }
  .hero-actions { margin-top: 16px; }
  .stage canvas { height: max(230px, 70vh); }
  .load-control { margin-top: 14px; }
}
