:root {
  --color-background: #f5f0e8;
  --color-surface: #fffdf8;
  --color-surface-soft: #eee7dc;
  --color-text: #292521;
  --color-muted: #70675e;
  --color-border: #d8cdbe;
  --color-burgundy: #6f263d;
  --color-burgundy-dark: #591d31;
  --color-green: #365542;
  --color-gold: #b58a4a;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgb(41 37 33 / 8%);
  --shadow-md: 0 14px 40px rgb(41 37 33 / 14%);
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 5rem;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-background); color: var(--color-text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-gold) 75%, white); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-160%); padding: 10px 14px; background: var(--color-text); color: white; border-radius: var(--radius-sm); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: var(--header-height); display: flex; align-items: center; gap: var(--space-lg); padding: 0 clamp(18px,4vw,56px); color: white; transition: background .25s, color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgb(255 253 248 / 94%); color: var(--color-text); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.brand, .footer-brand { font: 500 1.5rem/1 var(--font-serif); letter-spacing: .24em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.desktop-nav a { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav a:hover { color: var(--color-gold); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.lang-button, .cart-button, .menu-button { min-height: 44px; border: 1px solid currentColor; border-radius: 999px; background: rgb(255 255 255 / 8%); color: inherit; cursor: pointer; }
.lang-button { min-width: 48px; padding: 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-size: .75rem; font-weight: 600; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--color-burgundy); color: white; font-size: .7rem; }
.menu-button { display: none; width: 44px; font-size: 1.1rem; }
.mobile-nav { position: absolute; top: calc(100% + 8px); right: 16px; width: min(280px,calc(100vw - 32px)); padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-md); }
.mobile-nav a { display: block; min-height: 48px; padding: 14px; border-radius: var(--radius-sm); font-weight: 500; }
.mobile-nav a:hover { background: var(--color-surface-soft); }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: white; isolation: isolate; }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; z-index: -3; }
.hero-overlay { z-index: -2; background: linear-gradient(90deg, rgb(28 24 20 / 62%), rgb(28 24 20 / 18%) 55%, rgb(28 24 20 / 35%)), linear-gradient(0deg, rgb(28 24 20 / 52%), transparent 45%); }
.demo-badge { position: absolute; top: calc(var(--header-height) + 18px); left: clamp(18px,4vw,56px); padding: 7px 12px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 999px; background: rgb(20 18 16 / 24%); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(9px); }
.hero-content { width: min(760px,calc(100% - 36px)); text-align: center; padding-top: 60px; }
.eyebrow, .section-label, .dialog-kicker { margin: 0 0 var(--space-sm); color: var(--color-gold); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: #e2c588; }
.hero h1 { margin: 0; font: 500 clamp(4.5rem,13vw,9rem)/.82 var(--font-serif); letter-spacing: .18em; padding-left: .18em; text-shadow: 0 8px 36px rgb(0 0 0 / 24%); }
.hero-lead { max-width: 580px; margin: 28px auto 0; font: 400 clamp(1.2rem,2.4vw,1.75rem)/1.35 var(--font-serif); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--color-burgundy); color: white; box-shadow: 0 8px 22px rgb(111 38 61 / 28%); }
.button-primary:hover { background: var(--color-burgundy-dark); }
.button-glass { border-color: rgb(255 255 255 / 58%); background: rgb(255 255 255 / 10%); color: white; backdrop-filter: blur(12px); }
.button-secondary { border-color: var(--color-border); background: transparent; color: var(--color-text); }

