/* ==========================================================================
   Fig & Ember — Design Tokens & Base Styles
   Elegant editorial + organic warmth. See /design-system/fig-and-ember/MASTER.md
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* Color */
  --color-ink: #241A12;
  --color-primary: #8A4A1F;
  --color-primary-deep: #6B3814;
  --color-ember: #C1652B;
  --color-sage: #5F6B47;
  --color-background: #FBF6EC;
  --color-background-alt: #F1E6D3;
  --color-background-dark: #1E140D;
  --color-on-dark: #F1E6D3;
  --color-on-dark-muted: #C8B79C;
  --color-border: #E3D3B8;
  --color-border-dark: #3A2A1B;
  --color-on-primary: #FBF6EC;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing (editorial: spacious) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;
  --space-3xl: 9rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 250ms;
  --dur-med: 400ms;
  --dur-slow: 700ms;

  --container-max: 1320px;
  --nav-height: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; border: none; background: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--color-primary); color: var(--color-on-primary); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ember);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.2;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-ink);
  font-weight: 300;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.35;
}
p.body { font-size: 1.05rem; line-height: 1.75; color: var(--color-ink); opacity: 0.85; }
.small { font-size: 0.875rem; opacity: 0.7; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }
.section-dark {
  background: var(--color-background-dark);
  color: var(--color-on-dark);
}
.section-dark .eyebrow { color: var(--color-ember); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 1rem 2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  cursor: pointer;
  min-height: 44px;
}
.btn-primary:hover { background: var(--color-primary-deep); transform: translateY(-2px); }
.btn-primary:focus-visible { outline: 2px solid var(--color-ember); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-ink);
  padding: 0.4rem 0.1rem;
  position: relative;
  cursor: pointer;
  font-weight: 500;
  min-height: 44px;
}
.btn-ghost::after {
  content: '';
  position: absolute; left: 0; bottom: 0.35rem;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-ghost:focus-visible { outline: 2px solid var(--color-ember); outline-offset: 3px; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  height: 68px;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

/* Pages that open on a full-bleed photo (hero/page-hero) need light nav text
   until the nav goes solid on scroll. Pages without a hero (gallery, contact)
   sit on the cream background from the start and use the default dark ink. */
.site-nav.nav-on-dark:not(.is-scrolled) .nav-brand,
.site-nav.nav-on-dark:not(.is-scrolled) .nav-links a {
  color: var(--color-on-dark);
}
.site-nav.nav-on-dark:not(.is-scrolled) .nav-brand span {
  color: #E8A15E;
}
.site-nav.nav-on-dark:not(.is-scrolled) .nav-links a[aria-current="page"] {
  color: #E8A15E;
}
.site-nav.nav-on-dark:not(.is-scrolled) .nav-toggle span {
  background: var(--color-on-dark);
}
/* The mobile panel is always a solid cream sheet, even on nav-on-dark pages.
   Selector specificity is bumped to beat the .nav-on-dark:not(.is-scrolled) rule above. */
.site-nav.nav-on-dark:not(.is-scrolled) .nav-links.is-open a {
  color: var(--color-ink);
}
.site-nav.nav-on-dark:not(.is-scrolled) .nav-links.is-open a[aria-current="page"] {
  color: var(--color-primary);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-brand span { color: var(--color-primary); font-style: italic; }
.nav-links { display: flex; gap: var(--space-lg); align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0.35rem;
  width: 100%; height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--color-primary); }

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.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); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-background-dark);
  color: var(--color-on-dark);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: var(--space-sm);
}
.site-footer a, .site-footer p { color: var(--color-on-dark-muted); font-size: 0.95rem; }
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-on-dark);
  margin-bottom: var(--space-sm);
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--color-on-dark); }
.footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-xl) auto 0;
  padding: var(--space-md) var(--space-lg) 0;
  border-top: 1px solid var(--color-border-dark);
  font-size: 0.8rem;
  color: var(--color-on-dark-muted);
  display: flex;
  justify-content: space-between;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-background-alt);
  border-radius: 2px;
  border: 1px solid var(--color-border);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card:hover { border-color: var(--color-primary); transform: translateY(-6px); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-md); }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.field input::placeholder, .field textarea::placeholder { color: #B8A88C; }

/* ---------- Reveal animation hooks (GSAP-driven; base state here) ---------- */
.reveal { opacity: 0; }
.reveal-item { opacity: 0; }
.hero-enter { opacity: 0; }
[data-split] { overflow: hidden; }
.split-line { overflow: hidden; }
.img-reveal { overflow: hidden; position: relative; }
.img-reveal img { will-change: transform; }

/* ---------- Lightbox (gallery) ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(30, 20, 13, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out);
  z-index: 300;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  width: auto; height: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: var(--space-md); right: var(--space-lg);
  width: 44px; height: 44px;
  font-size: 2rem; line-height: 1;
  color: var(--color-on-dark);
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-close:focus-visible { outline: 2px solid var(--color-ember); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: -10% 0 0 0; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,20,13,0.18) 0%, rgba(30,20,13,0.35) 55%, rgba(30,20,13,0.78) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--color-on-dark); padding-bottom: var(--space-2xl); width: 100%; }
.hero .eyebrow { color: #E8A15E; }
.hero h1 { color: var(--color-on-dark); }
.hero .lede { color: var(--color-on-dark-muted); max-width: 42ch; }
.hero-actions { display: flex; gap: 1.75rem; margin-top: var(--space-md); flex-wrap: wrap; align-items: center; }
.hero .btn-ghost { color: var(--color-on-dark); }

.scroll-cue {
  position: absolute; bottom: var(--space-lg); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--color-on-dark-muted);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 40px; background: rgba(241,230,211,0.25); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--color-ember);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line::after { animation: none; top: 0; } }

/* ---------- Asymmetric text+image sections ---------- */
.split-block { display: grid; grid-template-columns: 1fr 0.9fr; gap: var(--space-xl); align-items: center; }
.split-block.reverse { grid-template-columns: 0.9fr 1fr; }
.split-block.reverse .split-media { order: -1; }
.split-media { overflow: hidden; border-radius: 2px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
@media (max-width: 768px) {
  .split-block, .split-block.reverse { grid-template-columns: 1fr; }
  .split-block.reverse .split-media { order: 0; }
}

/* ---------- Dish / feature grid ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.dish-card .img-reveal { aspect-ratio: 4/5; margin-bottom: var(--space-sm); }
.dish-card .img-reveal img { width: 100%; height: 100%; object-fit: cover; }
.dish-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish-row h3 { flex: 1; }
.dish-price { font-family: var(--font-display); font-style: italic; color: var(--color-ember); font-size: 1.15rem; white-space: nowrap; }
.dish-desc { margin-top: 0.4rem; }
@media (max-width: 768px) { .dish-grid { grid-template-columns: 1fr; } }

/* ---------- Pull quote band ---------- */
.quote-band { text-align: center; max-width: 900px; margin: 0 auto; }
.quote-band .pull-quote { color: var(--color-on-dark); }
.quote-band cite { display: block; margin-top: var(--space-md); font-style: normal; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-dark-muted); }

.press-row { display: flex; justify-content: center; gap: var(--space-xl); flex-wrap: wrap; margin-top: var(--space-lg); }
.press-row span { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--color-on-dark-muted); }

