@font-face {
  font-family: 'ABC Monument Grotesk';
  src: url('../fonts/ABCMonumentGrotesk-Bold.woff2') format('woff2'),
       url('../fonts/ABCMonumentGrotesk-Bold.woff') format('woff'),
       url('../fonts/ABCMonumentGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sabon LT Std';
  src: url('../fonts/SabonLTStd-Roman.woff2') format('woff2'),
       url('../fonts/SabonLTStd-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville[wght].ttf') format('truetype-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Italic[wght].ttf') format('truetype-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F0EBE4;
  --bg-footer: #768100;
  --text: #000000;
  --text-secondary: rgba(0, 0, 0, 0.54);
  --text-muted: rgba(0, 0, 0, 0.54);
  --text-on-image: #FFFFFF;
  --text-on-footer: #000000;
  --overlay: rgba(0, 0, 0, 0.15);
  --overlay-strong: rgba(0, 0, 0, 0.15);
  --border: rgba(255, 255, 255, 0.92);
  --serif: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
  --serif-display: 'Sabon LT Std', 'Georgia', 'Times New Roman', serif;
  --sans: 'ABC Monument Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 1360px;
  --nav-height: 64px;
  --course-card-gradient: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 33%,
    rgba(0, 0, 0, 0.3) 75%,
    rgba(0, 0, 0, 0.82) 100%
  );
  --course-card-gradient-mobile: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 33%,
    rgba(0, 0, 0, 0.45) 56%,
    rgba(0, 0, 0, 0.45) 75%,
    rgba(0, 0, 0, 0.82) 100%
  );
  --nav-top: 24px;
  --nav-mobile-top: 16px;
  --radius: 16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.25;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

main {
  flex: 1;
  padding-top: calc(var(--nav-top) + var(--nav-height));
  padding-bottom: 144px;
}

main > section:last-of-type {
  margin-bottom: 0;
}

/* ===================== NAVIGATION ===================== */
.nav {
  width: min(800px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  height: var(--nav-height);
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 0;
  align-items: center;
  width: 328px;
}

.nav-links a {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.6;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px 16px 48px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ===================== HERO ===================== */
.hero {
  padding: 144px 0 144px;
  display: flex;
  justify-content: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 834px;
  padding: 0;
}

.hero-quote {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  max-width: 834px;
  text-align: left;
  text-indent: -0.45em;
  margin-bottom: 24px;
}

.hero-attribution {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  margin-bottom: 32px;
  transform: translateY(-6px);
}

.hero-attribution-name {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hero-description {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  max-width: 834px;
  text-align: left;
  margin-bottom: 48px;
}

.hero-cta {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  height: 44px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 16px 22px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.33);
  border: none;
  color: var(--text);
  border-radius: 22px;
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.8;
}

/* ===================== SECTION HEADINGS ===================== */
.section-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
}

.section-heading {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===================== IMAGE OVERLAY CARDS ===================== */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.03);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.25) 15%,
    rgba(0, 0, 0, 0.10) 30%,
    rgba(0, 0, 0, 0.10) 60%,
    rgba(0, 0, 0, 0.25) 75%,
    rgba(0, 0, 0, 0.40) 100%
  );
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  transition: opacity 0.3s;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-on-image);
  text-align: center;
}

.card-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin-top: 0;
  text-align: left;
  text-indent: 48px;
}

.courses-grid .card-overlay {
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  background: var(--course-card-gradient);
  opacity: 1;
  padding: 24px 16px;
}

.courses-grid .card:hover .card-overlay {
  opacity: 1;
}

.courses-grid .card-title {
  font-family: var(--serif);
  font-size: 1.76rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}

.courses-grid .card-desc {
  max-width: 100%;
  font-size: 0.88rem;
  text-indent: 0;
}

.course-card-title {
  width: 100%;
}

.course-card-title-main,
.course-card-title-subtitle {
  display: block;
}

.course-card-title-subtitle {
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  transform: translateY(1px);
}

.card-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: flex-start;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-transform: uppercase;
}

.card-meta {
  flex: 0 0 60%;
  text-align: left;
}

.card-top {
  align-self: stretch;
}

.card-meta-course,
.card-meta-speaker {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.card-episode {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-speaker {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: -12px;
}

.card-note {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.card-badge {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.card-lecturer {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin: 2px 0 0;
}

.notify-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text-on-image);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 156px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  transition: background 0.2s;
  margin-top: 16px;
  align-self: center;
}

.notify-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.card-coming-soon {
  cursor: default;
  pointer-events: auto;
}

.card-coming-soon:hover {
  transform: none;
}

.card-coming-soon:hover img {
  transform: none;
}

.card-coming-soon:hover .card-overlay,
.courses-grid .card-coming-soon:hover .card-overlay {
  opacity: 1;
}

.card-coming-soon img {
  filter: grayscale(0.06);
}

.card-coming-soon .card-overlay {
  background: var(--course-card-gradient);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto;
}

.card-coming-soon .notify-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  margin-top: 0;
  font-size: 0.88rem;
}

.course-card-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.card-coming-soon .course-card-actions .notify-btn {
  position: static;
  transform: none;
  margin-top: 0;
}

.course-preview-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: auto;
  cursor: pointer;
}

