@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --nero: #0e0c0b;
  --nero-2: #1a1614;
  --carta: #f2ebe0;
  --carta-2: rgba(242, 235, 224, .62);
  --rosso: #b8312f;
  --oro: #d4a24c;
  --line: rgba(242, 235, 224, .14);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--nero); color: var(--carta); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
button, input, select { font: inherit; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
.skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px; background: var(--rosso); color: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }
.press, .btn { transition: transform 140ms var(--ease); }
.press:active, .btn:active { transform: scale(.97); }

/* ── Header ── */
header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; padding: 0 clamp(18px, 4vw, 60px); transition: background 300ms; }
header.fixed { background: rgba(14, 12, 11, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 -1px var(--line); }
.logo { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; text-decoration: none; line-height: 1; }
.logo b { font-size: 18px; letter-spacing: .16em; }
.logo i { font-family: "Zen Old Mincho", serif; font-style: normal; font-size: 18px; color: var(--oro); }
.logo small { grid-column: 1 / -1; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; margin-top: 4px; }
header nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
header nav a { text-decoration: none; opacity: .75; transition: opacity 160ms; }
header nav a:hover { opacity: 1; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.menu-button { display: none; width: 40px; height: 40px; padding: 0; place-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; }
.menu-button i { display: block; width: 16px; height: 2px; background: var(--carta); }
.mobile-nav { position: fixed; z-index: 19; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 22px; padding: 40px; background: var(--nero); font-family: "Zen Old Mincho", serif; font-size: 34px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; }
.mobile-nav button { align-self: flex-start; border: 0; background: var(--oro); color: var(--nero); padding: 12px 20px; border-radius: 2px; font: 600 15px "DM Sans", sans-serif; }

/* ── Buttons / type ── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 2px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.btn.oro { background: var(--oro); color: var(--nero); }
.btn.ghost { border-color: var(--line); color: var(--carta); background: rgba(242, 235, 224, .04); }
.btn.wide { width: 100%; justify-content: center; }
.btn span { transition: transform 200ms var(--ease); }
.btn:hover span { transform: translateX(3px); }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--oro); margin-bottom: 14px; }
.section-head { max-width: 640px; margin-bottom: 34px; }
h2 { font-family: "Zen Old Mincho", serif; font-weight: 500; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: .01em; }
h2 em { font-style: normal; color: var(--oro); }
.lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; max-width: 460px; color: var(--carta-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
section { padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 60px); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.show { opacity: 1; transform: none; }
.readout { font: 500 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--carta-2); }
.readout b { color: var(--oro); font-weight: 600; }
.cue { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .45; }

/* ── Pinned stages ── */
[data-pin] { position: relative; padding: 0; }
[data-pin] .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
[data-pin] canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── Hero: frame sequence ──
   Ten photographs of the courses stacked in the same place; only the current
   one is visible. They were shot in the dining room at night, so they carry
   their own dark ground and can run full-bleed on the right — a soft fade on
   the left is all that keeps the copy legible. */
.hero { height: 460vh; }
.seq { position: absolute; inset: 0; }
.seq img { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: var(--o, 0); transform: scale(var(--s, 1)); transform-origin: 70% 50%; transition: opacity 260ms linear, transform 360ms var(--ease-soft); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%); }
.seq::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 11, .55), transparent 22%, transparent 78%, rgba(14, 12, 11, .7)); pointer-events: none; }
.readout em { font-style: normal; color: var(--carta); }
.hud { position: absolute; inset: 0; pointer-events: none; padding: 110px clamp(18px, 4vw, 60px) 60px; display: grid; align-content: center; justify-items: start; }
.hud > .eyebrow, .hud > h1, .hud > .hero-actions { max-width: 560px; }
.hud > .lead { max-width: 440px; }
.hud .btn, .hud a { pointer-events: auto; }
.hud h1 { font-family: "Zen Old Mincho", serif; font-weight: 500; font-size: clamp(46px, 7vw, 92px); line-height: 1.02; }
.hud h1 em { font-style: normal; color: var(--oro); }
.hud .readout { position: absolute; left: clamp(18px, 4vw, 60px); bottom: 34px; }
.hud .rail { position: absolute; right: clamp(18px, 4vw, 60px); top: 22%; bottom: 22%; width: 2px; background: var(--line); border-radius: 2px; }
.hud .rail i { position: absolute; left: 0; top: 0; width: 100%; background: var(--oro); border-radius: 2px; }
.hud .cue { position: absolute; right: clamp(18px, 4vw, 60px); bottom: 34px; }

