/* ==========================================================================
   LATHE — page styles.
   scrollcraft.css is the floor and the mechanism; it is never edited.
   Everything here is this brand's own markup.
   ========================================================================== */

/* ------------------------------------------------------------- the brand -- */
:root {
  --sc-canvas:      #0b0908;
  --sc-surface:     #16110d;
  --sc-ink:         #f2ebe1;
  --sc-ink-soft:    #a39488;
  --sc-accent:      #e0762f;
  --sc-accent-ink:  #140c06;

  --sc-font-display: "Archivo", "Archivo Expanded", system-ui, sans-serif;
  --sc-font-text:    "Instrument Sans", system-ui, sans-serif;
  --sc-font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Machined objects want tight radii. One scale, held everywhere. */
  --sc-r-sm: 3px;  --sc-r-md: 6px;  --sc-r-lg: 10px;

  /* Shadows tinted to the canvas hue, warm rather than blue. */
  --sc-shadow-color: 24 45% 2%;

  /* Brand-local roles. */
  --lt-brass:   #c98d4e;
  --lt-index-w: 16.5rem;
  --lt-hair:    color-mix(in oklab, var(--sc-ink) 11%, transparent);
  --lt-hair-2:  color-mix(in oklab, var(--sc-ink) 20%, transparent);
  --lt-panel:   color-mix(in oklab, var(--sc-surface) 78%, transparent);
}

/* The hall is the ground. A negative z-index keeps it above the body
   background and below every block box, so it never covers content. */
#hall {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
}
/* Sections are transparent so the hall shows through. Where a section needs a
   ground of its own it paints a translucent panel, never an opaque page. */

body { overflow-x: clip; }

/* .cta and friends set `display`, which outranks the UA's [hidden] rule.
   Without this, anything hidden in the markup renders anyway. */
[hidden] { display: none !important; }

/* Skip link: real, visible on focus, first in the tab order. */
.skip {
  position: fixed; top: 0; left: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: var(--sc-3) var(--sc-5);
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  text-decoration: none; border-radius: 0 0 var(--sc-r-sm) 0;
  transition: transform var(--sc-d-fast) var(--sc-ease-out);
}
.skip:focus-visible { transform: none; }

/* ====================================================== the index (nav) ==
   The gallery grammar's chrome: an index of objects, and it jumps.
   Not a wordmark-and-CTA marketing bar.
   ======================================================================== */
.index {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--lt-index-w);
  z-index: var(--sc-z-chrome);
  display: flex; flex-direction: column;
  padding: var(--sc-6) var(--sc-5) var(--sc-5);
  gap: var(--sc-5);
  /* Solid, not a fade to transparent. The rail runs full-bleed underneath
     this column (see .hall-act), and a see-through sidebar let every card's
     text slide visibly under the index on its way off screen. */
  background: color-mix(in oklab, var(--sc-canvas) 97%, transparent);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--lt-hair);
  /* Still scrollable on a very short window, but never draws a scrollbar:
     a classic Windows bar appeared at 900px tall for a 2px overflow, and
     took enough width with it to push the buttons into a second, horizontal
     one. */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.index::-webkit-scrollbar { display: none; }

.mark {
  display: block;
  text-decoration: none;
  color: var(--sc-ink);
}
.mark__word {
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  display: block;
}
.mark__rule {
  height: 1px; width: 100%;
  background: linear-gradient(to right, var(--lt-hair-2), transparent 78%);
  margin-top: var(--sc-3);
}
/* Identity, not a hero claim. The grammar keeps claims off the collection. */
.mark__def {
  display: block;
  margin-top: var(--sc-3);
  font-size: var(--sc-t-xs);
  line-height: 1.5;
  color: var(--sc-ink-soft);
  max-width: 24ch;
}

.index__head {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
  margin: 0 0 var(--sc-2);
}

.index__list { list-style: none; margin: 0; padding: 0; }
.index__list li + li { margin-top: 1px; }

.index__link {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  align-items: baseline;
  gap: var(--sc-2);
  width: 100%;
  padding: 0.42rem var(--sc-2);
  background: none; border: 0;
  border-radius: var(--sc-r-sm);
  color: var(--sc-ink-soft);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--sc-t-sm);
  transition: color var(--sc-d-fast) var(--sc-ease-out),
              background-color var(--sc-d-fast) var(--sc-ease-out);
}
.index__link:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .index__link:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
}
.index__mark {
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
}
/* One line per object, always. "The Academy" wrapped to two and broke the
   column's rhythm against the six single-line rows above it. */
.index__name { font-weight: 500; white-space: nowrap; }
.index__link[data-current="true"] { background: color-mix(in oklab, var(--sc-ink) 8%, transparent); color: var(--sc-ink); }

.index__foot { margin-top: auto; display: grid; gap: var(--sc-3); position: relative; }

/* ---------------------------------------------------- the lit request CTA --
   An ambient pool of accent light behind the primary call to action, so it
   reads as the one lit object in a dark room rather than as a glowing button.
   Two parts: a wide soft pool on the panel behind it, and a warm cast from the
   button itself with a real downward offset. A zero-offset halo would read as
   neon; light that falls has a direction.
   -------------------------------------------------------------------------- */
.index__foot::before {
  content: "";
  position: absolute;
  /* Anchored in pixels to the bottom of the stack, not to the stack's height:
     the pool must reach the primary button and stop short of the ghost button
     above it, whose near-white label would lose contrast against warm light. */
  left: -18%; right: -18%;
  bottom: -26px;
  height: 104px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 50% at 50% 78%,
    color-mix(in oklab, var(--sc-accent) 55%, transparent) 0%,
    color-mix(in oklab, var(--sc-accent) 22%, transparent) 40%,
    transparent 76%);
  filter: blur(13px);
}

/* The primary CTA in the chrome, wherever it sits: the desktop index foot or
   the phone top bar. The ghost button beside it stays unlit, so there is still
   exactly one thing on the page carrying the accent. .cta--lit is the same
   light on the opening's button. */
