/* ══════════════════════════════════════════════════════════════════════
   Osteria Dante — site.css
   Plain CSS, no build step. Sections in page order; shared pieces first.
   Breakpoints:  sm 640  ·  md 768  ·  lg 1024  ·  xl 1280  ·  2xl 1536
   ══════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --bg-base: #f6f3ee;
  --bg-surface: #ffffff;
  --bg-sand: #ece6dc;
  --bg-inverse: #14130f;
  --text-primary: #1a1917;
  --text-muted: #6e6a60;
  --text-on-dark: #f2eee7;
  --border-hairline: #dcd5c9;
  --accent-clay: #a4502b;
  --accent-gold: #d4af37;   /* brand gold from the wordmark — buttons */
  --accent-ink: #8a6a1c;    /* readable gold — eyebrow labels, links */

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: Marcellus, Georgia, serif;
  --font-sans: Jost, ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --header-h: 94px;
}

/* ── Reset / base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; max-width: 100%; }
html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 110px; }   /* clear the sticky header */
main, footer, .page-content { overflow-x: clip; }

.muted  { color: var(--text-muted); }
.accent { color: var(--accent-ink); }

/* ── Type ramp ─────────────────────────────────────────────────────── */
.t-h1       { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.t-h2       { font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.005em; }
.t-h3       { font-family: var(--font-serif); font-weight: 600; font-size: 26px; line-height: 1.2; }
.t-body-lg  { font-size: 20px; line-height: 1.65; font-weight: 300; }
.t-body     { font-size: 16px; line-height: 1.7; }
.t-body-sm  { font-size: 14px; line-height: 1.6; letter-spacing: 0.01em; }
.t-overline { font-size: 12px; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.t-eyebrow  { font-size: 15px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 999px; padding: 10px 20px; white-space: nowrap;
  font-size: 12px; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: opacity .2s, background-color .2s, color .2s;
}
.btn--gold  { background: var(--accent-gold); color: #fff; }
.btn--gold:hover { opacity: .9; }
.btn--lg    { padding: 16px 32px; }
.btn--block { width: 100%; padding: 16px 32px; margin-top: 8px; }
.btn--outline { border: 1px solid var(--accent-gold); color: var(--accent-ink); padding: 16px 32px; }
.btn--outline:hover { background: var(--accent-gold); color: #fff; }
.btn--ghost-light { border: 1px solid rgba(255,255,255,.3); color: inherit; padding: 12px 28px; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--text-light { color: inherit; opacity: .7; padding: 12px 28px; }
.btn--text-light:hover { opacity: 1; }
.btn:disabled { opacity: .6; cursor: default; }

/* ── Shared section padding ────────────────────────────────────────── */
.section-pad { padding: 96px 24px; }
@media (min-width: 768px)  { .section-pad { padding: 128px 64px; } }
@media (min-width: 1024px) { .section-pad { padding: 128px 128px; } }

/* ── Scroll reveal ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 950ms cubic-bezier(.22,1,.36,1), transform 950ms cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(44px); }
.reveal-left  { transform: translateX(-64px); }
.reveal-right { transform: translateX(64px); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Hover affordances ─────────────────────────────────────────────── */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 1200ms cubic-bezier(.22,1,.36,1); will-change: transform; }
.img-zoom:hover img { transform: scale(1.05); }
.card-lift { transition: transform .4s ease, box-shadow .4s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -24px rgba(26,25,23,.35); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .img-zoom img, .card-lift { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Header
   ══════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-base) 92%, transparent);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color .5s;
}
.site-header.is-scrolled { background: #fff; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 15px 24px;
}
@media (min-width: 768px)  { .site-header__inner { padding: 15px 40px; } }
@media (min-width: 1536px) { .site-header__inner { padding: 15px 64px; } }
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 64px; width: auto; }

.site-nav { display: none; align-items: center; gap: 20px; }
.site-nav a { white-space: nowrap; color: var(--text-primary); }
@media (min-width: 1280px) { .site-nav { display: flex; } }
@media (min-width: 1536px) { .site-nav { gap: 32px; } }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 768px) { .site-header__actions { gap: 20px; } }
.site-header__pill { display: none; }
@media (min-width: 1280px) { .site-header__pill { display: inline-flex; } }

.lang-switch { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.lang-switch a { transition: color .2s; }
.lang-switch a:hover, .lang-switch a.is-active { color: var(--text-primary); }
.lang-switch__sep { opacity: .5; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; width: 40px; position: relative; z-index: 40; color: var(--text-primary);
}
@media (min-width: 1280px) { .nav-toggle { display: none; } }
.nav-toggle__close { display: none; }
body.nav-open .nav-toggle__open { display: none; }
body.nav-open .nav-toggle__close { display: block; }

/* Mobile menu — dims the page and drops a panel from under the header */
.mobile-nav__backdrop {
  position: fixed; inset: 0; top: var(--header-h); z-index: 30;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 35;
  display: grid; grid-template-rows: 0fr; pointer-events: none;
  transition: grid-template-rows 600ms cubic-bezier(.22,1,.36,1);
}
.mobile-nav__panel { overflow: hidden; background: #f7f3ee; color: var(--text-primary); }
.mobile-nav__list { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; }
.mobile-nav__list .btn { margin-top: 8px; padding: 12px 32px; }
body.nav-open .mobile-nav__backdrop { opacity: 1; pointer-events: auto; }
body.nav-open .mobile-nav { grid-template-rows: 1fr; pointer-events: auto; }
body.nav-open .mobile-nav__panel { border-bottom: 1px solid var(--border-hairline); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
@media (min-width: 1280px) { .mobile-nav, .mobile-nav__backdrop { display: none; } }

/* ══════════════════════════════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════════════════════════════ */
.hero { position: relative; background: #f6f3ee; color: var(--text-on-dark); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1500ms ease-in-out;
  animation: hero-kenburns 14s ease-in-out infinite alternate;
}
.hero__slide.is-active { opacity: 1; }
@keyframes hero-kenburns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.08) translate(-1%,1%); }
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.35) 50%, rgba(0,0,0,.65));
}
.hero__body {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
}
@media (min-width: 768px)  { .hero__body { min-height: 966px; } }
@media (min-width: 1024px) { .hero__body { min-height: 1049px; } }
.hero__copy {
  max-width: 900px; text-align: center;
  text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4);
}
.hero__overline { margin-bottom: 24px; opacity: .9; }
.hero__copy .t-h1 { margin-bottom: 24px; }

