/* ==========================================================================
   Couscous Tasga — كسكس تاسقا
   One token layer. Everything below references tokens only.
   Mobile-first: base styles are the 360px phone.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* ground + surfaces (tone steps, never lines) */
  --clay-950: #120a05;
  --clay-900: #180d06;
  --clay-850: #20120a;
  --clay-800: #2a1810;
  --clay-700: #3a2417;

  /* ink */
  --ink: #fdfbf7;          /* full ink, running text */
  --ink-2: #dccfb8;        /* secondary: cream tinted toward clay, never grey */
  --ink-3: #a9917a;        /* tertiary / placeholders only */

  /* accents */
  --gold: #d4af37;
  --gold-soft: #e8c86a;
  --gold-deep: #a8842a;
  --terra: #c15c3d;
  --terra-text: #e88360;   /* terra light enough for small text on clay */
  --terra-deep: #8e3b26;
  --mint: #2a4b35;
  --mint-text: #8ec39a;

  /* type */
  --display: "Amiri", "Times New Roman", serif;
  --text: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-wordmark: clamp(2.6rem, 15vw, 6.5rem);
  --fs-film: clamp(2.9rem, 13vw, 7rem);
  --fs-h1: clamp(2.1rem, 8.5vw, 4.4rem);
  --fs-h2: clamp(1.7rem, 6vw, 3rem);
  --fs-h3: clamp(1.25rem, 4vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 3.6vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.8125rem;

  --track-display: -0.015em;
  --lh-display: 1.06;

  /* space */
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --maxw: 1240px;
  --sec-gap: clamp(4.5rem, 11vw, 10rem);
  --gap: clamp(1rem, 2.4vw, 1.6rem);

  /* motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.42, 0.5, 1);
  --d-press: 110ms;
  --d-fast: 180ms;
  --d-base: 280ms;
  --d-slow: 520ms;

  /* surfaces & elevation — only what truly floats carries a shadow */
  --float: 0 18px 46px -14px rgb(0 0 0 / 0.72), 0 3px 10px -4px rgb(0 0 0 / 0.5);
  --radius: 0;             /* square corners, decided once */
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--clay-950);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--clay-950);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* ---------- 3. Browser surfaces (the parts I did not draw) ---------- */
::selection { background: var(--gold); color: var(--clay-950); }
::placeholder { color: var(--ink-3); opacity: 1; }
html { caret-color: var(--gold); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(78%) sepia(40%) saturate(560%) hue-rotate(357deg); cursor: pointer; }
@supports (scrollbar-color: red red) {
  html { scrollbar-color: var(--clay-700) var(--clay-950); }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--clay-950); }
::-webkit-scrollbar-thumb { background: var(--clay-700); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1480px; }
section { padding-block: clamp(3.25rem, 14vw, 5rem); }
@media (min-width: 768px) { section { padding-block: var(--sec-gap); } }

.band { background: var(--clay-900); }
.band--deep { background: var(--clay-950); }
.band--raise { background: var(--clay-850); }
.band--mint { background: var(--mint); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--clay-950); padding: 0.7rem 1.1rem; font-weight: 700;
}
.skip:focus { inset-inline-start: 0.5rem; top: 0.5rem; }

/* ---------- 5. Type ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.24; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.measure { max-width: 68ch; }
.measure-n { max-width: 46ch; }
.center { text-align: center; margin-inline: auto; }

.star { color: var(--gold); flex: none; }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--clay-950);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--text); font-weight: 700; font-size: 0.975rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--d-press) var(--e-out), filter var(--d-base) var(--e-out);
  -webkit-tap-highlight-color: transparent;
}
.btn > * { position: relative; z-index: 2; }
/* liquid fill from the centre on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--clay-950);
  transform: scale(0, 1); transform-origin: 50% 50%;
  transition: transform var(--d-base) var(--e-out);
}
@media (hover: hover) {
  .btn:hover::before { transform: scale(1, 1); }
  .btn:hover { color: var(--gold); }
}
.btn:active { transform: scale(0.975); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.btn:disabled::before { transform: scale(0, 1); }

.btn--ghost { --btn-bg: var(--clay-800); --btn-fg: var(--ink); }
.btn--ghost::before { background: var(--gold); }
@media (hover: hover) { .btn--ghost:hover { color: var(--clay-950); } }
.btn--terra { --btn-bg: var(--terra); --btn-fg: var(--clay-950); }
.btn--terra::before { background: var(--clay-950); }
@media (hover: hover) { .btn--terra:hover { color: var(--terra-text); } }
.btn--cream { --btn-bg: var(--ink); --btn-fg: var(--clay-950); }
.btn--cream::before { background: var(--gold); }
@media (hover: hover) { .btn--cream:hover { color: var(--clay-950); } }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: 0.95rem 1.9rem; font-size: 1.075rem; }
.btn--sm { min-height: 44px; padding: 0.55rem 0.95rem; font-size: 0.875rem; }

.link {
  color: var(--gold); font-weight: 700; text-decoration-line: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent);
  transition: text-decoration-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
@media (hover: hover) { .link:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); } }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* zellij divider band — a real drawn motif, not a hairline */
.zellij-band { display: block; width: 100%; height: 26px; color: var(--clay-800); }
.zellij-band--gold { color: color-mix(in srgb, var(--gold) 26%, var(--clay-950)); }

