/* Kept, version 2. Colors come straight from the brand sheet: AM Citron #DDE632 and PM Deep Purple #291933.
   One idea: a steel door that switches the page between the morning side and the night side. */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("assets/fonts/CabinetGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/BigShouldersDisplay-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* the brand sheet */
  --citron: #dde632;          /* AM */
  --citron-press: #cdd620;
  --plum: #291933;            /* PM */
  --plum-lift: #35223f;       /* plum, one step lighter, for bands */
  --plum-field: #3d2a49;
  /* neutrals taken from the product photography */
  --cream: #f8f0e7;
  --cream-band: #efe5d8;
  --bone: #f6efe9;
  --steel: #b8bab6;

  --ink: var(--plum);
  --ink-muted: #5f5169;
  --bone-muted: #cfc2d3;

  --font-text: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-clock: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-section: clamp(84px, 11vw, 152px);
  --gutter: clamp(16px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100% - 1200px) / 2));
  --nav-h: 68px;

  --radius: 6px;
  --radius-photo: 8px;
  --ease-door: cubic-bezier(0.22, 0.9, 0.24, 1);
  --theme-fade: 0.5s ease;
}

/* AM side: cream paper, citron */
:root,
:root[data-side="am"] {
  --paper: var(--cream);
  --band: var(--cream-band);
  --text: var(--plum);
  --muted: var(--ink-muted);
  --line: rgb(41 25 51 / 0.18);
  --field: var(--citron);
  --field-text: var(--plum);
  --field-line: rgb(41 25 51 / 0.26);
  --mark: var(--citron);
  --mark-text: var(--plum);
  --btn: var(--citron);
  --btn-press: var(--citron-press);
  --btn-text: var(--plum);
  --focus: var(--plum);
  color-scheme: light;
}

/* PM side: deep purple */
:root[data-side="pm"] {
  --paper: var(--plum);
  --band: var(--plum-lift);
  --text: var(--bone);
  --muted: var(--bone-muted);
  --line: rgb(246 239 233 / 0.2);
  --field: var(--plum-field);
  --field-text: var(--bone);
  --field-line: rgb(246 239 233 / 0.26);
  --mark: var(--citron);
  --mark-text: var(--plum);
  --btn: var(--citron);
  --btn-press: var(--citron-press);
  --btn-text: var(--plum);
  --focus: var(--citron);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: var(--steel) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--theme-fade), color var(--theme-fade);
}

::selection { background: var(--citron); color: var(--plum); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

h1, h2 {
  font-weight: 800;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
h1 { font-size: clamp(2.125rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.026em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.03; letter-spacing: -0.022em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; }

.num,
.log td,
.step__num,
.price__figure,
.nav__clock {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--space-4); top: -80px; z-index: 100;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--text); color: var(--paper); font-weight: 700;
}
.skip:focus { top: var(--space-4); }

/* ---------- Logo: the stamp from the brand sheet, colored by the page ---------- */
.logo__mark {
  display: block;
  width: 84px;
  height: 44px;
  background-color: currentColor;
  -webkit-mask: url("assets/logo.webp") center / contain no-repeat;
  mask: url("assets/logo.webp") center / contain no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  background-color: var(--btn); color: var(--btn-text);
  font: inherit; font-size: 1.0625rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.16s ease-out, transform 0.12s ease-out;
}
.btn:hover { background-color: var(--btn-press); }
.btn:active { transform: scale(0.97); }
.btn--small { height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn__short { display: none; }

.link-btn {
  padding: var(--space-2) 0; border: 0; background: none; color: var(--text);
  font: inherit; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  cursor: pointer;
}
.link-btn:hover { text-decoration-thickness: 3px; }

/* ---------- The door: the one control the site is built around ---------- */
.door {
  --frame: 6px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: none;
  padding: var(--frame);
  border: 0;
  border-radius: var(--radius);
  background-color: var(--steel);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 0.1));
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.28), 0 16px 28px -12px rgb(0 0 0 / 0.5);
  color: inherit; font: inherit;
  cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.door:active { cursor: grabbing; }

