/* King Katsu Land — Direction A · Crown Noir
   Deep dark · black marble · crown gold accent · condensed statement type */

:root {
  --bg: #0E0D0C;
  --surface: #151312;
  --brown: #3A1D12;
  --text: #F4EFE6;
  --muted: rgba(244, 239, 230, .66);
  --gold: #D2A548;
  --gold-deep: #B8862B;
  --gold-light: #F3DE8A;
  --gold-grad: linear-gradient(135deg, #B8862B 0%, #E5C868 45%, #F3DE8A 60%, #C9973A 100%);
  --hair: rgba(210, 165, 72, .32);
  --radius: 2px;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, address, figure { margin: 0; }
address { font-style: normal; }

/* ── type ─────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: .92;
  text-transform: uppercase;
  color: var(--text);
}
section[id], article[id] { scroll-margin-top: 88px; }
.display--xl { font-size: clamp(56px, 8.6vw, 128px); }
.display--lg { font-size: clamp(44px, 5.6vw, 84px); }
.display--md { font-size: clamp(30px, 2.6vw, 40px); }

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.body { font-size: clamp(16px, 1.15vw, 18px); color: var(--muted); max-width: 44ch; }
.body--center { margin-inline: auto; text-align: center; }

.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 15px; font-weight: 400; color: var(--text);
  padding-bottom: 6px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 100% 1px;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 40% 1px; }
.link span { transition: transform .35s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-grad); color: #100D08; border-color: transparent; background-size: 160% 160%; background-position: 0 0; }
.btn--gold:hover { background-position: 100% 100%; }
.btn--outline { border-color: rgba(244, 239, 230, .55); color: var(--text); }
.btn--outline:hover { border-color: var(--text); background: rgba(244, 239, 230, .06); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn--wide { min-width: min(420px, 80vw); height: 56px; }

/* ── nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: 18px var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(14, 13, 12, .78); backdrop-filter: blur(14px); padding-block: 10px; }
.nav__logo img { height: 64px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 48px; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; }
.nav__links a { font-size: 14px; font-weight: 400; color: var(--text); opacity: .86; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }

/* ── 01 hero ──────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(56px, 8vh, 96px);
  overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%; z-index: -2;
}
/* the drift runs on the photo and on the reveal canvas that stands in for it, so the handover is seamless */
.hero.steam-reveal.is-in .hero__bg,
.hero.steam-reveal.is-in .smoke-reveal { animation: heroDrift 14.4s var(--ease) both; }
@keyframes heroDrift { from { transform: scale(1.06); } to { transform: scale(1); } }

/* The hero canvas keeps revealed pixels in place while the photo fades in underneath.
   Fading both hero layers at once exposes the dark background during the handover. */
.steam-reveal { position: relative; background: #0E0D0C; }
.js .sr-img { opacity: 0; transition: opacity .64s var(--ease); }
.js .steam-reveal.is-revealing .sr-img { opacity: 0; transition: none; }
.js .steam-reveal.is-revealed .sr-img { opacity: 1; }
.smoke-reveal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .64s var(--ease); }
.smoke-reveal.is-done { opacity: 0; }
.hero .smoke-reveal { z-index: -2; opacity: 1; transition: none; }
.story__media .smoke-reveal { z-index: 1; }
.story__media .smoke { z-index: 2; }

/* Keep the hero's contrast scrim above the steam so the copy stays readable during the opening plume. */
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.hero .smoke { z-index: -1; }
.hero__content { position: relative; z-index: 1; }
.hero__scroll { z-index: 1; }

.hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(14,13,12,.94) 0%, rgba(14,13,12,.78) 34%, rgba(14,13,12,.18) 62%, rgba(14,13,12,0) 80%),
    linear-gradient(0deg, rgba(14,13,12,.85) 0%, rgba(14,13,12,0) 45%),
    linear-gradient(180deg, rgba(14,13,12,.5) 0%, rgba(14,13,12,0) 22%);
}
.hero__content { max-width: 720px; }
.hero__content .label { margin-bottom: 22px; }
.hero__lede { margin-top: 26px; font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); max-width: 40ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__order { margin-top: 24px; }
.hero__order p { color: var(--text); font-size: 12px; margin-bottom: 10px; }
.hero__order .order-brand { display: flex; align-items: center; margin-bottom: 4px; }
.uber-eats-logo { width: 118px; height: auto; flex: 0 0 118px; }
.hero__order-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__order-links .btn { height: 44px; padding-inline: 16px; gap: 12px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 8vh, 96px);
  display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); letter-spacing: .06em;
}
.hero__scroll i { display: block; width: 1px; height: 48px; background: var(--gold); transform-origin: top; animation: scrollLine 1.76s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── 02 story ─────────────────────────────────────────── */
.story { display: grid; grid-template-columns: 60fr 40fr; min-height: 88vh; }
.story__media { position: relative; overflow: hidden; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(14,13,12,.5)); }
.story__panel {
  background: var(--surface);
  padding: clamp(56px, 9vh, 120px) clamp(32px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.story__panel .body { max-width: 38ch; }
.story__panel .link { align-self: flex-start; }

/* ── 03 signatures ────────────────────────────────────── */
.menu { padding: clamp(80px, 12vh, 150px) var(--gutter); }
.menu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vh, 48px); }
.menu__head .label { margin-bottom: 16px; }