.scroll-cue {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-on-dark); opacity: .9; transition: opacity .2s; will-change: transform;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue__label { font-size: 15px; letter-spacing: .2em; }
.scroll-chevron { animation: scroll-bob 1.8s ease-in-out infinite; }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   Split (text + photo) — Our Story, The Kitchen, Wood-fired oven
   ══════════════════════════════════════════════════════════════════════ */
.split { padding: 96px 24px; }
@media (min-width: 768px)  { .split { padding: 128px 64px; } }
@media (min-width: 1024px) { .split { padding: 128px 128px; } }
.split__grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: stretch; }
@media (min-width: 1024px) { .split__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.split__text { display: flex; flex-direction: column; justify-content: center; order: 2; }
.split__media {
  order: 1; border-radius: var(--radius); border: 1px solid var(--border-hairline);
  overflow: hidden; min-height: 420px;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(.22,1,.36,1); }
@media (min-width: 1024px) {
  .split--image-right .split__text  { order: 1; }
  .split--image-right .split__media { order: 2; }
  .split--image-left  .split__text  { order: 2; }
  .split--image-left  .split__media { order: 1; }
}
.split__text .t-eyebrow { margin-bottom: 24px; }
.split__text .t-h1 { margin-bottom: 24px; }
.split__body > * + * { margin-top: 20px; }
.split__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s ease-out, opacity .7s ease-out; }
.split__more-inner { overflow: hidden; }
.split__more-inner > * { margin-top: 20px; }
.split.is-open .split__more { grid-template-rows: 1fr; opacity: 1; }
.split.is-open .split__media img { transform: scale(1.06); }
.split__toggle { margin-top: 28px; align-self: flex-start; color: var(--text-primary); transition: opacity .2s; }
.split__toggle:hover { opacity: .6; }

/* ══════════════════════════════════════════════════════════════════════
   Philosophy — four marks
   ══════════════════════════════════════════════════════════════════════ */
