/* =============================================================
   POST AI Conference — Main Stylesheet
   Library walkthrough aesthetic
   ============================================================= */

:root {
  --ivory:      #f7f3e9;
  --ivory-warm: #f1ebdb;
  --ink:        #0a1522;
  --ink-soft:   #2a3548;
  --sand:       #d3c290;
  --teal:       #b7e3ea;
  --c-purple:   #d9cfe8;
  --c-blue:     #cdd9e8;
  --c-yellow:   #ece4c2;
  --c-red:      #e8cfcf;
  --c-blurple:  #d2d0e8;
}

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

html {
  background: var(--ivory);
  scroll-behavior: smooth;
}

html, body {
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body { background: transparent; }

/* Strand background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../img/twist.png');
  background-repeat: repeat-y;
  background-position: left top;
  /*background-size: 320px auto;*/
}

/* All content above strand */
.color-strip,
.nav,
.mobile-menu,
.page-hero,
.hero,
.library,
.orb-section,
.site-footer { position: relative; z-index: 1; }
.nav { z-index: 50; }
.mobile-menu { z-index: 40; }


/* =============================================================
   COLOR STRIP
   ============================================================= */

.color-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  height: 6px;
}
.color-strip span { display: block; height: 100%; }
.color-strip .s1 { background: var(--c-purple); }
.color-strip .s2 { background: var(--c-blue); }
.color-strip .s3 { background: var(--c-yellow); }
.color-strip .s4 { background: var(--c-red); }
.color-strip .s5 { background: var(--c-blurple); }


/* =============================================================
   NAVIGATION
   ============================================================= */

.nav {
  position: fixed;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-pinned {
  background: rgba(247, 243, 233, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(10, 21, 34, 0.08);
}

.nav__brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7f3e9;
  text-decoration: none;
  transition: color 0.35s ease;
}
.nav.is-pinned .nav__brand,
.nav.is-light .nav__brand { color: var(--ink); }

.nav__links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav__links a {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #f7f3e9;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.35s ease;
}
.nav.is-pinned .nav__links a,
.nav.is-light .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav__lang {
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav__lang button {
  background: transparent;
  border: 0;
  color: #f7f3e9;
  opacity: 0.55;
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font: inherit;
  letter-spacing: inherit;
  transition: opacity 0.2s ease, color 0.35s ease;
}
.nav.is-pinned .nav__lang button,
.nav.is-light .nav__lang button { color: var(--ink); }
.nav__lang button:hover { opacity: 1; }
.nav__lang button.is-active { opacity: 1; }
.nav__lang .sep {
  width: 1px; height: 10px;
  background: currentColor;
  opacity: 0.3;
  display: inline-block;
}

.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  color: #f7f3e9;
  margin-left: 0.5rem;
  transition: color 0.35s ease;
}
.nav.is-pinned .nav__burger,
.nav.is-light .nav__burger { color: var(--ink); }
.nav__burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.2s ease,
              top 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav__burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav { padding: 1rem 1.25rem; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__lang { font-size: 0.68rem; }
  .nav__lang button { padding: 0.4rem 0.4rem; }
}


/* =============================================================
   MOBILE MENU
   ============================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ivory);
  padding: 6rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.mobile-menu__links a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__links li:nth-child(1) a { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) a { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) a { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) a { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(5) a { transition-delay: 0.36s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(6) a { transition-delay: 0.42s; }

.mobile-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 21, 34, 0.1);
}

body.menu-open { overflow: hidden; }


/* =============================================================
   HERO — index page only
   ============================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--ink);
  background-image: url('https://postai.ccef3.com/assets/img/slider/slide1.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 34, 0.52);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14vh 6vw 10vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  color: #f7f3e9;
}

.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 2.5rem;
  font-variation-settings: 'opsz' 144;
  color: #f7f3e9;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroRise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero__title .word:nth-child(1) { animation-delay: 0.15s; }
.hero__title .word:nth-child(2) { animation-delay: 0.35s; margin-left: 0.3em; }

.hero__meta {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.4;
  max-width: 36em;
  color: #f7f3e9;
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s forwards;
}
.hero__meta .line { display: block; }
.hero__meta .line + .line { margin-top: 0.2em; font-style: normal; letter-spacing: 0.02em; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .word,
  .hero__meta { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero__inner { padding: 10vh 6vw 8vh; }
}


/* =============================================================
   HERO SUB-NAV — floating orb below hero, over ivory
   ============================================================= */

.hero-sub-nav {
  display: flex;
  justify-content: center;
  padding: 0 6vw;
  position: relative;
  z-index: 10;
  margin-top: -2rem;
  margin-bottom: 1rem;
}

.hero-sub-nav__orb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  background: var(--ink);
  border-radius: 3rem 1.75rem 2.5rem 2.25rem;
  padding: 0.875rem 2rem;
  box-shadow:
    0 6px 24px rgba(10, 21, 34, 0.2),
    0 2px 6px rgba(10, 21, 34, 0.1);
}

