:root {
  --u: clamp(40px, calc(100vw / 22), 88px); /* one inch on the mat grid */
  --mat: #24543f;          /* self-healing cutting mat */
  --mat-deep: #1c4333;
  --line: rgb(255 255 255 / .15);
  --line-half: rgb(255 255 255 / .055);
  --yellow: #f3d55b;       /* ruler + measurements */
  --coral: #ff6b57;        /* grader's markup */
  --coral-deep: #d9452f;
  --ink: #0f2a20;          /* text on paper */
  --paper: #fff;
  --frame: #1b2b6b;        /* the card's border */
  --soft: rgb(255 255 255 / .82);
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.087 23.8%, 1.088 25%, 1.076 27.2%, 1.006 34.3%, .986 37.6%, .98 41%, .983 44.4%, .999 53.4%, 1.002 58.6%, 1);
}
@media (max-width: 900px) { :root { --u: calc(100vw / 8); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  color: var(--paper);
  font: 400 1.0625rem/1.6 "Atkinson Hyperlegible Next", system-ui, sans-serif;
  background-color: var(--mat);
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-half) 1px, transparent 1px),
    linear-gradient(var(--line-half) 1px, transparent 1px);
  background-size:
    var(--u) var(--u), var(--u) var(--u),
    calc(var(--u) / 2) calc(var(--u) / 2), calc(var(--u) / 2) calc(var(--u) / 2);
}
/* matte grain + soft light falloff, like a lit mat on a desk */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 15%, transparent 55%, rgb(0 0 0 / .26)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--display); line-height: .92; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, calc(var(--u) * 1.15), 5.5rem); font-weight: 800; }
h3 { font-size: 1.75rem; font-weight: 800; margin-top: 1.6em; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; padding: 8px 14px; background: var(--paper); color: var(--ink); }

/* Buttons: lift on hover, press on click, one sheen pass */
.button {
  --fg: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5em 1.15em;
  border: 0;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--fg);
  font: 800 1.125rem/1.1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .2s;
}
.button > span { display: inline-block; }
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .6) 50%, transparent 65%);
  translate: -110% 0;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 20px -12px rgb(0 0 0 / .65); }
.button:hover::before { translate: 110% 0; transition: translate .8s var(--ease-out); }
.button:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
.button:disabled { cursor: wait; }
.button[data-state="sending"] { color: transparent; }
.button[data-state="sending"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2.5px solid var(--fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { rotate: 1turn; } }
.button-lg { min-height: 54px; padding-inline: 1.4em; font-size: 1.375rem; }
.button-ghost { --fg: var(--paper); background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75); }
.button-ghost::before { display: none; }
.button-ghost:hover { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1.5px var(--paper), 0 12px 20px -12px rgb(0 0 0 / .5); }

.text-link {
  padding-block: 10px;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgb(255 255 255 / .6);
  transition: text-underline-offset .3s var(--ease-out), text-decoration-color .3s;
}
.text-link:hover { text-underline-offset: .38em; text-decoration-color: var(--yellow); }

/* Ruler numbers printed along the mat edges (filled in by script) */
.ruler { position: absolute; top: 0; left: 0; pointer-events: none; color: var(--yellow); font: 600 11px/1 var(--display); }
.ruler-side { bottom: 0; overflow: hidden; } /* never makes the page taller than its content */
.ruler span { position: absolute; opacity: .8; transition: opacity .25s, color .25s, scale .35s var(--ease-out); }
.ruler span.is-hot { opacity: 1; color: var(--paper); scale: 1.35; }
.ruler-top span { top: 4px; left: calc(var(--u) * var(--i)); translate: -50% 0; }
.ruler-side span { left: 5px; top: calc(var(--u) * var(--i)); translate: 0 -50%; }
.mark { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; background: var(--yellow); opacity: 0; transition: opacity .3s; }
.mark-x { width: 1.5px; height: 18px; margin-left: -.75px; }
.mark-y { width: 18px; height: 1.5px; margin-top: -.75px; }
.has-pointer .mark { opacity: 1; }

