/* ==========================================================================
   Luzinay P1 — marketing site  ("stitched case" language, round 4)

   Materials, ported from the P1 Android app (design authority — p1_app
   ui/theme/Color.kt, ui/components/{Aluminum,Backgrounds,NavBar}.kt):
     1. BLACK LEATHER     the stage, and the case lining
     2. BLACK PLASTIC     the floating leaves (content blocks)
     3. LINED ALUMINIUM   plates and decks — control areas, inert themselves
     4. CIRCULAR ALUMINIUM  everything interactive, round or rectangular
   No pure #FFFFFF anywhere; every white is warm.
   ========================================================================== */

:root {
  --leather-base: #1A1613;
  --leather-lining: #14120F;
  --panel-bottom: #1C1C1F;
  --panel-inset: #161619;
  --alu-base: #74787D;
  --alu-lo: #3D4044;

  --text-primary: #F2F0EA;
  --text-secondary: #B4AFA3;   /* brightened from #9C978C — it was hard to read */
  --text-tertiary: #6D6862;
  --text-cut: rgba(14, 16, 18, 0.90);        /* dark type cut into bright metal */
  --text-cut-soft: rgba(23, 25, 27, 0.80);
  --bevel: rgba(246, 242, 232, 0.55);        /* lit top edge on aluminium */
  --lamp-on: #F3ECD9;
  --glow-white: #F6F2E8;
  --thread: rgba(232, 230, 224, 0.22);       /* saddle stitch */

  --content-max: 1220px;
  --case-radius: 26px;
  --font-plate: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  /* the app's own caps-only brand face — button labels use this */
  --font-brand: 'Hurme', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --tex-leather: url('../assets/textures/dark_leather_background.jpg');
  --tex-plastic: url('../assets/textures/dark_plastic.jpg');
  --tex-alu-lines: url('../assets/textures/brushed_aluminum_lines.jpg');
  --tex-alu-circular: url('../assets/textures/brushed_aluminum_circular.jpg');
}

/* ---- faces (all self-hosted; no third-party requests) -------------------- */
/* Hurme Bold is caps-only and its metric box is asymmetric — overriding
   ascent/descent to the cap height centres every label identically on every
   platform (the app compensates in Kotlin with baselineShift(-0.083f)). */
@font-face {
  font-family: 'Hurme';
  src: url('../assets/fonts/hurme_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 84.84%;
  descent-override: 15.16%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Cinzel';
  src: url('../assets/fonts/cinzel-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('../assets/fonts/cinzel-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; }

body {
  min-height: 100vh;
  padding: 44px;
  background: var(--leather-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  /* Cormorant's own old-style figures, kept deliberately (owner, round 8):
     the lowered "1" in P1 is the house look. */
  -webkit-font-smoothing: antialiased;
}

/* ---- 1. BLACK LEATHER — one static, full-bleed stage --------------------- */
/* A fixed LAYER, not `background-attachment: fixed`: iOS Safari refuses to
   paint fixed backgrounds properly and janks while scrolling. The mat never
   moves, never parallaxes, never gets tinted (LeatherBackdrop). */
.leather-mat {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--leather-base) var(--tex-leather) center / cover no-repeat;
}
.leather-mat::after { /* one cool highlight from above — never warm, or the
                         leather reads brown */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 70% at 50% 0%, rgba(226, 230, 236, 0.05), transparent 60%);
}

/* ---- the case: leather lining, saddle-stitched all round ----------------- */
/* The lining is TILED at a fixed size, never `cover`. Cover scales the bitmap
   to the case's HEIGHT, and a stacked tablet/phone page is ~3000px tall — a
   1.9x upscale of a fine grain, which reads as visible pixels. */
.case {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 22px;
  border-radius: var(--case-radius);
  background: var(--leather-lining) var(--tex-leather) center top / 1500px auto repeat;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.90),
    inset 0 1px 0 rgba(236, 234, 228, 0.10),
    inset 0 -2px 6px rgba(0, 0, 0, 0.70);
}
.case::before { /* keeps the lining black rather than brown */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.case::after { /* the stitch */
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--case-radius) - 12px);
  border: 2px dashed var(--thread);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.case__inner { position: relative; padding: 34px 42px 38px; }