.door__bay {
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.01em;
  box-shadow: inset 0 9px 10px -6px rgb(0 0 0 / 0.5);
}
.door__bay--am { background: var(--citron); color: var(--plum); border-radius: 2px 0 0 2px; }
.door__bay--pm { background: var(--plum); color: var(--bone); border-radius: 0 2px 2px 0; }

.door__panel {
  position: absolute;
  top: var(--frame); bottom: var(--frame); left: var(--frame);
  width: calc(50% - var(--frame));
  border-radius: 2px;
  background: var(--steel) url("assets/door-sm.webp") center / 100% 100% no-repeat;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 3px 8px rgb(0 0 0 / 0.35);
  transform: translateX(100%); /* AM: the door rests on the right, over the PM side */
  transition: transform 0.5s var(--ease-door);
}
:root[data-side="pm"] .door__panel { transform: translateX(0); }

.door--hero { width: 224px; height: 100px; --frame: 7px; }
.door--mini { width: 78px; height: 36px; --frame: 4px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.28), 0 6px 10px -6px rgb(0 0 0 / 0.5); }
.door--mini .door__bay { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: inset 0 4px 4px -3px rgb(0 0 0 / 0.5); }
.door--mini .door__panel { background-size: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 1px 3px rgb(0 0 0 / 0.35); }

.is-dragging,
.is-dragging .door__panel { transition: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  isolation: isolate;
}
/* the bar itself fades away: the page color melts into whatever scrolls underneath, and only the logo and buttons stay */
.nav::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -34px 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 58%, transparent 100%);
  transition: background var(--theme-fade);
}
.nav__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); }
.nav__left { display: flex; align-items: center; gap: var(--space-3); }
.nav__right { display: flex; justify-content: flex-end; }
.nav__clock { font-size: 0.875rem; color: var(--muted); }
.logo { display: block; color: var(--text); border-radius: 999px; }

/* ---------- Hero: a framed picture in the middle; scrolling grows it to fill the screen ---------- */
.hero {
  --stage-h: max(480px, calc(100svh - var(--nav-h)));
  --h0: clamp(250px, 49svh, 600px);   /* the framed picture's height */
  --h1: var(--stage-h);               /* its height once it has filled the screen */
  --ft: 20px;                         /* the gap above the framed picture */
  --p: 0;                             /* scroll progress, 0 to 1, set by script.js */
  --fh: calc(var(--h0) + (var(--h1) - var(--h0)) * var(--p));
  position: relative;
}
.hero__stage { position: relative; height: var(--stage-h); overflow: clip; }
.js-hero .hero { height: calc(var(--stage-h) + 95svh); }
.js-hero .hero__stage { position: sticky; top: var(--nav-h); }

.hero__frame {
  position: absolute; z-index: 1;
  left: calc((1 - var(--p)) * var(--edge));
  right: calc((1 - var(--p)) * var(--edge));
  top: calc(var(--ft) * (1 - var(--p)));
  height: var(--fh);
  border-radius: calc(var(--radius-photo) * (1 - var(--p)));
  overflow: hidden;
  background: var(--band);
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% calc(46% + 42% * var(--p));
  transition: opacity 0.6s ease;
}
.hero__img--pm { opacity: 0; }
:root[data-side="pm"] .hero__img--pm { opacity: 1; }

/* the door switch straddles the picture's bottom edge, then settles inside it */
.hero__control {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  top: calc(var(--ft) * (1 - var(--p)) + var(--fh) - 50px - 78px * var(--p));
  display: grid; justify-items: center; gap: var(--space-3);
}
.hero__status {
  width: 26ch; min-height: 3em; font-size: 0.9375rem; line-height: 1.4; text-align: center; color: var(--muted);
  opacity: calc(1 - var(--p) * 2.5);
}

/* the words sit under the picture and fade away as it grows */
.hero__copy {
  position: absolute; z-index: 0;
  left: 50%; transform: translate(-50%, calc(var(--p) * 48px));
  top: calc(var(--ft) + var(--h0) + 148px);
  width: min(100% - 2 * var(--gutter), 70rem);
  text-align: center;
  opacity: calc(1 - var(--p) * 3);
}
.hero__copy h1 { margin-inline: auto; font-size: clamp(2.125rem, 3.9vw, 3.5rem); letter-spacing: -0.026em; }
.lede { margin: var(--space-3) auto 0; color: var(--muted); }
.hero__copy .btn { margin-top: var(--space-5); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
  row-gap: var(--space-7);
  align-items: start;
}
.split__head { grid-column: 1 / span 5; }
.split__head p { margin-top: var(--space-5); max-width: 40ch; color: var(--muted); }
.split > :last-child { grid-column: 7 / -1; }