/* ---------- 7. Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--clay-950) 88%, transparent);
  transition: background var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.masthead.is-stuck { background: var(--clay-950); box-shadow: 0 1px 0 0 var(--clay-800); }
.masthead .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  min-height: 64px; padding-block: 0.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; color: var(--gold); }
.brand .name {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1;
  letter-spacing: -0.01em; white-space: nowrap;
}
.masthead nav { display: none; }
.masthead .cta { display: none; }
.burger {
  width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink);
  background: var(--clay-850);
}
.burger svg { width: 22px; height: 22px; }
.burger .x-ico { display: none; }
.burger[aria-expanded="true"] .x-ico { display: block; }
.burger[aria-expanded="true"] .b-ico { display: none; }

.drawer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-base) var(--e-out);
  background: var(--clay-900);
}
.drawer[data-open="true"] { grid-template-rows: 1fr; }
.drawer > div { overflow: hidden; }
.drawer ul { padding-block: 0.5rem 1rem; }
.drawer a {
  display: block; padding: 0.85rem 0.25rem; min-height: 48px;
  font-family: var(--display); font-size: 1.3rem; text-decoration: none;
  border-bottom: 1px solid var(--clay-800);
  -webkit-tap-highlight-color: transparent;
}
.drawer a:last-child { border-bottom: 0; }
@media (hover: hover) { .drawer a:hover { color: var(--gold); } }
.drawer .btn { margin-top: 0.75rem; }

@media (min-width: 900px) {
  .masthead .bar { min-height: 76px; }
  .masthead nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); }
  .masthead nav a {
    font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 0.35rem 0;
    position: relative;
  }
  .masthead nav a::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: var(--o, right);
    transition: transform var(--d-base) var(--e-out);
  }
  @media (hover: hover) { .masthead nav a:hover::after { transform: scaleX(1); } }
  .masthead nav a[aria-current="page"]::after { transform: scaleX(1); }
  .masthead .cta { display: inline-flex; }
  .burger, .drawer { display: none; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 2rem 0;
  background: var(--clay-950);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(58% 42% at 74% 34%, rgb(212 175 55 / 0.14), transparent 68%),
    radial-gradient(70% 55% at 18% 78%, rgb(193 92 61 / 0.13), transparent 70%);
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42; mix-blend-mode: luminosity;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--clay-950) 8%, rgb(18 10 5 / 0.72) 44%, rgb(18 10 5 / 0.5) 100%);
}
.hero .wrap { position: relative; z-index: 3; }
.hero h1 {
  font-size: var(--fs-wordmark); line-height: 0.98;
  margin-bottom: clamp(0.9rem, 3vw, 1.5rem);
}
.hero h1 .l { display: block; }
.hero .lead { color: var(--ink); margin-bottom: 1.6rem; max-width: 30ch; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--clay-800);
  font-size: var(--fs-small); color: var(--ink-2);
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-cue {
  display: flex; align-items: center; gap: 0.7rem;
  padding-block: 1.5rem 1.75rem; font-size: var(--fs-tiny); color: var(--ink-2);
}
.cue-grains { display: flex; gap: 4px; }
.cue-grains i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay-700);
  animation: cue 1.8s var(--e-in-out) infinite;
}
.cue-grains i:nth-child(2) { animation-delay: 0.22s; }
.cue-grains i:nth-child(3) { animation-delay: 0.44s; }
@keyframes cue { 0%, 100% { background: var(--clay-700); } 40% { background: var(--gold); } }

@media (min-width: 900px) {
  .hero { justify-content: center; padding-block: 4rem 0; }
  .hero .lead { font-size: 1.4rem; max-width: 36ch; }
  .hero-cue { padding-block: 2.25rem 2.5rem; }
}

/* ---------- 9. Scroll film ---------- */
.film { padding: 0; background: var(--clay-950); }
.film-run {
  position: relative;
  --film-unit: 132svh;
  height: calc(var(--film-ch, 3) * var(--film-unit));
}
@media (min-width: 768px) { .film-run { --film-unit: 180svh; } }
.film-stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  background: var(--clay-950);
}
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* without script the film is a readable sequence of stills, never hidden text */
html:not(.js) .film-run { height: auto; }
html:not(.js) .film-stage { position: static; height: auto; }
html:not(.js) .film-canvas, html:not(.js) .film-tint { display: none; }
html:not(.js) .film-ch { position: static; opacity: 1; }
html:not(.js) .film-ch .visual-fallback { display: block; }
html:not(.js) .film-dots { display: none; }
.film-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 62% at 50% 48%, transparent 34%, rgb(18 10 5 / 0.72) 100%),
    linear-gradient(to top, rgb(18 10 5 / 0.85) 2%, transparent 42%);
}
.film-ch {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter); padding-bottom: clamp(4.5rem, 14vh, 8rem);
  pointer-events: none;
}
.js .film-ch { opacity: 0; }
.film-ch .visual-fallback {
  display: none; width: 100%; max-width: 720px; aspect-ratio: 16 / 9;
  object-fit: cover; margin-bottom: 1.5rem;
}
.film-ch .wrap { width: 100%; }
.film-ch .word {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-film); line-height: 0.94; letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.film-ch .say { font-size: clamp(1rem, 4vw, 1.3rem); color: var(--ink); max-width: 30ch; }
.film-ch .say b { color: var(--gold); font-weight: 700; }
.film-dots {
  position: absolute; z-index: 4; inset-inline-end: var(--gutter); top: 50%;
  translate: 0 -50%; display: grid; gap: 12px;
}
.film-dots i {
  width: 8px; height: 8px; background: rgb(253 251 247 / 0.3);
  transition: background var(--d-base) var(--e-out), scale var(--d-base) var(--e-out);
}
.film-dots i.on { background: var(--gold); scale: 1.5; }
@media (min-width: 900px) {
  .film-ch { justify-content: center; }
  .film-ch .word { font-size: var(--fs-film); }
}
@media (prefers-reduced-motion: reduce) {
  .film-run { height: auto; }
  .film-stage { position: static; height: auto; }
  .film-canvas, .film-tint { display: none; }
  .film-ch, .js .film-ch {
    position: static; opacity: 1; padding-block: clamp(3rem, 9vw, 5rem);
    pointer-events: auto;
  }
  .film-ch .visual-fallback { display: block; }
  .film-dots { display: none; }
}