.hero-sub-nav__orb li {
  display: flex;
  align-items: center;
}

.hero-sub-nav__orb li + li::before {
  content: '·';
  color: rgba(211, 194, 144, 0.4);
  padding: 0 0.9rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
}

.hero-sub-nav__orb a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.hero-sub-nav__orb a:hover {
  color: var(--ivory);
}

@media (max-width: 640px) {
  .hero-sub-nav { margin-top: -1.5rem; }
  .hero-sub-nav__orb {
    border-radius: 2rem 1.25rem 1.75rem 1.5rem;
    padding: 0.75rem 1.25rem;
  }
  .hero-sub-nav__orb li + li::before { padding: 0 0.6rem; }
  .hero-sub-nav__orb a { font-size: 0.65rem; }
}


/* =============================================================
   PAGE HERO — sub-pages
   ============================================================= */

.page-hero {
  padding: 10rem 0 6rem;
  background: transparent;
}
.page-hero__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6vw;
}
.page-hero .running-head { margin-bottom: 3rem; }
.page-hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
  font-variation-settings: 'opsz' 144;
}
.page-hero__title em { font-style: italic; color: var(--ink-soft); }
.page-hero__lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  max-width: 44ch;
}


/* =============================================================
   LIBRARY ROOMS
   ============================================================= */

.library {
  background: transparent;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  position: relative;
}

.room {
  position: relative;
  padding: 10rem 0 8rem;
  overflow: hidden;
}
.room + .room { border-top: 1px solid rgba(10, 21, 34, 0.08); }

.room__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6vw;
  position: relative;
}

.running-head {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 4rem;
}
.running-head::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--sand);
}
.running-head .folio { margin-left: auto; opacity: 0.5; }

.room__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 14ch;
  margin-bottom: 3rem;
  font-variation-settings: 'opsz' 144;
}
.room__title em { font-style: italic; color: var(--ink-soft); }

.prose {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 32em;
}
.prose p + p { margin-top: 1.1em; text-indent: 1.6em; }
.prose p.dropcap::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--ink);
}

.marginalia {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 1px solid var(--sand);
  padding-left: 1.25rem;
  max-width: 22ch;
}
.marginalia .attr {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.folio-corner {
  position: absolute;
  bottom: 2rem;
  right: 6vw;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  opacity: 0.5;
}

.accent-rule {
  width: 60px; height: 1px;
  background: var(--teal);
  margin: 2.5rem 0;
}


/* =============================================================
   PHOTO PLATES
   ============================================================= */

.plate {
  position: relative;
  background: var(--ivory-warm);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(10,21,34,0.06), 0 30px 60px -30px rgba(10,21,34,0.18);
  border-radius: 58% 42% 64% 36% / 38% 56% 44% 62%;
}
.plate--portrait  { aspect-ratio: 3 / 4; }
.plate--landscape { aspect-ratio: 4 / 3; }
.plate--wide {
  aspect-ratio: 16 / 9;
  border-radius: 38% 62% 42% 58% / 60% 40% 60% 40%;
}

.plate__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, transparent 49.5%, rgba(10,21,34,0.06) 49.5%, rgba(10,21,34,0.06) 50.5%, transparent 50.5%);
}
.plate__caption {
  display: block;
  margin-top: 0.9rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}
