/* ============================================================
   The Superyacht Galley — Base CSS Framework
   Design Language: Quiet Luxury / Ultra-Minimalist Marine — Light
   ============================================================ */

/* ── Google Fonts preload (self-host later for max speed) ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Palette — Light */
  --color-bg:           #ffffff;
  --color-bg-secondary: #f4f6f8;
  --color-bg-card:      #ffffff;
  --color-gold:         #9a7800;
  --color-gold-dim:     rgba(154, 120, 0, 0.08);
  --color-gold-border:  rgba(154, 120, 0, 0.25);
  --color-text:         #0f1e35;
  --color-text-muted:   #4a5e72;
  --color-text-dim:     #8fa1b3;
  --color-border:       #dce3eb;
  --color-border-subtle:rgba(203, 215, 228, 0.7);
  --color-glass:        rgba(255, 255, 255, 0.92);

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 780px;
  --radius:       8px;
  --radius-lg:    14px;

  /* Motion */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:cubic-bezier(0, 0, 0.2, 1);
  --duration:0.4s;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ── Typography scale ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
h5 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: var(--space-sm); color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

strong { color: var(--color-text); font-weight: 600; }
em { font-style: italic; }

.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-text-muted); }
.text-dim     { color: var(--color-text-dim); }
.text-serif   { font-family: var(--font-serif); }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.125rem; }

/* ── Layout containers ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--sm {
  padding-block: var(--space-xl);
}

/* ── Gold rule divider ───────────────────────────────────── */
.rule {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold-border);
}

.rule--left::before { display: none; }
.rule--left::after { flex: 0 0 60px; }

.rule-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(15, 30, 53, 0.06);
  transition: background var(--duration) var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Logo */
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.site-logo span {
  color: var(--color-gold);
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.35s var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8.25px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8.25px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: blur(16px);
  padding: var(--space-xl) var(--space-md);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}

.mobile-nav-link:hover {
  color: var(--color-gold);
  padding-left: var(--space-sm);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

/* Hero overlay — stays dark so white text is legible on image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 20, 40, 0.55),
    rgba(10, 20, 40, 0.80)
  );
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Hero text always white (on dark image overlay) */
.hero h1,
.hero h2,
.hero h3,
.hero .hero-title {
  color: #ffffff;
}
.hero p,
.hero .hero-sub {
  color: rgba(255, 255, 255, 0.82);
}
.hero strong {
  color: #ffffff;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f0c060;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #f0c060;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.hero-title strong {
  font-style: normal;
  font-weight: 700;
  color: #ffffff;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-gold);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gold);
  border-color: transparent;
  padding-inline: var(--space-xs);
}

.btn--ghost:hover { color: var(--color-text); }

/* Hero buttons override (on dark hero bg) */
.hero .btn--outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn--outline:hover {
  border-color: #f0c060;
  color: #f0c060;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--color-gold-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 30, 53, 0.08);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md) var(--space-lg);
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.card-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: gap var(--duration) var(--ease);
}

.card-link:hover { gap: 0.7em; }

/* Icon card (services) */
.icon-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.icon-card:hover {
  border-color: var(--color-gold-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 30, 53, 0.08);
}

.icon-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  background: var(--color-gold-dim);
}

.icon-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
}

/* ── Grid systems ────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-md); }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.grid--auto-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--auto-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ── Section headings ────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* ── Gold line separator ──────────────────────────────────── */
.sep {
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  margin-block: var(--space-md);
}

.sep--center { margin-inline: auto; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.breadcrumb a:hover { color: var(--color-gold); }

.breadcrumb-sep {
  color: var(--color-border);
  font-size: 0.6rem;
}

/* ── Page header (inner pages) ───────────────────────────── */
.page-header {
  padding-top: calc(70px + var(--space-2xl));
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
  background: var(--color-bg-secondary);
}
.page-header--has-hero {
  padding-bottom: var(--space-lg);
  border-bottom: none;
  margin-bottom: 0;
}

/* ── Footer — dark navy for contrast ────────────────────── */
.site-footer {
  background: #0f1e35;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: var(--space-2xl);
  color: #e2e8f0;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: var(--space-sm);
}

.footer-brand span { color: #f0c060; }

.footer-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-email {
  font-size: 0.85rem;
  color: #f0c060;
  transition: color var(--duration) var(--ease);
}

.footer-email:hover { color: #e2e8f0; }

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.85rem;
  color: #64748b;
  transition: color var(--duration) var(--ease);
}

.footer-link:hover { color: #f0c060; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-md);
}

.footer-legal-links a {
  color: #64748b;
  transition: color var(--duration) var(--ease);
}

.footer-legal-links a:hover { color: #f0c060; }

/* ── Stats strip ─────────────────────────────────────────── */
.stats-strip {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* ── Image utilities ─────────────────────────────────────── */
.img-16-9  { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--radius); }
.img-4-3   { aspect-ratio:  4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.img-1-1   { aspect-ratio:  1 / 1; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* ── Form elements ───────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease);
  outline: none;
}

.form-control::placeholder { color: var(--color-text-dim); }

.form-control:focus {
  border-color: var(--color-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--color-gold-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* ── Author expertise box ────────────────────────────────── */
.author-box {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-xl);
}

.author-box-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-border);
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-photo--placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-border);
  background: var(--color-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-gold);
}

.author-box-info {}
.author-box-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.1rem;
}
.author-box-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.author-box-bio {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.author-box-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.4rem;
  display: inline-block;
}

/* ── Utility classes ─────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-sm       { gap: var(--space-sm); }
.gap-md       { gap: var(--space-md); }
.gap-lg       { gap: var(--space-lg); }
.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); }
.mb-sm        { margin-bottom: var(--space-sm); }
.mb-md        { margin-bottom: var(--space-md); }
.mb-lg        { margin-bottom: var(--space-lg); }
.mb-xl        { margin-bottom: var(--space-xl); }
.w-full       { width: 100%; }

/* ── Scroll-reveal animation (JS adds .is-visible) ──────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
  }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .hero-title { font-size: clamp(1.9rem, 8vw, 3rem); }
  .stats-strip { gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }

  .author-box {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-sm); }
  .btn-group { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion preference ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
