/* Directorium — Premium Design System */

:root {
  --navy: #150F33;
  --navy-90: #1d1741;
  --navy-80: #2a2350;
  --navy-60: #4a4470;
  --gold: #EAC78A;
  --gold-soft: #f5e3bf;
  --gold-deep: #c9a868;
  --ivory: #FFFFFF;
  --paper: #FAF7F2;
  --paper-2: #F2EDE3;
  --line: rgba(21, 15, 51, 0.12);
  --line-gold: rgba(234, 199, 138, 0.35);
  --text: #150F33;
  --ink: #150F33;
  --text-muted: rgba(21, 15, 51, 0.62);
  --text-soft: rgba(21, 15, 51, 0.78);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--navy); }

/* Typography */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; }

p { text-wrap: pretty; }

/* Layout primitives */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.container-narrow { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 40px; }

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 24px; }
}

/* Section */
.section { padding: 120px 0; position: relative; background: var(--paper); }
.section-tight { padding: 80px 0; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { color: var(--navy); padding: 18px 0; border-bottom: 1px solid var(--navy); }
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn .arrow { font-family: var(--serif); font-size: 18px; transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(6px); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
.site-header.on-dark {
  background: rgba(21, 15, 51, 0.85);
  border-bottom-color: rgba(234, 199, 138, 0.15);
  color: var(--paper);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border: 1px solid var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  top: -3px; right: -3px;
}
.on-dark .brand-mark { border-color: var(--gold); color: var(--gold); }

/* Brand logo image — swap light/dark by header state */
.brand-logo { gap: 0; }
.brand-img { height: 44px; width: auto; display: block; }
.brand-img-dark { display: none; }
.on-dark .brand-img-light { display: block; }
.on-dark .brand-img-dark { display: none; }
.site-header:not(.on-dark) .brand-img-light { display: none; }
.site-header:not(.on-dark) .brand-img-dark { display: block; }

.nav {
  display: flex; align-items: center; gap: 36px;
  font-size: 13px;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--gold-deep); }
.nav a.active { color: var(--gold-deep); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-deep);
}
.on-dark .nav a:hover, .on-dark .nav a.active { color: var(--gold); }
.on-dark .nav a.active::after { background: var(--gold); }

.header-cta {
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-cta:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.on-dark .header-cta { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.on-dark .header-cta:hover { background: transparent; color: var(--gold); }

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; padding: 0;
  margin-left: 16px;
  transition: border-color 0.2s ease;
}
.on-dark .nav-burger { border-color: rgba(234, 199, 138, 0.35); }
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink, var(--text));
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.on-dark .nav-burger span { background: var(--paper); }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 1.5px; background: inherit;
  transition: transform 0.25s ease;
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after  { top:  7px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0;
    width: min(360px, 88vw); height: 100vh;
    background: var(--paper);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 96px 28px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  .on-dark .nav {
    background: var(--navy);
    border-left-color: rgba(234, 199, 138, 0.15);
    color: var(--paper);
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .on-dark .nav a { border-bottom-color: rgba(234, 199, 138, 0.15); color: var(--paper); }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(21, 15, 51, 0.45);
    backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 200px 0 360px;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 1;
}
.hero ~ * { position: relative; z-index: 2; }
/* Following section overlaps the hero with a cinematic reveal */
.hero + .section,
.hero + section {
  position: relative;
  z-index: 2;
  margin-top: -200px;
  background: var(--paper);
  padding-top: 140px;
  border-top-left-radius: 56px;
  border-top-right-radius: 56px;
  box-shadow: 0 -50px 100px -20px rgba(21, 15, 51, 0.5);
}
.hero + .section::before,
.hero + section::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: var(--gold);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-meta {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(234, 199, 138, 0.2);
}
.hero-meta-item .num {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  font-weight: 300;
}
.hero-meta-item .label {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  max-width: 22ch;
  line-height: 1.4;
}

/* .hero-decor and dot-grid pseudos are replaced by canvas trail (cursor-grid.js) */
.hero-decor { display: none; }
.hero > .container { position: relative; z-index: 2; }
.hero > .hero-corner { z-index: 2; }

.hero-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.6;
}

/* Cards / sections */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
}

