/* Kingjutsu library. Identity from the manifesto, Chapter X:
   obsidian, bone, steel, ink, paper; crimson marks one element per view
   (the primary action, the current lesson) and nothing else. */
:root {
  --obsidian: #0B0B0C;
  --ink: #16161A;
  --ink-2: #1E1E23;
  --line: #2A2A30;
  --steel: #6E7276;
  --steel-2: #9A9DA1;
  --bone: #EDE7DC;
  --paper: #F6F2EA;
  --crimson: #D91329;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "Source Code Pro", ui-monospace, Menlo, monospace;
  --voice: "Fraunces", Georgia, serif;
  --kanji: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--bone); color: var(--obsidian); padding: 8px 12px; }
.kanji { font-family: var(--kanji); font-weight: 400; }
.data, .eyebrow, .pill, .nav__tag { font-family: var(--data); font-weight: 500; letter-spacing: .04em; }
.eyebrow { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; color: var(--steel-2); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--bone); }
.small { font-size: 13px; color: var(--steel-2); }
.center { text-align: center; }

/* ---------- type ---------- */
.h1, .h2, .h3, .hero__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; margin: 0; }
.h1 { font-size: clamp(48px, 9vw, 112px); }
.h2 { font-size: clamp(28px, 4vw, 44px); }
.h3 { font-size: 24px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--steel-2); max-width: 62ch; margin: 18px 0 0; }
.voice { font-family: var(--voice); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; margin: 28px 0 0; max-width: 34ch; color: var(--bone); }
.voice--center { margin: 48px auto 0; text-align: center; max-width: 40ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.crest { width: 34px; height: 34px; color: var(--bone); flex: none; }
.nav__word { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--steel-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--bone); }
.nav__links a[aria-current] { color: var(--bone); border-bottom-color: var(--bone); }
.nav__tag { font-size: 11px; text-transform: uppercase; color: var(--steel-2); border: 1px solid var(--line); padding: 4px 8px; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 8px 16px; }
  .nav__tag { margin-left: auto; }
  .nav__links { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
}

/* ---------- buttons, pills, bars ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--bone); background: transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--bone); color: var(--obsidian); }
.btn--solid { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn--solid:hover { background: #b70f22; border-color: #b70f22; color: #fff; }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.pill { display: inline-block; font-size: 11px; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--steel-2); }
.pill--todo { border-style: dashed; }
.pill--live { color: var(--bone); border-color: var(--steel); }
.bar { display: block; height: 3px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--bone); }
.loading { color: var(--steel-2); font-family: var(--data); font-size: 13px; padding: 40px 0; }
.empty { border: 1px dashed var(--line); padding: 32px; max-width: 640px; }
.empty p { color: var(--steel-2); }

/* ---------- layout ---------- */
main { min-height: 60vh; }
.band, .pagehead { padding: clamp(48px, 7vw, 96px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.band:last-child { padding-bottom: clamp(48px, 7vw, 96px); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0 0 24px; }
.band__head .eyebrow { width: 100%; margin: 0; }
.band__head + .band__head, .row + .band__head, .grid + .band__head { margin-top: 56px; }
.band__lede { color: var(--steel-2); max-width: 60ch; margin: 6px 0 0; width: 100%; }
.more { margin-left: auto; font-size: 14px; color: var(--steel-2); }
.band--ink { max-width: none; background: var(--ink); padding-bottom: clamp(48px, 7vw, 96px); margin-top: clamp(48px, 7vw, 96px); }
.band--ink > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.pagehead--art { position: relative; max-width: none; padding-bottom: 72px;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  background: linear-gradient(90deg, var(--obsidian) 55%, rgba(11,11,12,.55) 80%, rgba(11,11,12,.1)), var(--art) right top / auto 100% no-repeat; }
.pagehead--art .voice { max-width: 30ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split__img { margin-top: 24px; max-width: 280px; filter: grayscale(.2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .pagehead--art { background: linear-gradient(0deg, var(--obsidian) 30%, rgba(11,11,12,.6)), var(--art) center top / cover no-repeat; } }
.prose { max-width: 68ch; font-size: 17px; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 26px; margin: 1.6em 0 .5em; }
.prose a { color: var(--bone); text-underline-offset: 3px; }
.prose strong { color: #fff; }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end;
  background: linear-gradient(0deg, var(--obsidian) 4%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.25)), linear-gradient(90deg, rgba(11,11,12,.85), transparent 70%), var(--art) center 30% / cover no-repeat; }
.hero__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 56px; }
.hero__title { font-size: clamp(72px, 15vw, 200px); line-height: .85; }
.hero__sub { font-family: var(--voice); font-style: italic; font-size: clamp(20px, 2.6vw, 30px); margin: 10px 0 0; }
.hero__strap { font-family: var(--data); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel-2); margin: 18px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: flex; gap: clamp(20px, 4vw, 48px); margin: 40px 0 0; }
.stats div { border-left: 1px solid var(--line); padding-left: 14px; }
.stats dt { font-family: var(--data); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-2); }
.stats dd { margin: 2px 0 0; font-family: var(--display); font-size: 40px; line-height: 1; }
.stats--inline { margin-top: 28px; }

