/* =============================================================
   Discovery Preparatory Academy — Design System
   Mobile-first. Defined once, reused on every page.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --ink:            #0B0B0C;
  --ink-2:          #141417;
  --ink-3:          #1D1D21;
  --bone:           #F7F5F1;
  --white:          #FFFFFF;
  --gold:           #C9A227;   /* 8.1:1 on --ink  */
  --gold-bright:    #E3C05A;
  --gold-ink:       #6B5200;   /* 7.4:1 on white — the ONLY gold for text on light */

  /* Text */
  --text-on-dark:   #F2F1EE;
  --muted-on-dark:  #C9C7C2;   /* 11:1 on --ink   */
  --text-on-light:  #16161A;
  --muted-on-light: #4A4A50;   /* 8:1 on --bone   */

  /* Lines & surfaces */
  --line-dark:      rgba(255, 255, 255, 0.14);
  --line-light:     rgba(11, 11, 12, 0.12);
  --surface-dark:   #141417;
  --surface-light:  #FFFFFF;

  /* Type */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.08rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.40rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.50rem + 1.25vw, 2.45rem);
  --step-4:  clamp(2.10rem, 1.70rem + 2.00vw, 3.25rem);
  --step-5:  clamp(2.50rem, 1.85rem + 3.25vw, 4.50rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 1180px;
  --measure: 68ch;

  /* Radius & shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, 0.45);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-bright); }

/* ---------- 3. Accessibility utilities ---------- */
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--ink); }

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

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 60em) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: var(--section-y); }
.section--light { background: var(--bone); color: var(--text-on-light); }
.section--white { background: var(--white); color: var(--text-on-light); }
.section--panel { background: var(--ink-2); }

.section--light p, .section--white p { color: var(--muted-on-light); }
.section--light h2, .section--light h3, .section--light h4,
.section--white h2, .section--white h3, .section--white h4 { color: var(--text-on-light); }
.section--light a:not(.btn), .section--white a:not(.btn) { color: var(--gold-ink); }
.section--light a:not(.btn):hover, .section--white a:not(.btn):hover { color: var(--ink); }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 48em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48em) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.grid--split { align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 62em) { .grid--split { grid-template-columns: 1fr 1fr; } }

.center { text-align: center; }
.center p { margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }

/* ---------- 5. Eyebrow, rule, section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--light .eyebrow, .section--white .eyebrow { color: var(--gold-ink); }
.center .eyebrow::before { display: none; }

.section-head { margin-bottom: var(--sp-7); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted-on-dark); }
.section--light .lead, .section--white .lead { color: var(--muted-on-light); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--gold:hover { --btn-bg: var(--gold-bright); --btn-bd: var(--gold-bright); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-on-dark); --btn-bd: var(--line-dark); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-bd: var(--gold); --btn-fg: var(--white); }

.btn--outline-dark { --btn-bg: transparent; --btn-fg: var(--text-on-light); --btn-bd: var(--line-light); }
.btn--outline-dark:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.center .btn-row { justify-content: center; }

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(11, 11, 12, 0.96); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--white);
  flex: none;
}
.brand:hover { color: var(--white); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 26em) { .brand__name { font-size: 0.86rem; } .brand__tag { font-size: 0.55rem; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  color: var(--text-on-dark);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-5) var(--sp-8);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav.is-open { transform: translateX(0); visibility: visible; }

.nav__list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.nav__link {
  display: block;
  padding: var(--sp-3) 0;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.nav__link:hover { color: var(--gold); }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav__cta { align-self: flex-start; }

body.nav-open { overflow: hidden; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-6);
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
  }
  .nav__list { flex-direction: row; gap: var(--sp-6); }
  .nav__link {
    padding: var(--sp-2) 0;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 500;
    border-bottom: 0;
    position: relative;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s var(--ease);
  }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__cta { padding: 0.6rem 1.2rem; min-height: 44px; }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.72) 0%, rgba(11, 11, 12, 0.86) 60%, var(--ink) 100%),
    radial-gradient(70% 60% at 20% 30%, rgba(201, 162, 39, 0.18), transparent 70%);
}
.hero__inner { padding-block: clamp(4rem, 3rem + 12vw, 9.5rem); }
.hero__title { max-width: 15ch; }
.hero__title .accent { color: var(--gold); font-style: italic; }
.hero__lead { max-width: 54ch; font-size: var(--step-1); color: var(--muted-on-dark); }

.hero--page .hero__inner { padding-block: clamp(3rem, 2rem + 8vw, 6rem); }
.hero--page .hero__title { max-width: 20ch; font-size: var(--step-4); }

/* Breadcrumb */
.crumbs { font-size: var(--step--1); color: var(--muted-on-dark); margin-bottom: var(--sp-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--line-dark); }
.crumbs a { color: var(--muted-on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 9. Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__media { aspect-ratio: 16 / 10; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); padding: var(--sp-5); }
.card__kicker {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__title { margin: 0; font-size: var(--step-2); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--muted-on-dark); font-size: 0.97rem; }
.card__link { margin-top: auto; padding-top: var(--sp-3); font-weight: 600; color: var(--gold); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--linked { position: relative; }

.section--light .card, .section--white .card {
  background: var(--white);
  border-color: var(--line-light);
  box-shadow: var(--shadow-1);
}
.section--light .card p, .section--white .card p { color: var(--muted-on-light); }
.section--light .card__kicker, .section--white .card__kicker { color: var(--gold-ink); }
.section--light .card__link, .section--white .card__link { color: var(--gold-ink); }
.section--light .card:hover, .section--white .card:hover { border-color: var(--gold-ink); box-shadow: var(--shadow-2); }

/* Feature (icon-free, numbered) */
.feature { border-top: 1px solid var(--line-dark); padding-top: var(--sp-5); }
.feature__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted-on-dark); font-size: 0.97rem; }
.section--light .feature, .section--white .feature { border-top-color: var(--line-light); }
.section--light .feature__num, .section--white .feature__num { color: var(--gold-ink); }
.section--light .feature p, .section--white .feature p { color: var(--muted-on-light); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: var(--sp-5); border-top: 2px solid var(--line-dark); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: var(--step-3);
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps p { color: var(--muted-on-dark); font-size: 0.95rem; }
.section--light .steps li { border-top-color: var(--line-light); }
.section--light .steps li::before { color: var(--gold-ink); }
.section--light .steps p { color: var(--muted-on-light); }

/* Checklist */
.checklist { list-style: none; display: grid; gap: var(--sp-3); }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.section--light .checklist li::before, .section--white .checklist li::before { border-color: var(--gold-ink); }

/* Media figure */
.figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-dark); }
.figure img { width: 100%; }
.figure figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--step--1);
  color: var(--muted-on-dark);
  background: var(--surface-dark);
}
.section--light .figure, .section--white .figure { border-color: var(--line-light); }
.section--light .figure figcaption, .section--white .figure figcaption { background: var(--white); color: var(--muted-on-light); }