.philosophy { padding: 128px 24px; text-align: center; background: #fcfcfc; }
@media (min-width: 768px)  { .philosophy { padding: 176px 64px; } }
@media (min-width: 1024px) { .philosophy { padding: 176px 128px; } }
.philosophy .t-eyebrow { margin-bottom: 40px; }
.philosophy__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 768px) { .philosophy__grid { grid-template-columns: repeat(4, 1fr); } }
.philosophy__item { cursor: default; transition: transform .5s ease-out; }
.philosophy__item:hover { transform: translateY(-8px); }
.philosophy__mark { transition: color .5s; }
.philosophy__item:hover .philosophy__mark { color: var(--accent-ink); }
.philosophy__label { margin-top: 8px; transition: color .5s; }
.philosophy__item:hover .philosophy__label { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════════════
   Menu
   ══════════════════════════════════════════════════════════════════════ */
.menu { padding: 96px 24px; text-align: center; background: #fcfcfc; }
@media (min-width: 768px)  { .menu { padding: 128px 64px; } }
@media (min-width: 1024px) { .menu { padding: 128px 128px; } }
.menu__inner { max-width: 760px; margin: 0 auto; }
.menu .t-eyebrow { margin-bottom: 16px; }
.menu .t-h1 { margin-bottom: 32px; }
.menu__body > * + * { margin-top: 20px; }
.menu__cta { margin-top: 40px; min-height: 56px; }
.menu__cta .btn { padding: 16px 32px; }

/* ══════════════════════════════════════════════════════════════════════
   Events — two cards
   ══════════════════════════════════════════════════════════════════════ */
.events { padding: 96px 24px; background: var(--bg-sand); }
@media (min-width: 768px)  { .events { padding: 128px 64px; } }
@media (min-width: 1024px) { .events { padding: 128px 128px; } }
.events__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
@media (min-width: 768px) { .events__head { margin-bottom: 80px; } }
.events__head .t-eyebrow { margin-bottom: 16px; }
.events__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px)  { .events__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .events__grid { gap: 64px; } }
.events__grid > .reveal { height: 100%; }
.card {
  height: 100%; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--border-hairline); overflow: hidden;
  background: var(--bg-surface);
}
.card__media { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 16px; padding: 40px 32px; }
@media (min-width: 768px) { .card__body { padding: 48px 40px; } }
.events__cta { display: flex; justify-content: center; margin-top: 48px; }
@media (min-width: 768px) { .events__cta { margin-top: 64px; } }

/* ══════════════════════════════════════════════════════════════════════
   Gallery + lightbox
   ══════════════════════════════════════════════════════════════════════ */
.gallery { padding: 48px 24px 96px; text-align: center; background: var(--bg-base); }
@media (min-width: 768px)  { .gallery { padding: 128px 64px; } }
@media (min-width: 1024px) { .gallery { padding: 128px 128px; } }
.gallery__rule {
  width: 80%; height: 1px; margin: 0 auto 48px;
  background: linear-gradient(to right, transparent, var(--border-hairline) 25%, var(--border-hairline) 75%, transparent);
}
@media (min-width: 768px) { .gallery__rule { margin-bottom: 80px; } }
.gallery .t-eyebrow { margin-bottom: 16px; }
.gallery .t-h2 { margin-bottom: 16px; }
.gallery__intro { margin-bottom: 48px; }
.gallery__grid { columns: 1; column-gap: 24px; column-fill: balance; max-width: 100rem; margin: 0 auto; }
@media (min-width: 640px)  { .gallery__grid { columns: 2; } }
@media (min-width: 1024px) { .gallery__grid { columns: 3; } }
.gallery__item {
  position: relative; display: block; width: 100%; margin-bottom: 24px; break-inside: avoid;
  border-radius: var(--radius); border: 1px solid var(--border-hairline); overflow: hidden;
  background: var(--bg-sand); cursor: pointer;
}
.gallery__item img { width: 100%; opacity: 0; transition: opacity .5s ease-out; position: relative; }
.gallery__item.is-loaded img { opacity: 1; }
.gallery__spinner { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--accent-ink); opacity: .7; }
.gallery__item.is-loaded .gallery__spinner { display: none; }
.gallery-spin { width: 36px; height: 36px; animation: gallery-spin 2.4s linear infinite; transform-origin: 50% 50%; }
@keyframes gallery-spin { to { transform: rotate(360deg); } }
.gallery__eye {
  position: absolute; bottom: 16px; right: 16px; height: 40px; width: 40px;
  display: grid; place-items: center; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff;
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover .gallery__eye { opacity: 1; }
@media (max-width: 767px) { .gallery__eye { opacity: 1; } }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  user-select: none; opacity: 0; transition: opacity .3s ease-out;
}
.lightbox.is-in { opacity: 1; }
.lightbox__img {
  margin: auto; max-width: 92vw; max-height: 78vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  transform: scale(.94); transition: transform .3s ease-out;
}
.lightbox.is-in .lightbox__img { transform: scale(1); }
@media (min-width: 768px) { .lightbox__img { max-height: 86vh; } }
.lightbox__nav {
  display: none; position: absolute; top: 50%; transform: translateY(-50%);
  height: 48px; width: 48px; place-items: center; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 32px; } .lightbox__nav--next { right: 32px; }