/* The main line and the schedule */
.schedule { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.log { width: 100%; border-collapse: collapse; }
.log th,
.log td { padding: 20px 18px; border-top: 1px solid var(--line); transition: border-color var(--theme-fade); }
.log th { text-align: left; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.01em; }
.log td { text-align: right; font-size: 1rem; color: var(--muted); }
.log__face th,
.log__face td {
  border-top-color: transparent;
  background-color: var(--mark);
  color: var(--mark-text);
  transition: background-color var(--theme-fade), color var(--theme-fade);
}
.log__face th { font-weight: 800; border-radius: var(--radius) 0 0 var(--radius); box-shadow: 1px 0 0 var(--mark); }
.log__face td { font-weight: 600; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- The run: the two-minute clock ---------- */
.run { position: relative; background: var(--paper); color: var(--plum); transition: background-color var(--theme-fade); }

.stage {
  --stage-h: max(480px, calc(100svh - var(--nav-h)));
  --band-h: clamp(150px, 24svh, 210px);          /* clear strip under the clock, for words */
  --zone: calc(var(--stage-h) - var(--band-h));  /* where the clock and the bottle live */
  position: relative;
  height: var(--stage-h);
  overflow: hidden;
}
.js-run .run { height: 780svh; }
.js-run .stage { position: sticky; top: var(--nav-h); }

.field { position: absolute; inset: 0; }
.field--day { background: var(--citron); color: var(--plum); }
.field--night { background: var(--plum); color: var(--citron); clip-path: inset(0 0 100% 0); }

.clock {
  position: absolute; left: 50%; top: calc(var(--zone) / 2);
  transform: translate(-50%, -50%);
  display: flex;
  font-family: var(--font-clock); font-weight: 900;
  font-size: min(52vw, calc(var(--zone) * 1.22));
  line-height: 0.74; white-space: nowrap; user-select: none;
}
.clock .d { display: inline-block; width: 0.5em; text-align: center; }
.clock .c { display: inline-block; width: 0.22em; text-align: center; }

.bottles { position: absolute; inset: 0; pointer-events: none; }
.bottle {
  position: absolute; left: 50%; top: calc(var(--zone) / 2 + 1.5svh);
  height: min(56svh, calc(var(--zone) * 0.88)); width: auto; max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 26px rgb(20 8 30 / 0.34));
  will-change: transform;
}
/* resting frame (also what shows with no script): the four lined up on the right */
.bottle[data-bottle="1"] { transform: translate(calc(-50% + 3vw), -42%) scale(0.62); }
.bottle[data-bottle="2"] { transform: translate(calc(-50% + 15vw), -42%) scale(0.62); }
.bottle[data-bottle="3"] { transform: translate(calc(-50% + 27vw), -42%) scale(0.62); }
.bottle[data-bottle="4"] { transform: translate(calc(-50% + 39vw), -42%) scale(0.62); }

.hud { position: absolute; inset: 0; margin-inline: auto; pointer-events: none; }
.cap {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4.5svh, 44px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0s 0.22s;
}
.cap.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.stage.is-night .cap { color: var(--bone); }

.cap h2,
.cap h3 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.cap--intro p,
.cap--step p:last-child { margin-top: var(--space-2); font-size: 1.125rem; font-weight: 500; }
.cap--step { padding-right: 15rem; }
.cap__num { margin-bottom: var(--space-2); font-family: var(--font-num); font-size: 1rem; font-weight: 500; line-height: 1; }

.ticks {
  position: absolute; right: 0; bottom: clamp(20px, 4.5svh, 44px);
  display: flex; gap: var(--space-4);
  font-family: var(--font-num); font-weight: 500; font-size: 1rem; line-height: 1;
  opacity: 0; transition: opacity 0.2s ease-out;
}
.ticks li { opacity: 0.32; padding-top: var(--space-2); border-top: 3px solid currentColor; min-width: 2.2em; transition: opacity 0.2s ease-out; }
.ticks li.is-on { opacity: 1; }
.stage.is-night .ticks { color: var(--citron); }
.stage.has-step .ticks { opacity: 1; }

/* the plain list of steps: shown only when the clock cannot run */
.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); padding-block: var(--space-8); }
.plain__num { font-family: var(--font-num); font-size: 1rem; }
.plain h3 { margin-top: var(--space-2); }
.js-run .plain { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- One door, two sides ---------- */
.bottles-sec { background-color: var(--band); transition: background-color var(--theme-fade); }
.bottles__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-6); align-items: end; margin-bottom: var(--space-7);
}
.bottles__head p { color: var(--muted); max-width: 36ch; justify-self: end; }