/* Header: exactly two grid rows tall, room for the stacked logo */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: calc(var(--u) * 2);
  padding: 12px calc(var(--u) * 2) 0; /* clear the ruler numbers */
}
.brand { display: flex; color: var(--paper); }
.brand-logo { display: block; height: calc(var(--u) * 1.45); width: auto; transition: translate .5s var(--spring); }
.brand:hover .brand-logo { translate: 0 -3px; }
.site-header nav { margin-left: auto; }
.site-header ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { position: relative; font-weight: 600; text-decoration: none; }
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--yellow);
  scale: 0 1;
  transform-origin: left;
  transition: scale .45s var(--ease-out);
}
.site-header nav a:hover::after, .site-header nav a.is-active::after { scale: 1 1; }

/* Hero */
.hero { position: relative; min-height: calc(var(--u) * 11); padding: var(--u) calc(var(--u) * 2) 0; overflow-x: clip; }
.hero-copy { max-width: calc(var(--u) * 12); }
h1 { font-size: calc(var(--u) * 2.3); font-weight: 900; line-height: .86; margin-bottom: calc(var(--u) * .45); }
h1 .line { display: block; overflow: clip; padding-block: .08em .14em; margin-block: -.08em -.14em; }
h1 .line > span { display: inline-block; }
.lede { max-width: calc(var(--u) * 9); font-size: 1.25rem; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: calc(var(--u) * .5); }

/* The bench: a 3 × 4 in toploader on the grid, with a 2½ × 3½ in card (moved by main.js) */
.bench {
  --fx: .3;
  --fy: .3;
  container-type: inline-size;
  position: absolute;
  left: calc(var(--u) * 15);
  top: calc(var(--u) * 4);
  width: calc(var(--u) * 3);
  height: calc(var(--u) * 4);
  perspective: 1100px;
}
.rig { position: absolute; inset: 0; perspective: 900px; will-change: transform; }
/* Drawn from the real Superieur Gaming toploader: straight open top (no thumb notch),
   generously rounded corners, blue-violet sealed edges and a cool blue cast to the PVC */
.toploader, .shell { position: absolute; inset: 0; border-radius: 4.5cqi; }
.toploader {
  background: rgb(178 194 255 / .17);
  box-shadow: 0 0 0 1px rgb(206 218 255 / .8), 0 16px 26px -16px rgb(0 0 0 / .55);
  transition: box-shadow .35s var(--ease-out), background-color .35s;
}
.bench.is-near .toploader { background: rgb(243 213 91 / .1); box-shadow: 0 0 0 1.5px var(--yellow), 0 16px 26px -16px rgb(0 0 0 / .55); }
.shell {
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(118deg, transparent 28%, rgb(255 255 255 / .2) 42%, transparent 56%) calc(var(--fx) * 100%) 0 / 300% 100%,
    rgb(160 180 255 / .1); /* the tint the card sits behind */
  pointer-events: none;
}
.shell::before { /* sealed edges on three sides; the inner line is the seal seam */
  content: "";
  position: absolute;
  inset: 0;
  border: 3.4cqi solid rgb(158 176 255 / .34);
  border-top: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(226 233 255 / .5);
}
.sheen { position: absolute; inset: 0; opacity: 0; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .6) 50%, transparent 62%) 130% 0 / 250% 100%; }

.guides { position: absolute; left: 8.333%; right: 8.333%; bottom: 100%; height: calc(var(--u) * 3.9); pointer-events: none; opacity: 0; transition: opacity .3s; }
.guides i { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed var(--yellow); }
.guides i:first-child { left: 0; }
.guides i:last-child { right: 0; }
.bench.is-near .guides { opacity: .9; }