.course-videos-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(33px) brightness(0.88);
  -webkit-backdrop-filter: blur(33px) brightness(0.88);
  pointer-events: none;
}

.card-coming-soon .card-badge {
  font-size: 0.88rem;
  text-transform: none;
  transform: translateX(1px);
}

.card-coming-soon .card-desc {
  pointer-events: none;
}

.coming-soon-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  width: 100%;
}

/* ===================== COURSES GRID ===================== */
.courses-section {
  padding: 0;
  margin-bottom: 144px;
}

.courses-section .section-title {
  font-family: var(--serif);
}

.course-guide-link {
  margin: -28px 0 48px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.course-guide-link a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.courses-page.courses-section {
  padding-top: 144px;
}

.new-to-philosophy-page.courses-section {
  padding-top: 180px;
}

.intro-page-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.intro-page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
}

.new-to-philosophy-page .courses-grid {
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.courses-grid .card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid #fff;
}

/* ===================== VIDEOS ===================== */
.videos-section {
  padding: 0;
  margin-bottom: 144px;
}

.videos-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.videos-grid-2col .card {
  aspect-ratio: 620 / 348.75;
  min-height: 0;
}

.videos-grid-2col .card {
  border-radius: 0;
  border: none;
}

.videos-grid-2col .card-overlay {
  padding: 24px;
}

.videos-grid-2col .card-title {
}

.videos-grid-2col .card-overlay::after,
.videos-grid-3col .card-overlay::after,
.all-videos-grid .card-overlay::after,
.course-videos-grid .card-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 58%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.videos-grid-2col .card-overlay > *,
.videos-grid-3col .card-overlay > *,
.all-videos-grid .card-overlay > *,
.course-videos-grid .card-overlay > * {
  position: relative;
  z-index: 1;
}

.videos-grid-2col .card-title,
.videos-grid-3col .card-title,
.all-videos-grid .card-title,
.course-videos-grid .card-title {
  text-wrap: pretty;
}

.videos-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.videos-grid-3col .card {
  aspect-ratio: 405.333 / 228;
  min-height: 0;
  border-radius: 0;
  border: none;
}

.videos-grid-3col .card-overlay {
  padding: 16px;
}

.videos-grid-3col .card-title {
  font-size: 1rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.videos-grid-3col .card-desc,
.videos-grid-3col .card-speaker {
  font-size: 0.625rem;
}

/* ===================== ALL VIDEOS PAGE ===================== */
.all-videos-section {
  padding: 144px 0 0;
}

.all-videos-section > .container {
  padding: 0 48px;
}

.all-videos-header {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.all-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.all-videos-grid .card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 0;
  border: none;
}

.all-videos-grid .card-title {
  font-size: 1rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.all-videos-grid .card-overlay {
  padding: 16px;
}

.all-videos-grid .card-speaker {
  font-size: 0.625rem;
}

.all-videos-section .filter-bar {
  display: none;
}

.all-videos-section .filter-panel {
  display: none;
}

/* ===================== FILTERS ===================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.filter-toggle:hover {
  border-color: var(--text);
}

.filter-count {
  background: var(--text);
  color: var(--bg);
  font-size: 0.625rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.filter-count.visible {
  display: flex;
}

.filter-panel {
  display: none;
  background: #F7F7F5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}

.filter-panel.open {
  display: block;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--bg);
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-chip.selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.sort-options {
  display: flex;
  gap: 8px;
}

.sort-option {
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--bg);
  transition: all 0.2s;
}

.sort-option.selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-clear {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-apply {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  padding: 8px 20px;
  border-radius: 4px;
}

/* ===================== VIDEO DETAIL ===================== */
.video-detail {
  padding: 0;
  margin-top: calc(-1 * (var(--nav-top) + var(--nav-height)));
  padding-top: 0;
}

.video-detail > .container {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 144px;
}

.video-main-group {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.video-player {
  width: 100%;
  aspect-ratio: 256 / 135;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  background: #000;
}

/* Poster thumbnail + play button overlay the Stream iframe until playback starts */
.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.video-poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-poster-play:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}
.video-poster-play:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 8px;
  border-radius: 50%;
}
.video-start-badge {
  position: absolute;
  top: calc(50% + 54px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.video-start-badge[hidden] {
  display: none;
}

/* ── Next video overlay (shown on video end) ── */
.next-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.next-video-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.next-video-label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: #fff;
}

.next-video-link {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s;
}

.next-video-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

/* ── Chapters panel (Figma frosted glass) ── */
.chapters-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 101;
  width: 370px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  border: 1px solid white;
  border-radius: 30px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  flex-direction: column;
}
.chapters-panel.open {
  display: flex;
}
.chapters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  flex-shrink: 0;
}
.chapters-panel-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.13;
  color: var(--text);
}
.chapters-panel-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 320px;
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
  border: 1px solid white;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease;
}
.chapters-panel-close:hover {
  background: rgba(255, 255, 255, 0.5);
}
.chapters-panel-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.chapters-panel-list::-webkit-scrollbar {
  width: 6px;
}
.chapters-panel-list::-webkit-scrollbar-track {
  background: transparent;
}
.chapters-panel-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.chapters-panel-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.35);
}
.chapters-panel-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.12s ease;
}
.chapters-panel-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.chapters-panel-item:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.55);
  outline-offset: -2px;
  background: rgba(0, 0, 0, 0.04);
}
.chapters-panel-item .ch-time {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  width: 82px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.chapters-panel-item .ch-title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  flex: 1;
}

