/* =========================================================================
   무월 無月 · MUWOL — 한남동 오마카세 파인다이닝
   Luxury editorial minimal, dark. Self-hosted fonts, no runtime CDN.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Nanum Myeongjo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nanum-myeongjo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nanum Myeongjo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nanum-myeongjo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nanum Myeongjo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nanum-myeongjo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pretendard-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/pretendard-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pretendard-bold.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0d0b;
  --surface: #1a1816;
  --surface-2: #221f1c;
  --off-white: #f0ebe1;
  --gold: #c4a35a;
  --gold-soft: #d8bd86;
  --stone: #8a8175;
  --hairline: rgba(240, 235, 225, 0.14);
  --hairline-strong: rgba(240, 235, 225, 0.28);

  --serif: "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(4.5rem, 11vw, 9.5rem);
}
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

.hairline {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.display {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1.display { font-size: clamp(2.6rem, 7.5vw, 5.4rem); }
h2.display { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h3.display { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.85;
  color: var(--off-white);
}
.muted { color: var(--stone); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--bg); }
.btn--solid { background: var(--gold); color: var(--bg); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { border-color: var(--hairline-strong); color: var(--off-white); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--off-white); background: transparent; color: var(--off-white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), gap .4s var(--ease);
}
.link-arrow:hover, .link-arrow:focus-visible { border-color: var(--gold); gap: 1rem; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-condensed {
  height: 62px;
  background: rgba(14, 13, 11, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  color: var(--off-white);
}
.brand img { height: 30px; width: auto; }
.brand small {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--stone);
  font-family: var(--sans);
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}
.nav-list a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  padding-block: 0.4rem;
  transition: color .4s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .45s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a:hover::after, .nav-list a:focus-visible::after, .nav-list a[aria-current="page"]::after { width: 100%; }
.nav-cta { border: 1px solid var(--gold); padding: 0.6rem 1.2rem !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--off-white);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  margin-inline: auto;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 11, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s var(--ease);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .nav-list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav-list a { font-size: 1.1rem; }
  .nav-cta { margin-top: 0.5rem; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.92);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0) 30%, rgba(14,13,11,0.15) 55%, rgba(14,13,11,0.92) 100%);
}
.hero__inner {
  width: 100%;
  padding-block: clamp(3rem, 9vw, 7rem);
}
.hero__mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  max-width: 22ch;
  margin-bottom: 2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  right: var(--gutter);
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 48px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  40% { transform: scaleY(1); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.page-hero .display { max-width: 16ch; }
.page-hero .lede { max-width: 50ch; margin-top: 1.8rem; }

/* =========================================================================
   Generic editorial grids
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__body p + p { margin-top: 1.3rem; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }
}

.figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.figure:hover img { transform: scale(1.04); }
.figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.figure--tall { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .display { max-width: 18ch; }
.section-head__intro { max-width: 38ch; }

/* ---------- Philosophy band ---------- */
.philosophy {
  text-align: center;
}
.philosophy .lede { max-width: 32ch; margin-inline: auto; }
.philosophy .ko-large {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.3;
  margin-bottom: 2rem;
}

/* ---------- Course preview list ---------- */
.course-list { border-top: 1px solid var(--hairline); }
.course-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: baseline;
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .5s var(--ease), background .5s var(--ease);
}
.course-row:hover { padding-left: 0.8rem; background: var(--surface); }
.course-row__num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}
.course-row__name { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.course-row__desc { color: var(--stone); font-size: 0.92rem; margin-top: 0.35rem; }
.course-row__season {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .course-row { grid-template-columns: 3rem 1fr; }
  .course-row__season { grid-column: 2; }
}

/* ---------- Teaser cards (asymmetric) ---------- */
.teasers {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.teaser { display: flex; flex-direction: column; }
.teaser .figure { margin-bottom: 1.6rem; }
.teaser--offset { margin-top: clamp(2rem, 8vw, 6rem); }
.teaser h3 { margin-bottom: 0.8rem; }
.teaser p { color: var(--stone); margin-bottom: 1.4rem; }
@media (max-width: 820px) {
  .teasers { grid-template-columns: 1fr; }
  .teaser--offset { margin-top: 0; }
}

/* ---------- Quote / pull ---------- */
.pull {
  text-align: center;
  max-width: 28ch;
  margin-inline: auto;
}
.pull blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.pull cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.fact {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  border-left: 1px solid var(--hairline);
}
.fact:first-child { border-left: 0; }
.fact dt {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.8rem;
}
.fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* =========================================================================
   Menu page
   ========================================================================= */
.menu-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,5rem); align-items: start; }
@media (max-width: 820px) { .menu-intro { grid-template-columns: 1fr; } }