/* ---------- gates ---------- */
.gates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gates--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gate {
  position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 18px;
  text-decoration: none; color: var(--ink); background: var(--paper) var(--art) center 35% / cover no-repeat;
  overflow: hidden; transition: transform .2s;
}
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(246,242,234,.97) 56%); }
.gate > * { position: relative; z-index: 1; }
.gate:hover { transform: translateY(-4px); }
.gate__num { font-family: var(--data); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.gate__kanji { font-family: var(--kanji); font-size: 54px; line-height: 1; margin-top: auto; }
.gate__name { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin-top: 6px; }
.gate__name em { font-style: normal; color: var(--steel); }
.gate__line { font-size: 14px; line-height: 1.4; margin-top: 4px; }
.gate__progress { display: grid; gap: 6px; margin-top: 12px; min-height: 22px; }
.gate__progress .bar { background: rgba(22,22,26,.15); }
.gate__progress .bar > span { background: var(--ink); }
.gate__progress .data { font-size: 11px; color: var(--steel); }
@media (max-width: 1080px) { .gates, .gates--six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gates, .gates--six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gate { min-height: 300px; } .gate__kanji { font-size: 40px; } }

/* ---------- course cards ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-color: var(--line) transparent; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .15s, transform .2s; min-width: 0; }
.card:hover { border-color: var(--steel); transform: translateY(-3px); }
.card__img { aspect-ratio: 16 / 9; background: var(--ink-2) center 30% / cover no-repeat; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.card__title { font-family: var(--display); text-transform: uppercase; font-size: 22px; line-height: 1.05; }
.card__sum { font-size: 14px; color: var(--steel-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__styles { font-size: 12px; line-height: 1.5; color: var(--bone); }
.card__styles .data, .watch__styles .data { font-size: 10px; text-transform: uppercase; color: var(--steel-2); margin-right: 4px; }
.watch__styles { margin: 10px 0 0; font-size: 14px; max-width: 72ch; }
.pill--style { color: var(--bone); border-color: var(--steel); text-transform: none; letter-spacing: 0; font-size: 12px; margin-right: 6px; }
.lessons__style { color: var(--bone); }
.card__meta { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--steel-2); }
.card--wide { flex-direction: row; max-width: 640px; }
.card--wide .card__img { width: 45%; aspect-ratio: auto; min-height: 150px; }
.card--wide .eyebrow { margin: 0; }

/* ---------- creed ---------- */
.creed { margin-top: clamp(48px, 7vw, 96px); padding: clamp(56px, 8vw, 120px) var(--gutter); text-align: center;
  background: linear-gradient(rgba(11,11,12,.86), rgba(11,11,12,.92)), var(--art) center / cover no-repeat; }
.creed__lines { margin: 32px auto 0; max-width: 760px; font-family: var(--voice); font-style: italic; font-size: clamp(19px, 2.4vw, 28px); line-height: 1.5; }
.creed__lines p { margin: 0 0 .5em; }
.creed__lines span { color: var(--steel-2); }
.creed__lines strong { font-weight: 400; color: #fff; }
.creed__lines p:last-child strong { color: var(--crimson); }

/* ---------- shelf & notes ---------- */
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.spine { display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 18px 16px; background: var(--bone); color: var(--obsidian); text-decoration: none; transition: transform .2s; }
.spine:hover { transform: translateY(-4px); }
.spine__series { font-family: var(--data); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.spine__title { font-family: var(--display); text-transform: uppercase; font-size: 26px; line-height: 1; }
.spine__sub { margin-top: auto; font-size: 13px; line-height: 1.35; color: #3a3a40; }
@media (max-width: 1080px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spine { min-height: 190px; } }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.notes--list { grid-template-columns: 1fr; max-width: 820px; }
.note { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.note:hover { border-color: var(--steel); }
.note__date { font-family: var(--data); font-size: 12px; color: var(--steel-2); }
.note__title { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 24px; line-height: 1.05; margin: 0; }
.note__ex { margin: 0; color: var(--steel-2); font-size: 15px; }
@media (max-width: 860px) { .notes { grid-template-columns: 1fr; } }
.post { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.post .h1 { font-size: clamp(40px, 7vw, 80px); }
.post .prose { margin-top: 36px; }

/* ---------- manifesto ---------- */
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.articles li { background: var(--obsidian); padding: 24px; }
.articles__n { font-family: var(--data); font-size: 12px; color: var(--steel-2); }
.articles h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 26px; line-height: 1.05; margin: 10px 0 12px; }
.articles h3 span { color: var(--steel-2); }
.articles p { margin: 0; color: var(--steel-2); font-size: 15px; }
@media (max-width: 960px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .articles { grid-template-columns: 1fr; } }
.heresies { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.heresies li { counter-increment: h; padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; }
.heresies li::before { content: counter(h, decimal-leading-zero); font-family: var(--data); font-size: 12px; color: var(--steel-2); padding-top: 4px; grid-row: span 2; }
.heresies h3 { margin: 0; font-size: 18px; font-weight: 600; }
.heresies p { margin: 4px 0 0; color: var(--steel-2); font-size: 15px; }
@media (max-width: 760px) { .heresies { grid-template-columns: 1fr; } }
.gatelist { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.gaterow { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px 0; background: var(--obsidian); }
.gaterow img { width: 200px; height: 250px; object-fit: cover; background: var(--paper); }
.gaterow__name { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; }
.gaterow dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 20px; margin: 0 0 20px; max-width: 760px; }
.gaterow dt { font-family: var(--data); font-size: 12px; text-transform: uppercase; color: var(--steel-2); padding-top: 3px; }
.gaterow dd { margin: 0; }
@media (max-width: 700px) { .gaterow { grid-template-columns: 1fr; } .gaterow img { width: 100%; height: 220px; } .gaterow dl { grid-template-columns: 1fr; gap: 2px; } .gaterow dd { margin-bottom: 10px; } }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ladder li { border-top: 3px solid var(--steel); padding: 14px 4px 0; }
.ladder li:nth-child(n+6) { border-top-color: var(--bone); }
.ladder__n { font-family: var(--data); font-size: 12px; color: var(--steel-2); }
.ladder h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 22px; margin: 6px 0; }
.ladder p { margin: 0; font-size: 14px; color: var(--steel-2); }
@media (max-width: 1000px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }
.tablewrap { overflow-x: auto; }
.ranks { width: 100%; border-collapse: collapse; font-size: 14px; }
.ranks th { text-align: left; font-family: var(--data); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--steel-2); font-weight: 500; padding: 0 12px 10px 0; border-bottom: 1px solid var(--steel); }
.ranks td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ranks td:first-child { font-weight: 600; white-space: nowrap; }
.sources th, .sources td { text-align: center; }
.sources th:first-child, .sources tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.sources thead a { text-decoration: none; }
.sources .nil { color: var(--line); }
.forms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.forms li { border: 1px solid var(--line); padding: 22px 18px; }
.forms .kanji { font-size: 44px; line-height: 1; }
.forms h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 26px; margin: 14px 0 6px; }
.forms p { margin: 0; color: var(--steel-2); font-size: 14px; }
.forms + .center { margin-top: 32px; }
@media (max-width: 960px) { .forms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .forms { grid-template-columns: 1fr; } }

/* ---------- books ---------- */
.books { display: grid; padding-top: 0; margin-top: clamp(32px, 5vw, 56px); }
.book + .book { border-top: 1px solid var(--line); }
.book { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); padding: 40px 0; background: var(--obsidian); scroll-margin-top: 90px; }
.book__cover { aspect-ratio: 2 / 3; background: var(--bone); color: var(--obsidian); padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.book__img { width: 100%; height: auto; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.shelfcover { display: block; transition: transform .2s; }
.shelfcover:hover { transform: translateY(-4px); }
.shelfcover img { width: 100%; height: auto; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.book__series { font-family: var(--data); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.book__title { font-family: var(--display); text-transform: uppercase; font-size: 34px; line-height: .95; }
.book__rule { width: 40px; height: 3px; background: var(--obsidian); }
.book__tag { margin-top: auto; font-family: var(--voice); font-style: italic; font-size: 15px; line-height: 1.3; }
.book__h { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 0; }
.book__sub { font-size: 18px; color: var(--steel-2); margin: 8px 0 0; }
.book__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.book__meta .pill { text-transform: none; letter-spacing: 0; font-size: 12px; }
.book__meta .data { font-size: 12px; color: var(--steel-2); }
.book__body > p { max-width: 68ch; }
.book__hl { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.book__hl li { font-size: 13px; border: 1px solid var(--line); padding: 4px 10px; color: var(--steel-2); }
.outline summary, .about summary { cursor: pointer; font-family: var(--data); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 0; border-top: 1px solid var(--line); list-style: none; }
.outline summary::before, .about summary::before { content: "+ "; }
.outline[open] summary::before, .about[open] summary::before { content: "\2212  "; }
.outline summary::-webkit-details-marker, .about summary::-webkit-details-marker { display: none; }
.outline__part { columns: 2; column-gap: 32px; margin: 8px 0 18px; }
.outline__part h3 { column-span: all; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.outline__part ol { margin: 0; padding-left: 0; list-style: none; }
.outline__part li { font-size: 14px; color: var(--steel-2); padding: 3px 0; break-inside: avoid; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book__cover, .book__img { max-width: 200px; } .outline__part { columns: 1; } }

/* ---------- watch ---------- */
.watchpage main { min-height: 0; }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; max-width: 1480px; margin: 0 auto; padding: 24px var(--gutter) 64px; align-items: start; }
.watch > .loading, .watch > .empty { grid-column: 1 / -1; }
.player { aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
/* Vertical videos: show them tall rather than shrunk inside a 16:9 box. */
.player--portrait { aspect-ratio: 9 / 16; max-height: calc(100vh - 140px); margin: 0 auto; }
.slate { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px;
  background-color: var(--ink); background-position: center 30%; background-size: cover; position: relative; }
.slate::before { content: ""; position: absolute; inset: 0; background: rgba(11,11,12,.8); }
.slate > div { position: relative; max-width: 460px; display: grid; gap: 14px; justify-items: center; }
.slate p { margin: 0; color: var(--steel-2); }
.slate strong { color: var(--bone); }
.slate--loading p { font-family: var(--data); font-size: 13px; }
.textlesson { height: 100%; overflow-y: auto; background: var(--ink); padding: clamp(20px, 4vw, 40px); max-width: none; }
.watch__info { padding-top: 22px; }
.watch__info .h2 { font-size: clamp(28px, 3.4vw, 40px); }
.watch__sec { color: var(--steel-2); margin: 8px 0 0; }
.watch__nav { display: flex; gap: 10px; margin: 20px 0 28px; }
.about { max-width: 72ch; }
.about .lede { font-size: 17px; margin-top: 8px; }
.about p { color: var(--steel-2); }
.about strong { color: var(--bone); }
.lessons { background: var(--ink); border: 1px solid var(--line); max-height: calc(100vh - 110px); overflow-y: auto; position: sticky; top: 86px; }
.lessons__head { padding: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; position: sticky; top: 0; background: var(--ink); z-index: 1; }
.lessons__head .data { margin: 0; font-size: 12px; color: var(--steel-2); }
.lessons__sec h3 { font-family: var(--data); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-2); font-weight: 500; margin: 0; padding: 16px 18px 6px; }
.lessons__sec ol { list-style: none; margin: 0; padding: 0; }
.lesson { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 10px 18px 10px 15px; cursor: pointer; font-size: 14px; }
.lesson:hover { background: var(--ink-2); }
.lesson__state { width: 10px; height: 10px; border: 1.5px solid var(--bone); transform: rotate(45deg); }
.lesson--todo { color: var(--steel-2); }
.lesson--todo .lesson__state { border-color: var(--steel); border-style: dashed; }
.lesson--done .lesson__state { background: var(--bone); }
.lesson--on { background: var(--ink-2); border-left-color: var(--crimson); color: #fff; }
.lesson__m { font-family: var(--data); font-size: 11px; color: var(--steel-2); white-space: nowrap; }
@media (max-width: 1000px) {
  .watch { grid-template-columns: 1fr; padding-top: 0; padding-left: 0; padding-right: 0; }
  .watch__info, .lessons { margin: 0 var(--gutter); }
  .lessons { position: static; max-height: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px var(--gutter); display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: start; max-width: var(--max); margin: 0 auto; }
.foot__mark { display: flex; gap: 14px; align-items: center; }
.foot__mark .crest { width: 56px; height: 56px; }
.foot__word { font-family: var(--display); text-transform: uppercase; font-size: 24px; margin: 0; }
.foot__line { font-family: var(--voice); font-style: italic; margin: 0; color: var(--steel-2); }
.foot__note { margin: 0; color: var(--steel-2); font-size: 14px; max-width: 60ch; }
.foot__meta { grid-column: 1 / -1; margin: 0; font-family: var(--data); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- phone feed: swipe between videos ---------- */
body.feedmode { overflow: hidden; }
body.feedmode .nav, body.feedmode .foot { display: none; }
.feed { position: fixed; inset: 0; z-index: 30; background: #000; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel video.is-wide { object-fit: contain; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, transparent 38%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%); pointer-events: none; }
.reel__info { position: absolute; left: 16px; right: 16px; bottom: calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: start; pointer-events: none; }
.reel__info .eyebrow { margin: 0; color: var(--bone); opacity: .8; }
.reel__t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.reel__err { margin: 0; font-size: 14px; color: var(--bone); }
.reel__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.reel__bar span { display: block; height: 100%; width: 0; background: var(--bone); }
.reel__paused { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s; pointer-events: none; }
.reel__paused::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.reel.is-paused .reel__paused { opacity: 1; }
.reel--end { display: grid; place-items: center; text-align: center; padding: 24px; background: var(--obsidian); }
.reel--end > div { display: grid; gap: 18px; justify-items: center; }
.feedbar { position: fixed; z-index: 31; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; pointer-events: none; }
.feedbar > * { pointer-events: auto; }
.feedbar__home .crest { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
.feedbar__btns { display: flex; gap: 6px; }
.feedbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; cursor: pointer; }
.feedbtn svg { width: 22px; height: 22px; }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__panel { width: 100%; max-height: 72vh; overflow-y: auto; background: var(--ink); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 12px 18px; position: sticky; top: 0; background: var(--ink); border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