.section-title {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.section-title em { color: var(--gold-deep); font-style: italic; }
.section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .audience-grid { grid-template-columns: 1fr; }
}
.audience-card {
  padding: 48px 36px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s ease;
}
.audience-card:last-child { border-right: none; }
@media (max-width: 900px) {
  .audience-card { border-right: none; }
}
.audience-card:hover { background: rgba(234, 199, 138, 0.08); }
.audience-card .num {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.audience-card h3 {
  font-size: 26px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.audience-card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* Services / offerings */
.offer-list { margin-top: 64px; }
.offer-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding 0.3s ease;
}
.offer-row:last-child { border-bottom: 1px solid var(--line); }
.offer-row:hover { padding-left: 16px; }
.offer-num {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.offer-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.offer-text { color: var(--text-soft); font-size: 15px; line-height: 1.65; max-width: 56ch; }
@media (max-width: 900px) {
  .offer-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Dark sections */
.dark-section {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.dark-section > * { position: relative; z-index: 1; }
.dark-section .section-title { color: var(--paper); }
.dark-section .section-title em { color: var(--gold); }
.dark-section .section-lead { color: rgba(255,255,255,0.75); }

/* Stats / numbers row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line-gold);
  position: relative;
}
.stat:last-child { border-right: none; }
@media (max-width: 900px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-gold); }
}
.stat-num {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  max-width: 24ch;
  line-height: 1.4;
}

/* Initiative cards */
.init-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-gold);
  margin-top: 64px;
}
@media (max-width: 900px) { .init-grid { grid-template-columns: 1fr; } }
.init-card {
  padding: 56px 48px;
  background: var(--navy);
  position: relative;
  transition: background 0.3s ease;
  cursor: default;
}
.init-card:hover { background: var(--navy-90); }
.init-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 24px;
}
.init-card h3 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--paper);
}
.init-card p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.65; }

/* Reasons / benefits list */
.reasons {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 80px;
}
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.reason-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold-deep);
  font-weight: 300;
  line-height: 1;
}
.reason h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: 1.3;
}
.reason p { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; }

/* CTA Banner */
.cta-banner {
  background: var(--navy);
  color: var(--paper);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; } }
.cta-banner h2 {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.cta-banner h2 em { color: var(--gold); font-style: italic; }
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 38ch;
}

/* People grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
.person {
  position: relative;
  cursor: pointer;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s ease;
  background: var(--paper);
}
.person:hover { background: var(--paper-2); }

.person-photo {
  aspect-ratio: 5/4;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.person-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21,15,51,0.18) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom right, transparent 0%, black 80%);
  -webkit-mask-image: linear-gradient(to bottom right, transparent 0%, black 80%);
  opacity: 0.7;
}
.person-photo .initials {
  position: absolute;
  bottom: 4px;
  right: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 96px;
  line-height: 0.85;
  color: var(--navy);
  letter-spacing: -0.04em;
  z-index: 1;
}
.person-photo .marker {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  z-index: 1;
}
.person-photo::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 32px;
  background: var(--gold-deep);
  z-index: 1;
}
.person-info {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.person-info .name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.012em;
  margin-bottom: 2px;
  line-height: 1.18;
  font-weight: 400;
}
.person-info .role {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  padding: 40px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  color: var(--gold);
  line-height: 0.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 32px;
  flex: 1;
}
.testimonial .who {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.testimonial .who-avatar {
  width: 42px; height: 42px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 17px;
}
.testimonial .who-text .n { font-weight: 600; font-size: 14px; }
.testimonial .who-text .r { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(234,199,138,0.2);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer-brand .brand-name {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--paper);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.footer-brand .brand-name-logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 20px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 36ch; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bot {
  padding-top: 32px;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

/* Page hero (for inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--paper);
  padding: 200px 0 180px;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 1;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero ~ * { position: relative; z-index: 2; }
.page-hero + .section,
.page-hero + section {
  position: relative;
  z-index: 2;
  margin-top: -180px;
  background: var(--paper);
  padding-top: 140px;
  border-top-left-radius: 56px;
  border-top-right-radius: 56px;
  box-shadow: 0 -50px 100px -20px rgba(21, 15, 51, 0.5);
}
.page-hero + .section::before,
.page-hero + section::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: var(--gold);
}
/* When the following section is dark (navy), use a different overlap treatment */
.page-hero + .dark-section,
.hero + .dark-section {
  background: var(--navy);
  box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, 0.4);
}
.page-hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 28px;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  margin-bottom: 40px;
}
.page-hero .crumbs {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 56px;
}
.page-hero .crumbs span { opacity: 0.6; }

/* Misc utilities */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.divider-gold { background: var(--line-gold); }

