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

:root {
  --ink: #09070b;
  --paper: #f1ece7;
  --ember: #ff4d24;
  --violet: #8d55ff;
  --line: rgba(255,255,255,.22);
  --progress: 0;
  --hall-x: 0px;
  --hall-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: "DM Sans", sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 3vw; mix-blend-mode: difference; color: white; }
.brand { display: flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 600; letter-spacing: .18em; }
.brand-mark { width: 18px; height: 24px; border: 1px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0; }
.place { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; opacity: .75; }
.menu-button { justify-self: end; color: inherit; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; cursor: pointer; }
.menu-button i { display: block; width: 34px; height: 1px; background: currentColor; position: relative; }
.menu-button i::after { content: ""; position: absolute; right: 0; top: 6px; width: 20px; height: 1px; background: currentColor; }

.menu-panel { position: fixed; inset: 0; z-index: 100; background: #0b0810; display: flex; flex-direction: column; justify-content: center; padding: 9vw; transform: translateY(-102%); transition: transform .7s cubic-bezier(.77,0,.18,1); }
.menu-panel.open { transform: translateY(0); }
.menu-panel a { font-family: "Italiana", serif; font-size: clamp(3.2rem, 8vw, 8rem); line-height: .92; width: fit-content; transition: color .25s, transform .25s; }
.menu-panel a:hover { color: var(--ember); transform: translateX(12px); }
.menu-panel small { margin-top: 3rem; opacity: .55; letter-spacing: .12em; text-transform: uppercase; }
.menu-close { position: absolute; top: 22px; right: 3vw; border: 0; background: none; color: white; font-size: 2.5rem; cursor: pointer; }

.entrance { height: 280vh; }
.entrance-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #050406; }
.scene, .scene-image, .scene-vignette, .door-glow { position: absolute; inset: 0; }
.scene-image { background: url('assets/eclat-interior.png') center center / cover no-repeat; transform: translate3d(var(--hall-x), var(--hall-y), 0) scale(calc(.94 + var(--progress) * .30)); filter: saturate(calc(.78 + var(--progress) * .32)) brightness(calc(.62 + var(--progress) * .15)); box-shadow: 0 0 0 10vw #050406; will-change: transform, filter; transition: transform .35s ease-out; }
.scene-vignette { background: radial-gradient(circle at 50% 50%, transparent 15%, rgba(5,4,6,.12) 38%, rgba(5,4,6,.82) 100%), linear-gradient(to bottom, rgba(5,4,6,.22), transparent 30%, rgba(5,4,6,.45)); }
.door-glow { background: radial-gradient(ellipse 15% 40% at 50% 47%, rgba(255,103,47,calc(var(--progress) * .42)), transparent 72%); mix-blend-mode: screen; }
.hero-copy { position: absolute; z-index: 2; left: 6vw; top: 18vh; opacity: calc(1 - var(--progress) * 2); transform: translateY(calc(var(--progress) * -60px)); }
.eyebrow, .section-index { text-transform: uppercase; letter-spacing: .23em; font-size: .68rem; }
.hero-copy h1 { font-family: "Italiana", serif; font-weight: 400; font-size: clamp(4rem, 10.5vw, 10rem); line-height: .78; letter-spacing: -.04em; margin: 1.2rem 0 1.5rem; }
.hero-copy em { color: var(--ember); font-weight: 400; }
.hero-note { margin: 0; max-width: 280px; line-height: 1.6; opacity: .7; }
.scroll-cue { position: absolute; right: 3vw; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .18em; font-size: .65rem; opacity: calc(.8 - var(--progress)); }
.scroll-cue i { width: 58px; height: 1px; background: currentColor; transform-origin: left; animation: cue 1.7s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleX(.25); } 50% { transform: scaleX(1); } }
.threshold-copy { position: absolute; z-index: 3; left: 50%; bottom: 16vh; text-align: center; transform: translate(-50%, calc((1 - var(--progress)) * 70px)); opacity: clamp(0, calc((var(--progress) - .65) * 4), 1); width: 90%; transition: opacity .35s; }
.threshold-copy p { text-transform: uppercase; font-size: .68rem; letter-spacing: .2em; }
.threshold-copy strong { font-family: "Italiana", serif; font-size: clamp(2rem, 5vw, 5rem); font-weight: 400; }
.portal-choice { position: absolute; z-index: 5; inset: auto 5vw 5vh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3vw; opacity: 0; transform: translateY(22px); pointer-events: none; transition: opacity .55s ease, transform .55s ease; }
.entrance.at-threshold .portal-choice { opacity: 1; transform: none; pointer-events: auto; }
.entrance.at-threshold .threshold-copy { opacity: 1; }
.portal-choice > p { margin: 0 0 .25rem; text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .58rem; line-height: 1.7; opacity: .72; }
.portal { appearance: none; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: white; background: rgba(8,6,10,.48); backdrop-filter: blur(14px); min-height: 78px; padding: .9rem 1.3rem; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left; cursor: pointer; transition: transform .3s, background .3s, border-color .3s; }
.portal small { grid-column: 1; text-transform: uppercase; letter-spacing: .18em; font-size: .55rem; opacity: .65; }
.portal span { font-family: "Italiana", serif; font-size: clamp(1.4rem, 2.5vw, 2.6rem); }
.portal i { grid-column: 2; grid-row: 1 / 3; font-size: 1.4rem; font-style: normal; }
.portal-table { justify-self: start; width: min(28vw, 360px); }
.portal-club { justify-self: end; width: min(28vw, 360px); }
.portal-table:hover { transform: translateX(-8px); background: rgba(105,23,9,.62); border-color: var(--ember); }
.portal-club:hover { transform: translateX(8px); background: rgba(42,18,100,.62); border-color: var(--violet); }

.choice { min-height: 100vh; padding: 10rem 4vw 4vw; background: #0b0810; }
.choice > h2 { font-family: "Italiana", serif; font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; line-height: .92; margin: 2rem 0 5rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.choice-card { min-height: 50vh; background-color: #0b0810; background-size: cover; display: flex; justify-content: space-between; align-items: flex-end; padding: 2rem; position: relative; overflow: hidden; transition: background-size .8s cubic-bezier(.22,1,.36,1), filter .4s; }
.choice-table { background-image: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.74)), url('assets/eclat-restaurant.png'); background-position: center; }
.choice-club { background-image: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.74)), url('assets/eclat-club.png'); background-position: center; }
.choice-card:hover { background-size: 205%; filter: saturate(1.25); }
.choice-number { position: absolute; top: 2rem; left: 2rem; font-size: .7rem; letter-spacing: .18em; }
.choice-card p { text-transform: uppercase; letter-spacing: .16em; font-size: .65rem; margin: 0 0 .75rem; }
.choice-card h3 { font-family: "Italiana", serif; font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 400; margin: 0; }
.choice-arrow { font-size: 2rem; border: 1px solid var(--line); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.choice-card:hover .choice-arrow { background: var(--paper); color: var(--ink); transform: rotate(-15deg); }

.path { min-height: 110vh; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--paper); color: var(--ink); }
.path-club { grid-template-columns: .85fr 1.15fr; background: #0b0810; color: var(--paper); }
.path-image { min-height: 100%; background-size: cover; background-attachment: fixed; }
.path-table .path-image { background-image: url('assets/eclat-restaurant.png'); background-position: center; }
.path-club .path-image { background-image: url('assets/eclat-club.png'); background-position: center; }
.path-copy { align-self: center; padding: 9vw 6vw; }
.path-copy h2, .reservation h2 { font-family: "Italiana", serif; font-size: clamp(3.5rem, 7vw, 7.4rem); font-weight: 400; line-height: .88; margin: 2rem 0; letter-spacing: -.035em; }
.path-copy > p:not(.section-index) { font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.8; max-width: 480px; opacity: .75; }
.path-copy > a { display: inline-flex; gap: 2rem; margin-top: 2rem; padding-bottom: .6rem; border-bottom: 1px solid currentColor; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; }

.menu-ticker { overflow: hidden; background: var(--ember); color: #130807; padding: 2.1rem 0; }
.ticker-track { display: flex; align-items: center; gap: 2rem; width: max-content; font-family: "Italiana", serif; font-size: clamp(1.8rem, 3vw, 3.5rem); animation: ticker 24s linear infinite; }
.ticker-track i { width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

.sound-button { margin-top: 2rem; border: 1px solid var(--line); color: inherit; background: transparent; border-radius: 100px; padding: 1rem 1.4rem; display: inline-flex; align-items: center; gap: 16px; cursor: pointer; transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease; }
.sound-button:hover, .sound-button:focus-visible { border-color: rgba(154, 123, 255, .78); }
.sound-button:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.sound-button[aria-pressed="true"] { background: rgba(118, 76, 255, .13); border-color: rgba(154, 123, 255, .9); box-shadow: 0 0 32px rgba(112, 72, 255, .16); }
.sound-bars { height: 20px; display: flex; align-items: center; gap: 3px; }
.sound-bars i { width: 2px; height: 30%; background: var(--violet); }
.sound-button[aria-pressed="true"] .sound-bars i { animation: bars .65s ease-in-out infinite alternate; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.3s; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.5s; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { to { height: 100%; } }
#club-ambience { display: none; }

.reservation { min-height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 10vw; background: var(--violet); color: #100c16; overflow: hidden; }
.reservation > *:not(.orbit) { position: relative; z-index: 2; }
.reservation > p:not(.section-index) { line-height: 1.8; }
.reserve-button { margin-top: 2rem; width: min(100%, 480px); display: flex; justify-content: space-between; padding: 1.3rem 0; border-bottom: 1px solid currentColor; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; }
.orbit { position: absolute; right: -8vw; top: 8%; width: min(52vw, 700px); aspect-ratio: 1; border: 1px solid rgba(10,7,13,.35); border-radius: 50%; display: grid; place-items: center; animation: orbit 18s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(10,7,13,.22); border-radius: 50%; }
.orbit::after { inset: 28%; }
.orbit span { font-family: "Italiana", serif; font-size: 16vw; }
@keyframes orbit { to { transform: rotate(360deg); } }

footer { min-height: 100px; display: flex; justify-content: space-between; align-items: center; padding: 2rem 4vw; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid var(--line); }

.room-view { --pan-x: 0px; --pan-y: 0px; position: fixed; inset: 0; z-index: 200; visibility: hidden; opacity: 0; background: #030204; overflow: hidden; clip-path: circle(0 at 50% 50%); transition: clip-path .9s cubic-bezier(.77,0,.18,1), opacity .25s, visibility 0s .9s; touch-action: none; cursor: grab; }
.room-view.open { visibility: visible; opacity: 1; clip-path: circle(150% at 50% 50%); transition-delay: 0s; }
.room-view.dragging { cursor: grabbing; }
.room-pan { position: absolute; inset: -6%; background-size: cover; background-position: center; transform: translate3d(var(--pan-x), var(--pan-y), 0) scale(1.04); transition: transform .7s cubic-bezier(.22,1,.36,1); will-change: transform; }
.room-view.dragging .room-pan { transition-duration: .08s; }
.room-pan-table { background-image: url('assets/restaurant-panorama-360-hd.jpg?v=20260925'); }
.room-pan-club { background-image: url('assets/club-panorama-360-hd.jpg?v=20260925'); }
.panorama-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.panorama-fallback { opacity: 1; transition: opacity .8s ease; }
.panorama-view.ready .panorama-canvas { opacity: 1; }
.panorama-view.ready .panorama-fallback { opacity: 0; }
.panorama-loader { position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .18em; font-size: .58rem; opacity: 0; pointer-events: none; transition: opacity .35s; }
.panorama-view.open:not(.ready) .panorama-loader { opacity: 1; }
.panorama-loader i { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.room-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(5,3,7,.36), transparent 30%, transparent 60%, rgba(5,3,7,.72)); }
.room-close { position: absolute; z-index: 2; top: 28px; left: 3vw; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: white; background: rgba(8,6,10,.36); backdrop-filter: blur(12px); padding: .8rem 1.1rem; text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; cursor: pointer; }
.room-close span { margin-right: .65rem; }
.room-title { position: absolute; z-index: 2; inset: auto auto 6vh 5vw; pointer-events: none; transition: opacity .55s ease, transform .55s ease; }
.panorama-view.exploring .room-title { opacity: 0; transform: translateY(16px); }
.room-title small, .room-title p { text-transform: uppercase; letter-spacing: .18em; font-size: .58rem; }
.room-title h2 { font-family: "Italiana", serif; font-size: clamp(4.2rem, 10vw, 10rem); font-weight: 400; line-height: .82; margin: .7rem 0 1.2rem; }
.room-title p { opacity: .72; }
.look-compass { position: absolute; z-index: 3; right: 3vw; bottom: 5vh; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; pointer-events: none; }
.look-compass::before, .look-compass::after { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 14px; background: white; transform-origin: 50% 39px; }
.look-compass::after { transform: rotate(180deg); }
.look-compass span { font-size: .58rem; letter-spacing: .1em; }
.look-compass i { position: absolute; inset: -1px; border: 1px solid transparent; border-left-color: var(--ember); border-radius: 50%; animation: orbit 5s linear infinite; }
body.room-open { overflow: hidden; }

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr 1fr; height: 64px; }
  .place { display: none; }
  .hero-copy { left: 7vw; top: 25vh; }
  .hero-copy h1 { font-size: clamp(4.2rem, 21vw, 7rem); }
  .scene-image { background-position: 51% center; }
  .threshold-copy { bottom: 24vh; }
  .portal-choice { inset: auto 1rem 1.4rem; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .portal-choice > p { grid-column: 1 / -1; grid-row: 1; margin-bottom: .2rem; }
  .portal { width: 100%; min-height: 70px; }
  .portal-table { grid-column: 1; }
  .portal-club { grid-column: 2; }
  .portal span { font-size: 1.35rem; }
  .choice { padding: 8rem 1rem 1rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 56vh; background-size: auto 120%; }
  .path, .path-club { grid-template-columns: 1fr; }
  .path-image { min-height: 65vh; background-attachment: scroll; background-size: auto 100%; }
  .path-club .path-copy { order: 2; }
  .path-copy { padding: 7rem 1.4rem; }
  .reservation { padding: 8rem 1.4rem; }
  .orbit { width: 92vw; right: -35vw; top: 22%; opacity: .55; }
  footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .room-pan { inset: -10%; background-size: auto 100%; }
  .room-title { left: 1.4rem; bottom: 3vh; }
  .room-close { left: 1rem; top: 18px; }
  .look-compass { right: 1.3rem; bottom: 2rem; transform: scale(.84); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene-image { transform: none; }
}
