:root {
  --abyss: #020d26;
  --deep: #05194a;
  --brand: #0027b7;
  --current: #1d6fe6;
  --aqua: #3cc8e8;
  --spray: #9fe6f5;
  --foam: #eaf7fb;
  --mist: #f3f8fc;
  --paper: #ffffff;
  --ink: #0a1a33;
  --muted: #55667f;
  --line: rgba(10, 26, 51, 0.1);
  --radius: 28px;
  --display: "Geologica", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--mist);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* ───── Nav (floating pill) ───── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(3, 18, 52, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(159, 230, 245, 0.18);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.solid { background: rgba(3, 18, 52, 0.86); box-shadow: 0 12px 40px rgba(2, 13, 38, 0.25); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(234, 247, 251, 0.82); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background 0.25s, color 0.25s;
}
.nav-links a:hover { background: rgba(159, 230, 245, 0.12); color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--foam); color: var(--deep);
  font-weight: 650; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  white-space: nowrap; transition: transform 0.25s var(--ease), background 0.25s;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ───── Hero ───── */
.hero {
  position: relative; min-height: 100svh; color: var(--foam);
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(29, 111, 230, 0.55), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(0, 39, 183, 0.6), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--deep) 70%, #0a2e7a);
  overflow: hidden; isolation: isolate;
}
#river, #water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
#water { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.gpu-water #water { opacity: 1; }
.hero.gpu-water #river { display: none; }
.hero-grid {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center; padding: 130px 0 160px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--spray);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  font-family: var(--display); font-weight: 750; letter-spacing: -0.03em;
  font-size: clamp(46px, 7.4vw, 104px); line-height: 0.98; margin: 22px 0 26px;
}
.hero h1 .flow {
  background: linear-gradient(100deg, #fff 10%, var(--spray) 40%, var(--aqua) 60%, #fff 90%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -250% 0; } }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 560px; color: rgba(234, 247, 251, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 16px; padding: 15px 24px; border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--aqua); color: var(--abyss); box-shadow: 0 10px 30px rgba(60, 200, 232, 0.35); }
.btn-primary:hover { transform: translateY(-2px); background: var(--spray); }
.btn-ghost { border: 1px solid rgba(159, 230, 245, 0.4); color: var(--foam); }
.btn-ghost:hover { background: rgba(159, 230, 245, 0.1); transform: translateY(-2px); }

.hero-portrait { position: relative; justify-self: end; width: min(560px, 100%); }
.hero-portrait .frame {
  border-radius: 36px 220px 36px 220px; overflow: hidden; aspect-ratio: 1.12 / 1;
  border: 1px solid rgba(159, 230, 245, 0.35);
  box-shadow: 0 40px 90px rgba(2, 13, 38, 0.55), inset 0 0 0 8px rgba(255, 255, 255, 0.04);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-portrait .badge {
  position: absolute; left: -28px; bottom: 34px;
  background: rgba(234, 247, 251, 0.95); color: var(--deep);
  border-radius: 20px; padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 18px 40px rgba(2, 13, 38, 0.35);
}
.badge-drop { width: 40px; height: 40px; flex: none; }
.badge strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.2; }
.badge span { font-size: 13px; color: var(--muted); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 1; }
.hero-wave svg { width: 200%; height: 100%; display: block; }
.hero-wave .w1 { animation: drift 18s linear infinite; }
.hero-wave .w2 { animation: drift 11s linear infinite reverse; position: absolute; left: 0; bottom: 0; opacity: 0.6; }
@keyframes drift { to { transform: translateX(-50%); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 2;
  font-size: 14px; letter-spacing: 0.02em; color: rgba(234, 247, 251, 0.78); display: flex; flex-direction: column; align-items: center; gap: 22px; pointer-events: none;
}
.scroll-hint i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--spray); box-shadow: 0 0 14px rgba(159, 230, 245, 0.8); }
.scroll-hint i::before, .scroll-hint i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--spray); animation: ripple 2.4s ease-out infinite; }
.scroll-hint i::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4.2); opacity: 0; } }
.hero:not(.gpu-water) .scroll-hint { display: none; }
@keyframes fall { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ───── Stats ───── */
.stats { background: var(--mist); padding: 40px 0 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat {
  background: var(--paper); border-radius: 24px; padding: clamp(18px, 2vw, 26px) clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--line);
}
.stat b {
  display: block; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(32px, 4vw, 52px); line-height: 1; color: var(--brand);
}
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ───── Section scaffolding ───── */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; margin-top: 16px;
}
.section-head p { margin-top: 18px; font-size: 19px; color: var(--muted); }
.eyebrow.dark { color: #1559c4; }

/* ───── Poem ───── */
.poem { padding: 70px 0 30px; }
.poem-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--current));
  color: #fff; padding: clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.poem-card::after {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, rgba(159, 230, 245, 0.35), transparent);
  pointer-events: none;
}
.poem-card blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.5; }
.poem-card cite { display: block; margin-top: 24px; font-style: normal; font-size: 15px; opacity: 0.8; font-family: var(--body); }
.poem-card .note { font-size: 17px; color: rgba(255, 255, 255, 0.85); position: relative; z-index: 1; }
.poem-card .note strong { display: block; font-family: var(--display); font-size: 24px; margin-bottom: 10px; color: #fff; }

/* ───── Film ───── */
.film { padding: 90px 0 10px; }
.film-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--abyss); box-shadow: 0 40px 80px rgba(5, 25, 74, 0.22);
}
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2, 13, 38, 0.65)); pointer-events: none; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-frame.playing::after { display: none; }
.film-frame.playing img { opacity: 0; }