/* Tag chip */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tag:hover, .tag.active {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

/* News cards */
.news-grid {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.news-card {
  background: var(--paper);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s ease, padding 0.3s ease;
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 40px;
  align-items: start;
}
.news-card:hover { background: var(--paper-2); padding-left: 24px; padding-right: 24px; }
.news-card .meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  padding-top: 8px;
}
.news-card .meta-num { color: var(--gold-deep); }
.news-card .meta-date { color: var(--text-muted); }
.news-card .news-body {
  display: flex; flex-direction: column; gap: 12px;
}
.news-card h3 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.news-card .desc { font-size: 15.5px; color: var(--text-soft); line-height: 1.6; max-width: 64ch; }
.news-card .tags { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.news-card .tags .t { font-family: var(--mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.14em; }
.news-card .news-read-more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 8px;
  display: flex; align-items: center; gap: 10px;
  justify-content: flex-end;
  transition: gap 0.25s ease;
}
.news-card:hover .news-read-more { gap: 16px; }
.news-card .news-read-more .arrow { font-family: var(--serif); font-size: 14px; }
@media (max-width: 900px) {
  .news-card { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .news-card:hover { padding-left: 16px; padding-right: 16px; }
  .news-card .news-read-more { justify-content: flex-start; }
}

/* Article modal */
.article-modal {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.article-modal.open { opacity: 1; pointer-events: auto; }
.article-modal-bg {
  position: absolute; inset: 0;
  background: rgba(21, 15, 51, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.article-modal-body {
  position: absolute;
  top: 5vh; bottom: 5vh;
  left: 50%;
  width: min(820px, 92vw);
  transform: translate(-50%, 16px);
  background: var(--paper);
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -20px rgba(21, 15, 51, 0.45);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.article-modal.open .article-modal-body { transform: translate(-50%, 0); }
.article-modal-close {
  position: sticky;
  top: 16px;
  margin-left: auto;
  margin-right: 16px;
  display: block;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  font-family: var(--sans);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
}
.article-modal-close:hover { background: var(--ink); color: var(--paper); }
.article-modal-content {
  padding: 0 80px 80px;
  margin-top: -28px;
}
@media (max-width: 720px) {
  .article-modal-content { padding: 0 28px 56px; }
  .article-modal-body { top: 0; bottom: 0; width: 100vw; left: 0; transform: translateY(16px); }
  .article-modal.open .article-modal-body { transform: translateY(0); }
}
.article-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-top: 32px;
  margin-bottom: 24px;
}
.article-modal-meta .kicker { color: var(--gold-deep); font-weight: 500; }
.article-modal-meta .dot { color: var(--text-muted); }
.article-modal-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
}
.article-modal-lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  max-width: 56ch;
}
.article-modal-text { font-size: 17px; line-height: 1.75; color: var(--ink); }
.article-modal-text p { margin-bottom: 22px; max-width: 64ch; }
.article-modal-text p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 -2px;
  color: var(--gold-deep);
  font-weight: 400;
}
.article-modal-tags {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.article-modal-tags .t {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.article-modal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* Knowledge list */
.kn-cat { padding: 56px 0; border-bottom: 1px solid var(--line); }
.kn-cat-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; margin-bottom: 32px; }
@media (max-width: 900px) { .kn-cat-head { grid-template-columns: 1fr; gap: 16px; } }
.kn-cat h2 { font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; }
.kn-cat .cat-num {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-deep); font-size: 16px;
  margin-bottom: 12px;
}
.kn-cat .cat-desc { color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.kn-list { display: flex; flex-direction: column; }
.kn-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.kn-item:hover { padding-left: 16px; background: rgba(234,199,138,0.06); }
.kn-item .idx { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.14em; }
.kn-item .ttl { font-family: var(--serif); font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
.kn-item .meta { font-family: var(--mono); font-size: 10px; color: var(--gold-deep); letter-spacing: 0.16em; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 0 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--gold-deep);
}
.field textarea { resize: vertical; min-height: 80px; }

/* Faq */
.faq { border-top: 1px solid var(--line); margin-top: 56px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 28px 0; cursor: pointer; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: 24px; letter-spacing: -0.005em; line-height: 1.25;
}
.faq-q .toggle {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-deep);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
  padding: 0 60px 0 0;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 40px 32px 48px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step-num {
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--gold-deep); letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.step h4 {
  font-family: var(--sans); font-weight: 600;
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.step p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }

/* Page-specific spacings */
.lead-block {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .lead-block { grid-template-columns: 1fr; gap: 32px; } }
.lead-block p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.lead-block p strong { color: var(--text); font-weight: 600; }

/* Telegram block */
.tg-block {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 720px) { .tg-block { grid-template-columns: 1fr; padding: 40px 32px; } }
.tg-block h3 { font-size: 32px; color: var(--paper); margin-bottom: 8px; }
.tg-block p { color: rgba(255,255,255,0.7); font-size: 15px; }

/* Manage spacing of headings */
.h-display {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 300;
}
.h-display em { color: var(--gold-deep); font-style: italic; font-weight: 400; }
.dark-section .h-display em { color: var(--gold); }

/* Fade-in on scroll */
.fade-in > *:not(.grid-canvas) { transform: translateY(20px); transition: transform 0.8s ease; }
.fade-in.in > *:not(.grid-canvas) { transform: translateY(0); }

/* Header CTA group — wraps "Войти" + "Присоединиться/Кабинет" so they stick together */
.header-cta-group { display: flex; align-items: center; gap: 4px; }
.header-login {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  display: inline-block;
}
.header-login:hover { color: var(--gold-deep); }
.site-header.on-dark .header-login { color: var(--paper); }
.site-header.on-dark .header-login:hover { color: var(--gold); }
@media (max-width: 1100px) { .header-login { display: none; } }

/* Narrative block */
.narrative {
  background: var(--paper-2);
  padding: 96px 0;
  position: relative;
}
.narrative-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .narrative-inner { grid-template-columns: 1fr; gap: 32px; } }
.narrative h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.narrative p { font-size: 17px; line-height: 1.7; color: var(--text-soft); margin-bottom: 18px; }
.narrative ul { list-style: none; margin-top: 24px; }
.narrative li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
  display: grid; grid-template-columns: 24px 1fr; gap: 16px;
}
.narrative li:before {
  content: "—";
  color: var(--gold-deep);
}
