/* ============================================================
   Landing — light, editorial gallery (paper, ink, quiet type)
   ============================================================ */
:root {
  --bg: var(--cream);
  --paper: var(--cream);
  --dim: var(--stone);
  --line: var(--line-ink);
  --ember: var(--saffron-text);
  --frame: var(--ink);
  --serif: var(--font-display);
  --body: var(--font-body);
  --sans: var(--font-body);
  --cond: var(--font-display);
  --mono: var(--font-mono);
  --ease: var(--ease-out);
  --rebound: var(--ease-spring);
  --edge: clamp(16px, 3vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 999px; }
.skip:focus { left: 8px; }

.mono { font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cond { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; }
.display-xl { margin: 0; font: 600 var(--t-hero)/.98 var(--serif); letter-spacing: -.045em; }
.display-l { margin: 0; font: 600 var(--t-h1)/1.04 var(--serif); letter-spacing: -.04em; }
.display-xl em, .display-l em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 58%, var(--saffron) 58%, var(--saffron) 84%, transparent 84%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kicker { color: var(--saffron-text); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--saffron); }
.under { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none;
  font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: transform .4s var(--rebound), background .25s, color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill.dark { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.pill.dark:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pill:not(.dark):hover { background: var(--ink); color: var(--bg); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--edge); background: rgba(247, 243, 234, .96); -webkit-
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); font: 600 13px/1 var(--serif); flex: none; }
.brand .mark-img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.links { display: flex; gap: 26px; }
.links a { font-size: 15px; text-decoration: none; color: var(--ink); opacity: .78; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.text-link { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.nav .pill { min-height: 38px; padding: 0 16px; }

/* ---------- gallery ---------- */
.gallery { position: relative; height: 900vh; }
.g-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--cream); }
.g-canvas { position: absolute; inset: 0; }
.g-canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.g-canvas canvas:active { cursor: grabbing; }

.g-intro {
  position: absolute; z-index: 3; left: var(--edge); bottom: clamp(90px, 14vh, 150px); max-width: 560px; pointer-events: none;
  transition: opacity .5s, transform .8s var(--ease);
}
.g-intro::before { /* soft paper wash so type stays legible over the room */
  content: ''; position: absolute; inset: -60px -120px -60px -80px; z-index: -1;
  background: radial-gradient(closest-side, rgba(247, 243, 234, .92), rgba(247, 243, 234, 0)); pointer-events: none;
}
.g-intro .cta, .g-intro a, .g-intro button { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--dim); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--veg); box-shadow: 0 0 0 4px rgba(46, 155, 87, .15); }
.lead { margin: 22px 0 0; max-width: 46ch; font: 400 clamp(17px, 1.5vw, 20px)/1.5 var(--body); color: var(--ink-3); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.g-intro.gone { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.g-intro.gone * { pointer-events: none !important; }

.g-toggle { position: absolute; z-index: 4; top: 82px; right: var(--edge); display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--ink); background: rgba(247, 243, 234, .8); }
.g-toggle span, .g-toggle a { padding: 7px 14px; border-radius: 999px; font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.g-toggle .on { background: var(--ink); color: var(--bg); }

.g-caption {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(28px, 6vh, 56px); transform: translateX(-50%); text-align: center; display: grid; justify-items: center; gap: 6px;
  transition: opacity .5s, transform .6s var(--ease); width: min(90vw, 640px);
}
.g-caption .k { color: var(--dim); }
.g-caption b { display: block; font-size: clamp(30px, 4.2vw, 54px); line-height: 1; text-shadow: 0 0 30px rgba(247, 243, 234, .9); transition: opacity .35s, transform .5s var(--ease); }
.g-caption b.swap { opacity: 0; transform: translateY(8px); }
.g-caption a { color: var(--ink); }
.g-caption.hidden, .g-controls .hint.hidden { opacity: 0; pointer-events: none; }
.g-caption.waiting { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }

.g-controls { position: absolute; z-index: 3; right: var(--edge); bottom: clamp(28px, 6vh, 56px); display: grid; justify-items: end; gap: 14px; }
.g-controls .arrows { order: -1; display: flex; gap: 10px; }
.g-controls .hint { display: grid; justify-items: end; gap: 6px; color: var(--ink); transition: opacity .4s; }
.g-controls .hint span:last-child { color: var(--dim); }
.round { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink); background: rgba(247, 243, 234, .75); transition: transform .35s var(--rebound), background .2s, color .2s; }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.round[disabled] { opacity: .3; pointer-events: none; }
.g-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(17, 17, 16, .08); }
.g-progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.g-cursor {
  position: fixed; z-index: 50; left: 0; top: 0; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); pointer-events: none;
  opacity: 0; transform: translate(-9999px, 0); transition: opacity .2s; white-space: nowrap;
}
.g-cursor.on { opacity: 1; }