/* ── Omakase: helix ── */
.omakase { height: 400vh; background: #060606; }
.copy { position: absolute; width: min(360px, 80%); pointer-events: none; opacity: var(--s, 0); transform: translateY(calc((1 - var(--s, 0)) * 12px)); }
.copy h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.copy p:last-child { font-size: 14.5px; line-height: 1.6; color: var(--carta-2); }
.c1 { left: clamp(18px, 4vw, 60px); top: 34%; }
.c2 { right: clamp(18px, 4vw, 60px); top: 16%; text-align: right; }
.c3 { right: clamp(18px, 4vw, 60px); bottom: 14%; text-align: right; }
.omakase .readout { position: absolute; left: clamp(18px, 4vw, 60px); bottom: 34px; }
.omakase .cue { position: absolute; right: clamp(18px, 4vw, 60px); bottom: 34px; opacity: var(--cue, .45); }

/* ── Formule / banco / store ── */
.menu { background: var(--nero-2); }
.formule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.formula { display: grid; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: rgba(242, 235, 224, .03); }
.formula small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.formula b { font-family: "Zen Old Mincho", serif; font-weight: 500; font-size: 30px; }
.formula p { font-size: 14px; line-height: 1.55; color: var(--carta-2); }
.formula strong { margin-top: 10px; font-family: "Zen Old Mincho", serif; font-size: 28px; font-weight: 500; }
.banco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rules { list-style: none; padding: 0; display: grid; }
.rules li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--carta-2); }
.rules li b { display: block; color: var(--carta); font-weight: 600; }
.store { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--nero-2); }
.store-copy > p:not(.eyebrow) { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--carta-2); }
.store-art { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.store-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 30px clamp(18px, 4vw, 60px); border-top: 1px solid var(--line); font-size: 13px; color: var(--carta-2); }
.footer-logo { letter-spacing: .16em; font-weight: 600; color: var(--carta); }
.footer-logo i { font-family: "Zen Old Mincho", serif; font-style: normal; letter-spacing: 0; color: var(--oro); font-weight: 400; }
footer div a { margin-right: 18px; text-decoration: none; }

/* ── Dialog / toast ── */
.modal { width: min(540px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 4px; padding: 30px 28px; background: var(--nero-2); color: var(--carta); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.modal h2 { font-size: 36px; }
.modal-lead { margin-top: 10px; font-size: 14.5px; color: var(--carta-2); }
.modal form { display: grid; gap: 14px; margin-top: 22px; }
.modal label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.modal input, .modal select { height: 44px; border: 1px solid var(--line); border-radius: 2px; padding: 0 12px; background: var(--nero); color: var(--carta); color-scheme: dark; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--carta); font-size: 20px; cursor: pointer; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 2px; background: var(--oro); color: var(--nero); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 250ms, transform 300ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ── */
@media (max-width: 980px) {
  header { grid-template-columns: 1fr auto; }
  header nav, header .actions .btn { display: none; }
  .menu-button { display: grid; }
  .formule { grid-template-columns: 1fr; }
  .banco-grid, .store { grid-template-columns: 1fr; }
  .copy { width: min(300px, 82%); }
  .c2 { top: 14%; } .c3 { bottom: 16%; }
  footer { grid-template-columns: 1fr; gap: 12px; }
  .modal .row { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .seq img { width: 100%; object-position: 50% 50%; opacity: calc(var(--o, 0) * .55); -webkit-mask-image: none; mask-image: none; }
  .hud { align-content: end; padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .hud h1 { font-size: 42px; }
  .hud .rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .toast { transition: none; }
  .cue { display: none; }
}
