/* Shared geometry for both directions. Colours and display faces come from each direction's stylesheet.
   Headings: --h1-comp / --h2-comp are the sizes measured on the approved comps at the same viewport width;
   the user asked for titles at 75% of that, applied ONCE here through --heading-scale (never again elsewhere). */
:root {
  --heading-scale: .75;
  --heading-min: 1.375rem;
  --gutter: clamp(16px, 5.5vw, 88px);
  --header-h: 84px;
  --body: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ko: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--page); }
/* Smooth only for in-page link clicks (the link has focus); a direct #anchor load or back navigation jumps. */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--text); color: var(--page); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Type roles */
.h1, .h2 { font-family: var(--display); font-weight: var(--display-weight); text-wrap: balance; }
.h1 { font-size: max(var(--heading-min), calc(var(--heading-scale) * var(--h1-comp))); line-height: var(--h1-lh, .95); letter-spacing: var(--h-track, 0); }
.h2 { font-size: max(var(--heading-min), calc(var(--heading-scale) * var(--h2-comp))); line-height: var(--h2-lh, .98); letter-spacing: var(--h-track, 0); }
.label { font: 600 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.line { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); max-width: 34em; text-wrap: pretty; }
.copy { display: grid; gap: 14px; align-content: start; }
.copy .h1, .copy .h2 { margin-block: 2px 4px; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--btn-radius); background: var(--btn); color: var(--btn-text); font: 700 1.1875rem/1 var(--body); text-decoration: none; letter-spacing: .005em; transition: transform .18s var(--ease), background-color .18s; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: transparent; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.link .arr { text-decoration: none; transition: transform .18s var(--ease); }
.link:hover .arr { transform: translateX(3px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background-color .25s, box-shadow .25s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); padding-inline: var(--gutter); }
.brand img { width: 104px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--nav-text); font-weight: 600; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; }
.site-header.is-scrolled { background: var(--header-bg); box-shadow: 0 1px 0 var(--header-line); }
@supports (backdrop-filter: blur(10px)) { .site-header.is-scrolled { background: var(--header-bg-blur); backdrop-filter: blur(12px) saturate(1.2); } }