/* ---- 2. BLACK PLASTIC — the floating leaves ------------------------------ */
.leaf {
  position: relative;
  border-radius: 20px;
  background: var(--panel-bottom) var(--tex-plastic) center / cover no-repeat;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.85), 0 5px 14px rgba(0, 0, 0, 0.60);
}
.leaf::before { /* top-lit vertical falloff */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 48%, rgba(0, 0, 0, 0.26) 100%);
  pointer-events: none;
}
.leaf::after { /* 1px lit rim, strongest at the top */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(246, 242, 232, 0.18) 0%, rgba(246, 242, 232, 0.04) 40%, rgba(246, 242, 232, 0.02) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.leaf > * { position: relative; }

/* ---- 3. LINED ALUMINIUM — plates and decks (inert control areas) --------- */
/* The flat wash on top is not decoration: the lines texture has strong
   horizontal grain, and without it small engraved type gets chopped up by
   the streaks. It reads as matte-anodised rather than raw mill finish. */
.plate {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)),
    var(--alu-base) var(--tex-alu-lines) center / cover no-repeat;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 var(--bevel),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}
.plate::before { /* diagonal specular sweep */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 24%, rgba(246, 242, 232, 0.12) 48%, transparent 68%);
  pointer-events: none;
}
.plate > * { position: relative; }

/* ---- 4. CIRCULAR ALUMINIUM — everything interactive ---------------------- */
/* Round discs and rectangular word-buttons share one finish (the app's rule:
   the radial grain is THE interactive finish, and it never merges with the
   lines grain of a plate underneath). */
.alu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  padding: 0;              /* the UA's 1px 6px made centring land on half-pixels */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  background: var(--alu-base) var(--tex-alu-circular) center / cover no-repeat;
  color: var(--text-cut);
  font-family: var(--font-brand);
  font-weight: 700;
  text-transform: uppercase;
  /* dark type CUT into bright metal — the app's TextOnAluminum: engraved,
     not printed, so the grain reads through it */
  text-shadow: 0 1px 0 rgba(246, 242, 232, 0.45);
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--bevel), inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  transition: filter 140ms ease, transform 120ms ease-out, box-shadow 120ms ease-out,
              color 150ms ease, text-shadow 150ms ease;
}
/* ---- icons: masked from assets/icons/*.svg ------------------------------- */
/* The files are the single source — drop a replacement in the folder and the
   site follows, no markup to touch. Masking (rather than <img>) keeps the
   glyph taking its colour from the button, so it lights lamp-warm on press. */
.icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(246, 242, 232, 0.42));
  transition: background-color 150ms ease, filter 150ms ease;
}
/* >>> icons: generated by tools/sync-icons.py — do not edit by hand */
.icon--close    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M256-200l-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z'/%3E%3C/svg%3E"); }
.icon--expand   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M120-120v-320h80v184l504-504H520v-80h320v320h-80v-184L256-200h184v80H120Z'/%3E%3C/svg%3E"); }
.icon--home     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z'/%3E%3C/svg%3E"); }
.icon--mute     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M792-56 671-177q-25 16-53 27.5T560-131v-82q14-5 27.5-10t25.5-12L480-368v208L280-360H120v-240h128L56-792l56-56 736 736-56 56Zm-8-232-58-58q17-31 25.5-65t8.5-70q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 53-14.5 102T784-288ZM650-422l-90-90v-130q47 22 73.5 66t26.5 96q0 15-2.5 29.5T650-422ZM480-592 376-696l104-104v208Zm-80 238v-94l-72-72H200v80h114l86 86Zm-36-130Z'/%3E%3C/svg%3E"); }
.icon--pause    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M300-760h100v560H300zM560-760h100v560H560z'/%3E%3C/svg%3E"); }
.icon--phone    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M280-40q-33 0-56.5-23.5T200-120v-720q0-33 23.5-56.5T280-920h400q33 0 56.5 23.5T760-840v124q18 7 29 22t11 34v80q0 19-11 34t-29 22v404q0 33-23.5 56.5T680-40H280Zm0-80h400v-720H280v720Zm0 0v-720 720Zm200-200 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Z'/%3E%3C/svg%3E"); }
.icon--play     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M320-200v-560l440 280-440 280Zm80-280Zm0 134 210-134-210-134v268Z'/%3E%3C/svg%3E"); }
.icon--power    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-84 31.5-156.5T197-763l56 56q-44 44-68.5 102T160-480q0 134 93 227t227 93q134 0 227-93t93-227q0-67-24.5-125T707-707l56-56q54 54 85.5 126.5T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-40-360v-440h80v440h-80Z'/%3E%3C/svg%3E"); }
.icon--settings { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z'/%3E%3C/svg%3E"); }
.icon--sound    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z'/%3E%3C/svg%3E"); }
/* <<< icons */

/* hover: the metal catches more light and the rim brightens — applies to
   every button, discs included */
@media (hover: hover) {
  .alu-btn:not([disabled]):hover {
    filter: brightness(1.16);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.58),
                inset 0 1px 0 rgba(246, 242, 232, 0.75),
                inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  }
}
.alu-btn:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: 3px; }