/* ---------- Page hero (shorter, non-home) ---------- */
.page-hero {
  height: 64vh; min-height: 420px;
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero .hero-content { padding-bottom: var(--space-xl); }

/* ---------- Values grid ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.value-item svg { width: 32px; height: 32px; color: var(--color-primary); margin-bottom: var(--space-sm); }
@media (max-width: 768px) { .value-grid { grid-template-columns: 1fr; gap: var(--space-lg); } }

/* ---------- Stats band ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); text-align: center; }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--color-ember);
  font-style: italic;
}
.stat-item .stat-label { margin-top: 0.5rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-on-dark-muted); }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Image strip ---------- */
.image-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.image-strip .img-reveal { aspect-ratio: 3/4; }
.image-strip .img-reveal img { width: 100%; height: 100%; object-fit: cover; }
.image-strip figcaption { margin-top: 0.6rem; font-size: 0.85rem; opacity: 0.65; }
@media (max-width: 768px) { .image-strip { grid-template-columns: 1fr; } }

/* ---------- Menu page ---------- */
.menu-tabs {
  position: sticky; top: 68px; z-index: 50;
  background: rgba(251, 246, 236, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.menu-tabs .container { display: flex; gap: var(--space-lg); overflow-x: auto; }
.menu-tabs a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; padding: 0.5rem 0; position: relative; color: var(--color-ink); opacity: 0.6;
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.menu-tabs a[aria-current="page"] { color: var(--color-primary); opacity: 1; }
.menu-tabs a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transition: transform var(--dur-fast) var(--ease-out);
}
.menu-tabs a[aria-current="page"]::after { transform: scaleX(1); }

.menu-item-list { margin-top: var(--space-lg); }
.menu-item { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.menu-item:last-child { border-bottom: none; }
.menu-note { margin-top: var(--space-sm); font-style: italic; opacity: 0.7; }

.seasonal-callout {
  text-align: center; max-width: 680px; margin: 0 auto;
}

/* ---------- No-hero page intro (gallery, contact) ---------- */
.intro-band { padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg); }

/* ---------- Gallery ---------- */
.gallery-grid {
  column-count: 3;
  column-gap: var(--space-md);
}
.gallery-grid figure {
  break-inside: avoid;
  margin: 0 0 var(--space-md);
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}
.gallery-grid img {
  width: 100%; display: block;
  transition: transform 500ms var(--ease-out);
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30,20,13,0.35) 100%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.gallery-grid figure:hover::after { opacity: 1; }
@media (max-width: 1024px) { .gallery-grid { column-count: 2; } }
@media (max-width: 600px) { .gallery-grid { column-count: 1; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-2xl); align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }

.reserve-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 600px) { .reserve-form .field-row { grid-template-columns: 1fr; } }

.form-note {
  margin-top: 0; max-height: 0; opacity: 0; overflow: hidden;
  border-left: 3px solid var(--color-primary);
  background: var(--color-background-alt);
  font-size: 0.9rem;
  transition: opacity var(--dur-med) var(--ease-out), max-height var(--dur-med) var(--ease-out), margin-top var(--dur-med) var(--ease-out);
}
.form-note.is-visible { opacity: 1; max-height: 200px; margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); }

.exterior-band { position: relative; height: 46vh; min-height: 340px; overflow: hidden; }
.exterior-band img { width: 100%; height: 100%; object-fit: cover; }
.exterior-band-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--color-on-dark);
}

/* ---------- Info list (hours/contact) ---------- */
.info-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
.info-row svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--color-primary); margin-top: 2px; }
.info-row .label { font-weight: 600; font-size: 0.95rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.98rem; }
.hours-table td:last-child { text-align: right; color: var(--color-ink); opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --space-2xl: 5rem; --space-3xl: 6rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 72px; --space-xl: 3.5rem; --space-2xl: 4rem; }
  .container { padding: 0 var(--space-md); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero-actions { gap: 1rem 1.5rem; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--color-background);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease-in-out);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; font-family: var(--font-display); }
  .nav-toggle { display: flex; }
  .site-footer .container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; }
}
