:root {
  --orange: #F26A1B;
  --orange-dark: #C24F0C;
  --orange-soft: #FFF1E8;
  --ink: #111;
  --muted: #444;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; }
button { font-family: inherit; }
.accent { color: var(--orange); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
html.no-scroll { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { font-size: 15px; font-weight: 600; border: none; border-radius: 999px; padding: 12px 22px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-accent:disabled { opacity: .6; cursor: wait; }
.btn-block { width: 100%; justify-content: center; padding: 15px 22px; font-size: 16px; }
.caret { font-size: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #eee; transition: border-color .6s; }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); position: relative; z-index: 101; transform-origin: center center; will-change: transform; }
.logo:hover { color: var(--ink); }
.logo-mark { flex: none; }
.logo-fork { transform-origin: 20px 20px; }
.logo-word { font-family: var(--serif); font-size: 29px; line-height: 1; letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 28px; transition: opacity .6s ease, transform .6s ease; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.today { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.today-dot { width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.today-dot.open { background: #2BAA5B; }
@media (max-width: 939px) { .nav-links { display: none; } }

.res-wrap { position: relative; }
.res-dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid #eee; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: 8px; min-width: 270px; display: flex; flex-direction: column; }
.res-dropdown[hidden] { display: none; }
.res-option { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: none; border: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.res-option:hover { background: var(--orange-soft); color: var(--ink); }
.res-title { font-weight: 600; font-size: 15px; }
.res-sub { font-size: 14px; color: #555; }

/* ---------- Intro animation ---------- */
@keyframes ptDraw { from { stroke-dashoffset: 114 } to { stroke-dashoffset: 0 } }
@keyframes ptFork { from { opacity: 0; transform: scale(.4) } to { opacity: 1; transform: scale(1) } }
@keyframes ptWord { from { opacity: 0; clip-path: inset(0 100% 0 0) } to { opacity: 1; clip-path: inset(0 0 0 0) } }

.intro-overlay { position: fixed; inset: 0; background: #fff; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .9s ease .25s; display: none; }
body.intro-pending .intro-overlay, body.intro-playing .intro-overlay, body.intro-moving .intro-overlay { display: block; }
body.intro-pending .intro-overlay, body.intro-playing .intro-overlay { opacity: 1; }

body.intro-pending .logo { opacity: 0; }
body.intro-pending .nav, body.intro-playing .nav, body.intro-moving .nav { opacity: 0; transform: translateY(-6px); }
body.intro-pending .site-header, body.intro-playing .site-header, body.intro-moving .site-header { border-color: transparent; }
body.intro-playing .logo { transition: opacity .4s ease; }
body.intro-moving .logo { transition: transform 1.15s cubic-bezier(.77,0,.18,1); }
body.intro-playing .logo-ring, body.intro-moving .logo-ring { animation: ptDraw 1.1s cubic-bezier(.6,0,.2,1) both; }
body.intro-playing .logo-fork, body.intro-moving .logo-fork { animation: ptFork .6s cubic-bezier(.3,1.5,.5,1) .55s both; }
body.intro-playing .logo-word, body.intro-moving .logo-word { animation: ptWord .8s cubic-bezier(.6,0,.2,1) .8s both; }

/* ---------- Hero / categories ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9vh, 104px) 0 120px; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); }
.eyebrow-light { color: var(--orange); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 100px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 em { color: var(--orange); }
.hero p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.cats-scroll { margin-top: 64px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 16px 0 24px; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cats { display: flex; gap: clamp(20px, 3vw, 40px); width: max-content; margin: 0 auto; padding: 0 28px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 18px; scroll-snap-align: center; }
.cat-btn { position: relative; width: 184px; height: 184px; border-radius: 50%; border: none; padding: 10px; background: var(--orange); cursor: pointer; box-shadow: 0 8px 20px rgba(242,106,27,.18); transition: transform .35s cubic-bezier(.3,1.4,.5,1), box-shadow .35s; overflow: visible; }
.cat-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #f7c9a8; }
.cat-pill { position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 8px); opacity: 0; transition: opacity .25s, transform .3s; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.cat-btn:hover, .cat-btn:focus-visible { transform: scale(1.07); box-shadow: 0 22px 44px rgba(242,106,27,.38); outline: none; }
.cat-btn:hover .cat-pill, .cat-btn:focus-visible .cat-pill { opacity: 1; transform: translate(-50%, 0); }
.cat-name { font-family: var(--serif); font-size: 24px; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { padding-top: 72px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 48px 40px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 27px; }
.muted { margin: 0; color: #bdbdbd; font-size: 15px; line-height: 1.6; max-width: 260px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; color: #bdbdbd; margin-bottom: 14px; }
.hours-row.is-today { color: #fff; font-weight: 600; }
.map-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 160px; border-radius: 16px; border: 1px solid #333; background: repeating-linear-gradient(45deg, #1b1b1b 0 12px, #222 12px 24px); transition: border-color .2s; }
.map-card:hover { border-color: var(--orange); color: #fff !important; }
.map-title { font-size: 14px; font-weight: 600; }
.map-sub { font-size: 13px; color: #bdbdbd; }
.footer-bottom { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: #9a9a9a; }
.footer-links { display: flex; gap: 24px; }
.site-footer .footer-links a { color: #9a9a9a; }

/* ---------- Menu overlay ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 200; background: var(--orange); color: var(--ink); clip-path: circle(0px at 50% 50%); transition: clip-path .8s cubic-bezier(.7,0,.2,1); pointer-events: none; overflow-y: auto; visibility: hidden; }
.menu-overlay.is-visible { visibility: visible; }
.menu-overlay.is-open { pointer-events: auto; }
.menu-content { padding-bottom: 80px; opacity: 0; transform: translateY(24px); transition: opacity .2s ease, transform .2s ease; }
.menu-overlay.is-open .menu-content { opacity: 1; transform: none; transition: opacity .5s ease .4s, transform .6s ease .4s; }
.menu-bar { position: sticky; top: 0; z-index: 2; background: var(--orange); display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.menu-brand { font-family: var(--serif); font-size: 26px; }
.menu-bar .btn-dark:hover { background: #fff; color: var(--ink); }
.x { font-size: 18px; line-height: 1; }
.tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; margin-bottom: 48px; }
.tab { flex: none; font-size: 15px; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px; cursor: pointer; background: transparent; color: var(--ink); transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab:hover:not([aria-selected="true"]) { background: rgba(0,0,0,.08); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px 72px; align-items: start; }
.menu-side { display: flex; flex-direction: column; gap: 22px; }
.menu-side img { width: min(260px, 60vw); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.menu-side h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -.02em; }
.menu-side p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 360px; text-wrap: pretty; }
.menu-side .btn { align-self: flex-start; margin-top: 8px; }
.menu-items { grid-column: span 2; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 4px 48px; }
@media (max-width: 760px) { .menu-items { grid-column: auto; } }
.menu-item { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 6px; }
.menu-item-head { display: flex; align-items: baseline; gap: 12px; }
.menu-item-name { font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.menu-item-dots { flex: 1; border-bottom: 2px dotted rgba(0,0,0,.45); transform: translateY(-4px); min-width: 16px; }
.menu-item-price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.menu-item-desc { font-size: 15px; line-height: 1.45; color: #2b1608; }
.menu-note { margin: 56px 0 0; font-size: 14px; color: #2b1608; }

/* ---------- Reservation modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.55); animation: fadeIn .25s ease; }
.modal-card { position: relative; background: #fff; border-radius: 24px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 36px 32px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: popIn .35s cubic-bezier(.3,1.3,.5,1); }
@keyframes fadeIn { from { opacity: 0 } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97) } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: none; background: #f3f3f3; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--orange-soft); }
.modal-card h2 { margin: 8px 0 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 40px); line-height: 1.05; }
#resForm { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 160px; }
.field-row > .field-sm { flex: 0 1 110px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field em { font-weight: 400; font-style: normal; color: #888; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,27,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d93025; }
.field-error { font-weight: 500; font-size: 13px; color: #d93025; }
.form-error { margin: 0; color: #d93025; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.form-hint { margin: 0; font-size: 13px; color: #777; text-align: center; }
.form-hint a { color: var(--orange-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#resSuccessView { text-align: center; padding: 12px 0 8px; display: flex; flex-direction: column; align-items: center; }
#resSuccessView[hidden] { display: none; }
#resSuccessView h2 { margin: 18px 0 10px; }
#resSuccessView p { margin: 0 0 26px; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 420px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; }

/* ---------- Simple content pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 72px 28px 120px; line-height: 1.65; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 0 0 32px; }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 40px 0 8px; }
.page .note { background: var(--orange-soft); border-radius: 12px; padding: 14px 18px; font-size: 15px; }

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .logo-word { font-size: 24px; }
  .btn { padding: 11px 16px; font-size: 14px; }
  .cats { padding: 0 16px; }
  .cat-btn { width: 150px; height: 150px; }
  .modal-card { padding: 30px 20px 22px; border-radius: 20px; }
}

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