@media (min-width: 768px) { .lightbox__nav { display: grid; } }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; height: 40px; width: 40px;
  display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff;
}
.lightbox__close:hover { opacity: .7; }
@media (min-width: 768px) { .lightbox__close { top: 24px; right: 24px; background: transparent; } }
.lightbox__bar {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
}
.lightbox__mini { height: 48px; width: 48px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; }
.lightbox__count { color: rgba(255,255,255,.7); }
@media (min-width: 768px) { .lightbox__mini { display: none; } }

/* ══════════════════════════════════════════════════════════════════════
   Reservations / contact
   ══════════════════════════════════════════════════════════════════════ */
.reservations { padding: 64px 24px; background: #ece6dc; }
@media (min-width: 768px)  { .reservations { padding: 96px 48px; } }
@media (min-width: 1024px) { .reservations { padding: 96px 80px; } }
.reservations__inner { padding: 48px 0; }
@media (min-width: 768px)  { .reservations__inner { padding: 96px 56px; } }
@media (min-width: 1024px) { .reservations__inner { padding: 96px 80px; } }
.reservations__grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: start; }
@media (min-width: 1024px) { .reservations__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.reservations__cta > * + * { margin-top: 24px; }
.reservations__btn { display: flex; justify-content: center; }
@media (min-width: 768px) { .reservations__btn { justify-content: flex-start; } }
.reservations__card {
  border-radius: var(--radius); border: 1px solid var(--border-hairline);
  padding: 48px 32px; background: #fcfcfc;
}
@media (min-width: 768px) { .reservations__card { padding: 64px 40px; } }
.reservations__card > * + * { margin-top: 24px; }
.reservations__card .t-overline { margin-bottom: 4px; }
.reservations__map { margin: 16px -24px -48px; overflow: hidden; height: 320px; }
@media (min-width: 768px)  { .reservations__map { margin: 16px -48px -96px; height: 448px; } }
@media (min-width: 1024px) { .reservations__map { margin: 16px -80px -96px; } }
.reservations__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(1.03); }

/* ══════════════════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 40px 32px 24px; border-top: 1px solid var(--border-hairline);
  background-color: #fcfcfc; background-repeat: repeat; background-size: 600px;
  color: var(--text-primary);
}
@media (min-width: 768px)  { .site-footer { padding: 40px 64px 24px; } }
@media (min-width: 1024px) { .site-footer { padding: 40px 96px 24px; } }
.site-footer__top { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
@media (min-width: 768px) { .site-footer__top { flex-direction: row; } }
.site-footer__brand { max-width: 384px; }
.site-footer__brand > * + * { margin-top: 20px; }
.site-footer__brand img { width: 160px; }
.site-footer__tagline { opacity: .6; }
.site-footer__social { display: flex; align-items: center; gap: 16px; padding-top: 4px; }
.site-footer__social a { opacity: .7; } .site-footer__social a:hover { opacity: 1; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
@media (min-width: 768px) { .site-footer__links { margin-top: 92px; } }
.site-footer__links a { opacity: .85; } .site-footer__links a:hover { opacity: 1; }
.site-footer__bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-hairline);
  color: var(--text-muted); display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__pipe { opacity: .6; margin: 0 8px; }
.site-footer__intro { display: inline-flex; align-items: center; gap: 8px; opacity: .7; }
.site-footer__intro:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════
   Legal pages (privacy, terms, gift card, 404)
   ══════════════════════════════════════════════════════════════════════ */