/* Press: the button shrinks into its seat. Not a downward shift — inside a
   recessed collar the whole disc slid off-centre and read as broken (owner,
   round 4). Scale keeps it concentric with its housing. Instant down, eased
   release (the transition above); JS drives the class so a fast tap always
   plays and a page-pan that starts on a button never does. */
.alu-btn.is-pressed {
  transform: scale(0.94);
  filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(246, 242, 232, 0.30),
              inset 0 0 0 999px rgba(0, 0, 0, 0.14);
  color: rgba(243, 236, 217, 0.95);
  text-shadow: 0 0 7px rgba(246, 242, 232, 0.45);
  transition: none;
}
.alu-btn.is-pressed .icon { filter: drop-shadow(0 0 5px rgba(246, 242, 232, 0.45)); }

.alu-btn[disabled],
.alu-btn[aria-disabled="true"] {
  cursor: default;
  filter: brightness(0.72) saturate(0.85);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(246, 242, 232, 0.22);
}

/* Current page: the button stays LATCHED — seated in its well, face dimmed,
   legend lit. A halo alone was too quiet to read as "you are here". */
.alu-btn.is-current {
  box-shadow: 0 1px 0 rgba(246, 242, 232, 0.10),
              inset 0 2px 7px rgba(0, 0, 0, 0.60),
              inset 0 0 0 999px rgba(0, 0, 0, 0.24);
  color: rgba(243, 236, 217, 0.95);
  text-shadow: 0 0 7px rgba(246, 242, 232, 0.40);
}
.alu-btn.is-current:hover { filter: none; }

.alu-btn--word {
  height: 46px;           /* matched to the settings disc — it sat 6px taller */
  padding: 0 20px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 2.5px;
}
.alu-btn--disc { border-radius: 50%; }

/* engraved legend on a MATTE plate: a light cut with a dark lower lip — the
   inverse of bright mill finish, and the only treatment that stays readable
   at 10-12px over metal */
.engraved      { color: rgba(240, 237, 228, 0.94); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.80); }
.engraved--soft { color: rgba(224, 220, 210, 0.82); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); }

/* ---- recessed wells (screens, inputs, slots) ----------------------------- */
.well {
  position: relative;
  background: var(--panel-inset);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.90);
}
.well::after { /* recessed lip: shaded top, faint light at the bottom */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 0%, rgba(246, 242, 232, 0.07) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}

/* ---- machined groove ----------------------------------------------------- */
.groove {
  height: 2px;
  border: none;
  margin: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0 50%, rgba(246, 242, 232, 0.07) 50% 100%);
}
.groove--wide {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.60) 8%, rgba(0, 0, 0, 0.60) 92%, transparent);
  box-shadow: 0 1px 0 rgba(246, 242, 232, 0.12);
}

/* ---- lamp ---------------------------------------------------------------- */
.lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: rgba(48, 51, 56, 0.9);          /* dark, unmistakably a lamp */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.lamp.is-lit {
  background: var(--lamp-on);
  box-shadow: 0 0 9px rgba(243, 236, 217, 0.80);
}

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 26px;
}
.nameplate {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 14px 26px;
}
.nameplate::after,            /* the two mounting screws */
.nameplate .screw {
  content: '';
  position: absolute;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(246, 242, 232, 0.80), rgba(61, 64, 68, 0.90));
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.60);
}
.nameplate::after { right: 8px; }
.nameplate .screw { left: 8px; }
.nameplate:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: 4px; }
.nameplate img {
  height: 30px;
  width: auto;
  margin: 0 12px;
  filter: brightness(0);      /* the white wordmark, engraved into the metal */
  opacity: 0.66;
}
.nameplate .brand-icon { display: none; }