.card {
  --l: 0;
  position: absolute;
  z-index: 3;
  left: 8.333%;
  top: 10%;
  width: 83.333%;
  height: 87.5%;
  display: flex;
  flex-direction: column;
  gap: 3cqi;
  padding: 4cqi;
  border-radius: 4cqi;
  background: var(--frame);
  box-shadow: 0 calc(5px + var(--l) * 22px) calc(12px + var(--l) * 26px) calc(-5px - var(--l) * 4px) rgb(0 0 0 / .5);
  will-change: transform;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.bench.is-dragging .card { cursor: grabbing; }
.bench.is-inside .card { z-index: 1; }
.bench.is-loaded .card { cursor: default; }
.card-art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.5cqi;
  background: linear-gradient(135deg, #8fe9f5, #b9a6ff 25%, #ffb3e1 50%, #ffe59a 75%, #9ff0c9) calc(var(--fx) * 100%) calc(var(--fy) * 100%) / 220% 220%;
}
.card-art::before { /* specular highlight that follows the light */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at calc(var(--fx) * 100%) calc(var(--fy) * 100%), rgb(255 255 255 / .7), transparent 48%);
  mix-blend-mode: soft-light;
}
.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 5px, rgb(255 255 255 / .35) 5px 6px);
  mix-blend-mode: overlay;
}
.card-grade { position: relative; font: 900 46cqi/1 var(--display); color: var(--frame); opacity: .88; }
.card-num { position: absolute; z-index: 1; top: 3cqi; right: 3.5cqi; font: 700 4.5cqi/1 var(--display); color: var(--frame); }
.card-plate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2.4cqi 3.5cqi;
  border-radius: 1.5cqi;
  background: var(--paper);
  color: var(--frame);
  font: 800 8cqi/1 var(--display);
}
.card-plate span:last-child { font-size: 4.8cqi; font-weight: 700; }

.dim { position: absolute; color: var(--yellow); font: 700 1.125rem/1 var(--display); }
.dim::before { content: ""; position: absolute; border-color: currentColor; border-style: solid; }
.dim-w { left: 0; right: 0; top: calc(100% + var(--u) * .3); height: 10px; border-inline: 1.5px solid; }
.dim-w::before { left: 0; right: 0; top: 4px; border-width: 1.5px 0 0; }
.dim-w span { position: absolute; top: 16px; left: 50%; translate: -50% 0; }
.dim-h { top: 0; bottom: 0; left: calc(var(--u) * -.45); width: 10px; border-block: 1.5px solid; }
.dim-h::before { top: 0; bottom: 0; left: 4px; border-width: 0 0 0 1.5px; }
.dim-h span { position: absolute; top: 50%; right: 18px; translate: 0 -50%; writing-mode: vertical-rl; rotate: 180deg; }

.bench-controls {
  display: none;
  position: absolute;
  top: calc(100% + var(--u) * 1.1);
  left: 50%;
  width: calc(var(--u) * 5.5);
  translate: -50% 0;
  text-align: center;
}
.js .bench-controls { display: block; }
.bench-status { min-height: 3.2em; margin: .6rem auto 0; font-size: .9375rem; color: var(--soft); }

/* Sections */
.section { padding: calc(var(--u) * 1.5) calc(var(--u) * 2) 0; }

.raw-figure { margin: 0; }
.raw-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.raw-figure .grade { font: 900 124px var(--display); fill: var(--frame); opacity: .88; }
.raw-figure .num { font: 700 12px var(--display); fill: var(--frame); }
.raw-figure .plate { font: 800 21px var(--display); fill: var(--frame); }
.raw-figure .plate-sm { font: 700 13px var(--display); fill: var(--frame); }
.raw-figure .note { font: 700 23px var(--display); fill: var(--paper); }
.markup { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }

.steps { margin: 0; padding-left: 1.5em; }
.steps li { padding-left: .3em; margin-bottom: .6em; color: var(--soft); max-width: 56ch; }
.steps li::marker { font: 800 1.25rem var(--display); color: var(--yellow); }
.gauges { margin: 0; }
.gauges ul { margin: 0; padding: 0; list-style: none; }
.gauges li {
  display: grid;
  grid-template-columns: calc(var(--u) * 2.75) 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: .9rem;
  border-top: 1px solid rgb(255 255 255 / .25);
}
.gauges li:last-child { border-bottom: 1px solid rgb(255 255 255 / .25); }
.gauges strong { display: block; font: 800 1.5rem/1.05 var(--display); }
.gauges li > div:not(.gauge) span { display: block; font-size: .9375rem; color: var(--soft); }
/* side view: the toploader's two faces edge-on, with a card sliding between them */
.gauge { position: relative; height: 56px; overflow: hidden; }
.slot { position: absolute; left: 32%; right: 0; top: 50%; height: 34px; translate: 0 -50%; border-block: 3px solid rgb(255 255 255 / .85); }
.bar { position: absolute; top: 50%; left: 38%; width: 58%; height: 9px; translate: 0 -50%; border-radius: 2px; background: var(--paper); }
.bar.sleeved { box-shadow: 0 0 0 4px rgb(255 255 255 / .4); }
.bar.thick { left: -26%; height: 46px; background: var(--coral); } /* stopped at the opening */
.verdict { justify-self: start; padding: .3em .7em; border-radius: 3px; background: var(--yellow); color: var(--ink); font: 800 1.125rem/1 var(--display); font-style: normal; white-space: nowrap; }
.verdict-no { background: var(--coral); }
.gauges figcaption { margin-top: .75rem; font-size: .875rem; color: var(--soft); }

/* Photo-led bands: one large image and one big headline per section */
.band { display: grid; gap: var(--u); align-items: center; }
.band h2 { font-size: calc(var(--u) * 1.45); font-weight: 900; }
.band-copy > p { max-width: 46ch; color: var(--soft); }
.band-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: 1.5rem 0 2rem; }
.band-facts dt { font-size: .875rem; color: var(--soft); }
.band-facts dd { margin: 0; font: 800 1.625rem/1.1 var(--display); white-space: nowrap; }
.band-covers { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; margin: 1.75rem 0 0; }
.band-covers > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.band-covers dt { font: 800 1.625rem/1 var(--display); color: var(--yellow); }
.band-covers dd { margin: 0; color: var(--soft); }
.band-stage { position: relative; margin: 0; }
.band-photo { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgb(0 0 0 / .45)); }

/* Spec callouts on the pack photo: the photo sits inset so the labels have mat beside it */
.band-pack .pack-shot { inset: 8% 0 8% 16%; width: 84%; height: 84%; }
.band-pack .pack-thumbs { justify-content: flex-start; margin-top: calc(var(--u) * .75); }
.spec-marks { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out); }
.band-stage[data-shot="0"] .spec-marks { opacity: 1; }
.spec-marks svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; }
.spec-marks path { vector-effect: non-scaling-stroke; }
.spec-dot { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgb(243 213 91 / .25); }
.spec-label { position: absolute; font: 700 1.25rem/1 var(--display); color: var(--paper); white-space: nowrap; }
.spec-left { right: 84%; top: var(--y); translate: 0 -50%; }
.spec-top { left: var(--x); top: 4.4%; translate: -50% -100%; }
/* 3 in / 4 in around the single toploader photo, drawn like the hero's */
.fit-stage .band-dims { position: absolute; left: 14.7%; right: 14.7%; top: 3.7%; bottom: 3.7%; }

@media (min-width: 901px) {
  .band { gap: 0 var(--u); }
  .band-stage { width: calc(100% + var(--u) * 2); margin-right: calc(var(--u) * -2); } /* runs to the band's right edge */
  .band-pack { grid-template-columns: calc(var(--u) * 8) 1fr; }
  .band-protect { grid-template-columns: calc(var(--u) * 9) 1fr; }
  .band-protect h2 { font-size: calc(var(--u) * 1.2); }
  .band-fit { grid-template-columns: calc(var(--u) * 8) 1fr; align-items: start; }
  .band-fit h2 { grid-column: 1 / -1; }
  .band-fit .band-stage { width: calc(var(--u) * 8.5); margin: calc(var(--u) * .25) 0 0 auto; } /* the toploader stays shorter than a laptop screen */
}

