@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #12264A;
  --red: #D52B1E;
  --blue: #5DA9E9;
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #16213A;
  --muted: #55607A;
  --line: #E3DFD6;
  --tint: #EAF3FC;
  --link: #1C5FA8;
  --hero-ink: #FFFFFF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1628;
    --surface: #15223B;
    --ink: #E8EDF6;
    --muted: #A3AFC6;
    --line: #26375A;
    --tint: #1A2D4D;
    --link: #8CC4F2;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1628; --surface: #15223B; --ink: #E8EDF6; --muted: #A3AFC6; --line: #26375A; --tint: #1A2D4D; --link: #8CC4F2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 "Atkinson Hyperlegible", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.small { font-size: .875rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; flex-wrap: nowrap; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 800 .95rem/1 "Bricolage Grotesque", sans-serif; white-space: nowrap; flex: none; }
.brand img { background: #fff; border-radius: 6px; padding: 2px; width: 26px; height: 26px; }
.top nav { min-width: 0; }
.top nav ul { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; color: #DDE8F7; text-decoration: none; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.top nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.top nav a[aria-current="page"] { color: #fff; background: rgba(93,169,233,.28); }
@media (max-width: 760px) {
  .top-in { gap: 6px; min-height: 40px; padding: 3px 0; }
  .brand span { display: none; }
  .top nav { flex: 1; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg,#000 88%,transparent); mask-image: linear-gradient(90deg,#000 88%,transparent); }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { font-size: .85rem; padding: 5px 8px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--hero-ink); padding: 14px 0 26px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -30px -10%; height: 44px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; position: relative; z-index: 1; }
.hero .kicker { color: var(--blue); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: .4em; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .3em; }
.hero .sm { display: none; }
@media (max-width: 820px) { .hero .sm { display: inline; } }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { color: #CFDAEB; font-size: 1rem; line-height: 1.5; max-width: 52ch; margin-bottom: .7em; }
.hero-art { width: 100%; max-width: 380px; justify-self: center; height: auto; display: block; }
@media (max-width: 820px) {
  .hero { padding: 12px 0 26px; }
  .hero-in { grid-template-columns: 1fr; gap: 6px; }
  .hero-art { max-width: 270px; }
  .hero .btns { gap: 8px; }
  .hero .btn { padding: 10px 14px; font-size: .95rem; }
  .hero .btns { flex-wrap: nowrap; }
  .hero .lg { display: none; }
  .hero-art { max-width: 220px; margin-top: -2px; }
  .page-head { padding: 22px 0 4px; }
  .page-head h1 { font-size: 1.8rem; }
  .lead { font-size: 1.05rem; }
  .hero p { font-size: 1rem; }
}
/* hero art motion */
.ha-aurora { animation: ha-aur 9s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes ha-aur { from { transform: translateX(-8px); opacity: .75; } to { transform: translateX(10px); opacity: 1; } }
.ha-flow { animation: ha-dash 1.1s linear infinite; }
@keyframes ha-dash { to { stroke-dashoffset: -12; } }
.ha-warm { animation: ha-rise 2.4s ease-in-out infinite; }
.ha-warm2 { animation-delay: -1.2s; }
@keyframes ha-rise { 0% { transform: translateY(4px); opacity: 0; } 30% { opacity: .95; } 100% { transform: translateY(-10px); opacity: 0; } }
.ha-steam circle { animation: ha-puff 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.ha-steam circle:nth-child(2) { animation-delay: -1s; } .ha-steam circle:nth-child(3) { animation-delay: -2s; }
@keyframes ha-puff { 0% { opacity: 0; transform: translate(6px, 4px) scale(.5); } 30% { opacity: .8; } 100% { opacity: 0; transform: translate(-10px, -12px) scale(1.4); } }
.ha-flame { animation: ha-flick .35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom; }
@keyframes ha-flick { from { transform: scaleY(.85); } to { transform: scaleY(1.1); } }
.ha-glow { animation: ha-glow 2.6s ease-in-out infinite alternate; }
@keyframes ha-glow { from { opacity: .45; } to { opacity: .9; } }
.ha-snow circle { animation: ha-fall var(--d) linear var(--dl) infinite; }
@keyframes ha-fall { 0% { transform: translate(0, 0); } 25% { transform: translate(var(--sw), 90px); } 50% { transform: translate(0, 180px); } 75% { transform: translate(calc(var(--sw) * -0.6), 270px); } 100% { transform: translate(var(--sw), 360px); } }
@media (prefers-reduced-motion: reduce) { .hero-art * { animation: none !important; } .ha-snow { display: none; } }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #B8231A; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--navy); color: var(--ink); }

/* Sections and cards */
.section { padding: 32px 0 48px; }
.page-head { padding: 40px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,38,74,.12); border-color: var(--blue); color: var(--ink); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--link); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--navy); }
.icon svg { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon { color: var(--blue); } }

.callout { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }
.callout.warn { border-left-color: var(--red); }
.callout p:last-child { margin: 0; }

.story { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.story .flag { font-size: 2rem; line-height: 1; }
@media (max-width: 560px) { .story { grid-template-columns: 1fr; } }

/* Video */
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { aspect-ratio: 16/9; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; }
.video-soon strong { font: 800 1.6rem/1.2 "Bricolage Grotesque", sans-serif; display: block; }
.chapters { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
.chapters li { padding: 4px 0; break-inside: avoid; }
.chapters time { display: inline-block; min-width: 3.2em; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.points li { margin-bottom: .5em; }

/* Checklist */
.check-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px 16px; margin-bottom: 16px; break-inside: avoid; }
.check-group h2 { font-size: 1.3rem; margin: 14px 0 6px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.check b { display: block; }
.check span span { color: var(--muted); font-size: .95rem; }
.check input:checked + span b { text-decoration: line-through; text-decoration-color: var(--red); color: var(--muted); }
.progress { position: sticky; top: 64px; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.bar { flex: 1; height: 10px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
button.btn { cursor: pointer; font: inherit; font-weight: 700; }

/* Glossary */
.gloss-search { width: 100%; font: inherit; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); margin: 8px 0 20px; }
.gloss-search:focus { border-color: var(--blue); outline: none; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.term h3 { margin-bottom: .3em; }
.term p { margin: 0 0 .5em; }
.term .sa { font-size: .93rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.term .sa b { color: var(--ink); }
.term .see { font-size: .9rem; }

/* 3D landing */
.chap-list { counter-reset: c; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.chap-list li { counter-increment: c; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 52px; position: relative; }
.chap-list li::before { content: counter(c); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.app-teaser { display: block; position: relative; border-radius: 18px; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(18,38,74,.15); }
.app-teaser img { display: block; width: 100%; height: auto; transition: transform .3s; }
.app-teaser:hover img { transform: scale(1.02); }
.card-img { margin: -20px -20px 8px; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16/8; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; display: block; }
.app-teaser .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--red); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 8px 30px rgba(0,0,0,.35); white-space: nowrap; }
.app-teaser:hover .play { background: #B8231A; color: #fff; }

/* Footer */
.foot { background: var(--navy); color: #CFDAEB; margin-top: 56px; padding: 40px 0 24px; }
.foot a { color: #fff; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .small { color: #A9B8D0; }
.foot-brand { font: 800 1.3rem "Bricolage Grotesque", sans-serif; color: #fff; }
.foot-h { font-weight: 700; color: #fff; margin-bottom: .4em; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 3px 0; }
.foot-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }

@media print {
  .top, .foot, .tools, .progress, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .check-group { border: 1px solid #999; }
  .check input { accent-color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Video "coming soon" box shows the thumbnail behind it */
.video-soon { background-size: cover; background-position: center; }
/* Chapter list: each chapter opens the 3D tour at that chapter (whole tile clickable) */
.chap-list li { transition: border-color .15s, box-shadow .15s; }
.chap-list li:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(18,38,74,.1); }
.chap-list li a { color: var(--ink); text-decoration: none; font-weight: 700; }
.chap-list li a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.chap-list li::after { content: "▶"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: .8rem; }
.chap-list li { padding-right: 34px; }
