/* =====================================================================
   NELDC — Naseeha Executive Leadership Development Centre
   Design system & global styles
   ---------------------------------------------------------------------
   Philosophy: editorial restraint. Type-led. Generous whitespace.
   The Uzbek geometric motif is treated as a signature, not decoration.
   ===================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------------------------------------------------------------------
   2. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Palette — restrained editorial */
  --ink: #0E1116;
  --ink-2: #1A1F26;
  --ink-soft: #2C333D;
  --ink-muted: #5A6068;
  --cream: #F5EFE6;
  --cream-warm: #EFE7DA;
  --paper: #FAF6EE;
  --paper-deep: #F2EBDD;
  --gold: #B5945A;
  --gold-soft: #C9AE7C;
  --teal: #1F4B5C;

  /* Lines */
  --line: rgba(14, 17, 22, 0.10);
  --line-strong: rgba(14, 17, 22, 0.20);
  --line-on-ink: rgba(245, 239, 230, 0.14);

  /* Typography */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --container-reading: 720px;
  --pad-x: clamp(20px, 5vw, 48px);
  --pad-section-y: clamp(96px, 13vw, 184px);
  --pad-section-y-sm: clamp(64px, 9vw, 120px);
  --gap-grid: clamp(24px, 3vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 280ms;
  --duration: 700ms;
  --duration-slow: 1100ms;

  /* Radii — used very sparingly */
  --radius-sm: 2px;
}

/* ---------------------------------------------------------------------
   3. Typography
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1.1em;
}

.display-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  max-width: 64ch;
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 64ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
}

.eyebrow.on-ink {
  color: var(--cream-warm);
  opacity: 0.78;
}

.eyebrow.on-ink::before {
  background: var(--cream-warm);
  opacity: 0.5;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ---------------------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.container-reading {
  width: 100%;
  max-width: var(--container-reading);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: var(--pad-section-y);
  padding-bottom: var(--pad-section-y);
  position: relative;
}

.section--sm {
  padding-top: var(--pad-section-y-sm);
  padding-bottom: var(--pad-section-y-sm);
}

.section--ink {
  background: var(--ink);
  color: var(--cream);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 {
  color: var(--cream);
}

.section--cream {
  background: var(--cream);
}

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

/* Section transitions: subtle motif divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  gap: 28px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 180px;
}

.section--ink .divider::before,
.section--ink .divider::after {
  background: var(--line-on-ink);
}

.divider-mark {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

/* ---------------------------------------------------------------------
   5. Buttons & links
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  transition: background var(--duration-fast) var(--ease-soft),
              color var(--duration-fast) var(--ease-soft),
              transform var(--duration-fast) var(--ease-soft);
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink-2);
  color: var(--paper);
}

.btn--ghost-on-ink {
  border-color: var(--cream-warm);
  color: var(--cream);
}

.btn--ghost-on-ink:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn--gold {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}

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

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-soft);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color var(--duration-fast) var(--ease-soft),
              gap var(--duration-fast) var(--ease-soft);
}

.link-arrow:hover {
  border-bottom-color: var(--ink);
  gap: 14px;
}

.section--ink .link-arrow {
  color: var(--cream);
}

.section--ink .link-arrow:hover {
  border-bottom-color: var(--cream);
}

/* ---------------------------------------------------------------------
   6. Navigation (persistent header)
   --------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(250, 246, 238, 0);
  transition: background var(--duration-fast) var(--ease-soft),
              padding var(--duration-fast) var(--ease-soft),
              border-color var(--duration-fast) var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(250, 246, 238, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}

.site-nav.on-ink {
  color: var(--cream);
}

.site-nav.on-ink.is-scrolled {
  background: rgba(14, 17, 22, 0.86);
  border-bottom-color: var(--line-on-ink);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: inherit;
}

.brand-mark {
  width: 26px;
  height: 26px;
  opacity: 0.92;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-text .neldc {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: inherit;
  position: relative;
  padding: 6px 0;
  opacity: 0.82;
  transition: opacity var(--duration-fast) var(--ease-soft);
}

.nav-links a:hover,
.nav-links a.is-active {
  opacity: 1;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-soft),
              color var(--duration-fast) var(--ease-soft);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.site-nav.on-ink .nav-cta:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: currentColor;
  transition: transform var(--duration-fast) var(--ease-soft),
              opacity var(--duration-fast) var(--ease-soft);
}

.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle span:nth-child(3) { top: 19px; }

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

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links,
  .nav-cta-wrap { display: none; }

  .site-nav.is-menu-open .nav-mobile {
    display: flex;
  }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  padding: 96px var(--pad-x) 48px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

.nav-mobile .nav-cta {
  margin-top: 32px;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 13px;
  border: 1px solid var(--ink);
  padding: 14px 28px;
}

/* ---------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(140px, 18vh, 220px);
  padding-bottom: clamp(96px, 12vh, 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero--ink {
  background: var(--ink);
  color: var(--cream);
}

.hero-eyebrow {
  margin-bottom: 36px;
}

.hero-headline {
  max-width: 18ch;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.hero-sub {
  max-width: 56ch;
  margin-bottom: clamp(40px, 5vw, 64px);
  color: var(--cream-warm);
  opacity: 0.78;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Subtle ambient motif behind hero */
