@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:wght@500;600;700&display=swap');

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #141f2e;
  --text-soft: #4a5565;
  --line: #ced7e3;
  --line-soft: #e2e8f1;
  --ink-muted: #667085;
  --accent: #2f5f9d;
  --accent-soft: #dce8f8;
  --shadow-soft: 0 2px 8px rgba(18, 38, 68, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

.site-shell {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

header {
  position: static;
}

.top-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    '. brand toggle'
    'links links links';
  padding: 0.9rem 0 0.78rem;
  row-gap: 0.85rem;
  border-bottom: none;
  background: rgba(248, 249, 251, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  grid-area: brand;
  line-height: 1;
  white-space: nowrap;
}

.brand .brand-logo {
  width: min(700px, 72vw);
  height: auto;
  display: block;
  margin-bottom: 0.1rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
  grid-area: toggle;
  justify-self: end;
}

.links {
  grid-area: links;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.links::-webkit-scrollbar {
  display: none;
}

.links a {
  position: relative;
  padding: 0.2rem 0;
  font-size: 0.87rem;
  color: var(--text-soft);
  font-weight: 600;
}

.links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.26rem;
  height: 2px;
  transform: scaleX(0);
  background: var(--accent);
  transition: transform 0.2s ease;
}

.links a:hover,
.links a.active {
  color: var(--text);
}

.links a:hover::after,
.links a.active::after {
  transform: scaleX(1);
}

main {
  margin-top: 1.2rem;
}

section {
  margin-bottom: 1.2rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.72rem;
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.24;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4.4vw, 2.95rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p,
li {
  color: var(--text-soft);
  line-height: 1.75;
}

ul,
ol {
  margin: 0.48rem 0 0;
  padding-left: 1.2rem;
}

ol li + li,
ul li + li {
  margin-top: 0.36rem;
}

.hero {
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3.8vw, 2.2rem);
  background: var(--surface);
}

.hero-layout {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
}

.hero-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
}

.hero .tag {
  margin: 0 0 0.68rem;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.hero p {
  max-width: 72ch;
}

.cta-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0.62rem 0.98rem;
  border-radius: 0.22rem;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn.secondary {
  color: var(--text);
  background: transparent;
}

.btn:hover {
  border-color: var(--accent);
}

.btn.primary:hover {
  background: #224a7d;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-soft);
  background: var(--surface);
}

.panel {
  margin-top: 1rem;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.program-table th,
.program-table td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-soft);
}

.program-table th {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 0 0 0.68rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  position: relative;
  padding: 1rem;
}

.card .pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.18rem 0 0.18rem 0.38rem;
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evidence-grid .card .pill + h3 {
  margin-top: 0.1rem;
}

.evidence-grid .card .pill {
  margin-left: 0.6rem;
}

.pill-grid {
  margin-bottom: 0.65rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.label-pill {
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  padding: 0.35rem 0.65rem;
  background: var(--surface-soft);
  font-size: 0.77rem;
  color: #495b73;
  font-weight: 600;
}

.evidence-level {
  color: var(--accent);
  font-weight: 700;
}

.disclaimer {
  border-left-color: var(--accent);
  background: var(--surface-soft);
}

.audio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.audio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.audio-card .track-label {
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audio-card .track-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.87rem;
}

.audio-card audio {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.founder-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 234px minmax(0, 1fr);
  align-items: start;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  object-fit: cover;
}

blockquote {
  margin: 0.85rem 0 1rem;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--accent-soft);
  background: var(--surface-soft);
  color: var(--text-soft);
}

footer {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-note {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

footer a {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 980px) {
  .top-nav {
    grid-template-areas:
      'brand toggle'
      'links links';
    gap: 0.9rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-width: 620px;
    margin: 0 auto;
  }

  .links {
    display: none;
    width: 100%;
    padding-top: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .links a {
    width: 100%;
    padding: 0.62rem 0;
  }

  .links a::after {
    left: 0;
    right: auto;
    width: 100%;
    bottom: 0.2rem;
    transform-origin: left center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand .brand-logo {
    width: min(480px, 78vw);
  }

  .links.open {
    display: flex;
  }

  .site-shell {
    width: min(1120px, calc(100% - 1.2rem));
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: 1.95rem;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .site-shell {
    width: calc(100% - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
