:root {
  --background: #080808;
  --surface: #101010;
  --surface-raised: #171717;
  --text-primary: #f1f0eb;
  --text-secondary: #a7a7a3;
  --border: #2b2b2b;
  --accent: #f1f0eb;
  --spacing-page: clamp(1.25rem, 5vw, 5rem);
  --radius: 2px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled {
  cursor: not-allowed;
}
button:disabled {
  opacity: 0.55;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 400;
}
h1,
h2,
h3 {
  line-height: 1.08;
}
a,
button,
input {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
::selection {
  background: #d7d7ce;
  color: #080808;
}
.container {
  width: min(100% - var(--spacing-page) * 2, 1200px);
  margin-inline: auto;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  line-height: 1.6;
  font-weight: 400;
}
.quiet {
  color: var(--text-secondary);
}
.serif {
  font-family: var(--font-editorial);
  font-style: italic;
}
.fine-print {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.site-header {
  height: 104px;
  padding-inline: var(--spacing-page);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 6px;
  padding-block: 8px;
}
.wordmark-name {
  font-family: var(--font-editorial);
  letter-spacing: 0.1em;
  font-size: 1.75rem;
}
.wordmark-subtitle {
  letter-spacing: 0.36em;
  font-size: 0.625rem;
  text-align: center;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.header-label {
  color: var(--text-secondary);
}
.text-button {
  background: none;
  color: var(--text-secondary);
  border: 0;
  padding: 12px 0;
  font-size: 0.875rem;
  min-height: 44px;
}
.text-button:hover,
.text-link:hover {
  color: #fff;
}
.text-link {
  display: inline-flex;
  gap: 1.25rem;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
}
.site-footer {
  margin: 0 var(--spacing-page);
  padding-block: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.site-footer span:first-child {
  letter-spacing: 0.12em;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  padding: 12px 20px;
  background: var(--text-primary);
  color: var(--background);
  z-index: 10;
}
.skip-link:focus {
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 9%;
  min-height: calc(100svh - 181px);
  padding-block: 80px;
}
.login-heading .eyebrow {
  margin-bottom: 48px;
}
.index {
  color: var(--text-secondary);
  margin-right: 22px;
}
.login-heading h1 {
  font-size: clamp(4.5rem, 7.5vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.login-heading .quiet {
  margin-top: 32px;
  font-size: 0.9375rem;
}
.login-panel {
  border-left: 1px solid var(--border);
  padding: 32px 0 32px 16%;
}
.login-panel .eyebrow {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.login-panel h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.login-panel p {
  max-width: 40ch;
}
.form-intro {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 0.9375rem;
}
.login-panel label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.login-panel input {
  width: 100%;
  height: 56px;
  border: 1px solid #444;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--text-primary);
}
.login-panel input::placeholder {
  color: #898985;
}
.login-panel input[aria-invalid="true"] {
  border-color: #c98d83;
}
.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--accent);
  color: #101010;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.primary-button:hover {
  background: #fff;
}
.primary-button span:last-child {
  font-size: 1.4rem;
}
.login-panel .fine-print {
  margin-top: 20px;
  line-height: 1.6;
}
.login-panel [role="status"] .quiet {
  margin-block: 20px 32px;
}
.form-error {
  margin-block: 12px;
  color: #e6aaa0;
  font-size: 0.875rem;
}
.dashboard {
  min-height: calc(100svh - 181px);
  padding-block: 80px 100px;
}
.page-intro h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  letter-spacing: -0.05em;
  margin-block: 24px;
}
.intro-divider {
  color: #72726d;
  margin-inline: 16px;
}
.page-intro > .eyebrow {
  color: var(--text-secondary);
}
.section-rule {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 72px;
  margin-bottom: 24px;
  gap: 1rem;
}
.section-rule > span {
  color: var(--text-secondary);
}
.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.course-card {
  min-width: 0;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.active-card:hover {
  border-color: #767671;
  background: #151515;
}
.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.card-top {
  color: var(--text-secondary);
}
.course-status {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.course-card h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 14ch;
  line-height: 1.05;
  margin-block: 60px;
}
.card-bottom {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.card-bottom > span:first-child {
  color: var(--text-secondary);
}
.card-bottom span span {
  margin-left: 16px;
}
.coming-card {
  background: transparent;
}

/* Course artwork fills the entire card, underneath a readable text scrim. */
.course-card-preview {
  --preview-x: 0px;
  --preview-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a2037;
}
.course-preview,
.course-preview::after,
.course-preview-image,
.course-preview-doors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.course-preview {
  z-index: -1;
  overflow: hidden;
}
.course-preview-image {
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.025);
  transition: transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 650ms;
  filter: saturate(0.8) brightness(0.85);
}
.course-preview-doors {
  background: url("images/mind-doors.png") center / cover no-repeat;
  opacity: 0.45;
  transform: scale(1.025);
  transition: transform 950ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 650ms;
}
.course-preview::after {
  content: "";
  background: linear-gradient(180deg, rgb(2 7 16 / 28%), rgb(2 7 16 / 22%) 30%, rgb(2 7 16 / 66%) 72%, rgb(2 7 16 / 92%));
}
.course-card-preview .card-top,
.course-card-preview .card-bottom > span:first-child {
  color: #e0e7ee;
}
.course-card-preview h2 {
  color: #fffaf1;
  text-shadow: 0 3px 22px rgb(0 0 0 / 60%);
}
.course-card-preview .card-bottom {
  border-color: rgb(255 255 255 / 25%);
}
.course-card-preview .card-bottom > span:last-child > span {
  display: inline-block;
  transition: transform 350ms;
}
.course-card-preview:focus-visible .course-preview-image {
  filter: saturate(1.1) brightness(1);
  transform: scale(1.08);
}
.course-card-preview:focus-visible .course-preview-doors {
  opacity: 0.72;
  transform: scale(1.12);
}
@media (hover: hover) and (pointer: fine) {
  .course-card-preview:hover .course-preview-image {
    filter: saturate(1.1) brightness(1);
    transform: translate(var(--preview-x), var(--preview-y)) scale(1.08);
  }
  .course-card-preview:hover .course-preview-doors {
    opacity: 0.72;
    transform: translate(calc(var(--preview-x) * -1), calc(var(--preview-y) * -1)) scale(1.12);
  }
  .course-card-preview:hover .card-bottom > span:last-child > span {
    transform: translate(3px, -3px);
  }
}

/* A light blur bridges normal page navigation without obscuring the artwork. */
.course-transition {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(8 12 20 / 7%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms;
}
.course-departing .course-transition,
.course-arriving .course-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.course-revealing .course-transition {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-duration: 260ms;
}
@media (prefers-reduced-motion: reduce) {
  .course-transition {
    display: none;
  }
  .course-card-preview .course-preview-image,
  .course-card-preview .course-preview-doors,
  .course-card-preview .card-bottom > span:last-child > span {
    transform: none !important;
  }
}
.coming-card h2 {
  color: #777773;
}
.coming-card .card-bottom {
  color: var(--text-secondary);
}
.unavailable-card h2 {
  margin-block: 38px;
}
.course-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
}
.course-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 152px var(--spacing-page) 30px;
  text-align: center;
}
.hero-kicker {
  color: var(--text-secondary);
}
.hero-kicker span {
  margin-inline: 16px;
}
.course-hero h1 {
  font-size: clamp(3.25rem, 8.8vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  max-width: 13ch;
  margin-block: 80px;
  font-weight: 400;
  text-wrap: balance;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.hero-bottom span span {
  margin-left: 24px;
}
.course-content {
  padding-bottom: 64px;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  padding-block: 100px;
  border-bottom: 1px solid var(--border);
}
.overview-copy {
  min-height: 90px;
  max-width: 60ch;
}
.placeholder {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.week-section {
  padding-block: 64px;
  border-bottom: 1px solid var(--border);
}
.week-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}
.week-number {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: #70706a;
  letter-spacing: -0.065em;
}
.week-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 28px;
}
.week-label > .fine-print {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.week-intro h3 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.week-description {
  min-height: 125px;
  padding-top: 24px;
  max-width: 58ch;
}
.week-resources {
  margin-left: calc(25% + 0.5rem);
  display: grid;
  gap: 20px;
}
.resource {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 32px;
}
.resource-content {
  padding-top: 28px;
  min-height: 116px;
}
.notes-resource .resource-content {
  min-height: 144px;
}
.resource-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.audio-player {
  display: grid;
  grid-template-columns: 52px 1fr 80px;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
}
.audio-player audio {
  display: none;
}
.play-button {
  width: 52px;
  height: 52px;
  border: 1px solid #707070;
  background: transparent;
  color: var(--text-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.play-button span {
  padding-left: 2px;
}
.audio-title {
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.audio-timeline {
  min-width: 0;
}
.audio-player input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--text-primary);
  height: 24px;
}
.audio-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.locked-week {
  background: #090909;
}
.locked-week .week-number {
  color: #70706a;
}
.locked-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.masked-content {
  pointer-events: none;
  user-select: none;
  opacity: 0.38;
  filter: blur(3px);
  padding-block: 6px 12px;
}
.masked-content span {
  display: block;
  background: #33332f;
  max-width: 100%;
  height: 8px;
  margin-top: 16px;
}
.masked-content .mask-title {
  width: 65%;
  height: 24px;
  margin-top: 0;
}
.masked-content .mask-line {
  width: 85%;
}
.masked-content .short {
  width: 55%;
}
.error-page {
  min-height: calc(100svh - 181px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 80px;
  max-width: 900px;
}
.error-page h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.04em;
  margin-block: 32px;
}
.error-page .quiet {
  max-width: 55ch;
  margin-bottom: 30px;
}
.navigation-status:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  padding: 12px 24px;
  z-index: 20;
  font-size: 0.875rem;
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .login-layout {
    gap: 12%;
  }
  .course-hero h1 {
    font-size: 9rem;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 88px;
  }
  .header-label {
    font-size: 0.625rem;
    max-width: 12ch;
    text-align: right;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 52px 64px;
  }
  .login-heading .eyebrow {
    margin-bottom: 28px;
  }
  .login-heading h1 {
    font-size: clamp(4.5rem, 12vw, 7rem);
  }
  .login-heading .quiet {
    margin-top: 24px;
  }
  .login-panel {
    padding: 40px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    max-width: 100%;
  }
  .login-panel form {
    max-width: 460px;
  }
  .dashboard {
    padding-block: 52px 64px;
  }
  .section-rule {
    margin-top: 48px;
  }
  .course-card {
    padding: 24px;
    min-height: 340px;
  }
  .course-card h2 {
    margin-block: 44px;
  }
  .card-top {
    align-items: flex-start;
  }
  .course-status {
    font-size: 0.6875rem;
  }
  .course-hero {
    padding-top: 132px;
  }
  .course-hero h1 {
    font-size: clamp(3.25rem, 10vw, 6rem);
    max-width: 13ch;
  }
  .overview,
  .week-heading {
    grid-template-columns: 90px 1fr;
    gap: 24px;
  }
  .week-resources {
    margin-left: 114px;
  }
  .resource {
    padding: 24px;
  }
  .audio-player {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .play-button {
    width: 44px;
    height: 44px;
  }
  .resource-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 560px) {
  .site-header nav {
    gap: 18px;
  }
  .wordmark-name {
    font-size: 1.5rem;
  }
  .wordmark-subtitle {
    font-size: 0.5625rem;
  }
  .back-link,
  .text-button {
    font-size: 0.8125rem;
  }
  .back-link {
    gap: 6px;
  }
  .page-intro h1 {
    font-size: 3.5rem;
  }
  .section-rule > span {
    display: none;
  }
  .course-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .course-card {
    min-height: 340px;
  }
  .course-card h2 {
    font-size: clamp(1.75rem, 8vw, 2.65rem);
  }
  .site-footer {
    font-size: 0.6875rem;
    gap: 16px;
  }
  .course-hero h1 {
    font-size: clamp(2rem, 10.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }
  .hero-kicker {
    font-size: 0.625rem;
  }
  .hero-kicker span {
    margin-inline: 6px;
  }
  .hero-bottom .eyebrow {
    font-size: 0.625rem;
  }
  .hero-bottom span span {
    margin-left: 8px;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 60px;
  }
  .overview-copy {
    min-height: 90px;
  }
  .week-heading {
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }
  .week-number {
    font-size: 2.75rem;
  }
  .week-section {
    padding-block: 40px;
  }
  .week-label {
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .week-label > .fine-print {
    font-size: 0.625rem;
  }
  .week-intro h3 {
    font-size: 1.8rem;
  }
  .week-description {
    min-height: 130px;
  }
  .week-resources {
    margin-left: 0;
  }
  .resource {
    padding: 24px 20px;
  }
  .locked-label {
    font-size: 0.6875rem;
  }
  .locked-week {
    padding-block: 36px;
  }
  .locked-week .week-label {
    margin-bottom: 14px;
  }
  .masked-content .mask-title {
    width: 85%;
  }
  .course-content {
    padding-bottom: 40px;
  }
  .form-intro {
    margin-bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Architecture of the Mind: blue (0), black reading curtain (1), doors (2),
   content (3), navigation (4). No decorative layer receives pointer events. */
.architecture-course {
  --course-scroll: 0;
  isolation: isolate;
  background: #04070c;
}
.course-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.course-scene-blue {
  z-index: 0;
  background-image: linear-gradient(180deg, rgb(2 8 18 / 28%), rgb(2 8 18 / 8%) 65%, rgb(2 8 18 / 32%)), url("images/mind-blue.png");
}
.course-scene-black {
  z-index: 1;
  background: #080808;
  opacity: var(--course-scroll);
}
.course-scene-doors,
.course-scene-edges {
  z-index: 2;
  background-image: url("images/mind-doors.png");
}
.course-scene-doors {
  opacity: calc(0.85 * (1 - var(--course-scroll)));
  /* Preserve the artwork around a quiet, readable center for the title. */
  -webkit-mask-image: radial-gradient(ellipse at 50% 47%, rgb(0 0 0 / 16%) 12%, #000 70%);
  mask-image: radial-gradient(ellipse at 50% 47%, rgb(0 0 0 / 16%) 12%, #000 70%);
}
.course-scene-edges {
  opacity: calc(0.2 * var(--course-scroll));
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
}
.architecture-course .site-header {
  z-index: 4;
  border-color: rgb(255 255 255 / 18%);
  background: linear-gradient(rgb(3 8 16 / 65%), transparent);
}
.architecture-course .site-header .text-button,
.architecture-course .hero-kicker,
.architecture-course .hero-bottom {
  color: #e0e4eb;
  text-shadow: 0 2px 10px #02060d;
}
.architecture-course .course-hero {
  position: relative;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 46%, rgb(2 7 16 / 42%), transparent 64%);
}
.architecture-course .course-hero h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(3rem, 8.2vw, 9rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 500;
  color: #fffaf1;
  text-shadow: 0 4px 36px rgb(0 0 0 / 70%), 0 1px 2px rgb(0 0 0 / 45%);
}
.mind-title-top,
.mind-title-bottom {
  display: block;
}
.mind-title-bottom {
  margin-top: 0.12em;
}
.mind-title-connector {
  display: inline-block;
  margin-right: 0.2em;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 0.57em;
  text-transform: lowercase;
  letter-spacing: -0.055em;
  vertical-align: 0.08em;
}
.architecture-course .hero-bottom {
  border-color: rgb(255 255 255 / 24%);
}
.architecture-course .course-reading {
  position: relative;
}
.architecture-course .course-reading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #080808;
  pointer-events: none;
}
.architecture-course .course-content,
.architecture-course .site-footer {
  position: relative;
  z-index: 3;
}
.architecture-course .locked-week {
  background: transparent;
}
@media (max-width: 560px) {
  .architecture-course .course-hero h1 {
    font-size: clamp(1.75rem, 8.4vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.05em;
  }
  .architecture-course .mind-title-bottom {
    font-size: 1.38em;
    margin-top: 0.06em;
  }
  .course-scene-edges {
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 13%, transparent 87%, #000);
    mask-image: linear-gradient(90deg, #000, transparent 13%, transparent 87%, #000);
    opacity: calc(0.15 * var(--course-scroll));
  }
}


/* Immersive presentation: artwork remains decorative and all controls stay native. */
.portal-page {
  background: radial-gradient(ellipse at 16% 22%, rgb(25 54 76 / 22%), transparent 55%), #080808;
}
.portal-page .page-intro h1 .serif { color: #dcc4a5; }
.portal-page .course-card-preview { border-color: #53606c; }
.portal-page .course-card-preview:is(:hover, :focus-visible) { border-color: #c49b70; }
.architecture-course { --accent: #eac396; --scene-x: 0px; --scene-y: 0px; }
.architecture-course .course-scene-doors {
  transform: translate(var(--scene-x), var(--scene-y)) scale(1.025);
  transition: transform 1100ms cubic-bezier(.2,.7,.2,1);
}
.architecture-course .course-hero {
  min-height: max(760px, 100svh);
  background: radial-gradient(ellipse at 50% 46%, rgb(2 7 16 / 40%), transparent 70%);
}
.hero-composition {
  width: 100%;
  padding-block: 56px 64px;
}
.architecture-course .hero-composition h1 {
  margin-block: 0 30px;
  font-size: clamp(3rem, 8.2vw, 9rem);
  letter-spacing: -.045em;
}
.architecture-course .mind-title-bottom { font-size: 1.2em; }
.architecture-course .mind-title-connector { color: #ead6ba; }
.hero-invitation {
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-style: italic;
  color: #eee4d5;
  text-shadow: 0 2px 12px #02060d;
}
.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(8 8 8 / 94%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid #2d2924;
}
.chapter-nav-inner {
  width: min(100% - var(--spacing-page) * 2, 1200px);
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.chapter-steps { display: flex; align-items: center; gap: clamp(12px, 3vw, 44px); }
.chapter-nav a, .chapter-locked {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  letter-spacing: .06em;
  white-space: nowrap;
  color: #bbb4ab;
}
.chapter-nav a { position: relative; }
.chapter-nav a[aria-current="location"] { color: #edc99e; }
.chapter-nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1px;
  background: #edc99e;
}
.chapter-nav a:hover { color: #fff3df; }
.chapter-dot { width: 5px; height: 5px; border-radius: 50%; background: #eac396; box-shadow: 0 0 12px rgb(234 195 150 / 45%); }
.chapter-nav .chapter-locked { color: #8d8780; }
.architecture-course :is(.overview, .week-section) { scroll-margin-top: 104px; }
.architecture-course .overview { padding-block: 88px; }
.architecture-course .overview > h2,
.architecture-course .week-label > h2,
.architecture-course .resource h4 { color: #d9b790; }
.architecture-course .week-section:not(.locked-week) { padding-block: 80px; }
.architecture-course .week-section:not(.locked-week) .week-number {
  font-family: var(--font-editorial);
  font-style: italic;
  color: #d2b38d;
  letter-spacing: -.075em;
}
.architecture-course .week-intro h3 { text-transform: none; font-family: var(--font-editorial); font-size: clamp(2rem, 4vw, 3.6rem); }
.architecture-course .week-resources { gap: 24px; }
.architecture-course .resource {
  background: linear-gradient(125deg, rgb(36 29 23 / 48%), rgb(15 15 15 / 96%) 64%);
  border-color: #363029;
  border-radius: 4px;
  transition: border-color 240ms;
}
.architecture-course .resource:focus-within { border-color: #b9956e; }
.architecture-course .audio-resource { background: linear-gradient(115deg, #202226, #101214 75%); border-color: #3a3b3e; }
.architecture-course .play-button:not(:disabled) { background: #e1bf96; color: #17110c; border-color: #e1bf96; transition: box-shadow 200ms; }
.architecture-course .play-button:not(:disabled):hover { box-shadow: 0 0 0 6px rgb(225 191 150 / 10%); }
.architecture-course .audio-player input[type="range"] { accent-color: #e1bf96; }
.architecture-course .notes-resource a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: #edc99e; border-bottom: 1px solid #74604a; }
.architecture-course .notes-resource a:hover { color: #fff3df; border-color: currentColor; }
.architecture-course .locked-week .week-number { color: #82796e; }
@media (prefers-reduced-motion: no-preference) {
  .hero-composition { animation: course-entrance 900ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes course-entrance {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 800px) {
  .chapter-nav-inner { gap: 16px; }
  .chapter-steps { gap: 16px; }
}
@media (max-width: 560px) {
  .architecture-course .course-hero { min-height: max(640px, 100svh); }
  .hero-composition { padding-block: 48px; }
  .architecture-course .hero-composition h1 { font-size: clamp(1.75rem, 8.4vw, 3rem); margin-bottom: 26px; }
  .architecture-course .mind-title-bottom { font-size: 1.38em; }
  .hero-invitation { max-width: 25ch; margin-inline: auto; }
  .chapter-nav-inner { min-height: 64px; gap: 12px; }
  .chapter-nav a, .chapter-locked { font-size: .6875rem; gap: 5px; letter-spacing: 0; }
  .chapter-steps { gap: 12px; overflow-x: auto; }
  .chapter-nav a { flex-shrink: 0; }
  .chapter-locked { flex-shrink: 0; }
  .architecture-course .overview { padding-block: 56px; }
  .architecture-course .week-section:not(.locked-week) { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .architecture-course .course-scene-doors { transform: none; }
  .hero-composition { animation: none; }
}


/* Open, viewport-sized chapters built from the supplied image layers. */
.week-atmosphere, .week-scene-caption { display: none; }
.week-locked-message { font: italic clamp(1.6rem, 3vw, 3rem) / 1.25 var(--font-editorial); color: #aaa398; }
.architecture-course { --chapter-nav-height: 72px; }
.architecture-course .chapter-nav-inner { min-height: calc(var(--chapter-nav-height) - 2px); }
.architecture-course .chapter-nav { border-color: transparent; background: rgb(8 8 8 / 85%); }
.architecture-course .course-scene-edges { opacity: 0; }
.architecture-course .course-content { width: 100%; max-width: none; padding-bottom: 0; }
.architecture-course .overview {
  width: min(100% - var(--spacing-page) * 2, 1200px);
  margin-inline: auto;
  border: 0;
}
.architecture-course :is(.overview, .week-section) { scroll-margin-top: var(--chapter-nav-height); }
.architecture-course :is(.overview, .week-section):focus { outline: none; }
.architecture-course .week-section,
.architecture-course .week-section:not(.locked-week),
.architecture-course .locked-week {
  --week-entry: 0;
  --week-travel: 0;
  --doors-position: 50%;
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--chapter-nav-height));
  padding: clamp(28px, 4vh, 52px) max(var(--spacing-page), calc((100% - 1280px) / 2)) 20px;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 60px);
  border: 0;
  background: transparent;
}
.architecture-course #chapter-3 { --doors-position: 28%; }
.architecture-course #chapter-5 { --doors-position: 72%; }
.architecture-course .week-atmosphere {
  display: block;
  position: absolute;
  inset: -3% 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent);
}
.week-atmosphere > span {
  position: absolute;
  inset: -12% -4%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--doors-position) center;
}
.week-mist {
  background-image: url("images/mind-blue.png");
  opacity: .17;
  -webkit-mask-image: radial-gradient(ellipse at 65% 26%, #000 8%, transparent 65%);
  mask-image: radial-gradient(ellipse at 65% 26%, #000 8%, transparent 65%);
  transform: translate3d(0, calc(var(--week-travel) * 26px), 0) scale(1.04);
}
.week-doors-far {
  background-image: url("images/mind-doors.png");
  opacity: .23;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 73%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 73%, #000);
  transform: translate3d(0, calc(var(--week-travel) * -36px), 0) scale(1.04);
}
.week-doors-near {
  background-image: url("images/mind-doors.png");
  background-size: auto 160%;
  opacity: .52;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 18%, transparent 82%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 18%, transparent 82%, #000);
  transform: translate3d(0, calc(var(--week-travel) * -105px), 0) scale(1.08);
}
.week-shade {
  background: radial-gradient(ellipse at 47% 56%, rgb(8 8 8 / 72%) 15%, transparent 72%), linear-gradient(transparent 40%, rgb(8 8 8 / 65%) 76%);
}
.architecture-course .locked-week .week-atmosphere { opacity: .5; }
.architecture-course .week-heading,
.architecture-course .locked-week .week-heading {
  position: relative;
  min-height: 220px;
  padding-top: 0;
  flex: 1;
  align-items: center;
  grid-template-columns: minmax(100px, .55fr) 3fr;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
}
.architecture-course .week-number {
  font-size: clamp(5rem, 10vw, 10rem);
  color: #b4a28a;
  text-shadow: 0 8px 28px rgb(0 0 0 / 35%);
  transform: translate3d(0, calc(var(--week-travel) * -20px), 0);
}
.architecture-course .week-intro {
  max-width: none;
  transform: perspective(1100px) translateZ(calc(var(--week-entry) * -45px)) translateY(calc(var(--week-entry) * 18px));
}
.architecture-course .week-intro h3 { font-size: clamp(2.2rem, 4.4vw, 4.5rem); text-shadow: 0 3px 28px #080808; }
.architecture-course .week-label { margin-bottom: 18px; }
.architecture-course .week-description { min-height: 0; padding-top: 16px; max-width: 65ch; }
.architecture-course .week-resources {
  position: relative;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.architecture-course .week-resources::before { display: none; }
.architecture-course .resource,
.architecture-course .audio-resource,
.architecture-course .resource:focus-within {
  --panel-entry: 0;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform-origin: center top;
  transform: perspective(1100px) translateY(calc(var(--panel-entry) * 26px)) rotateX(calc(var(--panel-entry) * 3deg));
}
.architecture-course .resource:focus-within { transform: none; }
.architecture-course .resource-content,
.architecture-course .notes-resource .resource-content { min-height: 120px; padding-top: 24px; overflow-wrap: anywhere; }
.architecture-course .resource h4 { color: #d7b997; font-size: .6875rem; letter-spacing: .18em; }
.architecture-course .resource-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
.architecture-course .audio-player { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-top: 24px; }
.architecture-course .play-button { width: 44px; height: 44px; }
.architecture-course .week-scene-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #aaa298;
  font-size: .625rem;
  letter-spacing: .14em;
  padding-top: 12px;
  margin-top: auto;
}
.architecture-course .locked-week .week-heading { max-width: 1000px; margin-inline: auto; }
@media (max-width: 900px) {
  .architecture-course .week-resources { grid-template-columns: 1fr 1fr; }
  .architecture-course .audio-resource { grid-column: 2; grid-row: 1 / span 2; }
  .architecture-course .resource-content,
  .architecture-course .notes-resource .resource-content { min-height: 50px; }
}
@media (max-width: 560px) {
  .architecture-course { --chapter-nav-height: 64px; }
  .architecture-course .week-heading,
  .architecture-course .locked-week .week-heading { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; min-height: 220px; }
  .architecture-course .week-number { font-size: 3.6rem; }
  .architecture-course .week-intro h3 { font-size: clamp(1.75rem, 7.6vw, 2.5rem); overflow-wrap: anywhere; }
  .architecture-course .week-resources { grid-template-columns: 1fr; gap: 24px; }
  .architecture-course .audio-resource { grid-column: auto; grid-row: auto; }
  .architecture-course .week-scene-caption { font-size: .5625rem; letter-spacing: .08em; }
  .week-doors-near { opacity: .34; background-size: auto 125%; }
  .week-doors-far { opacity: .15; }
  .week-shade { background: radial-gradient(ellipse, rgb(8 8 8 / 65%), transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .architecture-course .week-section { --week-entry: 0 !important; --week-travel: 0 !important; }
  .week-atmosphere > span,
  .architecture-course .week-intro,
  .architecture-course .week-number,
  .architecture-course .resource { transform: none; }
}


/* Two open pages per week: notes, followed by listening and reflection. */
.architecture-course .week-section,
.architecture-course .week-section:not(.locked-week),
.architecture-course .locked-week {
  min-height: 0;
  padding: 0;
  display: block;
}
.week-page { position: relative; }
.architecture-course .week-page {
  --week-entry: 0;
  --week-travel: 0;
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--chapter-nav-height));
  padding: clamp(32px, 5vh, 64px) max(var(--spacing-page), calc((100% - 1280px) / 2)) 20px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  scroll-margin-top: var(--chapter-nav-height);
}
.architecture-course .week-page:focus { outline: none; }
.architecture-course .week-page .week-atmosphere { inset: 0; }
.architecture-course .week-page .week-heading { flex: 0 0 auto; min-height: 220px; }
.architecture-course .week-notes-content {
  display: block;
  width: 100%;
  margin-inline: auto;
  max-width: 1000px;
  flex: 1;
}
.architecture-course .week-notes-content .resource-content { min-height: 0; }
.architecture-course .week-notes-content .placeholder { font-size: 1.05rem; line-height: 1.95; white-space: pre-line; }
.week-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  color: #aaa298;
  font-size: .625rem;
  letter-spacing: .12em;
}
.week-page-footer a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: #ead6ba; font-size: .8125rem; letter-spacing: .02em; }
.week-page-footer a:hover { color: #fff; }
.architecture-course .week-recording-page { --doors-position: 74%; }
.recording-page-heading { max-width: 1000px; width: 100%; margin-inline: auto; text-align: center; }
.recording-page-heading > .eyebrow { color: #c4a676; font-size: .625rem; letter-spacing: .18em; line-height: 1.8; }
.recording-page-heading h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; margin-block: 14px 0; text-wrap: balance; }
.recording-page-heading .serif { color: #ead6ba; }
.architecture-course .week-listening-content {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 7vh, 72px);
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  flex: 1;
  justify-content: center;
}
.architecture-course .week-listening-content .audio-resource,
.architecture-course .week-listening-content .reflection-resource { width: 100%; }
.architecture-course .week-listening-content .audio-player { grid-template-columns: 64px minmax(0, 1fr) 100px; gap: 24px; }
.architecture-course .week-listening-content .play-button { width: 64px; height: 64px; font-size: 1.125rem; }
.architecture-course .week-listening-content .resource-heading { flex-direction: row; align-items: center; }
.architecture-course .reflection-resource .resource-content { min-height: 0; width: 100%; max-width: none; white-space: pre-line; }
.architecture-course .locked-page-message { flex: 1; width: min(100%, 1000px); margin-inline: auto; }

/* The top plane folds away as the student moves beneath the landing artwork. */
.architecture-course { --hero-warp: 0; }
.architecture-course .course-hero { padding: 0; perspective: 1000px; perspective-origin: 50% 20%; overflow: clip; }
.hero-warp-plane {
  width: 100%;
  min-height: inherit;
  padding: 152px var(--spacing-page) 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--hero-warp) * -12vh)) rotateX(calc(var(--hero-warp) * 58deg)) translateZ(calc(var(--hero-warp) * -160px));
  opacity: calc(1 - var(--hero-warp) * .8);
  backface-visibility: hidden;
}
.architecture-course .course-scene-blue {
  transform-origin: 50% 0;
  transform: perspective(1000px) rotateX(calc(var(--hero-warp) * 16deg)) scale(calc(1 + var(--hero-warp) * .12));
}
.architecture-course .course-scene-doors {
  transform-origin: 50% 0;
  transform: perspective(950px) translate3d(var(--scene-x), calc(var(--scene-y) - var(--hero-warp) * 90px), 0) rotateX(calc(var(--hero-warp) * 28deg)) scale(1.025);
  transition: none;
}
@media (max-width: 800px) {
  .hero-warp-plane { padding-top: 132px; }
  .architecture-course .week-notes-content { margin-inline: auto; }
}
@media (max-width: 560px) {
  .architecture-course .week-page { gap: 28px; }
  .architecture-course .week-page .week-heading { min-height: 200px; }
  .architecture-course .week-listening-content .audio-player { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .architecture-course .week-listening-content .play-button { width: 52px; height: 52px; }
  .architecture-course .week-listening-content .resource-heading { flex-direction: column; align-items: flex-start; }
  .week-page-footer { font-size: .5625rem; letter-spacing: .04em; }
  .week-page-footer a { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .architecture-course .week-page { --week-entry: 0 !important; --week-travel: 0 !important; }
  .hero-warp-plane { transform: none; opacity: 1; }
  .architecture-course .course-scene-blue,
  .architecture-course .course-scene-doors { transform: none; }
}


/* Navy and gold ShaderGradient atmosphere for private access and the portal. */
:is(.login-page, .portal-page) {
  --background: #040b1a;
  --surface: #0b1730;
  --surface-raised: #14223b;
  --text-primary: #f6f0e4;
  --text-secondary: #bdc6d5;
  --accent: #dfbd79;
  --border: rgb(213 188 143 / 22%);
  isolation: isolate;
  background: #040b1a;
  color: var(--text-primary);
}
.portal-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 22%, rgb(160 119 55 / 30%), transparent 52%), radial-gradient(ellipse at 14% 75%, #14294b, transparent 70%), #040b1a;
}
.portal-shader,
.portal-atmosphere-shade,
.portal-gold-wash { position: absolute; inset: 0; }
.portal-shader { opacity: .7; }
.portal-atmosphere-shade {
  background: radial-gradient(ellipse at 88% 18%, rgb(183 142 69 / 15%), transparent 62%), linear-gradient(100deg, rgb(3 10 25 / 56%), rgb(3 10 25 / 35%) 55%, rgb(3 10 25 / 70%)), linear-gradient(0deg, rgb(3 10 25 / 65%), transparent 60%);
}
.portal-gold-wash {
  background: radial-gradient(ellipse at 65% 45%, rgb(180 130 52 / 30%), rgb(135 91 35 / 24%) 45%, rgb(5 14 31 / 8%) 82%);
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 700ms ease, transform 1400ms ease;
}
.auth-loading .portal-gold-wash { opacity: 1; transform: scale(1); }
:is(.portal-page, .auth-link-sent) .portal-gold-wash { animation: gold-arrival 1400ms ease-out both; }
@keyframes gold-arrival { from { opacity: .85; transform: scale(1.06); } to { opacity: 0; transform: scale(1); } }
:is(.login-page, .portal-page) .site-header { border-color: rgb(226 200 154 / 17%); background: rgb(3 10 24 / 20%); }
:is(.login-page, .portal-page) .wordmark-name { color: #f8edda; }
:is(.login-page, .portal-page) .wordmark-subtitle { color: #dec393; }
:is(.login-page, .portal-page) .eyebrow { color: #dcc499; }
:is(.login-page, .portal-page) .site-footer { color: #bac3d1; border-color: rgb(226 200 154 / 17%); }
:is(.login-page, .portal-page) .text-button { color: #d3d9e1; }
:is(.login-page, .portal-page) .serif { color: #ead0a0; }
.login-heading h1, .portal-page .page-intro h1 { text-shadow: 0 4px 40px rgb(0 0 0 / 22%); }
.login-panel { border-color: rgb(226 200 154 / 25%); }
.login-page .login-panel input { background: rgb(4 13 30 / 76%); border-color: #657085; color: #fff8eb; }
.login-page .login-panel input::placeholder { color: #aeb9ca; }
.login-page .login-panel input:focus-visible { border-color: #dfbd79; outline-color: #dfbd79; }
.login-page .login-panel input[aria-invalid="true"] { border-color: #f2a89a; }
.login-page .form-error { color: #ffd2c7; }
.login-page .primary-button { color: #172033; background: #dfbd79; border-color: #dfbd79; font-weight: 500; }
.login-page .primary-button:hover { background: #efcf94; border-color: #efcf94; }
.login-page .primary-button:disabled { opacity: .88; }
.login-page.auth-loading { --text-secondary: #eee8dc; }
.login-page.auth-loading .login-panel { text-shadow: 0 2px 16px #071020; }
.login-page .navigation-status:not(:empty) { background: rgb(8 19 39 / 96%); border-color: #ab8953; color: #fff0d3; }
.portal-page .course-card { border-color: rgb(223 190 134 / 30%); }
.portal-page .coming-card { background: rgb(5 15 34 / 46%); }
.portal-page .coming-card h2 { color: #adb6c5; }
.portal-page .coming-card .card-top,
.portal-page .coming-card .card-bottom { color: #bdc6d5; }
.portal-page .course-card-preview:focus-visible { outline-color: #dfbd79; }
@media (prefers-reduced-motion: reduce) {
  :is(.portal-page, .auth-link-sent) .portal-gold-wash { animation: none; }
  .portal-gold-wash { transition: none; transform: none; }
}

/* Lightweight chapter player: gold transport, open timeline, quiet metadata. */
.chapter-player,
.architecture-course .week-listening-content .chapter-player {
  display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding-top: 28px;
}
.audio-main-row { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.audio-caption { width: 100%; min-width: 0; max-width: 42rem; margin-inline: auto; text-align: center; }
.chapter-player .audio-title { color: #ead6ba; font-family: var(--font-editorial); font-size: clamp(1.4rem, 2.4vw, 2.15rem); font-weight: 400; line-height: 1.35; letter-spacing: -.015em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.audio-current-chapter { color: #bbad97; font-size: .8125rem; overflow-wrap: anywhere; }
.chapter-player .play-button,
.architecture-course .week-listening-content .chapter-player .play-button { flex: 0 0 56px; width: 56px; height: 56px; padding: 16px; color: #1a140d; background: #e4c68f; border: 1px solid #efd5a7; }
.chapter-player .play-button svg { width: 24px; height: 24px; fill: currentColor; }
.chapter-player .pause-icon, .chapter-player.is-playing .play-icon { display: none; }
.chapter-player.is-playing .pause-icon { display: block; }
.audio-spinner { display: none; width: 20px; height: 20px; padding: 0 !important; border: 2px solid #30261544; border-top-color: #302615; border-radius: 50%; }
.chapter-player.is-buffering .play-button svg { display: none; }
.chapter-player.is-buffering .audio-spinner { display: block; animation: audio-spin .8s linear infinite; }
@keyframes audio-spin { to { transform: rotate(360deg); } }
.audio-track { position: relative; }
.chapter-player input[data-seek] { --audio-progress: 0%; appearance: none; -webkit-appearance: none; height: 28px; cursor: pointer; background: transparent; }
.chapter-player input[data-seek]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(to right, #e4c68f var(--audio-progress), #e2d3b638 var(--audio-progress)); }
.chapter-player input[data-seek]::-moz-range-track { height: 3px; background: #e2d3b638; }
.chapter-player input[data-seek]::-moz-range-progress { height: 3px; background: #e4c68f; }
.chapter-player input[data-seek]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 11px; width: 11px; margin-top: -4px; border-radius: 50%; background: #efd8ad; }
.chapter-player input[data-seek]::-moz-range-thumb { height: 11px; width: 11px; border: 0; border-radius: 50%; background: #efd8ad; }
.audio-chapter-ticks { position: absolute; inset: 0 6px; pointer-events: none; }
.audio-chapter-ticks span { position: absolute; top: 11px; height: 6px; width: 2px; background: #0a0b0d; }
.chapter-player .audio-times { color: #b9b1a4; font-size: .6875rem; }
.audio-secondary-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.chapter-navigation { display: flex; align-items: center; justify-content: center; gap: 24px; }
.chapter-navigation button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #dec497; }
.chapter-navigation button:hover:not(:disabled) { background: #dcc08a12; }
.chapter-navigation svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.audio-chapters { border-top: 1px solid #d5be8e30; }
.audio-chapters summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; min-height: 52px; list-style: none; font-size: .8125rem; color: #e5cfaa; }
.audio-chapters summary::-webkit-details-marker { display: none; }
.chapter-summary-meta { display: flex; gap: 16px; align-items: center; color: #a8a298; font-size: .6875rem; }
.audio-chapters[open] .chapter-summary-meta > span { transform: rotate(180deg); }
.audio-chapter-list { margin: 0; padding: 0; list-style: none; }
.audio-chapter-list button { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 14px 10px; min-height: 48px; text-align: left; border: 0; border-top: 1px solid #d2be9720; background: transparent; color: #bcb6aa; font-size: .875rem; }
.audio-chapter-list button [data-chapter-title] { overflow-wrap: anywhere; }
.audio-chapter-list button:hover:not(:disabled), .audio-chapter-list button[aria-current] { background: linear-gradient(90deg,#d8b77d12,transparent); color: #f0d5a3; }
.chapter-index, .audio-chapter-list time { font-size: .6875rem; font-variant-numeric: tabular-nums; }
.chapter-empty { padding: 12px 0 20px; }
.chapter-player .audio-status { min-height: 1.5em; margin: -8px 0 0; color: #b0a799; font-size: .6875rem; }
.chapter-player button:disabled, .chapter-player select:disabled, .chapter-player input:disabled { opacity: .45; cursor: default; }
.chapter-player :is(button,select,input,summary):focus-visible { outline: 2px solid #edcb8e; outline-offset: 4px; }
@media (max-width: 560px) {
  .audio-main-row { gap: 18px; }
  .chapter-navigation { gap: 20px; }
  .audio-speed { margin: 0; }
  .audio-secondary-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .chapter-player.is-buffering .audio-spinner { animation: none; border-style: dotted; } }

/* Gold shadows belong only to the three transport buttons. */
.chapter-player .chapter-navigation button { transition: box-shadow 180ms ease, background-color 180ms ease; }
@media (hover: hover) {
  .chapter-player .chapter-navigation button:hover:not(:disabled) { box-shadow: 0 0 18px rgb(226 190 120 / 15%); }
  .chapter-player .chapter-navigation .play-button:hover:not(:disabled) { box-shadow: 0 0 24px rgb(226 190 120 / 30%); }
}
.chapter-player .chapter-navigation button:focus-visible { box-shadow: 0 0 18px rgb(226 190 120 / 22%); }
@media (prefers-reduced-motion: reduce) { .chapter-player .chapter-navigation button { transition: none; } }

/* Start the recording directly beneath its heading and reserve room for reflection. */
.architecture-course .week-recording-page { gap: 24px; }
.recording-page-heading h3 { margin-bottom: 0; }
.architecture-course .week-listening-content { justify-content: flex-start; gap: 32px; }

/* Casual copy deterrence for lesson text only; content remains screen-reader readable. */
[data-copy-restricted] {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
[data-copy-restricted] :is(input, textarea, [contenteditable]:not([contenteditable="false"]), [role="textbox"]),
[data-copy-restricted] :is([contenteditable]:not([contenteditable="false"]), [role="textbox"]) * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
[data-copy-restricted] :is(a, button, select, label) { -webkit-touch-callout: default; }

/* Consistent soft-blur navigation replaces the gold login/arrival wash. */
.portal-gold-wash { display: none; }
.otp-input { font-size: 1.65rem; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.code-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.5rem 0; }
.code-actions form { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; }
.code-actions button:disabled { opacity: .5; cursor: wait; }
.login-panel .form-intro { overflow-wrap: anywhere; }

/* Notes expand in normal page flow, without nested scrolling or PDF navigation. */
.notes-text { overflow-wrap: anywhere; white-space: normal; font-size: 1.05rem; line-height: 1.95; }
.notes-text p { margin: 0 0 1.25em; white-space: pre-line; }
.notes-text p:last-child { margin-bottom: 0; }
.notes-reader.notes-collapsed .notes-text {
  max-height: var(--notes-preview-height);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
}
.notes-toggle { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; margin-top: 12px; color: #ead6ba; }
.notes-toggle[hidden] { display: none; }
.notes-toggle:hover { color: #fff3df; }
.notes-toggle:focus-visible { outline: 2px solid #d7b997; outline-offset: 5px; }

/* Reflection readers expand within the viewport, retaining native inner scrolling. */
.reflection-resource { --reflection-height: calc(100dvh - 180px); }
.reflection-resource.reflection-ready .resource-content {
  max-height: min(12rem, var(--reflection-height));
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b89562 transparent;
}
.reflection-resource.reflection-expanded .resource-content { max-height: var(--reflection-height); }
.reflection-resource .resource-content:focus-visible { outline: 1px solid #d7b997; outline-offset: 4px; }

/* Warm metallic selection on a quiet, continuous speed rail. */
.audio-speed-control { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; max-width: 100%; }
.audio-speed-label { color: #afa18c; font-size: .5625rem; letter-spacing: .22em; line-height: 1.5; }
.audio-speed, .audio-speed * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.audio-speed { display: inline-flex; align-items: center; gap: 2px; padding: 3px; max-width: 100%; border: 1px solid rgb(228 198 143 / 16%); border-radius: 999px; background: linear-gradient(160deg, rgb(26 28 32 / 86%), rgb(8 10 14 / 92%)); }
.audio-speed button { appearance: none; display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 48px; min-height: 44px; padding: 13px 12px; border: 0; border-radius: 999px; background: transparent; color: #b9af9f; font: inherit; font-size: .75rem; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; letter-spacing: .01em; cursor: pointer; position: relative; isolation: isolate; transition: color 280ms ease, background-color 280ms ease; }
.audio-speed-unit { font-size: .7em; opacity: .7; }
.audio-speed button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, #f0d9af, #d2af76); box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%); opacity: 0; transition: opacity 280ms cubic-bezier(.22, 1, .36, 1); }
.audio-speed button[aria-pressed="true"] { color: #201a12; }
.audio-speed button[aria-pressed="true"]::before { opacity: 1; }
.audio-speed button:hover:not(:disabled):not([aria-pressed="true"]) { color: #f0d9af; background: rgb(228 198 143 / 6%); }
.audio-speed button:focus-visible { outline: 2px solid #edcb8e; outline-offset: 4px; }
.audio-speed button:disabled { cursor: default; }
@media (max-width: 380px) { .audio-speed-control { gap: 9px; } .audio-speed button { min-width: 44px; padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { .audio-speed button, .audio-speed button::before { transition: none; } }

/* Semantic Markdown in the existing protected lesson readers. */
.architecture-course .reflection-resource .markdown-content,
.markdown-content, .notes-text.markdown-content p { white-space: normal; }
.markdown-content { line-height: 1.85; overflow-wrap: anywhere; }
.markdown-content > :first-child { margin-top: 0; }
.markdown-content > :last-child { margin-bottom: 0; }
.markdown-content p { margin: 0 0 1em; }
.markdown-content :is(h1,h2,h3,h4,h5,h6) { color: #D4AF37; font-size: 1.25em; line-height: 1.4; letter-spacing: normal; margin: 1.5em 0 .65em; }
.markdown-content :is(ul,ol) { padding-left: 1.5em; margin: 0 0 1.2em; }
.markdown-content ul { list-style: disc; }
.markdown-content ol { list-style: decimal; }
.markdown-content li { margin: .4em 0; }
.markdown-content li::marker { color: #D4AF37; }
.markdown-content strong { font-weight: 700; }
.markdown-content em { font-style: italic; }
.markdown-content blockquote { margin: 1em 0; padding-left: 1em; border-left: 2px solid #D4AF37; }
.markdown-content a { color: #D4AF37; text-decoration: underline; text-underline-offset: .2em; }
.markdown-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.markdown-content code { font-size: .9em; }

/* Align the recording metadata with its centered title and transport controls. */
.architecture-course .week-listening-content .audio-resource .resource-heading {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.architecture-course .audio-resource .resource-heading .eyebrow {
  color: #afa18c;
  font-size: .5625rem;
  letter-spacing: .2em;
}

/* Also omit course content when printing from the browser menu, without JavaScript. */
@media print {
  body.course-page { background: #fff !important; color: #000 !important; min-height: 0 !important; }
  body.course-page > * { display: none !important; }
  body.course-page::before { display: none !important; }
  body.course-page::after {
    content: "Ruach Institute course content is available in the student portal. Printing is disabled.";
    display: block !important;
    position: static !important;
    padding: 24px;
    font: 14px / 1.5 sans-serif;
    color: #000;
    background: #fff;
  }
}
