/* ============================================================
   Global Quantum for Women — Editorial Stylesheet (v2)
   Light, paper-toned, editorial research-institute aesthetic.
   Mobile-first.
   ============================================================ */

:root {
  --paper: #fbfaf7;
  --paper-2: #f5f3ee;
  --panel: #ffffff;
  --ink: #171920;
  --ink-2: #3d4250;
  --muted: #5c6270;
  --faint: #9399a7;
  --line: #e3e0d8;
  --line-strong: #cfcbc0;
  --accent: #5b3df5;
  --accent-ink: #2f17c9;
  --accent-soft: #f0edfc;
  --accent-tint: #faf9ff;
  --radius: 12px;
  --shadow: 0 22px 50px -24px rgba(23, 25, 32, 0.22);
  --header-h: 72px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

a { text-decoration: none; }

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

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 760px at 88% -8%, rgba(247, 196, 220, 0.52), transparent 62%),
    radial-gradient(980px 720px at -14% 30%, rgba(210, 196, 255, 0.42), transparent 60%),
    radial-gradient(940px 640px at 52% 114%, rgba(255, 216, 197, 0.44), transparent 62%),
    radial-gradient(circle at 25% 35%, rgba(244, 176, 199, 0.40) 1.3px, transparent 1.4px);
  background-size: auto, auto, auto, 30px 30px;
  background-attachment: fixed, fixed, fixed, fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 520;
  line-height: 1.12;
  color: var(--ink);
  font-variation-settings: 'SOFT' 60, 'WONK' 0;
}

em { font-style: italic; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }

/* ---------- Hairlines ---------- */
.rule { height: 1px; border: 0; background: var(--line); }
.rule--fade { background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Kickers & headings ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.kicker--center::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.015em; margin-bottom: 18px; }
.sec-head h2 .grad { color: var(--accent); font-style: italic; font-weight: 460; }
.sec-head p { font-size: 17px; color: var(--muted); margin-bottom: 0; }
.sec-head .lede-mark { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgba(47, 23, 201, 0.55); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-line svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-line:hover { color: var(--accent); border-color: var(--accent); }
.link-line:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1103;
  height: var(--header-h);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { background: rgba(251, 250, 247, 0.98); box-shadow: 0 10px 30px -18px rgba(23,25,32,.25); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--panel);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.12;
  min-width: 0;
  text-align: center;
}
.brand-name .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
}
.brand-name em { color: var(--accent); font-weight: 520; }