.plate__caption .num { color: var(--sand); margin-right: 0.6rem; }


/* =============================================================
   ROOM I — READING ROOM
   ============================================================= */

.room__grid,
.room--reading .room__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem 5rem;
  align-items: start;
}
.room--reading .col-left { padding-top: 0; }
.room--reading .col-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 4rem;
}
.room--reading .marginalia { margin-top: 2.5rem; }
.room--reading .plate--portrait {
  border-radius: 62% 38% 55% 45% / 42% 58% 42% 58%;
}


/* =============================================================
   ROOM II — THE STACKS (session/group cards)
   ============================================================= */

.room--stacks { padding-top: 7rem; }
.room--stacks .stacks__lede {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: end;
  margin-bottom: 6rem;
}
.room--stacks .plate--wide { margin-bottom: 6rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.card {
  grid-column: span 4;
  background: var(--ivory);
  border: 1px solid rgba(10, 21, 34, 0.08);
  border-radius: 999px 999px 24px 24px / 220px 220px 24px 24px;
  padding: 3rem 2.25rem 2.25rem 2.75rem;
  position: relative;
  box-shadow: 0 1px 0 rgba(10,21,34,0.04), 0 20px 40px -20px rgba(10,21,34,0.12);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
  animation: float 9s ease-in-out infinite;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Book spine */
.card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: var(--ink);
  border-radius: 6px 0 0 6px;
}
/* Embossed spine line */
.card::after {
  content: '';
  position: absolute;
  top: 28%; bottom: 28%;
  left: 2px; width: 2px;
  background: var(--sand);
  opacity: 0.55;
}
.card:nth-child(3n+2)::after { background: var(--teal); opacity: 0.7; }
.card:nth-child(3n+3)::after { background: var(--ivory-warm); opacity: 0.8; }

.card:nth-child(1) { margin-top: 0;     animation-delay: -1.2s; }
.card:nth-child(2) { margin-top: 3rem;  animation-delay: -3.6s; }
.card:nth-child(3) { margin-top: 1rem;  animation-delay: -5.4s; }
.card:nth-child(4) { margin-top: 4rem;  animation-delay: -2.1s; }
.card:nth-child(5) { margin-top: 1.5rem; animation-delay: -7.3s; }
.card:nth-child(6) { margin-top: 3.5rem; animation-delay: -0.5s; }

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(10,21,34,0.04), 0 30px 60px -20px rgba(10,21,34,0.18);
}

.card__cat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card__cat .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand);
  display: inline-block;
}
.card:nth-child(3n+2) .card__cat .dot { background: var(--teal); }
.card:nth-child(3n+3) .card__cat .dot { background: var(--ink); opacity: 0.5; }

.card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.card__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.card__foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(10, 21, 34, 0.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card__foot .arrow {
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.card:hover .card__foot .arrow { opacity: 1; transform: translateX(4px); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}


/* =============================================================
   QUOTE ORBS
   ============================================================= */

.orb-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.orb-section__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
}

.orb {
  position: relative;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 40px 80px -40px rgba(10, 21, 34, 0.35);
  animation: orbFloat 14s ease-in-out infinite;
  transform-origin: center;
}
.orb__quote {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 144;
}
.orb__quote em { font-style: italic; }
.orb__attr {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.orb__attr::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.8rem;
  opacity: 0.6;
}

.orb__photo {
  position: absolute;
  width: 140px; height: 180px;
  background: var(--ivory-warm);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(10,21,34,0.1), 0 20px 40px -20px rgba(10,21,34,0.3);
}
.orb__photo .plate__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  background: linear-gradient(135deg, transparent 49.5%, rgba(10,21,34,0.08) 49.5%, rgba(10,21,34,0.08) 50.5%, transparent 50.5%);
}