.accordion { display: flex; gap: 8px; height: clamp(440px, 66vh, 680px); }
.slice {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); background: #000;
  transition: flex-grow .56s var(--ease), opacity .44s var(--ease);
}
.slice.is-active { flex-grow: 3.2; cursor: default; }
.slice img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.82) contrast(1.06) saturate(1.02);
  transform: scale(1.08); transition: transform .72s var(--ease), filter .48s;
}
.slice.is-active img { transform: scale(1); filter: brightness(.9) contrast(1.04); }
.slice::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,12,.05) 40%, rgba(14,13,12,.86) 100%);
}
.slice__tag {
  position: absolute; left: 14px; bottom: 18px; z-index: 2;
  writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg);
  font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--text);
  transition: opacity .3s;
}
.slice.is-active .slice__tag { opacity: 0; }
.slice__meta {
  position: absolute; left: clamp(18px, 2vw, 32px); right: 24px; bottom: clamp(18px, 2.4vw, 32px); z-index: 2;
  opacity: 0; transform: translateY(12px); transition: opacity .36s .2s var(--ease), transform .44s .2s var(--ease);
}
.slice.is-active .slice__meta { opacity: 1; transform: none; }
.slice__price { font-family: var(--display); font-size: 26px; color: var(--gold); margin-top: 8px; letter-spacing: .02em; }
.slice__price small { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; margin-left: 12px; vertical-align: middle; }
.slice__desc { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 34ch; }

/* ── 04 challenge ─────────────────────────────────────── */
.challenge {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--bg) url("/assets/a-marble-tile-768.11267ff01df4.webp") center / 640px repeat;
}
.challenge::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(255, 236, 190, .10), transparent 70%), rgba(14,13,12,.55);
}
.challenge__content {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(80px, 12vh, 140px) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.crown { width: 52px; height: auto; filter: drop-shadow(0 4px 14px rgba(243, 222, 138, .28)); }
.challenge .display--xl { font-size: clamp(48px, 7.4vw, 112px); }
.facts {
  display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; justify-content: center;
  margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--hair);
  font-size: 14px; color: var(--muted);
}
.challenge__plate {
  position: relative; z-index: 1; width: min(1100px, 100%); height: auto; margin: 24px auto 0;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%), linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%), linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* ── 05 locations ─────────────────────────────────────── */