/* ───── Biography ───── */
.bio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.bio-photos { position: sticky; top: 110px; display: grid; gap: 14px; }
.bio-photos figure { border-radius: var(--radius); overflow: hidden; background: var(--foam); }
.bio-photos .main img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; object-position: 50% 20%; }
.bio-photos .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bio-photos .pair img { aspect-ratio: 1; object-fit: cover; width: 100%; }
figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px 12px; background: var(--paper); line-height: 1.4; }
.bio-text p { font-size: 18px; margin-bottom: 18px; }
.bio-text .lede { font-size: 22px; line-height: 1.5; font-family: var(--display); font-weight: 450; letter-spacing: -0.01em; }
.titles { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px; }
.titles span {
  font-size: 14px; font-weight: 550; padding: 8px 14px; border-radius: 999px;
  background: var(--foam); color: var(--deep); border: 1px solid rgba(0, 39, 183, 0.12);
}

/* timeline as a river */
.timeline { position: relative; margin-top: 46px; padding-left: 44px; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--aqua), var(--current) 50%, var(--brand));
  background-size: 100% 200%; animation: river 6s linear infinite;
}
@keyframes river { to { background-position: 0 -200%; } }
.tl-item { position: relative; padding: 0 0 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -38px; top: 6px; width: 20px; height: 20px;
  background: var(--paper); border: 4px solid var(--current);
  border-radius: 50% 0 50% 50%; transform: rotate(-45deg);
}
.tl-item .yr { font-family: var(--display); font-weight: 700; color: var(--brand); font-size: 15px; letter-spacing: 0.02em; }
.tl-item h3 { font-family: var(--display); font-size: 20px; font-weight: 650; margin: 2px 0 4px; letter-spacing: -0.01em; }
.tl-item p { font-size: 16px; color: var(--muted); }

.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 70px; }
.qcard {
  background: var(--paper); border-radius: 24px; padding: 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.qcard p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; }
.qcard span { font-size: 14px; color: var(--muted); }
.qcard.blue { background: var(--deep); color: var(--foam); border-color: transparent; }
.qcard.blue span { color: var(--spray); }

/* ───── Contribution ───── */
.contrib { background: var(--abyss); color: var(--foam); overflow: hidden; }
.contrib .section-head p { color: rgba(234, 247, 251, 0.7); }
.contrib .eyebrow.dark { color: var(--aqua); }
.contrib-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ccard {
  grid-column: span 2; position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 30px;
  background: linear-gradient(160deg, rgba(29, 111, 230, 0.22), rgba(5, 25, 74, 0.6));
  border: 1px solid rgba(159, 230, 245, 0.14);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.ccard:hover { transform: translateY(-4px); border-color: rgba(159, 230, 245, 0.4); }
.ccard.wide { grid-column: span 3; }
.ccard .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(60, 200, 232, 0.15); display: grid; place-items: center; color: var(--aqua); margin-bottom: 20px; }
.ccard .ico svg { width: 24px; height: 24px; }
.ccard h3 { font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 14px; }
.ccard ul { list-style: none; display: grid; gap: 10px; }
.ccard li { font-size: 15.5px; color: rgba(234, 247, 251, 0.78); padding-left: 18px; position: relative; line-height: 1.5; }
.ccard li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }

.section-head.sub { margin: 90px 0 30px; }
.section-head.sub h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; margin-top: 14px; }
.contrib .rail figure { border-color: rgba(159, 230, 245, 0.14); }
.contrib .rail-nav button { background: rgba(159, 230, 245, 0.08); border-color: rgba(159, 230, 245, 0.25); color: var(--foam); }
.contrib .rail-nav button:hover { background: var(--foam); color: var(--deep); }
.contrib .rail { scrollbar-color: var(--aqua) transparent; }

/* ───── Results (works & teaching) ───── */
.results { margin: 0 0 80px; display: grid; gap: 16px; }
.res-head h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 10px; }
.res-head p { color: var(--muted); max-width: 760px; }
.res-block { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); }
.res-block h4, .res-lists summary b { font-family: var(--display); font-size: 21px; font-weight: 680; letter-spacing: -0.01em; }
.res-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.res-stats div { border-radius: 20px; padding: 18px 16px; background: var(--mist); }
.res-stats b { display: block; font-family: var(--display); font-weight: 750; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--brand); letter-spacing: -0.03em; }
.res-stats span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.res-stats i { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 2px; }
.res-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.res-tl { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.res-tl li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.res-tl b { font-family: var(--display); color: var(--brand); }
.res-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.res-lists details { border-radius: var(--radius); background: var(--deep); color: var(--foam); padding: 22px 26px; }
.res-lists summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.res-lists summary::-webkit-details-marker { display: none; }
.res-lists summary::after { content: "+"; font-family: var(--display); font-size: 26px; color: var(--aqua); transition: transform 0.3s var(--ease); }
.res-lists details[open] summary::after { transform: rotate(45deg); }
.res-lists summary span { margin-left: auto; font-size: 14px; color: var(--spray); }
.res-list { list-style: none; margin-top: 16px; display: grid; gap: 0; max-height: 460px; overflow: auto; padding-right: 6px; }
.res-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(159, 230, 245, 0.14); font-size: 14.5px; line-height: 1.45; }
.res-list b { color: var(--aqua); font-family: var(--display); }
.res-list small { display: block; color: rgba(234, 247, 251, 0.6); font-size: 13px; margin-top: 2px; }
.res-lists .res-note { color: rgba(234, 247, 251, 0.6); }

