/* =====================================================================
   DREAMSEA — Prototype Stylesheet
   Prepared by Digifren (digifren.com) for the DREAMSEA Programme
   ---------------------------------------------------------------------
   ELEMENTOR MAPPING NOTES
   - Each :root variable maps to an Elementor Global Color / Global Font.
   - Each ".section" = one Elementor Container (full width, "Section").
   - Each ".container" = one inner Elementor Container (boxed width).
   - Each ".grid" = an Elementor Container set to display:grid (or a Loop Grid).
   - Each ".card" = one Elementor Loop Item template.
   - No pseudo-elements are used for structural visuals.
   - No clip-path / backdrop-filter / canvas / complex SVG.
   - All spacing uses rem so it transfers 1:1 to Elementor spacing controls.
   ===================================================================== */

/* ---------- 1. Design tokens (Elementor Global Colors & Fonts) ------- */
:root {
  /* Brand — derived from the DREAMSEA logo + manuscript heritage */
  --ink-900: #0d1a2b;   /* deep navy ink — hero / footer / dark sections */
  --ink-800: #142339;
  --ink-700: #1d3253;   /* primary navy */
  --ink-500: #3a5680;   /* secondary navy / links */
  --gold-600: #a9803a;  /* manuscript illumination gold — primary accent */
  --gold-500: #c19a52;  /* lighter gold */
  --gold-200: #e7d6b3;  /* soft gold tint */
  --brick: #a8412e;     /* DREAM red — used very sparingly */

  /* Neutrals — warm parchment family */
  --parchment: #f6f1e7; /* primary warm background */
  --parchment-2: #efe6d6;
  --paper: #fdfbf7;     /* card / clean surface */
  --line: #e4dac6;      /* hairlines on light */
  --line-dark: #284067; /* hairlines on dark */

  /* Text */
  --text: #20262e;      /* body on light */
  --muted: #6f6657;     /* muted warm grey */
  --on-dark: #f3eee3;   /* body on dark */
  --on-dark-muted: #aeb9cb;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii & shadows (Elementor border-radius + box-shadow controls) */
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(13, 26, 43, 0.06), 0 4px 16px rgba(13, 26, 43, 0.05);
  --shadow-md: 0 8px 30px rgba(13, 26, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 26, 43, 0.16);

  /* Rhythm */
  --container-max: 75rem;       /* 1200px */
  --section-pad: 7rem;          /* vertical section padding */
  --gap: 1.5rem;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ----------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-900);
}

p { margin: 0; }

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

/* ---------- 3. Layout primitives ------------------------------------ */
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: 4.5rem; }

.section--ink {
  background: var(--ink-900);
  color: var(--on-dark);
}
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--paper); }

.section--parchment { background: var(--parchment); }
.section--parchment-2 { background: var(--parchment-2); }
.section--paper { background: var(--paper); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow { max-width: 52rem; }

/* Grid system (Elementor Container display:grid) */
.grid { display: grid; gap: var(--gap); }
.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--gap-lg { gap: 2.5rem; }

/* Split layout (text + media) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--media-first .split__media { order: -1; }

/* ---------- 4. Section intro block ---------------------------------- */
.intro { max-width: 44rem; margin-bottom: 3.5rem; }
.intro--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.section--ink .eyebrow { color: var(--gold-500); }

.intro__title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  margin-bottom: 1.25rem;
}
.intro__text { color: var(--muted); font-size: 1.125rem; }
.section--ink .intro__text { color: var(--on-dark-muted); }

/* Generic display heading scale (utility classes) */
.display-xl { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.75rem); }
.display-lg { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); }
.text-lead { font-size: 1.2rem; line-height: 1.65; color: var(--muted); }
.section--ink .text-lead { color: var(--on-dark-muted); }