.locations {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto; min-height: 92vh;
}
.locations__label { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; }
.kingdom {
  display: grid; grid-template-rows: subgrid; grid-row: 1 / -1;
  padding: clamp(80px, 10vh, 120px) clamp(28px, 5vw, 80px) clamp(48px, 7vh, 80px);
  gap: 16px; align-content: start;
}
.kingdom--marble { background: var(--bg) url("/assets/a-marble-tile-768.11267ff01df4.webp") center / 640px repeat; box-shadow: inset 0 0 0 100vmax rgba(14,13,12,.25); }
.kingdom--brown { background: var(--brown); }
.kingdom__photo {
  width: min(320px, 60%); aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; justify-self: start; margin-bottom: 24px;
}
.kingdom__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.86) contrast(1.06); }
.kingdom__body { display: contents; }
.kingdom .display--lg { font-size: clamp(56px, 6.4vw, 96px); }
.kingdom address { font-size: 16px; line-height: 1.6; color: var(--text); }
.kingdom address a { color: var(--text); }
.gmap {
  border: 1px solid var(--hair); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 10; background: #1a1816; align-self: stretch;
}
.gmap iframe { display: block; width: 100%; height: 100%; border: 0; }
.kingdom .link { justify-self: start; }
.kingdom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.kingdom__actions .btn { gap: 12px; padding-inline: 20px; }
.kingdom__actions .btn--order { gap: 0; padding-inline: 14px; }
.note { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ── 06 cta ───────────────────────────────────────────── */
.cta { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: 0 var(--gutter) clamp(48px, 8vh, 96px); }
.cta__bg { position: absolute; inset: -3%; z-index: -1; background: url("/assets/kingkatsu-old-1920.d1e45c00ca17.webp") center / cover no-repeat; filter: blur(2px) brightness(.55) saturate(1.05); transform: scale(1.02); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,13,12,.15), rgba(14,13,12,.6) 55%, rgba(14,13,12,.9)); }
.cta__content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; width: 100%; }
.cta__calls { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.cta__calls .link { font-size: 14px; }

/* ── footer ───────────────────────────────────────────── */
.footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 20px var(--gutter); background: var(--bg); border-top: 1px solid var(--hair);
}
.footer img { height: 48px; width: auto; }
.footer__mail { font-size: 14px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; max-width: 100%; min-width: 0; justify-content: flex-end; font-size: 14px; }
.footer__links a { color: var(--muted); transition: color .3s; }
.footer__links a:hover { color: var(--text); }

/* ── reveal ───────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s var(--ease), transform .72s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .hero.is-in .hero__bg, .hero__scroll i { animation: none; }
  .js .sr-img { opacity: 1; transition: none; }
  .smoke, .smoke-reveal { display: none; }
  .slice { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .story { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 4 / 3; }
  .story__media::after { background: linear-gradient(180deg, transparent 70%, rgba(14,13,12,.6)); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__scroll { display: none; }
  .hero__bg { object-position: 62% 30%; }
  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(14,13,12,.96) 0%, rgba(14,13,12,.82) 42%, rgba(14,13,12,.25) 72%, rgba(14,13,12,.05) 100%),
      linear-gradient(180deg, rgba(14,13,12,.55) 0%, rgba(14,13,12,0) 25%);
  }
  .menu__head { flex-direction: column; align-items: flex-start; }
  .accordion { flex-direction: column; height: auto; }
  .slice { flex: 0 0 96px; }
  .slice.is-active { flex-basis: 380px; }
  .slice__tag { writing-mode: horizontal-tb; transform: none; left: 18px; bottom: 16px; }
  .locations { grid-template-columns: 1fr; grid-template-rows: none; }
  .kingdom { grid-row: auto; grid-template-rows: auto; padding-top: 96px; }
  .kingdom--brown { padding-top: 56px; }
  .footer { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; }
  .footer__links { justify-content: center; }
}

/* Launch navigation: food menu is a destination, even on small screens. */
.skip-link { position:fixed; z-index:90; top:12px; left:20px; padding:12px 20px; background:var(--gold); color:var(--bg); transform:translateY(-180%); }
.skip-link:focus { transform:none; }
a:focus-visible, button:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.nav__mobile-menu, .nav__toggle { display:none; }
@media(max-width:820px) {
  .nav { gap:14px; padding-block:12px; background:rgba(14,13,12,.92); }
  .nav__logo img { height:52px; }
  .nav__mobile-menu { display:block; margin-left:auto; font-size:13px; padding:12px 0; }
  .nav .btn { margin-left:0; padding-inline:16px; }
  .nav__toggle { display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid var(--hair); background:transparent; color:var(--text); cursor:pointer; font:400 25px/1 var(--sans); }
  .nav__links { position:absolute; top:100%; left:0; right:0; padding:20px var(--gutter) 26px; margin:0; background:var(--bg); border-bottom:1px solid var(--hair); }
  .nav.is-open .nav__links { display:flex; flex-direction:column; gap:0; }
  .nav__links a { padding:13px 0; }
  .nav.is-open .nav__toggle span { transform:rotate(45deg); }
}