/* Scenes: one plate per scene, words in the plate's quiet area on desktop, stacked below it on tablet and phone. */
.scene { position: relative; background: var(--field, var(--page)); color: var(--scene-text, var(--text)); }
.overlay { display: grid; grid-template-columns: minmax(0, 1fr); }
.overlay > .plate, .overlay > .copy { grid-area: 1 / 1; }
.plate { display: block; width: 100%; }
.plate img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .overlay > .plate { min-height: 56.25vw; }
  .overlay > .copy { z-index: 1; width: min(42vw, 640px); padding: calc(var(--header-h) + 3vw) var(--gutter) 5vw; }
  .at-left > .copy { justify-self: start; align-self: center; }
  .at-right > .copy { justify-self: end; align-self: center; width: min(36vw, 560px); }
  .at-top > .copy { justify-self: center; align-self: start; text-align: center; justify-items: center; width: min(76vw, 1080px); padding-top: 6vw; }
  .at-top > .copy .line { margin-inline: auto; }
  .s-top > .copy { align-self: center; padding-top: calc(var(--header-h) + 5vw); width: min(50vw, 780px); }
  .s-visit > .copy { width: min(46vw, 700px); }
  .split { display: grid; }
  .split > .plate, .split > .copy, .split > .items, .split > .split-link { grid-area: 1 / 1; }
  .split > .plate { width: 100%; height: 100%; min-height: 56.25vw; object-fit: cover; }
  .split > .copy { z-index: 1; align-self: start; justify-self: center; text-align: center; justify-items: center; padding-top: 4.2vw; width: min(80vw, 1100px); }
  .split > .items { z-index: 1; align-self: end; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding-bottom: var(--items-pb, 7.5vw); }
  .split > .split-link { z-index: 1; align-self: end; justify-self: center; padding-bottom: 1.6vw; }
  .split .crop { display: none; }
  .item { display: grid; justify-items: center; text-align: center; gap: 2px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .brand img { width: 84px; }
  .site-header { background: var(--header-bg); box-shadow: 0 1px 0 var(--header-line); }
  .overlay > .plate, .overlay > .copy { grid-area: auto; }
  .overlay > .copy { padding: 34px var(--gutter) 56px; }
  .s-top { padding-top: var(--header-h); }
  .split > .plate { display: none; }
  .split { padding: 56px var(--gutter) 40px; display: grid; gap: 22px; }
  .split > .copy { text-align: left; }
  .split > .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .split-2 > .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item { display: grid; gap: 4px; align-content: start; }
  .item .crop { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
  .split-2 .item .crop { aspect-ratio: 4 / 5; }
  .h1 { --h1-lh: .98; }
}
@media (min-width: 701px) and (max-width: 1023px) {
  .overlay > .copy { padding: 44px var(--gutter) 72px; }
  .line { font-size: 1.15rem; }
  .btn { min-height: 52px; }
  .split-3 > .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-4 > .items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 24px; background: var(--header-bg); box-shadow: 0 1px 0 var(--header-line); }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { min-height: 52px; font-size: 1.15rem; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 10px; background: none; border: 0; color: var(--nav-text); font: 600 1rem var(--body); }
  .menu-icon, .menu-icon::before { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-icon::before { content: ""; position: absolute; top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-icon { transform: translateY(3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(-90deg); }
  .actions .btn { flex: 1 1 100%; }
  .split-3 > .items { grid-template-columns: 1fr; }
  .split-3 .item { grid-template-columns: 42% 1fr; align-items: center; column-gap: 16px; text-align: left; }
  .split-3 .item .crop { grid-row: span 2; }
}

/* Bands: the restaurant's own photographs as tiles under a centred heading (wings, menu). Each tile is a link. */
.band { padding: clamp(64px, 8vw, 128px) var(--gutter); display: grid; gap: clamp(26px, 3.2vw, 48px); justify-items: center; }
.band > .copy { justify-items: center; text-align: center; max-width: 1080px; }
.tiles { display: grid; gap: clamp(12px, 1.6vw, 24px); width: 100%; max-width: 1360px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile a { display: grid; gap: 4px; text-decoration: none; }
.tile img, .card img, .mp-banner img { width: 100%; object-fit: cover; border-radius: 6px; background: var(--photo-bg, transparent); }
.tile img, .card img { aspect-ratio: 4 / 3; }
.tile img { margin-bottom: 10px; transition: transform .35s var(--ease); }
.tile a:hover img { transform: scale(1.015); }
.tile .big { font: var(--display-weight) clamp(1.35rem, 1rem + 1.5vw, 2.4rem)/1 var(--display); letter-spacing: var(--h-track, 0); }
.tile .small { font-family: var(--ko); color: var(--label); }
.band-link { margin: 0; }

/* Menu page (/menu/): a heading with section links, then each category as photo cards and a plain list. */
.menu-page { padding: calc(var(--header-h) + clamp(36px, 5vw, 80px)) var(--gutter) clamp(64px, 8vw, 120px); display: grid; gap: clamp(56px, 6.5vw, 104px); }
.mp-head { display: grid; gap: 14px; justify-items: start; }
.mp-nav { margin-top: 14px; }
.mp-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--chip-line, currentColor); color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; }
.mp-nav a:hover { box-shadow: inset 0 0 0 1.5px var(--label); color: var(--label); }
.mp-cat { display: grid; gap: clamp(18px, 2vw, 28px); } /* anchors land under the header through html scroll-padding-top */
.mp-cat-head { display: grid; gap: 10px; }
.mp-cat-head .ko { font-family: var(--ko); font-size: .42em; letter-spacing: .04em; color: var(--label); vertical-align: .4em; margin-left: .3em; text-transform: none; }
.mp-cat-head .line { max-width: 46em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: clamp(22px, 2.6vw, 40px) clamp(12px, 1.6vw, 24px); }
.card { display: grid; gap: 4px; align-content: start; min-width: 0; }
.card img { margin-bottom: 8px; }
.card-name { font: 700 1.0625rem/1.3 var(--body); }
.card-name .ko { font-family: var(--ko); font-weight: 400; color: var(--label); margin-left: 4px; }
.card-desc { font-size: .94rem; line-height: 1.45; color: var(--muted); }
.card-price { font-weight: 600; color: var(--label); }
.mp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px clamp(24px, 3vw, 56px); }
.mp-list li { display: grid; gap: 2px; align-content: start; padding-top: 14px; box-shadow: inset 0 1px 0 var(--header-line); }
.mp-banner img { aspect-ratio: 16 / 7; }
.mp-end { display: grid; gap: 14px; justify-items: start; }
.mp-end .line { color: var(--muted); max-width: 46em; }
@media (max-width: 700px) {
  .tiles-3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tiles-3 .tile a { grid-template-columns: 46% minmax(0, 1fr); align-items: center; column-gap: 16px; }
  .tiles-3 .tile img { grid-row: span 2; margin-bottom: 0; align-self: center; }
  .tiles-3 .tile .big { align-self: end; }
  .tiles-3 .tile .small { align-self: start; }
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .band > .copy { justify-items: start; text-align: left; }
  .band { justify-items: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-banner img { aspect-ratio: 16 / 9; }
  .mp-nav ul { gap: 6px; }
  .mp-nav a { padding: 0 13px; font-size: .9rem; }
}

/* Menu */
.menu-inner { padding: clamp(64px, 8vw, 128px) var(--gutter); display: grid; gap: clamp(32px, 4vw, 56px); }
.menu-head { display: grid; gap: 12px; max-width: 760px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 40px clamp(28px, 4vw, 64px); }
.menu-cat { display: grid; gap: 10px; align-content: start; min-width: 0; }
.menu-cat h3 { font: 700 1.3rem/1.2 var(--body); color: var(--menu-h); }
.menu-cat h3 .ko { font-family: var(--ko); font-weight: 400; font-size: .95em; color: var(--label); margin-left: 6px; }
.menu-note { font-size: .95rem; color: var(--muted); }
.menu-list { display: grid; gap: 12px; margin-top: 4px; }
.menu-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.mi-name { font-weight: 600; }
.mi-detail { grid-column: 1; font-size: .92rem; color: var(--muted); }
.mi-price { grid-column: 2; grid-row: 1; font-weight: 600; }
.menu-drinks { max-width: 60em; color: var(--muted); }
.menu-drinks b { color: var(--text); }

/* Visit */
.addr { font-weight: 600; line-height: 1.6; }
.addr a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.addr { display: grid; justify-items: start; }
.hours { display: grid; gap: 4px; max-width: 360px; }
.hours div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; }
.hours dd { white-space: normal; }
.hours dt { color: var(--muted); }

/* Footer + phone action bar */
.site-footer { background: var(--foot-bg); color: var(--foot-text); padding: 44px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 28px; }
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 36px; align-items: center; }
.foot-logo { width: 88px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; font-style: normal; }
.foot-contact a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-contact a:hover { text-decoration: underline; }
.foot-copy { font-size: .9rem; opacity: .75; }
.sample-note { font-size: .82rem; opacity: .7; max-width: 70em; }
.action-bar { display: none; }
@media (max-width: 700px) {
  .foot { grid-template-columns: 1fr; }
  .action-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; inset: auto 0 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--header-bg); box-shadow: 0 -1px 0 var(--header-line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .action-bar.is-on { transform: none; }
  .action-bar .btn { min-height: 48px; padding: 0 12px; font-size: 1.1875rem; }
  .action-bar .num { display: none; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Reveal: short, once. Content is visible without JS, with reduced motion, and 2.5 s after load even if the
   script never runs (the fallback animation). */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] .copy > * { opacity: 0; transform: translateY(16px); animation: cib-show 0s 2.5s forwards; }
  [data-reveal].is-in .copy > * { opacity: 1; transform: none; animation: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
  [data-reveal].is-in .copy > :nth-child(2) { transition-delay: .06s; }
  [data-reveal].is-in .copy > :nth-child(3) { transition-delay: .12s; }
  [data-reveal].is-in .copy > :nth-child(n+4) { transition-delay: .18s; }
  [data-reveal].is-instant .copy > * { transition: none !important; }
}
@keyframes cib-show { to { opacity: 1; transform: none; } }
