/* Toastie — demo site.
   Rules borrowed from the swity site: every section is one screen tall, one idea
   per screen, almost no copy. Louder than swity: huge chunky type and flat
   enamel colour, the app's own palette (App/Support/Palette.swift).
   Section-to-section movement on desktop is script.js's eased pager, not CSS
   snapping. */

:root {
  --red: #D6291F;          /* Kitchen.enamel */
  --red-light: #EF5240;    /* Kitchen.enamelLight */
  --red-deep: #951410;     /* Kitchen.enamelDeep */
  --red-ink: #BF221A;      /* Kitchen.redInk: red that carries words on paper */
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --ink: #27444F;          /* the app's ink */
  --ink-2: #4E6770;
  --pink: #FDCAD0;         /* ServedScene.wallLit */
  --pink-deep: #E29EA9;    /* ServedScene.wallShade */
  --blue: #AEDEF0;         /* ServedScene.tableFront */
  --blue-deep: #A3C6DA;    /* ServedScene.tableBack */
  --plate: #15171B;        /* Kitchen.plateBase */
  --heat: #FF6A1E;         /* Kitchen.plateHeat */
  --ti: #2B2E33;           /* device titanium */

  /* Jost is the free cut closest to Futura, which the app uses for its legends. */
  --display: "Jost", Futura, "Trebuchet MS", system-ui, sans-serif;
  --sans: "Jost", Futura, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--red); color: var(--cream);
  font-family: var(--sans); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* Keyboard focus: a clear ring, never on mouse clicks. */
:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.how :focus-visible, .legal main :focus-visible, .menu :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
figure { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

.display {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.88; margin: 0; text-wrap: balance;
}

.wordmark { display: inline-block; line-height: 0; }
.wordmark img { height: 100%; width: auto; }

/* ------------------------------------------------------------------ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center;
  padding: 16px var(--gutter);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.nav { justify-content: space-between; }
.nav .wordmark { height: 36px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-links a:not(.social):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-links .social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); transition: background .2s; }
.nav-links .social:hover { background: rgba(255,255,255,.26); }
.nav-links .social svg { width: 21px; height: 21px; }
.nav-links { gap: 10px; }
/* Press and the email, left of the social buttons, on tablets and desktops only (Tom, 23 Oct). */
.nav-links .nav-text { white-space: nowrap; }
.nav-links .nav-text + .nav-text { margin-left: 18px; }   /* Press, the email, then the buttons: more room between (Tom, 23 Oct) */
.nav-links .nav-text + .social { margin-left: 14px; }
@media (max-width: 640px) { .nav-links .nav-text { display: none; } }
.nav.solid { background: var(--red); background: color-mix(in srgb, var(--red) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
a.pill { transition: transform .2s var(--pop); }
a.pill:hover { transform: translateY(-2px) rotate(-1deg); }
.pill svg { width: 20px; height: 20px; }
.pill.red { background: var(--red); box-shadow: 0 5px 0 var(--red-deep); }
/* The "next section" links: plain words and a small arrow that nudges down. */
.next {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.next svg { width: 18px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }
.next:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.next-light { color: #fff; }
.next-red { color: var(--red); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero > .next { position: absolute; left: 50%; bottom: max(44px, 5svh); translate: -50% 0; z-index: 3; }

/* ------------------------------------------------------------------ 1 · HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; align-content: center;
  padding: 110px var(--gutter) 110px; gap: 3vw;
  background:
    radial-gradient(60vw 60vw at 75% 50%, var(--red-light) 0%, transparent 60%),
    var(--red);
}
.hero .kicker {
  font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.45vw, 26px);
  letter-spacing: -0.02em; margin: 0 0 10px; color: color-mix(in srgb, var(--cream) 90%, var(--red));
}
.hero h1 { font-size: clamp(58px, 6.6vw, 140px); color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--blue); }   /* the table's blue (Tom, 1 Oct) */
.hero .kicker-after { margin: clamp(14px, 2svh, 22px) 0 0; font-size: clamp(14px, 1.05vw, 19px); font-weight: 600; }
/* Apple's own badge, white and unaltered (Tom, 10 Oct). Across: in the copy's
   column, its foot level with the picker's, so it sits beside the dots and
   the device's name (both about 50 px tall). Upright it moves under the
   picker; see below. Apple asks for clear space round it. */
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-art { grid-column: 2; grid-row: 1; }
/* Google Play's badge beside it since Android shipped (Tom, 24 Nov): Google's own black artwork, cropped to its edge
   and as tall as Apple's, as Google's rules ask. The pair sits where Apple's badge alone did. */
.store-badges { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { line-height: 0; border-radius: 9px; transition: transform .15s var(--ease); }
.store-badge img { width: auto; height: 50px; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: translateY(1px); }

.hero-art { position: relative; align-self: center; padding-bottom: 96px; }
.devices { position: relative; aspect-ratio: 1.35; }

/* The canvas bleeds past its box so a turning device is never clipped; the
   shadow under it is CSS, which has no edge to be cut off at. */
#deviceCanvas { position: absolute; inset: -6% -8%; width: 116%; height: 112%; display: block; }
.devices::before {
  content: ""; position: absolute; left: 12%; right: 6%; top: 18%; bottom: 0;
  background: radial-gradient(closest-side, rgba(70,0,0,.32), transparent);
  filter: blur(18px); transform: translate(2%, 6%); pointer-events: none;
}
.duo-video { position: absolute; display: block; pointer-events: none; visibility: hidden; }
.duo-video.on { visibility: visible; }
.no-webgl .devices { background: url(assets/screens/duo-result.avif?v=1006a) center / contain no-repeat; }

.sticker {
  position: absolute; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 14px 14px rgba(80,0,0,.35));
  transform: rotate(var(--r, 0deg));
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.picker { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.picker .dots { display: flex; gap: 14px; }
.picker .dots button {
  position: relative; width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--cream) 40%, transparent);
  transition: background .25s, transform .3s var(--pop);
}
.picker .dots button::after { content: ""; position: absolute; inset: -10px; } /* a thumb-sized target */
.picker .dots button[aria-checked="true"] { background: var(--cream); transform: scale(1.3); }
.picker-label { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.picker-label span { opacity: .7; font-weight: 600; margin-left: 6px; }

/* Phones and tablets: one column, and the whole hero, link included, fits
   one screen. Tall phones get the room; short ones scroll a little. */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; align-content: center; padding: 84px var(--gutter) 76px; gap: 14px; }
  .hero .kicker { font-size: clamp(15px, 3.8vw, 19px); margin-bottom: 6px; }
  .hero .kicker-after { margin: 10px 0 0; font-size: clamp(13px, 3.3vw, 16px); }
  /* Upright: centred between the picker and "How it works", a quarter smaller. */
  .hero-copy, .hero-art { grid-column: auto; grid-row: auto; }
  .store-badges { grid-column: auto; grid-row: auto; align-self: auto; justify-self: center; justify-content: center; margin: 22px 0 6px; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 96px); }
  .hero-art { padding-bottom: 62px; }
  .devices { aspect-ratio: 1.5; }
  .hero > .next { bottom: 22px; }
  .nav .wordmark { height: 30px; }
}
/* Tablets upright: there is room for a much bigger device. */
@media (min-width: 600px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { padding-top: 100px; gap: 22px; }
  .hero h1 { font-size: clamp(56px, 10vw, 104px); }
  .hero-art { width: min(100%, 56svh); justify-self: center; }
  .devices { aspect-ratio: 1.4; }
  .stage { width: min(100%, 50svh); }
}

/* ------------------------------------------------------------------ 2 · HOW IT WORKS
   Three screens of scroll, one pinned screen. The step is picked from scroll
   progress in script.js and written to [data-step]; everything else is CSS. */
.how { position: relative; height: 300vh; height: 300svh; background: var(--paper); color: var(--ink); }
.how-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 90px var(--gutter) 110px; gap: 4vw;
}
.how-kicker {
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.01em;
  color: var(--red-ink); margin: 0 0 18px; display: flex; gap: 12px; align-items: center;
}
.how-kicker .dots { display: inline-flex; gap: 8px; }
.how-kicker .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E9DCD6; transition: background .3s, transform .3s var(--pop); }
.how[data-step="0"] .how-kicker .dots i:nth-child(1),
.how[data-step="1"] .how-kicker .dots i:nth-child(2),
.how[data-step="2"] .how-kicker .dots i:nth-child(3) { background: var(--red); transform: scale(1.3); }

.steps { position: relative; }
.step { position: absolute; inset: 0 auto auto 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.step:first-child { position: relative; }
.how[data-step="0"] .step:nth-child(1),
.how[data-step="1"] .step:nth-child(2),
.how[data-step="2"] .step:nth-child(3) { opacity: 1; }
.step h2 { font-size: clamp(76px, 10vw, 190px); }
.step p { font-size: clamp(20px, 1.6vw, 26px); color: var(--ink-2); white-space: nowrap; margin: 22px 0 0; font-weight: 500; line-height: 1.35; }

.how .next { position: absolute; left: 50%; bottom: max(40px, 5svh); translate: -50% 0; }
.step-nav { display: flex; gap: 12px; margin-top: clamp(24px, 4svh, 40px); }
.step-arrow {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.2);
  transition: transform .2s var(--pop), opacity .2s;
}
.step-arrow svg { width: 22px; height: 22px; }
.step-arrow:hover:not(:disabled) { transform: translateY(-2px); }
.step-arrow:disabled { opacity: .25; cursor: default; box-shadow: none; }
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) { .step-nav { margin-top: 16px; } .step-arrow { width: 44px; height: 44px; } }

.stage {
  touch-action: pan-y;
  position: relative; aspect-ratio: 1; width: min(100%, 66svh); justify-self: center;
  border-radius: clamp(28px, 3vw, 48px); overflow: hidden;
  background: var(--blue);
}
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.how[data-step="0"] .scene-build,
.how[data-step="1"] .scene-press,
.how[data-step="2"] .scene-serve { opacity: 1; }

/* Build: the 2D prep view on the blue table; each frame settles onto the one
   before it, so the fillings appear to be laid on. */
.scene-build { background: url(assets/table.jpg) 50% 50% / cover var(--blue); }
.board2d { position: absolute; inset: 7%; filter: drop-shadow(0 14px 16px rgba(30,70,100,.3)); }
.board2d img { position: absolute; inset: 0; width: 100%; }
.board2d .frame { opacity: 0; transition: opacity .5s ease; }
.how[data-step="0"] .board2d .frame { opacity: 1; transition-delay: var(--d, 0s); }

/* Press: the 3D Duo from the hero, on the game's table blue, with the same
   soft CSS shadow under it. The camera follows it in as the lid folds shut. */
.scene-press {
  background: radial-gradient(75% 75% at 50% 42%, #B9DDEA 0%, #8DBFCC 70%);
}
.scene-press::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: 30%; bottom: 8%;
  background: radial-gradient(closest-side, rgba(20,60,80,.34), transparent);
  filter: blur(16px); transform: translateY(8%); pointer-events: none;
}
#pressCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-press.no-webgl { background: url(assets/screens/duo-grill.avif?v=1006a) center / 86% auto no-repeat, #8DBFCC; }

/* Serve: the owner's room photograph (horizon at 683.5/1254, ServedScene
   .imageHorizon) and the composed plate standing on the counter, with the
   game's contact shadow reaching 15% past the plate on every side. */
/* Upright layout: horizon = plateTop + 0.087 side. Plate top 25%, side 74%, so
   the photo's wall line (0.5451 of it) is placed at 31.4% of the stage. */
.scene-serve { background: url(assets/room.jpg) 50% 93% / 160% auto; }
.served {
  position: absolute; left: 13%; width: 74%; aspect-ratio: 1; top: 25%; z-index: 1;
}
.served .shadow { position: absolute; left: -15%; top: -15%; width: 130%; max-width: none; }
/* The game's render carries its own contact shadow, so it is drawn at 125%
   of the box, the plate filling the box as before. */
.served .food { position: absolute; left: -12.5%; top: -12.5%; width: 125%; max-width: none; }
.stars { position: absolute; top: 7%; left: 0; right: 0; display: flex; justify-content: center; gap: 2%; z-index: 2; }
.stars svg { width: 10%; color: var(--red); transform: scale(0); transition: transform .45s var(--pop); filter: drop-shadow(0 3px 0 var(--red-deep)); }
.how[data-step="2"] .stars svg { transform: scale(1); transition-delay: calc(.8s + var(--i) * .12s); }

@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .how-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding: 80px var(--gutter) 90px; gap: 22px; }
  .stage { order: -1; width: min(100%, 44svh); }
  .step h2 { font-size: clamp(60px, 18vw, 110px); }
  .step p { margin-top: 12px; font-size: clamp(15px, 4.6vw, 20px); }
  .how-kicker { margin-bottom: 10px; }
  .how .next { bottom: 24px; }
}