/* Stat / detail strip */
.detail-list { list-style: none; display: grid; gap: var(--sp-5); }
@media (min-width: 48em) { .detail-list { grid-template-columns: repeat(3, 1fr); } }
.detail-list dt, .detail-list .dt {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.detail-list dd { margin: 0; font-family: var(--font-heading); font-size: var(--step-2); }

/* Callout / note */
.note {
  border-left: 3px solid var(--gold);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(201, 162, 39, 0.07);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.97rem;
}
.section--light .note, .section--white .note { border-left-color: var(--gold-ink); background: rgba(107, 82, 0, 0.06); }

/* ---------- 10. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--muted-on-dark); margin-inline: auto; }

/* ---------- 11. FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--step-1);
  color: var(--text-on-light);
  cursor: pointer;
}
.faq__q:hover { color: var(--gold-ink); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; margin-top: 0.4em; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gold-ink);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: none; padding: 0 0 var(--sp-5); }
.faq__a p { color: var(--muted-on-light); }
.faq__a.is-open { display: block; }

/* ---------- 12. Forms ---------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }
.field .hint { font-size: var(--step--1); color: var(--muted-on-dark); }
.req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  color: var(--text-on-dark);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A8890; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
}
.field select { appearance: none; background-image: none; padding-right: 2.4rem; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 48em) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }

.form-note { font-size: var(--step--1); color: var(--muted-on-dark); }

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 0.97rem;
}
.alert[hidden] { display: none; }
.alert--ok { border-color: var(--gold); background: rgba(201, 162, 39, 0.1); color: var(--text-on-dark); }
.alert--bad { border-color: #F0A6A6; background: rgba(240, 166, 166, 0.1); color: var(--text-on-dark); }

/* Newsletter (footer + home) */
.newsletter { display: grid; gap: var(--sp-3); }
@media (min-width: 34em) { .newsletter__row { display: flex; gap: var(--sp-3); } .newsletter__row input { flex: 1; } }

/* ---------- 13. Contact blocks ---------- */
.contact-list { list-style: none; display: grid; gap: var(--sp-5); }
.contact-list .label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-1);
}
.contact-list a { font-family: var(--font-heading); font-size: var(--step-1); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding-block: var(--sp-8) var(--sp-5);
}
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 48em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 75em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

.footer__title {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; display: grid; gap: var(--sp-3); }
.footer__list a { color: var(--muted-on-dark); text-decoration: none; font-size: 0.95rem; }
.footer__list a:hover { color: var(--gold); }
.footer__blurb { color: var(--muted-on-dark); font-size: 0.95rem; max-width: 38ch; }

.socials { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted-on-dark);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: var(--muted-on-dark);
}
.footer__bottom p { margin: 0; }

/* ---------- 15. 404 ---------- */
.page-404 {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  text-align: center;
  padding-block: var(--sp-8);
}
.page-404__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.9;
  color: var(--gold);
  margin: 0 0 var(--sp-5);
}

/* ---------- 16. Light-surface overrides ----------
   --gold on white is only 2.4:1. Anywhere gold is used as TEXT on a light
   section it must fall back to --gold-ink (7.4:1). Decorative gold borders
   and rules are unaffected. */
.section--light .contact-list .label,
.section--white .contact-list .label,
.section--light .detail-list dt,
.section--white .detail-list dt,
.section--light .req,
.section--white .req {
  color: var(--gold-ink);
}

.section--light .form-note,
.section--white .form-note,
.section--light .hint,
.section--white .hint,
.section--light .contact-list p,
.section--white .contact-list p {
  color: var(--muted-on-light);
}

.section--light .contact-list a,
.section--white .contact-list a { color: var(--gold-ink); }

.faq__item h3 { margin: 0; font-size: inherit; font-weight: inherit; }

/* ---------- 17. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
