@font-face {
  font-family: SangBleuKingdom;
  src: url(SangBleuKingdom-MediumItalic.ttf);
}

:root {
  --yellow: #feee35;
  --yellow-soft: #fef268;
  --cream: #feface;
  --paper: #fffef5;
  --night: #111513;
  --ink-soft: #4e5550;
  --line: rgba(17, 21, 19, .16);
  --dark-line: rgba(255, 254, 245, .2);
  --display: "SangBleuKingdom", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; color: var(--night); background: var(--paper); font: 400 16px/1.55 var(--body); overflow-x: hidden; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.045em; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 254, 245, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-size: 1.2rem; line-height: 1; }
.topbar nav { display: flex; gap: 28px; color: var(--ink-soft); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { color: var(--night); }

#logo {
  width: 50px;
  display: block;
}

.hero { position: relative; overflow: hidden; padding: 82px 0 0; background: var(--cream); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(17,21,19,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(17,21,19,.08) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(120deg, black, transparent 68%); }
.hero .wrap, .hero .video-frame, .hero .jump-strip { position: relative; z-index: 1; }
.hero-kicker, .chapter-eyebrow { color: #6b7000; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 16px 0 0; font-size: clamp(4.7rem, 11vw, 9.3rem); line-height: .79; }
.hero h1 .accent, .on-paper .chapter-eyebrow { color: #727700; }
.hero-sub { max-width: 560px; margin: 34px 0 64px; color: var(--ink-soft); font-size: 1.08rem; }
.hero-reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s ease forwards; }
.hero-reveal.d1 { animation-delay: .05s; } .hero-reveal.d2 { animation-delay: .16s; } .hero-reveal.d3 { animation-delay: .28s; } .hero-reveal.d4 { animation-delay: .4s; } .hero-reveal.d5 { animation-delay: .52s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.video-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--night); border: 1px solid var(--night); overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--night); }
.video-placeholder { display: grid; justify-items: center; gap: 14px; color: var(--paper); text-align: center; }
.play-btn { display: grid; place-items: center; width: 78px; height: 78px; padding-left: 5px; border: 0; border-radius: 50%; background: var(--yellow); transition: transform .2s ease; }
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 25px; fill: var(--night); }
.video-placeholder .vp-title { font: 400 1.45rem var(--display); }
.video-placeholder .fine { color: rgba(255,254,245,.62); font-size: .78rem; }
.jump-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--dark-line); }
.jump-card { display: grid; gap: 10px; padding: 24px 22px 28px; color: var(--night); text-decoration: none; border-right: 1px solid var(--line); transition: background .2s, padding-top .2s; }
.jump-card:last-child { border-right: 0; }
.jump-card:hover { padding-top: 18px; background: var(--yellow); }
.jump-card .jn { font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.jump-card .jt { max-width: 13ch; font: 400 1.7rem/.95 var(--display); }
.jump-card .ja { justify-self: end; font-size: 1.5rem; }

.chapter-nav { position: sticky; top: 72px; z-index: 40; background: var(--night); color: var(--paper); border-bottom: 1px solid var(--dark-line); }
.chapter-nav .wrap { display: flex; overflow-x: auto; }
.chapter-nav button { padding: 17px 22px; background: none; border: 0; border-bottom: 3px solid transparent; color: rgba(255,254,245,.55); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.chapter-nav button .cn-num { margin-right: 8px; color: var(--yellow); }
.chapter-nav button.active, .chapter-nav button:hover { color: var(--paper); border-bottom-color: var(--yellow); }

.chapter { position: relative; overflow: hidden; padding: 112px 0; }
.chapter.on-paper { background: var(--paper); }
.chapter.on-board { color: var(--paper); background: var(--night); }
.chapter-num-bg { position: absolute; top: -.08em; right: 2%; color: var(--night); opacity: .055; font: 300 clamp(12rem, 28vw, 22rem)/1 var(--display); pointer-events: none; }
.on-board .chapter-num-bg { color: var(--paper); }
.chapter .wrap { position: relative; z-index: 1; }
.chapter-eyebrow { display: block; margin-bottom: 14px; }
.on-board .chapter-eyebrow, .on-board .problem-stat .pn, .on-board .correction-label, .on-board .plan-card .big { color: var(--yellow); }
.chapter h2 { max-width: 720px; margin: 0 0 34px; font-size: clamp(3.7rem, 8vw, 7rem); line-height: .82; }
.chapter-body { max-width: 760px; }
.problem-stat { display: inline-flex; align-items: baseline; gap: 18px; margin-bottom: 32px; padding: 18px 22px; border-top: 3px solid var(--night); background: var(--cream); }
.on-board .problem-stat { background: rgba(255,254,245,.06); border-color: var(--yellow); }
.problem-stat .pn { color: #727700; font: 500 2.4rem/.9 var(--display); white-space: nowrap; }
.problem-stat .pd { max-width: 34ch; color: var(--ink-soft); font-size: .9rem; }
.on-board .problem-stat .pd { color: rgba(255,254,245,.68); }
.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chapter-body ul { margin: 0; padding: 0; list-style: none; }
.chapter-body li { padding: 14px 0 14px 27px; border-top: 1px solid var(--line); }
.on-board .chapter-body li { border-color: var(--dark-line); }
.chapter-body li::before { content: ""; position: absolute; width: 8px; height: 8px; margin: 8px 0 0 -25px; border-radius: 50%; background: var(--yellow); }
.strike-btn { width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.strike-btn:hover { color: #727700; }
.on-board .strike-btn:hover { color: var(--yellow); }
.strike-btn.struck { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; }
.on-board .strike-btn.struck { color: rgba(255,254,245,.55); }
.strike-hint { margin: 13px 0 28px; color: var(--ink-soft); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.on-board .strike-hint { color: rgba(255,254,245,.55); }
.bar-compare { max-width: 700px; margin: 30px 0; padding: 24px; border: 1px solid var(--line); background: var(--cream); }
.on-board .bar-compare { background: rgba(255,254,245,.04); border-color: var(--dark-line); }
.bc-title { margin-bottom: 18px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bar-row { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 14px; margin: 13px 0; }
.bar-row .bc-label { color: var(--ink-soft); font-size: .86rem; }
.on-board .bar-row .bc-label, .on-board .bc-note { color: rgba(255,254,245,.65); }
.bar-track { height: 14px; background: rgba(17,21,19,.14); }
.on-board .bar-track { background: rgba(255,254,245,.18); }
.bar-fill { height: 100%; width: 0; transition: width 1s ease; }
.bar-fill.no { background: var(--night); }.bar-fill.fi { background: var(--yellow); }.bar-compare.in .bar-fill.no { width: 100%; }.bar-compare.in .bar-fill.fi { width: 94%; }
.bc-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .76rem; }
.correction { max-width: 760px; margin: 32px 0; padding: 22px 24px; border-left: 4px solid #727700; background: var(--cream); }
.on-board .correction { border-color: var(--yellow); background: rgba(255,254,245,.07); }
.correction-label { display: block; margin-bottom: 7px; color: #727700; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.correction-text { font: 400 1.35rem/1.25 var(--display); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan-card { padding: 25px; border: 1px solid var(--line); background: var(--paper); transition: transform .2s, border-color .2s; }
.on-board .plan-card { color: var(--paper); background: rgba(255,254,245,.06); border-color: var(--dark-line); }
.plan-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.plan-card .big { color: #727700; font: 400 2.25rem/.94 var(--display); }
.plan-card .what { margin-top: 9px; color: var(--ink-soft); font-size: .9rem; }.on-board .plan-card .what { color: rgba(255,254,245,.65); }
.plan-more-btn { margin-top: 18px; padding: 0; background: none; border: 0; color: #727700; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }.on-board .plan-more-btn { color: var(--yellow); }
.plan-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }.plan-card.open .plan-more { grid-template-rows: 1fr; }.plan-more-inner { overflow: hidden; }.plan-more p { margin: 14px 0 0; color: var(--ink-soft); font-size: .85rem; }.on-board .plan-more p { color: rgba(255,254,245,.65); }
.stamp { display: inline-block; margin: 0 0 30px; padding: 8px 16px; color: #727700; border: 2px solid #727700; font: 500 1.5rem var(--display); transform: rotate(-4deg) scale(.9); opacity: 0; transition: opacity .3s, transform .35s; }.stamp.in { opacity: 1; transform: rotate(-4deg) scale(1); }

footer { padding: 96px 0 52px; background: var(--yellow); }.on-board + footer { background: var(--yellow); }
footer h2 { max-width: 700px; margin: 0 0 24px; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .82; }
footer p { max-width: 560px; color: #555900; font-size: 1.05rem; }
.cta-btn { display: inline-flex; margin-top: 12px; padding: 15px 22px; color: var(--paper); background: var(--night); font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: transform .2s, box-shadow .2s; }.cta-btn:hover { transform: translateY(-3px); box-shadow: -7px 7px 0 rgba(17,21,19,.25); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-fine { margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(17,21,19,.22); color: #555900; font-size: .72rem; }
@media (max-width: 720px) { .wrap { width: min(100% - 32px, 1120px); }.topbar nav { display: none; }.hero { padding-top: 60px; }.hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }.hero-sub { margin-bottom: 42px; }.video-frame { aspect-ratio: 4 / 3; }.jump-strip { grid-template-columns: 1fr; margin-top: 42px; }.jump-card { grid-template-columns: 42px 1fr 30px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }.jump-card .jt { max-width: none; }.chapter-nav { top: 64px; }.chapter-nav button { padding: 15px 13px; }.chapter { padding: 76px 0; }.chapter h2 { font-size: clamp(2.7rem, 12vw, 4.2rem); }.stat-pair { grid-template-columns: 1fr; }.problem-stat { align-items: flex-start; flex-direction: column; gap: 8px; }.bar-row { grid-template-columns: 1fr; gap: 5px; }.chapter-num-bg { right: -8%; font-size: 12rem; } footer h2 { font-size: clamp(2.8rem, 13vw, 4.5rem); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