/* The 25-pack: real product photos on the mat */
.pack-stage { position: relative; aspect-ratio: 1; }
.pack-stage::before { /* a pool of light on the mat */
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .11), transparent);
}
.pack-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 22px rgb(0 0 0 / .45));
  opacity: 0;
  scale: .94;
  transition: opacity .4s var(--ease-out), scale .7s var(--spring);
}
.pack-shot.is-active { opacity: 1; scale: 1; }
.pack-thumbs { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.pack-thumbs button {
  width: 72px;
  height: 72px;
  padding: 6px;
  border: 1.5px solid rgb(255 255 255 / .25);
  border-radius: 4px;
  background: rgb(255 255 255 / .06);
  cursor: pointer;
  transition: border-color .25s, background-color .25s, translate .35s var(--spring);
}
.pack-thumbs button:hover { border-color: rgb(255 255 255 / .6); translate: 0 -2px; }
.pack-thumbs button[aria-pressed="true"] { border-color: var(--yellow); background: rgb(243 213 91 / .12); }
.pack-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Contact: about on the mat, the form as a shipping label on a padded mailer */
.contact-section { display: grid; grid-template-columns: 1fr calc(var(--u) * 8); gap: var(--u) calc(var(--u) * 2); align-items: start; overflow-x: clip; }
.about p { color: var(--soft); }
.email-line a { color: var(--yellow); font-weight: 700; }
.mailer {
  position: relative;
  padding: calc(var(--u) * .75) calc(var(--u) * .45) calc(var(--u) * .6);
  border-radius: 7px;
  background:
    radial-gradient(circle, rgb(255 255 255 / .2) 0 2.5px, transparent 3px) 0 0 / 11px 11px, /* bubbles showing through */
    linear-gradient(170deg, #ecd07c, #d9b45a);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 30px 44px -28px rgb(0 0 0 / .75);
  will-change: transform;
}
.mailer::before { /* the flap's sealed fold */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * .38);
  border-top: 1.5px dashed rgb(90 64 16 / .35);
}
.mailer::after { /* heat-sealed crimp along the bottom */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  border-radius: 0 0 7px 7px;
  background: repeating-linear-gradient(90deg, rgb(90 64 16 / .18) 0 2px, transparent 2px 5px);
}
.label {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 3px rgb(60 40 0 / .25);
}
.label :focus-visible { outline-color: var(--mat); }
.label-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px 12px; border-bottom: 2px solid var(--ink); }
.label-head h2 { margin: 0; font-size: clamp(1.9rem, calc(var(--u) * .62), 2.75rem); }
.label-mark { width: 26px; height: 30px; flex: none; color: var(--ink); }
.label-row { min-width: 0; margin: 0; padding: 12px 18px 14px; border: 0; border-bottom: 2px solid var(--ink); }
.label-row legend, .label-key { float: left; width: 100%; padding: 0; font: 800 1.05rem/1 var(--display); }
.label form label, .label label { clear: both; display: grid; grid-template-columns: 4rem 1fr; align-items: end; gap: 10px; margin: 10px 0 0; font-size: .9375rem; }
.label input {
  padding: 6px 2px 5px;
  border: 0;
  border-bottom: 1.5px solid rgb(15 42 32 / .4);
  border-radius: 0;
  background: transparent;
}
.label input:hover { border-bottom-color: rgb(15 42 32 / .7); }
.label input:focus, .label textarea:focus { border-bottom-color: var(--mat); box-shadow: 0 2px 0 var(--mat); background-color: rgb(36 84 63 / .05); }
.label input:user-invalid { border-bottom-color: var(--coral-deep); }
.label-to { display: grid; grid-template-columns: 4rem 1fr; gap: 10px; align-items: baseline; }
.label-to .label-key { float: none; width: auto; }
.label-to p { margin: 0; font-weight: 700; line-height: 1.35; }
.label .label-message { grid-template-columns: 1fr; gap: 6px; margin: 0; }
.label textarea { /* ruled lines to write on */
  --line: 1.75em;
  min-height: calc(var(--line) * 4);
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  line-height: var(--line);
  background: repeating-linear-gradient(transparent 0 calc(var(--line) - 1px), rgb(15 42 32 / .22) calc(var(--line) - 1px) var(--line)) local;
}
.label-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px; }
.barcode { /* decorative tracking barcode */
  flex: 1;
  max-width: 170px;
  height: 40px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}
