/* =========================================================
   International Law Olympiad 2026 — Design System
   ========================================================= */

:root {
  /* Palette — Ivory + Indigo (default) */
  --c-bg: #faf6ed;
  --c-bg-2: #efe7d0;
  --c-paper: #ffffff;
  --c-ink: #1e2c52;
  --c-ink-2: #3a4565;
  --c-ink-mute: #6a7188;
  --c-line: #ddd1ad;
  --c-line-soft: #ebe1c5;

  --c-hero: #ece1bf;             /* hero background — warm ivory */
  --c-hero-2: #d9cea9;
  --c-hero-ink: #1e2c52;
  --c-hero-mute: #565f7a;

  /* hero internal tints — dark on light hero */
  --hero-tint: rgba(20,20,30,.035);
  --hero-tint-strong: rgba(20,20,30,.07);
  --hero-border: rgba(20,20,30,.10);
  --hero-border-strong: rgba(20,20,30,.20);
  --hero-icon-bg: rgba(20,20,30,.07);

  --c-accent: #b8893a;            /* warm gold */
  --c-accent-2: #8b6624;
  --c-accent-ink: #2a2008;

  --c-deep: #1e2c52;              /* dark band — always dark */
  --c-deep-ink: #f5eed7;

  /* Type — one display face + one standard UI face */
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Scale */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-card: 0 1px 2px rgba(20,30,60,.04), 0 8px 24px rgba(20,30,60,.06);
  --sh-card-2: 0 2px 6px rgba(20,30,60,.06), 0 18px 48px rgba(20,30,60,.10);

  --t-fast: 160ms ease;
  --t-base: 240ms cubic-bezier(.2,.7,.2,1);

  --hero-radius: 36px;
}

/* =========================================================
   Palette variants (opt-in via [data-palette])
   Default = Ivory + Indigo (set in :root above).
   Alternative palettes are below.
   ========================================================= */

/* shared overrides for OTHER light-hero palettes — dark tints (default already light) */
[data-palette="mist"],
[data-palette="sage"],
[data-palette="blush"] {
  --hero-tint: rgba(20,20,30,.035);
  --hero-tint-strong: rgba(20,20,30,.07);
  --hero-border: rgba(20,20,30,.10);
  --hero-border-strong: rgba(20,20,30,.20);
  --hero-icon-bg: rgba(20,20,30,.07);
}

/* Original Deep blue + Gold — kept as an alternative */
[data-palette="deep-blue"] {
  --c-bg: #f4ede0;
  --c-bg-2: #ece2cf;
  --c-line: #d9cfb8;
  --c-line-soft: #e8dec6;
  --c-ink: #16223a;
  --c-ink-2: #4a5468;
  --c-ink-mute: #7a8294;
  --c-hero: #1b2c4e;
  --c-hero-2: #243a63;
  --c-hero-ink: #f5efdf;
  --c-hero-mute: #c8d0e0;
  --hero-tint: rgba(255,255,255,.04);
  --hero-tint-strong: rgba(255,255,255,.08);
  --hero-border: rgba(255,255,255,.08);
  --hero-border-strong: rgba(255,255,255,.22);
  --hero-icon-bg: rgba(255,255,255,.10);
  --c-accent: #c9a961;
  --c-accent-2: #b58e3f;
  --c-deep: #11203b;
  --c-deep-ink: #f3ebd5;
}

[data-palette="mist"] {
  --c-bg: #f3f1ec;
  --c-bg-2: #e4e2d8;
  --c-line: #cfcbb8;
  --c-line-soft: #ddd9c5;
  --c-hero: #c8d3df;
  --c-hero-2: #b3c0d0;
  --c-hero-ink: #1b2a4b;
  --c-hero-mute: #4d5772;
  --c-accent: #a87e34;
  --c-accent-2: #7e5d1f;
  --c-deep: #1b2a4b;
  --c-deep-ink: #efeadb;
}

[data-palette="sage"] {
  --c-bg: #f5f1e8;
  --c-bg-2: #e6dfc8;
  --c-line: #cfc8a8;
  --c-line-soft: #ddd5b8;
  --c-hero: #cfd6c1;
  --c-hero-2: #b6c0a8;
  --c-hero-ink: #2a3424;
  --c-hero-mute: #586250;
  --c-accent: #99732a;
  --c-accent-2: #6e521b;
  --c-deep: #2a3424;
  --c-deep-ink: #efe7c8;
}