.legal { padding: 80px 24px; background: var(--bg-base); }
@media (min-width: 768px)  { .legal { padding: 112px 64px; } }
@media (min-width: 1024px) { .legal { padding: 112px 128px; } }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal .t-h1 { margin-bottom: 12px; }
.legal__updated { margin-bottom: 48px; }
.legal__body > * + * { margin-top: 24px; }

/* ══════════════════════════════════════════════════════════════════════
   Reservation modal + form
   ══════════════════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.85); overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center; padding: 0;
  opacity: 0; transition: opacity .3s ease-out;
}
.modal.is-in { opacity: 1; }
@media (min-width: 768px) { .modal { align-items: center; padding: 32px; } }
.modal__card {
  position: relative; width: 100%; max-width: 512px; min-height: 100%;
  background: var(--bg-surface); padding: 32px; text-align: left;
  transform: scale(.95); transition: transform .3s ease-out;
}
.modal.is-in .modal__card { transform: scale(1); }
@media (min-width: 768px) { .modal__card { min-height: 0; border-radius: var(--radius); padding: 48px; } }
.modal__close {
  position: absolute; top: 16px; right: 16px; height: 40px; width: 40px;
  display: grid; place-items: center; border-radius: 999px; color: var(--text-primary);
}
.modal__close:hover { opacity: .6; }
@media (min-width: 768px) { .modal__close { top: 24px; right: 24px; } }
.modal .t-eyebrow { margin-bottom: 12px; }
.modal__subtitle { margin-bottom: 32px; line-height: 1.625; }

.form > * + * { margin-top: 16px; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__row label { display: block; margin-bottom: 8px; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__field {
  width: 100%; background: transparent; color: inherit; font: inherit;
  font-size: 16px; line-height: 1.7; padding: 12px 16px;
  border: 1px solid var(--border-hairline); border-radius: 8px; outline: none;
  transition: border-color .2s;
}
.form__field:focus { border-color: var(--accent-gold); }
textarea.form__field { resize: none; }

/* ══════════════════════════════════════════════════════════════════════
   Cookie consent
   ══════════════════════════════════════════════════════════════════════ */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 0 16px 16px; }
@media (min-width: 640px) { .cookie { padding: 0 24px 24px; } }
.cookie__card {
  margin: 0 auto; max-width: 768px; border-radius: var(--radius);
  background: var(--bg-inverse); color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  padding: 24px;
}
@media (min-width: 640px) { .cookie__card { padding: 28px; } }
.cookie__msg { opacity: .85; }
.cookie__prefs { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.cookie__prefs > * + * { margin-top: 12px; }
.cookie__opt { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cookie__opt.is-locked { opacity: .6; cursor: default; }
.cookie__opt input { margin-top: 4px; accent-color: var(--accent-clay); }
.cookie__opt span span { display: block; }
.cookie__desc { opacity: .6; }
.cookie__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.cookie__actions .btn--gold { padding: 12px 28px; }

/* ══════════════════════════════════════════════════════════════════════
   Intro splash — handwritten logo
   ══════════════════════════════════════════════════════════════════════ */
.splash-overlay {
  position: fixed; inset: 0; z-index: 100;
  background-color: #ededed; background-repeat: repeat;
  display: grid; place-items: center; overflow: hidden;
  opacity: 0; animation: splash-enter 600ms ease-out forwards;
}
@keyframes splash-enter { to { opacity: 1; } }
.splash-overlay.is-leaving { pointer-events: none; animation: splash-fade-out 900ms ease-out forwards; }
@keyframes splash-fade-out { to { opacity: 0; } }
.splash-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.splash-svg { width: min(720px, 82vw); }
.splash-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.splash-subtitle {
  color: var(--text-muted); white-space: nowrap; font-size: 15px; opacity: 0;
  animation: splash-subtitle-in 700ms cubic-bezier(.22,1,.36,1) 2100ms forwards;
}
@media (max-width: 768px) { .splash-subtitle { animation-delay: 1800ms; } }
@keyframes splash-subtitle-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.splash-skip { position: absolute; right: 28px; bottom: 28px; color: var(--text-muted); opacity: .7; }

/* Page cross-fades in beneath the splash as it leaves */
body.page-revealing .page-content { animation: page-fade-in 900ms ease-out forwards; }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