/* ---------- 5. Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--gold-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-500); box-shadow: var(--shadow-md); }

.btn--ink { background: var(--ink-900); color: var(--paper); }
.btn--ink:hover { background: var(--ink-700); }

.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-900); }

.btn--light { background: var(--paper); color: var(--ink-900); }
.btn--light:hover { background: var(--gold-200); }

.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(243, 238, 227, 0.35); }
.btn--outline-light:hover { border-color: var(--paper); }

.btn__icon { width: 1.05rem; height: 1.05rem; stroke-width: 2; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-600);
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover { gap: 0.8rem; color: var(--ink-900); }
.section--ink .link-arrow { color: var(--gold-500); }
.section--ink .link-arrow:hover { color: var(--paper); }
.link-arrow svg { width: 1rem; height: 1rem; stroke-width: 2; }

/* ---------- 6. Media wrapper (graceful fallback) -------------------- */
/* The gradient ensures the slot still looks intentional if an image
   fails to load. Replace src with final licensed assets in production. */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  aspect-ratio: 4 / 3;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- 7. Header / navigation --------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(253, 251, 247, 0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.nav__logo { height: 1.85rem; width: auto; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}
.is-hero-light .nav__wordmark { color: var(--paper); }
.site-header.is-solid .nav__wordmark { color: var(--ink-900); }

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color var(--transition);
}
.is-hero-light .nav__link { color: rgba(243, 238, 227, 0.85); }
.site-header.is-solid .nav__link { color: var(--ink-700); }
.nav__link:hover,
.nav__link.is-active { color: var(--gold-600); }

.nav__cta { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.is-hero-light .nav__toggle { border-color: rgba(243, 238, 227, 0.4); }
.site-header.is-solid .nav__toggle { border-color: var(--line); }
.nav__toggle svg { width: 1.4rem; height: 1.4rem; color: var(--ink-900); }
.is-hero-light .nav__toggle svg { color: var(--paper); }
.site-header.is-solid .nav__toggle svg { color: var(--ink-900); }

/* ---------- 8. Hero ------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: 9rem 5rem;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(180deg, rgba(13, 26, 43, 0.78), rgba(13, 26, 43, 0.92)),
    url("https://images.unsplash.com/photo-1532153975070-2e9ab71f1b14?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: var(--on-dark);
}
.hero--page {
  min-height: 62vh;
  padding-block: 11rem 5rem;
  background-image:
    linear-gradient(180deg, rgba(13, 26, 43, 0.80), rgba(13, 26, 43, 0.94)),
    url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=80");
}
.hero__inner { max-width: 46rem; }
.hero__eyebrow { color: var(--gold-500); }
.hero__title {
  color: var(--paper);
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero__text {
  font-size: 1.2rem;
  color: var(--on-dark-muted);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.hero__meta-item { min-width: 7rem; }
.hero__meta-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1;
}
.hero__meta-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------- 9. About split ----------------------------------------- */
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.about-card__list { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.about-fact { display: flex; gap: 0.85rem; align-items: flex-start; }
.about-fact svg { width: 1.3rem; height: 1.3rem; color: var(--gold-600); flex: none; margin-top: 0.2rem; }
.about-fact span { font-size: 1rem; color: var(--text); }

/* ---------- 10. Cards (Loop Items) --------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-200);
}
.card:hover .media img { transform: scale(1.05); }
.card__body { padding: 1.6rem 1.6rem 1.85rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.card__title { font-size: 1.4rem; }
.card__title--sm { font-size: 1.2rem; }
.card__text { font-size: 0.97rem; color: var(--muted); }
.card__meta { font-size: 0.85rem; color: var(--muted); margin-top: auto; }
.card__link { margin-top: 0.4rem; }

/* Card variant on dark sections */
.card--dark {
  background: var(--ink-800);
  border-color: var(--line-dark);
}
.card--dark .card__title { color: var(--paper); }
.card--dark .card__text { color: var(--on-dark-muted); }
.card--dark:hover { border-color: var(--ink-500); }

/* Featured editorial card (image + text side by side) */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feature__media { aspect-ratio: auto; min-height: 24rem; border-radius: 0; }
.feature__body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.feature__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }

/* ---------- 11. Stats ---------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat {
  text-align: center;
  padding: 2.25rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.4rem);
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 12. Partners ------------------------------------------- */
.partner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.partner:hover { border-color: var(--gold-200); transform: translateY(-4px); }
.partner__name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-900); }
.partner__role { font-size: 0.88rem; color: var(--muted); }

/* ---------- 13. Timeline ------------------------------------------- */
.timeline { display: grid; gap: 0; max-width: 46rem; }
.timeline__item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-600);
}
.timeline__title { font-size: 1.2rem; margin-bottom: 0.35rem; }
.timeline__text { font-size: 0.97rem; color: var(--muted); }