/* ── Panel tabs (Chapters / Annotations) ── */
.panel-tabs {
  display: flex;
  gap: 0;
}
.panel-tab {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.13;
  color: var(--text);
  opacity: 0.4;
  padding: 4px 14px;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.panel-tab:hover { opacity: 0.7; }
.panel-tab.active {
  opacity: 1;
}
.panel-pane {
  display: none;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.panel-pane::-webkit-scrollbar { width: 6px; }
.panel-pane::-webkit-scrollbar-track { background: transparent; }
.panel-pane::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
.panel-pane::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }
.panel-pane.active { display: block; }

/* ── Annotations inside panel ── */
.annotations-panel-list {
  padding: 0 16px 16px;
}
.annotations-placeholder {
  padding: 32px 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.35);
  font-family: var(--sans);
  font-size: 14px;
}
.annotation-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  animation: annotation-in 0.3s ease both;
  transition: background 0.12s ease;
}
.annotation-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.annotation-item:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.55);
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.04);
}
.annotation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.annotation-term {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  flex: 1;
}
.annotation-term-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.annotation-term-link:hover {
  opacity: 0.65;
}
.annotation-time {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.annotation-def {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.85;
}
@keyframes annotation-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.annotation-badge {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.45;
  padding: 2px 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.annotation-reading .annotation-def {
  font-style: normal;
  opacity: 0.7;
}

.ui-idle .nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}


.video-content-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 48px;
  gap: 48px;
}

.video-content-main {
  flex: 1;
  max-width: 727px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-meta { margin-bottom: 0; }

.video-detail-title {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0;
}

.video-detail-speaker {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: -15px;
  margin-bottom: 0;
  text-align: left;
}

.video-detail-note {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: -10px;
  margin-bottom: 0;
}

.video-detail-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  max-width: none;
}

.video-detail-desc p {
  margin: 0;
}

.video-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 18px;
}

.video-action-link {
  min-width: 0;
  height: 33px;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 17px;
  text-decoration: none;
}