.cta--lit,
.index .cta:not(.cta--ghost) {
  box-shadow:
    var(--sc-e1),
    0 6px 30px -6px color-mix(in oklab, var(--sc-accent) 66%, transparent),
    0 2px 10px -2px color-mix(in oklab, var(--sc-accent) 44%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .cta--lit:hover,
  .index .cta:not(.cta--ghost):hover {
    box-shadow:
      var(--sc-e1),
      0 8px 38px -6px color-mix(in oklab, var(--sc-accent) 78%, transparent),
      0 2px 12px -2px color-mix(in oklab, var(--sc-accent) 52%, transparent);
  }
}

/* While the opening's own button is on screen the sidebar copy of it goes
   quiet, so one screen never shows the same lit button twice. catalog.js sets
   data-quiet from an IntersectionObserver; with no script it simply stays lit. */
.index__foot::before { transition: opacity var(--sc-d-slow) var(--sc-ease-out); }
.index__foot .cta { transition: background-color var(--sc-d-base) var(--sc-ease-out),
                                color var(--sc-d-base) var(--sc-ease-out),
                                box-shadow var(--sc-d-base) var(--sc-ease-out),
                                transform 120ms var(--sc-ease-out); }
.index__foot[data-quiet="true"]::before { opacity: 0; }
.index__foot[data-quiet="true"] .cta:not(.cta--ghost) {
  background: none; color: var(--sc-ink);
  box-shadow: inset 0 0 0 1px var(--lt-hair-2);
}

/* One CTA label, used everywhere on the site. */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sc-2);
  padding: 0.7rem var(--sc-5);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-mono);
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 0; border-radius: var(--sc-r-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--sc-e1);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out),
              transform 120ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: color-mix(in oklab, var(--sc-accent) 88%, #fff); }
}
.cta:active { transform: translateY(1px); }
.cta--ghost {
  background: none; color: var(--sc-ink);
  border: 1px solid var(--lt-hair-2);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .cta--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 7%, transparent); border-color: var(--sc-ink-soft); }
}

/* The page body sits clear of the fixed index. */
.stagepad { padding-left: var(--lt-index-w); }

/* ============================================================ the opening ==
   Three layers. BACK: the room and two of the collection, out of focus.
   MIDDLE: the words, readable as the page paints. FRONT: the lit button and
   the estimator card, which hangs over the top edge of the range row so the
   screen is not a stack of boxes.

   One column until there is room for two. The back layer is a grid item, not
   an absolute box, so its bottom edge is exactly the top of the range row:
   that line is the floor the two figures stand on.
   ======================================================================== */
.intro {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  row-gap: var(--sc-6);
  padding: var(--sc-8) var(--sc-gutter) 0;
}
.intro__back {
  grid-area: 1 / 1 / 3 / -1;
  position: relative; z-index: -1;
  /* Bleeds to the section's edges, past its padding. */
  margin: calc(var(--sc-8) * -1) calc(var(--sc-gutter) * -1) calc(var(--sc-6) * -1);
  overflow: clip;
  pointer-events: none;
}
.intro__wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(54% 66% at 80% 46%,
      color-mix(in oklab, var(--lt-brass) 17%, transparent) 0%, transparent 72%),
    linear-gradient(104deg, transparent 40%,
      color-mix(in oklab, var(--lt-brass) 7%, transparent) 54%, transparent 70%),
    linear-gradient(to top, color-mix(in oklab, #000 46%, transparent) 0%, transparent 34%);
}
/* Anchored to the layer's floor. The scroll lifts it a little, and the layer
   clips it, so it never shows an edge of its own. */
.intro__shelf { position: absolute; inset: 0; }
.intro__figure { position: absolute; bottom: 0; width: auto; translate: -50% 0; }
.intro__figure--far  { height: 60%; left: 98%; opacity: 0.14; filter: blur(5px) saturate(0.6); }
.intro__figure--near { height: 94%; left: 64%; opacity: 0.22; filter: blur(2.5px) saturate(0.75); }

.intro__copy { grid-area: 1 / 1; display: grid; gap: var(--sc-4); max-width: 46rem; }
.intro__title { margin: 0; max-width: 15ch; text-wrap: balance; }
.intro__sub { margin: 0; max-width: 54ch; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; }
.intro__ctas { display: flex; flex-wrap: wrap; gap: var(--sc-3); margin: var(--sc-3) 0 0; }
.cost { grid-area: 2 / 1; }
.intro > .range { grid-area: 3 / 1 / 4 / -1; }

@media (min-width: 1280px) {
  .intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 27rem);
    grid-template-rows: 1fr auto;
    column-gap: clamp(var(--sc-6), 4vw, var(--sc-8));
    row-gap: 0;
    align-items: center;
  }
  .intro__back { grid-area: 1 / 1 / 2 / -1; align-self: stretch; margin-bottom: 0; }
  .intro__copy { grid-area: 1 / 1; padding-block: var(--sc-6) var(--sc-7); }
  /* Two columns leave the headline about 34rem, so it steps down a rung
     rather than breaking into four ragged lines. */
  .intro__title { font-size: clamp(2.8rem, 4.3vw, 4.2rem); }
  .intro__sub { font-size: var(--sc-t-base); }
  /* The card breaks the edge: its foot hangs past the floor line and over the
     range row, whose items start lower to leave it room. */
  .cost { grid-area: 1 / 2; align-self: end; margin-bottom: -1.5rem; }
  .intro > .range { grid-area: 2 / 1 / 3 / -1; }
  .intro .range__item { padding-top: 2.5rem; }
}

/* ---------------------------------------------------------- the estimator --
   The free sample. The one raised thing on the opening besides the button:
   an opaque card with the page's deepest shadow, so it reads as the nearest
   object in the room.
   -------------------------------------------------------------------------- */
.cost {
  position: relative; z-index: 2;
  display: grid; gap: var(--sc-4);
  width: 100%; max-width: 34rem;
  padding: var(--sc-5);
  background: color-mix(in oklab, var(--sc-surface) 96%, var(--sc-ink));
  border: 1px solid var(--lt-hair-2);
  border-radius: var(--sc-r-lg);
  box-shadow: var(--sc-e3), var(--sc-edge);
}
.cost__title {
  margin: 0;
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: var(--sc-t-lg); line-height: 1.15;
  letter-spacing: var(--sc-track-snug);
}
.cost__lede { margin: calc(var(--sc-2) * -1) 0 0; font-size: var(--sc-t-xs); line-height: 1.5; color: var(--sc-ink-soft); }
/* The job on its own row, then the two numbers side by side. */
.cost__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-3) var(--sc-4); align-items: end; }
.cost__field:first-child { grid-column: 1 / -1; }
.cost__field { display: grid; gap: var(--sc-2); }
.cost__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sc-3);
  font-family: var(--sc-font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
}
.cost__label output { color: var(--sc-ink); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost select,
.cost input[type="number"] {
  width: 100%;
  padding: 0.6rem var(--sc-3);
  background: color-mix(in oklab, var(--sc-canvas) 70%, transparent);
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-sm);
  color: var(--sc-ink);
  font: inherit; font-size: var(--sc-t-sm);
  transition: border-color var(--sc-d-fast) var(--sc-ease-out);
}
.cost select:focus-visible,
.cost input[type="number"]:focus-visible { border-color: var(--sc-accent); }
/* The slider is ink, not accent: it is a control, not the thing to press. */
.cost input[type="range"] { width: 100%; height: 1.5rem; margin: 0; accent-color: var(--sc-ink); cursor: pointer; }
.cost__money { position: relative; }
.cost__money span {
  position: absolute; left: var(--sc-3); top: 50%; translate: 0 -50%;
  color: var(--sc-ink-soft); font-size: var(--sc-t-sm); pointer-events: none;
}
.cost__money input[type="number"] { padding-left: calc(var(--sc-3) + 1.1em); font-variant-numeric: tabular-nums; }