/* ---------- 10. The machine (builder) ---------- */
.machine { background: var(--clay-950); }
.machine-head { margin-bottom: clamp(1.75rem, 5vw, 3rem); }
.machine-head h2 { margin-bottom: 0.7rem; max-width: 22ch; }
.machine-head p { max-width: 56ch; color: var(--ink-2); }

.machine-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .machine-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.36fr) minmax(0, 0.92fr); align-items: start; }
}

/* stepping order on phones: board first, then tools, then ticket */
.step-board { order: 1; }
.step-tools { order: 2; }
.step-ticket { order: 3; }
@media (min-width: 900px) { .step-board { order: 2; } .step-tools { order: 1; } .step-ticket { order: 3; } }

.panel { background: var(--clay-900); padding: clamp(1rem, 3vw, 1.4rem); }
.panel--flat { background: none; padding: 0; }

/* tools */
.tool { background: var(--clay-850); padding: 1rem; margin-bottom: var(--gap); position: relative; }
.tool:last-child { margin-bottom: 0; }
.tool h3 { margin-bottom: 0.3rem; }
.tool p { font-size: var(--fs-small); color: var(--ink-2); }
.tool .stage { position: relative; margin-top: 0.9rem; }
.tool .shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tool.is-done { outline: 0; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 55%, transparent); }