/* ---------- 14. Filter chips (Story) ------------------------------- */
.filter { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 3rem; }
.filter__chip {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter__chip:hover { border-color: var(--gold-600); color: var(--gold-600); }
.filter__chip.is-active { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

/* Hide filtered-out cards */
.is-hidden { display: none !important; }

/* ---------- 15. News layout (grid + sidebar) ----------------------- */
.news-layout { display: grid; grid-template-columns: 1fr 19rem; gap: 3rem; align-items: start; }
.sidebar { display: grid; gap: 1.75rem; position: sticky; top: 6rem; }
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.widget__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.widget__list { display: grid; gap: 0.85rem; }
.widget__link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-700);
  transition: color var(--transition);
}
.widget__link:hover { color: var(--gold-600); }
.widget__count { color: var(--muted); }
.widget__post { display: grid; gap: 0.25rem; }
.widget__post + .widget__post { padding-top: 0.85rem; border-top: 1px solid var(--line); }
.widget__post-title { font-size: 0.92rem; font-weight: 600; color: var(--ink-900); line-height: 1.4; }
.widget__post-date { font-size: 0.8rem; color: var(--muted); }

/* ---------- 16. Newsletter ----------------------------------------- */
.newsletter {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  color: var(--on-dark);
}
.newsletter__title { color: var(--paper); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 0.85rem; }
.newsletter__text { color: var(--on-dark-muted); max-width: 34rem; margin: 0 auto 2rem; }
.newsletter__form { display: flex; gap: 0.75rem; max-width: 30rem; margin-inline: auto; flex-wrap: wrap; }
.newsletter__input {
  flex: 1;
  min-width: 12rem;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.newsletter__input::placeholder { color: var(--on-dark-muted); }
.newsletter__input:focus { outline: none; border-color: var(--gold-500); }
.newsletter__note { margin-top: 1rem; font-size: 0.85rem; color: var(--gold-500); min-height: 1.2rem; }

/* ---------- 17. CTA band ------------------------------------------- */
.cta {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}
.cta__title { color: var(--paper); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin-bottom: 1.25rem; }
.cta__text { color: var(--on-dark-muted); font-size: 1.15rem; margin-bottom: 2.25rem; }
.cta .btn-row { justify-content: center; }

/* ---------- 18. Footer --------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-muted); padding-block: 4.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.footer__logo { height: 1.7rem; }
.footer__wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--paper); }
.footer__about { font-size: 0.95rem; line-height: 1.7; max-width: 22rem; }
.footer__title {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 1.1rem;
}
.footer__list { display: grid; gap: 0.7rem; }
.footer__list a { font-size: 0.95rem; color: var(--on-dark-muted); transition: color var(--transition); }
.footer__list a:hover { color: var(--paper); }
.footer__contact { font-size: 0.95rem; line-height: 1.7; font-style: normal; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark-muted);
  transition: all var(--transition);
}
.footer__social a:hover { border-color: var(--gold-500); color: var(--gold-500); }
.footer__social svg { width: 1.1rem; height: 1.1rem; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
}

/* ---------- 19. Scroll-reveal (maps to Elementor Motion Effects) ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20. Mobile nav panel ----------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--ink-900);
  color: var(--paper);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; height: 3.25rem; }
.mobile-nav__close {
  width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); cursor: pointer; color: var(--paper);
}
.mobile-nav__close svg { width: 1.4rem; height: 1.4rem; }
.mobile-nav__menu { display: grid; gap: 0.5rem; margin-top: 2rem; }
.mobile-nav__menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}
.mobile-nav__menu a:hover { color: var(--gold-500); }

/* ---------- 21. Responsive ----------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-pad: 5.5rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
}

@media (max-width: 768px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--media-first .split__media { order: 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 16rem; }
  .feature__body { padding: 2rem; }
  .hero { min-height: 90vh; }
  .timeline__item { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .newsletter { padding: 2.5rem 1.5rem; }
}

@media (max-width: 560px) {
  :root { --section-pad: 4rem; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.5rem; }
  .feature__body { padding: 1.5rem; }
}

/* ---------- 22. Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