.orb--ink {
  background: var(--ink);
  color: var(--teal);
  border-radius: 55% 38% 55% 45% / 40% 60% 40% 50%;
  max-width: 720px;
  margin-left: 4%;
  margin-right: auto;
  transform: rotate(-1.5deg);
  padding-right: 11rem;
}
.orb--ink .orb__photo {
  right: -2.5rem;
  bottom: 3rem;
  border-radius: 58% 42% 50% 50% / 55% 45% 55% 45%;
  transform: rotate(4deg);
}

.orb--teal {
  background: var(--teal);
  color: var(--ink);
  border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
  max-width: 640px;
  margin-left: auto;
  margin-right: 3%;
  transform: rotate(1.5deg);
}

.orb--sand {
  background: var(--sand);
  color: var(--ink);
  border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%;
  max-width: 760px;
  margin: 0 auto;
  transform: rotate(-1deg);
  padding: 6rem;
}
.orb--sand .orb__quote { font-size: clamp(1.7rem, 3vw, 2.6rem); }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%       { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
.orb--ink  { --rot: -1.5deg; }
.orb--teal { --rot: 1.5deg; }
.orb--sand { --rot: -1deg; }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

@media (max-width: 760px) {
  .orb {
    padding: 3rem 2.5rem;
    max-width: 100% !important;
    margin: 0 !important;
    transform: rotate(0) !important;
  }
  .orb--ink { padding-right: 2.5rem; padding-bottom: 11rem; }
  .orb--ink .orb__photo { right: 1.5rem; bottom: 1.5rem; width: 110px; height: 140px; }
  .orb--sand { padding: 3.5rem 2.5rem; }
  .orb-section { padding: 3rem 0; }
}


/* =============================================================
   PROGRAMME TABLE — broadsheet style
   ============================================================= */

.room--programme { padding-bottom: 9rem; }

.programme {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 1rem;
}

.programme__head,
.programme__row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr 1fr;
}

.programme__head {
  border-bottom: 1px solid var(--ink);
}
.programme__head .cell {
  padding: 1.25rem 1rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.programme__head .cell .track-sub {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.programme__head .cell:first-child { color: var(--ink-soft); opacity: 0.6; }

.programme__row {
  border-bottom: 1px solid rgba(10, 21, 34, 0.12);
}
.programme__row:last-child { border-bottom: 0; }

.programme__row .cell {
  padding: 1.35rem 1rem;
  border-left: 1px solid rgba(10, 21, 34, 0.08);
  min-height: 92px;
  position: relative;
}
.programme__row .cell:first-child {
  border-left: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding-top: 1.5rem;
}

.session { display: flex; flex-direction: column; gap: 0.4rem; }
.session__cat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.session__cat .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sand);
  display: inline-block;
}
.session--talk    .session__cat .dot { background: var(--ink); opacity: 0.6; }
.session--keynote .session__cat .dot { background: var(--ink); width: 7px; height: 7px; }
.session--workshop .session__cat .dot { background: var(--teal); }
.session--reading .session__cat .dot { background: var(--sand); }

.session__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.session__title em { font-style: italic; color: var(--ink-soft); }
.session__speaker {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.8;
}

.session--break {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  opacity: 0.55;
  display: flex;
  align-items: center;
  height: 100%;
}
.session--break::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  margin-right: 0.6rem;
  opacity: 0.7;
}

.programme__row .cell.is-keynote  { background: rgba(211, 194, 144, 0.12); }
.programme__row .cell.is-feature  { background: rgba(183, 227, 234, 0.18); }

.programme__legend {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.programme__legend .item { display: flex; align-items: center; gap: 0.55rem; }
.programme__legend .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }
.programme__legend .item--keynote  .swatch { width: 10px; height: 10px; }
.programme__legend .item--talk     .swatch { opacity: 0.5; }
.programme__legend .item--workshop .swatch { background: var(--teal); }
.programme__legend .item--reading  .swatch { background: var(--sand); }