[data-palette="blush"] {
  --c-bg: #f9f1e9;
  --c-bg-2: #ecdfd2;
  --c-line: #d8c5b3;
  --c-line-soft: #e6d5c2;
  --c-hero: #ecd2c6;
  --c-hero-2: #dabaaa;
  --c-hero-ink: #4a1d23;
  --c-hero-mute: #76555a;
  --c-accent: #a35b3a;
  --c-accent-2: #7c4126;
  --c-deep: #4a1d23;
  --c-deep-ink: #f6e6d4;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
html { scroll-behavior: smooth; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Default numerals everywhere: lining (uniform height) + proportional */
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
}

/* Force lining + tabular numerals on every element that displays numbers. */
.h-display, .h-section, .hero__title, .hero__eyebrow,
.stat__num, .stage-card__num, .stage-card__date,
.section-num, .tl-meta__date, .tl-meta__title, .tl-dot,
.doc__title, .doc__meta, .summary__row dd, .summary__row dt,
.step__dot, .info-list dd, .partner__name, .partner__sub,
.brand__title, .brand__sub, .faq summary {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Container */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
}

/* Headings */
.h-display {
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
  text-wrap: balance;
}
.h-section {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.h-section--upper { text-transform: uppercase; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin: 0;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  background: color-mix(in oklab, var(--c-bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.site-header__inner > * { min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-deep);
  display: grid; place-items: center;
  color: var(--c-accent);
  flex: 0 0 auto;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__text {
  display: flex; flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.brand__title {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 11px;
  color: var(--c-ink-mute);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  transition: background var(--t-fast), color var(--t-fast);
  text-transform: uppercase;
}
.nav a:hover { background: var(--c-bg-2); }
.nav a.is-active {
  background: var(--c-bg-2);
  color: var(--c-ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--c-ink-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang button[aria-pressed="true"] {
  background: var(--c-deep);
  color: var(--c-deep-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.btn--primary:hover { background: var(--c-accent-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}
.btn--ghost:hover { background: var(--c-bg-2); }
.btn--dark {
  background: var(--c-deep);
  color: var(--c-deep-ink);
}
.btn--dark:hover { background: var(--c-hero-ink); color: var(--c-deep); transform: translateY(-1px); filter: none; }
[data-palette="ivory"] .btn--dark:hover,
[data-palette="mist"] .btn--dark:hover,
[data-palette="sage"] .btn--dark:hover,
[data-palette="blush"] .btn--dark:hover { background: var(--c-ink); color: var(--c-bg); }
/* simpler hover for default dark */
.btn--dark:hover { background: #0a172d; color: var(--c-deep-ink); filter: brightness(1.05); }
.btn--block { width: 100%; justify-content: center; }
.btn .arr {
  width: 16px; height: 16px;
  transition: transform var(--t-fast);
}
.btn:hover .arr { transform: translateX(3px); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--c-deep);
  color: var(--c-deep-ink);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .brand__sub { display: none; }
  .btn--signin { display: none; } /* moves to mobile drawer */
}
@media (max-width: 720px) {
  .header-right .btn--primary { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .site-header .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
  }
  .brand { gap: 8px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 22px; height: 22px; }
  .brand__title {
    max-width: 8.8rem;
    font-size: 15px;
    line-height: 1.02;
    text-wrap: balance;
  }
  .header-right {
    flex: 0 0 auto;
    gap: 8px;
  }
  .lang {
    padding: 3px;
  }
  .lang button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 360px) {
  .wrap { padding: 0 12px; }
  .site-header .wrap { padding-left: 18px; padding-right: 18px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__mark svg { width: 20px; height: 20px; }
  .brand__title {
    max-width: 7.5rem;
    font-size: 13px;
  }
  .lang button { padding: 5px 8px; }
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

/* Mobile drawer — always uses --c-deep (dark) regardless of palette */
.drawer {
  position: fixed; inset: 0;
  background: var(--c-deep);
  color: var(--c-deep-ink);
  z-index: 100;
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    clip-path var(--t-base),
    opacity var(--t-fast),
    visibility 0s linear var(--t-base);
  display: flex; flex-direction: column;
  padding: 24px;
}
.drawer.is-open {
  clip-path: inset(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    clip-path var(--t-base),
    opacity var(--t-fast);
}
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.drawer__close {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 0;
  color: var(--c-deep-ink);
  display: grid; place-items: center;
}
.drawer nav {
  display: flex; flex-direction: column;
  margin-top: 16px;
  gap: 4px;
}
.drawer nav a {
  font-family: var(--f-serif);
  font-size: 26px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: var(--c-deep-ink);
}
.drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--c-hero);
  color: var(--c-hero-ink);
  border-radius: var(--hero-radius);
  margin: 12px 0 0;
  padding: 72px 56px 96px;
  overflow: hidden;
}
.hero::before {
  /* subtle pattern */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,169,97,.16), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(201,169,97,.08), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: '';
  width: 22px; height: 1px; background: var(--c-accent);
}
.hero__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 56ch;
  text-align: center;
  color: var(--c-hero-mute);
  font-size: clamp(15px, 1.4vw, 18px);
}
.hero__cta-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero__features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--hero-tint);
  border: 1px solid var(--hero-border);
  border-radius: 20px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.feat:hover { background: var(--hero-tint-strong); transform: translateY(-2px); }
.feat--accent {
  background: color-mix(in oklab, var(--c-accent) 18%, transparent);
  border-color: color-mix(in oklab, var(--c-accent) 35%, transparent);
}
.feat__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--hero-icon-bg);
  display: grid; place-items: center;
  color: var(--c-accent-2);
  flex: 0 0 auto;
}
.feat--accent .feat__icon {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.feat__body { display: flex; flex-direction: column; }
.feat__title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
}
.feat__sub {
  font-size: 12.5px;
  color: var(--c-hero-mute);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero { padding: 56px 28px 80px; border-radius: 28px; }
  .hero__features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero {
    padding: 40px 18px 64px;
    border-radius: 24px;
  }
  .hero__eyebrow {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.18em;
  }
  .hero__eyebrow::before {
    width: 14px;
    margin-top: .72em;
    flex: 0 0 auto;
  }
  .hero__title {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .hero__sub {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.55;
  }
  .hero__cta-row {
    gap: 10px;
    margin-top: 28px;
  }
  .hero__cta-row .btn {
    flex: 1 1 140px;
    justify-content: center;
    padding: 12px 16px;
  }
  .hero__features {
    margin-top: 36px;
    gap: 14px;
  }
  .feat {
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }
}

/* Scallop / curved bottom edge */
.scallop {
  display: none;
}

/* Hero ghost button — auto-fits palette without inline overrides */
.hero .btn--ghost {
  color: var(--c-hero-ink);
  border-color: var(--hero-border-strong);
}
.hero .btn--ghost:hover { background: var(--hero-tint-strong); }

/* =========================================================
   Photo strip
   ========================================================= */
.photo-strip {
  margin: 20px 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--c-deep);
  position: relative;
}
.photo-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.photo-strip:hover img { transform: scale(1.025); }
.photo-strip__caption {
  position: absolute;
  left: 24px; bottom: 20px;
  padding: 8px 14px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .photo-strip { aspect-ratio: 4 / 3; margin-top: 32px; }
  .photo-strip__caption { left: 14px; bottom: 14px; font-size: 11px; }
}

/* =========================================================
   Sections — generic
   ========================================================= */
.section {
  padding: 96px 0;
}
.section--tight { padding: 72px 0; }
.section--dark {
  background: var(--c-deep);
  color: var(--c-deep-ink);
}
.section--paper { background: var(--c-paper); }
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section__head--left { text-align: left; margin-left: 0; }
.section__head p {
  color: var(--c-ink-mute);
  font-size: 17px;
  margin: 0;
}
.section--dark .section__head p { color: rgba(243,235,213,.78); }

.section-num {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-ink-mute);
  font-size: 22px;
}
.section--dark .section-num { color: rgba(243,235,213,.5); }

@media (max-width: 720px) { .section { padding: 64px 0; } }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 40px;
  align-items: start;
}
.stat__num {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  color: var(--c-accent-2);
  letter-spacing: 0;
}
.stat__label {
  margin-top: 10px;
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  max-width: 22ch;
}
.section--dark .stat__label { color: rgba(243,235,213,.72); }
.section--dark .stat__num { color: var(--c-accent); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* =========================================================
   Stages / Timeline cards
   ========================================================= */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr; } }
.stage-card {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--c-line-soft);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--sh-card-2); }
.stage-card__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 56px;
  color: var(--c-accent-2);
  line-height: 1;
  opacity: .9;
}
.stage-card__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 24px;
  margin: 16px 0 6px;
  line-height: 1.15;
}
.stage-card__date {
  color: var(--c-accent-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stage-card__body {
  margin-top: 14px;
  color: var(--c-ink-2);
  font-size: 14.5px;
}

/* =========================================================
   Partners
   ========================================================= */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner {
  background: var(--c-paper);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-soft);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  padding: 20px;
  text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
@media (max-width: 560px) {
  .partners { grid-template-columns: 1fr; }
  .partner {
    min-height: 116px;
    aspect-ratio: auto;
  }
}
.partner:hover { transform: translateY(-2px); box-shadow: var(--sh-card); }
.partner__name {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.15;
  color: var(--c-ink);
}
.partner__sub {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px;
  color: var(--c-ink-mute);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   About / text columns
   ========================================================= */
.lead {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--c-ink);
  max-width: 60ch;
}
.lead--center { margin: 0 auto; text-align: center; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--c-ink-2); }
.prose p + p { margin-top: 1em; }
.prose h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 28px;
  margin: 1.4em 0 .5em;
}