.bays {
  --frame: 9px;
  position: relative;
  padding: var(--frame);
  border-radius: 10px;
  background-color: var(--steel);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0) 30%, rgb(0 0 0 / 0.1));
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.25), 0 40px 60px -40px rgb(0 0 0 / 0.55);
  overflow: hidden;
}
.bays img { width: 100%; border-radius: 3px; }
.bays__door {
  position: absolute;
  top: var(--frame); bottom: var(--frame); left: var(--frame);
  width: calc(50% - var(--frame));
  padding: 0; border: 0; border-radius: 3px;
  background: var(--steel) url("assets/door-large.webp") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.22), 0 0 34px rgb(0 0 0 / 0.4);
  cursor: grab; touch-action: pan-y;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-door);
}
.bays__door:active { cursor: grabbing; }
.bays__door:focus-visible { outline-offset: -8px; }
:root[data-side="pm"] .bays__door { transform: translateX(0); }

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-6);
  padding-inline: calc(4.33% + 9px); /* each step sits under its bottle */
  text-align: center;
}
.step { padding-inline: var(--space-3); transition: opacity 0.5s ease; }
.step__num { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); }
.step h3 { margin-top: var(--space-2); }
.step p { margin-top: var(--space-1); font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
:root[data-side="am"] .step--pm,
:root[data-side="pm"] .step--am { opacity: 0.42; }

.bottles-sec .link-btn { display: block; margin: var(--space-7) auto 0; }

/* ---------- The cabinet ---------- */
.cabinet__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.cabinet__main img { width: 100%; border-radius: var(--radius-photo); }
.cabinet__copy > p { margin-top: var(--space-5); color: var(--muted); max-width: 40ch; }
.spec { margin-top: var(--space-6); }
.spec > div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4);
  padding-block: 14px; border-top: 1px solid var(--line);
  transition: border-color var(--theme-fade);
}
.spec dt { font-size: 0.9375rem; color: var(--muted); padding-top: 2px; }
.spec dd { font-weight: 700; }

/* ---------- Refills: the one full color field ---------- */
.refills { background-color: var(--field); color: var(--field-text); transition: background-color var(--theme-fade), color var(--theme-fade); }
.refills .split__head p { color: inherit; }
.refills :focus-visible { outline-color: var(--field-text); }
.price {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5);
  padding-block: var(--space-5); border-top: 1px solid var(--field-line);
}
.price:first-child { padding-top: 0; border-top: 0; }
.price h3 { font-size: 1.5rem; }
.price p { margin-top: var(--space-1); }
.price__figure { font-size: clamp(3rem, 6.4vw, 5rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; }
.note { padding-top: var(--space-4); border-top: 1px solid var(--field-line); font-size: 0.9375rem; }

/* ---------- Troubleshooting ---------- */
.fixes > div {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5);
  padding-block: 22px; border-top: 1px solid var(--line);
  transition: border-color var(--theme-fade);
}
.fixes > div:last-child { border-bottom: 1px solid var(--line); }
.fixes dt { font-weight: 800; }
.fixes dd { color: var(--muted); }