/* ───── Books (product cards) ───── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); transition: all 0.25s var(--ease);
}
.filters button:hover { border-color: var(--current); }
.filters button[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.filters button small { opacity: 0.6; margin-left: 4px; font-weight: 500; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.book {
  background: var(--paper); border-radius: var(--radius); padding: 12px;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.book:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(5, 25, 74, 0.12); }
.book[hidden] { display: none; }
.book-tile {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4;
  display: grid; place-items: center;
  background: radial-gradient(80% 90% at 50% 100%, rgba(60, 200, 232, 0.35), transparent 70%), linear-gradient(180deg, var(--foam), #d9eef8);
}
.book-tile img {
  width: 50%; height: auto; aspect-ratio: 0.71; object-fit: cover;
  border-radius: 4px 8px 8px 4px;
  box-shadow: -2px 0 0 rgba(0,0,0,0.08), 0 22px 40px rgba(5, 25, 74, 0.32), 0 4px 10px rgba(5, 25, 74, 0.2);
  transform: perspective(900px) rotateY(-10deg);
  transition: transform 0.6s var(--ease);
}
.book:hover .book-tile img { transform: perspective(900px) rotateY(0deg) scale(1.03); }
.book-tile .gen {
  width: 50%; aspect-ratio: 0.71; border-radius: 4px 8px 8px 4px; padding: 20px 16px;
  background: linear-gradient(160deg, var(--brand), var(--abyss));
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 22px 40px rgba(5, 25, 74, 0.32);
  transform: perspective(900px) rotateY(-10deg); transition: transform 0.6s var(--ease);
}
.book:hover .book-tile .gen { transform: perspective(900px) rotateY(0deg) scale(1.03); }
.gen small { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.gen b { font-family: var(--display); font-size: 17px; line-height: 1.15; }
.gen svg { width: 30px; height: 30px; color: var(--aqua); }
.book-body { padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.chip { align-self: flex-start; font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em; padding: 5px 11px; border-radius: 999px; background: var(--foam); color: var(--brand); }
.book h3 {
  font-family: var(--display); font-size: 20px; font-weight: 680; letter-spacing: -0.015em; line-height: 1.2;
  min-height: 3.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.book .intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; min-height: 8em; }
.book blockquote span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.book.open .intro, .book.open blockquote span { display: block; -webkit-line-clamp: unset; }
.more {
  align-self: flex-start; margin-top: -4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 650; color: #1559c4;
}
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more.off { visibility: hidden; }
.book p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.meta { list-style: none; display: grid; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.meta li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.meta svg { width: 18px; height: 18px; flex: none; color: var(--current); margin-top: 2px; }
.book blockquote {
  font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.5;
  padding: 14px 16px; border-radius: 16px; background: var(--mist); color: var(--ink);
  border-left: 3px solid var(--aqua);
}
.books-note { margin-top: 30px; font-size: 15px; color: var(--muted); text-align: center; }

/* ───── Field gallery ───── */
.field { background: linear-gradient(180deg, var(--mist), var(--foam)); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 26px;
  scrollbar-width: thin; scrollbar-color: var(--current) transparent;
  --g: calc((100vw - min(1200px, 100vw - 40px)) / 2);
  margin: 0 calc(var(--g) * -1);
  padding-left: var(--g); padding-right: var(--g); scroll-padding-inline: var(--g);
}
.rail figure { scroll-snap-align: start; border-radius: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.rail figure:hover img { transform: scale(1.05); }
.rail figcaption { font-size: 14.5px; color: var(--ink); padding: 16px 18px 18px; }
.rail figcaption small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.rail-nav { display: flex; gap: 10px; margin-top: 8px; }
.rail-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; display: grid; place-items: center; color: var(--deep); transition: all 0.25s;
}
.rail-nav button:hover { background: var(--deep); color: #fff; }
.rail-nav svg { width: 20px; height: 20px; }

/* ───── Conference ───── */
.conf-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
}
.conf-left { padding: clamp(32px, 5vw, 60px); }
.conf-left h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 18px; }
.conf-left p { color: var(--muted); margin-bottom: 14px; }
.conf-right {
  background: linear-gradient(160deg, var(--deep), var(--brand)); color: #fff;
  padding: clamp(32px, 5vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.conf-num { font-family: var(--display); font-weight: 800; font-size: clamp(90px, 12vw, 170px); line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px rgba(159, 230, 245, 0.75); }
.conf-right dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15.5px; position: relative; }
.conf-right dt { color: var(--spray); font-weight: 600; }
.conf-right dd { color: rgba(255, 255, 255, 0.9); }

/* ───── Foundation ───── */
.san { background: var(--paper); }
.san-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.san-intro figure { border-radius: var(--radius); overflow: hidden; }
.san-intro figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.steps div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps b { font-family: var(--display); color: var(--brand); font-size: 17px; }
.steps span { color: var(--muted); font-size: 16px; }

.san-intro figure figcaption { background: var(--mist); }
.founders { background: var(--mist); }
.cert {
  display: flex; align-items: center; gap: 14px; margin: 0 14px 14px; padding: 14px 18px;
  border-radius: 18px; background: var(--deep); color: var(--foam);
}
.cert .seal { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(60, 200, 232, 0.16); color: var(--aqua); }
.cert .seal svg { width: 24px; height: 24px; }
.cert b { display: block; font-family: var(--display); font-size: 17px; font-weight: 650; }
.cert small { font-size: 14px; color: var(--spray); }
.steps .key b { color: var(--brand); }
.steps .key { background: linear-gradient(90deg, rgba(60, 200, 232, 0.1), transparent); }
.mission {
  position: relative; overflow: hidden; margin: -20px 0 16px; padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius); color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(60, 200, 232, 0.35), transparent 60%), linear-gradient(135deg, var(--brand), var(--deep));
}
.mission .eyebrow { color: var(--spray); }
.mission p { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -0.015em; margin-top: 18px; max-width: 980px; }
.mission p span { color: var(--spray); }
.mission::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(159, 230, 245, 0.25); box-shadow: 0 0 0 40px rgba(159, 230, 245, 0.06), 0 0 0 90px rgba(159, 230, 245, 0.04);
}
.board { margin: 70px 0 70px; }
.members { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.member { text-align: center; padding: 28px 18px 26px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.member .ring {
  width: min(150px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 5px; margin-bottom: 18px;
  background: conic-gradient(from 200deg, var(--aqua), var(--brand), var(--deep), var(--aqua));
  box-shadow: 0 16px 36px rgba(5, 25, 74, 0.18);
}
.member .ring img, .member .initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; display: block; }
.member .initials { display: grid; place-items: center; background: linear-gradient(160deg, var(--current), var(--deep)); color: #fff; font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: 0.02em; }
.member .role { font-size: 12.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: #1559c4; }
.member h3 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 6px 0 8px; }
.member p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.identity { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; margin: 0 0 80px; }
.head-card {
  border-radius: var(--radius); padding: 30px; color: var(--foam); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1a3563, var(--deep)); display: flex; flex-direction: column; gap: 8px;
}
.head-card .hc-mark { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 10px; }
.head-card .lbl { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--spray); font-weight: 650; }
.head-card b { font-family: var(--display); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.head-card p { font-size: 15.5px; color: rgba(234, 247, 251, 0.78); }
.head-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(159, 230, 245, 0.18); font-size: 14.5px; }
.head-card dt { color: var(--spray); }
.flags { border-radius: var(--radius); overflow: hidden; background: var(--mist); border: 1px solid var(--line); display: grid; gap: 10px; padding: 10px; align-content: start; }
.flags img { border-radius: 14px; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.flags figcaption { background: none; padding: 4px 6px 12px; }
.desk { border-radius: var(--radius); overflow: hidden; background: var(--mist); display: flex; flex-direction: column; }
.desk img { width: 100%; flex: 1; min-height: 0; object-fit: cover; aspect-ratio: 3 / 4; }
.ajluud { background: var(--mist); }
.roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 10px 0 0; position: relative; padding-top: 26px; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--aqua), var(--current), var(--brand)); background-size: 200% 100%; animation: river 6s linear infinite; }
.rm { position: relative; padding: 14px 18px 0 0; }
.rm::before { content: ""; position: absolute; left: 0; top: -26px; width: 20px; height: 20px; background: #fff; border: 4px solid var(--current); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }
.rm b { display: block; font-family: var(--display); font-size: 18px; color: var(--brand); }
.rm span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.jobs { display: grid; gap: 16px; }
.job { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.job-main { padding: clamp(28px, 4vw, 44px); background: var(--deep); color: var(--foam); display: flex; flex-direction: column; gap: 12px; position: relative; }
.job-n { position: absolute; right: 26px; top: 18px; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(159, 230, 245, 0.35); }
.job-main .tag { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aqua); font-weight: 650; }
.job-main h3 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.02em; max-width: 85%; }
.job-main p { font-size: 16px; color: rgba(234, 247, 251, 0.8); }
.job-main .when { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(159, 230, 245, 0.18); font-size: 14.5px; color: var(--spray); }
.job-list { padding: clamp(26px, 3.6vw, 40px); }
.job-list b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 14px; }
.job-list ul { list-style: none; display: grid; gap: 12px; }
.job-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.job-list li svg { width: 20px; height: 20px; color: #fff; background: var(--current); border-radius: 50%; padding: 3px; margin-top: 2px; }
.dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 80px; }
.dir {
  border-radius: 24px; padding: 28px 24px 30px; background: var(--mist); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.dir .n { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--current); }
