/* Hallmark · shape: Scroll Story · genre: editorial · theme: Solstice (deal 1/3, seed tamarind-multi-cuisine-restaurant-2935·cffbb181·2026-11-28·r0) · job: book · draw: manual
 * hero: Poster · nav: edge-aligned, wordmark, four links and one call · footer: mast · imagery: photographs, the restaurant's own from Google Maps, 6 · signature: the lit Kinross Avenue front held under the head while the page scrolls past it at three depths · solstice: long-light
 * axes: light/high-contrast-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V4 · weakest: R, the bento carries four photographs; cut the second interior and the night facade to keep the page at a third pictures */
/* Hallmark · answered F8 · the user asked for a multi-layer parallax scroll story in so many words; every layer is scroll-scrubbed with animation-timeline, static without support, off under reduced motion */
/* Hallmark · dismissed 23 · the spine fill is gold, a hairline two pixels wide */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- chrome ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.spine { position: fixed; inset-block: 0; left: max(1rem, 2vw); width: 2px; background: var(--color-rule); z-index: var(--z-sticky-nav); }
.spine::after { content: ""; position: absolute; inset: 0; background: var(--color-gold); transform-origin: top; transform: scaleY(0); }
@media (max-width: 40rem) { .spine { display: none; } }

.nav { position: relative; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__row { display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.wordmark { font: 400 var(--text-xl)/1 var(--font-display); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links { display: flex; gap: var(--space-lg); margin-inline: auto; font-size: var(--text-sm); }
.nav__links a { text-decoration: none; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.nav__links a:hover { border-bottom-color: var(--color-accent); }
@media (max-width: 60rem) { .nav__links { display: none; } .nav__call { margin-left: auto; } }

/* ---------- controls: the theme's pair ---------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-xl); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-sm)/1 var(--font-outlier); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklab, var(--color-accent) 85%, var(--color-ink)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--secondary { min-height: 0; padding: var(--space-md) 0 var(--space-2xs); border-radius: 0; background: none; color: var(--color-ink); border-bottom: var(--rule-bar) solid var(--color-ink); }
.btn--secondary:hover { background: none; color: var(--color-accent); border-bottom-color: var(--color-accent); }
.btn--secondary-light { color: var(--color-paper); border-bottom-color: var(--color-gold); }
.btn--secondary-light:hover { color: var(--color-gold); }

/* ---------- photographs ---------- */
.photo { margin: 0; border-radius: var(--radius-card); }
.photo > img { outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--space-md) var(--space-lg); font: 600 var(--text-xs)/1.3 var(--font-outlier); color: var(--color-paper); background: linear-gradient(to top, color-mix(in oklab, var(--color-ink) 70%, transparent), transparent); }

/* ---------- hero: Poster, lit from the left, framed in gold ---------- */
.hero { position: relative; min-height: 92dvh; display: grid; align-items: end; isolation: isolate; overflow: clip; color: var(--color-paper); background: var(--color-ink); }
.hero__photo { position: absolute; inset: -14% 0 -14% 0; margin: 0; z-index: 1; background: var(--color-ink); color: var(--color-paper); }
.hero__photo > img { filter: sepia(0.28) saturate(0.94) brightness(0.9); transform-origin: 60% 50%; }
/* the overlay: ink from the text's side, a warm floor, and the lit glass left clear on the right */
.hero__scrim { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(100deg, color-mix(in oklab, var(--color-ink) 92%, transparent) 0%, color-mix(in oklab, var(--color-ink) 72%, transparent) 36%, color-mix(in oklab, var(--color-ink) 20%, transparent) 62%, transparent 82%),
  linear-gradient(to top, color-mix(in oklab, var(--color-ink) 90%, transparent) 0%, transparent 45%); }
.hero__grain { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.14; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__frame { position: absolute; inset: var(--space-lg); z-index: 4; pointer-events: none; border: var(--rule-hair) solid color-mix(in oklab, var(--color-gold) 70%, transparent); }
.hero__text { position: relative; z-index: 5; padding-block: var(--space-2xl) var(--space-3xl); display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { font-size: clamp(2.75rem, 6vw + 0.5rem, 6rem); line-height: 1; max-width: 14ch; }
.hero .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero .line > span { display: block; }
.hero .lead { color: var(--color-paper-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-xl); align-items: center; margin-top: var(--space-xs); }
.hero .btn--secondary { color: var(--color-paper); border-bottom-color: var(--color-gold); }
.hero .btn--secondary:hover { color: var(--color-gold); }
@media (max-width: 40rem) { .hero__frame { inset: var(--space-sm); } }

/* the entrance: the photograph settles from a slow zoom, each headline line rises out of its mask, then the rest, then the frame */
.js .reveal:not(.mask) { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .reveal:not(.mask).is-in { opacity: 1; transform: none; }
.js .mask .line > span { transform: translateY(110%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 120ms); }
.js .mask.is-in .line > span { transform: none; }
.js .hero__frame { transform: scale(1.03); transition-duration: 1200ms; }
.js .hero__frame.is-in { transform: none; }
.js .hero__photo > img { animation: hero-settle 1800ms var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.12); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---------- arrive, inside, upstairs: a pinned chapter ---------- */
.chapter { min-height: 340vh; padding-top: var(--section-gap); }
.chapter__pin { position: sticky; top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; min-height: calc(100dvh - 2 * var(--space-xl)); }
.chapter__photo { aspect-ratio: 4 / 3; min-height: 440px; max-height: calc(100dvh - 2 * var(--space-xl)); box-shadow: var(--shadow-card); }
/* static state: the dining room; the door and the upstairs floor only appear through the choreography */
.chapter__layer--up { z-index: 2; transform: translateY(100%); }
.chapter__layer--door { z-index: 3; opacity: 0; }
.chapter__note { position: absolute; left: var(--space-lg); right: var(--space-lg); bottom: var(--space-lg); z-index: 4; margin: 0; max-width: 28ch; font: 400 var(--text-title)/1.2 var(--font-display); color: var(--color-paper); text-shadow: 0 1px 2px color-mix(in oklab, var(--color-ink) 60%, transparent); }
.chapter__text { display: grid; gap: var(--space-2xl); }
.chapter__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.chapter__steps li { counter-increment: step; position: relative; padding: var(--space-lg) 0 var(--space-lg) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); line-height: 1.4; color: var(--color-ink-2); }
.chapter__steps li::before { content: counter(step); position: absolute; left: 0; top: var(--space-lg); font: 400 var(--text-xl)/1 var(--font-display); color: var(--color-gold); }
.chapter__steps li:last-child { border-bottom: var(--rule-bar) solid var(--color-ink); }
.chapter__steps b { font-weight: 500; color: var(--color-ink); }
@media (max-width: 60rem) {
  .chapter { min-height: 0; }
  .chapter__pin { position: static; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; }
  .chapter__photo { min-height: 0; max-height: none; }
  .chapter__layer, .chapter__note { display: none; }
}

/* ---------- the menu: a book ---------- */
.band { padding-block: var(--section-gap-s); }
.band--paper { background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-ink); }
.band--ink { background: var(--color-ink); color: var(--color-paper); }
.menu { margin-top: var(--section-gap-l); }
.menu__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.menu__head .lead { color: var(--color-ink-2); }
.book-stage { position: relative; perspective: 2600px; perspective-origin: 50% 40%; padding-block: var(--space-lg); }
/* the place setting: a spoon left, a fork right, laid beside the closed cover and drawn away as it opens */
.cutlery-set { position: absolute; inset: 0; pointer-events: none; }
.cutlery { position: absolute; top: 50%; width: auto; height: 68%; filter: drop-shadow(10px 14px 10px color-mix(in oklab, var(--color-ink) 28%, transparent)); transition: opacity var(--dur-long) var(--ease-in-out), transform var(--dur-long) var(--ease-in-out); }
.cutlery--spoon { right: calc(50% + 290px); transform: translateY(-50%) rotate(-6deg); }
.cutlery--fork { left: calc(50% + 290px); transform: translateY(-50%) rotate(6deg); }
.book-stage:has(.book:not([data-flipped="0"])) .cutlery { opacity: 0; }
.book-stage:has(.book:not([data-flipped="0"])) .cutlery--spoon { transform: translate(-40px, -50%) rotate(-6deg); }
.book-stage:has(.book:not([data-flipped="0"])) .cutlery--fork { transform: translate(40px, -50%) rotate(6deg); }
.book { position: relative; width: min(100%, 1040px); margin-inline: auto; aspect-ratio: 990 / 700; transform-style: preserve-3d; transition: transform var(--dur-long) var(--ease-in-out); cursor: pointer; }
.book[data-flipped="0"] { transform: translateX(-25%); }
.sheet { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1100ms var(--ease-in-out); }
.sheet.is-turned { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; background: var(--color-paper); box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--color-ink) 45%, transparent); outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 14%, transparent); outline-offset: -1px; }
.face > img { width: 100%; height: 100%; object-fit: cover; }
.face--back { transform: rotateY(180deg); }
/* the gutter shadow and the lift of a turning page */
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, color-mix(in oklab, var(--color-ink) 22%, transparent), transparent 12%); transition: opacity 1100ms var(--ease-in-out); }
.face--back::after { background: linear-gradient(to left, color-mix(in oklab, var(--color-ink) 22%, transparent), transparent 12%); }
.book__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-xl); margin-top: var(--space-2xl); }
.book__count { font: 600 var(--text-sm)/1 var(--font-outlier); color: var(--color-muted); min-width: 10ch; text-align: center; }
.btn--secondary:disabled { border-bottom-color: var(--color-rule); }
@media (max-width: 60rem) {
  .menu__head { grid-template-columns: minmax(0, 1fr); }
  .cutlery-set { display: none; }
  /* phones: one page at a time; the current page turns away about its left edge, the next lies beneath */
  .book-stage { perspective: 1400px; perspective-origin: 50% 50%; }
  .book, .book[data-flipped="0"] { transform: none; aspect-ratio: 990 / 1400; cursor: default; }
  .sheet, .sheet.is-turned { position: static; width: auto; height: auto; transform: none; display: contents; }
  .face, .face--back { transform: none; transform-origin: left center; transition: transform 900ms var(--ease-in-out), visibility 0s 0s; }
  .face.is-past { transform: rotateY(-180deg); visibility: hidden; transition: transform 900ms var(--ease-in-out), visibility 0s 900ms; }
  .face::after { display: none; }
  .face:empty { display: none; }
  .book__controls { gap: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) { .book, .sheet, .face::after, .cutlery { transition: none; } }

/* ---------- out to the Pod: pinned, the plates come out of the kitchen ---------- */
.plates { min-height: 300vh; padding-top: var(--section-gap); }
.plates__pin { position: sticky; top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: calc(100dvh - 2 * var(--space-xl)); }
.plates__pod { position: relative; aspect-ratio: 4 / 5; min-height: 440px; max-height: calc(100dvh - 2 * var(--space-xl)); box-shadow: var(--shadow-card); }
.plates__text { display: grid; gap: var(--space-md); }
.plates .lead { color: var(--color-ink-2); margin-bottom: var(--space-xl); }
.plates__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.plate { position: relative; aspect-ratio: 4 / 5; }
@media (max-width: 60rem) {
  .plates { min-height: 0; }
  .plates__pin { position: static; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; }
  .plates__pod { min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .plates__row { grid-template-columns: minmax(0, 1fr); }
  .plate { aspect-ratio: 4 / 3; }
}

/* ---------- visit: the close ---------- */
.visit { position: relative; overflow: clip; }
.visit__photo { position: absolute; inset: 0; margin: 0; z-index: 0; }
.visit__photo > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: sepia(0.28) saturate(0.94) brightness(0.9); }
.visit__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.visit .lead { color: var(--color-paper-3); margin-top: var(--space-md); }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--space-xl); align-items: center; margin-top: var(--space-xl); }
.visit__facts { margin: 0; display: grid; }
.visit__facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); padding: var(--space-md) 0; border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-gold) 55%, transparent); }
.visit__facts > div:last-child { border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-gold) 55%, transparent); }
.visit__facts dt { font: 600 var(--text-sm)/1.5 var(--font-outlier); color: var(--color-gold-2); }
.visit__facts dd { margin: 0; }
.visit a:hover { text-decoration-color: var(--color-gold); }
@media (max-width: 60rem) { .visit__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } }

/* ---------- a call button that stays in reach on a phone ---------- */
.call-fab { display: none; position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-sticky-nav); box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--color-ink) 60%, transparent); }
@media (max-width: 60rem) { .call-fab { display: inline-flex; } }

/* ---------- footer: a mast ---------- */
.footer { padding-block: var(--section-gap-s) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__row { display: grid; gap: var(--space-lg); }
.footer__mark { font: 400 var(--text-display-s)/1 var(--font-display); }
.footer__line { color: var(--color-ink-2); }
.footer__credits { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); max-width: 65ch; }
.footer__links { display: flex; gap: var(--space-lg); font: 600 var(--text-sm)/1.5 var(--font-outlier); color: var(--color-muted); }

/* ---------- scroll choreography: the story, every beat scrubbed, static where unsupported ---------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 40rem) {
    /* reading progress */
    .spine::after { animation: spine-grow linear both; animation-timeline: scroll(root); }
    @keyframes spine-grow { to { transform: scaleY(1); } }

    /* arrive: the street walks you to the door; the edges close in; the text parts */
    .hero__photo { animation: hero-back linear both; animation-timeline: scroll(root); animation-range: 0 100vh; transform-origin: 48% 62%; }
    @keyframes hero-back { from { transform: translateY(-4%) scale(1); } to { transform: translateY(6%) scale(1.3); } }
    .hero__scrim { animation: hero-mid linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-mid { to { opacity: 1.6; } }
    .hero h1 { animation: hero-head linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes hero-head { to { transform: translateY(-34%); opacity: 0; } }
    .hero .lead { animation: hero-lead linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes hero-lead { to { transform: translateY(-14%); opacity: 0; } }
    .hero__actions { animation: hero-act linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    @keyframes hero-act { to { transform: translateY(10%); opacity: 0; } }
    .hero__frame { animation: hero-frame linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-frame { to { transform: scale(0.94); opacity: 0; } }

    /* inside: the door fades to the dining room, the note wipes in, the facts arrive, then upstairs slides up */
    .chapter { view-timeline: --chapter block; }
    .chapter__layer--door { animation: door-open linear both; animation-timeline: --chapter; animation-range: contain 0% contain 22%; }
    @keyframes door-open { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.08); } }
    .chapter__note { animation: note-wipe linear both; animation-timeline: --chapter; animation-range: contain 18% contain 34%; }
    @keyframes note-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-0.25em); } to { clip-path: inset(0 0 0 0); transform: none; } }
    .chapter__steps li { animation: chapter-step linear both; animation-timeline: --chapter; }
    .chapter__steps li:nth-child(1) { animation-range: contain 26% contain 42%; }
    .chapter__steps li:nth-child(2) { animation-range: contain 42% contain 58%; }
    .chapter__steps li:nth-child(3) { animation-range: contain 66% contain 82%; }
    @keyframes chapter-step { from { opacity: 0.18; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .chapter__layer--up { animation: go-up linear both; animation-timeline: --chapter; animation-range: contain 60% contain 78%; }
    @keyframes go-up { from { transform: translateY(100%); } to { transform: none; } }

    /* the Pod: the kitchen holds, the plates come out one at a time */
    .plates { view-timeline: --plates block; }
    .plates__pod > img { animation: pod-drift linear both; animation-timeline: --plates; animation-range: contain 0% contain 100%; }
    @keyframes pod-drift { from { transform: scale(1.1) translateY(2%); } to { transform: scale(1) translateY(-2%); } }
    .plates__row li { animation: plate-out linear both; animation-timeline: --plates; }
    .plates__row li:nth-child(1) { animation-range: contain 15% contain 35%; }
    .plates__row li:nth-child(2) { animation-range: contain 38% contain 58%; }
    .plates__row li:nth-child(3) { animation-range: contain 61% contain 81%; }
    @keyframes plate-out { from { opacity: 0; transform: translate(-60%, 24%) scale(0.72) rotate(-6deg); } to { opacity: 1; transform: none; } }

    /* the menu: the book rises from the table and the place setting slides in */
    .book-stage { animation: book-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes book-rise { from { transform: translateY(14%) scale(0.94); opacity: 0.5; } to { transform: none; opacity: 1; } }
    .cutlery-set { animation: setting-in linear both; animation-timeline: view(); animation-range: entry 30% entry 100%; }
    @keyframes setting-in { from { opacity: 0; transform: scaleX(1.18); } to { opacity: 1; transform: none; } }

    /* leave: the street at night comes up behind the hours */
    .visit__photo > img { animation: street-up linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes street-up { from { transform: scale(1.12) translateY(6%); } to { transform: scale(1) translateY(0); } }
    .visit__grid { animation: settle linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    @keyframes settle { from { opacity: 0.3; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .mask .line > span, .js .hero__frame { opacity: 1; transform: none; transition: none; }
  .js .hero__photo > img { animation: none; }
  .btn { transition: background-color var(--dur-short) linear; }
  .nav__links a { transition: none; }
}