.hero-motif {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.06;
}

.hero-motif--right {
  right: -12vw;
  top: 50%;
  transform: translateY(-50%);
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1 / 1;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--paper);
  animation: scrollHint 2.4s var(--ease-soft) infinite;
}

.hero--ink .hero-scroll-line::after {
  background: var(--ink);
}

@keyframes scrollHint {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(220%); }
  100% { transform: translateY(220%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; }
}

/* ---------------------------------------------------------------------
   8. Feature grids — pillars, audiences, faculty
   --------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gap-grid);
}

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

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.pillar {
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section--ink .pillar { border-top-color: var(--line-on-ink); }

.pillar-num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.section--ink .pillar-num { color: var(--cream-warm); opacity: 0.6; }

.pillar h3 {
  font-size: clamp(26px, 2.2vw, 34px);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.pillar p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38ch;
}

.section--ink .pillar p { color: var(--cream-warm); opacity: 0.78; }

.pillar-arabic {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}

.section--ink .pillar-arabic { color: var(--gold-soft); opacity: 0.85; }

/* ---------------------------------------------------------------------
   9. Audience cards (Who We Serve)
   --------------------------------------------------------------------- */
.audience {
  padding: 48px 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.audience:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--cream);
}

.audience-mark {
  width: 22px;
  height: 22px;
  margin-bottom: 32px;
  opacity: 0.7;
}

.audience h3 {
  font-size: clamp(26px, 2vw, 32px);
  margin-bottom: 18px;
}

.audience p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 32px;
}

.audience .link-arrow { align-self: flex-start; }

/* ---------------------------------------------------------------------
   10. Faculty
   --------------------------------------------------------------------- */
.faculty {
  display: flex;
  flex-direction: column;
}

.faculty-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--cream-warm) 0%, var(--paper-deep) 100%);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.faculty-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 30% 25%, rgba(181, 148, 90, 0.10) 0%, transparent 55%),
    radial-gradient(at 70% 75%, rgba(31, 75, 92, 0.08) 0%, transparent 60%);
}

.faculty-portrait .placeholder-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.55;
  background: rgba(245, 239, 230, 0.8);
  padding: 4px 8px;
}

.faculty-portrait-glyph {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38%;
  opacity: 0.18;
}

.faculty h3 {
  font-size: clamp(22px, 1.6vw, 26px);
  margin-bottom: 4px;
}

.faculty .role {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.faculty .bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------
   11. Programme list
   --------------------------------------------------------------------- */
.programme {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  transition: background var(--duration-fast) var(--ease-soft);
}

.programme:last-child { border-bottom: 1px solid var(--line); }

.section--ink .programme { border-top-color: var(--line-on-ink); }
.section--ink .programme:last-child { border-bottom-color: var(--line-on-ink); }

.programme-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}

.section--ink .programme-meta { color: var(--cream-warm); opacity: 0.7; }

.programme-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.programme-title small {
  display: block;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 0;
  line-height: 1.55;
  max-width: 50ch;
}

.section--ink .programme-title small { color: var(--cream-warm); opacity: 0.78; }