.ladle {
  position: absolute; inset-inline-start: 0; top: 50%; margin-block-start: -29px;
  width: 58px; height: 58px; z-index: 5;
  display: grid; place-items: center; color: var(--gold);
  background: var(--clay-950);
  cursor: grab; touch-action: none;
  transition: background var(--d-base) var(--e-out);
}
.ladle svg { width: 30px; height: 30px; pointer-events: none; }
.ladle[data-grab="1"] { cursor: grabbing; background: var(--gold); color: var(--clay-950); }
.ladle.is-home { animation: nudge 2.6s var(--e-in-out) infinite; }
@keyframes nudge {
  0%, 62%, 100% { transform: translateX(0); }
  74% { transform: translateX(-16px); }
  86% { transform: translateX(6px); }
}
.ladle-hint { margin-top: 0.6rem; font-size: var(--fs-tiny); color: var(--gold); }

.pot { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: clip; background: var(--clay-950); }
.pot img { width: 100%; height: 100%; object-fit: cover; transition: filter var(--d-slow) var(--e-out); }
.pot[data-cycles="3"] img { filter: brightness(1.18) saturate(1.06); }
.pot-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center; z-index: 4;
  -webkit-tap-highlight-color: transparent;
}
.pot-btn span {
  padding: 0.5rem 0.9rem; background: var(--clay-950); color: var(--gold);
  font-weight: 700; font-size: var(--fs-small);
}
@media (hover: hover) { .pot-btn:hover span { background: var(--gold); color: var(--clay-950); } }
.pot-btn:active { transform: scale(0.99); }
.puff {
  position: absolute; inset-inline-start: 50%; bottom: 44%; z-index: 3;
  width: 46px; height: 46px; margin-inline-start: -23px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(253 251 247 / 0.5), transparent 68%);
  animation: puff 2.1s var(--e-out) forwards;
}
@keyframes puff {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: translateY(-130px) scale(3.4); opacity: 0; }
}
.cycles { display: flex; gap: 6px; margin-top: 0.7rem; }
.cycles i { flex: 1; height: 5px; background: var(--clay-800); transition: background var(--d-base) var(--e-out); }
.cycles i.on { background: var(--gold); }

/* the tabaaj board */
.board { position: relative; background: var(--clay-900); padding: clamp(0.75rem, 2.4vw, 1.15rem); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.board-head h3 { margin: 0; }
.board-head p { font-size: var(--fs-small); color: var(--ink-2); }

.tabaaj {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: clip;
  background: var(--clay-950); container-type: size;
}
.tabaaj img.base { width: 100%; height: 100%; object-fit: cover; }
.tabaaj .grain { width: 100%; height: 100%; object-fit: cover; }
#marqa { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
.tops { position: absolute; inset: 0; pointer-events: none; }
.top {
  position: absolute; width: 27%; aspect-ratio: 1; translate: -50% -50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 68%);
  animation: drop-in var(--d-slow) var(--e-spring) both;
  filter: drop-shadow(0 10px 16px rgb(0 0 0 / 0.55));
}
.top img { width: 100%; height: 100%; object-fit: cover; }
@keyframes drop-in {
  from { scale: 0.4; opacity: 0; }
  to { scale: 1; opacity: 1; }
}
.tabaaj.is-hot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 52%, rgb(212 175 55 / 0.2), transparent 58%);
}
.platter-note {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 6;
  padding: 0.6rem 0.9rem; background: color-mix(in srgb, var(--clay-950) 82%, transparent);
  font-size: var(--fs-small); color: var(--ink-2); text-align: center;
}
.tabaaj.is-ready .platter-note { color: var(--gold); }

.platter-done {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-top: 0.85rem; padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--mint) 76%, var(--clay-950));
  color: var(--ink); font-size: var(--fs-small); line-height: 1.55;
  opacity: 0; transition: opacity var(--d-base) var(--e-out);
}
.platter-done svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .platter-done { transition: none; opacity: 1; } }

.drop-target.is-over { box-shadow: inset 0 0 0 3px var(--gold); }

.board-foot { margin-top: 0.85rem; display: grid; gap: 0.7rem; }
.meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; font-size: var(--fs-small); color: var(--ink-2); }
.meter .bar { height: 6px; background: var(--clay-800); position: relative; overflow: clip; }
.meter .bar i { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0%; background: var(--terra); transition: width var(--d-base) var(--e-out), background var(--d-base) var(--e-out); }
.meter[data-full="1"] .bar i { background: var(--gold); }
.meter b { font-variant-numeric: tabular-nums; color: var(--ink); }
.meter .k { white-space: nowrap; }