.cost__result {
  display: grid; gap: var(--sc-2);
  padding-top: var(--sc-4);
  border-top: 1px solid var(--lt-hair);
  font-size: var(--sc-t-sm); line-height: 1.5;
}
.cost__result p { margin: 0; text-wrap: pretty; }
.cost__sum { color: var(--sc-ink-soft); }
.cost__fig {
  margin-right: 0.3em;
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.7rem); line-height: 1;
  letter-spacing: var(--sc-track-tight);
  color: var(--sc-ink);
  font-variant-numeric: tabular-nums;
}
.cost__how { color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }
.cost__result .cost__fit { margin-top: var(--sc-2); }
.cost__fit strong { font-weight: 600; }
.cost__part { color: var(--sc-ink-soft); }
.cost__term {
  display: block;
  font-family: var(--sc-font-mono);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
}
.cost__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sc-5); }
.cost__go {
  padding: 0.34rem 0;
  color: var(--sc-accent);
  font-family: var(--sc-font-mono);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px;
}
.cost .spec__open { margin-top: 0; color: var(--sc-ink-soft); }

/* ------------------------------------------------------- the motion switch --
   Small and plain, next to the name. It is a setting, not a call to action. */
.motion {
  margin-top: var(--sc-4);
  padding: 0.3rem var(--sc-2);
  background: none;
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-sm);
  color: var(--sc-ink-soft);
  font-family: var(--sc-font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: color var(--sc-d-fast) var(--sc-ease-out), border-color var(--sc-d-fast) var(--sc-ease-out);
}
.motion:disabled { cursor: default; }
/* The footer's copy, for phones. Off everywhere else. */
.motion--foot { display: none; margin-top: 0; }
@media (hover: hover) and (pointer: fine) {
  .motion:not(:disabled):hover { color: var(--sc-ink); border-color: var(--sc-ink-soft); }
}

/* The eight in a row, drawing, name and family. Every one jumps to its label. */
.range {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 1px solid var(--lt-hair);
}
.range li { display: flex; }
/* A shelf, not a table. The eight used to sit in ruled cells, which read as a
   feature grid; now each one stands in its own pool of light on one unbroken
   line, and the pool is what answers the pointer. */
.range__item {
  position: relative; isolation: isolate;
  flex: 1;
  display: grid; justify-items: center; align-content: start; gap: var(--sc-2);
  padding: var(--sc-5) var(--sc-2) var(--sc-3);
  text-align: center; text-decoration: none; color: var(--sc-ink);
}
.range__item::before {
  content: "";
  position: absolute; z-index: -1;
  left: 0; right: 0; top: 0; height: 72%;
  pointer-events: none;
  background: radial-gradient(52% 62% at 50% 0%,
    color-mix(in oklab, var(--lt-brass) 20%, transparent) 0%,
    color-mix(in oklab, var(--lt-brass) 6%, transparent) 46%,
    transparent 74%);
  opacity: 0.6;
  transition: opacity var(--sc-d-base) var(--sc-ease-out);
}
.range__form {
  width: clamp(2.9rem, 5vw, 4.6rem); height: auto;
  margin-bottom: var(--sc-2);
  filter: drop-shadow(0 7px 6px color-mix(in oklab, #000 60%, transparent));
  transition: transform var(--sc-d-base) var(--sc-ease-out);
}
.range__name { font-weight: 500; font-size: var(--sc-t-sm); white-space: nowrap; }
.range__family {
  font-family: var(--sc-font-mono);
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .range__item:hover::before { opacity: 1; }
  .range__item:hover .range__form { transform: translateY(-3px); }
}
.range__item:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .range__form { transition: none; }
}

/* ============================================== in use, and built here ==
   Two runs of framed screens: the working products (hidden until the shots
   are real), and sites built the way Storefront builds them.
   ======================================================================== */
.showcase__head { display: grid; gap: var(--sc-3); max-width: 46rem; margin-bottom: var(--sc-7); }
.showcase__head .sc-body { margin: 0; color: var(--sc-ink-soft); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--sc-5), 3vw, var(--sc-7)); }
.shot { margin: 0; display: grid; gap: var(--sc-3); }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e2), var(--sc-edge);
  background: var(--sc-surface);
}
.shot figcaption { font-size: var(--sc-t-sm); line-height: 1.55; color: var(--sc-ink-soft); max-width: 52ch; }
.shot__mark {
  display: block; margin-bottom: var(--sc-1);
  font-family: var(--sc-font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sc-ink-soft);
}

/* =============================================================== vitrine ==
   Act 1. Object one, already in view and already labelled. Layered planes at
   different rates so it reads as standing in a room, not pasted on one.
   ======================================================================== */
.vitrine {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}
.vitrine__planes {
  position: absolute; inset: 0;
  pointer-events: none;
}
.vitrine__plane { position: absolute; inset: 0; }

/* far wall */
.plane--wall {
  background:
    radial-gradient(120% 84% at 62% 34%,
      color-mix(in oklab, var(--lt-brass) 13%, transparent) 0%,
      transparent 62%),
    linear-gradient(to bottom,
      color-mix(in oklab, var(--sc-ink) 3%, transparent) 0%,
      transparent 46%);
}
/* the raking key light */
.plane--beam {
  background: linear-gradient(
    104deg,
    transparent 32%,
    color-mix(in oklab, var(--lt-brass) 11%, transparent) 47%,
    color-mix(in oklab, var(--lt-brass) 4%, transparent) 58%,
    transparent 70%);
  filter: blur(6px);
}
/* the floor the plinth stands on */
.plane--floor {
  top: auto; bottom: 0; height: 42%;
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in oklab, #000 34%, transparent) 78%,
    color-mix(in oklab, #000 52%, transparent) 100%);
}
/* near dust, in front of the object */
.plane--near {
  background: radial-gradient(60% 40% at 22% 88%,
    color-mix(in oklab, var(--lt-brass) 7%, transparent), transparent 70%);
  filter: blur(14px);
}
/* Planes travel past the section floor and get clipped there; a gradient over
   the last 240px hides the clip line at any scroll position. */
.vitrine__floorfade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  background: linear-gradient(to top, var(--sc-canvas), transparent);
  pointer-events: none; z-index: 6;
}

.vitrine__inner {
  position: relative; z-index: 4;
  width: 100%; max-width: var(--sc-maxw);
  margin-inline: auto;
  padding: var(--sc-9) var(--sc-gutter) var(--sc-8);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(var(--sc-6), 5vw, var(--sc-9));
}
.vitrine__object { position: relative; }