@media (max-width: 900px) {
  .programme__head { display: none; }
  .programme__row {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }
  .programme__row .cell {
    border-left: 0;
    border-bottom: 1px solid rgba(10, 21, 34, 0.08);
    padding: 1.25rem 1rem;
  }
  .programme__row .cell:first-child {
    background: var(--ink);
    color: var(--ivory);
    padding: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
  .programme__row .cell:not(:first-child)::before {
    content: attr(data-track);
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.6;
    margin-bottom: 0.5rem;
  }
}


/* =============================================================
   ROOM III — THE GARDEN / IZU
   ============================================================= */

.room--garden { padding-bottom: 12rem; }
.room--garden .garden__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.room--garden .plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.room--garden .plate:nth-child(1) { margin-top: 3rem; border-radius: 55% 45% 62% 38% / 40% 60% 40% 60%; }
.room--garden .plate:nth-child(2) { margin-top: 0; border-radius: 40% 60% 36% 64% / 58% 42% 58% 42%; }
.room--garden .prose { margin-bottom: 2.5rem; }


/* =============================================================
   CTA LINK ROW
   ============================================================= */

.cta-link {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: var(--teal);
  border-radius: 3px 18px 10px 22px;
  padding: 0.55rem 1.4rem 0.55rem 1.1rem;
  margin-top: 2rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cta-link + .cta-link { margin-top: 0.75rem; }
.cta-link:hover {
  background: #8ecfd8;
  transform: translateY(-1px);
}


/* =============================================================
   REGISTER GRID — register.html
   ============================================================= */

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  margin-top: 4rem;
}

.register-card {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  border: 1px solid rgba(10, 21, 34, 0.1);
  position: relative;
}
.register-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--sand);
}
.register-card:nth-child(2)::before { background: var(--teal); }
.register-card:nth-child(3)::before { background: var(--c-purple); }
.register-card:nth-child(4)::before { background: var(--ink); }
.register-card:nth-child(5)::before { background: var(--c-red); }

.register-card__head {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  opacity: 0.8;
}
.register-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.register-card .prose { max-width: 100%; font-size: 1rem; }
.register-card .cost {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(10, 21, 34, 0.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}


/* =============================================================
   THEMES GRID
   ============================================================= */

.themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 6rem;
  margin-top: 2rem;
}
.theme-item { }
.theme-item__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.theme-item__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
  opacity: 0.4;
}
.theme-item__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-variation-settings: 'opsz' 144;
}
.theme-item__sub {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.theme-item .prose { font-size: 1rem; }


/* =============================================================
   PRINCIPLES PAGE — Protocol blob
   ============================================================= */

.protocol-blob-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 6vw 6rem;
}

.protocol-blob {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 6px 48px 24px 64px;
  padding: 4rem 5rem;
  max-width: 860px;
}

.protocol-blob__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.protocol-blob__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ivory);
  font-variation-settings: 'opsz' 144;
  margin-bottom: 1.5rem;
}

.protocol-blob__title em {
  font-style: italic;
  color: var(--teal);
}

.protocol-blob__body {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ivory);
  opacity: 0.85;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.protocol-blob__link {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: var(--teal);
  border-radius: 3px 18px 10px 22px;
  padding: 0.55rem 1.4rem 0.55rem 1.1rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.protocol-blob__link:hover {
  background: #8ecfd8;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .protocol-blob {
    padding: 2.5rem 2rem;
    border-radius: 4px 28px 14px 36px;
  }
}


/* =============================================================
   PRINCIPLES PAGE — Three-volume grid
   ============================================================= */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 5rem;
  margin-top: 2rem;
  align-items: start;
}

.principles-vol {
  border-top: 3px solid var(--sand);
  padding-top: 2rem;
}

.principles-vol--one { border-top-color: var(--c-yellow); }
.principles-vol--two { border-top-color: var(--teal); }
.principles-vol--three { border-top-color: var(--c-blue); }

.principles-vol .cta-link { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem 0;
  }
}


/* =============================================================
   GARDEN PLAQUE PRICING
   ============================================================= */

.plaque-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
}
.plaque-tier {
  flex: 1 1 200px;
  padding: 1.75rem;
  border: 1px solid rgba(10, 21, 34, 0.1);
  background: var(--ivory-warm);
}
.plaque-tier__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  opacity: 0.75;
}
.plaque-tier__price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.plaque-tier__detail {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}