.nav { display: flex; align-items: center; gap: 10px; }
.nav__icon { display: none; }               /* phone-only glyphs */
.nav__settings { width: 46px; height: 46px; }
.nav__settings .icon { width: 20px; height: 20px; }

/* ==========================================================================
   HERO — info leaf and the set, locked to the same height
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 36px;
  padding-top: 32px;
  align-items: stretch;
}
.hero > * { min-width: 0; }
/* the app hero has no plate mounted at its foot, so the copy is centred
   INSIDE its leaf — the two leaves still stretch to one identical height */
.hero--app .hero__info { justify-content: center; }
/* one lone leaf (the 404 page) */
.hero--single { grid-template-columns: 1fr; }
.hero__return { margin: 22px 0 0; }
.hero__return .alu-btn { padding-left: 16px; }

.hero__info { padding: 42px 44px 38px; display: flex; flex-direction: column; }
.eyebrow {
  font-family: var(--font-plate);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.hero__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(72px, 8.5vw, 132px);
  line-height: 0.88;
  margin: 4px 0 18px;
  color: var(--text-primary);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.80), 0 0 34px rgba(246, 242, 232, 0.16);
}
.hero__title--long { font-size: clamp(42px, 5.2vw, 78px); line-height: 0.96; }
.hero__lead {
  margin: 0 0 24px;
  max-width: 34ch;
  font-size: 23px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero__support {
  margin: -12px 0 24px;
  max-width: 40ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.hero__info .groove { margin-bottom: 22px; }

/* ---- sign-up plate, mounted low so both columns stay level --------------- */
.signup { margin-top: auto; border-radius: 12px; padding: 20px; }
.signup__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.signup__label { font-family: var(--font-plate); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; white-space: nowrap; }
.signup__status {
  font-family: var(--font-plate);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.signup__row { display: flex; gap: 10px; }
.signup__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: none;
  border-radius: 10px;
  background: var(--panel-inset);
  box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(246, 242, 232, 0.30);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
}
.signup__input::placeholder { color: var(--text-secondary); font-style: italic; opacity: 1; }
/* the honeypot leaves the page without leaving the DOM (display:none makes
   some bots skip it) */
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.signup__input:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: 1px; }
.signup__submit { flex: none; height: 48px; padding: 0 22px; }
.signup__note { display: block; margin-top: 11px; font-size: 16.5px; line-height: 1.45; }
.signup__note.is-error { color: #E9C9A6; }

/* ---- the set: screen in a plastic cabinet + aluminium control deck ------- */
.set { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.set__screen {
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 5px 18px rgba(0, 0, 0, 0.90);
}
.set__screen::before { /* glass sheen */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(246, 242, 232, 0.055) 0%, transparent 38%);
  pointer-events: none;
}
.set__screen video,
.set__screen img { width: 100%; height: 100%; object-fit: cover; }
/* the still that stands in for the film at 0:00 — it sits over the video so
   the first frame is never what you see */
.film-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.set__screen.showing-poster .film-poster { opacity: 1; }

/* powered down: the set goes dark, like a switched-off screen */
.set__screen video { transition: opacity 300ms ease; }
.set__screen.is-off video,
.set__screen.is-off .film-poster { opacity: 0; }
.set__screen.is-off {
  background: linear-gradient(165deg, #232327 0%, #16161a 55%, #121215 100%);
}
.set__screen--film { aspect-ratio: 1 / 1; }      /* the film frame is square */
.set__screen--photo { aspect-ratio: 4 / 5; }     /* a held phone, photographed */

.placeholder {
  position: relative;
  font-family: var(--font-plate);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 20px;
}

/* ---- the deck ------------------------------------------------------------ */
.deck { border-radius: 14px; padding: 14px 16px; }
.deck__row { display: flex; align-items: center; gap: 14px; }
.deck__divider { width: 1px; height: 28px; flex: none; background: rgba(0, 0, 0, 0.35); box-shadow: 1px 0 0 rgba(246, 242, 232, 0.28); }
.btn-transport { width: 46px; height: 46px; flex: none; }
.btn-transport .icon { width: 20px; height: 20px; }
/* play/pause is ONE control — the glyph carries both states */
[aria-pressed="true"] .icon--play,
[aria-pressed="false"] .icon--pause { display: none; }
/* mute likewise: pressed = muted */
[aria-pressed="true"] .icon--sound,
[aria-pressed="false"] .icon--mute { display: none; }

/* volume: a recessed slot with a machined slider cap */
.volume { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.volume__label { font-family: var(--font-plate); font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; flex: none; }
.volume__slot {
  position: relative;
  flex: 1;
  min-width: 70px;
  height: 12px;
  border-radius: 6px;
  background: var(--panel-inset);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.90), 0 1px 0 rgba(246, 242, 232, 0.34);
  cursor: pointer;
  touch-action: none;
}
.volume__slot:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: 4px; }
.volume__fill {
  position: absolute;
  left: 3px; top: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(243, 236, 217, 0.50);
  box-shadow: 0 0 7px rgba(243, 236, 217, 0.35);
}
.volume__cap {
  position: absolute;
  top: -7px;
  width: 15px; height: 26px;
  border-radius: 4px;
  background: var(--alu-base) var(--tex-alu-circular) center / cover no-repeat;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.70), inset 0 1px 0 rgba(246, 242, 232, 0.60), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}
.volume__cap span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 2px;
  background: rgba(23, 25, 27, 0.60);
  box-shadow: 0 1px 0 rgba(246, 242, 232, 0.35);
}