/* the plinth an object stands on, shared by the vitrine and the rail */
.plinth {
  position: relative;
  display: grid;
  justify-items: center;
  /* The viewBoxes are cropped to the drawn object, so this padding is the
     actual gap between an object's base and the plinth it stands on. */
  padding-bottom: 14px;
}
/* Height-led, not width-led: a viewBox sized by column width grows past the
   fold on wide screens and pulls the object off its own plinth. */
.plinth__form { position: relative; z-index: 2; width: auto; height: clamp(190px, 38vh, 340px); }
/* contact shadow: the object is ON the plinth, not floating above it */
.plinth::after {
  content: "";
  position: absolute; left: 50%; bottom: 7px;
  width: 62%; height: 14px;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, #000 62%, transparent), transparent 72%);
  filter: blur(5px);
  z-index: 1;
}
.plinth__slab {
  position: absolute; left: 50%; bottom: 0;
  width: 76%; height: 10px;
  translate: -50% 0;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--sc-ink) 13%, transparent),
    color-mix(in oklab, var(--sc-ink) 3%, transparent));
  border-radius: 2px;
  box-shadow: var(--sc-edge);
  z-index: 0;
}

/* ================================================= the museum label card ==
   The identical schema on every object, no exceptions. Facts, never pitch.
   ======================================================================== */
/* Lining, fixed-width figures wherever a number is meant to be read against
   another number: prices down the collection and catalogue marks down the
   index. Proportional digits give 1,000 and 38.40
   different widths, which reads as sloppy typesetting on a price list. The
   engine ships this for .sc-nums and tables only, so the page opts its own
   numbers in. */
.label__row--price dd,
.label__mark,
.index__mark { font-variant-numeric: tabular-nums; }
.label__mark {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--sc-ink-soft);
  margin: 0 0 var(--sc-3);
  /* Letterpress: one pixel of shadow below the glyph and a hairline of lift
     above it, so the mark reads as stamped into the card rather than printed
     on top of it. A single px in each direction - any more and it stops
     looking like a press and starts looking like a bevel. */
  text-shadow:
    0 1px 0 color-mix(in oklab, #000 62%, transparent),
    0 -1px 0 color-mix(in oklab, var(--sc-ink) 9%, transparent);
}
.label__name {
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: var(--sc-t-2xl);
  line-height: 1;
  letter-spacing: var(--sc-track-snug);
  margin: 0;
}
.label__family {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
  margin: var(--sc-2) 0 0;
}
.label__rule { height: 1px; background: var(--lt-hair); margin: var(--sc-5) 0; border: 0; }

.label__rows { margin: 0; display: grid; gap: 0; }
.label__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--sc-4);
  padding: 0.62rem 0;
  border-top: 1px solid var(--lt-hair);
  align-items: start;
}
.label__row:first-child { border-top: 0; }
.label__row dt {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
  line-height: 1.55;
}
.label__row dd {
  margin: 0;
  font-size: var(--sc-t-sm);
  line-height: 1.55;
  color: var(--sc-ink);
  text-wrap: pretty;
}
/* The price carries more weight than the rows around it, because in a
   catalogue it is the one line the reader is actually looking for. A slightly
   larger cut and tighter tracking, NOT a different colour - the accent is
   kept for buttons and links, and spending it here would make every card
   look like it was shouting.

   Sized in em against the row, so it rides the short-viewport tiers instead of
   having to be tiered again, and the line-height is pulled back so the extra
   size costs no row height. Both matter: these cards are height-budgeted. */
.label__row--price dd {
  /* Calculated from the token, NOT 1.16em: em resolves against the row, whose
     font-size is the body base rather than the row's own --sc-t-sm, which put
     the price at 20.9px instead of the ~17px intended and started costing row
     height. Against the token it scales with every viewport tier for free. */
  font-size: calc(var(--sc-t-sm) * 1.14);
  line-height: 1.36;
  letter-spacing: var(--sc-track-snug);
}
.label__row--limit dd { color: var(--sc-ink-soft); }

/* ============================================================== the hall ==
   Act 2. The rail. Lateral travel reads as breadth.
   ======================================================================== */
/* The rail act runs full-bleed, escaping the main element's left padding.
   This is load-bearing, not cosmetic: the engine measures the rail's travel as
   scrollWidth minus the WINDOW width, so it assumes the rail spans the whole
   viewport. Inset the rail's container by the sidebar and the engine
   under-travels by exactly that inset, which is why the closing card hung off
   the right edge at the end of the travel however the overshoot was tuned.
   The sidebar clearance is carried by .hall__pad--lead instead, which is a real
   flex item and therefore measured. */
.hall-act {
  margin-left: calc(var(--lt-index-w) * -1);
  width: calc(100% + var(--lt-index-w));
}

/* The rail is as tall as its tallest card, not as tall as the stage, and the
   stage centres it. Stretching the cards to the full stage height left every
   card with the difference between the stage and the copy as dead space under
   the Full label link - 229px of it on a 1080px screen, on every card. The
   cards still all agree with each other, because a stretch line takes its
   height from the tallest item in it; they just agree on the tallest card's
   height instead of on the viewport's. */
.hall-act [data-sc-stage] { display: flex; align-items: center; }
.hall__rail {
  align-items: stretch;
  height: auto;
  /* As a flex item the rail would size to its own content, and a rail exactly
     as wide as its contents has a scrollWidth equal to its clientWidth. The
     engine measures the travel from the difference between those two, so that
     silently sets the pan distance to zero and the rail never moves. Pin it to
     the stage width and let the cards overflow it, which is what the engine
     expects to measure. */
  width: 100%;
  min-width: 0;
  /* Inset for the stretched cards. Block padding only: the inline inset is
     carried by .hall__pad items because scrollWidth ignores inline padding. */
  padding-block: clamp(var(--sc-2), 2vh, var(--sc-5));
  gap: clamp(var(--sc-5), 3vw, var(--sc-8));
  /* No padding here on purpose: see the note in the markup. The inset is two
     real flex items so that scrollWidth, and therefore the engine's travel,
     accounts for it. */
  padding-inline: 0;
}
.hall__pad { flex: 0 0 auto; align-self: stretch; }
/* The gap already sits between this and the first card, so subtract it back
   out and the visual inset stays what it was. */
.hall__pad--lead  { width: max(calc(var(--lt-index-w) - clamp(var(--sc-5), 3vw, var(--sc-8))), var(--sc-gutter)); }
.hall__pad--trail { width: clamp(2rem, 6vw, 6rem); }
.hall__lead,
.hall__end {
  flex: 0 0 auto;
  width: clamp(15rem, 21vw, 21rem);
  align-self: center;
  display: grid;
  align-content: center;
  gap: var(--sc-4);
}
/* A narrow viewport cannot hold the last object and the closing note at once,
   so the note is necessarily half-visible for part of the travel. This is what
   stops that reading as a broken card: an edge that says the rail continues,
   fading away over the last stretch once there is nothing left to reveal. */