/* =============================================================
   SITE FOOTER
   ============================================================= */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 5rem 0 3.5rem;
}
.site-footer__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem 5rem;
  align-items: start;
}
.site-footer__brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.site-footer__tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(247,243,233,0.65);
  max-width: 28ch;
}
.site-footer__heading {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,243,233,0.45);
  margin-bottom: 1.25rem;
}
.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.site-footer__links a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  color: rgba(247,243,233,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__links a:hover { color: var(--ivory); }
.site-footer__bottom {
  max-width: 1280px;
  margin: 3.5rem auto 0;
  padding: 2rem 6vw 0;
  border-top: 1px solid rgba(247,243,233,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,243,233,0.35);
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { color: rgba(247,243,233,0.7); }


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 900px) {
  .room { padding: 7rem 0 5rem; }
  .room__grid,
  .room--reading .room__grid,
  .room--stacks .stacks__lede,
  .room--garden .garden__grid,
  .themes-grid,
  .register-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .room--reading .col-right { padding-top: 0; }
  .card { grid-column: span 12 !important; margin-top: 0 !important; }
  .room--garden .plates { grid-template-columns: 1fr; }
  .room--garden .plate:nth-child(1) { margin-top: 0; }
  .running-head { margin-bottom: 2.5rem; }
  .site-footer__wrap { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .page-hero { padding: 8rem 0 4rem; }
  .orb-section { padding: 2.5rem 0; }
  .plaque-pricing { flex-direction: column; }
}


/* =============================================================
   SCHEDULE COMPONENT — animated tabbed days
   ============================================================= */

:root {
  --mod-amber:   #b5720a;
  --mod-green:   #2f7d52;
  --mod-purple:  #6650a0;
  --mod-blue:    #3a6a9e;
  --mod-teal:    #0a8f8c;
  --mod-neutral: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
  .sched {
    --sched-bg:       #111820;
    --sched-surface:  #18202c;
    --sched-border:   rgba(247,243,233,0.1);
    --sched-hairline: rgba(247,243,233,0.07);
    --sched-ink:      #eee8d8;
    --sched-ink-soft: rgba(238,232,216,0.6);
    --sched-defs-bg:  rgba(247,243,233,0.04);
    --mod-amber:      #f0a838;
    --mod-green:      #4db87a;
    --mod-purple:     #9c82c8;
    --mod-blue:       #6090c8;
    --mod-teal:       #2dc8c5;
    --mod-neutral:    rgba(238,232,216,0.55);
  }
}

/* Component shell */
.sched {
  --sched-bg:       var(--ivory);
  --sched-surface:  var(--ivory-warm);
  --sched-border:   rgba(10,21,34,0.13);
  --sched-hairline: rgba(10,21,34,0.07);
  --sched-ink:      var(--ink);
  --sched-ink-soft: var(--ink-soft);
  --sched-defs-bg:  rgba(10,21,34,0.03);

  background: var(--sched-bg);
  border: 0.5px solid var(--sched-border);
  border-radius: 12px;
  overflow: hidden;
}

/* ── Tab strip ──────────────────────────────────────────────── */
.sched__tabwrap {
  position: relative;
  border-bottom: 0.5px solid var(--sched-border);
  background: var(--sched-surface);
}

.sched__tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sched__tabs::-webkit-scrollbar { display: none; }

.sched__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.65rem 1.1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--sched-ink-soft);
  white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.15s ease;
  position: relative;
  text-align: left;
  -webkit-appearance: none;
}

.sched__tab:hover:not([aria-selected="true"]) {
  color: var(--sched-ink);
  background: var(--sched-hairline);
}

.sched__tab[aria-selected="true"] {
  color: var(--sched-ink);
}

.sched__tab-day {
  font-size: 0.6rem;
  opacity: 0.5;
  letter-spacing: 0.14em;
}

.sched__tab-theme {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  line-height: 1.1;
}