@media (max-width: 720px) {
  .programme {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
}

/* ---------------------------------------------------------------------
   12. Quote / vision block
   --------------------------------------------------------------------- */
.vision {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}

.vision-mark {
  width: 28px;
  height: 28px;
  margin: 0 auto 36px;
  opacity: 0.65;
}

.vision blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 22ch;
  font-style: italic;
}

.vision cite {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
}

.section--ink .vision cite { color: var(--cream-warm); opacity: 0.7; }

/* ---------------------------------------------------------------------
   13. Testimonial
   --------------------------------------------------------------------- */
.testimonial {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.testimonial p {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--ink);
  max-width: 36ch;
}

.testimonial cite {
  display: block;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
}

/* ---------------------------------------------------------------------
   14. FAQ accordion
   --------------------------------------------------------------------- */
.faq-group {
  margin-bottom: 64px;
}

.faq-category {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: opacity var(--duration-fast) var(--ease-soft);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { opacity: 0.7; }

.faq-toggle {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  margin-top: 10px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform var(--duration-fast) var(--ease-soft);
}

.faq-toggle::before {
  left: 0; right: 0; top: 50%;
  height: 1px;
}

.faq-toggle::after {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
}

.faq[open] .faq-toggle::after { transform: scaleY(0); }

.faq-body {
  padding: 0 32px 32px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------------------------------------------------------------------
   15. Contact routes
   --------------------------------------------------------------------- */
.route {
  padding: 48px 40px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: background var(--duration-fast) var(--ease-soft),
              border-color var(--duration-fast) var(--ease-soft);
}

.route:hover {
  background: var(--cream);
  border-color: var(--line-strong);
}

.route h3 {
  font-size: clamp(24px, 1.9vw, 30px);
}

.route p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}

.route a.link-arrow { align-self: flex-start; margin-top: 12px; }

/* ---------------------------------------------------------------------
   16. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 10vw, 120px) 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-motif {
  position: absolute;
  pointer-events: none;
  bottom: -20vw;
  right: -10vw;
  width: 60vw;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  opacity: 0.045;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--cream);
}

.footer-tag {
  max-width: 36ch;
  color: var(--cream-warm);
  opacity: 0.7;
  font-size: 15px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-warm);
  opacity: 0.6;
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--cream);
  font-size: 15px;
  opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-soft);
}

.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--line-on-ink);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--cream-warm);
  opacity: 0.6;
}

/* ---------------------------------------------------------------------
   17. Reveal-on-scroll
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease),
              transform 900ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease),
              transform 900ms var(--ease);
}

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

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   18. Page header (sub-pages)
   --------------------------------------------------------------------- */
.page-header {
  padding-top: clamp(160px, 18vh, 220px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.page-header h1 {
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 32px;
}

.page-header .lede {
  max-width: 60ch;
}

/* ---------------------------------------------------------------------
   19. Side-by-side editorial blocks
   --------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

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

.editorial-aside h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
}

.editorial-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}

.editorial-body p + p { margin-top: 1.4em; }

.section--ink .editorial-body p { color: var(--cream-warm); opacity: 0.82; }

/* ---------------------------------------------------------------------
   20. Closing CTA band
   --------------------------------------------------------------------- */
.cta-band {
  text-align: center;
  padding: clamp(96px, 12vw, 160px) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-band-mark {
  width: 32px;
  height: 32px;
  margin: 0 auto 32px;
  opacity: 0.55;
  position: relative;
}

.cta-band h2 {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.05;
  position: relative;
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-warm);
  opacity: 0.78;
  position: relative;
}

.cta-band .btn { position: relative; }

/* ---------------------------------------------------------------------
   21. Misc
   --------------------------------------------------------------------- */
.kicker-line {
  display: block;
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  margin-bottom: 28px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.section--ink .tag {
  border-color: var(--line-on-ink);
  color: var(--cream-warm);
  opacity: 0.85;
}

/* small utility */
.mt-0 { margin-top: 0 !important; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mt-xl { margin-top: 80px; }
.text-center { text-align: center; }

/* skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 1000;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 8px; top: 8px; }

/* focus styles */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