/* ------------------------------------------------------------------ 3 · MENU + FOOTER */
.menu {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: url(assets/table.jpg) 50% 50% / cover var(--blue);
  color: var(--ink); overflow: hidden;
}
.menu-head { padding: clamp(100px, 13svh, 150px) var(--gutter) 0; text-align: center; }
.menu-head h2 { font-size: clamp(60px, 8.4vw, 160px); color: #fff; text-shadow: 0 4px 0 rgba(40,90,120,.18); }
.menu-head p { font-size: clamp(20px, 1.6vw, 26px); font-weight: 600; color: var(--ink); margin: 18px auto 0; }

.marquee { position: relative; margin: auto 0; padding: 20px 0; display: flex; overflow: hidden; }
.marquee-track { display: flex; gap: clamp(8px, 1.4vw, 24px); padding-right: clamp(8px, 1.4vw, 24px); flex-shrink: 0; animation: slide 78s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }
.dish { width: clamp(220px, 22vw, 360px); flex-shrink: 0; text-align: center; }
/* The plate fills its picture edge to edge, so a drop-shadow traced the
   picture's square edges. A round box-shadow under the circle instead: small
   and soft, only below the plate (Tom, 30 Sep). */
.dish img { width: 100%; border-radius: 50%; box-shadow: 0 12px 14px -7px rgba(40,80,110,.30); }
.dish figcaption { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.3vw, 22px); margin-top: 10px; letter-spacing: -0.01em; }