.hall__edge {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: clamp(2.5rem, 7vw, 5rem);
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(to right,
    transparent 0%,
    color-mix(in oklab, var(--sc-canvas) 62%, transparent) 62%,
    color-mix(in oklab, var(--sc-canvas) 88%, transparent) 100%);
  opacity: clamp(0, calc((0.94 - var(--sc-p, 0)) * 14), 1);
}
/* The leaving side. Nothing at rest, because the rail's first screen starts
   at this edge; it comes in as the rail begins to move. It starts where the
   sidebar ends, since the stage runs full-bleed underneath that. */
.hall__edge--left {
  right: auto; left: var(--lt-index-w);
  width: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(to left,
    transparent 0%,
    color-mix(in oklab, var(--sc-canvas) 62%, transparent) 62%,
    color-mix(in oklab, var(--sc-canvas) 88%, transparent) 100%);
  opacity: clamp(0, calc((var(--sc-p, 0) - 0.015) * 30), 1);
}
/* A hairline that fills as the rail pans: position in the collection, which
   the edge fade cannot tell you. Scaled from the act's own --sc-p rather than
   from a scroll listener, so it is exactly as truthful as the pan itself, and
   transform-only so it never costs a layout pass on a scroll-driven element. */
.hall__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to right,
    color-mix(in oklab, var(--sc-ink) 46%, transparent),
    color-mix(in oklab, var(--sc-ink) 18%, transparent));
  transform: scaleX(var(--sc-p, 0));
  transform-origin: 0 50%;
}
@media (prefers-reduced-motion: reduce) {
  /* The engine hands the rail back as a native scroll region here, so the edge
     would sit over a scrollbar and stop telling the truth about position. The
     progress rule reads --sc-p, which the engine stops driving in that mode,
     so it would sit frozen at zero and lie. The scrollbar does its job. */
  .hall__edge, .hall__progress { display: none; }
}

.hall__lead h2 { margin: 0; }
.hall__note {
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
  max-width: 26ch;
  text-wrap: pretty;
  margin: 0;
}

.spec {
  flex: 0 0 auto;
  width: clamp(19rem, 42vw, 34rem);
  /* Every card is the height of the rail, so the seven agree whatever their
     copy runs to. They used to be align-self:center and sized to their own
     content, which made a ragged row and forced label copy to be cut to the
     length of the shortest card. The rail's block padding is what keeps the
     stretched card off the top and bottom of the stage; block padding is safe
     here, unlike inline padding, which scrollWidth does not count. */
  align-self: stretch;
}
/* A rail card lives inside a stage exactly one viewport tall, so every part of
   it is sized against vh rather than against the card. A card taller than the
   stage is silently clipped at both ends by the stage's overflow. */
.spec .plinth { padding-bottom: 10px; }
.spec .plinth__form { height: clamp(66px, 8vh, 92px); }
.spec .plinth::after { bottom: 5px; height: 10px; }
.spec .label__name { font-size: var(--sc-t-xl); }
.spec .label__rule { margin: var(--sc-4) 0; }
.spec .label__row { padding: 0.26rem 0; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--sc-3); }
/* Fill the stretched card from the top and let the slack fall at the bottom,
   so the rows of seven cards line up with each other row for row. */
/* The label column fills the card, and Full label is pinned to the foot of it.
   Whatever slack is left over from the tallest card lands in one place, under
   the link, instead of hanging below a card that looks cut off - and the seven
   links line up with each other. The row rhythm above is untouched: the inner
   column is flex, which does not collapse margins, but its children carry no
   adjacent margins to collapse, so every row sits exactly where it did. */
.spec > .spec__tilt { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.spec__tilt > :last-child { display: flex; flex-direction: column; min-height: 0; }
/* The slack goes above the link, so the seven links line up. */
.spec .spec__open { margin-top: auto; }
/* Belt to that brace: the flex line is sized by the tallest card, so the rail
   can never be taller than the stage's own content box either. */
.hall__rail > * { max-height: 100%; }

.spec__tilt {
  display: grid;
  gap: var(--sc-4);
  padding: var(--sc-5) var(--sc-5) var(--sc-4);
  background: color-mix(in oklab, var(--sc-surface) 62%, transparent);
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e2), var(--sc-edge);
  transition: border-color var(--sc-d-base) var(--sc-ease-out),
              background-color var(--sc-d-base) var(--sc-ease-out);
}
/* Dim the drawing hard and the words only a little: at 0.55 the soft label
   text fell to 2.7:1 against the ground, under the 4.5:1 that text needs. */
.spec[data-dim="true"] .plinth { opacity: 0.45; }
.spec[data-dim="true"] .spec__tilt > :not(.plinth) { opacity: 0.85; }

.spec__open {
  justify-self: start;
  margin-top: var(--sc-1);
  /* Block padding, not a min-height: it grows the hit area to 24px without
     detaching the underline from the text. */
  background: none; border: 0; padding: 0.34rem 0;
  color: var(--sc-accent);
  font-family: var(--sc-font-mono);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px;
}
.spec__open:active { transform: translateY(1px); }

/* =========================================================== label anatomy ==
   Act 3. The quiet one. Authored silence before the course.
   ======================================================================== */
.anatomy__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(var(--sc-6), 5vw, var(--sc-9));
  align-items: start;
}
/* The one piece of paper in the building. Every other card is a dark panel;
   this is the label itself, explained, so it is set the way a gallery label is
   printed: card stock, dark ink, pinned to a dark wall. It is also the page's
   only light surface, which gives the long scroll one change of key. */