.label .button { --fg: var(--paper); background: var(--ink); }
.label .button:hover { background: var(--mat); }
.stamp {
  position: absolute;
  right: 9%;
  top: 60%;
  margin: 0;
  padding: .1em .45em;
  border: 4px solid var(--coral-deep);
  border-radius: 8px;
  color: var(--coral-deep);
  font: 900 3.25rem/1 var(--display);
  rotate: -12deg;
  scale: 1.7;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity .15s, scale .5s var(--spring);
}
.mailer.is-sent .stamp { opacity: .9; scale: 1; }
.contact .form-status { margin-top: 14px; color: var(--soft); }
form label { display: grid; gap: 6px; margin-bottom: 18px; font-weight: 700; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgb(15 42 32 / .3);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .25s, box-shadow .35s var(--ease-out);
}
input:hover, textarea:hover { border-color: rgb(15 42 32 / .55); }
input:focus, textarea:focus { border-color: var(--mat); box-shadow: 0 0 0 4px rgb(36 84 63 / .18); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--mat); outline-offset: 1px; }
input:user-invalid, textarea:user-invalid { border-color: var(--coral-deep); }
textarea { resize: vertical; }
.form-status { min-height: 1.6em; margin: 12px 0 0; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem calc(var(--u) * 1.5); align-items: end; padding-bottom: var(--u); }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; border-color: transparent; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.legal { margin: 0; font-size: .875rem; color: var(--soft); }

/* Appears once the hero's buy button scrolls away */
.float-buy {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: none;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
  font: 800 1.125rem/1 var(--display);
  text-decoration: none;
  box-shadow: 0 16px 32px -14px rgb(0 0 0 / .7);
  transition: opacity .3s var(--ease-out), translate .6s var(--spring), scale .6s var(--spring), box-shadow .3s;
}
.float-buy svg { width: 14px; height: 19px; }
.js .float-buy { display: inline-flex; opacity: 0; translate: 0 28px; scale: .9; pointer-events: none; }
.js .float-buy.is-shown { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.js .float-buy.is-shown:hover { translate: 0 -2px; box-shadow: 0 20px 36px -14px rgb(0 0 0 / .8); }

/* ---------- Motion: page-load sequence and scroll-in moments (skipped with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .ruler span { transition: opacity .5s calc(var(--i) * 14ms), color .25s, scale .35s var(--ease-out); }
  .js:not(.is-ready) .ruler span { opacity: 0; }

  .js h1 .line > span { transition: translate 1.1s var(--ease-out); }
  .js h1 .line + .line > span { transition-delay: .09s; }
  .js:not(.is-ready) h1 .line > span { translate: 0 110%; }
  /* the lede and buttons stay visible from first paint: they're the page's LCP */

  /* measurements draw out from their centers after the card lands */
  .js .dim-w { clip-path: inset(-2em); transition: clip-path .8s var(--ease-out) 1.05s; }
  .js .dim-h { clip-path: inset(-2em -2em -2em -4em); transition: clip-path .8s var(--ease-out) 1.15s; }
  .js:not(.is-ready) .dim-w { clip-path: inset(-2em 50% -2em 50%); }
  .js:not(.is-ready) .dim-h { clip-path: inset(50% -2em 50% -4em); }
  .js .bench-controls { transition: opacity .7s var(--ease-out) 1.25s; }
  .js:not(.is-ready) .bench-controls { opacity: 0; }

  /* spec pen on the pack photo, and the toploader's measurements, when each scrolls into view */
  .js .spec-marks path { stroke-dasharray: 1; transition: stroke-dashoffset .5s var(--ease-out) var(--d); }
  .js .band-stage:not(.is-in) .spec-marks path { stroke-dashoffset: 1; }
  .js .spec-dot, .js .spec-label { transition: opacity .4s var(--ease-out) var(--d), scale .5s var(--spring) var(--d); }
  .js .band-stage:not(.is-in) .spec-dot { opacity: 0; scale: 0; }
  .js .band-stage:not(.is-in) .spec-label { opacity: 0; }
  .js .fit-stage .dim-w { transition-delay: .15s; }
  .js .fit-stage .dim-h { transition-delay: .3s; }
  .js .fit-stage:not(.is-in) .dim-w { clip-path: inset(-2em 50% -2em 50%); }
  .js .fit-stage:not(.is-in) .dim-h { clip-path: inset(50% -2em 50% -4em); }

  /* grader's pen */
  .js .markup > * { stroke-dasharray: 1; transition: stroke-dashoffset .55s var(--ease-out) var(--d); }
  .js .raw-figure:not(.is-in) .markup > * { stroke-dashoffset: 1; }
  .js .raw-figure .note { transition: opacity .5s var(--d); }
  .js .raw-figure:not(.is-in) .note { opacity: 0; }

  /* cards slide into the gauges; the thick one is stopped at the opening */
  .js .gauges:not(.is-in) .bar { transform: translateX(-170%); }
  .js .gauges.is-in .bar { animation: slide-in 1s var(--ease-out) var(--d) both; }
  .js .gauges.is-in .bar.thick { animation: blocked 1.1s ease-in-out var(--d) both; }
  .js .gauges.is-in li:last-child .slot { animation: wall-hit .7s ease-out calc(var(--d) + .55s) both; }
  .js .gauges:not(.is-in) .verdict { opacity: 0; scale: .6; }
  .js .gauges.is-in .verdict { animation: pop .7s var(--spring) calc(var(--d) + .6s) both; }
}
@keyframes slide-in { from { transform: translateX(-170%); } }
@keyframes blocked {
  0% { transform: translateX(-170%); }
  55% { transform: translateX(7%); }
  70% { transform: translateX(-8%); }
  84% { transform: translateX(2%); }
  100% { transform: none; }
}
@keyframes wall-hit { 0%, 100% { border-color: rgb(255 255 255 / .85); } 15% { border-color: var(--coral); } }
@keyframes pop { from { opacity: 0; scale: .6; } }