.foot {
  background: var(--red); color: var(--cream);
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
}
.foot .wordmark { height: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot nav a { text-decoration: none; font-weight: 600; font-size: 17px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot small { font-size: 14px; opacity: .7; }
.foot .credit { flex-basis: 100%; order: 3; margin: 0; font-size: 14px; opacity: .85; }

/* ------------------------------------------------------------------ phones held sideways
   Short and wide: back to two columns, with everything scaled to the height. */
@media (orientation: landscape) and (max-height: 540px) {
  .nav { padding-block: 10px; }
  .hero { grid-template-columns: 1fr 1fr; align-content: center; padding: 64px var(--gutter) 52px; gap: 3vw; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-art { grid-column: 2; grid-row: 1; }
  .store-badges { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; margin: 0; gap: 10px; }
  .store-badge img { height: 40px; }
  .hero .kicker { font-size: clamp(13px, 3svh, 16px); }
  .hero .kicker-after { margin-top: 6px; font-size: 13px; }
  .hero h1 { font-size: clamp(34px, 11svh, 64px); }
  .hero-art { width: auto; padding-bottom: 50px; }
  .devices { aspect-ratio: 1.5; }
  .picker-label { font-size: 15px; }
  .hero > .next { bottom: 14px; font-size: 16px; }
  .how-pin { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; align-items: center; padding: 60px var(--gutter) 46px; gap: 4vw; }
  .stage { order: 0; width: min(100%, 64svh); }
  .how-kicker { margin-bottom: 6px; font-size: 16px; }
  .step .num { font-size: 18px; margin-bottom: 2px; }
  .step h2 { font-size: clamp(40px, 15svh, 80px); }
  .step p { font-size: 16px; margin-top: 8px; }
  .step-nav { margin-top: 12px; }
  .step-arrow { width: 38px; height: 38px; }
  .how .next { bottom: 12px; font-size: 16px; }
  .menu-head { padding-top: 64px; }
  .menu-head h2 { font-size: clamp(40px, 13svh, 72px); }
  .menu-head p { margin-top: 8px; font-size: 16px; }
  .dish { width: clamp(150px, 38svh, 220px); }
}

/* ------------------------------------------------------------------ reveal + motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .18s; } .d3 { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ legal pages */
.legal { background: var(--cream); color: var(--ink); min-height: 100svh; display: flex; flex-direction: column; }
.legal .nav { position: sticky; background: var(--red); }
.legal main { width: min(100% - 2 * var(--gutter), 760px); margin: 0 auto; padding: 70px 0 90px; flex: 1; }
.legal h1 { font-size: clamp(56px, 8vw, 110px); color: var(--red); }
.legal .updated { color: var(--ink-2); font-weight: 600; margin: 18px 0 40px; }
.legal .short {
  background: var(--paper); border-radius: 28px; padding: 28px 32px; margin-bottom: 48px;
  box-shadow: 0 4px 0 #EFE2DA; font-size: 20px; font-weight: 500;
}
.legal .short ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 30px; margin: 44px 0 10px; }
.legal p, .legal li { color: #34505A; }
.legal main a { color: var(--red-ink); font-weight: 600; }
/* The press page's gameplay video (10 Oct): square, on white, as recorded. */
.press-video { margin: 34px 0 10px; }
.press-video video { display: block; width: min(100%, 540px); height: auto; aspect-ratio: 1; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -14px rgba(39,68,79,.35); }
.press-video figcaption { margin-top: 12px; font-weight: 700; color: var(--ink); }
/* The Halloween Special (28 Oct): "Updates" below the Facts, one graphic and the zip. */
.legal .halloween { scroll-margin-top: 90px; }
.legal .halloween img { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 18px; margin: 18px 0 22px; }
.legal .halloween .pill { color: var(--cream); font-size: 17px; padding: 12px 22px; }
.halloween-size { margin-left: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.legal .draft { background: #FFF1B8; border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------------ phones and tablets
   (Tom, 30 Sep) The header scrolls away with the page instead of sticking to
   the top. Every section is at least one whole screen, measured with the
   browser's bars hidden (lvh), so the edge of the section before never shows
   once you are in the next one. The links at the foot of a screen stay above
   the bars while they are showing. */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .nav { position: absolute; }
  .legal .nav { position: relative; }
  .hero { min-height: 100lvh; }
  .hero > .next { bottom: calc(22px + (100lvh - 100svh)); }
  .how { height: 300lvh; }
  .how-pin { height: 100lvh; padding-top: 48px; padding-bottom: calc(90px + (100lvh - 100svh)); }
  .how .next { bottom: calc(24px + (100lvh - 100svh)); }
  .menu { min-height: 100lvh; }
  /* The title and the plates stay together (Tom, 1 Oct: less room between the
     line and the plates, and under them). The plates are a size up, and what
     the screen has left over goes three parts above the title to one below
     the plates, never between them. */
  .menu-head { padding-top: 40px; flex: 3 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
  .marquee { margin: 18px 0 0; padding: 30px 0 30px; flex: 1 0 auto; align-items: flex-start; }   /* +24 top and bottom (Tom, 1 Oct) */
  .dish { width: min(66vw, 300px); }
}
/* Phones upright (Tom, 30 Sep): the hero's copy sits just under the logo, and
   the room left over goes to the bottom, where Safari's bar is, rather than
   centring the content in the taller bars-hidden screen. */
@media (orientation: portrait) and (max-width: 599px) {
  /* (Tom, 10 Oct) More room under the logo, and no empty red under "How it
     works": the hero is as tall as what is in it, the link in the flow at
     its foot rather than pinned to the bottom of a full screen. */
  .hero { align-content: start; min-height: 0; padding-top: 104px; padding-bottom: 22px; }
  .hero > .next { position: static; translate: none; justify-self: center; margin-top: 4px; }
  .store-badge img { height: 37px; }   /* a quarter smaller on phones (Tom, 10 Oct) */
}

/* ================================================================== 22 Oct
   "As featured on" at the foot of the hero, then the reviews' videos and the
   creators' reels, right under the hero (Tom: "the sample videos section
   should go second, right after the hero section"). */

/* ------------------------------------------------------------------ 1 · HERO: its foot
   The arrow, and right under it the white "As featured on" bar, stuck to the
   bottom of the hero (Tom: "white, and sticked to the bottom of the hero
   section ... the button to scroll down should be slightly above the bar").
   Each name opens where Toastie appears. The bar and its type grew by a
   quarter on 24 Oct (Tom). */
.hero-foot { z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-foot .next { position: static; translate: none; }
.featured-bar {
  width: 100%; display: flex; align-items: center;
  padding: 10px var(--gutter);
  background: #fff; color: var(--ink); box-shadow: 0 -12px 30px -20px rgba(90, 8, 5, .45);
}
.fb-label { flex: none; margin: 0; white-space: nowrap; font-weight: 700; font-size: 16.25px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
/* The names roll like a news ticker, out from under the solid labels at either
   end (Tom, 22 Oct); the list and a copy of it slide by their own width, so
   the loop has no seam. A hover holds them still to click. */
.fb-roll {
  --fade: 28px;
  flex: 1 1 auto; min-width: 0; display: flex; overflow: hidden; margin: 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.fb-list {
  --space: clamp(30px, 3.25vw, 55px);
  flex: none; list-style: none; margin: 0; padding: 0 var(--space) 0 0; display: flex; gap: var(--space);
  line-height: 1.875;   /* a quarter taller than the body's 1.5 line */
  animation: slide var(--roll, 60s) linear infinite;
}
.fb-roll:hover .fb-list, .fb-roll:focus-within .fb-list { animation-play-state: paused; }
.fb-roll.still { overflow-x: auto; scrollbar-width: none; }
.fb-roll.still .fb-list { animation: none; }
.fb-list a {
  font-family: var(--display); font-weight: 800; font-size: clamp(15px, 1.15vw, 20px); letter-spacing: -0.02em;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .15s;
}
.fb-list a:hover, .fb-list a:focus-visible { color: var(--red-ink); }
/* Wide windows: the row keeps the width it had before the names got smaller. */
@media (min-width: 1200px) {
  .featured-bar { padding-inline: max(var(--gutter), calc((100% - min(86.5vw, 1446px)) / 2)); }
}

/* Across (desktop): the hero is a screen tall with the foot as its last row,
   and the foot sticks to the bottom of the window while any of the hero is in
   view, so it is on the first screen even when the window is short. The
   device shrinks on short windows so nothing hides behind it. */
@media (min-width: 901px) and (orientation: landscape), (min-width: 1101px) {
  /* The left column (the copy, then the App Store badge) is one block,
     centred so the space above it, under the logo, matches the space under
     the badge, above the bar (Tom, 22 Oct). Empty rows above and below
     share the room; the 19 px moves the centre from the padded box to the
     space between the logo (54 px) and the bar. */
  .hero { grid-template-rows: 1fr auto auto 1fr auto; align-content: stretch; padding-top: 96px; padding-bottom: 0; row-gap: 22px; }
  .hero-copy { grid-row: 2; align-self: end; margin-top: 19px; }
  .store-badges { grid-row: 3; align-self: start; margin-top: 21px; }
  /* As big as the column and the window allow (Tom, 28 Oct, on a real Duo:
     "far too small"): the art runs from under the logo to just above the
     foot, and the picker sits closer under it. 290 px: the logo's 96, the
     foot's 97 since the bar grew on 24 Oct, a row gap and the picker (4 Nov). */
  .hero-art { grid-row: 1 / 5; width: min(100%, calc((100svh - 290px) * 1.35)); justify-self: center; padding-bottom: 72px; }
  .hero-foot { grid-column: 1 / -1; grid-row: 5; position: sticky; bottom: 0; margin: 0 calc(-1 * var(--gutter)); }
}
/* Laptop-short windows (Tom, 4 Nov, a 13" laptop, about 1470 x 750): the
   headline also takes its size from the height, so the copy, the badge and
   the foot fit one screen (4 lines of 0.88 plus about 460 px of the rest).
   And the hero clips with clip, not hidden: hidden made it a scroll box, so
   the foot's sticky had nothing to stick to and fell under a short window.
   From 541 px up only: the Duo and phones sideways keep their own layout. */
@media (min-width: 901px) and (orientation: landscape) and (min-height: 541px), (min-width: 1101px) and (min-height: 541px) {
  .hero { overflow: clip; }
  .hero h1 { font-size: clamp(48px, min(6.6vw, calc((100svh - 460px) / 3.6)), 140px); }
}

/* Wide but short (iPhone Duo open, about 951 x 480; big iPhones sideways):
   the copy, scaled to the height, sets the hero's height, about 70% of the
   window, and the art fills its column up to that, reaching up into the
   room under the logo (Tom, 28 Oct). Wider windows wrap the headline into
   fewer lines, so they keep the rule above. */
@media (min-width: 901px) and (max-width: 1000px) and (orientation: landscape) and (max-height: 540px) {
  .hero-art { width: min(100%, calc((70svh - 56px) * 1.5)); padding-bottom: 56px; margin-top: -24px; }
}

/* Upright and on phones (the hero's own breakpoint): the foot at the very
   bottom of the hero, the label over one rolling row of names that runs the
   full width, so the bar fits the first screen. */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .hero { padding-bottom: 150px; }
  .hero-foot { position: absolute; left: 0; right: 0; bottom: 0; }
  .featured-bar { flex-direction: column; gap: 4px; padding: 7.5px 0 9px; }
  .fb-roll { align-self: stretch; margin: 0; }
  .fb-more { display: none; }
}

/* ------------------------------------------------------------------ 2 · TOASTIE IN REVIEWS
   One screen: the heading, TechRadar's line with its author beside it, and
   eight videos, four across (Tom: "the entire section with sufficient padding
   needs to fit on a screen"). The cards take their size from the window's
   height as well as its width, so both rows always fit. Each still is the
   frame where Toastie shows; the link opens the video at that moment. */
.seen, .reels {
  --gap: clamp(16px, 2.4svh, 26px);
  min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 84px var(--gutter) clamp(24px, 4svh, 44px);   /* clear of the fixed nav (60 px) */
  background: var(--cream); color: var(--ink); text-align: center;
}
.seen { --cols: 4; justify-content: flex-start; }
/* The videos and the reels are one stretch that scrolls freely (Tom, 24 Oct):
   the reels follow straight on, with no screen of their own. */
.reels { min-height: 0; padding-top: clamp(40px, 7svh, 80px); }
.seen :focus-visible, .reels :focus-visible { outline-color: var(--ink); }
.seen h2, .reels h2 { font-size: clamp(28px, 3.6vw, 67px); color: var(--red); }

.seen-quote { margin: clamp(10px, 1.6svh, 16px) 0 0; display: grid; }
/* The quotes take turns in one place (Tom, 25 Oct): each fades out and the
   next fades in; they share one grid cell, so the heading never jumps. */
.seen-quote p { grid-area: 1 / 1; align-self: center; margin: 0; font-weight: 600; font-size: clamp(15.6px, 1.15vw, 18px); line-height: 1.35;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.seen-quote p.on { opacity: 1; visibility: visible; transition: opacity .35s ease .1s, visibility 0s; }
.seen-quote cite { margin-left: 8px; font-style: normal; font-weight: 700; white-space: nowrap; }
.seen-quote cite a { color: var(--red-ink); text-decoration: none; }
.seen-quote cite a:hover { text-decoration: underline; text-underline-offset: 3px; }

.seen-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);   /* four across; a short last row sits in the middle */
  width: 100%; margin-top: clamp(18px, 3svh, 34px); text-align: left;
}
/* The full width, four across, on every laptop (Tom, 8 Nov). The cards share the grid's own width,
   not 100vw: that counts a visible scroll bar, so the fourth card wrapped (a hair under, so rounding never does). */
.seen-grid .clip { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) - .1px); }
.clip { min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000;
  box-shadow: 0 14px 30px -16px rgba(39, 68, 79, .5);
}
.thumb img, .reel-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.clip:hover .thumb img, .reel-poster:hover img { transform: scale(1.04); }
/* in the corner, opposite the time, so it never covers Toastie */
.play {
  position: absolute; left: 10px; bottom: 10px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--red); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .2s var(--pop);
}
.play::after {
  content: ""; position: absolute; left: 16px; top: 12px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff;
}
.clip:hover .play, .reel-poster:hover .play { transform: scale(1.08); }
.at {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, .74); color: #fff; font-weight: 700; font-size: 12px; line-height: 1.3;
}
.who { margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.who small { margin-left: 5px; font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.said { font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }

/* ------------------------------------------------------------------ 3 · ON INSTAGRAM
   The next screen: six reels at a time, sized to the window like the videos;
   the rest scroll sideways, with arrows (Tom, 23 Oct: nine reels). */
/* (8 Nov) The reels share the row's own width (cqw), not 100vw: that counts a visible scroll bar, which cut off the sixth. */
.reels { --rwmax: min(330px, max(calc((100svh - 282px) * .5625), 170px)); --rw: calc((100cqw - 5 * var(--gap)) / 6); }
.reel-wrap { container-type: inline-size; position: relative; width: min(100%, calc(6 * var(--rwmax) + 5 * var(--gap))); margin-top: clamp(18px, 3svh, 34px); }
.reel-row { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; text-align: left; padding-bottom: 4px; }
.reel-row::-webkit-scrollbar { display: none; }
.reel-card { min-width: 0; margin: 0; display: flex; flex-direction: column; flex: 0 0 var(--rw); scroll-snap-align: start; }
.reel-nav {
  position: absolute; top: calc(var(--rw) * 8 / 9); translate: 0 -50%; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .2s var(--pop);
}
.reel-nav:hover { transform: scale(1.08); }
.reel-nav svg { width: 22px; height: 22px; }
.reel-nav.prev { left: -22px; }
.reel-nav.next { right: -22px; }
.reel-nav[hidden] { display: none; }
@media (min-width: 761px) { .reel-card .who small { display: block; margin: 2px 0 0; } }   /* six across: the count under the name */
.reel-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: pointer;
  overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 14px 30px -16px rgba(39, 68, 79, .5);
}
.reel-frame { width: 100%; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -16px rgba(39, 68, 79, .5); }

/* On to the next screen: "See more", then "How it works". */
.seen-next { margin-top: clamp(14px, 2.6svh, 30px); }

/* Tablets and the Duo's inner screen (Tom, 23 Oct): the full width like a
   desktop, four videos across with names only. The sections run longer than
   a screen here rather than shrink the cards. (A short screen used to squeeze
   the cards to a sliver on the Duo.) The reels are one swiped row (Tom,
   26 Oct): three across, the fourth peeking in at the edge. */
@media (min-width: 761px) and (max-width: 1279px) {
  .said { display: none; }
  .who small { display: block; margin: 2px 0 0; }
  .reels { --rw: calc((100cqw - 3 * var(--gap)) / 3.3); }
  .reel-wrap { width: auto; align-self: stretch; }
  .reel-nav { display: none; }
  .reel-row { margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
}

/* Wide but short windows (under 700 px tall): the same, with the reels six across. */
@media (min-width: 1280px) and (max-height: 699px) {
  .said { display: none; }
  .who small { display: block; margin: 2px 0 0; }
  .reels { --rwmax: 100vw; }
}

/* Phones: the full width, two across, names only (Tom, 22 Oct); the
   sections run longer than a screen here. */
@media (max-width: 760px) {
  .seen, .reels { --gap: 14px; padding-top: 36px; padding-bottom: 24px; }
  .seen { --cols: 2; }
  /* the reels one at a time, swiped sideways, the ones either side peeking in (Tom, 26 Oct) */
  .reels { --rw: min(calc(100vw - 124px), calc((100svh - 250px) * .5625)); }
  .seen h2, .reels h2 { font-size: 9.4vw; text-wrap: wrap; }
  .seen-quote p { font-size: 5.16vw; }
  .reel-wrap { width: auto; align-self: stretch; }
  .reel-nav { display: none; }
  .reel-row {
    display: flex; margin-inline: calc(-1 * var(--gutter)); padding: 0 calc((100vw - var(--rw)) / 2) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .reel-row::-webkit-scrollbar { display: none; }
  .reel-card { flex: 0 0 var(--rw); scroll-snap-align: center; }
  .said { display: none; }
  .who { margin-top: 6px; font-size: 16px; line-height: 1.15; }
  .who small { display: none; }
  .play { left: 6px; bottom: 6px; width: 30px; height: 30px; }
  .play::after { left: 12px; top: 9px; border-width: 6px 0 6px 10px; }
  .at { right: 6px; bottom: 6px; font-size: 11px; }
}

/* ------------------------------------------------------------------ 4 · WAYS TO PLAY + FOOTER (TOST-303, Tom 23-24 Nov)
   Replaces "Thirteen on the menu" (its .menu styles above are no longer used). "Play it your way." and a few lines
   on the left; four large Duos on the right, 2 x 2, each with white words under it, inset 10% from the device's edges.
   Order: Chef's Choice, The menus, Toast-Off, Make Your Own. Phones: the words, then a swipe row of Duos with dots. */
.modes {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(70vw 55vw at 62% 50%, color-mix(in srgb, var(--red-light) 70%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(110, 14, 10, .45) 100%),
    var(--red);
  color: #fff; overflow: hidden;
}
.mode img { display: block; width: 100%; height: auto; aspect-ratio: 1092 / 786; filter: drop-shadow(0 18px 22px rgba(70, 5, 3, .45)); }
.mode h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(22px, 1.8vw, 32px); line-height: 1.05; margin: clamp(14px, 1.8svh, 22px) 0 0; color: #fff; }
.mode h3, .mode p { padding-inline: 10%; }   /* the words a little narrower than the Duo (Tom, 24 Nov) */
.mode p { margin: 6px 0 0; font-size: clamp(15px, 1.1vw, 19px); line-height: 1.3; font-weight: 500; color: rgba(255, 255, 255, .86); }
.modes-intro h2 { font-size: clamp(54px, 5.4vw, 104px); line-height: .95; color: #fff; margin: 0; text-shadow: 0 4px 0 rgba(110, 14, 10, .25); }
.modes-intro p { margin: clamp(18px, 2.6svh, 30px) 0 0; font-size: clamp(18px, 1.35vw, 23px); line-height: 1.45; font-weight: 600; color: rgba(255, 255, 255, .9); max-width: 30ch; }
.modes .foot { background: transparent; border-top: 1px solid rgba(255, 255, 255, .14); }
:lang(ja) .modes { word-break: auto-phrase; }
/* Chef's Choice and Toast-Off are not on Android yet: an asterisk on their names, and the note at the foot of the
   words' column (Tom, 24 Nov). The asterisk is drawn here so the translated names stay as they are. */
.mode.soon h3::after { content: "*"; position: relative; top: -.35em; margin-left: .06em; font-size: .7em; }
.modes-note { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 500; color: rgba(255, 255, 255, .72); }
.modes-note::before { content: "* "; }   /* Japanese lines break between phrases, not inside a word (Chrome; others ignore it) */

/* Desktop: the words on the left, the four Duos on the right, across the page's full width, gutter to gutter
   (Tom, 24 Nov: no wide margins), and the whole section, foot included, on one screen (Tom, 24 Nov). A Duo is as
   wide as the screen's height allows: two rows of device + words in what the nav, the paddings and the foot leave
   (--words is the budget for a title and a caption). Narrow windows: as wide as the column allows. The words and
   the Duos stay a set distance apart and sit in the middle together; the room left over goes to the sides
   (Tom, 24 Nov: no wide gap between them). The words under a
   Duo grow with the screen's height and shrink with the Duo, never under 13 px (titles 15). */
@media (min-width: 901px) and (orientation: landscape) and (min-height: 541px), (min-width: 1101px) and (min-height: 541px) {
  .modes-grid {
    --left: clamp(300px, 27vw, 460px); --cgap: clamp(56px, 5.5vw, 112px); --gap: clamp(24px, 2.4vw, 44px); --rgap: clamp(18px, 3svh, 40px);
    --pt: clamp(86px, 10.5svh, 104px); --pb: clamp(16px, 2.4svh, 32px); --foot: 72px;
    --h3: clamp(19px, 2.9svh, 32px); --h3m: clamp(10px, 1.6svh, 22px); --p: clamp(13px, 1.75svh, 19px);
    --words: calc(var(--h3m) + 1.1 * var(--h3) + 6px + var(--lines) * 1.3 * var(--p));
    --tw: calc((100svh - var(--pt) - var(--pb) - var(--foot) - var(--rgap) - 2 * var(--words)) / 2 * 1092 / 786);
    flex: 1 0 auto; width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: var(--pt) 0 var(--pb);
    display: grid; grid-template-columns: var(--left) minmax(0, calc(2 * var(--tw) + var(--gap))); justify-content: center;
    grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--cgap); align-items: center;
  }
  .modes-intro { grid-column: 1; grid-row: 1; }
  .modes-row { grid-column: 2; grid-row: 1 / span 2; }
  .modes-note { grid-column: 1; grid-row: 2; align-self: end; }
  .modes-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--rgap);
  }
  .mode { container-type: inline-size; }
  .mode h3 { font-size: var(--h3); font-size: max(15px, min(var(--h3), 6.2cqi)); margin-top: var(--h3m); }
  .mode p { font-size: var(--p); font-size: max(13px, min(var(--p), 3.9cqi)); min-height: calc(var(--lines) * 1.3em); }
  .dots-row { display: none; }
  /* Caption lines to make room for: English and Chinese fit two, Japanese two and a half, the others three. On a short screen the
     words are larger next to the smaller Duo, so one more (Japanese and the three-line ones from 800 px down). */
  .modes-grid { --lines: 2; }
  :lang(pl) .modes-grid, :lang(de) .modes-grid, :lang(fr) .modes-grid, :lang(es) .modes-grid { --lines: 3; }
  :lang(ja) .modes-grid { --lines: 2.5; }   /* two of its captions take three lines at some widths */
}
@media (min-width: 901px) and (orientation: landscape) and (min-height: 541px) and (max-height: 799px), (min-width: 1101px) and (min-height: 541px) and (max-height: 799px) {
  :lang(ja) .modes-grid { --lines: 4; }
  :lang(pl) .modes-grid, :lang(de) .modes-grid, :lang(fr) .modes-grid, :lang(es) .modes-grid { --lines: 4; }
}
/* Under 700 px tall two rows leave the Duos too small for their words, so the four stand in one row. */
@media (min-width: 901px) and (orientation: landscape) and (min-height: 541px) and (max-height: 699px), (min-width: 1101px) and (min-height: 541px) and (max-height: 699px) {
  .modes-grid { grid-template-columns: var(--left) minmax(0, 1fr); }
  .modes-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mode p { min-height: 0; }
}

/* Phones, upright tablets and phones on their side: the words, then a swipe row. */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 540px) {
  .modes { min-height: 100lvh; }
  .modes-grid { padding: 72px 0 calc(28px + (100lvh - 100svh)); display: flex; flex-direction: column; justify-content: center; flex: 1 0 auto; }
  .modes-intro { padding: 0 var(--gutter); }
  .modes-intro h2 { font-size: clamp(48px, 13vw, 84px); }
  .modes-intro p { font-size: 17px; margin-top: 14px; max-width: 34ch; }
  .modes-row {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 30px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .modes-row::-webkit-scrollbar { display: none; }
  .mode { flex: 0 0 min(84vw, 440px); scroll-snap-align: start; }
  .dots-row { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .dots-row i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
  .dots-row i.on { background: #fff; }
  .modes-note { padding: 0 var(--gutter); margin-top: 14px; text-align: center; font-size: 12px; }
}
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1100px) { .mode { flex-basis: 44vw; } }
@media (orientation: landscape) and (max-height: 540px) {
  .modes-grid { padding-top: 56px; }
  .modes-intro h2 { font-size: clamp(36px, 11svh, 60px); }
  .modes-intro p { display: none; }
  .modes-row { padding-top: 14px; }
  .mode { flex-basis: 52svh; flex-basis: calc(52svh * 1092 / 786); }
}

/* ------------------------------------------------------------------ language picker (Tom, 1 Nov: top right, after the socials) */
.lang { position: relative; margin-left: 4px; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: 20px;
  background: rgba(255,255,255,.14); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .03em;
  cursor: pointer; user-select: none; -webkit-user-select: none; transition: background .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(255,255,255,.26); }
.lang summary svg { width: 19px; height: 19px; }
.lang summary .chev { width: 11px; height: 11px; margin-left: -1px; transition: transform .2s var(--ease); }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 176px;
  background: var(--paper); border-radius: 18px; box-shadow: 0 14px 36px rgba(39,68,79,.24); }
.nav-links .lang a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px;
  color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; }
.nav-links .lang a:hover { text-decoration: none; background: rgba(214,41,31,.08); }
.nav-links .lang a[aria-current] { color: var(--red-ink); font-weight: 700; }
.nav-links .lang a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
:lang(ja) .display, :lang(zh) .display { letter-spacing: 0; }
/* Chinese breaks between any two characters: the headline breaks only at its <wbr>s (世界上 / 最贵的 / 烤面包机。), a size down so the longest fits. */
:lang(zh) .hero h1 { word-break: keep-all; zoom: .8; }
/* Longer page titles ("Confidentialité.") shrink to fit a phone instead of running off it. */
html:not([lang="en"]) .legal h1 { font-size: min(clamp(56px, 8vw, 110px), calc((100vw - 40px) / 7.2)); }