.anatomy__figure {
  --lt-paper:      #ece3d2;
  --lt-paper-ink:  #1c150f;
  --lt-paper-soft: #43362b;
  --lt-paper-term: #7a5630;
  --lt-paper-hair: color-mix(in oklab, var(--lt-paper-ink) 15%, transparent);
  border-radius: 2px;
  background:
    linear-gradient(168deg, color-mix(in oklab, #fff 26%, transparent) 0%, transparent 38%),
    var(--lt-paper);
  color: var(--lt-paper-ink);
  padding: var(--sc-5) var(--sc-6);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, #fff 60%, transparent),
    0 1px 1px color-mix(in oklab, #000 50%, transparent),
    0 14px 24px -10px color-mix(in oklab, #000 70%, transparent),
    0 44px 70px -30px color-mix(in oklab, #000 80%, transparent);
}
.anatomy__figure ::selection { background: var(--lt-paper-ink); color: var(--lt-paper); }
.anatomy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.anatomy__list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--sc-4);
  padding: var(--sc-4) 0;
  border-top: 1px solid var(--lt-paper-hair);
}
.anatomy__list li:first-child { border-top: 0; }
.anatomy__term {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
  color: var(--lt-paper-term);
  line-height: 1.7;
}
.anatomy__gloss { color: var(--lt-paper-soft); font-size: var(--sc-t-sm); line-height: 1.6; margin: 0; text-wrap: pretty; }

/* ============================================================= the academy ==
   Act 4. The course and its three tracks.
   ======================================================================== */
.academy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--sc-6), 5vw, var(--sc-9));
  align-items: center;
}
.tracks { display: grid; gap: var(--sc-4); }
.track {
  display: grid; gap: var(--sc-2);
  padding: var(--sc-5);
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-md);
  background: color-mix(in oklab, var(--sc-surface) 58%, transparent);
  box-shadow: var(--sc-edge);
}
.track__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sc-3); }
.track__name { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); margin: 0; letter-spacing: var(--sc-track-snug); }
.track__body { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-wrap: pretty; }
.track__meta { font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: color-mix(in oklab, var(--sc-ink) 60%, transparent); margin: 0; }

/* ================================================================ the plate ==
   Act 5. The close. Typeset exactly like an object label so the ask reads as
   part of the collection rather than as a marketing island.
   ======================================================================== */
.plate__stage {
  display: grid;
  align-content: center;
  /* No height here: the engine owns this element's height. */
  /* The stage sits inside main, which already clears the sidebar. Padding the
     left by the sidebar's width a second time pushed the form 190px right of
     every other section's left edge. */
  padding: var(--sc-8) var(--sc-gutter) 0;
}
/* A laptop screen: the stage gives its top padding to the plate, which is two
   lines taller since it started saying who you are dealing with. Without
   this the plate was 29px too tall at 1280x720 and scrolled inside itself. */
@media (max-height: 780px) { .plate__stage { padding-top: var(--sc-4); } }
.plate {
  width: 100%; max-width: 58rem; margin-inline: auto;
  /* Safety net, not the layout: the tightening below is what makes the plate
     fit a short stage. This only stops an unforeseen viewport from clipping
     the last thing anybody sees. */
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-md);
  background: color-mix(in oklab, var(--sc-surface) 70%, transparent);
  padding: clamp(var(--sc-5), 3vw, var(--sc-7));
  box-shadow: var(--sc-e3), var(--sc-edge);
}
/* The plate is the last act's whole content and the stage is exactly one
   viewport, so it pairs the short fields side by side rather than running six
   full-width rows past the fold. */
.plate .label__name { font-size: var(--sc-t-xl); }
.plate .label__rule { margin: var(--sc-4) 0; }
.plate__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sc-4) var(--sc-5);
  margin-top: var(--sc-5);
}
.field--wide { grid-column: 1 / -1; }
.plate__form .field textarea { min-height: 4rem; }
/* align-content:start so a field that carries an error line below it does not
   stretch its neighbour's input to match the taller grid row. */
.field { display: grid; gap: var(--sc-2); align-content: start; }
.field__label {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.72rem var(--sc-4);
  background: color-mix(in oklab, var(--sc-canvas) 62%, transparent);
  border: 1px solid var(--lt-hair);
  border-radius: var(--sc-r-sm);
  color: var(--sc-ink);
  font-size: var(--sc-t-sm);
  transition: border-color var(--sc-d-fast) var(--sc-ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--sc-ink) 56%, transparent); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--sc-accent); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field__note { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); margin: 0; }
.field__note a { color: var(--sc-ink); }
.field__error {
  font-family: var(--sc-font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: #ff9b6a; min-height: 1.1em; margin: 0;
}
.plate__row { display: flex; align-items: center; gap: var(--sc-5); flex-wrap: wrap; grid-column: 1 / -1; }
.plate__status { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin: 0; }
.plate__status a { color: var(--sc-ink); }
/* The other way to reach us, beside the button, for anyone who would rather
   not use a form. */
.plate__alt { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin: 0; }
.plate__alt a { color: var(--sc-ink); }
/* Who is on the other end, above the form. */
.plate__who { margin: 0; max-width: 60ch; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); text-wrap: pretty; }
.plate__who strong { font-weight: 600; color: var(--sc-ink); }
.plate__status[data-ok="true"] { color: var(--sc-ink); }

.foot {
  margin-top: var(--sc-8);
  padding: var(--sc-5) var(--sc-gutter) var(--sc-6);
  /* The sidebar's width plus a gutter: the bare width put the text flush
     against the sidebar's edge. */
  padding-left: calc(var(--lt-index-w) + var(--sc-gutter));
  border-top: 1px solid var(--lt-hair);
  display: flex; flex-wrap: wrap; gap: var(--sc-4) var(--sc-7);
  align-items: baseline;
  font-size: var(--sc-t-xs);
  color: color-mix(in oklab, var(--sc-ink) 60%, transparent);
}
.foot a { color: var(--sc-ink-soft); display: inline-block; padding-block: 0.3rem; }
/* Who we are and what the prices mean, one line each, then the links in a row. */
.foot > span { flex: 1 1 100%; margin-block: calc(var(--sc-4) * -0.5); }
.foot > span:last-of-type { margin-bottom: 0; }
.foot > span a { padding-block: 0; }

/* ================================================================= drawer ==
   The object desk: full label, opened from the rail.
   ======================================================================== */
.drawer {
  position: fixed; inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr min(46rem, 100%);
  pointer-events: none;
}
.drawer[hidden] { display: none; }
.drawer__scrim {
  background: color-mix(in oklab, var(--sc-canvas) 74%, transparent);
  opacity: 0;
  transition: opacity var(--sc-d-base) var(--sc-ease-out);
  pointer-events: auto;
  border: 0; padding: 0;
}
.drawer__panel {
  background: var(--sc-surface);
  border-left: 1px solid var(--lt-hair-2);
  box-shadow: var(--sc-e3);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sc-7) clamp(var(--sc-5), 4vw, var(--sc-8)) var(--sc-8);
  transform: translateX(100%);
  transition: transform var(--sc-d-slow) var(--sc-ease-drawer);
  pointer-events: auto;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  position: sticky; top: 0;
  float: right;
  background: none; border: 1px solid var(--lt-hair); border-radius: var(--sc-r-sm);
  color: var(--sc-ink-soft);
  width: 2.2rem; height: 2.2rem;
  cursor: pointer; font-size: 1rem; line-height: 1;
}
@media (hover: hover) and (pointer: fine) { .drawer__close:hover { color: var(--sc-ink); border-color: var(--sc-ink-soft); } }
.drawer__form { width: min(15rem, 46%); margin: 0 auto var(--sc-6); }