.g-detail {
  position: absolute; z-index: 5; top: 50%; right: var(--edge); width: min(400px, 36vw); padding: 30px 30px 24px; background: #FFFDF8;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(40, 30, 20, .35);
  transform: translate(30px, -50%); opacity: 0; pointer-events: none; transition: opacity .45s, transform .7s var(--ease);
}
.g-detail.open { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.g-detail .mono:first-child { color: var(--ember); margin: 0 0 14px; }
.g-detail h2 { margin: 0; font: 500 clamp(28px, 2.6vw, 40px)/1.02 var(--serif); letter-spacing: -.02em; }
.g-detail .price { margin: 10px 0 0; font: 600 22px/1 var(--serif); color: var(--ember); }
.g-detail .desc { margin: 16px 0 0; font: 400 18px/1.45 var(--body); color: var(--ink-3); }
.facts { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.g-detail .fine { margin: 16px 0 0; color: var(--dim); font-size: 10px; }

.g-fallback { position: absolute; inset: 64px 0 0; overflow-x: auto; display: flex; gap: 24px; align-items: center; padding: 0 var(--edge); }
.g-fallback figure { flex: 0 0 220px; margin: 0; }
.g-fallback img { width: 100%; border: 10px solid #FFFDF8; outline: 6px solid var(--frame); }
.g-fallback figcaption { margin-top: 18px; font: 500 17px/1.2 var(--serif); }
.no-webgl .gallery { height: auto; }
.no-webgl .g-stage { height: 100svh; }

/* look-closer mode: the room falls quiet around the print */
.g-stage.focused .g-controls, .g-stage.focused .g-toggle, .g-stage.focused .g-progress { opacity: 0; pointer-events: none; }
.g-controls, .g-toggle { transition: opacity .4s; }

/* ---------- sections ---------- */
.sec { position: relative; z-index: 2; padding: clamp(80px, 12vw, 160px) var(--edge); max-width: 1320px; margin: 0 auto; }
.body { font: 400 19px/1.55 var(--body); color: var(--ink-3); max-width: 48ch; margin: 26px 0 0; }
.book-sec { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.ticks { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font: 400 17px/1.45 var(--body); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 16px; height: 1px; background: var(--ink); }

/* CSS 3D menu book that opens on hover */
.book-demo { display: grid; place-items: center; perspective: 1800px; min-height: 520px; }
.b3d { position: relative; width: min(330px, 70vw); aspect-ratio: 1 / 1.42; transform-style: preserve-3d; transform: rotateX(18deg) rotateZ(-8deg) rotateY(-12deg); transition: transform 1.2s var(--ease); }
.book-demo:hover .b3d, .b3d.open { transform: rotateX(10deg) rotateZ(-4deg) rotateY(-4deg) translateX(18%); }
.b3d::after { content: ''; position: absolute; left: 6%; right: -4%; bottom: -9%; height: 14%; background: radial-gradient(closest-side, rgba(40, 25, 15, .35), transparent); filter: blur(8px); transform: translateZ(-30px); }
.b3d-cover, .b3d-page { position: absolute; inset: 0; transform-origin: 0 50%; border-radius: 2px 6px 6px 2px; }
.b3d-page { background: linear-gradient(90deg, #e7e2d6, #f6f4ee 12%); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: transform 1.2s var(--ease); padding: 12% 11%; display: flex; flex-direction: column; gap: 9px; }
.b3d-page.p3 { transform: translateZ(-4px); }
.b3d-page.p2 { transform: translateZ(-2px); }
.book-demo:hover .b3d-page.p2, .b3d.open .b3d-page.p2 { transform: rotateY(-28deg); }
.pg-k { font: 600 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.pg-t { font: 600 30px/1 var(--serif); margin-bottom: 10px; }
.pg-r { height: 8px; border-radius: 4px; background: rgba(17, 17, 16, .1); }
.pg-r.short { width: 62%; }
.b3d-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--saffron); text-align: center; padding: 10%;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), linear-gradient(160deg, #2E2722, #221D19 50%, #0F0D0B);
  box-shadow: inset 0 0 0 1px rgba(244, 165, 28, .12), inset 10px 0 18px rgba(0, 0, 0, .35), 0 30px 60px -25px rgba(40, 15, 5, .6);
  transition: transform 1.2s var(--ease); backface-visibility: hidden;
}
.b3d-cover::before { content: ''; position: absolute; inset: 7%; border: 1px solid rgba(244, 165, 28, .55); }
.book-demo:hover .b3d-cover, .b3d.open .b3d-cover { transform: rotateY(-152deg); }
.c-mono { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--saffron); color: var(--ink); font: 700 20px/1 var(--serif); }
.c-k { font: 600 9px/1 var(--mono); letter-spacing: .4em; text-transform: uppercase; opacity: .8; }
.c-t { font: 700 32px/1.02 var(--serif); letter-spacing: -.03em; }
.c-r { width: 40%; height: 1px; background: rgba(244, 165, 28, .6); }

.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 28px 28px 10px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; }
.steps .n { display: block; font-size: 64px; line-height: 1; margin-bottom: 26px; }
.steps h3 { margin: 0 0 10px; font: 500 28px/1.1 var(--serif); }
.steps p { margin: 0; font: 400 17px/1.5 var(--body); color: var(--ink-3); }

.kitchen { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; border-top: 1px solid var(--line); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 40px 0 36px; }
.features dt { font: 500 21px/1.2 var(--serif); margin-bottom: 6px; }
.features dd { margin: 0; font: 400 16px/1.5 var(--body); color: var(--dim); }
.qr-card { margin: 0; justify-self: center; display: grid; gap: 20px; justify-items: center; text-align: center; }
.qr-frame { padding: 22px; background: #FFFDF8; outline: 10px solid var(--frame); box-shadow: 0 40px 60px -30px rgba(40, 25, 15, .45); transform: rotate(-2deg); transition: transform .8s var(--rebound); }
.qr-frame:hover { transform: rotate(0); }
.qr-frame img { width: 220px; height: 220px; }
.qr-card figcaption { display: grid; gap: 6px; }
.qr-card em { font: 400 16px/1.4 var(--body); color: var(--dim); max-width: 30ch; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px var(--edge) 40px; border-top: 1px solid var(--line); color: var(--dim); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }


/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .book-sec, .kitchen { grid-template-columns: 1fr; }
  .book-demo { min-height: 440px; order: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav { height: 56px; }
  .brand .wordmark { font-size: 17px; }
  .text-link { display: none; }
  .g-toggle { top: 68px; }
  .g-intro { left: 16px; right: 16px; bottom: auto; top: 96px; }
  .g-intro::before { inset: -40px -40px -40px -40px; }
  .display-xl { font-size: clamp(46px, 13.5vw, 64px); }
  .lead { font-size: 16.5px; }
  .g-caption { bottom: 96px; }
  .g-caption b { font-size: 32px; }
  .g-controls { left: 16px; right: 16px; bottom: 22px; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .g-controls .arrows { order: 0; }
  .g-controls .hint { justify-items: start; font-size: 9.5px; }
  .round { width: 46px; height: 46px; }
  .g-detail { top: auto; bottom: 0; left: 0; right: 0; width: auto; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); transform: translateY(40px); border-left: 0; border-right: 0; border-bottom: 0; }
  .g-detail.open { transform: none; }
  .g-detail .mono:first-child { margin-bottom: 8px; font-size: 10px; }
  .g-detail h2 { font-size: 26px; }
  .g-detail .price { font-size: 18px; margin-top: 6px; }
  .g-detail .desc { font-size: 15.5px; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .facts { margin-top: 12px; padding-top: 10px; font-size: 10px; gap: 6px 14px; }
  .d-actions { flex-wrap: nowrap; margin-top: 14px; }
  .d-actions .pill { min-height: 42px; padding: 0 14px; font-size: 10px; }
  .d-actions .pill.dark { flex: 1; }
  .g-detail .fine { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 20px; border-right: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--stone); }
.foot-links a:hover { color: var(--ink); }

/* "At the table" visual: a stack of real dish photos with a split-bill card */
.photo-stack { position: relative; min-height: 520px; display: grid; place-items: center; }
.photo-stack img { position: absolute; width: min(260px, 52vw); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 50px -28px rgba(20, 17, 15, .55); }
.photo-stack img:nth-child(1) { transform: translate(-34%, -6%) rotate(-8deg); }
.photo-stack img:nth-child(2) { transform: translate(30%, -12%) rotate(6deg); }
.photo-stack img:nth-child(3) { transform: translate(0, 6%) rotate(-1deg); z-index: 1; }
.split-card { position: absolute; z-index: 2; right: 4%; bottom: 6%; display: grid; gap: 8px; min-width: 240px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: var(--cream); box-shadow: 0 24px 40px -20px rgba(20, 17, 15, .7); }
.split-card .mono { color: var(--stone-light); }
.split-card b { font: 700 28px/1 var(--font-display); letter-spacing: -.03em; }
.sc-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(247, 243, 234, .85); }
.sc-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); flex: none; }
@media (max-width: 980px) { .photo-stack { min-height: 440px; order: 2; } }
@media (max-width: 520px) { .split-card { right: 0; left: 0; margin: 0 auto; width: max-content; } }
.ticks em { font-style: normal; font-weight: 600; }