/* Desktop nav */
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav .nav-item { position: relative; }
.main-nav .nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  border-radius: 6px;
  position: relative;
  transition: color .2s ease, transform .2s ease;
}
.main-nav .nav-link:hover { color: var(--accent); transform: translateY(-2px); }
.main-nav .nav-link:active { transform: translateY(0); }
.main-nav .nav-item.is-active > .nav-link { color: var(--accent-ink); }
.main-nav .nav-item.is-active > .nav-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.main-nav .has-drop .nav-link::after {
  display: none;
}
.main-nav .has-drop.is-active > .nav-link::after {
  display: block;
}
.main-nav .has-drop .nav-link { padding-right: 8px; }
.nav-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav-drop a:last-child { border-bottom: 0; }
.nav-drop a b { font-size: 11px; color: var(--faint); font-weight: 600; }
.nav-drop a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.nav-cta { display: none; margin-left: 10px; }
.main-nav .nav-cta.btn-primary,
.main-nav .nav-cta.btn-primary:hover { color: #fff; }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  position: relative; z-index: 1101;
}
.menu-toggle svg { width: 21px; height: 21px; stroke: var(--ink); }
.menu-toggle .menu-bars { position: absolute; transition: opacity .2s ease, transform .28s ease; }
.menu-toggle .menu-close {
  position: absolute;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 0;
  transform: scale(.6) rotate(-45deg);
  transition: opacity .2s ease, transform .28s ease;
  pointer-events: none;
  padding-bottom: 2px;
}
body.menu-open .menu-toggle .menu-bars { opacity: 0; transform: scale(.6) rotate(45deg); }
body.menu-open .menu-toggle .menu-close { opacity: 1; transform: scale(1) rotate(0deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: fixed;
  bottom: 20px; right: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink-2);
  cursor: pointer;
  z-index: 1102;
  box-shadow: 0 12px 28px -14px rgba(23, 25, 32, 0.4);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  position: absolute;
  transition: opacity .28s ease, transform .32s ease;
}
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
html.dark .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
html.dark .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .32s ease;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 14px) 24px 28px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav .mobile-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-top a {
  flex: 1;
  display: flex; align-items: center;
  padding: 12px 2px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 520;
  color: var(--ink);
}
.mobile-nav .caret {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.mobile-nav li.mobile-open > .mobile-top .caret { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: transparent; }
.mobile-nav .mobile-drop { display: none; margin: 0 0 8px; padding: 6px 0 10px; border-left: 2px solid var(--line-strong); margin-left: 10px; }
.mobile-nav li.mobile-open > .mobile-drop { display: block; }
.mobile-nav .mobile-drop a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.mobile-nav .mobile-drop a b { font-size: 11px; color: var(--faint); }
.mobile-nav .mobile-cta { margin-top: auto; padding-top: 24px; }

/* ---------- Page heroes ---------- */
.page-hero { padding: calc(var(--header-h) + 70px) 0 56px; }
.page-hero h1 {
  font-size: clamp(38px, 7vw, 62px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 26px;
  max-width: 900px;
}
.page-hero h1 .grad { color: var(--accent); font-style: italic; font-weight: 460; }
.page-hero .lead { max-width: 680px; font-size: clamp(17px, 2.4vw, 19.5px); color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.page-hero .lead--soft { color: var(--muted); font-size: 17px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-strong); }

/* ---------- Home hero ---------- */
.hero { padding: calc(var(--header-h) + 60px) 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }

.hero h1 {
  font-size: clamp(42px, 8.5vw, 74px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 26px;
  max-width: 13ch;
}
.hero h1 .grad { color: var(--accent); font-style: italic; font-weight: 460; }
.hero-text { max-width: 620px; color: var(--ink-2); font-size: 17.5px; margin-bottom: 14px; }
.hero-text--soft { color: var(--muted); font-size: 16.5px; }
.hero .btn-row { margin-top: 8px; }

.hero-art { display: none; position: relative; }
.hero-art svg { width: 100%; height: auto; animation: ha-bob 9s ease-in-out infinite; }

@media (max-width: 1023px) {
  .hero-art { display: block; margin: 8px auto 0; width: min(52vw, 220px); }
}
@media (max-width: 640px) {
  .hero-text--soft { font-size: 15px; }
}

/* ---- Animated atom (hero art) ---- */
.hero-art .ha { transform-origin: 210px 210px; }

.hero-art .ha-ring--outer { animation: ha-spin-cw 26s linear infinite; }
.hero-art .ha-ring--dashed { animation: ha-spin-ccw 44s linear infinite; }

.hero-art .ha-orbit--a { transform: rotate(-28deg); animation: ha-spin-a 18s linear infinite; }
.hero-art .ha-orbit--b { transform: rotate(38deg); animation: ha-spin-b 24s linear infinite; }
.hero-art .ha-orbit--c { transform: rotate(90deg); animation: ha-spin-c 34s linear infinite; }

.hero-art .ha-core--glow { animation: ha-pulse 4.2s ease-in-out infinite; }
.hero-art .ha-core { animation: ha-core 3.4s ease-in-out infinite; }

@keyframes ha-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ha-spin-cw { to { transform: rotate(360deg); } }
@keyframes ha-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes ha-spin-a { from { transform: rotate(-28deg); } to { transform: rotate(332deg); } }
@keyframes ha-spin-b { from { transform: rotate(38deg); } to { transform: rotate(398deg); } }
@keyframes ha-spin-c { from { transform: rotate(90deg); } to { transform: rotate(450deg); } }
@keyframes ha-pulse { 0%, 100% { transform: scale(1); opacity: .14; } 50% { transform: scale(1.3); opacity: .26; } }
@keyframes ha-core { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* Hero underline accent */
.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 650;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 24px;
}

/* ---------- Manifesto ---------- */
.manifesto { max-width: 720px; }
.manifesto h2 {
  font-size: clamp(30px, 5.2vw, 46px);
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.manifesto h2 .grad { color: var(--accent); font-style: italic; font-weight: 460; }
.manifesto p { font-size: 18px; color: var(--ink-2); line-height: 1.75; margin-bottom: 20px; }
.manifesto p.soft { color: var(--muted); font-size: 16.5px; }

/* ---------- Editorial numbered deck ---------- */
.deck { border-top: 1px solid var(--ink); }
.deck .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.deck .row:hover { background: var(--accent-tint); }
.deck .num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.deck .row h3 { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.01em; }
.deck .row h3 em { color: var(--accent); font-weight: 460; }
.deck .row p { font-size: 15.5px; color: var(--muted); max-width: 640px; }
.deck .row .go { align-self: start; }

/* ---------- Bordered editorial panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.panel h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; }
.panel p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.panel--soft { background: var(--paper-2); border: 0; }
.panel--soft:hover { transform: none; box-shadow: none; border: 0; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
.split .sticky-wrap { position: relative; }

/* ---------- Big pull quote ---------- */
.pullquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 26px;
  margin: 0;
}
.pullquote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3.6vw, 27px);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  font-weight: 460;
  margin-bottom: 14px;
}
.pullquote blockquote .mark { color: var(--accent); }
.pullquote .attrib { font-size: 13.5px; color: var(--faint); }

/* Full-bleed foundry quote */
.statement {
  background: var(--ink);
  color: #f4f2ec;
  border-radius: 16px;
  padding: 44px 30px;
  margin: 0;
}
.statement blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4.2vw, 32px);
  line-height: 1.35;
  font-weight: 460;
  margin-bottom: 18px;
}
.statement blockquote .mark { color: #b9a7ff; }
.statement .attrib { font-size: 13.5px; color: #b9bcc4; }

/* ---------- Article list (publications) ---------- */
.article-list { border-top: 1px solid var(--line-strong); }
.article {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.article:hover { background: var(--accent-tint); }
.article .meta { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.article h3 { font-size: clamp(18px, 2.6vw, 22px); letter-spacing: -0.01em; }
.article h3 a { color: inherit; }
.article h3 a:hover { color: var(--accent); }
.article p { font-size: 14.5px; color: var(--muted); max-width: 720px; }

/* ---------- Lists (tick / arrow) ---------- */
.tick-list { list-style: none; }
.tick-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.tick-list li b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

.arrow-list { list-style: none; }
.arrow-list li {
  border-bottom: 1px solid var(--line);
}
.arrow-list li:first-child { border-top: 1px solid var(--line); }
.arrow-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 6px;
}
.arrow-list .atl { display: block; }
.arrow-list .atl b { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 520; color: var(--ink); margin-bottom: 2px; }
.arrow-list .atl span { font-size: 14px; color: var(--muted); }
.arrow-list .atr { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.arrow-list .atr svg { width: 14px; height: 14px; }
.arrow-list a:hover .atr { background: var(--accent); border-color: var(--accent); color: #fff; }
.arrow-list a:hover .atl b { color: var(--accent); }

/* ---------- Tags / chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--panel);
}
.tag--accent { color: var(--accent-ink); border-color: rgba(91,61,245,.35); background: var(--accent-soft); }

/* ---------- Profile ---------- */
.profile-card { 
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 34px 26px;
  display: flex; flex-direction: column;
  align-items: flex-start;
}
.profile-photo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.profile-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(91,61,245,.3);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.profile-avatar svg { width: 42px; height: 42px; }
.profile-card h3 { font-size: 24px; letter-spacing: -0.01em; }
.profile-card .role { color: var(--accent-ink); font-weight: 650; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; margin: 8px 0 18px; }
.profile-card .bio { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent-soft);
  border: 1px solid rgba(91,61,245,.22);
  border-radius: 18px;
  padding: 46px 28px;
  text-align: center;
}
.cta-band h3 { font-size: clamp(26px, 4.6vw, 36px); letter-spacing: -0.015em; margin-bottom: 16px; }
.cta-band p { max-width: 640px; margin: 0 auto 26px; color: var(--ink-2); font-size: 16px; }

/* ---------- Media art block ---------- */
.media-art {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 34px 24px;
  display: grid; place-items: center;
  min-height: 220px;
}
.media-art svg { width: 100%; max-width: 340px; height: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.plain { width: 100%; border-collapse: collapse; min-width: 520px; }
table.plain th, table.plain td { text-align: left; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
table.plain th { font-family: var(--font-body); font-weight: 650; color: var(--faint); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
table.plain td { color: var(--muted); }
table.plain tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 20px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91,61,245,.12);
  background: #fff;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6270' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.field select option { background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 10px;
  background: #eefae9;
  border: 1px solid rgba(46,140,51,.3);
  color: #21731f;
  font-size: 14.5px;
  margin-top: 18px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 30px; padding: 60px 0 0; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(2, 1fr); padding-bottom: 48px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; max-width: 380px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--muted); font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; text-align: center;
  font-size: 12.5px; color: var(--faint);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .panel, .btn { transition: none; }
  .hero-art svg, .hero-art .ha { animation: none !important; }
  .hero-art .ha-orbit--a { transform: rotate(-28deg); }
  .hero-art .ha-orbit--b { transform: rotate(38deg); }
  .hero-art .ha-orbit--c { transform: rotate(90deg); }
}

/* ---------- Responsive: tablet ---------- */
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section--tight { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 7fr 5fr; gap: 60px; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .deck .row { grid-template-columns: 90px 1fr; gap: 20px; padding: 30px 0; }
  .article { grid-template-columns: 160px 1fr; gap: 6px 28px; }
  .article .meta { grid-column: 1; grid-row: 1; }
  .article h3 { grid-column: 2; grid-row: 1; }
  .article p { grid-column: 2; grid-row: 2; }
  .form-card { padding: 38px 34px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
  .cta-band { padding: 60px 48px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; align-items: start; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: calc(var(--header-h) + 84px) 0 56px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .hero-art { display: block; }
  .page-hero { padding: calc(var(--header-h) + 100px) 0 64px; }
}

@media (min-width: 1160px) {
  .container { padding: 0 32px; }
}

@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
}

/* ============================================================
   Dark mode
   ============================================================ */
html.dark {
  --paper: #15161c;
  --paper-2: #1a1c24;
  --panel: #20232d;
  --ink: #f2efe9;
  --ink-2: #c6c9d4;
  --muted: #9aa0ad;
  --faint: #6f7686;
  --line: #2a2d38;
  --line-strong: #3a3f4c;
  --accent: #8f7bff;
  --accent-ink: #c3b3ff;
  --accent-soft: #27213f;
  --accent-tint: #1a1c26;
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.6);
}

html.dark body {
  background-image:
    radial-gradient(1100px 760px at 88% -8%, rgba(150, 92, 138, 0.22), transparent 62%),
    radial-gradient(980px 720px at -14% 30%, rgba(112, 100, 205, 0.18), transparent 60%),
    radial-gradient(940px 640px at 52% 114%, rgba(160, 110, 90, 0.16), transparent 62%),
    radial-gradient(circle at 25% 35%, rgba(230, 170, 190, 0.14) 1.3px, transparent 1.4px);
}

html.dark .site-header { background: rgba(21, 22, 28, 0.86); }
html.dark .site-header.scrolled { background: rgba(21, 22, 28, 0.97); }

html.dark .statement { background: #0d0e13; color: #c9cad4; }
html.dark .statement .attrib { color: #858b99; }

html.dark .btn-line:hover { background: var(--accent); color: #0d0e13; }
html.dark .btn-line:hover svg { color: inherit; }

html.dark .field input:focus, html.dark .field select:focus, html.dark .field textarea:focus { background: #1d2029; }

html.dark .hero-art .ha-ring--dashed { stroke: #d8d5e8; }
html.dark .hero-art .ha-ring--outer { opacity: .7; }
html.dark .hero-art .ha-orbit--c { opacity: .5; }