.dir h3 { font-family: var(--display); font-size: 21px; font-weight: 650; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
.dir p { font-size: 15.5px; color: var(--muted); }
.dir::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 200, 232, 0.25), transparent 70%);
}

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 80px; }
.work { border-radius: var(--radius); padding: 32px; background: var(--deep); color: var(--foam); display: flex; flex-direction: column; gap: 14px; }
.work .tag { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aqua); font-weight: 650; }
.work h3 { font-family: var(--display); font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.work p { font-size: 15.5px; color: rgba(234, 247, 251, 0.75); }
.work .when { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(159, 230, 245, 0.18); font-size: 14px; color: var(--spray); }

.fund { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.goal {
  border-radius: var(--radius); padding: 40px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--current), var(--brand) 60%, var(--deep));
}
.goal b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(80px, 10vw, 140px); line-height: 0.9; letter-spacing: -0.05em; }
.goal .unit { font-family: var(--display); font-size: 26px; font-weight: 600; }
.goal p { margin-top: 18px; color: rgba(255, 255, 255, 0.85); max-width: 320px; }
.goal .tank { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none; }
.goal .tank svg { width: 200%; height: 100%; animation: drift 9s linear infinite; }
.goal > * { position: relative; z-index: 1; }
.goal .tank { z-index: 0; }
.sources { border-radius: var(--radius); padding: 36px; background: var(--mist); border: 1px solid var(--line); }
.sources h3 { font-family: var(--display); font-size: 22px; margin-bottom: 18px; }
.src { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.src b { font-family: var(--display); color: var(--brand); font-size: 20px; line-height: 1.2; }
.src span { color: var(--muted); font-size: 15.5px; }
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; }
.flowline span { padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.flowline i { color: var(--current); font-style: normal; }

/* ───── Contact ───── */
.contact {
  color: var(--foam); overflow: hidden; isolation: isolate;
  background: radial-gradient(100% 80% at 100% 0%, rgba(29, 111, 230, 0.5), transparent 60%), linear-gradient(180deg, var(--deep), var(--abyss));
}
.contact .top-wave { position: absolute; top: -1px; left: 0; right: 0; height: 100px; transform: scaleY(-1); }
.contact .top-wave svg { width: 200%; height: 100%; animation: drift 16s linear infinite; }
.contact .section { padding-top: 170px; }
.contact .section-head p { color: rgba(234, 247, 251, 0.72); }
.contact .eyebrow.dark { color: var(--aqua); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-grid.two { grid-template-columns: repeat(2, 1fr); }
.cbox .cline { color: var(--foam); font-weight: 600; font-size: 17px; line-height: 1.9; }
.cbox .cline:hover { color: var(--aqua); }
.cbox .big.addr { font-size: 22px; }
.cbox.phones, .cbox.donate { grid-column: 1 / -1; }
.cbox.donate { background: #fff; color: var(--ink); border-color: transparent; gap: 14px; }
.don-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cbox.donate .lbl { color: var(--brand); }
.don-head img { height: 34px; width: auto; }
.don-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acct { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: 0.04em; color: var(--deep); font-variant-numeric: tabular-nums; }
.btn.copy { background: var(--deep); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.btn.copy:hover { background: var(--brand); transform: translateY(-2px); }
.btn.copy.done { background: #12805c; }
.cbox.donate p { color: var(--muted); }
.give { margin-top: 18px; }
.phone-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 4px; }
.phone-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "role call" "num call"; align-items: center; gap: 4px 12px;
  padding: 18px 18px 18px 20px; border-radius: 20px; background: #fff; border: 1px solid rgba(0, 39, 183, 0.12);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.phone-row:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 14px 30px rgba(5, 25, 74, 0.12); }
.phone-row .role { grid-area: role; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.phone-row .role b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; }
.phone-row .num { grid-area: num; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--deep); }
.phone-row .call { grid-area: call; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff; }
.phone-row .call svg { width: 20px; height: 20px; }
.cbox {
  border-radius: var(--radius); padding: 30px; background: rgba(159, 230, 245, 0.06);
  border: 1px solid rgba(159, 230, 245, 0.16); display: flex; flex-direction: column; gap: 10px;
}
.cbox .lbl { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--spray); font-weight: 650; }
.cbox .big { font-family: var(--display); font-size: 26px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.cbox .big a:hover { color: var(--aqua); }
.cbox p { font-size: 15px; color: rgba(234, 247, 251, 0.7); }
.cbox.feature { background: var(--foam); color: var(--deep); border-color: transparent; }
.cbox.feature .lbl { color: var(--brand); }
.cbox.feature p { color: var(--muted); }
.cbox .btn { margin-top: auto; align-self: flex-start; }
.cbox.feature .btn { background: var(--deep); color: #fff; }
.cbox.feature .btn:hover { background: var(--brand); }
.pending { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--spray); }
.pending::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.trust div { padding: 22px 24px; border-radius: 22px; border: 1px dashed rgba(159, 230, 245, 0.25); font-size: 15.5px; color: rgba(234, 247, 251, 0.8); }
.trust b { color: var(--aqua); font-family: var(--display); margin-right: 8px; }

footer { padding: 50px 0 40px; border-top: 1px solid rgba(159, 230, 245, 0.12); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: rgba(234, 247, 251, 0.55); }
.foot img { height: 40px; width: auto; }

/* ───── Reveal ───── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───── Responsive ───── */
@media (max-width: 1080px) {
  .res-stats { grid-template-columns: repeat(3, 1fr); }
  .members { grid-template-columns: repeat(3, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .ccard, .ccard.wide { grid-column: span 3; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 880px) {
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column;
    background: rgba(3, 18, 52, 0.96); border-radius: 24px; padding: 10px; border: 1px solid rgba(159, 230, 245, 0.18);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; padding: 120px 0 170px; gap: 40px; }
  .hero-portrait { width: 100%; justify-self: center; }
  .hero-portrait .badge { left: -12px; }
  .scroll-hint { bottom: 92px; }
  .bio-grid, .poem-card, .conf-card, .san-intro, .fund, .identity, .job, .res-lists, .res-tl { grid-template-columns: 1fr; }
  .res-stats { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .roadmap::before { display: none; }
  .rm::before { top: -6px; }
  .rm { padding-top: 26px; }
  .identity { margin-top: 0; }
  .bio-photos { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .stat b { font-size: 40px; }
  .quote-row, .works, .contact-grid, .contact-grid.two, .trust, .phone-list { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 620px) {
  .members { grid-template-columns: repeat(2, 1fr); }
  .member { padding: 22px 12px; }
  .member h3 { font-size: 19px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .books-grid, .dir-grid { grid-template-columns: 1fr; }
  .ccard, .ccard.wide { grid-column: span 6; }
  .nav-logo img { height: 28px; }
  .steps div, .src { grid-template-columns: 1fr; gap: 4px; }
  .rail { grid-auto-columns: 82%; --g: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───── Voice assistant ───── */
.va { position: fixed; right: 20px; bottom: 20px; z-index: 60; --amp: 0; }
.va-launch {
  display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--current), var(--brand) 60%, var(--deep));
  box-shadow: 0 16px 40px rgba(2, 13, 38, 0.35), inset 0 0 0 1px rgba(159, 230, 245, 0.3);
  transition: transform 0.3s var(--ease);
}
.va-launch:hover { transform: translateY(-2px); }
.va-drop { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(234, 247, 251, 0.16); }
.va-drop svg { width: 22px; height: 22px; }
.va-drop::before, .va-drop::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(159, 230, 245, 0.7); animation: ripple 2.6s ease-out infinite; }
.va-drop::after { animation-delay: 1.3s; }
.va.open .va-launch { display: none; }

.va-panel {
  width: min(400px, calc(100vw - 24px)); max-height: min(720px, calc(100svh - 40px)); overflow: hidden;
  display: flex; flex-direction: column; border-radius: 28px; color: var(--foam);
  background: radial-gradient(120% 70% at 50% 0%, rgba(29, 111, 230, 0.45), transparent 60%), linear-gradient(180deg, rgba(5, 25, 74, 0.97), rgba(2, 13, 38, 0.98));
  border: 1px solid rgba(159, 230, 245, 0.2); box-shadow: 0 30px 80px rgba(2, 13, 38, 0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: va-in 0.45s var(--ease);
}
.va-panel[hidden] { display: none; }
@keyframes va-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.va-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px 18px; }
.va-head img { width: 40px; height: 40px; border-radius: 50%; }
.va-head b { display: block; font-family: var(--display); font-size: 17px; }
.va-head span { font-size: 13px; color: rgba(234, 247, 251, 0.65); }
.va-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(159, 230, 245, 0.1); color: var(--foam); display: grid; place-items: center; }
.va-close svg { width: 18px; height: 18px; }
.va-close:hover { background: rgba(159, 230, 245, 0.22); }

.va-stage { position: relative; height: 150px; margin: 4px 14px 0; display: grid; place-items: center; }
.va-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.va-mic {
  position: relative; width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; color: var(--deep);
  background: radial-gradient(circle at 35% 30%, #fff, var(--spray) 55%, var(--aqua));
  box-shadow: 0 0 0 calc(6px + var(--amp) * 26px) rgba(60, 200, 232, 0.18), 0 0 0 calc(12px + var(--amp) * 44px) rgba(60, 200, 232, 0.08), 0 14px 30px rgba(2, 13, 38, 0.5);
  transition: transform 0.25s var(--ease);
}
.va-mic:hover { transform: scale(1.05); }
.va-mic svg { width: 30px; height: 30px; }
.va-mic .i-stop, .va[data-state="listening"] .va-mic .i-mic, .va[data-state="speaking"] .va-mic .i-mic { display: none; }
.va[data-state="listening"] .va-mic .i-stop, .va[data-state="speaking"] .va-mic .i-stop { display: block; }
.va[data-state="processing"] .va-mic { animation: va-pulse 1.2s ease-in-out infinite; }
@keyframes va-pulse { 50% { transform: scale(0.94); opacity: 0.85; } }
.va-status { text-align: center; font-size: 14px; color: var(--spray); min-height: 22px; padding: 0 18px; }

.va-log { overflow-y: auto; padding: 4px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 0; transition: max-height 0.4s var(--ease); }
.va.has-log .va-log { max-height: 260px; padding-bottom: 8px; }
.va-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.va-msg.me { align-self: flex-end; background: var(--current); color: #fff; border-bottom-right-radius: 6px; }
.va-msg.bot { align-self: flex-start; background: rgba(234, 247, 251, 0.1); border: 1px solid rgba(159, 230, 245, 0.16); border-bottom-left-radius: 6px; }
.va-msg.note { align-self: center; font-size: 13px; color: rgba(234, 247, 251, 0.7); background: none; padding: 2px 6px; text-align: center; }

.va-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 4px; }
.va.has-log .va-chips { display: none; }
.va-chip { font: inherit; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; cursor: pointer; color: var(--foam); background: rgba(159, 230, 245, 0.08); border: 1px solid rgba(159, 230, 245, 0.25); }
.va-chip:hover { background: rgba(159, 230, 245, 0.18); }
.va-form { display: flex; gap: 8px; padding: 10px 14px 14px; }
.va-input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: #fff; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(159, 230, 245, 0.25); background: rgba(2, 13, 38, 0.6); outline: none; }
.va-input::placeholder { color: rgba(234, 247, 251, 0.45); }
.va-input:focus { border-color: var(--aqua); }
.va-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: var(--aqua); color: var(--abyss); display: grid; place-items: center; }
.va-form button svg { width: 20px; height: 20px; }
.va-stop { display: none; margin: 0 14px 14px; padding: 10px; border-radius: 999px; border: 1px solid rgba(159, 230, 245, 0.3); background: none; color: var(--spray); font: inherit; font-size: 14px; cursor: pointer; }
.va[data-state="speaking"] .va-stop { display: block; }

@media (max-width: 620px) {
  .va { right: 12px; bottom: 12px; }
  .va.open { left: 12px; }
  .va-panel { width: 100%; }
  .va-launch-t { display: none; }
  .va-launch { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .va-drop::before, .va-drop::after { animation: none; } }

/* ───── Sub-page (Номын сан) ───── */
.page-hero {
  position: relative; overflow: hidden; color: var(--foam); padding: 150px 0 150px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(29, 111, 230, 0.55), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(0, 39, 183, 0.6), transparent 60%), linear-gradient(180deg, var(--abyss), var(--deep) 75%, #0a2e7a);
}
.page-hero .eyebrow { color: var(--spray); }
.page-hero h1 { font-family: var(--display); font-weight: 750; letter-spacing: -0.03em; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; margin: 18px 0 18px; max-width: 900px; }
.page-hero p { font-size: clamp(17px, 1.5vw, 20px); color: rgba(234, 247, 251, 0.82); max-width: 720px; }
.subpage #nomuud { padding-top: 40px; }
.nav-links a[aria-current="page"] { background: rgba(159, 230, 245, 0.16); color: #fff; }
.page-foot { background: var(--abyss); color: rgba(234, 247, 251, 0.55); padding: 40px 0; }
.page-foot .back { color: var(--spray); font-weight: 600; }
.page-foot .back:hover { color: #fff; }
