/* ==========================================================================
   fMRI Acquisition & Analysis Course — site styles
   Light, warm, editorial. Fraunces (display) + Inter (text).
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --bg-2: #f2efe8;
  --bg-3: #e9edf0;
  --ink: #1c2026;
  --ink-2: #3a4049;
  --muted: #646b75;
  --line: #e3dfd6;
  --line-2: #d3cfc6;
  --amber: #e9b949;
  --amber-deep: #c7931a;
  --amber-soft: #fbf0d0;
  --steel: #6f8fb0;
  --steel-soft: #e3ebf3;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(28,32,38,.04), 0 12px 32px -12px rgba(28,32,38,.16);
  --radius: 18px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, td a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, li a:hover, dd a:hover, td a:hover { text-decoration-color: var(--amber-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-variation-settings: "opsz" 144, "SOFT" 40; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--ink-2); line-height: 1.5; max-width: 40em; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-deep); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--amber-deep); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 760px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px -10px rgba(28,32,38,.5); }
.btn-primary:hover { background: #2b3038; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(201,147,26,.7); }
.btn-amber:hover { background: #f0c45b; }
.btn-ghost { background: rgba(255,255,255,.55); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 1em; height: 1em; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.scrolled { background: rgba(250,248,244,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .6em; }
.brand .mark { width: 30px; height: 30px; }
.brand span b { font-weight: 600; }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a { padding: .55em .9em; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: rgba(28,32,38,.06); color: var(--ink); }
.nav a.active { color: var(--ink); background: rgba(28,32,38,.07); }
.nav a.cta { background: var(--amber); color: var(--ink); font-weight: 600; margin-left: .5rem; }
.nav a.cta:hover { background: #f0c45b; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: rgba(250,248,244,.97); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; padding: .6rem var(--pad) 1.2rem; gap: .2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .8em 1em; font-size: 1.05rem; }
  .nav a.cta { margin: .5rem 0 0; text-align: center; justify-content: center; display: flex; }
}

/* Sticky-curtain parallax --------------------------------------------------
   .curtain holds a sticky full-viewport media layer; the following
   .curtain-body scrolls up and covers it. ------------------------------- */
.curtain { position: relative; }
.curtain-media {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0;
  background: var(--bg-3) center / cover no-repeat;
}
.curtain-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(250,248,244,.55) 0%, rgba(250,248,244,0) 35%, rgba(250,248,244,0) 70%, rgba(250,248,244,.35) 100%); pointer-events: none; }
.curtain-media .hero-copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; pointer-events: none; }
.curtain-media .hero-copy .wrap { width: 100%; }
.curtain-media .hero-copy a, .curtain-media .hero-copy button { pointer-events: auto; }
.curtain-body { position: relative; z-index: 1; background: var(--bg); box-shadow: 0 -30px 60px -30px rgba(28,32,38,.18); border-top: 1px solid rgba(255,255,255,.7); }
.curtain-body::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--amber), var(--amber-soft)); opacity: .9; }
@media (prefers-reduced-motion: reduce) { .curtain-media { position: relative; height: 70vh; } }

/* Home hero --------------------------------------------------------------- */
#neurons { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hero-copy h1 { max-width: 12em; margin-bottom: .35em; }
.hero-copy h1 em { font-style: italic; font-weight: 300; color: var(--ink-2); }
.hero-copy .lede { margin: 0 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.date-pill { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em .45em .6em; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; margin-bottom: 1.4rem; backdrop-filter: blur(6px); }
.date-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(233,185,73,.25); }
.hero-hint { position: absolute; right: var(--pad); bottom: 28px; z-index: 2; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .5em; pointer-events: none; }
.hero-hint .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(233,185,73,.6);} 70% { box-shadow: 0 0 0 10px rgba(233,185,73,0);} }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5em; pointer-events: none; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); display: block; animation: drop 2s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top;} 50% { transform: scaleY(1); transform-origin: top;} 51% { transform-origin: bottom;} 100% { transform: scaleY(0); transform-origin: bottom;} }
@media (max-width: 720px) { .hero-hint { display: none; } }

/* Sub-page hero (over curtain) ------------------------------------------- */
.page-hero h1 { max-width: 11em; }
.page-hero .lede { margin-bottom: 0; }

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: clamp(32px, 4vw, 56px); align-items: end; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.section-head p { margin: 0; }

/* Feature tiles ----------------------------------------------------------- */
.tiles { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px;
  padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(28,32,38,.04), 0 28px 48px -20px rgba(28,32,38,.25); border-color: var(--line-2); }