/* ticket */
.ticket { background: var(--clay-850); padding: clamp(1rem, 3vw, 1.35rem); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px dashed var(--clay-700); }
.ticket-head .name { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.ticket-head .no { font-variant-numeric: tabular-nums; font-size: var(--fs-tiny); color: var(--ink-2); text-align: end; }
.lines { padding-block: 0.5rem; }
.lines li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.6rem; align-items: baseline;
  padding-block: 0.5rem; font-size: 0.95rem;
  animation: line-in var(--d-base) var(--e-out) both;
}
@keyframes line-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.lines .q { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: var(--fs-small); }
.lines .p { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.lines .k { min-width: 0; }
.lines .k small { display: block; color: var(--ink-2); font-size: var(--fs-tiny); }
.lines .empty { color: var(--ink-2); font-size: var(--fs-small); padding-block: 0.8rem; display: block; }
.ticket-foot { border-top: 1px dashed var(--clay-700); padding-top: 0.85rem; margin-top: 0.35rem; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.ticket-foot .sum { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--gold); font-family: var(--display); }
.chef-note { margin-top: 0.9rem; padding: 0.8rem 0.9rem; background: var(--clay-900); }
.chef-note .k { font-size: var(--fs-tiny); color: var(--gold); display: block; margin-bottom: 0.2rem; }
.chef-note h4 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.2rem; }
.chef-note p { font-size: var(--fs-small); color: var(--ink-2); }
.ticket-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }

/* shelf */
.shelf { margin-top: var(--gap); background: var(--clay-900); padding: clamp(0.9rem, 2.6vw, 1.3rem); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.shelf-head h3 { margin: 0; }
.shelf-head p { font-size: var(--fs-small); color: var(--ink-2); }
.shelf-rail {
  display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.shelf-rail::-webkit-scrollbar { height: 6px; }
.ing {
  flex: 0 0 auto; width: 116px; scroll-snap-align: start;
  background: var(--clay-850); padding: 0.45rem; text-align: start;
  touch-action: none; cursor: grab; color: var(--ink);
  transition: background var(--d-base) var(--e-out), transform var(--d-press) var(--e-out);
  -webkit-tap-highlight-color: transparent;
}
.ing img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 0.4rem; }
.ing .n { display: block; font-size: var(--fs-small); font-weight: 700; line-height: 1.25; }
.ing .pr { display: block; font-size: var(--fs-tiny); color: var(--gold); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .ing:hover { background: var(--clay-800); } }
.ing:active { transform: scale(0.96); }
.ing[aria-pressed="true"] { background: var(--clay-800); box-shadow: inset 0 0 0 2px var(--gold); }
.ing[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.ing .star { position: absolute; }

.drag-ghost {
  position: fixed; z-index: 300; width: 96px; aspect-ratio: 1; pointer-events: none;
  translate: -50% -50%; opacity: 0.92;
  -webkit-mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  filter: drop-shadow(0 12px 20px rgb(0 0 0 / 0.6));
}
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; }

.steps-done { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 1rem; font-size: var(--fs-small); color: var(--ink-2); }
.steps-done li { display: flex; align-items: center; gap: 0.4rem; }
.steps-done li[data-on="1"] { color: var(--gold); }

/* ---------- 11. Menu ---------- */
.menu-split { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .menu-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; } }
.menu-view {
  position: relative; background: var(--clay-900);
  aspect-ratio: 4 / 3; overflow: clip;
}
.menu-view img { width: 100%; height: 100%; object-fit: cover; }
.menu-view .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 1.1rem; background: linear-gradient(to top, rgb(18 10 5 / 0.92), transparent); }
.menu-view .cap h3 { margin-bottom: 0.15rem; }
.menu-view .cap p { font-size: var(--fs-small); color: var(--ink-2); }
.menu-view .tag {
  position: absolute; top: 0; inset-inline-end: 0; padding: 0.45rem 0.75rem;
  background: var(--gold); color: var(--clay-950); font-weight: 700; font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

.menu-list li + li { border-top: 1px solid var(--clay-850); }
.menu-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem;
  align-items: baseline; padding: 1rem 0.4rem; text-align: start; color: var(--ink);
  transition: background var(--d-base) var(--e-out), padding-inline var(--d-base) var(--e-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .menu-row:hover { background: var(--clay-900); } }
.menu-row[aria-current="true"] { background: var(--clay-900); }
.menu-row .t { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.menu-row .d { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--ink-2); }
.menu-row .p { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); white-space: nowrap; }
.menu-row .why { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: var(--fs-tiny); color: var(--ink-3); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.chip {
  min-height: 44px; padding: 0.5rem 0.95rem; background: var(--clay-850); color: var(--ink);
  font-size: var(--fs-small); font-weight: 600;
  transition: background var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
  -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--gold); color: var(--clay-950); }
