:root {
  color-scheme: light;
  --ink: #181724;
  --muted: #535262;
  --line: #dbdae3;
  --blue: #403ec9;
  --paper: #fbfafc;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--font); }
img { display: block; width: 100%; height: auto; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.12; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.05em; }
h3 { font-size: 1.4rem; letter-spacing: -.025em; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.hero :focus-visible { outline-color: #c9c3ff; }
.symbols { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .6rem 1rem; color: var(--ink); background: white; border: 2px solid var(--blue); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - clamp(2.5rem, 9vw, 9rem), 79rem); margin-inline: auto; }
.section-intro { color: var(--muted); margin-top: .8rem; max-width: 43rem; font-size: 1.05rem; }

.header { position: relative; z-index: 4; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.8rem; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .47rem; min-height: 2.75rem; color: inherit; font-weight: 720; line-height: 1; font-size: clamp(1.25rem, 2.1vw, 1.58rem); letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 2.45rem; height: 2.45rem; color: var(--blue); flex: none; }
.brand-medium { font-weight: 530; }
.brand small { font: 500 .72em var(--font); letter-spacing: -.045em; color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.7rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #363541; font-size: .95rem; font-weight: 560; text-decoration: none; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }
.header-search, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .38rem .95rem; border: 1px solid #cfced9; border-radius: 2rem; background: transparent; font-size: .94rem; font-weight: 590; }
.header-search svg { width: 1.12rem; height: 1.12rem; }
.header-search:hover, .menu-toggle:hover { border-color: var(--blue); color: var(--blue); }
.menu-toggle { display: none; }
.menu-lines { width: .88rem; height: .52rem; border-block: 1.5px solid currentColor; }

.hero { isolation: isolate; position: relative; color: #fff; background: #090919; overflow: hidden; }
.hero-visual { position: absolute; z-index: -1; inset: 0; }
.hero-visual img { height: 100%; object-fit: cover; object-position: 58% 48%; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #090919 1%, #090919e8 24%, #0909198c 43%, transparent 63%); }
.hero-visual figcaption { position: absolute; z-index: 1; bottom: 1rem; right: max(4.6%, calc((100% - 79rem)/2)); color: #dedbea; background: #0b0a1ecc; padding: .18rem .52rem; font-size: .78rem; letter-spacing: .02em; }
.hero-visual figcaption span { font-family: var(--serif); font-style: italic; font-size: 1.02rem; }
.hero-inner { display: flex; align-items: center; min-height: clamp(31.2rem, 40.3vw, 39rem); padding-block: clamp(3.5rem, 5.4vw, 5.2rem); }
.hero-kicker { display: flex; align-items: center; gap: .68rem; color: #cac6f1; font: 500 .79rem/1.3 Consolas, "Courier New", monospace; letter-spacing: .125em; text-transform: uppercase; }
.hero-kicker span { width: 1.92rem; height: 2px; background: #a598fa; }
.hero h1 { margin-top: 1.15rem; font-size: clamp(3.35rem, 5.75vw, 5.8rem); line-height: 1.02; font-weight: 570; letter-spacing: -.063em; }
.hero h1 em { font: italic 400 1.025em/.98 var(--serif); color: #c4befa; letter-spacing: -.065em; }
.hero-copy p { max-width: 30.2rem; margin-top: 1.35rem; color: #dbdae6; font-size: clamp(1rem, 1.33vw, 1.19rem); line-height: 1.62; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.55rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .58rem; min-height: 2.95rem; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: .32rem; font-size: .98rem; line-height: 1.2; font-weight: 620; text-align: center; text-decoration: none; }
.button svg, .icon-tile svg, .dialog-close svg { width: 1.24rem; height: 1.24rem; fill: none; stroke: currentColor; stroke-width: 1.62; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: #e9e5ff; color: #211b3c; }
.button-primary:hover { background: white; }
.button-quiet { background: transparent; color: #f7f5ff; padding-inline: .05rem; text-decoration: underline; text-decoration-color: #8c879f; text-underline-offset: .39em; }
.button-quiet:hover { text-decoration-color: white; }

.routes-section { background: var(--paper); padding-block: clamp(2.5rem, 4vw, 4rem) clamp(3.2rem, 5.5vw, 5.5rem); }
.routes-section h2 { font: 400 clamp(2.1rem, 3.55vw, 3.6rem)/1.12 var(--serif); letter-spacing: -.052em; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.55vw, 1.45rem); margin-top: 1.45rem; }
.route-card { --route-accent: #423ca5; --route-bg: #ecebff; display: flex; align-items: center; gap: 1rem; text-decoration: none; padding: clamp(1rem, 2vw, 1.65rem); border-top: 2px solid var(--route-accent); background: var(--route-bg); }
.route-card:nth-child(2) { --route-accent: #864a3e; --route-bg: #f4ebe8; }
.route-card:nth-child(3) { --route-accent: #394f87; --route-bg: #e9edf7; }
.icon-tile { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; flex: 0 0 auto; }
.route-card .icon-tile { width: 2.55rem; height: 2.55rem; color: var(--route-accent); }
.route-card svg { width: 2rem; height: 2rem; stroke-width: 1.35; }
.route-body { display: grid; gap: .28rem; }
.route-body strong { font-size: clamp(1.08rem, 1.43vw, 1.3rem); line-height: 1.2; font-weight: 640; letter-spacing: -.03em; }
.route-body > span { color: #4a4959; line-height: 1.48; font-size: .96rem; }
.route-card:hover strong { color: var(--route-accent); text-decoration: underline; text-underline-offset: .2em; }

.level summary { cursor: pointer; list-style: none; }
.level summary::-webkit-details-marker { display: none; }
.expand-mark { width: .85rem; height: .85rem; position: relative; margin-inline: auto .3rem; }
.expand-mark::before, .expand-mark::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.expand-mark::after { transform: rotate(90deg); }
.level[open] .expand-mark::after { display: none; }
.text-link, .study-link { color: var(--blue); text-decoration: underline; text-underline-offset: .23em; font-weight: 630; text-align: left; overflow-wrap: anywhere; }
button.text-link, button.study-link { border: 0; background: transparent; padding: .5rem 0; }
.filters { flex-wrap: wrap; }
.filters button { background: transparent; border: 0; font-size: .93rem; font-weight: 600; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.research-card { display: flex; flex-direction: column; }
.study-link { margin-top: auto; }
.founder-credit { color: var(--muted); font-size: .94rem; margin-top: .65rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.footer-inner > a:last-child { text-underline-offset: .25em; }

.resource-dialog { position: fixed; width: min(92vw, 38rem); max-height: 84vh; max-height: 84dvh; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid #ceccdf; border-top: 4px solid var(--blue); border-radius: .6rem; box-shadow: 0 2rem 7rem #10102255; }
.resource-dialog::backdrop { background: #101023b3; }
.dialog-inner { padding: clamp(1.45rem, 4vw, 2.5rem); }
.dialog-inner h2 { font: 400 clamp(2rem, 4.8vw, 2.95rem)/1.05 var(--serif); letter-spacing: -.043em; padding-right: 1.6rem; }
.dialog-inner p { color: var(--muted); margin-top: 1rem; }
.dialog-inner > a { display: inline-block; margin-top: 1.2rem; }
.dialog-inner li + li { margin-top: .5rem; }
.dialog-inner .dialog-source { font-size: .92rem; }
.dialog-close { float: right; position: sticky; top: .65rem; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: .65rem .65rem 0 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.dialog-close:hover { background: #edeaff; }

@media (max-width: 54rem) {
  .header-inner { gap: .65rem; min-height: 4.2rem; }
  .header-search { margin-left: auto; }
  .menu-toggle { display: inline-flex; order: 2; }
  .site-nav { position: absolute; display: none; inset: 100% 0 auto; background: var(--paper); padding: .6rem 5% .9rem; border-block: 1px solid var(--line); box-shadow: 0 12px 15px #14132114; }
  .site-nav[data-open='true'] { display: grid; gap: 0; }
  .site-nav a { padding: .3rem .55rem; }
  .hero-copy p { max-width: 25rem; }
  .route-card { display: grid; align-content: start; gap: .6rem; }
}
@media (max-width: 40rem) {
  .hero-inner { min-height: 0; padding-block: 3.3rem 4.25rem; }
  .hero-visual img { object-position: 67% center; opacity: .62; }
  .hero-visual::after { background: linear-gradient(90deg, #090919f7 0%, #090919d6 47%, #09091966 90%); }
  .hero h1 { font-size: clamp(2.8rem, 8.8vw, 3.7rem); }
  .hero-copy p { max-width: 29ch; }
  .hero-actions { gap: .65rem 1.1rem; }
  .hero-visual figcaption { font-size: .75rem; bottom: .55rem; }
  .route-grid { grid-template-columns: 1fr; gap: .7rem; }
  .route-card { display: flex; gap: .9rem; padding: 1rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 26rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .38rem; }
  .brand { gap: .21rem; font-size: 1.1rem; }
  .brand-mark { width: 1.85rem; }
  .header-search, .menu-toggle { font-size: .87rem; padding-inline: .57rem; gap: .27rem; }
  .hero-actions .button { font-size: .93rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