/* Phones and small tablets: an 8-inch-wide mat */
@media (max-width: 900px) {
  .ruler-side, .mark, .site-header nav { display: none; }
  .site-header { gap: 12px; padding: 10px calc(var(--u) * .5) 0; justify-content: space-between; }
  .ruler { font-size: 9px; }
  .ruler-top span { top: 1px; }
  .brand-logo { height: calc(var(--u) * 1.4); }
  .site-header .button { min-height: 36px; padding-inline: .8em; font-size: 1rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 0 calc(var(--u) * .5); }
  .bench {
    order: -1;
    position: relative;
    left: auto;
    top: auto;
    flex: none;
    margin: calc(var(--u) * 4) 0 calc(var(--u) * 3.6) calc(var(--u) * 2);
  }
  h1 { font-size: calc(var(--u) * 1.25); }
  .section { padding: calc(var(--u) * 1.5) calc(var(--u) * .5) 0; }
  .band, .contact-section, .site-footer { grid-template-columns: 1fr; }
  .band h2 { font-size: calc(var(--u) * 1.1); }
  .band-pack .band-stage { order: -1; }
  /* shortcut: callout labels need mat beside the photo; hidden on phones until there's a stacked layout for them */
  .spec-marks { display: none; }
  .band-pack .pack-shot { inset: 4%; width: 92%; height: 92%; }
  .mailer { padding: calc(var(--u) * .7) calc(var(--u) * .25) calc(var(--u) * .5); }
  .label-row, .label-head, .label-foot { padding-inline: 14px; }
  .site-footer { padding-bottom: calc(var(--u) * 2); }
}
@media (max-width: 400px) {
  .site-header { padding-top: 4px; }
  .site-header .button { padding-inline: .6em; font-size: .9375rem; }
  .button-lg { white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .covers { grid-template-columns: 1fr; }
  .gauges li { grid-template-columns: calc(var(--u) * 2.5) 1fr; }
  .verdict { grid-column: 2; }
}

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