/* power: a real button in a recessed collar */
.power { display: flex; align-items: center; gap: 10px; flex: none; }
.power__collar {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--panel-inset);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.90), 0 1px 0 rgba(246, 242, 232, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
}
.power__btn { width: 40px; height: 40px; }
.power__btn .icon { width: 20px; height: 20px; }

/* ==========================================================================
   FEATURE / SCREEN SECTIONS
   ========================================================================== */
.section { padding-top: 40px; }
.section__head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; }
.section__title {
  font-family: var(--font-plate);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0;
}
.section__rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60) 92%, transparent);
  box-shadow: 0 1px 0 rgba(246, 242, 232, 0.10);
}

/* ---- the feature bento --------------------------------------------------- */
/* Plastic leaves of mixed proportions packed around one aluminium tag (the
   platform itself) — tile shapes follow the artwork. The areas are named so
   each breakpoint can re-pack the same tiles into a clean rectangle. */
.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 212px;
  grid-template-areas:
    "ms ms au db hl md"
    "me ot c  c  pr md"
    "ey su c  c  af rp"
    "dg dg cn cn mo pd";
}
.tile--core       { grid-area: c; }
.tile--monosnap   { grid-area: ms; }
.tile--audio      { grid-area: au; }
.tile--silent     { grid-area: db; }
.tile--lifter     { grid-area: hl; }
.tile--modularity { grid-area: md; }
.tile--diagnostics{ grid-area: dg; }
.tile--connect    { grid-area: cn; }
.tile--precision  { grid-area: pr; }
.tile--memory     { grid-area: me; }
.tile--ota        { grid-area: ot; }
.tile--repair     { grid-area: rp; }
.tile--eye        { grid-area: ey; }
.tile--sun        { grid-area: su; }
.tile--mods       { grid-area: mo; }
.tile--pads       { grid-area: pd; }
.tile--formats    { grid-area: af; }