@media (hover: hover) { .chip:hover { background: var(--clay-800); } }
.chip[aria-pressed="true"]:hover { background: var(--gold-soft); }

.dish-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.dish { background: var(--clay-900); display: flex; flex-direction: column; }
.dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish .body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.dish .body h3 { margin: 0; }
.dish .body p { font-size: var(--fs-small); color: var(--ink-2); }
.dish .row { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.dish .price { font-family: var(--display); font-size: 1.4rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.bits { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; font-size: var(--fs-tiny); color: var(--ink-3); }
.bits li::after { content: " ·"; }
.bits li:last-child::after { content: ""; }

/* ---------- 12. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field > label, .fieldset > legend {
  font-size: var(--fs-small); font-weight: 700; color: var(--ink);
}
.field .hint { font-size: var(--fs-tiny); color: var(--ink-2); }
.field .err { font-size: var(--fs-tiny); color: var(--terra-text); display: flex; align-items: center; gap: 0.35rem; }
.field .err[hidden] { display: none; }
.field .err svg { flex: none; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.85rem;
  background: var(--clay-850); border: 0; border-bottom: 2px solid var(--clay-700);
  color: var(--ink); font-size: 16px; /* 16px: stops the phone zooming on tap */
  transition: border-color var(--d-base) var(--e-out), background var(--d-base) var(--e-out);
}
textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: none; cursor: pointer; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--gold); background: var(--clay-800); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field[data-bad="1"] input, .field[data-bad="1"] select, .field[data-bad="1"] textarea { border-bottom-color: var(--terra-text); }
.row-2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg label {
  flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 0.65rem 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--clay-850); font-size: var(--fs-small); font-weight: 700; cursor: pointer; text-align: center;
  transition: background var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--gold); }
.seg label:has(input:checked) { background: var(--clay-800); box-shadow: inset 0 0 0 2px var(--gold); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

/* spam trap: in the flow, invisible, adds no page width */
.hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.form-state { margin-top: 0.4rem; padding: 0.9rem 1rem; display: none; gap: 0.5rem; align-items: flex-start; }
.form-state[data-show="1"] { display: flex; }
.form-state.on-ok { background: color-mix(in srgb, var(--mint) 58%, var(--clay-950)); color: var(--ink); }
.form-state.on-bad { background: color-mix(in srgb, var(--terra-deep) 55%, var(--clay-950)); color: var(--ink); }
.form-state svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.form-state p { font-size: var(--fs-small); }
.form-state strong { display: block; margin-bottom: 0.15rem; }

.spinner {
  width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- 13. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: flex-end; justify-content: center;
  background: rgb(8 4 2 / 0.82); padding: 0;
}
.modal[data-open="1"] { display: flex; }
.modal .sheet {
  width: 100%; max-width: 560px; max-height: 92svh; overflow-y: auto;
  background: var(--clay-900); box-shadow: var(--float);
  padding: clamp(1.1rem, 4vw, 1.75rem);
  animation: sheet-up var(--d-base) var(--e-out) both;
  padding-bottom: calc(clamp(1.1rem, 4vw, 1.75rem) + env(safe-area-inset-bottom));
}
@keyframes sheet-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .modal { align-items: center; padding: 1.5rem; } }
.modal .x { position: absolute; inset-inline-end: 0.9rem; top: 0.9rem; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-2); }
@media (hover: hover) { .modal .x:hover { color: var(--gold); } }
.modal h2 { margin-bottom: 0.4rem; }
.modal .sub { color: var(--ink-2); margin-bottom: 1.1rem; font-size: var(--fs-small); }
.summary { margin-bottom: 1.1rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.35rem; font-size: var(--fs-small); color: var(--ink-2); }
.summary li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .tot { border-top: 1px solid var(--clay-800); margin-top: 0.4rem; padding-top: 0.6rem; color: var(--ink); font-size: 1rem; }
.time-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.time-chips button { min-height: 40px; padding: 0.35rem 0.7rem; background: var(--clay-850); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.time-chips button[aria-pressed="true"] { background: var(--gold); color: var(--clay-950); font-weight: 700; }
@media (hover: hover) { .time-chips button:hover { background: var(--clay-800); } }

.confirm-mark { width: 54px; height: 54px; color: var(--gold); margin-bottom: 0.6rem; }
.ref {
  display: inline-flex; align-items: baseline; gap: 0.5rem; margin: 0.7rem 0 1rem;
  padding: 0.55rem 0.9rem; background: var(--clay-850);
}
.ref b { font-family: var(--display); font-size: 1.5rem; color: var(--gold); letter-spacing: 0.04em; }
.wa-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem;
  padding: 0.6rem 0.9rem; background: var(--mint); color: var(--ink); font-weight: 700; font-size: var(--fs-small);
  text-decoration: none;
}
@media (hover: hover) { .wa-link:hover { background: color-mix(in srgb, var(--mint) 70%, var(--gold)); color: var(--clay-950); } }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--clay-900); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem clamp(1rem, 3vw, 1.35rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-size: clamp(1.1rem, 3.6vw, 1.35rem); line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 22px; height: 22px; color: var(--gold); transition: rotate var(--d-base) var(--e-out); }
.faq details[open] summary .ico { rotate: 45deg; }
@media (hover: hover) { .faq summary:hover { color: var(--gold); } }
.faq .a { padding: 0 1.35rem 1.2rem; color: var(--ink-2); max-width: 72ch; }
.faq .a strong { color: var(--ink); }