/* ================================================================= shared ==*/
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.eyebrow {
  font-family: var(--sc-font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sc-ink-soft);
  margin: 0 0 var(--sc-3);
}
.section--pad { padding-block: var(--sc-section); }
.section--tight { padding-block: var(--sc-7) var(--sc-section); }
.wrap {
  width: 100%; max-width: var(--sc-maxw);
  margin-inline: auto;
  padding-inline: var(--sc-gutter);
}

/* ================================================================= mobile ==
   Art-directed, not shrunk. The index becomes a top bar with a horizontal
   object index; the vitrine restacks.
   ======================================================================== */
@media (max-width: 1080px) {
  :root { --lt-index-w: 0px; }

  .stagepad { padding-left: 0; }

  /* One row: the name, then the eight as a strip that scrolls sideways. The
     bar used to be the name over two wrapped rows of tabs, 148px on a phone,
     which covered the top of whatever a link jumped to and pushed the
     estimator off the first screen. */
  .index {
    position: sticky; top: 0; bottom: auto;
    width: auto; height: auto;
    flex-direction: row; align-items: center;
    padding: var(--sc-2) 0 var(--sc-2) var(--sc-gutter);
    gap: var(--sc-2);
    border-right: 0;
    border-bottom: 1px solid var(--lt-hair);
    background: color-mix(in oklab, var(--sc-canvas) 92%, transparent);
    backdrop-filter: blur(10px);
    overflow: visible;
  }
  .index__top { flex: none; display: flex; align-items: center; gap: var(--sc-3); }
  /* The rule and the definition are gone here, so the mark collapses to one
     line of type: give it back a real hit area. */
  .mark { padding-block: 0.5rem; }
  .mark__word { font-size: 1.02rem; letter-spacing: 0.2em; }
  .mark__rule, .mark__def { display: none; }
  .index__head { display: none; }
  /* A strip that scrolls sideways, faded at both ends so a tab part-way off
     either edge reads as "there is more this way" instead of as a name cut
     in half. The padding matches the fades, so at either end of the strip
     the first and last tabs sit clear of them. catalog.js keeps the current
     tab in the middle. */
  .index__list {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-wrap: nowrap; gap: 0.375rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-inline: var(--sc-4) 2.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--sc-4), #000 calc(100% - 2.5rem), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--sc-4), #000 calc(100% - 2.5rem), transparent 100%);
  }
  .index__list::-webkit-scrollbar { display: none; }
  .index__list li { flex: none; display: flex; }
  .index__list li + li { margin-top: 0; }
  .index__link {
    width: 100%;
    grid-template-columns: auto;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: var(--sc-2);
    white-space: nowrap;
    border: 1px solid var(--lt-hair);
    padding: 0.34rem var(--sc-3);
  }
  /* Anything a link jumps to stops below the bar, not under it. The two
     pinned acts are left out: their stages already pad themselves by the
     bar's height (see [data-sc-stage] below). */
  .intro, .vitrine, .section--pad, .cost { scroll-margin-top: var(--lt-bar-h, 0px); }
  .index__mark { display: none; }
  .index__foot { margin-top: 0; display: none; }

  /* A phone should not inherit desktop air: the stacked vitrine pays for it
     twice, once in each column. */
  .vitrine__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--sc-6) var(--sc-gutter) var(--sc-6);
    gap: var(--sc-5);
  }
  .section--pad { padding-block: var(--sc-8); }
  /* A short phone pays the section tax twice over, so it pays less of it. */
  @media (max-height: 700px) { .section--pad { padding-block: var(--sc-7); } }
  .vitrine__object { max-width: 22rem; margin-inline: auto; width: 100%; }
  /* Stacked, the object and the label compete for one screen. Shrinking the
     specimen buys the first label row a place above the fold, which is what
     makes this read as a catalogue rather than as a picture. */
  .vitrine .plinth__form { height: clamp(140px, 25vh, 230px); }
  /* The hero type steps down a rung: --sc-t-2xl is a desktop floor. */
  .label__name { font-size: var(--sc-t-xl); }

  .anatomy__grid,
  .academy__grid { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); }
  /* Four by two: eight in one row would give each one 40px on a phone. */
  .range { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Two shelves: the second row keeps its own line. */
  .range li:nth-child(n + 5) { border-top: 1px solid var(--lt-hair); }
  .intro { min-height: auto; padding-block: var(--sc-6) 0; row-gap: var(--sc-5); }
  .intro__back { margin-top: calc(var(--sc-6) * -1); margin-bottom: calc(var(--sc-5) * -1); }
  /* The words step down a size and close up, so the estimator starts on the
     first screen instead of below it. Nothing is cut: the same headline, the
     same paragraph, both buttons. */
  .intro__copy { gap: var(--sc-3); }
  .intro__sub { font-size: var(--sc-t-base); line-height: 1.45; }
  .intro__ctas { margin-top: var(--sc-2); }
  .cost { padding: var(--sc-4); gap: var(--sc-3); }
  /* One figure, pushed to the corner and dimmer: on a phone the words run the
     full width, so anything brighter behind them costs contrast. */
  .intro__figure--far { display: none; }
  .intro__figure--near { height: min(62%, 30rem); left: 88%; opacity: 0.14; }
  .motion { margin-top: 0; }
  /* On a phone the switch lives in the footer; the one-row bar has no room. */
  @media (max-width: 700px) {
    .index .motion { display: none; }
    .motion--foot:not([hidden]) { display: inline-block; }
  }

  .hall__rail { padding-inline: 0; }
  .hall__pad--lead { width: var(--sc-gutter); }
  .plate__stage { padding-left: var(--sc-gutter); }
  /* The top bar is sticky and the pinned stages stick at the very top, so
     without this the bar sits over the top of every card and the bottom of
     the screen is left empty. catalog.js publishes the bar's height. */
  [data-sc-act] > [data-sc-stage] { padding-top: var(--lt-bar-h, 0px); }

  /* One column: paired fields on a phone give each one about 20 characters. */
  .plate__form { grid-template-columns: minmax(0, 1fr); }

  .drawer { grid-template-columns: 0 100%; }
  .drawer__panel { border-left: 0; }
}

@media (max-width: 700px) {
  .label__row, .anatomy__list li { grid-template-columns: minmax(0, 1fr); gap: var(--sc-1); }
  .label__row dt, .anatomy__list li .anatomy__term { line-height: 1.4; }
  .spec { width: min(20rem, 82vw); }
  .intro__title { font-size: clamp(2.1rem, 9.4vw, 3.4rem); }

  /* On a phone the form is an ordinary section, as tall as it needs to be.
     Pinned to one screen it did not fit a small phone, so the plate scrolled
     inside itself, and a finger on the form moved the form instead of the
     page. The !important beats the height the engine writes inline on a
     pinned act; its cues hold at every progress, so nothing else changes. */
  #request { height: auto !important; }
  #request > [data-sc-stage] {
    position: static; height: auto; min-height: 0; overflow: visible;
    padding-block: var(--sc-7) var(--sc-6);
  }
  #request .plate { max-height: none; overflow: visible; }
  /* catalog.js makes this a flow act on a phone, and nothing drives a cue in
     a flow act, so its two held cues are simply shown. */
  #request [data-sc-cue] { opacity: 1 !important; transform: none !important; }
  #request { scroll-margin-top: calc(var(--lt-bar-h, 0px) - var(--sc-5)); }
}

