/*
 * Practeat, the public site.
 *
 * One page, read top to bottom on a phone between services. The paper and the
 * ink are the logo's own two colours; brass appears only as hairlines and on
 * the one large numeral, never as body text (it fails contrast on the paper).
 * The product's screens are blue-grey, so each sits in a dark bezel: a tablet
 * on a table, and the page's palette is left alone.
 */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f3ec;
  --paper-2: #efe9df;
  --ink: #1a1816;
  --ink-2: #4d463f;
  --night: #131110;
  --night-2: #1f1c1a;
  --on-night: #f3ede2;
  --on-night-2: #c9c0b3;
  --brass: #a9864b;
  /* brass where it is read rather than looked at (a numeral, a plus sign): dark enough for 3:1 on the sand too */
  --brass-ink: #96743d;
  --brass-on-night: #cdb07a;
  --rule: #d9d1c4;
  --ticket: #fffdf6;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 10;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Out of sight by its own height, whatever that is: with the text enlarged a
 * fixed distance left its lower edge showing. */
.skip { position: absolute; inset-inline-start: 12px; top: 12px; transform: translateY(calc(-100% - 24px)); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { transform: none; }

/* ── top bar ─────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }
/* The words stand as far apart as before; the room between them now belongs to
 * the links, so the shortest of them ("שף") is still a finger wide on an iPad
 * held sideways. */
.top-nav { display: none; gap: 6px; margin-inline-start: auto; font-size: 0.9375rem; white-space: nowrap; }
.top-nav a { text-decoration: none; color: var(--ink-2); padding: 12px; min-width: 44px; text-align: center; transition: color 0.2s; }
.top-nav a:hover { color: var(--ink); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 1100px) {
  .top-nav { display: flex; }
  .top-nav + .btn { margin-inline-start: 0; }
  .brand img { height: 52px; }
}

/* The phone's menu. Under 900px the row of links has no room, and a page this
 * long with no way to jump is a page read only to its first screen. A native
 * <details>, so it opens without the script; the script only closes it again
 * once a link has been followed. */
.menu { position: static; flex: none; }
.menu > summary { list-style: none; cursor: pointer; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span, .menu > summary span::before, .menu > summary span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu > summary span { position: relative; }
.menu > summary span::before, .menu > summary span::after { content: ''; position: absolute; inset-inline-start: 0; }
.menu > summary span::before { top: -6px; }
.menu > summary span::after { top: 6px; }
.menu[open] > summary span { background: transparent; }
.menu[open] > summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] > summary span::after { transform: translateY(-6px) rotate(-45deg); }
.menu nav { position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; display: grid; box-shadow: 0 24px 40px -28px rgba(26, 24, 22, 0.5); }
.menu nav a { display: flex; align-items: center; min-height: 54px; font-size: 1.1875rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu nav a:last-child { border-bottom: 0; }
.menu nav { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
/* the two groups in the phone's menu open in place, each with the links of its menu above */
.menu-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-size: 1.1875rem; border-bottom: 1px solid var(--rule); }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary::after, .drop > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--ease); flex: none; }
.menu-group[open] > summary::after, .drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-group > div { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 8px 0 16px; border-bottom: 1px solid var(--rule); }
.menu .menu-group a { min-height: 44px; font-size: 1.0625rem; border-bottom: 0; color: var(--ink-2); }
/* the desktop menus: one wide panel under the header, four short columns with a heading each */
.drop { position: static; }
.drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 44px; color: var(--ink-2); transition: color 0.2s; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary:hover, .drop[open] > summary { color: var(--ink); }
.drop-panel { position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%); width: min(920px, calc(100vw - 2 * var(--gutter))); z-index: calc(var(--z-sticky) + 1); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 36px; padding: 30px 40px 32px; background: var(--paper); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 22px 22px; box-shadow: 0 30px 50px -30px rgba(26, 24, 22, 0.45); white-space: normal; }
.drop-col { display: grid; align-content: start; }
.drop-h { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--brass-ink); }
.menu .drop-h { margin: 6px 0 2px; }
.top-nav .drop-panel a { text-align: start; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 0; color: var(--ink); font-size: 0.9375rem; text-decoration: none; }
.top-nav .drop-panel a:hover { color: var(--brass-ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.soon { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--brass); color: var(--brass-ink); font-size: 0.8125rem; font-weight: 500; line-height: 1.45; }
.top { gap: 12px; }
.top .btn { padding-inline: 20px; }
.wide-only { display: none; }
@media (min-width: 420px) { .wide-only { display: inline; } .top { gap: 16px; } }
@media (min-width: 1100px) { .menu { display: none; } .top { gap: 28px; } .top .btn { padding-inline: 26px; } }

/* ── buttons and links ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: none; text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); padding-inline: 30px; min-height: 56px; font-size: 1rem; }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-paper { background: var(--on-night); color: var(--night); border-color: var(--on-night); min-height: 56px; padding-inline: 30px; font-size: 1rem; }
.btn-paper:hover { background: #fff; }
.text-link { text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--brass); padding-block: 12px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ── a product screen, in its tablet ─────────────────────────────────
 * Every screen was shot at an iPad's portrait size, so each one sits in the
 * same drawn tablet: one object repeated, which is what makes seven pictures
 * of software read as one product on one table. */
.device { margin: 0; }
.tablet img {
  width: 100%;
  border: clamp(8px, 1.4vw, 14px) solid var(--night);
  border-radius: clamp(22px, 3.4vw, 36px);
  background: #eaeef4;
  box-shadow:
    0 0 0 1px #3a3531,
    0 2px 4px rgba(26, 24, 22, 0.18),
    0 40px 70px -34px rgba(26, 24, 22, 0.55);
}
/* The newest screens were shot on an iPad held sideways (October 2026): the same
 * drawn tablet, turned. In the opening the order screen beside it is smaller and
 * hangs below its corner, so the room is not covered. */
.domain-head .device.wide { max-width: 640px; }
.hero-main.wide { width: 92%; }
.hero-main.wide ~ .hero-side { width: 28%; bottom: -4%; }
.hero-devices:has(.hero-main.wide) { padding-bottom: 12%; }

/* The same room by day and in the evening: both pictures in one frame, one
 * shown, and the switch hanging under the tablet like the app's own. Without
 * the script the evening stays and the switch is not drawn. */
.dn-stage { position: relative; display: grid; }
.dn-stage > img { grid-area: 1 / 1; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.daynight .dn-day, .daynight.is-day .dn-night { opacity: 0; visibility: hidden; }
.daynight.is-day .dn-day { opacity: 1; visibility: visible; }
.dn-switch { position: absolute; z-index: 2; left: 50%; bottom: -24px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--night); box-shadow: 0 12px 26px -12px rgba(26, 24, 22, 0.6); }
.dn-switch[hidden] { display: none; }
.dn-switch button { min-height: 44px; min-width: 64px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--on-night); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.dn-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.dn-switch :focus-visible { outline: 2px solid var(--brass-on-night); outline-offset: 2px; }
.daynight figcaption { margin-top: 44px; }
@media (prefers-reduced-motion: reduce) { .dn-stage > img, .dn-switch button { transition: none; } }
@media (forced-colors: active) { .dn-switch button[aria-pressed="true"] { background: Highlight; color: HighlightText; } }
.device figcaption, .caption, .hero-stage figcaption { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }

/* ── opening ─────────────────────────────────────────────────────────── */
.hero {
  display: grid; gap: clamp(36px, 6vw, 72px);
  padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 112px);
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.04; font-weight: 300; }
.hero h1 .line { display: block; }
.hero h1 .line:last-child { font-weight: 500; }
.lede { margin-top: 28px; max-width: 34ch; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.6; color: var(--ink-2); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-stage { margin: 0; width: 100%; max-width: 660px; justify-self: center; }
/* The order screen stands beside the map and only leans on its corner: laid
 * further in, it covers the one occupied table that shows a sum. */
.hero-devices { position: relative; padding-bottom: 7%; }
.hero-main { width: 66%; margin-inline-start: auto; }
.hero-side { position: absolute; width: 40%; inset-inline-start: 0; bottom: 0; }
.hero-side img { box-shadow: 0 0 0 1px #3a3531, 0 30px 60px -20px rgba(26, 24, 22, 0.6); }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero-stage { justify-self: end; }
}

/* ── "שף" ─────────────────────────────────────────────────────────────
 * The owner said it is the part that matters most, so it is the first thing
 * after the opening and the only place on the page with a film. Night, because
 * the film is one: a man with a tablet at 23:40. */
.chef { background: var(--night); color: var(--on-night); padding: clamp(64px, 10vw, 136px) var(--gutter); display: grid; gap: clamp(40px, 6vw, 80px); }
.chef-head { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.chef h2 { font-size: clamp(2rem, 5vw, 3.75rem); max-width: 18ch; }
.chef-intro > p { margin-top: 22px; max-width: 46ch; color: var(--on-night-2); font-size: 1.125rem; }
.asks { margin-top: 30px; display: grid; gap: 10px; justify-items: start; }
.asks li { border: 1px solid #4a443e; border-radius: 999px; padding: 9px 20px; font-size: 1rem; color: var(--on-night); }
.chef-quote { color: var(--on-night) !important; font-size: clamp(1.1875rem, 2.2vw, 1.5rem) !important; font-weight: 300; line-height: 1.5; border-top: 1px solid var(--brass-on-night); padding-top: 24px; margin-top: 34px !important; }
.film { margin: 0; width: 100%; max-width: 420px; justify-self: center; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; background: var(--paper); border-radius: 22px; border: 1px solid #4a443e; box-shadow: 0 40px 80px -30px #000; }
.film figcaption { margin-top: 14px; font-size: 0.8125rem; line-height: 1.6; color: var(--on-night-2); }
/* The host stand's film stands in a light stop, upright as the reel it was cut from. */
.film-host { max-width: 340px; }
.film-host video { aspect-ratio: auto; border-color: var(--rule); box-shadow: 0 34px 60px -30px rgba(26, 24, 22, 0.55); }
.film-host figcaption { color: var(--ink-2); }
@media (min-width: 900px) { .chef-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }

/* ── the system, subject by subject ──────────────────────────────────── */
.system { padding: clamp(56px, 9vw, 120px) var(--gutter) 0; display: grid; gap: clamp(88px, 12vw, 168px); }
.index h2, .domain h2, .fit h2, .questions h2 { font-size: clamp(1.875rem, 4.4vw, 3.25rem); }
.index ul { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.index a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: 0.9375rem; transition: border-color 0.2s, background-color 0.2s; }
.index a:hover { border-color: var(--ink); background: var(--paper-2); }

.domain { display: grid; gap: clamp(36px, 5vw, 64px); }
.domain-head { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.domain-intro { max-width: 34rem; }
.domain-intro > p { margin-top: 20px; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.65; }
.domain-head .device, .domain-head .tickets { max-width: 430px; width: 100%; justify-self: center; }
@media (min-width: 900px) {
  .domain-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .domain-flip .domain-intro { order: 2; }
}

/* two screens beside one text */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: start; width: 100%; max-width: 620px; justify-self: center; }
.duo .device { max-width: none !important; }
.duo .device:last-child { margin-top: 12%; }

/* a subject's detail, as a ledger: the name of the thing, then what it does */
.ledger { margin: 0; display: grid; }
.ledger > div { display: grid; gap: 4px 40px; padding: 20px 0; border-top: 1px solid var(--rule); }
.ledger > div:last-child { border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: 1.125rem; font-weight: 500; }
.ledger dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }
@media (min-width: 760px) { .ledger > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; } }
.ledger-night > div { border-color: #3a3531; }
.ledger-night > div:last-child { border-color: #3a3531; }
.ledger-night dd { color: var(--on-night-2); }

/* three shorter subjects side by side */
.trio { display: grid; gap: 48px clamp(32px, 5vw, 72px); }
.trio h3 { font-size: 1.5rem; font-weight: 400; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.points { margin-top: 22px; display: grid; }
.points li { padding: 13px 0; border-top: 1px solid var(--rule); }
.points li:last-child { border-bottom: 1px solid var(--rule); }

/* the kitchen ticket, drawn to the printed one's order and sizes */
.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kt {
  background: var(--ticket); color: #23201a;
  padding: 0 14px 18px; font-size: 0.8125rem; line-height: 1.5;
  box-shadow: 0 1px 0 var(--rule), 0 22px 40px -24px rgba(26, 24, 22, 0.4);
  position: relative;
}
.kt::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -7px; height: 7px;
  background: linear-gradient(135deg, var(--ticket) 3.5px, transparent 0) 0 0 / 7px 7px repeat-x,
              linear-gradient(225deg, var(--ticket) 3.5px, transparent 0) 0 0 / 7px 7px repeat-x;
}
.kt-void { margin-top: 56px; }
.kt hr { border: 0; border-top: 1px dashed currentColor; margin: 8px 0; opacity: 0.6; }
.kt-gap { height: 30px; margin: 0 -14px 10px; border-bottom: 1px dotted currentColor; display: grid; place-items: center; font-size: 0.625rem; opacity: 0.7; }
.kt-st { text-align: center; font-weight: 700; font-size: 0.9375rem; }
.kt-void .kt-st { padding-top: 8px; }
.kt-big { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin-top: 7px; }
.kt-med { padding-inline-start: 1em; }
.kt-note { font-weight: 500; }
.kt-meta { text-align: center; font-size: 0.75rem; }
.kt-call { text-align: center; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; padding-top: 12px; }
.kt-call + .kt-call { padding-top: 0; }
.kt-table { text-align: center; font-size: 3.25rem; font-weight: 900; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tickets .caption { grid-column: 1 / -1; margin-top: 18px; }

/* ── fit ─────────────────────────────────────────────────────────────── */
.fit { padding: clamp(72px, 11vw, 152px) var(--gutter); display: grid; gap: clamp(32px, 5vw, 64px); }
.fit-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.1875rem; max-width: 40ch; }
.fit-cols { display: grid; gap: 40px clamp(32px, 6vw, 96px); }
.fit-cols h3 { font-size: 1.25rem; font-weight: 500; }
@media (min-width: 760px) { .fit-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── how a venue starts ──────────────────────────────────────────────── */
.start { background: var(--paper-2); padding: clamp(72px, 11vw, 152px) var(--gutter); display: grid; gap: clamp(32px, 5vw, 64px); margin-bottom: clamp(72px, 11vw, 152px); }
.start h2 { font-size: clamp(1.875rem, 4.4vw, 3.25rem); }
.start-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.1875rem; max-width: 44ch; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; align-content: start; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 4px 20px; padding: 26px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.375rem; font-weight: 500; }
.steps p { color: var(--ink-2); max-width: var(--measure); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
  .steps li { grid-template-columns: minmax(0, 1fr); border-bottom: 0 !important; padding: 26px 0 0; }
  .steps li::before { grid-row: auto; margin-bottom: 14px; }
}

/* ── questions ───────────────────────────────────────────────────────── */
.questions { padding: 0 var(--gutter) clamp(72px, 11vw, 152px); display: grid; gap: clamp(28px, 4vw, 48px); }
.qa { max-width: 78ch; }
.qa details { border-top: 1px solid var(--rule); }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 20px 0; min-height: 48px;
  font-size: 1.1875rem; font-weight: 500;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-weight: 300; font-size: 1.75rem; line-height: 1; color: var(--brass-ink); transition: transform 0.3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 0 24px; color: var(--ink-2); max-width: var(--measure); }

/* ── contact ─────────────────────────────────────────────────────────── */
.contact {
  background: var(--paper-2);
  padding: clamp(72px, 11vw, 152px) var(--gutter);
  text-align: center; display: grid; justify-items: center; gap: 22px;
}
.contact h2 { font-size: clamp(2rem, 5.6vw, 4rem); max-width: 18ch; }
.contact > p { max-width: 50ch; color: var(--ink-2); font-size: 1.125rem; }
.contact-ways { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-pending { border: 1px dashed var(--ink-2); border-radius: 12px; padding: 14px 22px; color: var(--ink-2); font-size: 0.9375rem; }
/* A restaurant is rarely one person's decision: the page can be sent on. */
.contact > .contact-share { font-size: 0.9375rem; }
/* A person answers, by name. */
.contact > .contact-who { font-size: 1rem; color: var(--ink); }
.contact-share a { display: inline-block; }

/* ── foot ────────────────────────────────────────────────────────────── */
.foot { background: var(--night); color: var(--on-night-2); padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; font-size: 0.875rem; }
.foot img { height: 56px; width: auto; }
.foot p { max-width: 60ch; }
.foot-legal { color: #a39a8d; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--on-night); text-underline-offset: 5px; text-decoration-thickness: 1px; padding-block: 10px; }

.foot-phone { color: var(--on-night); font-size: 1.0625rem; text-decoration: none; padding-block: 10px; display: inline-block; }
.lost { min-height: 50vh; }
.lost .btn { margin-top: 20px; }

/* A link inside a sentence of a document is still pressed with a finger. An
 * e-mail address is one long word: at the largest text on a small phone it is
 * wider than the screen, so it may break, and it may not widen what holds it. */
.legal a:not(.btn) { display: inline-block; max-width: 100%; padding-block: 12px; overflow-wrap: anywhere; }
/* ── the two documents ───────────────────────────────────────────────── */
.legal { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(72px, 10vw, 128px); max-width: calc(72ch + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.legal h2 { font-size: 1.375rem; font-weight: 500; margin-top: 44px; }
.legal p, .legal ul { margin-top: 14px; color: var(--ink-2); }
.legal ul { padding-inline-start: 1.2em; list-style: disc; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.legal li { overflow-wrap: anywhere; }
/* who we are and where: lines of an address, not points of a list */
.legal ul.plain { padding-inline-start: 0; list-style: none; gap: 0; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal .updated { font-size: 0.9375rem; }
.draft { display: block; margin-bottom: 36px; padding: 16px 20px; border: 1px dashed var(--ink-2); border-radius: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.draft strong { display: block; }
.draft span { display: block; margin-top: 6px; font-size: 0.8125rem; }

/* ── the guides: one question each, set like the documents but written to be read ── */
.guide .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 0.875rem; color: var(--ink-2); }
.guide .crumbs a { color: var(--ink-2); text-underline-offset: 5px; }
.guide .guide-lede { margin-top: 18px; max-width: 60ch; font-size: clamp(1.125rem, 2.4vw, 1.3125rem); line-height: 1.6; color: var(--ink); }
.guide .note { font-size: 0.9375rem; border-inline-start: 3px solid var(--brass); padding-inline-start: 14px; }
.guide .guide-shot { max-width: 340px; margin: 40px auto 8px; }
.guide .guide-film { margin: 40px auto 8px; }
/* No script on these pages opens a screen large, so the pointer does not promise it. */
.guide .tablet img { cursor: auto; }
.guide .qa { margin-top: 18px; }
.guide .guide-cta { margin-top: 56px; padding: clamp(24px, 4vw, 40px); background: var(--paper-2); border-radius: 22px; }
.guide .guide-cta h2 { margin-top: 0; }
.guide .guide-cta .contact-ways { justify-content: flex-start; margin-top: 22px; }
/* a station's way to its guide: a quiet line, in the colour of its ground, before the leap */
/* under a station's opening words: one quiet way to its guide */
.to-guide { margin: 18px 0 0; font-size: 0.9375rem; }
.to-guide a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; opacity: 0.85; text-decoration: none; border-bottom: 1px solid var(--brass); transition: opacity 0.2s; }
.to-guide a::after { content: '←'; color: var(--brass); transition: transform 0.3s var(--ease); }
.to-guide a:hover { opacity: 1; }
.to-guide a:hover::after { transform: translateX(-4px); }
.to-guide-row { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-self: start; }
#clock .to-guide { margin-top: 10px; }
.guide .film-wide { max-width: 760px; }
.guide .film-wide video { aspect-ratio: 1000 / 694; }
/* numbered steps and a checklist table, for the guides that are a procedure or a comparison */
.legal ol { margin-top: 14px; padding-inline-start: 1.4em; list-style: decimal; display: grid; gap: 8px; color: var(--ink-2); }
.legal ol li::marker { color: var(--brass-ink); font-weight: 500; }
.guide blockquote { margin: 14px 0 0; padding: 14px 18px; background: var(--ticket); border: 1px solid var(--rule); border-radius: 14px; font-size: 0.9375rem; line-height: 1.6; color: var(--ink); max-width: 46ch; }
.guide .guide-table { display: block; overflow-x: auto; margin-top: 18px; border-collapse: collapse; font-size: 0.9375rem; color: var(--ink-2); }
.guide .guide-table caption { caption-side: top; text-align: start; padding-bottom: 10px; color: var(--ink-2); }
.guide .guide-table th, .guide .guide-table td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.guide .guide-table th { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink-2); }
.guide .guide-table td:first-child { color: var(--ink); }

/* ── a screen opened large ───────────────────────────────────────────── */
.tablet img { cursor: zoom-in; }
.hero-side img { cursor: default; }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: min(94vw, 760px); max-height: 94vh; overflow: visible; }
dialog.zoom::backdrop { background: rgba(19, 17, 16, 0.86); }
dialog.zoom img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 18px; cursor: zoom-out; }
dialog.zoom button { position: absolute; inset-block-start: -52px; inset-inline-end: 0; min-width: 44px; min-height: 44px; border: 1px solid var(--on-night); border-radius: 999px; background: transparent; color: var(--on-night); font: inherit; font-size: 0.9375rem; padding: 6px 18px; cursor: pointer; }

.top-nav a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 8px; text-decoration-thickness: 1px; }

/* ── motion ──────────────────────────────────────────────────────────────
 * Everything is visible without it. The script adds `.motion` only when the
 * page is actually on screen and the visitor has not asked for less motion,
 * so a hidden tab or a failed script never leaves a section blank. */
@media (prefers-reduced-motion: no-preference) {
  /* The opening's own entrance. The script gives `.entrance` only if it ran
   * before the page was first drawn: later than that, these would take away
   * words and pictures the reader is already looking at and bring them back. */
  .entrance .hero h1 .line { animation: rise 0.9s var(--ease) both; }
  .entrance .hero h1 .line:nth-child(2) { animation-delay: 0.08s; }
  .entrance .hero h1 .line:nth-child(3) { animation-delay: 0.16s; }
  .entrance .hero .lede, .entrance .hero .actions, .entrance .hero .ease { animation: fade 0.9s 0.35s var(--ease) both; }
  .entrance .hero-main { animation: settle 1.2s 0.2s var(--ease) both; }
  .entrance .hero-side { animation: settle 1.2s 0.45s var(--ease) both; }
  .motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .motion .reveal.in { opacity: 1; transform: none; }
  .motion .kt.reveal { transform: translateY(-26px); transition-duration: 1.1s; }
  .motion .kt-void.reveal { transition-delay: 0.18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(28px) scale(0.985); } }

/* ══ THE WINDING PAGE ═══════════════════════════════════════════════════
 * A restaurateur who was shown the first version called it a template, and
 * asked for something that winds, is wilder, throws you from place to place
 * and leaves you curious. What follows is the answer:
 *
 *  - one brass line that winds down the whole of "the system", crossing from
 *    side to side between the stops and drawn as far as the reader has come;
 *  - a question in very large type opening every stop, its last words
 *    underlined with a wave;
 *  - screens and tickets set at an angle, arriving from the side they sit on;
 *  - stops set apart in the dark or on sand, edge to edge, cut on a slant;
 *  - the detail of a stop folded behind a count;
 *  - at the foot of each stop a question that leaps to a stop elsewhere, and
 *    a button that offers one the reader has not been to;
 *  - the last ask of the page inside the open mouth of the logo.
 *
 * Nothing here is needed to read the page: without the script the line is not
 * drawn and everything else stands as written. */

/* Things here lean out past the edge on purpose (the band, the mouth, a screen
 * on its way in). `clip` on both, because on the body alone it is handed to the
 * viewport and stops clipping the body's own children. */
html { overflow-x: clip; }
main { overflow-x: clip; }

/* ── the opening: a question that keeps changing, above the claim ──────── */
.hero { overflow: clip; row-gap: clamp(18px, 3vw, 36px); }
/* The question stands on the floor of the room kept for it, so the space a
 * shorter one leaves is above it, under the header, and never between it
 * and the words it leads into. */
.ask-cycle { grid-column: 1 / -1; margin: 0; display: flex; align-items: flex-end; min-height: 3.2em; font-size: clamp(2rem, 9.2vw, 6.4rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; }
.ask-cycle i { display: inline-block; width: 0.06em; height: 0.82em; margin-inline-start: 0.08em; background: var(--brass); vertical-align: -0.06em; }
@media (min-width: 600px) { .ask-cycle { min-height: 2.15em; } }
@media (min-width: 1700px) { .ask-cycle { min-height: 1.1em; } }
@media (max-width: 979px) { .hero-stage { margin-top: 18px; } }
.hero h1 { font-size: clamp(1.375rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 400; max-width: 24ch; }
.hero h1 .line { display: inline; }
.hero h1 .line:last-child { font-weight: 600; }
.hero .lede { margin-top: 16px; }
.hero-main img { transform: rotate(3deg); }
.hero-side img { transform: rotate(-6deg); }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  /* the claim follows the question at once; it is not centred against the screens beside it */
  .hero-text { align-self: start; padding-top: 8px; }
}

/* Three facts under the ask, for the three fears of changing a till: buying
 * equipment, typing the menu again, waiting for somebody to change a price. */
.ease { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9375rem; color: var(--ink-2); }
.ease li { display: inline-flex; align-items: center; gap: 9px; }
.ease li::before { content: ''; flex: none; width: 9px; height: 5px; border-left: 1.5px solid var(--brass-ink); border-bottom: 1.5px solid var(--brass-ink); transform: translateY(-2px) rotate(-45deg); }

/* ── what hurts: sentences an owner has said, each a way straight in ──────
 * The page is long, and nobody reads thirteen stops to find their own. So the
 * opening ends by asking what the first conversation asks, and each answer is
 * a door. A sentence somebody said is drawn as one: a bubble, a little askew. */
.pains { grid-column: 1 / -1; display: grid; gap: 24px clamp(32px, 6vw, 88px); border-top: 1px solid var(--rule); padding-top: clamp(28px, 4vw, 48px); }
.pains h2 { font-size: clamp(1.625rem, 3.6vw, 2.5rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; max-width: 15ch; }
.pains-head p { margin-top: 10px; color: var(--ink-2); }
.pains ul { display: flex; flex-wrap: wrap; align-content: start; gap: 16px 12px; }
.pains a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 24px; border-end-start-radius: 5px; background: var(--paper); text-decoration: none; font-size: 1.0625rem; line-height: 1.35; transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s; }
.pains li:nth-child(odd) a { transform: rotate(-1.8deg); }
.pains li:nth-child(even) a { transform: rotate(1.5deg) translateY(4px); }
.pains li a:hover, .pains li a:focus-visible { transform: rotate(0deg) scale(1.04); background: var(--ink); color: var(--paper); }
@media (min-width: 980px) { .pains { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; } }

/* ── a band of kitchen words, laid across the page at an angle ─────────── */
/* It lies across the seam between the opening and "שף", in the night's own
 * colour: from above it is a slanted dark edge with words running along it,
 * from below it is simply where the dark begins. */
.band-wrap { position: relative; z-index: 2; margin-block: -34px -40px; }
.band { background: var(--night); color: var(--paper); overflow: clip; transform: rotate(-2.2deg) scale(1.04); direction: ltr; }
.band-track { display: flex; width: max-content; padding-block: 16px; }
.band-track span { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 300; padding-inline: clamp(18px, 3vw, 36px); white-space: nowrap; direction: rtl; }
/* Ornament is drawn, not written: the words come from data-w, so nothing
 * reads them out, selects them or mistakes them for text of the page. */
.band-track span::before { content: attr(data-w); }
.band-track span:nth-child(3n + 1) { color: var(--brass-on-night); font-weight: 500; }
.moves .band-track { animation: band 38s linear infinite; }
@keyframes band { to { transform: translateX(-50%); } }

/* The switch for everything that moves by itself sits on the thing that moves
 * most. The band's far end hangs lower than its middle, by the slant. */
.still { position: absolute; z-index: 1; inset-inline-end: clamp(10px, 2.4vw, 34px); top: calc(50% + 1.85vw); margin-top: -22px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--brass-on-night); background: var(--night); color: var(--on-night); cursor: pointer; transition: transform 0.3s var(--ease); }
.still[hidden] { display: none; }
.still svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.still .still-play { display: none; fill: currentColor; stroke-width: 1.4; }
.still[aria-pressed="true"] .still-pause { display: none; }
.still[aria-pressed="true"] .still-play { display: block; }
.still:hover { transform: rotate(-8deg) scale(1.08); }
/* On the dark grounds the page's ink-coloured focus ring cannot be seen. */
.still:focus-visible, .jump:focus-visible { outline: 2px solid var(--on-night); outline-offset: -6px; }
.chef :focus-visible, .stop-night :focus-visible { outline-color: var(--brass-on-night); }
.foot :focus-visible, dialog.zoom :focus-visible { outline-color: var(--on-night); }
/* The film's own controls take the focus inside it, where the page's ring does
 * not reach: the film itself is ringed for as long as anything in it is focused. */
.film video:focus, .film video:focus-within { outline: 2px solid var(--brass-on-night); outline-offset: 4px; }
/* The host-stand film stands on paper, where the night's brass ring is too faint (1.88:1): it takes the ink. */
.film-host video:focus, .film-host video:focus-within { outline-color: var(--ink); }
/* said, not shown */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── "שף": the word itself, enormous, behind the section ───────────────── */
.chef { position: relative; overflow: clip; }
.chef::before { content: 'שף'; position: absolute; inset-block-start: -0.2em; inset-inline-end: -0.05em; font-size: clamp(14rem, 44vw, 34rem); font-weight: 700; line-height: 1; color: #1e1b19; pointer-events: none; }
.chef > * { position: relative; }
.film video { transform: rotate(-2.5deg); transition: transform 0.6s var(--ease); }
.film:hover video, .film video:focus { transform: none; }

/* ── the system's index: tags thrown on the table ──────────────────────── */
.index h2 { font-size: clamp(2.25rem, 7.2vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; }
.index ul { gap: 14px 12px; margin-top: 36px; }
.index a { font-size: 1rem; padding: 10px 22px; min-height: 48px; background: var(--paper); transition: transform 0.35s var(--ease), border-color 0.2s, background-color 0.2s; }
.index li:nth-child(3n + 1) a { transform: rotate(-2.5deg); }
.index li:nth-child(3n + 2) a { transform: rotate(1.8deg) translateY(5px); }
.index li:nth-child(4n) a { transform: rotate(3deg) translateY(-4px); }
.index li a:hover, .index li a:focus-visible { transform: rotate(0deg) scale(1.07); border-color: var(--ink); background: var(--paper-2); }

/* ── the line ──────────────────────────────────────────────────────────── */
.system { position: relative; isolation: isolate; gap: clamp(110px, 15vw, 220px); padding-bottom: clamp(56px, 8vw, 112px); }
.system > * { position: relative; }
.system > * > * { position: relative; z-index: 2; }
.system > .snake { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.snake path { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round; }
.snake .snake-ghost { stroke: #cfc5b4; stroke-width: 1.2; stroke-dasharray: 1 10; }
.snake circle { fill: var(--brass); transition: opacity 0.3s; }

/* ── a stop ────────────────────────────────────────────────────────────── */
.domain { gap: clamp(28px, 4vw, 48px); }
.hook { font-size: clamp(2.25rem, 7.2vw, 5.25rem) !important; line-height: 1.04; font-weight: 300; letter-spacing: -0.02em; max-width: 14ch; }
.hook b { display: block; font-weight: 600; text-decoration: underline wavy var(--brass); text-decoration-thickness: 0.045em; text-underline-offset: 0.16em; padding-bottom: 0.12em; }
.answer { margin-top: 26px !important; display: inline-block; font-size: 1rem !important; font-weight: 500; color: var(--ink) !important; border: 1px solid currentColor; border-radius: 999px; padding: 6px 18px; transform: rotate(-1.5deg); }
.domain-intro > p:not(.answer) { margin-top: 16px; }
.domain-head .device img, .duo .device img { transform: rotate(var(--tilt, -3deg)); transition: transform 0.7s var(--ease); }
.domain-flip .domain-head .device img { --tilt: 3.5deg; }
.duo .device:last-child img { --tilt: 4deg; }
.domain-head .device:hover img, .duo .device:hover img { transform: rotate(0deg) scale(1.02); }
.tickets .kt { transform: rotate(-3deg); }
.tickets .kt-void { transform: rotate(4deg); }

/* A drawn settings card, for the two stops that are about choices and not
 * about one screen. Paper wherever it stands, as a ticket is. The names on
 * it are the ones the product's own screens carry. */
.domain-head .panelwrap { max-width: 430px; width: 100%; justify-self: center; }
.panel { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 22px; padding: 16px 20px 6px; box-shadow: 0 30px 60px -34px rgba(26, 24, 22, 0.55); transform: rotate(-2.5deg); }
.domain-flip .panel { transform: rotate(3deg); }
.panel-title { font-size: 0.8125rem; color: var(--ink-2); padding-bottom: 8px; }
.sw { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.sw span { font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.sw b { display: block; font-size: 1rem; font-weight: 500; color: var(--ink); }
.sw i { position: relative; width: 46px; height: 26px; border: 1px solid var(--ink); border-radius: 999px; }
.sw i::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.sw.on i { background: var(--ink); }
.sw.on i::after { inset-inline-start: auto; inset-inline-end: 3px; background: var(--paper); }
.sw em { font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; border: 1px solid var(--ink); border-radius: 10px; padding: 2px 12px; }
.panelwrap .caption { margin-top: 18px; }

/* The morning's two messages, as a phone shows them: the same drawn card, with
 * the words the server sends. An owner asks what reaches them, not what exists. */
.morning { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.morning h3 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 300; line-height: 1.15; }
.morning-text p { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.morning .panelwrap { max-width: 400px; width: 100%; justify-self: center; }
.panel.phone { display: grid; gap: 10px; padding: 16px 16px 18px; border-radius: 30px; }
.panel.phone .panel-title { text-align: center; padding-bottom: 2px; }
.sms { margin: 0; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 18px; border-end-start-radius: 5px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 900px) { .morning { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── the sum that passes without a name, from the reader's own numbers ────
 * The one thing on the page a visitor can change. It is drawn as what a till
 * prints, and it promises nothing: it multiplies what they typed. Shown only
 * once the script that does the sum has run. */
.tally { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.tally[hidden] { display: none; }
.tally h3 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 300; line-height: 1.15; }
.tally-text p { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.tally-side { width: 100%; max-width: 360px; justify-self: center; }
.tally-kt { padding-top: 14px; transform: rotate(2deg); }
.tally-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-block: 5px; }
.tally-row label { font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
/* a number grows to the right in Hebrew too: less on the left, more on the right */
.step { display: inline-flex; align-items: center; direction: ltr; }
.step button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.step button:hover { background: #23201a; color: var(--ticket); }
.step input { width: 3.3em; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.125rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tally-kt :focus-visible { outline-color: #23201a; }
.tally-total { display: block; direction: ltr; text-align: center; font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tally-side .caption { margin-top: 22px; }
@media (min-width: 900px) { .tally { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .motion .tally-kt.reveal.in { transform: rotate(2deg); }
}

/* ── who asked for all this: what came up on a shift, and what it became ──
 * The opening says the till was built inside a working restaurant, and this
 * is the evidence. Drawn as what a kitchen is handed: tickets, a little askew,
 * the complaint in the place of the dish and the answer where the table is. */
.built { padding: clamp(72px, 11vw, 152px) var(--gutter) clamp(24px, 5vw, 64px); display: grid; gap: clamp(32px, 5vw, 60px); }
.built-head > p:not(.answer) { margin-top: 18px; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.65; max-width: 46ch; }
.built-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; align-items: start; }
.built .kt { display: grid; padding-top: 12px; transform: rotate(var(--tilt, -1.6deg)); }
.built .kt:nth-child(even) { --tilt: 1.5deg; margin-top: 20px; }
.built .kt:nth-child(3n) { --tilt: -2.4deg; }
.built .kt-big { margin-top: 2px; font-size: 1rem; }
.kt-fix { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; padding-block: 4px; font-size: 0.875rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.kt-fix span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.72; }
.kt-fix:hover { text-decoration: underline wavy var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.built .kt :focus-visible { outline-color: #23201a; }
@media (max-width: 379px) {
  .built-list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .built .kt:nth-child(even) { margin-top: 0; }
}
@media (min-width: 900px) { .built-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; } }
@media (prefers-reduced-motion: no-preference) {
  .motion .built .kt.reveal { opacity: 0; transform: translateY(30px) rotate(calc(var(--tilt, -1.6deg) * 3)); }
  .motion .built .kt.reveal.in { opacity: 1; transform: rotate(var(--tilt, -1.6deg)); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .panel.reveal { opacity: 0; transform: translateY(-26px) rotate(-6deg); transition-duration: 1.1s; }
  .motion .panel.reveal.in { opacity: 1; transform: rotate(-2.5deg); }
  .motion .domain-flip .panel.reveal.in { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: no-preference) {
  /* a screen arrives from the side it sits on */
  .motion .domain-head .device.reveal { opacity: 0; transform: translateX(-70px) rotate(-7deg); transition-duration: 1.1s; }
  .motion .domain-flip .domain-head .device.reveal { transform: translateX(70px) rotate(7deg); }
  .motion .domain-head .device.reveal.in { opacity: 1; transform: none; }
}

/* stops set apart: edge to edge, cut on a slant. The ground is painted under
 * the line (z-index -1 inside the system), the words above it. */
.stop-night, .stop-sand { padding-block: clamp(76px, 10vw, 132px); }
.stop-night::before, .stop-sand::before { content: ''; position: absolute; inset-block: 0; inset-inline: calc(-1 * var(--gutter)); z-index: -1; clip-path: polygon(0 3.2vw, 100% 0, 100% calc(100% - 3.2vw), 0 100%); }
.stop-night::before { background: var(--night); }
.stop-sand::before { background: var(--paper-2); clip-path: polygon(0 0, 100% 3.2vw, 100% 100%, 0 calc(100% - 3.2vw)); }
.stop-night { color: var(--on-night); }
.stop-night .answer { color: var(--on-night) !important; }
.stop-night .domain-intro > p:not(.answer), .stop-night .ledger dd, .stop-night .device figcaption, .stop-night .caption { color: var(--on-night-2); }
.stop-night .ledger > div { border-color: #3a3531; }
.stop-night .more summary { border-color: var(--on-night); }
.stop-night .tablet img { border-color: #2a2623; box-shadow: 0 0 0 1px #4a443e, 0 40px 70px -34px #000; }

/* the rest of a stop, behind its count */
.more { margin-top: -6px; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 22px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 0.9375rem; transition: transform 0.3s var(--ease); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: '+'; font-size: 1.375rem; font-weight: 300; line-height: 1; color: var(--brass-ink); transition: transform 0.3s var(--ease); }
.stop-night .more summary::after { color: var(--brass-on-night); }
.more summary:hover { transform: rotate(-1.5deg) scale(1.03); }
.more[open] summary::after { transform: rotate(45deg); }
.more .ledger { margin-top: 18px; }

/* the question that leaps */
.leap { justify-self: start; display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font-size: clamp(1.125rem, 2.4vw, 1.625rem); font-weight: 300; text-decoration: none; }
.leap::after { content: ''; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid currentColor; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9864b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5c-9 0-13 5-13 13M6 18l-3-4M6 18l4-3'/%3E%3C/svg%3E"); transition: transform 0.45s var(--ease); }
.leap:hover::after, .leap:focus-visible::after { transform: rotate(-30deg) scale(1.12); }
.leap:hover { text-decoration: underline wavy var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
@media (prefers-reduced-motion: no-preference) {
  .landed .hook, .chef.landed h2 { animation: landed 0.9s var(--ease); }
}
@keyframes landed { 0% { transform: translateY(26px) rotate(-2deg) scale(0.96); opacity: 0.15; } 100% { transform: none; opacity: 1; } }

/* somewhere the reader has not been. It sits in the corner where lines END:
 * in a page read from the right, the other corner is where every line begins,
 * and a button there covers the first word of whatever passes under it. */
.jump { position: fixed; z-index: var(--z-sticky); inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 84px; min-height: 52px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--brass-on-night); background: var(--night); color: var(--on-night); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0.25s; }
.jump:hover { transform: translateY(-2px) rotate(-3deg); }
.jump[hidden] { display: none; }
/* stepped aside: not seen, not pressed, not reached by the keyboard */
.jump.away { opacity: 0; visibility: hidden; transform: translateY(10px); }

/* ── the last ask, inside the open mouth of the logo ───────────────────── */
/* The mouth is as wide as it must be for the words to sit in its opening,
 * and the section as tall as the mouth, so both lips are seen whole: on a
 * phone its corners are off to the sides and the two lips frame the screen. */
.contact { --lips: clamp(1440px, 108vw, 1560px); position: relative; isolation: isolate; overflow: clip; min-height: calc(var(--lips) * 0.574 + 24px); align-content: center; }
.contact::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--lips); aspect-ratio: 432 / 248; transform: translate(-50%, -51%); background: url('img/lips.svg') center / 100% 100% no-repeat; }
/* On a phone only the middle of the mouth is on screen, and the two highlights
 * of the upper lip showed as a stray dash at each edge. This drawing has none. */
@media (max-width: 699px) { .contact::before { background-image: url('img/lips-phone.svg'); } }

@media (prefers-reduced-motion: reduce) {
  .film video, .domain-head .device img, .duo .device img, .index a, .more summary, .leap::after, .jump, .wa-float, .a11y-open { transition: none; }
}

/* ══ WHAT STAYS ON SCREEN ═══════════════════════════════════════════════
 * Wherever the reader is, two things are in reach on every page: a way to
 * write to us, and the accessibility menu. They stand one above the other in
 * the corner where lines END (in a page read from the right the other corner
 * is where every line begins), and the home page's leap button stands beside
 * them. One family: night, a brass hairline. Only the WhatsApp mark keeps its
 * own green, because that green is how it is recognised. */
.wa-float, .a11y-open { position: fixed; z-index: var(--z-sticky); display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--brass-on-night); background: var(--night); color: var(--on-night); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); cursor: pointer; transition: transform 0.3s var(--ease); }
.wa-float { inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 16px; width: 56px; height: 56px; color: #25d366; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.a11y-open { inset-block-end: calc(84px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; width: 48px; height: 48px; font: inherit; }
.a11y-open svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a11y-open svg circle { fill: currentColor; stroke: none; }
.wa-float:hover, .a11y-open:hover { transform: translateY(-2px) rotate(-4deg); }
/* Twice, a few seconds after the page opens, a ring leaves the WhatsApp button:
 * the one thing on the page we most want found. Then it is still for good. */
.moves .wa-float::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid #25d366; opacity: 0; pointer-events: none; animation: wa-ring 1.5s 2.6s ease-out 2; }
@keyframes wa-ring { from { opacity: 0.75; transform: scale(1); } to { opacity: 0; transform: scale(1.75); } }
.wa-float:focus-visible, .a11y-open:focus-visible { outline: 2px solid var(--on-night); outline-offset: -6px; }
/* The page ends at its foot, so nothing there can be scrolled out from under
 * the two buttons: its words keep clear of their corner instead. */
.foot { padding-inline-end: max(var(--gutter), 88px); }

/* ── the accessibility menu ────────────────────────────────────────────── */
.a11y-panel { position: fixed; inset: auto; inset-block-end: 16px; inset-inline-end: 16px; margin: 0; padding: 0; width: min(372px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.a11y-panel::backdrop { background: rgba(19, 17, 16, 0.3); }
.a11y-in { display: grid; gap: 18px; padding: 20px; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-head h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: 0; }
.a11y-panel button { font: inherit; color: inherit; background: transparent; cursor: pointer; }
.a11y-close, .a11y-reset { min-height: 44px; padding: 6px 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.9375rem; }
.a11y-size { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; }
.a11y-size button { width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.125rem; font-weight: 500; }
.a11y-size button:disabled { opacity: 0.35; cursor: default; }
.a11y-size output { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a11y-opts button { min-height: 56px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 14px; font-size: 0.9375rem; line-height: 1.3; text-align: center; }
.a11y-opts button:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Chosen is said twice: by the ground, and by a tick that does not depend on
 * colour. The tick is drawn, not typed, so a screen reader hears the button's
 * name and "pressed", and not a stray character. */
.a11y-opts button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a11y-opts button[aria-pressed='true']::before { content: ''; display: inline-block; width: 0.38em; height: 0.74em; margin-inline-end: 0.6em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.12em) rotate(45deg); }
.a11y-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.a11y-foot a { padding-block: 12px; text-underline-offset: 5px; }

/* ── what the menu changes ─────────────────────────────────────────────── */
/* Text size. The page is set in rem, so the root's own size carries all of it. */
html.a11y-text-1 { font-size: 115%; }
html.a11y-text-2 { font-size: 130%; }
html.a11y-text-3 { font-size: 150%; }
html[class*='a11y-text-'] :is(h1, h2, h3, .hook, .ask-cycle, .btn, summary), html.a11y-space :is(h1, h2, h3, .hook, .ask-cycle, .btn, summary) { overflow-wrap: anywhere; }
html[class*='a11y-text-'] .top, html.a11y-space .top { flex-wrap: wrap; row-gap: 8px; }
/* The mouth around the last ask is drawn for the page's own text size. Larger
 * or wider-set words no longer fit its opening, and a lip across a sentence
 * is the opposite of what was asked for. */
html[class*='a11y-text-'] .contact::before, html.a11y-space .contact::before { content: none; }
html[class*='a11y-text-'] .contact, html.a11y-space .contact { min-height: 0; }

/* High contrast: black on white, and where the page is dark, white on black.
 * Every colour of the page is one of these names, so they are all it takes. */
html.a11y-contrast { --paper: #fff; --paper-2: #fff; --ink: #000; --ink-2: #000; --rule: #000; --brass: #000; --brass-ink: #000; --night: #000; --night-2: #000; --on-night: #fff; --on-night-2: #fff; --brass-on-night: #fff; --ticket: #fff; }
/* The other way round: white on black everywhere. */
html.a11y-invert { --paper: #000; --paper-2: #000; --ink: #fff; --ink-2: #fff; --rule: #fff; --brass: #ffd98a; --brass-ink: #ffd98a; --night: #000; --night-2: #000; --on-night: #fff; --on-night-2: #fff; --brass-on-night: #ffd98a; --ticket: #fff; }
html:is(.a11y-contrast, .a11y-invert) .top { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
html:is(.a11y-contrast, .a11y-invert) .foot-legal { color: #fff; }
html:is(.a11y-contrast, .a11y-invert) .chef::before { content: none; }
html:is(.a11y-contrast, .a11y-invert) :is(.asks li, .film video, .ledger-night > div, .stop-night .ledger > div, .stop-night .tablet img) { border-color: #fff; }
/* (as specific as the rule above, which the :is() list makes 0,3,2, so the later one wins) */
html:is(.a11y-contrast, .a11y-invert) .film.film-host video { border-color: var(--ink); }
html:is(.a11y-contrast, .a11y-invert) .tablet img { border-color: var(--ink); box-shadow: none; }
html:is(.a11y-contrast, .a11y-invert) :is(.stop-night, .stop-sand) { border-block: 2px solid var(--ink); }
html:is(.a11y-contrast, .a11y-invert) .kt { color: #000; }
html:is(.a11y-contrast, .a11y-invert) .snake .snake-ghost { stroke: var(--ink); }
html:is(.a11y-contrast, .a11y-invert) .wa-float { color: #fff; }
/* where two grounds were told apart by a tint, a line now tells them apart */
html:is(.a11y-contrast, .a11y-invert) :is(.chef, .foot, .start, .contact, .band) { border-block: 2px solid var(--on-night); }
html.a11y-contrast :is(.start, .contact) { border-color: #000; }
html.a11y-invert .brand img { filter: invert(1); }
html.a11y-invert .contact::before { filter: invert(1); }
html.a11y-invert .btn-ink:hover { background: #fff; }
html.a11y-invert .a11y-panel::backdrop { background: rgba(255, 255, 255, 0.25); }

/* On each part of the page, and never on <html> itself: where a browser lets a
 * filtered root hold its fixed children, the two buttons in the corner would
 * leave the screen with the scroll. */
html.a11y-gray :is(.top, main, .foot, dialog, .wa-float, .a11y-open, .jump) { filter: grayscale(1); }

html.a11y-links :is(a, summary, button, [role='button']) { outline: 2px solid currentColor; outline-offset: 2px; }
html.a11y-links a:not(.btn, .brand, .wa-float), html.a11y-links summary { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

html.a11y-font body { font-family: Arial, Tahoma, 'Segoe UI', sans-serif; }
html.a11y-font :is(h1, h2, h3, .hook, .ask-cycle, .lede, .chef-quote, .leap) { letter-spacing: 0; font-weight: 400; }

html.a11y-space body { letter-spacing: 0.12em; word-spacing: 0.16em; }
html.a11y-space :is(p, li, dt, dd, figcaption, summary, a, button, output) { line-height: 2; }
html.a11y-space :is(h1, h2, h3, .hook, .ask-cycle) { line-height: 1.5; letter-spacing: 0.04em; }
html.a11y-space .legal :is(p, ul) { margin-top: 2em; }

/* ══ WHEN THE BROWSER CHOOSES THE COLOURS ═══════════════════════════════
 * Under a Windows contrast theme the browser discards every ground and colour
 * chosen here and uses the reader's own. What was drawn with a ground alone
 * (the three lines of the phone's menu button) is then nothing at all, the
 * giant word behind "שף" turns from a shadow into a wall of the text colour,
 * and a logo drawn in ink cannot be seen on a ground that has become ink. */
@media (forced-colors: active) {
  .menu > summary span, .menu > summary span::before, .menu > summary span::after, .ask-cycle i { background: CanvasText; }
  .menu[open] > summary span { background: transparent; }
  .chef::before { content: none; }
  /* a drawn switch is told apart by its fill alone, so the fill is spelled out */
  .sw i::after, .sw.on i { background: CanvasText; }
  .sw.on i::after { background: Canvas; }
}
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .brand img, .contact::before { filter: invert(1); }
}
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .foot img { filter: invert(1); }
}

/* ══ THE ADS' PAGE (chef.html) ════════════════════════════════════════════
 * Visitors from the paid ads arrive on a phone, inside Facebook or Instagram,
 * read the first screen and are gone within half a minute (Clarity, 20/10/2026).
 * So the first screen carries it all: the ad's question in a chat bubble, the
 * answer as the title, the film playing, the button; and a bar at the foot of
 * the screen keeps the way to write to us in reach while they read. */
.lp { padding-top: clamp(20px, 5vw, 56px); }
.lp-hero { display: grid; gap: 12px; }
.legal .lp-ask { margin: 0; justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; max-width: 36ch; padding: 10px 16px; border-radius: 20px; border-end-start-radius: 6px; background: var(--ink); color: var(--paper); font-size: 1rem; line-height: 1.45; }
.lp-ask span { color: var(--brass-on-night); font-size: 0.875rem; }
.lp-ask q { quotes: none; }
.legal .lp h1, .lp h1 { margin-top: 4px; font-size: clamp(1.75rem, 7.4vw, 3.25rem); line-height: 1.15; max-width: 20ch; }
.legal .lp-sub { margin-top: 0; max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; }
.lp-film { margin: 6px auto 0; max-width: min(300px, 78vw); }
.lp-film video { transform: none; }
.lp-film figcaption { text-align: center; }
.lp-cta { display: grid; gap: 10px; margin-top: 10px; justify-items: center; }
.lp-cta .btn-wa { width: min(100%, 420px); }
.legal .lp-micro { margin: 0; text-align: center; font-size: 0.9375rem; max-width: 40ch; }
/* who already works with it, the offer, what happens after the message, and the three worries */
.legal .lp-proof { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--ink); }
.lp-proof::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.legal .lp-offer { margin: 6px 0 4px; text-align: center; max-width: 36ch; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }
.lp-offer strong { display: block; font-size: 1.1875rem; color: var(--ink); }
.legal ol.lp-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; width: min(100%, 420px); font-size: 0.9375rem; color: var(--ink-2); }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.lp-steps li::before { content: counter(step); width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--brass-ink); border-radius: 50%; font-size: 0.75rem; color: var(--brass-ink); }
.legal ul.lp-checks { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 10px; font-size: 0.9375rem; }
.lp-checks li { position: relative; padding-inline-start: 26px; }
.lp-checks li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 0; color: var(--brass-ink); font-weight: 500; }
.btn-wa { gap: 10px; }
.btn-wa svg { flex: none; width: 22px; height: 22px; fill: #25d366; }
.lp-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky); display: flex; justify-content: center; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -14px 30px -20px rgba(26, 24, 22, 0.45); }
.lp-bar .btn { min-height: 52px; }
.lp-bar .btn-ink { flex: 1 1 auto; max-width: 420px; padding-inline: 14px; }
.lp-bar .btn-line { flex: none; padding-inline: 18px; background: var(--paper); }
/* the accessibility button keeps its corner, above the bar */
.has-bar .a11y-open { inset-block-end: calc(88px + env(safe-area-inset-bottom, 0px)); }
.has-bar .foot { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

/* ══ ON PAPER ═══════════════════════════════════════════════════════════
 * The documents are the pages somebody prints or saves as a file. On paper
 * there is nothing to press: the bar, the corner buttons and the moving band
 * go, the page is black on white, and a link shows where it leads. */
@media print {
  .skip, .top .btn, .top-nav, .menu, .wa-float, .lp-bar, .lp-cta, .a11y-open, .a11y-panel, .jump, .band-wrap, .snake, .film video, .foot-links { display: none !important; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .top { position: static; border: 0; background: none; padding-inline: 0; }
  .legal { max-width: none; padding: 0; }
  .legal p, .legal ul, .legal strong { color: #000; }
  .legal h2 { break-after: avoid; }
  .legal a[href^='mailto:'], .legal a[href^='tel:'] { padding: 0; text-decoration: none; }
  .foot { background: none; color: #000; padding: 24pt 0 0; }
  .foot img { display: none; }
  .foot-legal, .foot-phone { color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ══ THE SMALL CALCULATORS AND THE GLOSSARY ═══════════════════════════════
 * A calculator is a form that answers while it is typed in. It sits on the
 * second paper so it reads as a tool and not as body text, and the answer is
 * one block a screen reader can read in a breath. */
.calc { margin: 28px 0 10px; padding: 22px clamp(16px, 4vw, 28px); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 18px; }
.calc-h { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.calc-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.calc-row:last-of-type { border-bottom: 0; }
.calc-row label { flex: 1 1 14ch; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.calc input { flex: 0 0 auto; width: 10ch; min-height: 44px; padding: 6px 12px; background: var(--ticket); color: var(--ink); border: 1px solid var(--ink-2); border-radius: 10px; font: inherit; font-size: 1.0625rem; font-variant-numeric: tabular-nums; text-align: start; }
.calc input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc-out { display: block; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink); }
.calc-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 5px 0; }
.calc-line .calc-label { color: var(--ink-2); font-size: 0.9375rem; }
.calc-line strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.calc-empty { color: var(--ink-2); }
.calc-note { color: var(--ink-2); font-size: 0.9375rem; }

/* The glossary: a term and what it means, each pair readable on its own. */
.gloss { margin: 18px 0 30px; }
.gloss dt { margin-top: 20px; font-weight: 600; scroll-margin-top: 96px; }
.gloss dt:first-of-type { margin-top: 0; }
.gloss dd { margin: 4px 0 0; color: var(--ink-2); }

@media print {
  .calc input { border-color: #000; }
  .calc, .calc-out { background: none; border-color: #000; }
}