.menu-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline-strong);
  margin-bottom: 3rem;
}
.menu-toggle button {
  padding: 0.85rem 2rem;
  background: transparent;
  border: 0;
  color: var(--stone);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.menu-toggle button[aria-selected="true"] { background: var(--gold); color: var(--bg); }

.menu-panel[hidden] { display: none; }
.menu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.menu-meta div span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.4rem;
}
.menu-meta div strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
}

.course-stage {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.course-stage__num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.course-stage__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-top: 0.5rem;
}
.course-stage h3 { font-family: var(--serif); font-size: clamp(1.2rem,2.6vw,1.6rem); margin-bottom: 0.6rem; }
.course-stage p { color: var(--stone); }
.course-stage .season-tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 640px) {
  .course-stage { grid-template-columns: 3.2rem 1fr; }
}

.notice {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.notice h3 { font-family: var(--serif); margin-bottom: 1rem; color: var(--gold); }
.notice ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--stone);
  margin-bottom: 0.7rem;
}
.notice ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* =========================================================================
   Gallery
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.8rem, 2vw, 1.6rem);
}
.g-1 { grid-column: span 7; aspect-ratio: 4/3; }
.g-2 { grid-column: span 5; aspect-ratio: 3/4; align-self: end; }
.g-3 { grid-column: span 4; aspect-ratio: 3/4; }
.g-4 { grid-column: span 4; aspect-ratio: 1/1; }
.g-5 { grid-column: span 4; aspect-ratio: 3/4; }
.g-6 { grid-column: span 6; aspect-ratio: 16/10; }
.g-7 { grid-column: span 6; aspect-ratio: 16/10; }
.g-8 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-1, .g-6, .g-7, .g-8 { grid-column: span 2; }
  .g-2, .g-3, .g-4, .g-5 { grid-column: span 1; }
}

/* =========================================================================
   Reservation
   ========================================================================= */
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .reserve-grid { grid-template-columns: 1fr; } }

.info-list { border-top: 1px solid var(--hairline); }
.info-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.info-row dt {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.2rem;
}
.info-row dd { margin: 0; }
.info-row dd a:hover { color: var(--gold); }
@media (max-width: 520px) {
  .info-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

.form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.field { margin-bottom: 1.6rem; }
.field label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.7rem;
}
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color .4s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form__note { font-size: 0.78rem; color: var(--stone); margin-top: 1.2rem; line-height: 1.6; }

/* ---------- Map (SVG) ---------- */
.map-frame {
  border: 1px solid var(--hairline);
  background: var(--surface);
  padding: 1.5rem;
}
.map-frame svg { width: 100%; height: auto; display: block; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  background: var(--surface);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3.5rem;
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer-brand .brand { font-size: 1.4rem; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--stone); max-width: 32ch; font-size: 0.9rem; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a, .footer-col span { color: var(--stone); font-size: 0.92rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--off-white); }
.site-footer address { font-style: normal; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--stone);
}
.legal-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  flex-wrap: wrap;
}
.legal-open {
  background: none;
  border: 0;
  color: var(--stone);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0;
  transition: color .3s var(--ease);
}
.legal-open:hover { color: var(--gold); }

/* =========================================================================
   Modals
   ========================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade .35s var(--ease);
}
.modal__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  animation: rise .4s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__panel { animation: none; }
}
.modal__panel h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}
.modal__panel .modal-sub {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.modal__panel h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--off-white);
  margin: 2rem 0 0.8rem;
}
.modal__panel p, .modal__panel li { color: var(--stone); font-size: 0.92rem; line-height: 1.8; }
.modal__panel ul { margin: 0.5rem 0; padding-left: 1.2rem; list-style: disc; }
.modal__panel ul li { margin-bottom: 0.5rem; }
.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--off-white);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.86rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--hairline);
  padding: 0.7rem 0.9rem;
  text-align: left;
  color: var(--stone);
  vertical-align: top;
}
.legal-table th {
  background: var(--surface-2);
  color: var(--off-white);
  font-weight: 500;
  letter-spacing: 0.05em;
}

body.is-locked { overflow: hidden; }

/* =========================================================================
   404
   ========================================================================= */
.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.error-page .code {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .figure img { transition: none; }
  .figure:hover img { transform: none; }
  .scroll-cue::after { animation: none; }
}
