/* Raymond Woodward — Teaching Library
   Archivo throughout: condensed, heavy uppercase display type; ink & paper; one yellow accent.
   Motion: line-by-line reveals, yellow wipes on page headers, marquee, hover fills. */

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --mist: #eceff1;
  --mid: #6b6d70;
  --line: #d3d7da;
  --acc: #ffc72c;
  --dark: #0b0b0b;
  --dark-2: #161616;
  --dark-3: #222;
  --dark-line: #2a2a2a;
  --on-dark: #d4d4d4;
  --on-dark-mid: #9a9a9a;
  --hot: #b8860b;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav: 64px;
}
html.dark {
  --ink: #f2f2f2;
  --paper: #0b0b0b;
  --mist: #161718;
  --mid: #9a9c9e;
  --line: #2b2d2f;
  --hot: #ffc72c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
body { font-family: var(--f); background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1.62; overflow-x: hidden; transition: background .4s, color .4s; }
body.locked { overflow: hidden; }
::selection { background: var(--acc); color: #0b0b0b; }
a { color: inherit; }
b, strong { font-weight: 800; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.disp { font-stretch: 75%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .88; }
.mono { font-stretch: 100%; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.ol { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero .ol, .sec.ink .ol, footer .ol, .opener .ol, #drawer .ol, #menu .ol { -webkit-text-stroke-color: #fff; }
.ac { color: var(--acc); }
.muted { color: var(--mid); }

.grain { position: fixed; inset: -50%; z-index: 9998; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,1%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ nav */
#prog { position: fixed; top: 0; left: 0; height: 4px; background: var(--acc); z-index: 900; width: 0; }
nav.top { position: sticky; top: 0; z-index: 500; background: var(--paper); border-bottom: 1px solid var(--line); transition: transform .45s var(--ease), background .4s; }
nav.top.hide { transform: translateY(-100%); }
nav.top .in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav); padding: 0 var(--pad); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo i { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--acc); font-style: normal; font-stretch: 75%; font-weight: 900; font-size: 15px; letter-spacing: .02em; }
.logo b { font-stretch: 75%; font-weight: 900; font-size: 19px; line-height: .95; text-transform: uppercase; letter-spacing: -.005em; }
.logo b small { display: block; font-size: 10.5px; letter-spacing: .16em; font-stretch: 100%; color: var(--mid); font-weight: 800; }
.nlinks { display: flex; gap: 28px; }
.nlinks a { text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nlinks a:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nlinks a:hover:after, .nlinks a.act:after { transform: scaleX(1); transform-origin: left; }
.nright { display: flex; gap: 4px; align-items: center; }
.ib { width: 42px; height: 42px; display: grid; place-items: center; transition: background .25s; }
.ib:hover { background: var(--mist); }
.ib svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 2; }
.askbtn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 12px; background: var(--acc); color: #0b0b0b; font-weight: 900; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.askbtn .dot { width: 8px; height: 8px; border-radius: 50%; background: #0b0b0b; }
#menuBtn { display: none; }
@media (max-width: 980px) { .nlinks { display: none; } #menuBtn { display: grid; } .askbtn .dot { display: none; } }
@media (max-width: 600px) { .logo b small { display: none; } }

#menu { position: fixed; inset: 0; z-index: 800; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 90px var(--pad) 40px; clip-path: circle(0% at calc(100% - 44px) 32px); transition: clip-path .8s var(--ease); overflow: auto; }
#menu.open { clip-path: circle(150% at calc(100% - 44px) 32px); }
#menu nav { display: flex; flex-direction: column; gap: 6px; }
#menu nav a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 11vw, 96px); line-height: .95; overflow: hidden; }
#menu nav a span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease), color .2s; }
#menu.open nav a span { transform: none; }
#menu nav a small { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--acc); font-stretch: 100%; min-width: 26px; }
#menu nav a:hover span { color: var(--acc); }
#menu .close { position: absolute; top: 12px; right: var(--pad); width: 52px; height: 52px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; }
#menu .close svg { stroke: #0b0b0b; width: 22px; height: 22px; stroke-width: 2.4; fill: none; }
#menu p { color: var(--on-dark-mid); font-size: 14px; margin-top: 30px; }

/* -------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; height: 52px; padding: 0 20px 0 22px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 13.5px; outline: 1px solid var(--ink); outline-offset: 3px; transition: transform .2s; white-space: nowrap; }
.btn svg { width: 24px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(6px); }
.btn:active { transform: translate(2px, 2px); }
.btn.w { background: #fff; color: #0b0b0b; outline-color: #fff; }
.btn.acc { background: var(--acc); color: #0b0b0b; outline-color: var(--acc); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { height: 42px; font-size: 12px; padding: 0 14px 0 16px; gap: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.tag { display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 199, 44, .7); } 100% { box-shadow: 0 0 0 14px rgba(255, 199, 44, 0); } }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .2s; background: var(--paper); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip em { font-style: normal; color: var(--mid); font-weight: 700; }
.chip.on em { color: var(--acc); }
.badge { display: inline-block; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; }
.badge.acc { background: var(--acc); color: #0b0b0b; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; background: #0b0b0b; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 35%; transform: scale(1.05); transition: transform 2.4s var(--ease), filter 1s; }
body.ready .hero .bg img { transform: none; }
.hero .bg.alt img { object-position: 85% 22%; filter: grayscale(1) contrast(1.08); }
.hero .bg:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0b 0%, rgba(11, 11, 11, .94) 34%, rgba(11, 11, 11, .58) 58%, rgba(11, 11, 11, .16) 82%, rgba(11, 11, 11, 0) 100%), linear-gradient(0deg, rgba(11, 11, 11, .9) 0%, rgba(11, 11, 11, 0) 30%); }
.hero.chatting .bg img { filter: grayscale(.7) brightness(.5); }
.hero .grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 60px); padding: clamp(28px, 5vw, 64px) var(--pad) clamp(32px, 5vw, 60px); min-height: calc(100svh - var(--nav)); }
.hero .left { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-width: 0; }
.hero .toprow { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #cfcfcf; }
.hero h1 { font-size: clamp(58px, 10.4vw, 178px); line-height: .82; transition: font-size .8s var(--ease); }
.hero h1 .ln { display: block; overflow: hidden; padding-top: .04em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(110%) skewY(7deg); transition: transform 1.2s var(--ease); }
body.ready .hero h1 .ln > span { transform: none; }
.hero h1 .ln:nth-child(2) > span { transition-delay: .07s; }
.hero h1 .ln:nth-child(3) > span { transition-delay: .14s; }
.hero .lede { max-width: 620px; color: #cfcfcf; font-size: 17px; }
.hero .lede b { color: #fff; }
.hero.chatting h1 { font-size: clamp(40px, 5.2vw, 84px); }
.hero.chatting .lede { display: none; }
.portrait { position: relative; align-self: end; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.portrait .cap b { display: block; font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: .95; }
.portrait .cap span { display: block; color: #d7d7d7; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.portrait .mark { width: 54px; height: 54px; border-bottom: 3px solid var(--acc); border-right: 3px solid var(--acc); }
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; min-height: 0; padding-top: 0; }
  .hero .bg { position: relative; height: 56vw; max-height: 420px; }
  .hero .bg img { object-position: 78% 30%; }
  .hero .bg:after { background: linear-gradient(0deg, #0b0b0b 0%, rgba(11, 11, 11, 0) 55%); }
  .hero.chatting .bg { display: none; }
  .portrait { display: none; }
}

/* ----------------------------------------------------------------- chat */
.chat { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chat .thread { display: none; flex-direction: column; gap: 22px; max-height: min(62vh, 720px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.chat.active .thread { display: flex; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.msg .who { width: 34px; height: 34px; display: grid; place-items: center; font-size: 12px; font-weight: 900; font-stretch: 75%; letter-spacing: .04em; }
.msg.user .who { border: 1.5px solid #666; color: #bbb; }
.msg.bot .who { background: var(--acc); color: #0b0b0b; }
.msg .body { min-width: 0; font-size: 16.5px; line-height: 1.62; }
.msg.user .body { color: #fff; font-weight: 700; padding-top: 5px; }
.msg.bot .body { color: #e6e6e6; }
.msg .body p + p, .msg .body ul, .msg .body ol, .msg .body blockquote { margin-top: 12px; }
.msg .body ul, .msg .body ol { padding-left: 22px; }
.msg .body li + li { margin-top: 6px; }
.msg .body li::marker { color: var(--acc); }
.msg .body strong { color: #fff; }
.msg .body em { font-style: normal; color: #fff; }
.msg .body h4 { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 20px; margin-top: 16px; color: #fff; }
.msg .body blockquote { border-left: 3px solid var(--acc); padding: 2px 0 2px 14px; color: #fff; }
.cite { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; margin: 0 1px; vertical-align: 2px; background: var(--acc); color: #0b0b0b; font-size: 11px; font-weight: 900; text-decoration: none; font-style: normal; line-height: 1; }
.cite:hover { background: #fff; }
.caret { display: inline-block; width: 9px; height: 1.05em; background: var(--acc); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; gap: 6px; align-items: center; color: #9a9a9a; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.thinking i { width: 6px; height: 6px; background: var(--acc); animation: bob 1s var(--ease) infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 50% { transform: translateY(-5px); opacity: .5; } }
.srcs { margin-top: 16px; border-top: 1px solid #2b2b2b; padding-top: 12px; display: grid; gap: 8px; }
.srcs > span { color: #8a8a8a; }
.src { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-decoration: none; padding: 6px 8px 6px 0; transition: background .2s, padding .2s; }
.src:hover { background: #161616; padding-left: 8px; }
.src .n { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #555; font-size: 11px; font-weight: 900; color: #ddd; }
.src b { display: block; font-size: 14px; color: #fff; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src small { font-size: 12px; color: #8f8f8f; }
.src .yt { width: 80px; aspect-ratio: 16 / 9; background: #222 center / cover; position: relative; }
.src .yt:after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.msg .err { color: #ffd27a; font-weight: 700; }

.askbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: #fff; color: #0b0b0b; outline: 1px solid #fff; outline-offset: 4px; }
.askbar textarea { border: 0; resize: none; background: transparent; padding: 18px 20px; font-size: 18px; font-weight: 600; line-height: 1.35; max-height: 180px; color: #0b0b0b; outline: none; }
.askbar textarea::placeholder { color: #8a8a8a; }
.askbar button { display: inline-flex; align-items: center; gap: 12px; padding: 0 22px; background: var(--acc); color: #0b0b0b; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.askbar button:disabled { opacity: .5; cursor: default; }
.askbar button svg { width: 22px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { border: 1px solid #3a3a3a; color: #ddd; padding: 8px 12px; font-size: 13.5px; font-weight: 700; text-align: left; line-height: 1.3; transition: all .2s; }
.suggest button:hover { border-color: var(--acc); color: #fff; background: #151515; }
.chat.active .suggest { display: none; }
.chat .fine { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8a8a8a; font-size: 12.5px; line-height: 1.45; }
.chat .fine button { color: #bbb; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.chat .context { display: none; align-items: center; gap: 10px; color: #cfcfcf; font-size: 13px; flex-wrap: wrap; }
.chat .context.on { display: flex; }
.chat .context b { color: #fff; }
.chat .context button { color: #999; text-decoration: underline; font-size: 12px; }

#drawer { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
#drawer .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .4s; }
#drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #0b0b0b; color: #fff; padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; transform: translateX(110%); transition: transform .6s var(--ease); border-left: 1px solid #222; }
#drawer.open { pointer-events: auto; }
#drawer.open .scrim { opacity: 1; }
#drawer.open .panel { transform: none; }
#drawer .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#drawer .head h2 { font-size: 34px; }
#drawer .chat { flex: 1; min-height: 0; justify-content: flex-end; }
#drawer .chat .thread { max-height: none; flex: 1; }
#drawer .x { width: 44px; height: 44px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; flex: none; }
#drawer .x svg { width: 20px; height: 20px; stroke: #0b0b0b; stroke-width: 2.4; fill: none; }
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 600; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 8px; background: #0b0b0b; color: #fff; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); outline: 1px solid var(--acc); outline-offset: 3px; transition: transform .3s var(--ease); }
.fab:hover { transform: translateY(-3px); }
.fab img { width: 40px; height: 40px; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); }
.fab.hidden { transform: translateY(160%); }
@media (max-width: 600px) { .fab { right: 14px; bottom: 14px; height: 50px; font-size: 12px; padding-right: 14px; } .fab img { width: 34px; height: 34px; } }

/* -------------------------------------------------------------- marquee */
.mq { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink); background: var(--paper); position: relative; }
.mq.blk { background: var(--acc); color: #0b0b0b; border-color: #0b0b0b; }
.mq .tr { display: inline-flex; animation: mq 60s linear infinite; will-change: transform; }
.mq .tr span { font-size: clamp(34px, 5.4vw, 76px); padding: 10px 0; display: inline-flex; align-items: center; gap: .4em; margin-right: .4em; }
.mq .tr span em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.mq .tr span i { display: inline-block; width: .36em; height: .36em; background: currentColor; border-radius: 50%; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ verse band */
.verse { background: var(--paper); padding: clamp(50px, 8vw, 110px) var(--pad); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; border-bottom: 1px solid var(--line); }
.verse .q { font-stretch: 75%; font-size: clamp(100px, 13vw, 200px); line-height: .7; color: var(--acc); font-weight: 900; }
.verse blockquote { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 72px); line-height: .98; max-width: 1300px; }
.verse cite { display: block; margin-top: 18px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.verse cite:before { content: ""; display: inline-block; width: 30px; height: 3px; background: var(--acc); vertical-align: middle; margin-right: 12px; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 30px var(--pad) 36px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.stats div:last-child { border: 0; }
.stats div:before { content: ""; position: absolute; inset: 0; background: var(--acc); transform: translateY(101%); transition: transform .6s var(--ease); z-index: 0; }
.stats div:hover:before { transform: none; }
.stats div > * { position: relative; z-index: 1; }
.stats b { display: block; font-size: clamp(52px, 7.4vw, 118px); }
.stats span { font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.stats div:hover span, .stats div:hover b { color: #0b0b0b; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div { border-bottom: 1px solid var(--line); } }

/* ------------------------------------------------------------- sections */
.sec { padding: clamp(60px, 9vw, 130px) 0; }
.sec.mist { background: var(--mist); }
.sec.ink { background: #0b0b0b; color: #fff; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 var(--pad) 28px; flex-wrap: wrap; }
.sh h2 { font-size: clamp(46px, 7.6vw, 124px); }
.sh p { max-width: 460px; color: var(--mid); font-size: 16px; }
.sec.ink .sh p { color: #a9a9a9; }
.wrap { padding: 0 var(--pad); }

.track { display: flex; gap: 18px; padding: 4px var(--pad) 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.track > * { scroll-snap-align: start; }
.card { flex: 0 0 clamp(270px, 28vw, 400px); background: var(--paper); text-decoration: none; display: flex; flex-direction: column; position: relative; transition: transform .5s var(--ease), box-shadow .4s; outline: 1px solid transparent; }
.card:hover { outline-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); transform: translateY(-4px); }
.card .art { aspect-ratio: 16 / 9; background: #0b0b0b; position: relative; overflow: hidden; }
.card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: grayscale(.25); }
.card:hover .art img { transform: scale(1.07) rotate(-1deg); filter: none; }
.card .art .badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--paper); color: var(--ink); }
.card .art .badge.vb { left: auto; right: 12px; background: var(--acc); color: #0b0b0b; }
.card .meta { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); flex: 1; }
.card .meta h3 { font-size: clamp(28px, 2.6vw, 40px); }
.card .meta small { color: var(--mid); font-size: 14px; }
.card .meta .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.card .meta .row svg { width: 26px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .35s var(--ease); }
.card:hover .meta .row svg { transform: translateX(8px); }
.card.end { background: var(--ink); color: var(--paper); justify-content: space-between; padding: 22px; min-height: 340px; }
.card.end h3 { font-size: clamp(40px, 4vw, 66px); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 0 var(--pad); }
.grid-cards .card { flex: none; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 18px; padding: 0 var(--pad); }
.vtile { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.vtile .th { position: relative; aspect-ratio: 16 / 9; background: #1a1a1a; overflow: hidden; }
.vtile .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.2); }
.vtile:hover .th img { transform: scale(1.05); filter: none; }
.play { position: absolute; left: 14px; bottom: 14px; width: 54px; height: 54px; background: var(--acc); display: grid; place-items: center; transition: transform .4s var(--ease); }
.play:after { content: ""; border-left: 15px solid #0b0b0b; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.vtile:hover .play { transform: scale(1.1); }
.vtile b { font-size: 18px; line-height: 1.25; }
.vtile small { color: var(--mid); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sec.ink .vtile small { color: #9a9a9a; }
.srch { position: absolute; left: 12px; bottom: 12px; background: #0b0b0b; color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.vtile.novid .th img { filter: grayscale(.8) brightness(.8); }
.vtile.novid:hover .th img { filter: none; }

.cats { display: block; border-top: 1px solid var(--ink); }
.cats a { padding: 26px var(--pad); border-bottom: 1px solid var(--line); text-decoration: none; display: grid; grid-template-columns: minmax(200px, 26%) minmax(0, 1fr) 230px; gap: 12px 40px; align-items: baseline; position: relative; overflow: hidden; }
.cats a:last-child { border-bottom: 0; }
.cats a .n { font-size: clamp(70px, 9vw, 150px); }
.cats a h3 { font-size: clamp(30px, 3vw, 48px); }
.cats a p { color: var(--mid); font-size: 15.5px; max-width: 380px; }
.cats a .go { display: flex; gap: 14px; align-items: center; justify-content: flex-end; white-space: nowrap; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.cats a .go svg { width: 24px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.cats a:before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); z-index: 0; }
.cats a > * { position: relative; z-index: 1; transition: color .3s; }
.cats a:hover:before { transform: none; }
.cats a:hover > * { color: var(--paper); }
.cats a:hover .n { color: var(--acc); }
@media (max-width: 860px) { .cats a { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); padding: 0 var(--pad); align-items: start; }
.about .ph { position: relative; }
.about .ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); }
.about .ph:after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 60%; height: 40%; background: var(--acc); z-index: -1; }
.about h2 { font-size: clamp(44px, 6.4vw, 100px); margin-bottom: 26px; }
.about p { font-size: clamp(17px, 1.3vw, 20px); max-width: 720px; }
.about p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); margin-top: 34px; }
.facts div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 18px; }
.facts dt { font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.facts dd { font-weight: 800; font-size: 17px; line-height: 1.3; margin-top: 4px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .ph { max-width: 420px; } }

/* --------------------------------------------------------------- opener */
.opener { position: relative; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: calc(var(--pad) + 10px) var(--pad) var(--pad); overflow: hidden; min-height: min(78svh, 760px); }
.opener.short { min-height: 0; }
.opener .bgnum { position: absolute; right: -2vw; bottom: -5vw; font-size: clamp(220px, 40vw, 640px); color: transparent; -webkit-text-stroke: 2px #2a2a2a; line-height: .8; pointer-events: none; z-index: 1; }
.opener .ophoto { position: absolute; inset: 0; pointer-events: none; }
.opener .ophoto img { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(.35); }
.opener .ophoto:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0b 36%, rgba(11, 11, 11, .78) 56%, rgba(11, 11, 11, .25) 100%), linear-gradient(0deg, #0b0b0b 0%, rgba(11, 11, 11, 0) 40%); }
@media (max-width: 760px) { .opener .ophoto img { width: 100%; opacity: .45; } }
.opener .top { display: flex; justify-content: space-between; gap: 14px; position: relative; z-index: 2; color: #bbb; flex-wrap: wrap; }
.opener .top a { text-decoration: none; }
.opener .top a:hover { color: var(--acc); }
.opener h1 { position: relative; z-index: 2; font-size: clamp(44px, 9vw, 150px); overflow-wrap: anywhere; max-width: 1500px; }
.opener h1.long { font-size: clamp(40px, 6.6vw, 112px); }
.opener h1 .ln { display: block; overflow: hidden; }
.opener h1 .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.opener.in h1 .ln > span { transform: none; }
.opener h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.opener h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.opener .kv { position: relative; z-index: 2; display: flex; gap: 14px 26px; align-items: center; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid #333; padding-top: 20px; }
.opener .kv .l { display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; }
.opener .kv .ref { background: var(--acc); color: #0b0b0b; padding: 7px 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.opener .kv .rt { color: #aaa; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.opener .wipe { position: absolute; inset: 0; background: var(--acc); z-index: 5; transform-origin: top; transform: scaleY(1); transition: transform 1s var(--ease); }
.opener.in .wipe { transform: scaleY(0); }

/* ---------------------------------------------------------------- study */
.study { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 6vw, 90px) var(--pad); align-items: start; }
.side { position: sticky; top: calc(var(--nav) + 20px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - var(--nav) - 40px); overflow: auto; padding-right: 4px; }
.side .sn { font-size: clamp(80px, 9vw, 140px); line-height: .8; }
.side .sp { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.side ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side ol a { display: block; text-decoration: none; font-size: 12.5px; font-weight: 800; line-height: 1.3; padding: 8px 0 8px 12px; border-left: 2px solid var(--line); color: var(--mid); transition: all .25s; text-transform: uppercase; letter-spacing: .03em; }
.side ol a:hover { color: var(--ink); }
.side ol a.on { color: var(--ink); border-color: var(--acc); }
.side ol a .v { color: var(--hot); }
.lbl { font-size: 11.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--mid); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
@media (max-width: 1000px) { .study { grid-template-columns: 1fr; } .side { position: static; max-height: none; } .side .sn, .side ol.series-list, .side .toc-wrap { display: none; } }

.watch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); background: #0b0b0b; color: #fff; }
.watch .vid { position: relative; aspect-ratio: 16 / 9; background: #111; cursor: pointer; overflow: hidden; display: block; }
.watch .vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: grayscale(.15); }
.watch .vid:hover img { transform: scale(1.04); filter: none; }
.watch .vid .play { width: 74px; height: 74px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.watch .vid:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.watch .vid .play:after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
.watch .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch .vid.still img { filter: grayscale(.8) brightness(.7); }
.watch .vid.still:hover img { filter: grayscale(.2) brightness(.9); }
.watch .info { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.watch .info h3 { font-size: clamp(26px, 2.4vw, 38px); }
.watch .info p { color: #b5b5b5; font-size: 14.5px; }
.watch .info a.yt { color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 4px; text-decoration-color: var(--acc); }
@media (max-width: 800px) { .watch { grid-template-columns: 1fr; } }

/* tabs: read the notes / original PDF */
.tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.tabs .t { display: flex; }
.tabs .t button { padding: 12px 16px; font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); position: relative; }
.tabs .t button:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.tabs .t button.on { color: var(--ink); }
.tabs .t button.on:after { transform: scaleX(1); }

.doc { background: var(--mist); padding: clamp(14px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.doc .pages { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.doc .pg { position: relative; width: 100%; max-width: 900px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(0, 0, 0, .35); }
.doc .pg canvas { width: 100%; height: auto; display: block; }
.doc .pg .no { position: absolute; top: -1px; right: -1px; background: #0b0b0b; color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; padding: 3px 7px; }
.doc .pg.loading { aspect-ratio: 8.5 / 11; display: grid; place-items: center; color: var(--mid); }
.doc iframe { width: 100%; height: 80vh; border: 0; background: #fff; }
.doc .note { font-size: 13px; color: var(--mid); }

/* the notes, written out on the page */
.notes { max-width: 800px; font-size: 18px; line-height: 1.72; }
.notes > * + * { margin-top: 16px; }
.notes em { font-style: italic; }
.notes .pgmark { display: flex; align-items: center; gap: 12px; margin: 40px 0 6px; color: var(--mid); font-size: 11.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.notes .pgmark:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notes .pgmark:first-child { margin-top: 0; }
.notes h2 { font-stretch: 75%; font-weight: 900; font-size: clamp(30px, 3.2vw, 46px); line-height: .98; letter-spacing: -.01em; margin-top: 48px; padding-top: 18px; position: relative; scroll-margin-top: calc(var(--nav) + 24px); }
.notes h2:before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 5px; background: var(--acc); }
.notes h3 { font-stretch: 85%; font-weight: 900; font-size: 22px; line-height: 1.2; margin-top: 30px; scroll-margin-top: calc(var(--nav) + 24px); }
.notes .ask-sec { margin-left: 10px; vertical-align: middle; font-stretch: 100%; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); border: 1px solid var(--line); padding: 3px 8px; opacity: 0; transition: opacity .2s, border-color .2s, background .2s; }
.notes h2:hover .ask-sec, .notes h3:hover .ask-sec, .notes .ask-sec:focus { opacity: 1; }
.notes .ask-sec:hover { background: var(--acc); border-color: var(--acc); color: #0b0b0b; }
@media (hover: none) { .notes .ask-sec { opacity: 1; } }
.notes p { white-space: pre-line; }
.notes p.pn { font-size: 12px; color: var(--mid); text-align: right; margin-top: 4px; }
.notes ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.notes ul li { position: relative; padding-left: 28px; }
.notes ul li:before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; background: var(--ink); transition: transform .5s var(--ease), background .3s; }
.notes ul li:hover:before { transform: rotate(45deg) scale(1.1); background: var(--acc); }
.notes ul li.sub { margin-left: 28px; }
.notes ul li.sub:before { background: transparent; border: 2px solid var(--ink); width: 9px; height: 9px; }
.notes .scr { border-left: 4px solid var(--acc); background: var(--mist); padding: 16px 20px 18px; position: relative; }
.notes .scr .rf { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; background: var(--ink); color: var(--paper); padding: 3px 8px; margin-bottom: 10px; transition: background .2s, color .2s; }
.notes .scr .rf:hover { background: var(--acc); color: #0b0b0b; }
.notes .scr p { font-size: 17.5px; line-height: 1.65; }
.notes .callout { background: var(--ink); color: var(--paper); padding: 18px 22px; }
.notes .callout strong:first-child { color: var(--acc); }
.notes .vlink { color: inherit; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 800; }
.notes .vlink:hover { background: var(--acc); color: #0b0b0b; }
.notes sup { font-size: .62em; font-weight: 900; color: var(--hot); margin-right: 1px; }
.notes .blank { display: inline-block; min-width: 4ch; border: 0; border-bottom: 3px solid var(--ink); background: rgba(255, 199, 44, .22); padding: 0 6px; margin: 0 2px; font: inherit; font-weight: 800; color: var(--ink); line-height: 1.35; outline: none; transition: background .2s; }
.notes .blank:focus { background: var(--acc); color: #0b0b0b; }
.notes .blank.filled { background: transparent; border-bottom-color: var(--acc); }
.notes figure { margin-top: 20px; }
.notes .imgpage { box-shadow: 0 1px 0 var(--line), 0 20px 40px -26px rgba(0, 0, 0, .4); }
.notes .imgpage canvas { display: block; width: 100%; }
.notes-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--mid); background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.notes-bar button { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.next { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.next a { padding: 24px 0 26px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.next a + a { text-align: right; padding-left: 20px; border-left: 1px solid var(--line); }
.next a b { font-size: clamp(24px, 2.4vw, 36px); }
.next a:hover b { text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 6px; text-underline-offset: 2px; }

/* -------------------------------------------------------------- library */
.toolbar { display: flex; flex-direction: column; gap: 16px; padding: 0 var(--pad) 26px; }
.searchbox { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border: 2px solid var(--ink); background: var(--paper); }
.searchbox svg { width: 22px; height: 22px; margin: 0 6px 0 18px; stroke: var(--ink); fill: none; stroke-width: 2.2; }
.searchbox input { border: 0; outline: none; background: transparent; padding: 16px 10px; font-size: 19px; font-weight: 600; min-width: 0; }
.searchbox .mode { display: flex; height: 100%; }
.searchbox .mode button { padding: 0 14px; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); border-left: 1px solid var(--line); }
.searchbox .mode button.on { background: var(--ink); color: var(--paper); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.count { color: var(--mid); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

ol.rows { list-style: none; border-top: 1px solid var(--ink); margin: 0 var(--pad); }
ol.rows li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; transition: background .25s, padding .25s; }
ol.rows li a:hover { background: var(--mist); padding-left: 10px; }
ol.rows .k { font-size: 30px; line-height: 1; font-stretch: 75%; font-weight: 900; color: var(--mid); }
ol.rows b { display: block; font-size: 19px; line-height: 1.25; }
ol.rows small { display: block; color: var(--mid); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
ol.rows .snip { display: block; color: var(--ink); opacity: .78; font-size: 14.5px; margin-top: 6px; line-height: 1.5; }
ol.rows .snip mark { background: var(--acc); color: #0b0b0b; padding: 0 2px; }
ol.rows .r { display: flex; gap: 8px; align-items: center; }
ol.rows .vt { width: 104px; aspect-ratio: 16 / 9; background: #222 center / cover; position: relative; }
ol.rows .vt:after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .6)); }
@media (max-width: 640px) { ol.rows li a { grid-template-columns: minmax(0, 1fr); } ol.rows .r { display: none; } }
.more { display: flex; justify-content: center; padding: 30px var(--pad) 0; }
.empty { padding: 40px var(--pad); color: var(--mid); font-size: 17px; }

.parts { display: flex; flex-direction: column; border-top: 1px solid var(--ink); margin: 0 var(--pad); }
.part { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 320px); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.part .k { font-size: 64px; line-height: .8; }
.part h3 { font-size: clamp(24px, 2.4vw, 36px); }
.part .btns { margin-top: 12px; }
@media (max-width: 860px) { .part { grid-template-columns: 56px minmax(0, 1fr); } .part .k { font-size: 44px; } .part > :last-child { grid-column: 1 / -1; } }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); margin: 0 var(--pad); }
.books button { min-width: 0; text-align: left; padding: 16px 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: background .2s; }
.books button:hover { background: var(--mist); }
.books button.on { background: var(--ink); color: var(--paper); }
.books button b { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.05; letter-spacing: .01em; overflow-wrap: anywhere; }
.books button small { font-size: 12px; font-weight: 800; color: var(--mid); letter-spacing: .08em; }
.books button.on small { color: var(--acc); }
.books button:disabled { opacity: .35; cursor: default; }
.testament { display: flex; gap: 8px; padding: 0 var(--pad) 18px; }
.chapters { display: flex; flex-wrap: wrap; gap: 6px; padding: 24px var(--pad) 10px; }
.chapters button { min-width: 44px; height: 40px; border: 1px solid var(--line); font-weight: 900; font-size: 14px; }
.chapters button:hover { border-color: var(--ink); }
.chapters button.on { background: var(--acc); color: #0b0b0b; border-color: var(--acc); }
.vref { color: var(--hot); font-weight: 900; }

/* --------------------------------------------------------------- footer */
footer { background: #0b0b0b; color: #fff; padding: clamp(50px, 7vw, 100px) var(--pad) 30px; }
footer .big { font-size: clamp(54px, 11vw, 190px); line-height: .82; }
footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 50px; border-top: 1px solid #2a2a2a; padding-top: 26px; }
footer h4 { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; font-weight: 900; }
footer a, footer p { display: block; color: #ddd; text-decoration: none; font-size: 15px; line-height: 1.7; }
footer a:hover { color: var(--acc); }
footer .legal { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #777; font-size: 12.5px; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.loading-screen { min-height: 60vh; display: grid; place-items: center; color: var(--mid); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); opacity: 0; background: #0b0b0b; color: #fff; padding: 12px 18px; font-weight: 800; font-size: 14px; z-index: 950; transition: transform .5s var(--ease), opacity .3s; border-left: 4px solid var(--acc); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* "His own words" answers: passages from the notes, verbatim */
.msg.words .body .lead { color: #fff; font-weight: 800; }
.pass { margin-top: 16px; border-left: 3px solid var(--acc); padding: 4px 0 4px 16px; }
.pass .ph { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.pass .ph b { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1; color: #fff; }
.pass .ph:hover b { color: var(--acc); }
.pass .ph small { color: #8f8f8f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pass blockquote { margin-top: 10px; color: #e6e6e6; font-size: 16.5px; line-height: 1.6; }
.pass blockquote mark { background: var(--acc); color: #0b0b0b; padding: 0 2px; }
.pass .acts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.pass .acts a { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; color: #fff; }
.pass .acts a:hover { color: var(--acc); }
.more-pass { margin-top: 18px; border: 1px solid #3a3a3a; color: #ddd; padding: 10px 14px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.more-pass:hover { border-color: var(--acc); color: #fff; }
.msg.words .who { background: var(--acc); color: #0b0b0b; }

/* one clean answer: key passage + three lesson cards */
.keyq { margin-top: 12px; border-left: 3px solid var(--acc); padding: 4px 0 4px 16px; color: #ececec; font-size: 17px; line-height: 1.65; }
.keyq cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; }
.recs { margin-top: 22px; border-top: 1px solid #2b2b2b; padding-top: 14px; }
.recs > .mono { color: #8a8a8a; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.rc { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.rc .ri { position: relative; aspect-ratio: 16 / 9; background: #1a1a1a; overflow: hidden; }
.rc .ri img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: grayscale(.25); }
.rc:hover .ri img { transform: scale(1.06); filter: none; }
.rc .ri .play { width: 34px; height: 34px; left: 8px; bottom: 8px; }
.rc .ri .play:after { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }
.rc b { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 16px; line-height: 1; color: #fff; }
.rc:hover b { color: var(--acc); }
.rc small { color: #8f8f8f; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .rgrid { grid-template-columns: 1fr; } .rc { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; } .rc .ri { grid-row: span 2; } }

/* home: the library headline */
.hero h1 { font-size: clamp(54px, 8.4vw, 136px); }
.hero .btns .btn.w { outline-color: #fff; }

/* home: Ask Raymond Woodward, with a brain that "thinks" */
.asksec { position: relative; background: #0b0b0b; color: #fff; overflow: hidden; padding: clamp(70px, 9vw, 130px) var(--pad) clamp(60px, 8vw, 110px); border-top: 4px solid var(--acc); }
.asksec .askin { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.asksec .toprow { color: #cfcfcf; }
.asksec h2 { font-size: clamp(54px, 9vw, 150px); line-height: .84; transition: font-size .7s var(--ease); }
.asksec .lede { color: #cfcfcf; max-width: 680px; font-size: 17px; }
.asksec.chatting h2 { font-size: clamp(40px, 5.4vw, 84px); }
.asksec.chatting .lede { display: none; }
.brain { position: absolute; left: 50%; top: clamp(170px, 20vw, 300px); width: min(760px, 92vw); transform: translateX(-50%); opacity: .09; z-index: 1; pointer-events: none; transition: opacity .8s var(--ease); }
.brain svg { width: 100%; height: auto; display: block; overflow: visible; transform-origin: 50% 62%; transition: transform .9s var(--ease); }
.brain svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brain svg .syn { fill: var(--acc); opacity: 0; }
.asksec.pondering .brain { opacity: .3; }
.asksec.pondering .brain svg { animation: ponder 2.6s ease-in-out infinite; }
.asksec.pondering .brain svg path { stroke: #fff; }
.asksec.pondering .brain svg .syn { animation: fire 1.3s ease-in-out infinite; }
.asksec.pondering .brain svg .syn:nth-of-type(2) { animation-delay: .25s; }
.asksec.pondering .brain svg .syn:nth-of-type(3) { animation-delay: .5s; }
.asksec.pondering .brain svg .syn:nth-of-type(4) { animation-delay: .75s; }
.asksec.pondering .brain svg .syn:nth-of-type(5) { animation-delay: 1s; }
.asksec.pondering .brain svg .syn:nth-of-type(6) { animation-delay: .4s; }
@keyframes ponder { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.03); } }
@keyframes fire { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.brain svg .syn { transform-box: fill-box; transform-origin: center; }

/* three big yellow dots while thinking */
.think { display: inline-flex; gap: 14px; align-items: center; padding: 12px 0 8px; }
.think i { width: 18px; height: 18px; border-radius: 50%; background: var(--acc); animation: hop 1.1s var(--ease) infinite; box-shadow: 0 0 18px rgba(255, 199, 44, .35); }
.think i:nth-child(2) { animation-delay: .15s; }
.think i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 80%, 100% { transform: translateY(0) scale(.8); opacity: .5; } 40% { transform: translateY(-14px) scale(1.1); opacity: 1; } }

.asksec .ol { -webkit-text-stroke-color: #fff; }
.brain { width: min(560px, 80vw); }

/* Answers quoted from his notes */
.keyq + .keyq { margin-top: 16px; }
.keyq cite a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.keyq cite a:hover { color: var(--acc); }
.msg .also { margin-top: 14px; font-size: 14px; }
.msg .also a { color: var(--acc); text-decoration: none; font-weight: 700; }
.msg .also a:hover { text-decoration: underline; }

/* Page introductions: a plain sentence under the title */
.opener .intro { position: relative; z-index: 2; border-top: 1px solid #333; padding-top: 20px; color: #cfcfcf; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 760px; }

/* Ask: a printed question-and-answer, not a chat app */
.msg { display: block; }
.msg .who { display: none; }
.msg.user { margin-top: 10px; padding-top: 18px; border-top: 1px solid #2b2b2b; }
.msg.user:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.msg.user .q { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; color: #fff; letter-spacing: .005em; }
.msg.bot .body { max-width: 760px; }
.msg .by { margin-top: 14px; color: #8a8a8a; font-size: 12.5px; }
.suggest { display: block; color: #9a9a9a; font-size: 14px; line-height: 1.9; }
.suggest span { margin-right: 6px; }
.suggest button { border: 0; padding: 0; color: #e6e6e6; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 4px; background: none; }
.suggest button:hover { border: 0; background: none; color: var(--acc); text-decoration-color: var(--acc); }
.suggest button + button:before { content: "·"; display: inline-block; margin: 0 10px; color: #666; text-decoration: none; }
@media (max-width: 520px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } .books button b { font-size: 17px; } }

/* The brain is now a canvas of glowing points (js/brain.js) */
.brain { opacity: .5; top: clamp(120px, 14vw, 220px); }
.brain canvas { width: 100%; display: block; }
.asksec.pondering .brain { opacity: 1; }
@media (min-width: 1100px) {
  .asksec .askin { margin: 0 0 0 max(0px, calc((100% - 1500px) / 2)); max-width: min(880px, 60%); }
  .brain { left: auto; right: -3vw; transform: none; top: clamp(40px, 5vw, 90px); width: min(700px, 46vw); opacity: .8; }
}
@media (max-width: 1099px) { .brain { opacity: .32; } .asksec.pondering .brain { opacity: .6; } }

/* The brain fills the whole Ask section, edge to edge, behind the text */
.asksec .brain { position: absolute; inset: 0; left: 0; right: 0; top: 0; width: auto; height: auto; transform: none; opacity: .5; }
.asksec .brain canvas { width: 100%; height: 100%; }
.asksec.chatting .brain { opacity: .28; }
.asksec.pondering .brain { opacity: .95; }
@media (min-width: 1100px) { .asksec .askin { margin: 0 auto; max-width: 980px; } }
@media (max-width: 1099px) { .asksec .brain { opacity: .35; } .asksec.pondering .brain { opacity: .75; } }

.asksec .lede, .asksec .suggest, .asksec .fine, .asksec .msg .body { text-shadow: 0 0 14px #0b0b0b, 0 0 5px #0b0b0b, 0 0 2px #0b0b0b; }

/* his exact words inside an AI answer */
mark.verbatim { background: rgba(255, 199, 44, .2); color: #fff; padding: 1px 3px; border-bottom: 2px solid var(--acc); border-radius: 2px; }
.msg .by .key { margin-right: 6px; color: #cfcfcf; }
.msg .by mark.verbatim { font-size: 12px; padding: 0 4px; }

/* Podcasts & interviews */
.ptile { display: flex; flex-direction: column; gap: 8px; }
.ptile .ptopic { color: var(--mid); font-size: 14.5px; line-height: 1.45; }
.sec.ink .ptile .ptopic { color: #aaa; }
.ptile .pparts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ptile .pparts a { color: inherit; text-underline-offset: 3px; }
.vtile .th.audio { display: grid; place-items: center; background: #0b0b0b; border: 1px solid #2b2b2b; }
.vtile .th.audio .aud { color: #fff; font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); text-align: center; line-height: 1; padding: 0 18px; }
.vtile .th.audio .aud em { display: block; font-style: normal; color: var(--acc); font-size: 13px; letter-spacing: .12em; margin-top: 10px; font-stretch: 100%; }

.vtile .th.art { background: #0b0b0b; display: grid; place-items: center; }
.vtile .th.art .blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) brightness(.45) !important; transform: none !important; }
.vtile .th.art .cover { position: absolute; top: 8%; height: 84%; left: 50%; width: auto; aspect-ratio: 1; object-fit: cover; transform: translateX(-50%); box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); filter: none; }
.vtile:hover .th.art .cover { transform: translateX(-50%) scale(1.04); }
.vtile .th.art .listen { position: absolute; right: 12px; bottom: 10px; background: #0b0b0b; color: var(--acc); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }

/* Title cards: thumbnail-style art for lessons without a video (no frames grabbed from sermons) */
.tcard { position: absolute; inset: 0; display: block; background: #0b0b0b; overflow: hidden; container-type: inline-size; }
.tcard img { position: absolute; left: auto !important; right: 0 !important; top: 0; bottom: auto !important; width: 62% !important; height: 100% !important; object-fit: cover; object-position: 80% 22%; filter: brightness(.95) !important; transform: none !important; }
.tcard:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0b 36%, rgba(11,11,11,.7) 50%, rgba(11,11,11,0) 72%); }
.tcard .tc-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw; padding: 6cqw 42% 6cqw 6cqw; border-left: 1.2cqw solid var(--acc); }
.tcard small { color: var(--acc); font-size: max(9px, 3.1cqw); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.tcard b { color: #fff; line-height: .92; font-size: 9cqw; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.tcard b.m { font-size: 7.6cqw; } .tcard b.l { font-size: 6.2cqw; } .tcard b.xl { font-size: 5cqw; }
.tcard i { position: absolute; right: 4cqw; bottom: 4cqw; z-index: 2; font-style: normal; font-weight: 900; font-size: max(9px, 3cqw); background: var(--acc); color: #0b0b0b; padding: .6cqw 1.4cqw; }
.card .art .tcard, .rc .ri .tcard, .watch .vid .tcard, .part .vtile .th .tcard { position: absolute; inset: 0; }
.watch .vid.still .tcard img { filter: brightness(.95) !important; }

/* title cards: no text glow (it made the RW badge look smudged) */
.tcard, .tcard * { text-shadow: none !important; }
@media (max-width: 520px) { .askbar textarea { font-size: 16px; padding: 16px; } }