.tile .num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--line-2); font-weight: 300; transition: color .35s; }
.tile:hover .num { color: var(--amber); }
.tile h3 { margin: 1.2rem 0 .4rem; }
.tile p { margin: 0 0 1.4rem; color: var(--muted); }
.tile .go { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .95rem; }
.tile .go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tile:hover .go svg { transform: translateX(4px); }
.tile .art { position: absolute; right: -30px; bottom: -30px; width: 190px; height: 190px; opacity: .55; transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.tile:hover .art { opacity: .9; transform: rotate(-4deg) scale(1.04); }
.tile-enroll { background: linear-gradient(160deg, #fff 0%, var(--amber-soft) 140%); }

/* Attendee strip ---------------------------------------------------------- */
.attendee { background: var(--ink); color: #eef0f3; }
.attendee h2 { color: #fff; }
.attendee .muted { color: #a9b0ba; }
.attendee-links { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 760px) { .attendee-links { grid-template-columns: repeat(3, 1fr); } }
.attendee-links a { display: block; padding: 1.4rem 1.5rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.attendee-links a:hover { background: rgba(255,255,255,.08); border-color: rgba(233,185,73,.6); transform: translateY(-3px); }
.attendee-links strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; color: #fff; }
.attendee-links span { font-size: .9rem; color: #a9b0ba; }

/* Fact row ---------------------------------------------------------------- */
.facts { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }

/* Instructors ------------------------------------------------------------- */
.person { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .person { grid-template-columns: 300px 1fr; gap: 3.5rem; } }
.person:first-of-type { border-top: 0; }
.portrait { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 5 / 6; background: var(--bg-2); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.02); transition: transform .8s var(--ease); }
.person:hover .portrait img { transform: scale(1.06); }
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(28,32,38,.06); border-radius: 16px; }
.person h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .2em; }
.person .role { color: var(--muted); margin: 0 0 1.2rem; font-size: 1rem; }
.person p { max-width: 60ch; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; padding: .45em .95em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.links a:hover { border-color: var(--ink); background: var(--white); }
.instructor-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
@media (max-width: 640px) { .instructor-row { grid-template-columns: 1fr; } }
.mini { display: flex; align-items: center; gap: 1rem; }
.mini img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.mini strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.mini span { font-size: .85rem; color: var(--muted); }

/* Content page ------------------------------------------------------------ */
.topics { display: grid; gap: .8rem 2rem; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; counter-reset: t; }
@media (min-width: 700px) { .topics { grid-template-columns: repeat(2, 1fr); } }
.topics li { counter-increment: t; display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.topics li::before { content: counter(t, decimal-leading-zero); font-family: var(--serif); color: var(--amber-deep); font-size: 1.1rem; padding-top: .1rem; }
.topics strong { display: block; font-weight: 600; }
.topics span { color: var(--muted); font-size: .95rem; }
.agenda { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.agenda details { border-top: 1px solid var(--line); }
.agenda details:first-child { border-top: 0; }
.agenda summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.6rem; font-family: var(--serif); font-size: 1.35rem; }
.agenda summary::-webkit-details-marker { display: none; }
.agenda summary small { font-family: var(--sans); color: var(--muted); font-size: .85rem; }
.agenda summary .chev { width: 22px; height: 22px; transition: transform .3s var(--ease); flex: none; margin-left: 1rem; }
.agenda details[open] summary .chev { transform: rotate(180deg); }
.agenda table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.agenda th, .agenda td { text-align: left; padding: .6rem 1rem; vertical-align: top; border-top: 1px solid var(--line); }
.agenda th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--bg); }
.agenda td.time { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; width: 6.5rem; }
.agenda td.who { color: var(--muted); white-space: nowrap; }
.agenda tr.break td { color: var(--muted); font-style: italic; background: var(--bg); }
.table-scroll { overflow-x: auto; }
.software-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.software-chips li { padding: .4em .9em; border-radius: 999px; background: var(--steel-soft); color: #3d5877; font-size: .85rem; font-weight: 500; }

/* Enroll ------------------------------------------------------------------ */
.tiers { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tier:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(28,32,38,.04), 0 28px 48px -20px rgba(28,32,38,.22); }
.tier.featured { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft), var(--shadow); }
.tier h3 { margin-bottom: .2rem; }
.tier .price { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 1rem 0 .3rem; }
.tier .price sup { font-size: 1.2rem; vertical-align: top; margin-top: .3em; display: inline-block; color: var(--muted); }
.tier .who { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 1.6rem; }
.tier .btn { justify-content: center; width: 100%; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--serif); font-size: 1.2rem; }
.steps strong { display: block; }
.note { padding: 1.2rem 1.5rem; border-left: 3px solid var(--amber); background: var(--white); border-radius: 0 12px 12px 0; }
.note p:last-child { margin-bottom: 0; }

/* Materials --------------------------------------------------------------- */
.books { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.book { display: grid; grid-template-columns: 150px 1fr; gap: 1.6rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); align-items: start; }
.book.primary { grid-template-columns: 200px 1fr; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft), var(--shadow); }
@media (max-width: 600px) { .book, .book.primary { grid-template-columns: 1fr; } .book img { max-width: 180px; } }
.book img { border-radius: 6px; box-shadow: 0 10px 24px -10px rgba(28,32,38,.45); transition: transform .5s var(--ease); }
.book:hover img { transform: translateY(-4px) rotate(-1deg); }
.book h3 { margin-bottom: .2rem; }
.book .by { color: var(--muted); margin: 0 0 .8rem; }
.book p { margin: 0 0 1rem; }
.badge { display: inline-block; padding: .25em .7em; border-radius: 999px; background: var(--amber-soft); color: var(--amber-deep); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.reading-list { list-style: none; padding: 0; margin: 0; }
.reading-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.reading-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .reading-list li { grid-template-columns: 1fr; } }
.reading-list .title { font-weight: 600; }
.reading-list .cite { color: var(--muted); font-size: .93rem; }
.reading-list .pdf { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: border-color .2s, background .2s; }
.reading-list .pdf:hover { border-color: var(--ink); background: var(--white); }
.reading-list .pdf svg { width: 14px; height: 14px; }
.sw-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .sw-grid { grid-template-columns: repeat(2, 1fr); } }
.sw { padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sw h3 { display: flex; align-items: baseline; gap: .6em; margin-bottom: .3rem; }
.sw h3 small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 500; }
.sw p { color: var(--ink-2); margin: 0 0 .9rem; font-size: .97rem; }
.sw ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.sw ul a { display: inline-flex; align-items: center; gap: .35em; padding: .38em .85em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.sw ul a:hover { border-color: var(--ink); background: var(--bg); }
.sw ul a svg { width: 13px; height: 13px; opacity: .7; }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.subnav a { padding: .45em 1em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.subnav a:hover { border-color: var(--ink); }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer .wrap { grid-template-columns: 1.5fr .9fr 1.2fr .9fr; } }
.site-footer strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: .4rem; }
.site-footer a { color: var(--ink-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }

/* Scroll reveal ----------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .tile, .tier, .book img, .portrait img { transition: none; } }

/* Utilities --------------------------------------------------------------- */
.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--amber-soft); }

/* ==========================================================================
   v2 additions: prominent scroll cue, glowing "neural" tile borders,
   instructors group photo, content session cards, lecture pages, quick-view
   dialog, parallax bands, figures, credits.
   ========================================================================== */

/* Scroll cue — a visible pill button ------------------------------------- */
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; pointer-events: auto; }
.scroll-cue a {
  display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.3em .7em 1.4em; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 12px 28px -10px rgba(28,32,38,.55); transition: transform .3s var(--ease), background .3s;
}
.scroll-cue a:hover { transform: translateY(-2px); background: #2b3038; }
.scroll-cue a svg { width: 16px; height: 16px; animation: nudge 1.8s infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.scroll-cue i { display: none; }

/* Glowing tile border: a yellow "impulse" runs around the frame on hover -- */
@property --glow-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; z-index: 1; pointer-events: none;
  background: conic-gradient(from var(--glow-angle), transparent 0deg, transparent 250deg, rgba(233,185,73,.25) 290deg, #e9b949 330deg, #fff3c4 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: 0; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(233,185,73,.35), 0 0 32px -6px rgba(233,185,73,.55); opacity: 0; transition: opacity .35s;
}
.glow:hover::before, .glow:focus-within::before { opacity: 1; animation: glow-run 1.7s linear infinite; }
.glow:hover::after, .glow:focus-within::after { opacity: 1; }
@keyframes glow-run { to { --glow-angle: 360deg; } }
@supports not (background: conic-gradient(from var(--glow-angle), red, blue)) {
  .glow:hover::before { animation: none; background: linear-gradient(120deg, transparent, #e9b949, transparent); }
}
@media (prefers-reduced-motion: reduce) { .glow:hover::before { animation: none; } }
.glow > * { position: relative; z-index: 2; }

/* Instructors: group photo + statement --------------------------------- */
.group { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .group { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.group-photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.group-photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28,32,38,.08); }
.statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; color: var(--ink); margin: 0; }
.statement + p { margin-top: 1rem; }

/* Content page: session cards ----------------------------------------- */
.day-block { margin-bottom: clamp(40px, 5vw, 64px); }
.day-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.day-head h3 { margin: 0; }
.day-head span { color: var(--muted); font-size: .95rem; }
.sessions { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .sessions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sessions { grid-template-columns: repeat(3, 1fr); } }
.session {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.3rem; border-radius: 16px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; min-height: 170px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.session:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28,32,38,.04), 0 24px 40px -18px rgba(28,32,38,.22); }
.session .meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.session .meta b { color: var(--amber-deep); font-weight: 600; }
.session h4 { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.session p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.session .foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; font-size: .85rem; color: var(--ink-2); }
.session .foot .tag { padding: .2em .65em; border-radius: 999px; background: var(--steel-soft); color: #3d5877; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.session .foot .tag.lecture { background: var(--amber-soft); color: var(--amber-deep); }
.session .foot svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.session:hover .foot svg { transform: translateX(4px); }
.agenda td a { text-decoration: none; font-weight: 500; }
.agenda td a:hover { text-decoration: underline; text-decoration-color: var(--amber-deep); }

/* Lecture pages ---------------------------------------------------------- */
.lec-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0 0 1.2rem; font-size: .85rem; color: var(--ink-2); }
.lec-meta span { display: inline-flex; align-items: center; gap: .4em; }
.lec-meta b { color: var(--amber-deep); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.glance { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .glance { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.takeaways li { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; font-size: 1.05rem; }
.takeaways li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--amber-soft); box-shadow: inset 0 0 0 6px var(--amber); margin-top: .2rem; }
.terms { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.terms li { padding: .38em .85em; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: .85rem; font-weight: 500; }
.outline { display: grid; gap: 1.2rem; }
.osec { padding: 1.7rem 1.9rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.osec h3 { display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; align-items: baseline; margin-bottom: .9rem; font-size: 1.35rem; }
.osec h3 .n { font-family: var(--serif); color: var(--amber-deep); font-size: 1rem; letter-spacing: .04em; }
.osec ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.osec li { padding-left: .2rem; }
.osec li::marker { color: var(--amber-deep); }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption { padding: .8rem 1.2rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.figure figcaption b { color: var(--ink-2); font-weight: 600; }
.fig-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin: 1.2rem 0; }
@media (min-width: 760px) { .fig-row.two { grid-template-columns: 1fr 1fr; } }
.steps-list { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 36px 1fr; gap: .9rem; align-items: start; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.steps-list li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--serif); font-size: 1rem; }
.cheat { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.cheat summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; font-weight: 600; }
.cheat summary::-webkit-details-marker { display: none; }
.cheat summary .chev { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.cheat[open] summary .chev { transform: rotate(180deg); }
.cheat-body { padding: .4rem 1.6rem 1.6rem; font-size: .95rem; border-top: 1px solid var(--line); }
.cheat-body img { max-width: min(100%, 520px); border: 1px solid var(--line); border-radius: 8px; margin: .6rem 0; }
.cheat-body ul, .cheat-body ol { padding-left: 1.3rem; }
.cheat-body li { margin: .25rem 0; }
.cheat-body blockquote { margin: .5rem 0; padding-left: 1rem; border-left: 3px solid var(--amber); color: var(--ink-2); }
.cheat-body table { border-collapse: collapse; font-size: .9rem; margin: .8rem 0; }
.cheat-body td, .cheat-body th { border: 1px solid var(--line); padding: .35rem .6rem; }
.cheat-body p:first-child { margin-top: .8rem; }
.lec-nav { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 2rem; }
.lec-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.lec-nav a:hover { border-color: var(--ink); transform: translateY(-2px); }
.lec-nav a.next { text-align: right; align-items: flex-end; }
.lec-nav small { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.lec-nav strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }

/* Parallax band (image strip that drifts as you scroll) ----------------- */
.band { position: relative; height: clamp(260px, 42vw, 520px); overflow: hidden; background: var(--bg-3); }
.band-img { position: absolute; left: 0; right: 0; top: -18%; height: 136%; background-size: cover; background-position: center; will-change: transform; }
.band-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem var(--pad); font-size: .8rem; color: #fff; background: linear-gradient(to top, rgba(28,32,38,.6), transparent); }
@media (prefers-reduced-motion: reduce) { .band-img { top: 0; height: 100%; } }

/* Quick-view dialog ------------------------------------------------------- */
dialog.qv { border: 0; padding: 0; border-radius: 20px; width: min(920px, 92vw); max-height: 88vh; background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(28,32,38,.5); }
dialog.qv::backdrop { background: rgba(28,32,38,.45); backdrop-filter: blur(6px); }
.qv-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.qv-head .btn { padding: .55em 1.1em; font-size: .85rem; }
.qv-close { background: none; border: 1px solid var(--line-2); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; }
.qv-close:hover { border-color: var(--ink); }
.qv-body { padding: 1.2rem 1.6rem 2rem; }
.qv-body h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.qv-body .band { display: none; }
.qv-body .lec-nav, .qv-body .section-head p.lede { display: none; }
.qv-body .section { padding: 1.6rem 0; }
.qv-body .wrap { padding-left: 0; padding-right: 0; }
.qv-loading { padding: 3rem; text-align: center; color: var(--muted); }

/* Credits ------------------------------------------------------------------ */
.credits { max-width: var(--max); margin: 2.5rem auto 0; padding: 1.2rem var(--pad) 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; justify-content: flex-end; text-align: right; }
.credits span { max-width: 62ch; }
.credits a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); }

/* Misc tweaks */
h1 em, h2 em { font-style: normal; }
.attendee-note { padding: 1.4rem 1.6rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); margin-top: 1.6rem; color: #d5d9df; }
.attendee-note a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.tile-media { margin: -2rem -2rem 1.2rem; height: 150px; background: var(--bg-3) center / cover; border-bottom: 1px solid var(--line); }
.materials-note { padding: 1.1rem 1.4rem; border-left: 3px solid var(--amber); background: var(--white); border-radius: 0 12px 12px 0; margin-bottom: 1.5rem; }
.pdf-links { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

/* Photo heroes on lecture pages: keep the title legible over the image */
.curtain-media.photo::after { background: linear-gradient(90deg, rgba(250,248,244,.96) 0%, rgba(250,248,244,.9) 40%, rgba(250,248,244,.55) 70%, rgba(250,248,244,.25) 100%); }
.curtain-media.photo { background-position: right center; }
@media (max-width: 800px) { .curtain-media.photo::after { background: rgba(250,248,244,.9); } }
/* Cap figure height so tall crops don't dominate */
.figure img { max-height: 480px; object-fit: contain; background: #fff; }
.qv-body .figure img { max-height: 360px; }
.fig-row { align-items: start; }
.curtain-media.photo::after { background: linear-gradient(90deg, rgba(250,248,244,.97) 0%, rgba(250,248,244,.94) 50%, rgba(250,248,244,.6) 75%, rgba(250,248,244,.3) 100%); }


/* Breadcrumbs, session chips, and cross-page links ------------------------ */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg); font-size: .85rem; color: var(--muted); }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .55rem; padding-top: .85rem; padding-bottom: .85rem; }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.crumbs a:hover { color: var(--ink); text-decoration-color: var(--amber-deep); }
.crumbs i { font-style: normal; color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-block; max-width: 22rem; padding: .38em .9em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  font-size: .84rem; font-weight: 500; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.here { background: var(--amber-soft); border-color: var(--amber); color: var(--ink); cursor: default; }

.sibling { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sibling .eyebrow { margin-bottom: .9rem; }
.teaches, .used-in { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.teaches .eyebrow, .used-in .eyebrow { margin-bottom: .8rem; }

.related { border-top: 1px solid var(--line); background: var(--bg-2); }
.related-h { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.4rem; }
.more-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-link {
  display: grid; grid-template-columns: 1fr 22px; align-items: center; gap: .3rem 1rem;
  padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, transform .3s var(--ease);
}
.more-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.more-link strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.more-link span { grid-column: 1; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.more-link svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--amber-deep); }
.qv-body .crumbs, .qv-body .related, .qv-body .sibling { display: none; }

/* Inline arrow / external-link icons inside body text links */
p a svg, li a svg, dd a svg, td a svg, .links a svg { width: 1em; height: 1em; flex: none; vertical-align: -.12em; }
/* Keep anchor targets clear of the sticky header */
:target, [id] { scroll-margin-top: 88px; }
