/* Page styles for the concept restaurant. Loaded after the engine, whose own rules stay untouched. */
  @font-face { font-family: 'Chiune'; src: url('../fonts/chiune-regular.woff2') format('woff2'); font-weight: 400; size-adjust: 88%; font-display: swap; }
  @font-face { font-family: 'Chiune'; src: url('../fonts/chiune-semibold.woff2') format('woff2'); font-weight: 600; size-adjust: 88%; font-display: swap; }
  @font-face { font-family: 'Savyon'; src: url('../fonts/savyon-regular.woff2') format('woff2'); font-weight: 400; size-adjust: 84%; font-display: swap; }
  @font-face { font-family: 'Savyon'; src: url('../fonts/savyon-medium.woff2') format('woff2'); font-weight: 500; size-adjust: 84%; font-display: swap; }

  :root {
    --sc-canvas: #0d0806;   --sc-surface: #1a0f0a;
    --sc-ink: #f4e8d8;      --sc-ink-soft: #c9b39c;
    --sc-accent: #ff7a33;   --sc-accent-ink: #160b05;
    --sc-font-display: "Chiune", "Times New Roman", serif;
    --sc-font-text: "Savyon", Arial, sans-serif;
    --text-body: clamp(16px, calc(15.49px + .131vw), 18px);
    --text-label: clamp(14px, calc(13.49px + .131vw), 16px);
    --ember: 255, 122, 51;
  }
  body { font-size: var(--text-body); }
  /* Latin tracking rules do not suit Hebrew letterforms. */
  .sc-display, h1, h2, h3 { letter-spacing: 0; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }

  .skip { position: fixed; top: -100px; right: 1rem; z-index: 90; background: var(--sc-accent); color: var(--sc-accent-ink); padding: .6rem 1rem; }
  .skip:focus { top: 1rem; }

  /* The two top buttons stay on screen for the whole page. */
  .bar { gap: .6rem; }
  .bar-actions { display: flex; gap: .45rem; flex: none; }
  .bar .cta { display: inline-flex; align-items: center; min-height: 44px; }
  .cta.cta--ghost { background: rgba(13, 8, 6, .6); color: var(--sc-ink); box-shadow: inset 0 0 0 1px rgba(244, 232, 216, .55); }
  @media (hover: hover) and (pointer: fine) { .cta.cta--ghost:hover { background: rgba(13, 8, 6, .85); box-shadow: inset 0 0 0 1px var(--sc-accent); } }
  @media (max-width: 520px) { .bar.bar { padding-inline: .75rem; } .bar .cta { padding: .35em .5em; font-size: 14px; } .mark { line-height: 1.05; font-size: 24px; } }
  [tabindex="-1"]:focus { outline: 0; }

  /* Tells the visitor there is more below. Pulses gently, and stays still for reduced motion. */
  .scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; margin: 0; color: var(--sc-ink); font-family: var(--sc-font-display); font-size: clamp(19px, calc(17px + .4vw), 24px); line-height: 1.2; text-shadow: 0 2px 12px #000; pointer-events: none; }
  .scroll-hint > * { animation: hint-pulse 1.6s ease-in-out infinite; }
  @keyframes hint-pulse { 50% { opacity: .35; } }
  @media (prefers-reduced-motion: reduce) { .scroll-hint > * { animation: none; } }

  /* Chrome */
  .bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: clamp(.8rem, 1.6vw, 1.4rem) var(--sc-gutter); pointer-events: none; }
  .bar > * { pointer-events: auto; }
  .mark { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(26px, calc(21px + 1.2vw), 40px); color: var(--sc-ink); text-decoration: none; text-shadow: 0 2px 14px rgba(13, 8, 6, .8); }
  .cta { font: 500 var(--text-body) var(--sc-font-text); background: var(--sc-accent); color: var(--sc-accent-ink); border: 0; padding: .7em 1.4em; border-radius: 2px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .14s var(--sc-ease-out), background-color .16s; }
  @media (hover: hover) and (pointer: fine) { .cta:hover { background: #ff965c; } }
  .cta:active { transform: scale(.97); }

  /* Index of the collection: every entry is a coal that heats when you reach it. */
  .index { position: fixed; left: clamp(.9rem, 1.8vw, 2rem); top: 50%; translate: 0 -50%; z-index: 40; list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: .15rem; }
  @media (min-width: 900px) { .index { display: flex; } }
  .index a { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: .7rem; padding: .32rem 0; color: var(--sc-ink); text-decoration: none; font-size: var(--text-label); }
  .index i { width: 10px; height: 10px; border-radius: 50%; background: #3a2a22; flex: none; transition: background-color .5s, box-shadow .5s; }
  .index span { opacity: 0; transition: opacity .18s; text-shadow: 0 1px 8px #000; }
  .index a:hover span, .index a:focus-visible span, .index a[aria-current] span { opacity: 1; }
  .index a[aria-current] i { background: var(--sc-accent); box-shadow: 0 2px 10px 1px rgba(var(--ember), .75); }
  .index a.warm i { background: #7a3a1e; }

  /* Act 1: the hearth, in planes */
  #hearth [data-sc-stage] { overflow: hidden; background: var(--sc-canvas); }
  .plane { position: absolute; will-change: transform; }
  .plane--plate { inset: -6% -3%; width: 106%; height: 112%; max-width: none; object-fit: cover; transform: scale(calc(1 + var(--sc-p, 0) * .14)) translate3d(0, calc(var(--sc-p, 0) * -2vh), 0); filter: brightness(.82); }
  .plane--title { inset: 0; display: grid; place-items: center; transform: translate3d(0, calc(var(--sc-p, 0) * -16vh), 0); }
  .plane--title h1 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(100px, 23vw, 520px); line-height: .9; color: var(--sc-ink); text-shadow: 0 6px 60px rgba(13, 8, 6, .55); }
  .plane--pan { left: 50%; bottom: 3vh; width: clamp(340px, 54vw, 1080px); max-width: none; height: auto; margin-left: calc(clamp(340px, 54vw, 1080px) / -2); transform-origin: 50% 100%; transform: translate3d(0, calc(var(--sc-p, 0) * 9vh), 0) scale(calc(1 + var(--sc-p, 0) * .38)); filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .7)); }
  .plane--smoke { inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: screen; opacity: .55; pointer-events: none; transform: translate3d(0, calc(var(--sc-p, 0) * -22vh), 0) scale(1.15); }
  .hero-floor { position: absolute; inset: auto 0 0 0; height: 26vh; background: linear-gradient(to top, var(--sc-canvas), transparent); pointer-events: none; }
  .label { font-size: var(--text-body); line-height: 1.55; color: var(--sc-ink); max-width: 34ch; margin: 0; text-wrap: pretty; }
  .label b { display: block; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.5em; line-height: 1.2; margin-bottom: .2em; }
  .hero-label { position: absolute; right: var(--sc-gutter); bottom: clamp(1.6rem, 6vh, 4rem); z-index: 6; text-shadow: 0 2px 16px #0d0806; }
  .hero-hint { position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 2rem); translate: -50% 0; z-index: 7; }
  .hero-turn { position: absolute; inset: 22vh var(--sc-gutter) auto var(--sc-gutter); z-index: 6; text-align: center; font-family: var(--sc-font-display); font-size: clamp(30px, calc(21px + 2.4vw), 64px); line-height: 1.1; margin: 0; text-shadow: 0 3px 24px #0d0806; }

  /* Act 2: the fire. Copy sits on the reading side, above a corner scrim. */
  #fire h2 { max-width: 13ch; }
  #fire .sc-body { color: var(--sc-ink); }

  /* Act 3: the menu rail. The engine's rail travels left, which is backwards in
     Hebrew, so this one is driven from --sc-p and travels right. */
  #menu [data-sc-stage] { overflow: hidden; background: #120a07; }
  .rail { position: absolute; top: 0; bottom: 0; right: 0; width: max-content; display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 7rem); padding-inline: clamp(1.5rem, 8vw, 9rem); transform: translate3d(calc(var(--sc-p, 0) * var(--over, 0) * 1px), 0, 0); will-change: transform; }
  .rail__lead, .rail__end { width: clamp(16rem, 28vw, 28rem); flex: none; }
  .rail__lead h2 { margin: 0 0 .25em; font-size: clamp(56px, calc(32px + 6vw), 136px); line-height: 1; font-family: var(--sc-font-display); font-weight: 600; }
  .rail__lead p, .rail__end p { margin: 0; color: var(--sc-ink-soft); max-width: 28ch; }
  .rail__end p { font-family: var(--sc-font-display); font-size: clamp(26px, calc(20px + 1.4vw), 42px); line-height: 1.2; color: var(--sc-ink); }
  .dish { flex: none; width: clamp(16rem, min(30vw, 46vh), 30rem); margin: 0; }
  .dish figure { margin: 0 0 1.1rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; box-shadow: var(--sc-e2); }
  .dish img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .dish h3 { margin: 0 0 .2em; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(28px, calc(22px + 1.2vw), 42px); line-height: 1.1; }
  .dish p { margin: 0; line-height: 1.5; color: var(--sc-ink-soft); }
  .dish p + p { color: var(--sc-ink); }
  @media (prefers-reduced-motion: reduce) {
    #menu [data-sc-stage] { overflow-x: auto; }
    .rail { transform: none; }
  }

  /* Act 4: the chef. The one place that reads like a page. */
  #chef { padding-block: clamp(4rem, 10vh, 8rem); }
  .chef { display: grid; gap: clamp(2rem, 5vw, 6rem); align-items: end; }
  @media (min-width: 900px) { .chef { grid-template-columns: 5fr 7fr; } }
  .chef h2 { margin: 0 0 .5em; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(40px, calc(24px + 3.6vw), 88px); line-height: 1.02; }
  .chef p { margin: 0 0 1em; line-height: 1.7; max-width: 44ch; }
  .chef figure { margin: 0; }
  .chef img { display: block; width: 100%; height: auto; border-radius: 2px; }

  /* Act 5: the peak. Ash below, live coals on a canvas revealed by your breath. */
  #blow [data-sc-stage] { overflow: hidden; background: #0d0806; touch-action: pan-y; }
  .coals { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  #blow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .blow-shade { position: absolute; inset: 0 0 auto 0; height: 62%; background: linear-gradient(to bottom, rgba(13, 8, 6, .82), rgba(13, 8, 6, .55) 55%, transparent); pointer-events: none; }
  .blow-line { position: absolute; inset: 18vh var(--sc-gutter) auto var(--sc-gutter); margin: 0; text-align: center; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(56px, calc(30px + 7vw), 170px); line-height: 1; pointer-events: none; text-shadow: 0 4px 34px rgba(13, 8, 6, .85); }
  .blow-hint { position: absolute; inset: auto var(--sc-gutter) 7vh var(--sc-gutter); margin: 0; text-align: center; color: var(--sc-ink); pointer-events: none; text-shadow: 0 2px 12px #000; }

  /* Act 6: the table. Same image as the reveal's first frame, so the video grows out of it. */
  #table { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; background: var(--sc-canvas); }
  .table-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .table-scrim { position: absolute; inset: 0; background: linear-gradient(to left, rgba(13, 8, 6, .92) 35%, rgba(13, 8, 6, .35)); }
  .table-wrap { position: relative; padding-block: clamp(5.5rem, 12vh, 8rem) clamp(2.5rem, 8vh, 6rem); }
  .book { max-width: 34rem; }
  .book h2 { margin: 0 0 .5em; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(40px, calc(24px + 3.6vw), 80px); line-height: 1.02; }
  .book fieldset { border: 0; padding: 0; margin: 0 0 1.15rem; }
  .book legend { padding: 0; margin-bottom: .5rem; font-weight: 500; color: var(--sc-ink); }
  .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
  .chip { position: relative; display: block; cursor: pointer; }
  .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .chip span { display: grid; place-items: center; min-width: 3.1rem; min-height: 44px; padding: .3rem .85rem; border: 1px solid rgba(244, 232, 216, .45); border-radius: 2px; color: var(--sc-ink); background: rgba(13, 8, 6, .55); line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
  @media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--sc-accent); } }
  .chip input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 500; }
  .chip input:focus-visible + span { outline: 2px solid var(--sc-ink); outline-offset: 2px; }
  .book-sum { margin: 1.4rem 0 1rem; font-weight: 500; font-size: clamp(19px, calc(17px + .5vw), 24px); line-height: 1.35; }
  .chips--hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book-go { width: 100%; min-height: 52px; }
  @media (min-width: 620px) { .book-go { width: auto; min-width: 16rem; } }
  .thanks h2 { margin: 0 0 .4em; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(40px, calc(24px + 3.6vw), 80px); line-height: 1.04; text-wrap: balance; }
  .thanks p { margin: 0 0 1.5rem; max-width: 30ch; font-size: clamp(19px, calc(17px + .5vw), 24px); line-height: 1.4; }
  .thanks .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 14rem; }
  .thanks .scroll-hint { display: flex; align-items: flex-start; margin-top: 1.8rem; }
  .book [hidden] { display: none; }

  /* Act 8: the real ask. A normal section, so the chat can grow as it needs. */
  #talk { background: var(--sc-canvas); }
  .talk { display: grid; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding-block: clamp(4rem, 12vh, 9rem); }
  @media (min-width: 900px) { .talk { grid-template-columns: 5fr 6fr; } }
  .talk h2 { margin: 0 0 .35em; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(44px, calc(24px + 4.6vw), 110px); line-height: 1; text-wrap: balance; }
  .talk p { margin: 0; color: var(--sc-ink-soft); line-height: 1.6; max-width: 36ch; }
  .lead-box { display: grid; gap: 1rem; max-width: 34rem; }
  .lead { display: grid; gap: .9rem; }
  .lead[hidden], .lead [hidden], .lead-done[hidden], .wa[hidden] { display: none; }
  .lead-row { display: grid; gap: .9rem; }
  @media (min-width: 520px) { .lead-row { grid-template-columns: 1fr 1fr; } }
  .field { display: grid; gap: .35rem; font-weight: 500; }
  .field input { width: 100%; min-height: 48px; padding: .5rem .8rem; font: 400 max(16px, var(--text-body)) var(--sc-font-text); color: var(--sc-ink); background: rgba(244, 232, 216, .06); border: 1px solid rgba(244, 232, 216, .45); border-radius: 2px; }
  .field input[dir="ltr"] { text-align: right; }
  .field input:focus { outline: 2px solid var(--sc-accent); outline-offset: 1px; }
  .field input[aria-invalid="true"], .lead-consent input[aria-invalid="true"] { border-color: #ff9d8a; outline-color: #ff9d8a; }
  .field-err { color: #ffb4a3; font-size: var(--text-label); font-weight: 400; }
  .field-err:empty { display: none; }
  .trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .talk p.lead-note { font-size: var(--text-label); max-width: none; }
  .lead-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: var(--text-label); line-height: 1.5; cursor: pointer; }
  .lead-consent input { width: 20px; height: 20px; flex: none; margin: .05rem 0 0; accent-color: var(--sc-accent); }
  .lead-consent a { color: var(--sc-ink); text-underline-offset: 3px; }
  .lead-send { min-height: 52px; }
  .lead-send:disabled { opacity: .65; cursor: default; }
  .talk p.lead-failed { color: #ffb4a3; max-width: none; }
  .talk p.lead-done { font-family: var(--sc-font-display); font-size: clamp(26px, calc(20px + 1.4vw), 40px); line-height: 1.25; color: var(--sc-ink); max-width: none; outline: 0; }
  .wa { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 500; text-decoration: none; }
  .wa--inline { color: var(--sc-ink); border: 1px solid rgba(244, 232, 216, .45); }
  @media (hover: hover) and (pointer: fine) { .wa--inline:hover { border-color: #25d366; } }
  .wa--float { position: fixed; z-index: 45; left: clamp(.9rem, 2vw, 2rem); bottom: calc(clamp(.9rem, 2vw, 2rem) + env(safe-area-inset-bottom)); color: #06170c; background: #25d366; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }
  @media (max-width: 520px) { .wa--float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .wa--float { width: 56px; height: 56px; padding: 0; } }
  .foot { padding: 1.4rem var(--sc-gutter); color: var(--sc-ink-soft); font-size: var(--text-label); line-height: 1.6; text-align: center; border-top: 1px solid rgba(244, 232, 216, .12); }
  .foot a { color: var(--sc-ink); text-underline-offset: 3px; }
  .foot nav { margin-top: .3rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
  #reveal h2 { max-width: 15ch; }

  @media (max-width: 700px) {
    .plane--title { padding-bottom: 26vh; }
    .plane--title h1 { font-size: 27vw; }
    .plane--pan { width: 96vw; margin-left: -48vw; bottom: max(16vh, 11.5rem); }
    .hero-label { bottom: 6.5rem; }
    .dish { width: min(72vw, 44vh); }
    .rail__lead, .rail__end { width: 72vw; }
  }