/* ==================================================== short viewports ==
   A rail card sits inside a stage exactly one viewport TALL, so height is the
   binding constraint, not width, and a laptop at 768px with browser chrome has
   far less of it than a design monitor. The card sheds depth as height runs
   out rather than being clipped by the stage. Every object sheds the same
   rows, so the schema stays identical across the collection at every size.
   ====================================================================== */
/* Width counts as well as height. A card on a phone is a third the width of a
   card on a monitor, so the same sentence costs three times the lines and eats
   the height budget just as a short viewport does. Each tier below therefore
   fires on either axis. */
@media (max-height: 820px), (max-width: 1250px) {
  /* The stretched cards can sit closer to the stage edge here; the height is
     worth more to the card than the inset is to the composition. */
  .hall__rail { padding-block: var(--sc-2); }
  .spec .plinth__form { height: clamp(74px, 8vh, 88px); }
  /* Shed order, tightest last: What you get, Runs on, Set up by, You supply.
     What it does, Your part, Price and Limit are never shed - they are the
     four the collection carried before the full label moved onto the card.
     What you get goes first because the family line above the rule already
     says it: "Run for you", "Tool for your team", "Set up yourself". */
  :is(.spec, .vitrine__label) .label__row--form { display: none; }
  .spec__tilt { padding: var(--sc-4) var(--sc-4) var(--sc-3); gap: var(--sc-3); }
  .spec .label__rule { margin: var(--sc-3) 0; }
  .spec .label__row { padding: 0.3rem 0; }
}
@media (max-height: 700px), (max-width: 1120px) {
  /* What it does, what it costs you, what it costs, and what it will not do.
     Set up by is the one that goes: the Your part row already implies it.
     Shed by name, never by :nth-child. Inserting a row moved those positions
     once already and quietly hid the wrong thing. */
  :is(.spec, .vitrine__label) .label__row--setup,
  :is(.spec, .vitrine__label) .label__row--runs { display: none; }
  .spec .label__name { font-size: var(--sc-t-lg); }
  .spec .plinth__form { height: clamp(70px, 10vh, 96px); }
  /* Narrow the term column rather than drop another row: the same information
     survives, it just costs fewer lines. */
  .spec .label__row { grid-template-columns: 4.75rem minmax(0, 1fr); gap: var(--sc-2); padding: 0.26rem 0; }

  /* The close is one stage tall too, and it is the last thing anybody sees,
     so it tightens rather than being clipped. */
  .plate { padding: var(--sc-5); }
  .plate .label__name { font-size: var(--sc-t-lg); }
  .plate .label__rule { margin: var(--sc-3) 0; }
  .plate__form { gap: var(--sc-2) var(--sc-4); margin-top: var(--sc-4); }
  .plate__form .field textarea { min-height: 2.6rem; }
  .plate__form .field :is(input, select, textarea) { padding: 0.58rem var(--sc-4); }
  .plate__form .cta { padding-block: 0.56rem; }
  .plate__stage { padding-block: 0; }
}
@media (max-width: 560px) {
  /* Four across leaves each name about 80px, and "The Academy" set on one
     line is wider than that: it pushed the page 3px sideways at 375. */
  .range__name { white-space: normal; text-wrap: balance; }
}
@media (max-height: 660px), (max-width: 560px) {
  :is(.spec, .vitrine__label) .label__row--supply { display: none; }   /* back to the original four, plus Your part */
  .spec .label__family { display: none; }
  .spec .plinth__form { height: clamp(56px, 8vh, 74px); }
  .spec__tilt { padding: var(--sc-3); }
  .hall__lead, .hall__end { gap: var(--sc-2); }
  .hall__lead h2 { font-size: var(--sc-t-lg); }
}
@media (max-height: 430px) {
  .spec .plinth { display: none; }       /* below this the label is the object */
  :is(.spec, .vitrine__label) .label__row--does { display: none; }
}

/* Reduced motion: fewer and gentler, never zero. */
@media (prefers-reduced-motion: reduce) {
  .drawer__panel { transition-duration: 120ms; }
  .plane--beam, .plane--near { filter: none; }
  /* No fade-in to wait for. See the same rule under html[data-motion="off"]. */
  [data-sc-in], [data-sc-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* A track name like "Architect" means nothing to somebody new to this, so each
   one carries a plain-English gloss beside it at a smaller size. */
.track__plain {
  display: block;
  font-family: var(--sc-font-text);
  font-weight: 400;
  font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-normal);
  color: var(--sc-ink-soft);
  margin-top: 0.15rem;
}

/* The page's scroll-progress hairline is the engine's, and the engine paints
   it in the accent. It is a position marker, not something to press. */
[data-sc-progress] { background: color-mix(in oklab, var(--sc-ink) 46%, transparent); }

/* ============================================== motion switched off by hand ==
   The same rules the engine and this file keep under
   @media (prefers-reduced-motion: reduce), for a visitor who has used the
   switch instead of a device setting. The script in the head of index.html
   sets data-motion="off" and makes the engine, the hall and catalog.js take
   their reduced path; a media query cannot be switched from script, so its
   CSS half is repeated here. Keep the two in step.
   ======================================================================== */
html[data-motion="off"] { scroll-behavior: auto; }
/* With motion off there is no fade-in to wait for: the blocks are simply
   there. The engine only shortens the fade, which still leaves a heading
   invisible until script has seen it scroll into view. */
html[data-motion="off"] [data-sc-in],
html[data-motion="off"] [data-sc-stagger] > * { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] [data-sc-parallax],
html[data-motion="off"] [data-sc-pan] { transform: none !important; }
html[data-motion="off"] [data-sc-reveal] { clip-path: none !important; }
html[data-motion="off"] [data-sc-act="pan"] [data-sc-stage] {
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
html[data-motion="off"] [data-sc-pan] > * { scroll-snap-align: center; }
html[data-motion="off"] .range__form { transition: none; }
html[data-motion="off"] .hall__edge,
html[data-motion="off"] .hall__progress { display: none; }
html[data-motion="off"] .drawer__panel { transition-duration: 120ms; }
html[data-motion="off"] .plane--beam,
html[data-motion="off"] .plane--near { filter: none; }