/* ---------- 15. Visit / facts ---------- */
.info-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.info { background: var(--clay-900); padding: clamp(1rem, 3vw, 1.4rem); }
.info h3 { margin-bottom: 0.6rem; }
.info dl { display: grid; gap: 0.45rem; }
.info dt { font-size: var(--fs-tiny); color: var(--gold); }
.info dd { font-size: 0.95rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.35rem; font-size: 0.95rem; }
.hours-list li + li { border-top: 1px solid var(--clay-850); }
.hours-list .d { color: var(--ink-2); }
.hours-list .h { font-variant-numeric: tabular-nums; white-space: nowrap; }

.photo-wide { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) { .photo-wide { aspect-ratio: 21 / 9; } }

.pull {
  font-family: var(--display); font-size: clamp(1.4rem, 5.4vw, 2.3rem); line-height: 1.28;
  max-width: 30ch; color: var(--ink);
}
.pull em { color: var(--gold); font-style: normal; }

.two-col { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .two-col--start { align-items: start; }
}

.steps { display: grid; gap: 1.2rem; counter-reset: s; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.step .n { font-family: var(--display); font-size: 1.7rem; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--ink-2); max-width: 62ch; }

/* ---------- 16. Footer ---------- */
footer.site { background: var(--clay-950); padding-block: clamp(3rem, 8vw, 5rem) 2rem; }
footer.site .big {
  font-family: var(--display); font-weight: 700; line-height: 0.92;
  font-size: clamp(2.5rem, 15vw, 8rem); letter-spacing: -0.025em; color: var(--clay-800);
  margin-bottom: 1.6rem;
}
footer.site .cols { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); margin-bottom: 2.4rem; }
footer.site h4 { font-size: var(--fs-small); color: var(--gold); margin-bottom: 0.6rem; }
footer.site li { padding-block: 0.22rem; font-size: 0.95rem; color: var(--ink-2); }
footer.site a { text-decoration: none; }
@media (hover: hover) { footer.site a:hover { color: var(--gold); } }
footer.site .legal {
  padding-top: 1.4rem; border-top: 1px solid var(--clay-850);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between;
  font-size: var(--fs-tiny); color: var(--ink-3);
}

/* ---------- 17. Motion layers ---------- */
.rise { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(22px); }
  .js .rise.is-in { opacity: 1; transform: none; transition: opacity var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out); }
  .js .rise.d2 { transition-delay: 70ms; }
  .js .rise.d3 { transition-delay: 140ms; }
  .js .rise.d4 { transition-delay: 210ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.scroll-progress {
  position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 130;
  background: var(--gold); transform-origin: right center; transform: scaleX(0);
  pointer-events: none;
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