.tile {
  border-radius: 18px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
}
.tile__art {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile__art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* the diagnostics render carries its own baked background — round it off */
.tile--diagnostics .tile__art img { border-radius: 10px; }
/* the microSD render reads oversized at full bleed — pull it in */
.tile--memory .tile__art img { max-width: 70%; max-height: 70%; }
.tile__name {
  margin: 0;
  font-family: var(--font-plate);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-wrap: balance;
}
.tile__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* stat tiles: the number IS the artwork — a lit engraving, not print */
.tile__stat {
  font-family: var(--font-plate);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 1px;
  color: var(--glow-white);
  text-shadow: 0 0 22px rgba(246, 242, 232, 0.30), 0 1px 0 rgba(0, 0, 0, 0.80);
}
.tile__stat--stack { font-size: 23px; line-height: 1.45; letter-spacing: 4px; }

/* the centre tag: aluminium, holding the platform itself — nothing else */
.tile--core {
  justify-content: center;
  padding: 26px;
}
.tile__hero {
  min-height: 0;
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

/* ---- app screens: the cover-flow wheel ----------------------------------- */
/* Ported from the app's CoverFlow (library/CoverFlow.kt): neighbours tuck
   UNDER the centred card via negative spacing, scale 0.56..1 and fade to
   0.35 by centrality — never to nothing, which is what kept them visible on
   a phone. No rotation; z-index follows centrality so the centre card wins. */
.wheel {
  /* positioned so the cards' offsetParent is the wheel itself: the glide
     target is computed from offsetLeft, and measuring it against the case
     instead left it a few px off the browser's real snap point — which then
     nudged the wheel a second time on release */
  position: relative;
  --card-w: 325px;
  --overlap: 78px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px calc(50% - var(--card-w) / 2) 26px;
  scrollbar-width: none;
  cursor: grab;
}
.wheel::-webkit-scrollbar { display: none; }
/* Snapping is suspended while dragging AND while a programmatic glide runs —
   see the note in site.js on why an incremental scroll cannot work here. */
.wheel.is-dragging,
.wheel.is-gliding { scroll-snap-type: none; }
.wheel.is-dragging { cursor: grabbing; user-select: none; }
.wheel:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: -6px; border-radius: 20px; }
.wheel__card {
  flex: 0 0 var(--card-w);
  margin-inline: calc(var(--overlap) / -2);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform, opacity;
}
.wheel.is-dragging .wheel__card { pointer-events: none; }
/* the screenshot IS the card — no cabinet, just glass corners and a shadow */
.wheel__shot {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(246, 242, 232, 0.08);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.85), 0 5px 14px rgba(0, 0, 0, 0.60);
}
/* the centred card alone carries its legend (JS drives the sharp fade,
   the app's CoverFlow rule) */