/* Day 5 — slight separation to signal the finale */
.sched__tab--finale {
  margin-left: 1rem;
  border-left: 0.5px solid var(--sched-border);
  padding-left: 1.25rem;
}

/* Sliding underline indicator */
.sched__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--sched-ink);
  border-radius: 2px 2px 0 0;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sched__indicator { transition: none; }
}

/* ── Panel container ─────────────────────────────────────────── */
.sched__panels {
  position: relative;
}

.sched__panel {
  display: none;
}

.sched__panel.is-active {
  display: block;
}

/* Outgoing panel goes absolute so it doesn't affect height during transition */
.sched__panel.is-exiting {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

/* Entrance animation (fires on first scroll-into-view) */
@keyframes schedEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sched__panel.is-entering {
  animation: schedEnter 380ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .sched__panel.is-entering { animation: none; }
}

/* ── Panel header ────────────────────────────────────────────── */
.sched__phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 0.5px solid var(--sched-hairline);
  background: var(--sched-surface);
}

.sched__headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  color: var(--sched-ink);
  letter-spacing: -0.01em;
}

/* Module colour pill */
.sched__pill {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  color: var(--ivory);
  background: var(--mod-neutral);
  white-space: nowrap;
  flex-shrink: 0;
}

.sched__pill[data-module="amber"]   { background: var(--mod-amber); }
.sched__pill[data-module="green"]   { background: var(--mod-green); }
.sched__pill[data-module="purple"]  { background: var(--mod-purple); }
.sched__pill[data-module="blue"]    { background: var(--mod-blue); }
.sched__pill[data-module="teal"]    { background: var(--mod-teal); }
.sched__pill[data-module="neutral"] { background: var(--mod-neutral); color: var(--sched-bg); }

/* ── Three-column track grid ─────────────────────────────────── */
.sched__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sched__col {
  padding: 0.65rem 0.9rem;
  border-right: 0.5px solid var(--sched-hairline);
}
.sched__col:last-child { border-right: 0; }

.sched__col-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 0.5px solid var(--sched-hairline);
}

.sched__col-svg {
  color: var(--sched-ink-soft);
  opacity: 0.55;
  flex-shrink: 0;
}

.sched__col-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sched-ink-soft);
  line-height: 1.3;
}

.sched__anytime {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sched-ink-soft);
  border: 0.5px solid var(--sched-border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  opacity: 0.55;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Main-group phase list */
.sched__phases {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sched__phase {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.86rem;
  color: var(--sched-ink);
  line-height: 1.3;
}

.sched__phase::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sched-ink);
  opacity: 0.28;
  flex-shrink: 0;
  margin-top: 0.28em;
}

/* Learner / business prompt — serif italic is the human voice */
.sched__prompt {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--sched-ink);
}

/* ── Theme text block (between columns and definitions) ─────── */
.sched__theme {
  padding: 0.65rem 0.9rem;
  border-top: 0.5px solid var(--sched-hairline);
}

.sched__theme-intro {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--sched-ink-soft);
  margin-bottom: 0.6rem;
}

.sched__theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.75rem;
  border-top: 0.5px solid var(--sched-hairline);
  padding-top: 0.55rem;
}

.sched__theme-section + .sched__theme-section {
  border-left: 0.5px solid var(--sched-hairline);
  padding-left: 1.75rem;
}

.sched__theme-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sched-ink-soft);
  opacity: 0.5;
  margin-bottom: 0.15rem;
}

.sched__theme-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--sched-ink);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.sched__theme-body {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--sched-ink-soft);
}

@media (max-width: 640px) {
  .sched__theme-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem 0;
  }
  .sched__theme-section + .sched__theme-section {
    border-left: 0;
    padding-left: 0;
    border-top: 0.5px solid var(--sched-hairline);
    padding-top: 0.75rem;
  }
}