.section { padding: clamp(64px,9vw,112px) clamp(18px,5vw,72px); }
.section-heading { max-width: 1180px; margin: 0 auto 42px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .story-copy h2, .reservation-copy h2 { margin: 0; font: 500 clamp(2.15rem,4.2vw,3.8rem)/1.04 var(--font-serif); }
.section-heading > p { max-width: 480px; margin: 0; color: var(--color-muted); line-height: 1.7; }
.category-tabs { max-width: 1180px; margin: 0 auto 28px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { min-height: 44px; flex: 0 0 auto; padding: 0 18px; border: 1px solid var(--color-border); border-radius: 999px; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 600; }
.category-tab[aria-pressed="true"] { background: var(--color-green); border-color: var(--color-green); color: white; }
.menu-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.dish-card { display: grid; grid-template-columns: 164px 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.dish-card-image-button { min-height: 164px; padding: 0; border: 0; background: var(--color-surface-soft); cursor: pointer; overflow: hidden; }
.dish-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.dish-card-image-button:hover img { transform: scale(1.035); }
.dish-card-body { min-width: 0; padding: 18px; display: flex; flex-direction: column; }
.dish-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dish-card h3 { margin: 0; font: 600 1.45rem/1.1 var(--font-serif); }
.dish-price { white-space: nowrap; font: 600 1.25rem/1 var(--font-serif); }
.dish-subtitle { margin: 5px 0 10px; color: var(--color-burgundy); font: italic 1rem/1.2 var(--font-serif); }
.dish-description { margin: 0; color: var(--color-muted); font-size: .86rem; line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 4px 9px; border-radius: 999px; background: var(--color-surface-soft); color: var(--color-muted); font-size: .67rem; }
.dish-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.dish-actions .button { min-height: 44px; padding: 0 14px; font-size: .67rem; }

.webgl-section { padding-top: 0; }
.webgl-card { max-width: 1180px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(28px,6vw,72px); padding: clamp(28px,5vw,54px); border: 1px solid color-mix(in srgb, var(--color-gold) 42%, var(--color-border)); border-radius: var(--radius-lg); background: linear-gradient(135deg,var(--color-surface),var(--color-surface-soft)); box-shadow: var(--shadow-sm); }
.webgl-copy { max-width: 760px; }
.webgl-copy h2 { margin: 0; font: 500 clamp(2.15rem,4.2vw,3.8rem)/1.04 var(--font-serif); }
.webgl-copy > p:not(.section-label) { margin: 18px 0 0; color: var(--color-muted); line-height: 1.7; }
.webgl-copy .webgl-distinction { padding-left: 16px; border-left: 2px solid var(--color-gold); font-size: .86rem; }
.webgl-cta { flex: 0 0 auto; text-align: center; }

.story-section { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr); align-items: center; gap: clamp(36px,7vw,96px); background: var(--color-surface); }
.story-image-wrap { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.story-image { width: 100%; height: 100%; object-fit: cover; }
.story-copy { max-width: 580px; }
.story-copy > p:not(.section-label) { color: var(--color-muted); line-height: 1.8; }
.story-copy blockquote { margin: 28px 0 0; padding-left: 22px; border-left: 2px solid var(--color-gold); font: italic 1.45rem/1.45 var(--font-serif); }

.reservation-section { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(36px,7vw,90px); }
.reservation-copy p:not(.section-label) { color: var(--color-muted); line-height: 1.75; }
.reservation-form { padding: clamp(20px,4vw,38px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: white; color: var(--color-text); padding: 10px 12px; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-burgundy); box-shadow: 0 0 0 3px rgb(111 38 61 / 10%); }
.field [aria-invalid="true"] { border-color: #a72828; }
.field-error { display: block; min-height: 17px; padding-top: 4px; color: #8d2020; font-size: .7rem; }
.form-submit { width: 100%; }
.form-status { min-height: 24px; margin: 12px 0 0; text-align: center; color: var(--color-muted); font-size: .82rem; }
.form-status.error { color: #8d2020; }
.form-status.success { color: var(--color-green); }

.site-footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 42px clamp(18px,5vw,72px); background: var(--color-text); color: rgb(255 255 255 / 72%); font-size: .78rem; line-height: 1.7; }
.site-footer p { margin: 6px 0 0; }
.footer-brand { color: white; }

.app-dialog { width: auto; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--color-text); }
.app-dialog::backdrop { background: rgb(22 19 17 / 62%); backdrop-filter: blur(8px); }
.dialog-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.dialog-header h2 { margin: 0; font: 600 1.8rem/1 var(--font-serif); }
.dialog-kicker { margin-bottom: 5px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); cursor: pointer; font-size: 1.15rem; }
.experience-dialog { width: min(1440px,100vw); height: min(920px,100dvh); }
.experience-shell { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--color-background); }
.experience-body { min-height: 0; flex: 1; display: grid; grid-template-columns: 250px minmax(0,1fr) 320px; }
.experience-nav { overflow-y: auto; padding: 12px; border-right: 1px solid var(--color-border); background: var(--color-surface); }
.experience-nav-button { width: 100%; min-height: 52px; padding: 9px 11px; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; cursor: pointer; font: 500 1rem/1.15 var(--font-serif); }
.experience-nav-button small { display: block; margin-top: 3px; color: var(--color-muted); font: .68rem/1.2 var(--font-sans); }
.experience-nav-button[aria-current="true"] { border-left-color: var(--color-burgundy); background: rgb(111 38 61 / 7%); }
.viewer-column { min-width: 0; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle,#fffdf8,#e9e0d3); }
.image-viewer { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; }
.image-viewer.dragging { cursor: grabbing; }
.image-viewer img { width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; border-radius: var(--radius-md); filter: drop-shadow(0 24px 28px rgb(41 37 33 / 20%)); transform-origin: center; will-change: transform; }
.model-viewer-host { width: 100%; height: 100%; }
.model-viewer-host model-viewer { width: 100%; height: 100%; }
.viewer-status { position: absolute; top: 16px; left: 50%; z-index: 3; transform: translateX(-50%); min-height: 24px; padding: 5px 10px; border-radius: 999px; background: rgb(255 253 248 / 86%); color: var(--color-muted); font-size: .7rem; pointer-events: none; }
.viewer-toolbar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.experience-info { min-width: 0; overflow-y: auto; padding: 28px 24px; border-left: 1px solid var(--color-border); background: var(--color-surface); }
.experience-info h3 { margin: 0; font: 600 2rem/1.08 var(--font-serif); }
.experience-info > p:not(.section-label,.dish-subtitle) { color: var(--color-muted); line-height: 1.65; }
.detail-group { margin-top: 24px; }
.detail-group strong { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold); }
.detail-group p { color: var(--color-muted); font-size: .82rem; line-height: 1.5; }
.viewer-order { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.viewer-price { display: block; margin-bottom: 14px; font: 600 2rem/1 var(--font-serif); }
.experience-mobile-nav { display: none; padding: 10px; gap: 8px; border-top: 1px solid var(--color-border); background: var(--color-surface); }
.experience-mobile-nav .button { flex: 1; }

.cart-dialog { width: min(560px,calc(100vw - 28px)); max-height: min(820px,calc(100dvh - 28px)); }
.cart-shell { max-height: inherit; overflow-y: auto; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); }
#cartItems { padding: 0 22px; }
.cart-empty { padding: 42px 0; text-align: center; color: var(--color-muted); }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--color-border); }
.cart-item-name { font: 600 1.15rem/1.1 var(--font-serif); }
.cart-item-price { margin-top: 4px; color: var(--color-muted); font-size: .75rem; }
.quantity-control { display: flex; align-items: center; gap: 8px; }
.quantity-control button, .remove-item { width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 999px; background: transparent; cursor: pointer; }
.cart-note { padding: 20px 22px 0; }
.cart-note label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; }
.cart-note textarea { width: 100%; min-height: 82px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); resize: vertical; }
.cart-note p { margin: 7px 0 0; color: var(--color-muted); font-size: .7rem; line-height: 1.5; }
.cart-summary { display: flex; align-items: baseline; justify-content: space-between; padding: 22px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.cart-summary strong { font: 600 2rem/1 var(--font-serif); letter-spacing: 0; }
.checkout-button { width: calc(100% - 44px); margin: 0 22px; }
.checkout-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.checkout-status { min-height: 42px; margin: 0; padding: 10px 22px 16px; text-align: center; color: var(--color-muted); font-size: .75rem; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translateX(-50%); max-width: min(420px,calc(100vw - 32px)); padding: 12px 16px; border-radius: 999px; background: var(--color-green); color: white; box-shadow: var(--shadow-md); font-size: .78rem; text-align: center; }

@media (max-width: 1024px) {
  .experience-body { grid-template-columns: 210px minmax(0,1fr) 280px; }
  .dish-card { grid-template-columns: 140px 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 62px; --space-xl: 3.5rem; }
  .site-header { padding: 0 14px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-block; }
  .cart-button > span:first-child { display: none; }
  .cart-button { padding: 0 10px; }
  .hero-content { padding-top: 72px; }
  .hero h1 { font-size: clamp(3.7rem,20vw,6rem); }
  .demo-badge { top: calc(var(--header-height) + 14px); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .menu-grid { grid-template-columns: 1fr; }
  .story-section, .reservation-section { grid-template-columns: 1fr; }
  .webgl-card { align-items: flex-start; flex-direction: column; }
  .story-copy { max-width: none; }
  .site-footer { align-items: start; flex-direction: column; }
  .experience-dialog { width: 100vw; height: 100dvh; }
  .experience-body { display: flex; flex-direction: column; }
  .experience-nav { flex: 0 0 auto; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .experience-nav-button { width: auto; min-width: 150px; border-left: 0; border-bottom: 3px solid transparent; }
  .experience-nav-button[aria-current="true"] { border-left-color: transparent; border-bottom-color: var(--color-burgundy); }
  .viewer-column { flex: 1 1 46%; min-height: 240px; }
  .image-viewer img { width: calc(100% - 28px); height: calc(100% - 28px); }
  .experience-info { flex: 0 1 auto; max-height: 34dvh; padding: 18px; border-left: 0; border-top: 1px solid var(--color-border); }
  .experience-info .detail-group { display: none; }
  .experience-info h3 { font-size: 1.55rem; }
  .experience-info > p:not(.section-label,.dish-subtitle) { display: none; }
  .viewer-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; }
  .viewer-price { margin: 0; }
  .experience-mobile-nav { display: flex; }
}

@media (max-width: 520px) {
  .brand { font-size: 1.25rem; }
  .lang-button { min-width: 44px; padding: 0 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; min-height: 52px; padding: 10px 12px; white-space: normal; line-height: 1.3; letter-spacing: .07em; }
  .webgl-cta { width: 100%; min-height: 52px; }
  .demo-badge { max-width: calc(100% - 36px); font-size: .58rem; }
  .hero h1 { font-size: clamp(3rem,16vw,4.5rem); letter-spacing: .08em; padding-left: .08em; }
  .dish-card { display: block; }
  .dish-card-image-button { width: 100%; height: 210px; min-height: 0; }
  .dish-card-body { min-height: 250px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .dialog-header { min-height: 66px; padding: 12px 14px; }
  .dialog-header h2 { font-size: 1.45rem; }
  .cart-row { grid-template-columns: 1fr auto; }
  .remove-item { grid-column: 2; }
}

@media (max-width: 360px) {
  .site-header { gap: 6px; }
  .header-actions { gap: 5px; }
  .brand { letter-spacing: .16em; }
  .hero-content { width: calc(100% - 28px); }
  .hero h1 { max-width: 100%; padding-left: .04em; font-size: 2.7rem; letter-spacing: .04em; overflow-wrap: anywhere; }
  .hero-lead { max-width: 100%; font-size: 1.04rem; overflow-wrap: anywhere; }
  .hero-actions .button { min-width: 0; max-width: 100%; padding-inline: 8px; font-size: .61rem; letter-spacing: .035em; overflow-wrap: anywhere; }
  .section { padding-left: 14px; padding-right: 14px; }
  .dish-card-body { padding: 15px; }
}

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