@font-face {
    font-family: "Gilda Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/gilda-display.ttf") format("truetype");
}
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dm-sans-regular.ttf") format("truetype");
}
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/dm-sans-semibold.ttf") format("truetype");
}
/* Restrained layout with World Labs-inspired typography. Roobert requires licensed webfont files; DM Sans is the bundled fallback. */
:root {
    --text: #333;
    --surface: #fff;
    --link: #28658a;
    --link-hover: #163d55;
    --heading: #222;
    --muted: #666;
    --lead: #555;
    --muted-soft: #777;
    --border-light: #eee;
    --border: #ddd;
    --hover: #f5f5f5;
    --underline: #bbb;
    --control-border: #ccc;
    color-scheme: light;
    font: 16px/1.65 "Roobert", "DM Sans", Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
h1, h2 {
    color: var(--heading);
    font-family: "Gilda Display", Georgia, serif;
    font-weight: normal;
    line-height: 1.3;
}
h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.2; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: 26px; margin: 0 0 18px; }
h3 { color: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.5; margin: 28px 0 8px; }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
main > section + section { margin-top: 56px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--surface); padding: 12px; }
.skip-link:focus { top: 10px; z-index: 20; }
.site-header {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border-light);
}
.brand { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.wordmark { font: 600 25px/1.3 "DM Sans", Arial, sans-serif; letter-spacing: -.04em; color: var(--heading); text-decoration: none; white-space: nowrap; }
nav { font-size: 14px; }
nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
nav a, nav summary { color: var(--muted); text-decoration: none; }
nav a:hover, nav summary:hover, nav [aria-current], .nav-group.active > summary { color: var(--heading); }
.nav-list > li > a { display: inline-block; padding-block: 8px; }
.nav-group { position: relative; }
.nav-group summary { cursor: pointer; list-style: none; padding-block: 8px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 8px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.nav-group[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.subnav { position: absolute; z-index: 10; top: 100%; left: -16px; min-width: 180px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 18px #00000008; }
.subnav a { display: block; padding: 8px; white-space: nowrap; border-radius: 4px; }
.subnav a:hover { background: var(--hover); }
.hero { margin-bottom: 40px; }
.hero p { margin: 0; }
.hero-landing { margin-bottom: 36px; }
.hero-landing h1 { font-size: clamp(34px, 6.4vw, 52px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 24px; }
.hero-lead { font-size: 20px; line-height: 1.5; color: var(--lead); }
.hero-lead b { color: var(--heading); }
.hero-media { --w: min(1040px, 100vw - 40px); width: var(--w); margin-inline: calc((100% - var(--w)) / 2); }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
video { display: block; width: 100%; aspect-ratio: 16/9; background: #222; }
.site-footer { border-top: 1px solid var(--border-light); font-size: 13px; color: var(--muted-soft); }
.footer-meta { max-width: 760px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.footer-wordmark { font: 600 17px/1.4 "DM Sans", Arial, sans-serif; letter-spacing: -.04em; }
.footer-links { align-items: center; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--heading); text-decoration: underline; }
.footer-meta .footer-wordmark { color: var(--heading); }
/* One fixed-height row. site.js makes it a slow marquee; otherwise it scrolls sideways. */
.support-banner { background: #222; display: flex; align-items: center; }
.supporters-label { flex: 0 0 auto; margin: 0; padding: 0 8px 0 32px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #999; }
.supporter-viewport { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.supporter-viewport::-webkit-scrollbar { display: none; }
.supporter-logos { --scale: .8; list-style: none; width: max-content; margin: 0; padding: 14px 0; display: flex; align-items: center; }
.supporter-logos li { flex: 0 0 auto; padding-inline: 26px; }
.supporter-logos img { display: block; width: auto; height: calc(var(--h, 18px) * var(--scale)); filter: brightness(0) invert(1); opacity: .8; }
.supporter-logos a:hover img { opacity: 1; }
.is-marquee .supporter-viewport { overflow: hidden; }
.is-marquee .supporter-logos { animation: supporters-scroll var(--marquee-duration, 40s) linear infinite; }
.is-marquee:hover .supporter-logos, .is-marquee:focus-within .supporter-logos { animation-play-state: paused; }
@keyframes supporters-scroll { to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }
@media (max-width: 540px) {
    main { padding-top: 28px; padding-bottom: 48px; }
    .supporters-label { padding-left: 20px; }
    .supporter-logos { --scale: .7; }
    .supporter-logos li { padding-inline: 18px; }
}

@media (max-width: 760px) {
    .site-header { align-items: flex-start; flex-direction: column; padding: 20px; gap: 12px; }
    .nav-list { gap: 4px 18px; align-items: flex-start; }
    .subnav { position: static; min-width: 0; margin-block: 4px; box-shadow: none; }
}

.organization-group { padding-block: 32px; }
.organization-group + .organization-group { border-top: 1px solid var(--border); }
.organization-group + .organization-group.no-divider { border-top: 0; padding-top: 8px; }
.organization-group h2 { margin-bottom: 12px; }
.organization-list { list-style: none; margin: 0; padding: 0; }
.organization-list li + li { margin-top: 24px; }
.organization-list h3 { margin: 0 0 4px; }
.organization-list h3 a, .organization-name a { color: var(--heading); text-decoration-color: var(--underline); }
.organization-list h3 a:hover, .organization-name a:hover { text-decoration-color: currentColor; }
.organization-group p { margin: 0; }
.organization-group .organization-role { margin-bottom: 6px; color: var(--muted-soft); font-size: 14px; }

.organization-name { font-size: 17px; font-weight: 600; line-height: 1.5; }

.insight p { margin: 0 0 18px; }
.insight-header { margin-bottom: 30px; }
.insight-label, .insight-source { font-size: 14px; color: var(--muted); }
.insight .insight-label { margin-bottom: 10px; }
.insight-lead { font-size: 19px; color: var(--lead); line-height: 1.6; }
.insight > section { margin-top: 56px; }
.insight h2 { margin-bottom: 14px; }
.grounding-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-block: 30px; padding-block: 24px; border-block: 1px solid var(--border); }
.grounding-comparison h2 { font-size: 22px; }
.grounding-comparison p:last-child { margin-bottom: 0; }
.insight .insight-source { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 540px) {
    .grounding-comparison { grid-template-columns: 1fr; gap: 24px; }
}

.insight-figure { margin: 24px 0; }
.insight-figure img, .insight-figure video { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.insight-figure.demo-small { max-width: 420px; }
.insight-figure figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.rollout-figure, .grounding-plot { max-width: 400px; margin-inline: auto; }

.insight-header .insight-source { margin-top: 16px; padding-top: 0; border-top: 0; }

.catalog-link { display: inline-block; margin-block: 6px; padding: 9px 18px; border: 1px solid var(--control-border); border-radius: 24px; color: var(--heading); font-size: 15px; text-decoration: none; }
.catalog-link:hover { border-color: var(--heading); color: var(--heading); }
.catalog-back { margin: 0 0 20px; font-size: 14px; }
.catalog-back a { color: var(--muted); text-decoration: none; }
.catalog-back a:hover { color: var(--heading); text-decoration: underline; }
.contact-email { font: 400 clamp(22px, 4vw, 28px)/1.3 "Gilda Display", Georgia, serif; color: var(--heading); text-decoration-color: var(--underline); }
.contact-email:hover { color: var(--heading); text-decoration-color: currentColor; }
.catalog-status { color: var(--muted); font-size: 14px; }
.task-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding-block: 24px; border-top: 1px solid var(--border); }
.task-card h2 { margin-bottom: 10px; font-size: 22px; }
.task-card h2 a { color: inherit; text-decoration: none; }
.task-card h2 a:hover { text-decoration: underline; }
.task-card p { margin: 0 0 12px; }
.task-card img, .task-card video { display: block; max-width: 100%; height: auto; }
.task-note { color: var(--muted); font-size: 14px; }
@media (max-width: 540px) {
    .task-card { grid-template-columns: 1fr; gap: 16px; }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --text: #ddd;
    --surface: #111;
    --link: #9acbe7;
    --link-hover: #cce9fa;
    --heading: #f2f2f2;
    --muted: #b0b0b0;
    --lead: #ccc;
    --muted-soft: #aaa;
    --border-light: #333;
    --border: #444;
    --hover: #252525;
    --underline: #777;
    --control-border: #666;
}
.theme-control { display: flex; align-items: center; }
.theme-toggle { font: inherit; font-size: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--control-border); border-radius: 16px; padding: 6px 12px; cursor: pointer; }
.theme-toggle:hover { background: var(--hover); }