.video-action-link:hover {
  opacity: 0.8;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.video-tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--bg-footer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-content-sidebar {
  width: 343px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.sidebar-course-card {
  aspect-ratio: 400 / 500;
  width: 100%;
}

.sidebar-course-card .card-overlay {
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  background: var(--course-card-gradient);
  opacity: 1;
}

.sidebar-course-card .card-title {
  font-family: var(--serif);
  font-size: 1.584rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}

.sidebar-course-card .course-card-title-subtitle {
  font-size: 1.125rem;
}

.sidebar-course-card .card-desc {
  max-width: 100%;
  font-size: 0.88rem;
  text-indent: 0;
}

/* Tabs */
.tabs-container {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.tab-content {
  display: none;
  padding: 24px 0;
}

.tab-content.active { display: block; }

.chapter-list { display: flex; flex-direction: column; }

.chapter-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.chapter-item:hover { opacity: 0.6; }

.chapter-time {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 110px;
}

.chapter-title {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.annotation-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.annotation-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.annotation-term {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.annotation-def {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.85;
}

/* Related */
.related-videos {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.related-label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
}

.floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 16px 22px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.33);
  border: 1px solid white;
  border-radius: 22px;
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.floating-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}
.floating-btn-label {
  transition: opacity 0.18s ease;
}
.floating-btn-label.is-fading {
  opacity: 0;
}
.floating-btn.active {
  opacity: 0;
  pointer-events: none;
}

/* ===================== COURSE DETAIL ===================== */
body:has(.course-detail) {
  background: #000;
}

.course-detail {
  padding: 0;
  background: #000;
  color: #fff;
  margin-top: calc(-1 * (var(--nav-top) + var(--nav-height)));
  overflow-x: hidden;
}

.course-detail > .container {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.course-detail-header {
  width: 100%;
  margin: 0;
  padding: calc(var(--nav-top) + var(--nav-height) + 224px) 48px 48px;
  display: grid;
  grid-template-columns: minmax(0, 834px) 328px;
  column-gap: 48px;
  row-gap: 32px;
  justify-content: center;
  align-items: start;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.course-detail-title,
.course-detail-desc {
  max-width: 834px;
  width: 100%;
}

.nav-dark .container {
  background: rgba(0, 0, 0, 0.33);
}

.nav-dark .nav-links a {
  color: #fff;
}

.nav-dark .nav-hamburger span {
  background: #fff;
}

@media (min-width: 769px) {
  body:has(.video-detail) .nav .container {
    background: rgba(0, 0, 0, 0.33);
  }
  body:has(.video-detail) .nav .nav-links a {
    color: #fff;
  }
  body:has(.video-detail) .nav .nav-logo img {
    filter: brightness(0) invert(1);
  }
}

.course-detail-title {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
  margin-bottom: 0;
  color: #fff;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.course-detail-title-inner,
.course-detail-title-main,
.course-detail-title-subtitle {
  display: block;
  width: 100%;
}

.course-detail-title-subtitle {
  margin-top: 0.08em;
  font-size: 0.667em;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.course-detail-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3125;
  color: #fff;
  grid-column: 1;
  grid-row: 2;
}

.course-detail-desc p {
  text-indent: 48px;
  margin-bottom: 0;
}

.course-resume-cta {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 56px auto 28px;
  padding: 0 48px;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.course-resume-cta[hidden] {
  display: none;
}

.course-resume-label,
.course-resume-line {
  display: block;
}

.course-resume-label {
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.66);
}

.course-resume-line {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.18;
  color: #fff;
}

.course-resume-cta:hover .course-resume-line,
.course-resume-cta:focus-visible .course-resume-line {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.course-resume-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.course-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 48px;
  margin-top: 72px;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.course-resume-cta:not([hidden]) + .course-videos-grid {
  margin-top: 0;
}

.course-videos-grid .card {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: none;
}

.course-videos-grid .card-overlay {
  padding: 24px;
}

.course-videos-grid .card-title {
}

.course-detail-desc p.course-detail-youtube {
  margin-top: 0;
}

.course-detail-youtube a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-chapters-page {
  min-height: 100vh;
  padding: calc(var(--nav-top) + var(--nav-height) + 88px) 0 112px;
  background: #000;
  color: #fff;
}

.course-chapters-page > .container {
  max-width: 1120px;
}

.course-chapters-header {
  max-width: 760px;
  margin-bottom: 54px;
}

.course-chapters-back {
  display: inline-block;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.course-chapters-back:hover,
.course-chapters-back:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-chapters-header h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0;
}

.course-chapters-title-main,
.course-chapters-title-subtitle {
  display: block;
}

.course-chapters-title-subtitle {
  margin-top: 0.08em;
  font-size: 0.667em;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.course-chapters-header p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.course-chapters-section {
  margin-top: 34px;
}

.course-chapters-section:first-of-type {
  margin-top: 0;
}

.course-chapters-section h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.course-chapters-lecture-label {
  color: rgba(255, 255, 255, 0.44);
  text-transform: uppercase;
}

.course-chapters-lecture-title {
  color: rgba(255, 255, 255, 0.68);
}

.course-chapters-list {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.course-chapters-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(24px, 1fr) max-content;
  column-gap: 10px;
  align-items: end;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-chapters-title {
  color: #fff;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-chapters-title a {
  color: inherit;
  text-decoration: none;
}

.course-chapters-title a:hover,
.course-chapters-title a:focus-visible {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.course-chapters-rule {
  min-width: 24px;
  height: 1px;
  margin-bottom: 0.34em;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.22) 40%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-size: 5px 1px;
  background-repeat: repeat-x;
}

.course-chapters-time {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.course-chapters-time a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.course-chapters-time a:hover,
.course-chapters-time a:focus-visible {
  color: rgba(255, 255, 255, 0.72);
}

.course-speaker {
  display: contents;
}

.course-speaker + .course-videos-grid {
  margin-top: 72px;
}

.course-speaker-photo-frame {
  display: block;
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  float: none;
  margin: 0 0 18px;
  overflow: hidden;
}

.course-speaker-photo-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}

.course-speaker-photo-row .course-speaker-photo-frame {
  margin: 0;
}

.course-speaker-photo-row-multiple .course-speaker-photo-frame {
  width: 108px;
  height: 108px;
}

.course-speaker-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--speaker-headshot-position, 50% 50%);
  transform: scale(var(--speaker-headshot-scale, 1));
  transform-origin: var(--speaker-headshot-position, 50% 50%);
}

.course-speaker-info {
  grid-column: 2;
  grid-row: 2;
  max-width: 328px;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  box-sizing: border-box;
}

.course-speaker-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.64px;
  text-transform: uppercase;
  color: #fff;
  display: none;
  margin-bottom: 0;
}

.course-speaker-bio {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.333;
  color: #fff;
}

.course-speaker-bio p {
  margin-bottom: 16px;
}

.course-speaker-bio p:last-child {
  margin-bottom: 0;
}

.course-speaker-bio a {
  color: inherit;
  font-style: italic;
  text-decoration: none;
}

/* ===================== ABOUT PAGE ===================== */
.about-section {
  padding: 180px 0 0;
}

.about-section > .container {
  display: flex;
  flex-direction: column;
  gap: 144px;
  align-items: center;
  padding: 0 48px;
}

.about-intro {
  max-width: 834px;
  width: 100%;
}

.about-intro p {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.about-intro p:last-child { margin-bottom: 0; }

.about-intro a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teach-section {
  padding: 180px 0 144px;
}

.teach-section > .container {
  max-width: calc(834px + 96px);
  margin: 0 auto;
  padding: 0 48px;
}

.teach-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.teach-body p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.teach-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teach-subhead {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  margin: 144px 0 20px;
}

.teach-email {
  color: var(--text);
}

.team-section {
  display: flex;
  flex-direction: column;
  gap: 96px;
  align-items: center;
  width: 100%;
}

.team-header {
  max-width: 834px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-label {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.team-description {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  max-width: 834px;
  width: 100%;
}

.team-member-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
  background: #d5d0c9;
}

.team-member-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.13;
  margin-bottom: 12px;
}

.team-member-role {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.team-member-bio {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
}

.team-member-bio p {
  margin-bottom: 12px;
}

.team-member-bio p:last-child {
  margin-bottom: 0;
}

.site-credit {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-top: -64px;
  margin-bottom: -20px;
  text-align: center;
}

.site-credit a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===================== GLOSSARY ===================== */
.glossary-section {
  padding: 124px 0 0;
}

.glossary-section > .container,
.glossary-entry-section > .container {
  max-width: 1000px;
}

.glossary-hero {
  max-width: 720px;
  margin-bottom: 44px;
}

.glossary-title,
.glossary-entry-title {
  font-family: var(--serif-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
}

.glossary-title {
  font-size: 4rem;
  margin-bottom: 18px;
}

.glossary-intro {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.glossary-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.glossary-letter-nav a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.glossary-letter-nav a:hover {
  background: var(--text);
  color: var(--bg);
}

.glossary-groups {
  display: grid;
  gap: 64px;
}

.glossary-group {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
}

.glossary-letter {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  position: sticky;
  top: calc(var(--nav-top) + var(--nav-height) + 24px);
  align-self: start;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.glossary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.24);
}

.glossary-card:hover {
  border-color: rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.42);
}

.glossary-card-kicker,
.glossary-entry-kicker,
.glossary-back,
.glossary-uses-title,
.glossary-use-meta,
.glossary-use-speaker {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.glossary-card-kicker {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.glossary-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
}

.glossary-card-summary {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.glossary-entry-section {
  padding: 180px 0 0;
}

.glossary-back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.glossary-back:hover {
  color: var(--text);
}

.glossary-entry-header {
  max-width: 834px;
  margin-bottom: 72px;
}

.glossary-entry-kicker {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.glossary-entry-title {
  font-size: 3rem;
  margin-bottom: 32px;
}

.glossary-entry-definition p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.glossary-entry-definition p:last-child { margin-bottom: 0; }

.glossary-uses {
  display: grid;
  gap: 18px;
  max-width: 834px;
}

.glossary-uses-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}

.glossary-use {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.glossary-use-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.glossary-use-meta a,
.glossary-use-title a,
.glossary-use-speaker a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.glossary-use-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.glossary-use-speaker {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

.glossary-use-context {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.glossary-use-clips {
  display: grid;
  gap: 16px;
}

.glossary-use-clip {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.glossary-use-time {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===================== CONCEPTS ===================== */
.concepts-section,
.concept-detail-section {
  padding: 124px 0 0;
}

.concepts-section > .container,
.concept-detail-section > .container {
  max-width: 1000px;
}

.concepts-hero,
.concept-detail-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.concepts-title,
.concept-detail-title {
  font-family: var(--serif-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
}

.concepts-title {
  font-size: 4rem;
  margin-bottom: 18px;
}

.concepts-intro,
.concept-definition p {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.concept-definition p + p {
  margin-top: 1.1em;
}

.concepts-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.concepts-tools label {
  display: grid;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.concepts-tools input,
.concepts-tools select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 12px;
}

.concepts-count {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.concept-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.24);
}

.concept-card:hover {
  border-color: rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.42);
}

.concept-card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
}

.concept-card-definition {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.concept-card-meta,
.concept-card-footer,
.concept-back,
.concept-appearance-meta,
.concept-moment-time {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.concept-card-meta {
  margin-top: auto;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.concept-card-footer {
  font-size: 0.625rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.concept-back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.concept-back:hover {
  color: var(--text);
}

.concept-detail-title {
  font-size: 3rem;
  margin-bottom: 28px;
}

.concept-body-section {
  max-width: 834px;
  margin-bottom: 56px;
}

.concept-body-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.concept-body-section p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.concept-appearances {
  display: grid;
  gap: 22px;
}

.concept-appearance,
.concept-moment {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.concept-appearance h3,
.concept-moment h3 {
  font-family: var(--serif-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.concept-appearance h3 a,
.concept-body-section a,
.concept-related-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.concept-appearance-meta {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.concept-moments {
  display: grid;
  gap: 18px;
}

.concept-moment {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
}

.concept-moment-time {
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.concept-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-family: var(--serif);
  font-size: 1.125rem;
}

/* ===================== TRANSCRIPT PAGE ===================== */
.transcript-section {
  padding: 144px 0 80px;
}

.transcript-section > .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.transcript-header {
  margin-bottom: 48px;
}

.transcript-back {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}

.transcript-back:hover {
  color: var(--text);
}

.transcript-title {
  font-family: var(--serif-display);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.transcript-speaker {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.transcript-body h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 48px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.transcript-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.transcript-body p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.transcript-body .audience-question {
  font-style: italic;
  padding-left: 20px;
  border-left: 3px solid var(--border);
  margin: 28px 0;
  color: var(--text);
}

.transcript-body .qa-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

/* ===================== TEXT PAGES ===================== */
.text-page {
  padding: 144px 0 0;
  max-width: 620px;
  margin: 0 auto;
}

.text-page .page-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.text-page .page-date {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.text-page h2 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.13;
  margin-top: 48px;
  margin-bottom: 24px;
}

.text-page h2:first-of-type {
  margin-top: 48px;
}

.text-page h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  margin-top: 24px;
  margin-bottom: 12px;
}

.text-page p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.text-page p:last-child {
  margin-bottom: 0;
}

.text-page ul {
  margin-bottom: 0;
  padding-left: 0;
}

.text-page ul li {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 0;
}

.text-page-image {
  width: 406px;
  max-width: 100%;
  height: 507px;
  margin: 48px auto;
  background: #d5d0c9;
  object-fit: cover;
}

.text-page a {
  color: var(--text);
  text-decoration: underline;
}

/* ===================== CONTACT ===================== */
.contact-section {
  padding: 256px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.contact-inner {
  text-align: center;
  max-width: 460px;
}

.contact-inner .page-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.contact-inner p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--text);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.newsletter-form button {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.8; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-footer);
  padding: 192px 48px 48px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 96px;
}

.footer-links-group {
  flex: 1 0 0;
  display: flex;
  gap: 96px;
  align-items: flex-end;
}

.footer-main-links {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-main-links a {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-on-footer);
  transition: opacity 0.2s;
}

.footer-main-links a:hover { opacity: 0.7; }

.footer-secondary-links {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-secondary-links a {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-on-footer);
  transition: opacity 0.2s;
}

.footer-secondary-links a:hover { opacity: 0.7; }

.footer-brand {
  flex-shrink: 0;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-logo {
  display: block;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-copy {
  font-family: var(--serif);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-on-footer);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) and (min-width: 769px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 1024px) {
  .video-content-sidebar {
    width: 288px;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 16px; }

  .card-title {
    font-size: 1rem;
    line-height: 1.13;
    letter-spacing: 0;
  }

  .card-meta {
    flex: 0 0 clamp(112px, 36%, 150px);
    max-width: clamp(112px, 36%, 150px);
  }

  .card-meta-course,
  .card-meta-speaker {
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    line-height: 1.35;
  }

  .card-overlay .card-meta-speaker {
    display: none;
  }

  main {
    padding-top: calc(var(--nav-mobile-top) + var(--nav-height) + 16px + env(safe-area-inset-top, 0px));
  }

  .nav {
    top: calc(var(--nav-mobile-top) + env(safe-area-inset-top, 0px));
    width: auto;
    max-width: none;
    left: 16px;
    right: 16px;
    transform: none;
  }

  .nav .container {
    width: 100%;
    height: 64px;
    padding: 16px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 32px; }

  .hero {
    padding: 40px 0 96px;
  }

  .hero .container {
    max-width: none;
    padding: 0 24px;
  }

  .hero-quote {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.25;
  }

  .hero-cta {
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
  }

  main {
    padding-bottom: 96px;
  }

  .courses-section,
  .videos-section {
    margin-bottom: 96px;
  }

  .courses-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .courses-grid .card {
    flex: 0 0 calc(100vw - 70px);
    height: 415px;
    scroll-snap-align: center;
  }

  .courses-grid .card:first-child {
    scroll-snap-align: start;
  }

  .courses-grid .card-title {
    font-size: 1.39rem;
    letter-spacing: -0.02em;
    transform: translateX(-1px);
  }

  .courses-grid .course-card-title-subtitle {
    font-size: 1.16rem;
    line-height: 1.05;
    transform: none;
  }

  .courses-grid .card-overlay {
    background: var(--course-card-gradient-mobile);
  }

  .courses-page .section-title {
    display: none;
  }

  .intro-page-header {
    margin: 0 auto 40px;
    text-align: center;
  }

  .courses-page.courses-section {
    padding-top: 0;
    margin-top: 24px;
  }

  .new-to-philosophy-page.courses-section {
    padding-top: 60px;
    margin-top: 0;
  }

  .courses-page .courses-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: visible;
    grid-template-columns: unset;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    scroll-snap-type: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .courses-page .courses-grid .card {
    flex: unset;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 500;
    scroll-snap-align: unset;
  }

  .videos-grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .videos-grid-2col .card {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .videos-grid-2col .card-overlay {
    padding: 16px;
  }

  .videos-grid-2col .card-title {
  }

  .videos-grid-3col {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100vw - 70px);
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .videos-grid-3col .card {
    aspect-ratio: 332 / 186.75;
    min-height: 0;
    scroll-snap-align: center;
  }

  .videos-grid-3col .card:first-child {
    scroll-snap-align: start;
  }

  .course-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
    margin-top: 96px;
  }

  .course-videos-grid .card {
    aspect-ratio: 16 / 9;
  }

  .course-detail {
    margin-top: calc(-1 * (var(--nav-mobile-top) + var(--nav-height) + 16px + env(safe-area-inset-top, 0px)));
  }

  .course-detail > .container {
    gap: 0;
  }

  .course-detail-header {
    display: contents;
  }

  .course-detail-title {
    background-size: cover;
    background-position: center;
    aspect-ratio: 400 / 500;
    max-height: 500px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: left;
    padding: 16px;
    font-size: 2rem;
    max-width: none;
    color: #fff;
  }

  .course-detail-title-compact {
    aspect-ratio: 400 / 420;
    max-height: 420px;
  }

  .course-detail-title-subtitle {
    margin-top: 0.04em;
    font-size: 0.667em;
    line-height: 1.05;
  }

  .course-detail-title-inner {
    transform: translateY(-99px);
  }

  .course-detail-desc {
    max-width: none;
    padding: 16px;
    margin-top: -83px;
  }

  .course-resume-cta {
    margin-top: 48px;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .course-resume-label {
    font-size: 0.875rem;
  }

  .course-resume-line {
    font-size: 1.0625rem;
  }

  .course-detail .course-videos-grid {
    margin-top: 96px;
  }

  .course-detail .course-resume-cta:not([hidden]) + .course-videos-grid {
    margin-top: 0;
  }

  .course-chapters-page {
    padding: calc(var(--nav-mobile-top) + var(--nav-height) + 56px + env(safe-area-inset-top, 0px)) 0 72px;
  }

  .course-chapters-page > .container {
    padding: 0 16px;
  }

  .course-chapters-header {
    margin-bottom: 36px;
  }

  .course-chapters-back {
    margin-bottom: 18px;
  }

  .course-chapters-header h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .course-chapters-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 12px;
    align-items: start;
    padding: 10px 0;
  }

  .course-chapters-title {
    font-size: 0.875rem;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .course-chapters-rule {
    display: none;
  }

  .course-chapters-section {
    margin-top: 30px;
  }

  .course-chapters-section h2 {
    margin-bottom: 8px;
    font-size: 0.6875rem;
  }

  .course-chapters-time {
    text-align: right;
    font-size: 0.625rem;
  }

  .course-speaker {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    width: 100%;
    margin-top: 72px;
    margin-bottom: 0;
    padding: 0 16px;
  }

  .course-speaker-photo-frame {
    display: block;
    float: none;
    width: 60%;
    max-width: 179px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    grid-column: auto;
    grid-row: auto;
    margin: 0 0 18px;
  }

  .course-speaker-info {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    padding: 24px;
  }

  .course-speaker + .course-videos-grid {
    margin-top: 72px;
  }

  .about-section {
    padding: 60px 0 0;
  }

  .about-section > .container {
    gap: 67px;
    padding: 0 16px;
  }

  .about-intro p {
    font-size: 1.5rem;
  }

  .team-section {
    gap: 54px;
  }


  .team-description {
    font-size: 1.5rem;
  }

  .site-credit {
    margin-top: 0;
  }

  .teach-section {
    padding: 60px 0 96px;
  }

  .teach-section > .container {
    padding: 0 16px;
  }

  .teach-subhead {
    margin-top: 96px;
  }

  .teach-body p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .transcript-section {
    padding: 80px 0 60px;
  }

  .transcript-title {
    font-size: 1.75rem;
  }

  .transcript-body p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .text-page {
    padding: 60px 0 0;
  }

  .glossary-section,
  .glossary-entry-section {
    padding: 60px 0 0;
  }

  .glossary-section > .container,
  .glossary-entry-section > .container {
    padding: 0 16px;
  }

  .glossary-hero {
    margin-bottom: 32px;
  }

  .glossary-title {
    font-size: 2.5rem;
  }

  .glossary-entry-title {
    font-size: 2.25rem;
  }

  .glossary-intro {
    font-size: 1.125rem;
  }

  .glossary-entry-definition p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .glossary-letter-nav {
    margin-bottom: 44px;
  }

  .glossary-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glossary-letter {
    position: static;
    font-size: 2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .glossary-list {
    grid-template-columns: 1fr;
  }

  .glossary-card {
    min-height: 0;
    padding: 18px;
  }

  .glossary-entry-header {
    margin-bottom: 52px;
  }

  .glossary-use-title {
    font-size: 1.5rem;
  }

  .glossary-use-clip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .concepts-section,
  .concept-detail-section {
    padding: 60px 0 0;
  }

  .concepts-section > .container,
  .concept-detail-section > .container {
    padding: 0 16px;
  }

  .concepts-title {
    font-size: 2.5rem;
  }

  .concept-detail-title {
    font-size: 2.25rem;
  }

  .concepts-intro,
  .concept-definition p {
    font-size: 1.125rem;
  }

  .concepts-tools {
    grid-template-columns: 1fr;
  }

  .concepts-grid {
    grid-template-columns: 1fr;
  }

  .concept-card {
    min-height: 0;
    padding: 18px;
  }

  .concept-body-section p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .concept-appearance h3,
  .concept-moment h3 {
    font-size: 1.5rem;
  }

  .concept-moment {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    padding-top: 120px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-detail {
    margin-top: 0;
    padding-top: 42px;
  }

  .video-detail > .container {
    gap: 48px;
  }

  .video-main-group {
    gap: 24px;
  }

  .video-content-layout {
    flex-direction: column;
    padding: 0 16px;
  }

  .video-content-sidebar {
    width: 100%;
  }

  .sidebar-course-card .card-title {
    font-size: 1.39rem;
    letter-spacing: -0.02em;
  }

  .sidebar-course-card .course-card-title-subtitle {
    line-height: 1.05;
  }

  .sidebar-course-card .card-overlay {
    background: var(--course-card-gradient-mobile);
  }

  .video-detail-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .video-detail-note { text-align: center; }

  .video-detail-speaker { text-align: center; }

  .video-detail-desc {
    text-indent: 48px;
  }

  .video-actions {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .video-action-link {
    font-size: 0.85rem;
    padding: 9px 18px;
  }

  .related-videos {
    padding: 0 16px;
  }

  .next-video-overlay {
    bottom: 40px;
    padding: 0 20px;
  }

  .next-video-label {
    font-size: 0.8rem;
  }

  .next-video-link {
    font-size: 1rem;
  }

  .all-videos-section {
    padding: 60px 0 0;
  }

  .all-videos-section > .container {
    padding: 0 16px;
  }

  .all-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .all-videos-header {
    font-size: 1rem;
    text-align: left;
  }

  .all-videos-grid .card {
    aspect-ratio: 16 / 9;
  }

  .ui-idle .nav {
    transform: translateY(-20px);
  }

  .floating-btn {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
  }

  .chapters-panel {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    top: calc(var(--nav-mobile-top) + var(--nav-height) + 16px + env(safe-area-inset-top, 0px));
    max-height: none;
    border-radius: 24px;
  }

  .footer {
    padding: 64px 16px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .footer-links-group {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .footer-main-links,
  .footer-secondary-links {
    align-items: center;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-main-links a {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ===================== SKIP TO MAIN ===================== */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-to-main:focus {
  top: 8px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ===================== 404 ERROR PAGE ===================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 200px);
  padding: 96px 0;
}

.error-page-code {
  font-family: var(--serif-display);
  font-size: 8rem;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page-message {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