/* ── Module note block ───────────────────────────────────────── */
.sched__module-note {
  padding: 0.75rem 0.9rem 0.75rem 1.1rem;
  border-top: 0.5px solid var(--sched-hairline);
  border-left: 3px solid transparent;
}
.sched__module-note[data-module="amber"]  { border-left-color: var(--mod-amber);  background: rgba(181,114,10,0.06); }
.sched__module-note[data-module="green"]  { border-left-color: var(--mod-green);  background: rgba(47,125,82,0.06);  }
.sched__module-note[data-module="purple"] { border-left-color: var(--mod-purple); background: rgba(102,80,160,0.06); }
.sched__module-note[data-module="blue"]   { border-left-color: var(--mod-blue);   background: rgba(58,106,158,0.06); }
.sched__module-note[data-module="teal"]   { border-left-color: var(--mod-teal);   background: rgba(10,143,140,0.06); }

@media (prefers-color-scheme: dark) {
  .sched__module-note[data-module="amber"]  { background: rgba(240,168,56,0.08); }
  .sched__module-note[data-module="green"]  { background: rgba(77,184,122,0.08); }
  .sched__module-note[data-module="purple"] { background: rgba(156,130,200,0.08); }
  .sched__module-note[data-module="blue"]   { background: rgba(96,144,200,0.08); }
  .sched__module-note[data-module="teal"]   { background: rgba(45,200,197,0.08); }
}

.sched__module-note-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.sched__module-note[data-module="amber"]  .sched__module-note-label { color: var(--mod-amber);  }
.sched__module-note[data-module="green"]  .sched__module-note-label { color: var(--mod-green);  }
.sched__module-note[data-module="purple"] .sched__module-note-label { color: var(--mod-purple); }
.sched__module-note[data-module="blue"]   .sched__module-note-label { color: var(--mod-blue);   }
.sched__module-note[data-module="teal"]   .sched__module-note-label { color: var(--mod-teal);   }

.sched__module-note-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--sched-ink);
}

/* ── Definitions hour strip ──────────────────────────────────── */
.sched__defs {
  padding: 0.55rem 0.9rem;
  background: var(--sched-defs-bg);
  border-top: 0.5px solid var(--sched-hairline);
}

.sched__defs-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sched-ink-soft);
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.sched__defs-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--sched-ink-soft);
}

/* ── Day 5 — panels list ─────────────────────────────────────── */
.sched__day5-intro {
  padding: 0.65rem 0.9rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sched-ink-soft);
  border-bottom: 0.5px solid var(--sched-hairline);
  background: var(--sched-surface);
}

.sched__panels-list {
  list-style: none;
}

.sched__panel-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 0.4rem 0.7rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-bottom: 0.5px solid var(--sched-hairline);
}
.sched__panel-item:last-child { border-bottom: 0; }

.sched__panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mod-neutral);
  justify-self: center;
  flex-shrink: 0;
}
.sched__panel-dot[data-color="amber"]   { background: var(--mod-amber); }
.sched__panel-dot[data-color="green"]   { background: var(--mod-green); }
.sched__panel-dot[data-color="purple"]  { background: var(--mod-purple); }
.sched__panel-dot[data-color="blue"]    { background: var(--mod-blue); }
.sched__panel-dot[data-color="teal"]    { background: var(--mod-teal); }
.sched__panel-dot[data-color="neutral"] { background: var(--mod-neutral); }

.sched__panel-body {
  min-width: 0;
}

.sched__panel-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--sched-ink);
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.sched__panel-unpacks {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--sched-ink-soft);
  line-height: 1.3;
}

.sched__panel-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  white-space: nowrap;
}

.sched__panel-duration {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--sched-ink-soft);
  opacity: 0.55;
}

.sched__panel-live {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sched-ink-soft);
  border: 0.5px solid var(--sched-border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  opacity: 0.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sched__cols {
    grid-template-columns: 1fr;
  }
  .sched__col {
    border-right: 0;
    border-bottom: 0.5px solid var(--sched-hairline);
  }
  .sched__col:last-child { border-bottom: 0; }

  .sched__tab { padding: 0.55rem 0.85rem; }
  .sched__tab--finale { margin-left: 0.5rem; padding-left: 1rem; }

  .sched__panel-item { grid-template-columns: 18px 1fr; }
  .sched__panel-meta { display: none; }
}