.wheel__caption { text-align: center; }
.wheel__name {
  font-family: var(--font-plate);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.wheel__desc {
  margin: 0 auto;
  max-width: 30ch;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* ---- questions & answers -------------------------------------------------- */
.qa__list { display: flex; flex-direction: column; gap: 14px; }
.qa__item { border-radius: 16px; }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;                 /* the disc is the marker */
  font-size: 20px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: -4px; border-radius: inherit; }
/* the disclosure disc: machined, inert until the row is worked */
.qa__disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alu-base) var(--tex-alu-circular) center / cover no-repeat;
  color: var(--text-cut);
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--bevel), inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  transition: filter 140ms ease;
}
.qa__disc .icon {
  width: 12px;
  height: 12px;
  /* the x glyph turned 45° reads as +; opening turns it back into an x */
  transform: rotate(45deg);
  transition: transform 220ms cubic-bezier(0.22, 0.9, 0.3, 1);
}
details[open] .qa__disc .icon { transform: rotate(0deg); }
@media (hover: hover) {
  .qa__q:hover .qa__disc { filter: brightness(1.16); }
}
.qa__a {
  margin: 0;
  padding: 0 20px 19px;
  max-width: 72ch;
  font-size: 18.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.qa__contact {
  margin-top: 26px;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.qa__contact-label { font-family: var(--font-plate); font-size: 12px; letter-spacing: 3.5px; text-transform: uppercase; }
/* the address sits in a recessed slot, like the sign-up field — static text
   the reader selects and copies the usual way (it selects itself on focus) */
.qa__mail {
  border: none;
  border-radius: 10px;
  height: 44px;
  padding: 0 16px;
  width: 250px;
  max-width: 100%;
  background: var(--panel-inset);
  box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(246, 242, 232, 0.30);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  text-align: center;
}
.qa__mail:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: 1px; }

/* ==========================================================================
   FOOTER — debossed into the leather
   ========================================================================== */
.footer { padding-top: 36px; }
.footer p {
  margin: 0;
  font-style: italic;
  font-size: 16px;
  color: var(--text-tertiary);
  text-shadow: 0 1px 0 rgba(246, 242, 232, 0.10);
}

/* ==========================================================================
   SETTINGS DIALOG
   ========================================================================== */
dialog {
  position: fixed;
  inset: 0;
  margin: auto;                 /* explicit centring — no UA-default drift */
  height: fit-content;
  width: min(420px, calc(100vw - 32px));
  max-width: 100vw;
  border: none;
  background: transparent;
  padding: 0;
  /* the UA default is `overflow: auto`, which clipped the panel's drop
     shadow into a hard square edge along the bottom */
  overflow: visible;
  color: var(--text-primary);
}
dialog::backdrop { background: rgba(5, 4, 3, 0.58); }
dialog[open] { animation: dlg-in 240ms cubic-bezier(0.2, 0.9, 0.3, 1.05); }
dialog[open]::backdrop { animation: fade-in 240ms ease; }
dialog.is-closing { animation: dlg-out 150ms ease-in forwards; }
dialog.is-closing::backdrop { animation: fade-out 150ms ease forwards; }
@keyframes dlg-in { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { to { opacity: 0; transform: scale(0.96) translateY(6px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

/* The expanded film: a square as large as the viewport comfortably allows.
   The width must sit on the DIALOG — `width: auto` with `inset: 0` stretches
   it edge to edge, leaving `margin: auto` nothing to centre. */
.film-dialog {
  width: min(86vw, calc(92vh - 116px));
  max-width: none;
}
.film-dialog .dialog__panel { padding: 16px; gap: 14px; }
.film-dialog .set__screen { border-radius: 14px; }
/* phone gets no expand control — the film is already full-width there */
.deck__expand { display: inline-flex; }

.dialog__panel { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog__title {
  margin: 0;
  font-family: var(--font-plate);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.dialog__close { width: 34px; height: 34px; }
.dialog__close .icon { width: 12px; height: 12px; }
.dialog__note { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--text-secondary); }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  padding: 14px 16px;
}
.setting-row__label { font-family: var(--font-plate); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }

/* MetalToggle: recessed track + sliding circular-aluminium knob ------------ */
.toggle {
  position: relative;
  width: 56px;
  height: 30px;
  flex: none;
  border-radius: 15px;
  border: none;
  background: var(--panel-inset);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(246, 242, 232, 0.30);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.toggle:focus-visible { outline: 2px solid rgba(246, 242, 232, 0.35); outline-offset: 3px; }
.toggle .lamp {
  position: absolute;
  left: 11px; top: 50%;
  margin-top: -3px;
  width: 6px; height: 6px;
}
.toggle .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--alu-base) var(--tex-alu-circular) center / cover no-repeat;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(246, 242, 232, 0.50);
  transform: translateX(0);
  transition: transform 110ms ease;
}
.toggle[aria-checked="true"] .knob { transform: translateX(26px); }

/* ==========================================================================
   MOTION
   ========================================================================== */
/* Gated on the `js` class set inline in <head>: if the script is blocked or
   fails to load, nothing is ever hidden — content must not depend on JS. */
.reveal { transition: opacity 640ms ease, transform 640ms cubic-bezier(0.22, 0.9, 0.3, 1); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .alu-btn, .toggle .knob, .lamp, .qa__disc .icon { transition: none; }
  dialog[open], dialog[open]::backdrop, dialog.is-closing, dialog.is-closing::backdrop { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  body { padding: 26px; }
  .case__inner { padding: 28px 26px 32px; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  /* the machine leads — copy follows it. The set is capped and centred:
     at full column width a square film frame is a 730px slab. */
  .set { order: 1; width: 100%; max-width: 560px; margin-inline: auto; }
  .hero__info { order: 2; }
  .hero__lead, .hero__support { max-width: none; }
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    grid-template-areas:
      "c  c  ms ms"
      "c  c  au db"
      "md hl pr ey"
      "md dg dg rp"
      "me cn cn ot"
      "su mo pd af";
  }
}

@media (max-width: 760px) {
  body { padding: 14px; font-size: 17px; }
  .case { padding: 12px; --case-radius: 20px; }
  .case::after { inset: 9px; border-radius: 11px; }
  .case__inner { padding: 18px 16px 22px; }

  /* the plate shrinks to its badge — a full-width slab of metal was absurd */
  .masthead { gap: 12px; padding-bottom: 18px; }
  .nameplate { padding: 9px 30px; }
  .nameplate img { height: 25px; margin: 0 8px; }
  .nameplate .brand-word { display: none; }
  .nameplate .brand-icon { display: block; }
  .nav { gap: 8px; }
  /* NAV word buttons become machined discs with glyphs (scoped to .nav —
     unscoped it also turned the sign-up submit into a giant ellipse) */
  .nav .alu-btn--word {
    width: 44px; height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .nav .alu-btn--word .nav__text { display: none; }
  .nav .alu-btn--word .nav__icon { display: block; width: 20px; height: 20px; }
  .nav__settings { width: 44px; height: 44px; }
  .nav__settings .icon { width: 20px; height: 20px; }

  .hero { gap: 18px; padding-top: 20px; }
  .hero__info { padding: 24px 20px 22px; }
  .hero__title { font-size: clamp(54px, 17vw, 76px); }
  .hero__title--long { font-size: clamp(34px, 10.5vw, 48px); }
  .hero__lead { font-size: 19px; margin-bottom: 20px; }
  .hero__support { font-size: 17px; }
  .set { padding: 14px; gap: 12px; }
  .set__screen--photo { max-width: none; }

  /* the transport stays on ONE row: smaller discs, no VOL legend */
  .deck { padding: 12px; }
  .deck__row { gap: 10px; }
  .btn-transport { width: 40px; height: 40px; }
  .btn-transport .icon { width: 18px; height: 18px; }
  .deck__divider { display: none; }
  .deck__expand { display: none; }   /* desktop / tablet only */
  .volume { gap: 8px; }
  .volume__label { display: none; }
  .volume__slot { min-width: 54px; }
  .power__collar { width: 44px; height: 44px; }
  .power__btn { width: 36px; height: 36px; }
  .power__btn .icon { width: 18px; height: 18px; }

  /* side by side these two engraved labels shred into 4-line stacks —
     give the legend its own line and drop the status beneath it */
  .signup { padding: 16px; }
  .signup__head { flex-wrap: wrap; gap: 5px 14px; margin-bottom: 12px; }
  /* the engraved legend is 24 caps long — at phone width it needs a finer
     cut, and permission to wrap on the narrowest screens */
  .signup__label { flex: 1 0 100%; font-size: 10px; letter-spacing: 1.5px; white-space: normal; }
  /* the row turns into a COLUMN here, and `flex: 1` then applies to height —
     it collapsed the field to its content box and clipped the placeholder */
  .signup__row { flex-direction: column; }
  .signup__input { flex: none; height: 52px; }
  .signup__submit { width: 100%; }
  .signup__note { font-size: 15.5px; }

  /* the settings panel comes down ~20% */
  dialog { width: min(336px, calc(100vw - 36px)); }
  .dialog__panel { padding: 19px; gap: 14px; }
  .dialog__title { font-size: 12px; letter-spacing: 4px; }
  .dialog__close { width: 29px; height: 29px; }
  .dialog__close .icon { width: 12px; height: 12px; }
  .setting-row { padding: 11px 13px; }
  .setting-row__label { font-size: 10.5px; letter-spacing: 2.5px; }
  .dialog__note { font-size: 14px; }
  .toggle { width: 46px; height: 25px; border-radius: 13px; }
  .toggle .knob { width: 19px; height: 19px; top: 3px; left: 3px; }
  .toggle[aria-checked="true"] .knob { transform: translateX(21px); }
  .toggle .lamp { left: 9px; width: 5px; height: 5px; margin-top: -2.5px; }

  .section { padding-top: 28px; }
  .section__head { padding-bottom: 16px; gap: 12px; }
  .section__title { font-size: 13px; letter-spacing: 4px; }
  .bento {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 196px;
    grid-template-areas:
      "c  c"
      "c  c"
      "ms ms"
      "au db"
      "hl rp"
      "md me"
      "md ot"
      "dg dg"
      "cn cn"
      "pr ey"
      "su mo"
      "pd af";
  }
  .tile { padding: 12px 12px 14px; gap: 6px; border-radius: 15px; }
  .tile__name { font-size: 10.5px; letter-spacing: 2px; }
  .tile__desc { font-size: 13.5px; }
  .tile__stat { font-size: 34px; }
  .tile__stat--stack { font-size: 19px; letter-spacing: 3px; }
  .qa__q { padding: 14px 15px; font-size: 18px; gap: 12px; }
  .qa__disc { width: 30px; height: 30px; }
  .qa__a { padding: 0 15px 16px; font-size: 16.5px; }
  .qa__contact { margin-top: 18px; padding: 13px 15px; }
  .qa__contact-label { font-size: 10.5px; letter-spacing: 2.5px; }
  .qa__mail { width: 100%; height: 48px; }

  .footer { padding-top: 26px; }
  .footer p { font-size: 14.5px; }

  .wheel { --card-w: 208px; --overlap: 52px; padding-bottom: 20px; }
  .wheel__card { gap: 12px; }
  .wheel__shot { border-radius: 19px; }
  .wheel__name { font-size: 11.5px; letter-spacing: 3px; }
  .wheel__desc { font-size: 14.5px; }
}
