:root {
  color-scheme: dark;
  /* navy layers */
  --bg: #111827; --bg-alt: #151e30; --surface: #1a2437; --line: #273248;
  --ink: #f5f7fb; --muted: #9aa3b5;
  /* sky blue: the main highlight (labels, italic words, buttons, links) */
  --accent: #86bdf3; --accent-ink: #0f1422; --soft: #1b2b44;
  --navy: #0f1422; --navy-ink: #f5f7fb; --navy-muted: #9aa3b5;
  --rec: #e5383b;
  /* header palette */
  --h-bg: #0f1422; --h-glow1: #1c2a4a; --h-glow2: #151d33; --h-ink: #e8ecf5; --h-muted: #97a2ba;
  --shadow: 0 20px 44px -24px rgba(0,0,0,.85);
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.sec { background: var(--bg); color: var(--ink); padding-block: clamp(52px, 7vw, 84px); }
/* light sections: soft grey ground, navy text */
.light {
  --bg: #eef0f4; --bg-alt: #eef0f4; --surface: #ffffff; --line: #d8dde6;
  --ink: #0f1422; --muted: #4d586c; --accent: #2d5d9f; --accent-ink: #ffffff; --soft: #e1e7f1;
  --shadow: 0 18px 40px -24px rgba(15,20,34,.35);
}
/* navy blocks inside light sections keep the dark palette */
.fact.wide, .vf, .contact-card { --accent: #86bdf3; --line: #273248; }
.sec-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; letter-spacing: -.02em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--accent); }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* ---------- progress bar + nav ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #5d9fe0, var(--accent)); }
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--h-bg); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.01em; color: var(--h-ink); }
.mono { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; font-family: var(--display); font-style: italic; font-weight: 600; display: grid; place-items: center; background: var(--accent); color: var(--navy); font-size: 15px; letter-spacing: .02em; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .mono { transform: rotate(-8deg) scale(1.08); }
.mono img { width: 100%; height: 100%; object-fit: cover; display: block; }
.links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a { position: relative; display: block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; color: var(--h-muted); transition: color .2s, background .2s; }
.links a:hover, .links a[aria-current] { color: var(--h-ink); }
.links a:hover { background: rgba(255,255,255,.08); }
.links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.links a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--h-ink); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 10px 16px 18px; background: var(--h-bg); border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open .links { transform: none; opacity: 1; pointer-events: auto; }
  .links a { padding: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--h-ink);
  background:
    radial-gradient(900px 560px at 88% 0%, var(--h-glow1) 0%, transparent 62%),
    radial-gradient(700px 480px at 0% 100%, var(--h-glow2) 0%, transparent 60%),
    var(--h-bg);
  padding-block: clamp(56px, 7vw, 88px) clamp(72px, 8vw, 100px);
}
.hero::after { content: "\201C"; position: absolute; right: -2%; top: -12%; z-index: -1; font-family: var(--display); font-style: italic; font-size: clamp(320px, 42vw, 620px); line-height: 1; color: var(--accent); opacity: .07; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { font-size: clamp(56px, 8.4vw, 108px); font-weight: 700; letter-spacing: -.03em; line-height: .96; }
.hero h1 em { animation: glow 6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { color: #5d9fe0; } 50% { color: #cfe6ff; } }
.question { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; margin: 30px 0 10px; min-height: 1.3em; max-width: 24em; padding-left: 20px; border-left: 2px solid var(--accent); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -.15em; margin-left: 3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero .since { color: var(--h-muted); margin: 0 0 36px; padding-left: 22px; }
.hero .btn-ghost { background: rgba(255,255,255,.06); color: var(--h-ink); border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: var(--h-ink); background: rgba(255,255,255,.1); }
/* on a phone the question wraps onto two lines, so keep room for both while it is typed */
@media (max-width: 560px) { .question { min-height: 2.6em; } }
/* smaller header used on inner pages */
.hero.page { padding-block: clamp(48px, 7vw, 84px) clamp(56px, 7vw, 88px); }
.hero.page h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1; }
.hero.page .lede { color: var(--h-muted); font-size: 19px; max-width: 34em; margin: 22px 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { --mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transform: translate(var(--mx), var(--my)); transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s, background .25s; overflow: hidden; }
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { box-shadow: 0 16px 34px -12px var(--accent); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.text-link { font-weight: 700; text-decoration: none; padding: 10px 6px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.text-link:hover { background-size: 100% 2px; }

/* ---------- reveal ---------- */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.pre { opacity: 0; transform: translateY(32px); }
.tilt.reveal { transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.tilt.reveal.done { transition: transform .2s ease-out, box-shadow .3s; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p { margin: 0 0 18px; max-width: 60ch; color: var(--muted); }
.about-text .pull { font-family: var(--display); font-weight: 600; font-style: italic; font-size: 26px; line-height: 1.3; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 18px; margin: 26px 0; }
.about-text strong { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; perspective: 900px; }
.tilt { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; will-change: transform; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.fact .big { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; display: block; margin-bottom: 8px; transform: translateZ(30px); }
.fact span { color: var(--muted); font-size: 15px; display: block; line-height: 1.4; }
.fact.wide { grid-column: span 2; background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.fact.wide .big { color: var(--accent); }
.fact.wide span { color: var(--navy-muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- doorway cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 1000px; }
.card { position: relative; display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--accent); margin-bottom: 20px; transform: translateZ(40px); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.card:hover .ic { transform: translateZ(40px) rotate(-10deg) scale(1.1); }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.card .go { font-weight: 700; color: var(--accent); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- tvpss ---------- */
.tvpss { position: relative; overflow: hidden; }
.recbar { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 14px; font-variant-numeric: tabular-nums; width: fit-content; }
.recbar b { color: var(--rec); font-weight: 500; letter-spacing: .12em; }
.tv-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tv-text p { margin: 0 0 18px; color: var(--muted); max-width: 52ch; }
.tv-text strong { color: var(--ink); }
/* viewfinder frame around the video */
.vf { position: relative; background: var(--navy); color: var(--navy-ink); box-shadow: var(--shadow); border-radius: 18px; padding: 44px 26px 22px; }
.vf i { position: absolute; width: 22px; height: 22px; border-color: rgba(255,255,255,.55); border-style: solid; border-width: 0; }
.vf i:nth-of-type(1) { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.vf i:nth-of-type(2) { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.vf i:nth-of-type(3) { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.vf i:nth-of-type(4) { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.vf .tag { position: absolute; top: 14px; left: 46px; font-family: var(--mono); font-size: 12px; color: var(--navy-muted); letter-spacing: .1em; }
.vf iframe, .yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
/* video thumbnail: the real player only loads after a click */
.yt { position: relative; overflow: hidden; }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yt:hover img { transform: scale(1.03); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--navy); box-shadow: 0 10px 30px -6px rgba(0,0,0,.7); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.yt:hover .play { transform: scale(1.1); }
.yt .play svg { width: 30px; height: 30px; margin-left: 4px; }
.vf figcaption { margin-top: 14px; font-size: 15px; color: var(--navy-muted); padding-inline: 20px; }
figure { margin: 0; }
.marquee { margin-top: 36px; border-block: 1px solid var(--line); overflow: hidden; padding-block: 10px; }
.marquee div { display: flex; width: max-content; animation: slide 120s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); padding-right: 28px; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 35%, transparent); white-space: nowrap; }
.marquee span:nth-child(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .tv-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-card { position: relative; overflow: hidden; background: var(--navy); color: var(--navy-ink); border: 1px solid var(--line); border-radius: 32px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.contact-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); pointer-events: none; }
.contact-card h1, .contact-card h2 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; }
.contact-card p { color: var(--navy-muted); margin: 14px 0 0; max-width: 42ch; }
.mail-box { position: relative; z-index: 1; display: grid; gap: 18px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px 14px 14px 18px; }
.mail-row a { font-weight: 700; word-break: break-all; flex: 1 1 200px; text-decoration: none; }
.mail-row a:hover { text-decoration: underline; }
.copy { font: 700 14px var(--body); cursor: pointer; border: 0; border-radius: 10px; padding: 10px 14px; background: var(--accent); color: var(--navy); transition: transform .2s; }
.copy:hover { transform: scale(1.05); }
.icons { display: flex; gap: 12px; }
.icons a { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--navy-ink); transition: transform .35s cubic-bezier(.3,1.8,.5,1), background .25s, color .25s; }
.icons a svg { width: 24px; height: 24px; }
.icons a:hover { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.icons a.wa:hover { background: #25d366; color: #fff; }
.icons a.fb:hover { background: #1877f2; color: #fff; }
.icons a.ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.icons a.tt:hover { background: #111; color: #fff; box-shadow: -3px -3px 0 #25f4ee, 3px 3px 0 #fe2c55; }
.icons a::after { content: attr(aria-label); position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 6px; font-size: 13px; font-weight: 700; background: var(--navy-ink); color: var(--navy); padding: 4px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; }
.icons a:hover::after { opacity: 1; translate: -50% 0; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- milestones: the gold timeline ---------- */
.timeline { --antique: #c8ab76; position: relative; max-width: 860px; margin: 0 auto; }
.rail, .rail-fill { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.rail { background: var(--line); }
.rail-fill { background: linear-gradient(var(--antique), #e3d3b0); transform-origin: top; transform: scaleY(0); }
.ms { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: start; margin-bottom: 36px; }
.ms:last-child { margin-bottom: 0; }
.ms .yr { height: 68px; display: flex; align-items: center; justify-content: flex-end; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 6vw, 56px); line-height: 1; color: var(--line); transition: color .5s; font-variant-numeric: tabular-nums; }
.ms .dot { justify-self: center; margin-top: 23px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); transition: all .4s cubic-bezier(.3,1.6,.5,1); position: relative; z-index: 1; }
.ms .box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .5s; transform: translateX(16px); opacity: .55; }
.ms .box h3 { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.ms .box h3:last-child { margin-bottom: 0; }
.ms .box p { margin: 0; color: var(--muted); font-size: 15px; }
.ms .box b { color: var(--antique); font-weight: 700; }
.ms:nth-child(even) .yr { order: 3; justify-content: flex-start; }
.ms:nth-child(even) .box { order: 1; transform: translateX(-16px); }
.ms:nth-child(even) .dot { order: 2; }
.ms.lit .yr { color: var(--antique); }
.ms.lit .dot { background: var(--antique); border-color: var(--antique); box-shadow: 0 0 0 7px color-mix(in srgb, var(--antique) 22%, transparent); }
.ms.lit .box { transform: none; opacity: 1; }
/* a box that opens to show the awards inside it */
.timeline summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: 0 6px 5px 0; border-right: 2px solid var(--antique); border-bottom: 2px solid var(--antique); transform: rotate(45deg); transition: transform .3s; }
.timeline details[open] > summary::after { transform: translateY(5px) rotate(-135deg); }
.ms-sub { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid color-mix(in srgb, var(--antique) 45%, transparent); display: grid; gap: 7px; font-size: 15px; }
.ms .box .ms-note { margin-top: 12px; font-size: 14px; }
/* the rest of a year, behind "Show more": quieter than the highlight */
.ms-more { margin-top: 14px; border-top: 1px solid var(--line); }
.ms-more > summary { display: inline-flex; padding-top: 12px; font-weight: 700; font-size: 15px; color: var(--antique); }
.ms-more .when-open, .ms-more[open] > summary .when-closed { display: none; }
.ms-more[open] > summary .when-open { display: inline; }
.ms-list { list-style: none; margin: 10px 0 0; padding: 0; color: var(--muted); font-size: 15px; }
.ms-list > li { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.ms-list > li:last-child { padding-bottom: 0; }
.ms .box .ms-list b { color: var(--ink); }
.ms .box .ms-list .ms-sub b { color: var(--antique); }
.ms-list .lvl { font-size: 14px; white-space: nowrap; }
.ms-note a { color: var(--antique); font-weight: 700; }
@media (max-width: 700px) {
  .rail, .rail-fill { left: 11px; }
  .ms, .ms:nth-child(even) { grid-template-columns: 22px 1fr; column-gap: 18px; row-gap: 6px; }
  .ms .dot, .ms:nth-child(even) .dot { order: 0; grid-row: 1; margin-top: 9px; }
  .ms .yr, .ms:nth-child(even) .yr { order: 0; justify-content: flex-start; grid-column: 2; grid-row: 1; font-size: 34px; height: 40px; }
  .ms .box, .ms:nth-child(even) .box { order: 0; grid-column: 2; transform: translateY(12px); }
  .ms.lit .box, .ms.lit:nth-child(even) .box { transform: none; }
}

/* ---------- english lessons ---------- */
.english { position: relative; overflow: hidden; background: var(--bg-alt); }
.letters { position: absolute; inset: 0; pointer-events: none; }
.letters span { position: absolute; font-family: "Noto Serif", var(--display); font-style: italic; font-weight: 600; white-space: nowrap; color: var(--accent); opacity: .08; animation: drift var(--t, 14s) ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(var(--x, 30px), var(--y, -40px)) rotate(var(--r, 12deg)); } }
.english .cards { grid-template-columns: repeat(3, 1fr); position: relative; }
.english .card h3 { font-size: 23px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@media (max-width: 860px) { .english .cards { grid-template-columns: 1fr; } }

/* ---------- one page: section jumps, side dots, contact button ---------- */
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
.links a.active { color: var(--h-ink); }
.links a.active::after { transform: scaleX(1); }
.fab-contact { --sky: #86bdf3; position: fixed; z-index: 40; right: 88px; bottom: 20px; height: 48px; margin-bottom: 4px; border-radius: 999px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--body); text-decoration: none; background: #0f1422; color: #f5f7fb; box-shadow: 0 0 0 1px rgba(134,189,243,.45), 0 12px 30px -8px rgba(134,189,243,.55); transform: translateY(100px); transition: transform .45s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.fab-contact.show { transform: none; }
.fab-contact.hide { transform: translateY(100px); }
.fab-contact:hover { box-shadow: 0 0 0 1px var(--sky), 0 14px 36px -6px rgba(134,189,243,.8); }
.fab-contact svg { width: 20px; height: 20px; color: var(--sky); transition: transform .3s; }
.fab-contact:hover svg { transform: rotate(-12deg) scale(1.1); }
@media (max-width: 600px) { .fab-contact { width: 48px; padding: 0; justify-content: center; } .fab-contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.dots { position: fixed; right: 18px; top: 50%; z-index: 40; display: none; flex-direction: column; gap: 12px; padding: 14px 10px; border-radius: 999px; background: rgba(15,20,34,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(134,189,243,.25); translate: 0 -50%; opacity: 0; transition: opacity .4s; list-style: none; margin: 0; }
.dots.show { opacity: 1; }
.dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(245,247,251,.35); transition: height .35s cubic-bezier(.3,1.5,.5,1), background .3s; }
.dots a:hover { background: #f5f7fb; }
.dots a.active { height: 26px; background: #86bdf3; }
.dots a::after { content: attr(data-label); position: absolute; right: calc(100% + 18px); top: 50%; translate: 6px -50%; white-space: nowrap; font: 700 13px var(--body); background: #0f1422; color: #f5f7fb; padding: 5px 10px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(134,189,243,.3); opacity: 0; pointer-events: none; transition: .25s; }
.dots a:hover::after, .dots a:focus-visible::after { opacity: 1; translate: 0 -50%; }
@media (min-width: 1100px) and (pointer: fine) { .dots { display: flex; } }

/* ---------- about: portrait + three linked facts ---------- */
.about-grid { align-items: center; }
.portrait { justify-self: center; width: min(100%, 360px); }
.portrait-stage { position: relative; aspect-ratio: 1 / 1.2; isolation: isolate; }
/* the sky-blue arch behind the photo */
.portrait-stage::before { content: ""; position: absolute; inset: 16% 0 0 0; border-radius: 999px 999px 28px 28px; background: linear-gradient(165deg, #d9e8fa 0%, #9cc6f1 100%); box-shadow: var(--shadow); }
/* the ring sits behind the arch and ends above its bottom edge, so nothing pokes out underneath */
.portrait-ring { position: absolute; z-index: -1; left: -6%; right: -6%; top: 5%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-photo { position: absolute; inset: 0; clip-path: inset(-20% 0 0 0 round 0 0 28px 28px); }
.portrait-photo img { position: absolute; left: 50%; bottom: -5%; height: 105%; width: auto; max-width: none; translate: -50% 0; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-8px); } }
@keyframes bob { to { transform: translateY(-10px); } }
.facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin-top: clamp(8px, 2vw, 24px); }
a.fact { position: relative; display: block; text-decoration: none; color: var(--ink); }
.fact .big span { display: inline; color: inherit; font-size: inherit; font-variant-numeric: lining-nums tabular-nums; }
/* rolling numbers: each digit is a strip of digits that spins and slows to a stop */
.fact .big .roll-d { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.fact .big .roll-strip { display: block; transition: transform var(--dur, 3.2s) cubic-bezier(.08, .62, .1, 1); }
.fact .big .roll-strip span { display: block; height: 1.1em; line-height: 1.1em; }
/* no 3D push on the titles: it slid them sideways, out of line with the text below */
.fact .big { padding-right: 22px; transform: none; line-height: 1.1; display: flex; align-items: flex-end; gap: .28em; }
.fact .big .roll, .fact .big .roll > span { display: flex; }
.fact i { position: absolute; right: 18px; top: 16px; font-style: normal; font-weight: 700; color: var(--accent); transition: transform .3s; }
a.fact:hover i { transform: translateX(5px); }
a.fact:hover { border-color: var(--accent); }

@media (max-width: 860px) { .portrait { width: min(84%, 300px); margin-top: 12px; } }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ---------- ON AIR: the one neon word in the rolling strip ---------- */
.marquee span.on-air { color: #f0323a; -webkit-text-stroke: 0; text-shadow: 0 0 8px rgba(240,50,58,.55), 0 0 24px rgba(240,50,58,.4); animation: onair 2.8s ease-in-out infinite; }
@keyframes onair { 0%, 100% { opacity: 1; } 50% { opacity: .55; text-shadow: 0 0 2px rgba(240,50,58,.3); } }

/* ---------- floating "Hide list" button: only while a Show more list is open and on screen ---------- */
.ms-hide { position: fixed; z-index: 41; left: 50%; bottom: 26px; translate: -50% 110px; display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--body); border: 0; cursor: pointer; border-radius: 999px; padding: 10px 16px 10px 12px; background: #c8ab76; color: #0f1422; box-shadow: 0 0 0 1px rgba(200,171,118,.5), 0 12px 28px -8px rgba(200,171,118,.6); transition: translate .45s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.ms-hide.show { translate: -50% 0; }
.ms-hide:hover { box-shadow: 0 0 0 1px #c8ab76, 0 14px 34px -6px rgba(200,171,118,.85); }
.ms-hide svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .ms-hide { left: 16px; translate: 0 110px; } .ms-hide.show { translate: 0 0; } }

/* ---------- footer ---------- */
footer { padding-block: 32px 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer nav { display: flex; gap: 18px; }

/* ---------- floating helpers ---------- */
.to-top { --sky: #86bdf3; position: fixed; z-index: 40; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: #0f1422; color: var(--sky); box-shadow: 0 0 0 1px rgba(134,189,243,.45), 0 12px 30px -8px rgba(134,189,243,.55); transform: translateY(100px); transition: transform .45s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.to-top.show { transform: none; }
.to-top:hover { box-shadow: 0 0 0 1px var(--sky), 0 14px 36px -6px rgba(134,189,243,.8); }
.to-top svg { position: absolute; inset: 0; width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .arr { width: 22px; height: 22px; position: static; transform: none; transition: transform .25s; }
.to-top:hover .arr { transform: translateY(-3px); }
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 70; opacity: 0; transition: width .25s, height .25s, margin .25s, background .25s, opacity .3s; }
.cursor.on { opacity: .7; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 120px; z-index: 80; background: var(--navy); color: var(--ink); border: 1px solid #86bdf3; font-weight: 700; padding: 12px 20px; border-radius: 12px; transition: translate .4s cubic-bezier(.3,1.5,.5,1); }
.toast.show { translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

/* what teachers say (index.html #says, filled by js/site.js) */
.says { margin-top: 44px; }
.says[hidden] { display: none; }
.says-title { font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.say-stars { color: var(--accent); letter-spacing: 2px; margin: 0 0 10px; }
.say-text { margin: 0 0 14px; }
.say-who { margin: 0; font-weight: 600; }

/* Free Resources with two story cards; TVPSS: the video carousel and the Paper Camera story */
.english .cards.two { grid-template-columns: repeat(2, 1fr); }
.story-card { display: flex; gap: 20px; align-items: flex-start; margin-top: 28px; }
.story-card .ic { flex: none; margin-bottom: 0; }
.story-card h3 { font-size: 24px; }
@media (max-width: 860px) { .english .cards.two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .story-card { flex-direction: column; } }
/* who a card is for */
.card .for { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
/* TVPSS carousel: the slides sit side by side and snap, so a phone can swipe them */
.reel .count { position: absolute; top: 14px; right: 46px; font-family: var(--mono); font-size: 12px; color: var(--navy-muted); letter-spacing: .1em; }
.reel { min-width: 0; }
.reel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; }
.reel-track::-webkit-scrollbar { display: none; }
.reel .slide { flex: 0 0 100%; scroll-snap-align: start; }
.reel .cap { margin: 14px 0 0; font-size: 15px; color: var(--navy-muted); padding-inline: 20px; min-height: 2.6em; }
.reel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.reel-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.08); color: var(--navy-ink); border: 1px solid rgba(255,255,255,.28); transition: background .2s, border-color .2s; }
.reel-btn:hover { background: rgba(255,255,255,.16); border-color: var(--navy-ink); }
.reel-btn svg { width: 20px; height: 20px; }
.reel-dots { display: flex; gap: 4px; }
.reel-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.reel-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); transition: width .25s, background .25s; }
.reel-dots button[aria-current="true"]::before { width: 22px; border-radius: 5px; background: var(--accent); }
/* on a phone the top of every page is centred; long story text below stays left-aligned for easy reading */
@media (max-width: 600px) {
  .hero-inner { text-align: center; margin-inline: auto; }
  .hero .question { padding-left: 0; border-left: 0; margin-inline: auto; }
  .hero .since { padding-left: 0; }
  .hero:not(.page) .eyebrow::before { display: none; }
  .hero .actions { justify-content: center; }
  .hero.page .lede { margin-inline: auto; }
}

/* ---------- featured (newest) resource card on the home page ---------- */
.english .card.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: center; margin-bottom: 18px; border: 2px solid #c8ab76; box-shadow: 0 0 0 6px rgba(200,171,118,.12), var(--shadow); }
.feature h3 { font-size: clamp(26px, 3.2vw, 34px); }
.new-badge { position: absolute; top: 16px; right: 16px; z-index: 2; font: 500 12px var(--mono); letter-spacing: .16em; padding: 6px 12px; border-radius: 999px; background: #c8ab76; color: #0f1422; animation: newpulse 2.4s ease-in-out infinite; }
@keyframes newpulse { 50% { box-shadow: 0 0 0 7px rgba(200,171,118,.18); } }
.feature-sheets { position: relative; height: 210px; }
.feature-sheets img { position: absolute; top: 14px; width: 132px; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.feature-sheets img:nth-child(1) { left: 0; transform: rotate(-7deg); }
.feature-sheets img:nth-child(2) { left: 84px; top: 0; z-index: 1; }
.feature-sheets img:nth-child(3) { left: 168px; transform: rotate(7deg); }
.feature:hover .feature-sheets img:nth-child(1) { transform: rotate(-11deg) translateX(-8px); }
.feature:hover .feature-sheets img:nth-child(3) { transform: rotate(11deg) translateX(8px); }
@media (max-width: 860px) { .english .card.feature { grid-template-columns: 1fr; } .feature-sheets { height: 180px; width: 290px; max-width: 100%; justify-self: center; } .feature-sheets img { width: 112px; } .feature-sheets img:nth-child(2) { left: 88px; } .feature-sheets img:nth-child(3) { left: 176px; } }
@media (prefers-reduced-motion: reduce) { .new-badge { animation: none; } }
.feature .for { display: block; padding-right: 64px; }

/* ---------- hero: cartoon Mr Reyy waving (laptops and computers only) ---------- */
.hero-wave { display: none; }
@media (min-width: 1000px) {
  #hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 32px; }
  #hero::after { display: none; }
  .hero-wave { display: block; position: relative; isolation: isolate; width: 100%; max-width: 100%; aspect-ratio: 1; animation: hw-in .9s cubic-bezier(.2,.9,.3,1.2) .2s both; }
  /* the same sky-blue arch and dashed ring as the About photo; the waving hand pops out above it */
  .hero-wave::before { content: ""; position: absolute; z-index: -1; inset: 22% 9% 0 9%; border-radius: 999px 999px 28px 28px; background: linear-gradient(165deg, #d9e8fa 0%, #9cc6f1 100%); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
  .hero-wave::after { content: ""; position: absolute; z-index: -2; left: 5%; right: 5%; top: 6%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(134,189,243,.4); animation: spin 60s linear infinite; }
  .hero-wave img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hw-arm { position: absolute; inset: 0; transform-origin: 64% 45.6%; animation: hw-arm 5s ease-in-out 1.1s infinite; }
  .hw-hand { transform-origin: 81.2% 22.5%; animation: hw-hand 5s ease-in-out 1.1s infinite; }
}
/* waves for about two seconds, rests, then waves again */
@keyframes hw-arm { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(-4deg); } 20% { transform: rotate(3deg); } 30% { transform: rotate(-4deg); } 40% { transform: rotate(2deg); } }
@keyframes hw-hand { 0%, 50%, 100% { transform: rotate(0); } 8% { transform: rotate(-12deg); } 16% { transform: rotate(10deg); } 24% { transform: rotate(-12deg); } 32% { transform: rotate(10deg); } 42% { transform: rotate(-5deg); } }
@keyframes hw-in { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .hero-wave, .hw-arm, .hw-hand { animation: none !important; } }

/* ---------- About Me: photo on the left on laptops ---------- */
@media (min-width: 861px) {
  .about-grid.photo-left { grid-template-columns: 1fr 1.25fr; }
  .about-grid.photo-left .portrait { order: -1; }
}

/* ---------- small fanned previews at the top of resource cards ---------- */
.card-peek { position: relative; height: 150px; margin: -6px 0 18px; }
.card-peek img { position: absolute; top: 10px; width: 92px; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 12px 24px -12px rgba(0,0,0,.7); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.card-peek img:nth-child(1) { left: 0; transform: rotate(-6deg); }
.card-peek img:nth-child(2) { left: 70px; top: 0; z-index: 1; }
.card-peek img:nth-child(3) { left: 140px; transform: rotate(6deg); }
.card:hover .card-peek img:nth-child(1) { transform: rotate(-10deg) translateX(-6px); }
.card:hover .card-peek img:nth-child(3) { transform: rotate(10deg) translateX(6px); }

/* story pages: long titles run wider, in fewer lines */
.story-hero .hero-inner { max-width: 1000px; }
.hero.page.story-hero h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.02; }