/* ---------- The list ---------- */
.list { padding-top: 0; }
.list__inner { text-align: center; }
.list__inner > p { margin-top: var(--space-4); color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.signup input {
  width: min(100%, 340px); height: 52px; padding: 0 18px;
  border: 1.5px solid var(--text); border-radius: var(--radius);
  background: transparent; color: var(--text); font: inherit; caret-color: var(--text);
  transition: border-color var(--theme-fade), color var(--theme-fade);
}
.signup input::placeholder { color: var(--muted); opacity: 1; }
.signup__status { flex-basis: 100%; min-height: 1.5em; font-size: 0.9375rem; color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); padding-block: var(--space-6);
  font-size: 0.9375rem; color: var(--muted);
  transition: border-color var(--theme-fade);
}
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.footer__logo { width: 72px; height: 38px; color: var(--text); }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__head,
  .split > :last-child { grid-column: 1 / -1; }
  .bottles__head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-4); }
  .bottles__head p { justify-self: start; }
  .cabinet__grid { grid-template-columns: minmax(0, 1fr); }

  /* tablet and phone hero: picture, switch and words in normal flow (no gaps); the picture only widens to the edges and never zooms in past its own shape */
  .hero { --h0: 52vw; --h1: 66vw; --ft: 16px; }
  .js-hero .hero { height: auto; }
  .hero__stage, .js-hero .hero__stage { position: relative; top: auto; height: auto; overflow: visible; padding-top: calc(var(--ft) * (1 - var(--p))); }
  .hero__frame { position: relative; left: auto; right: auto; top: auto; margin-inline: calc(var(--gutter) * (1 - var(--p))); height: var(--fh); }
  .hero__img { object-position: 50% 58%; }
  .hero__control { position: relative; left: auto; top: auto; transform: none; margin: -50px auto 0; width: max-content; }
  .hero__status { opacity: 1; }
  .hero__copy { position: static; transform: none; width: auto; opacity: 1; padding: var(--space-5) var(--gutter) var(--space-3); }
  :root { --space-section: 64px; }
  .schedule { padding-top: 40px; padding-bottom: 56px; }

  /* the clock on a tablet or phone: clock on top, one bottle under it, words at the bottom */
  .stage { --band-h: clamp(190px, 30svh, 250px); }
  .clock { top: calc(var(--zone) * 0.32); font-size: min(56vw, calc(var(--zone) * 0.9)); }
  .bottle { top: calc(var(--zone) * 0.6); height: min(40svh, calc(var(--zone) * 0.74)); }
  .bottle[data-bottle="1"] { transform: translate(calc(-50% - 33vw), -50%) scale(0.52); }
  .bottle[data-bottle="2"] { transform: translate(calc(-50% - 11vw), -50%) scale(0.52); }
  .bottle[data-bottle="3"] { transform: translate(calc(-50% + 11vw), -50%) scale(0.52); }
  .bottle[data-bottle="4"] { transform: translate(calc(-50% + 33vw), -50%) scale(0.52); }
  .cap { bottom: 20px; }
  .cap--step { padding-right: 0; }
  .cap h2, .cap h3 { font-size: clamp(1.875rem, 8.6vw, 2.5rem); }
  .cap--intro p, .cap--step p:last-child { font-size: 1rem; }
  .ticks { bottom: auto; top: 14px; font-size: 0.9375rem; gap: var(--space-3); }
}

@media (max-width: 640px) {
  .hero { --h0: 64vw; --h1: 78vw; --ft: 14px; }
  .hero__copy h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); max-width: 14ch; }
  .lede { max-width: 30ch; }
  .hero__control { margin-top: -42px; }
  .hero__control .door { width: 190px; height: 84px; --frame: 6px; }
  .hero__control .door__bay { font-size: 1.25rem; }
  body { font-size: 1.0625rem; }
  :root { --nav-h: 60px; }
  .nav__clock { display: none; }
  .logo__mark { width: 72px; height: 38px; }
  .btn--small { padding: 0 14px; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .log th, .log td { padding: 18px 12px; }
  .log th { white-space: nowrap; }
  .log td { font-size: 0.8125rem; }
  .bays { --frame: 6px; border-radius: 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); padding-inline: 0; text-align: left; }
  .step { padding-inline: 0 var(--space-3); }
  .fixes > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .signup .btn { width: min(100%, 340px); }
  .footer__row { flex-direction: column; align-items: flex-start; }

}

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