/* =========================================================
   Document list
   ========================================================= */
.doc-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.doc {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.doc:hover { transform: translateY(-1px); box-shadow: var(--sh-card); border-color: var(--c-line); }
.doc__icon {
  width: 56px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(201,169,97,.16), rgba(201,169,97,.06));
  border: 1px solid rgba(201,169,97,.32);
  border-radius: 6px;
  color: var(--c-accent-2);
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.doc__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
}
.doc__meta {
  font-size: 12.5px;
  color: var(--c-ink-mute);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.doc__dl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--c-deep); color: var(--c-deep-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: filter var(--t-fast);
}
.doc__dl:hover { filter: brightness(1.15); }
@media (max-width: 720px) {
  .doc { grid-template-columns: 44px 1fr; padding: 16px; }
  .doc__icon { width: 44px; height: 52px; font-size: 9px; }
  .doc__dl { grid-column: 1 / -1; justify-content: center; }
}

/* =========================================================
   FAQ / accordion
   ========================================================= */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.faq details[open] { box-shadow: var(--sh-card); border-color: var(--c-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 24px;
  color: var(--c-accent-2);
  transition: transform var(--t-fast);
}
.faq details[open] summary::after { content: '−'; }
.faq__body { margin-top: 10px; color: var(--c-ink-2); font-size: 15.5px; line-height: 1.65; }

/* =========================================================
   Form
   ========================================================= */
.form-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--sh-card);
}
@media (max-width: 720px) { .form-card { padding: 24px; } }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  color: var(--c-ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--c-deep);
  background: var(--c-paper);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-deep) 15%, transparent);
}
.field--err input, .field--err select, .field--err textarea { border-color: #b34c4c; }
.field__hint { color: var(--c-ink-mute); font-size: 12px; }
.field__err { color: #b34c4c; font-size: 12.5px; display: none; }
.field--err .field__err { display: block; }

.check {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--c-ink-2);
}
.check input {
  width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto;
  accent-color: var(--c-deep);
}

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

@media (max-width: 900px) {
  .section > .wrap[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Stepper */
.stepper {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-ink-mute);
  font-size: 13px; font-weight: 500;
}
.step__dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-bg-2);
  color: var(--c-ink-mute);
  font-family: var(--f-serif);
  font-size: 14px;
  border: 1px solid var(--c-line);
  transition: all var(--t-fast);
}
.step.is-active { color: var(--c-ink); }
.step.is-active .step__dot { background: var(--c-deep); color: var(--c-deep-ink); border-color: var(--c-deep); }
.step.is-done .step__dot { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.step__line { flex: 1; height: 1px; background: var(--c-line); }
@media (max-width: 720px) { .step__label { display: none; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--c-deep);
  color: var(--c-deep-ink);
  padding: 64px 0 28px;
  margin-top: 80px;
  border-radius: 36px 36px 0 0;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243,235,213,.5);
  margin: 0 0 18px;
}
.site-footer a { color: var(--c-deep-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { font-size: 14.5px; opacity: .9; }
.site-footer ul a:hover { color: var(--c-accent); }
.footer__about p {
  font-size: 14px;
  opacity: .8;
  margin: 14px 0 0;
  max-width: 36ch;
}
.footer__bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(243,235,213,.12);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12.5px;
  opacity: .7;
  flex-wrap: wrap;
}
.footer__bottom .wrap { padding: 0; }
@media (max-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* =========================================================
   Utility
   ========================================================= */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 56px; }
.gold { color: var(--c-accent-2); }
.divider {
  height: 1px;
  background: var(--c-line);
  margin: 0;
  border: 0;
}
