@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Serif+Devanagari:wght@400;500;600&family=Noto+Serif+Gurmukhi:wght@400;500;600&family=Spectral:ital,wght@0,300;0,400;0,500;1,400&display=swap");

/* Baskin Logic Crypto Academy — design tokens + chrome
   PRIVATE COMP. Freeze until 11 Sep 2026. Do not publish.
   Site: drop Joshua's BL lockup into .lockup-slot. Do not invent a crest. */

:root {
  --navy: #0b1220;
  --gold: #c9a24a;
  --white: #FFFFFF;
  --paper: #0b1220;
  --ink: #f4f1ea;
  --ink-soft: rgba(244, 241, 234, 0.72);
  --rule: #c9a24a;
  --radius: 8px;
  --pad-m: 24px;
  --pad-d: 56px;
  --content-m: 36rem;
  --content-d: 42rem;
  --tiles-d: 58rem;
  --body: 18px;
  --leading: 1.55;
  --serif: "Spectral", "Noto Serif Devanagari", "Noto Serif Gurmukhi", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --navy-deep: #070c16;
  --gold-ink: #c9a24a;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --header-h: 48px;
}

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

html { color-scheme: dark; }


/* Hindi / Punjabi: Spectral has no Devanagari or Gurmukhi.
   Free Google fonts only. English and Spanish stay Spectral. */
html[lang="hi"],
html[lang^="hi-"] {
  --serif: "Noto Serif Devanagari", "Noto Sans Devanagari", "Spectral", Georgia, "Times New Roman", serif;
}
html[lang="pa"],
html[lang^="pa-"] {
  --serif: "Noto Serif Gurmukhi", "Noto Sans Gurmukhi", "Spectral", Georgia, "Times New Roman", serif;
}
html[lang="hi"] body,
html[lang^="hi-"] body,
html[lang="hi"] .site-header,
html[lang^="hi-"] .site-header,
html[lang="pa"] body,
html[lang^="pa-"] body,
html[lang="pa"] .site-header,
html[lang^="pa-"] .site-header {
  font-family: var(--serif);
}


body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--body);
  line-height: var(--leading);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover, a:focus-visible, a:active { color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--navy);
  color: var(--gold);
  padding: 8px 12px;
  border: 1px solid var(--gold);
}

.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding: 12px var(--pad-m);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}

.brand:hover { color: var(--white); }

.lockup-slot {
  flex: 0 0 var(--header-h);
  width: var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
  border: 0;
}
.lockup-slot img {
  width: var(--header-h);
  height: var(--header-h);
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--white);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(247, 244, 236, 0.78);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 10px;
  margin-left: auto;
  max-width: 100%;
}
.lang-switch button {
  appearance: none;
  background: none;
  border: 0;
  padding: 2px 0;
  margin: 0;
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch button:hover,
.lang-switch button:focus-visible {
  color: var(--white);
}
.lang-switch button[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--gold);
}
.lang-switch button[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", var(--serif);
}
.lang-switch button[data-lang="pa"] {
  font-family: "Noto Serif Gurmukhi", var(--serif);
}

.page { min-height: 70vh; }

.wrap {
  width: min(100% - (var(--pad-m) * 2), var(--content-m));
  margin: 0 auto;
}

.hero,
.block {
  padding: 56px 0 24px;
}

.hero { padding-top: 56px; padding-bottom: 40px; }

.kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
}

.kicker-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.kicker-text {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.pages-mark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 20px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
}

.lede,
.prose p {
  margin: 0 0 1.15em;
  color: var(--ink);
  max-width: 38rem;
}

.lede { margin-bottom: 32px; }

.prose ul {
  margin: 0 0 1.4em;
  padding-left: 1.15em;
}

.prose li { margin: 0 0 0.55em; }
.prose li::marker { color: var(--gold); }

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.btn:active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.cta-row { margin: 8px 0 0; }

.quiet {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 40px 0 0;
  max-width: 32rem;
}

.quiet-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.tiles {
  width: min(100% - (var(--pad-m) * 2), var(--content-m));
  margin: 8px auto 80px;
  display: grid;
  gap: 40px;
}

.tile {
  padding: 8px 0 8px;
  border-top: 1px solid var(--gold);
}

.tile-kicker {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 16px 0 10px;
}

.tile h2 { margin-bottom: 8px; }
.tile p { margin: 0; color: var(--ink); }

.split {
  display: grid;
  gap: 40px;
  margin: 16px 0 40px;
}

.panel {
  padding-top: 20px;
  border-top: 1px solid var(--gold);
}

.panel h2 { font-size: 1.35rem; }

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.back-link:hover { color: var(--white); }

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px var(--pad-m) 40px;
  margin-top: 0;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
}

.footer-inner p:last-child { margin-bottom: 0; }

.footer-inner a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.footer-inner a:hover { color: var(--white); }

.footer-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 16px;
}

@media (min-width: 800px) {
  .site-header { padding: 14px var(--pad-d); }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
  }

  .brand-name { font-size: 15px; }
  .site-nav { gap: 4px 22px; }

  .wrap {
    width: min(100% - (var(--pad-d) * 2), var(--content-d));
  }

  .hero { padding-top: 72px; padding-bottom: 48px; }
  .block { padding: 32px 0 40px; }
  h1 { font-size: 3.05rem; margin-bottom: 24px; }

  .tiles {
    width: min(100% - (var(--pad-d) * 2), var(--tiles-d));
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 112px;
    margin-top: 24px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .site-footer { padding: 40px var(--pad-d); }
}

@media (min-width: 1100px) {
  h1 { font-size: 3.25rem; }
}

.gate {
  display: grid;
  gap: 16px;
  max-width: 22rem;
  margin: 24px 0 0;
}
.gate label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.gate input {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  background: #101828;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.gate input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.gate .btn {
  justify-self: start;
  margin-top: 4px;
}


.charge-facts {
  margin: 20px 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gold);
  display: grid;
  gap: 12px;
  max-width: 28rem;
}
.charge-facts > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 12px;
  align-items: center;
}
.charge-facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.charge-facts dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}
.charge-date {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  background: #101828;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.consent {
  margin: 0 0 16px;
  max-width: 32rem;
}
.consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--white);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

/* Classroom page — school density, not a terminal.
   Sticky header is chrome for every page. Table air lives here. */
.classroom-tools {
  width: min(100% - (var(--pad-m) * 2), var(--content-m));
  margin: 0 auto 72px;
  display: grid;
  gap: 56px;
}

.tool {
  padding-top: 24px;
  border-top: 1px solid var(--gold);
}

.tool-kicker {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.tool h2 { margin-bottom: 8px; }

.tool .lede-s {
  margin: 0 0 20px;
  max-width: 38rem;
  color: var(--ink);
}

.tool .note {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
}

.snap-banner {
  font-size: 14px;
  line-height: 1.45;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 12px 16px;
  margin: 0 0 20px;
  max-width: 42rem;
}

.snap-banner.sample {
  border-color: var(--navy);
  font-weight: 600;
}

.snap-banner[hidden] { display: none; }

.mood-board {
  display: grid;
  gap: 16px;
  max-width: 28rem;
}

.mood-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.mood-class {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.mood-track {
  position: relative;
  height: 6px;
  background: #1a2438;
  margin: 8px 0 0;
}

.mood-fill {
  display: block;
  height: 100%;
  width: var(--mood, 0%);
  max-width: 100%;
  background: var(--gold);
}

.mood-thumb {
  position: absolute;
  top: 50%;
  left: var(--mood, 0%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--navy);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mood-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.snap-table {
  width: 100%;
  border-collapse: collapse;
}

.snap-table th {
  text-align: left;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 20px 12px 0;
  border-bottom: 1px solid var(--gold);
}

.snap-table th:last-child { padding-right: 0; }

.snap-table td {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--gold);
  vertical-align: top;
  color: var(--ink);
}

.snap-table td:last-child { padding-right: 0; }

.snap-table tbody tr:last-child td { border-bottom: 0; }

.snap-name {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.snap-what { max-width: 28rem; }

.snap-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.cap-formula {
  margin: 0 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gold);
  max-width: 38rem;
}

.cap-formula p { margin: 0 0 0.8em; }
.cap-formula p:last-child { margin-bottom: 0; }

.cap-math {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 800px) {
  .classroom-tools {
    width: min(100% - (var(--pad-d) * 2), var(--tiles-d));
    gap: 72px;
    margin-bottom: 96px;
  }

  .mood-value { font-size: 5rem; }

  .snap-table th:last-child,
  .snap-table td:last-child { text-align: right; }
}

@media (max-width: 639px) {
  .snap-table thead { position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden; }
  .snap-table, .snap-table tbody, .snap-table tr, .snap-table td { display: block; width: 100%; }
  .snap-table tr {
    padding: 8px 0 4px;
    border-bottom: 1px solid var(--gold);
  }
  .snap-table tbody tr:last-child { border-bottom: 0; }
  .snap-table td {
    padding: 8px 0;
    border-bottom: 0;
  }
  .snap-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
  }
}


.lockup-plate {
  margin: 0 0 28px;
}
.lockup-plate img {
  display: block;
  height: 180px;
  width: auto;
  max-width: min(100%, 220px);
  background: transparent;
  object-fit: contain;
}
.lockup-footer {
  display: block;
  height: 72px;
  width: auto;
  margin: 0 0 16px;
  object-fit: contain;
  background: transparent;
}
@media (min-width: 800px) {
  .lockup-plate img { height: 220px; max-width: 260px; }
}


/* cinematic door styles: see page-door block below */



/* Academy desk chat — school desk, not a consult, not a wallet. No capture.
   Launcher is Joshua's 48px lockup. Do not invent a crest. Page keeps the one gold CTA. */
.bl-desk-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11,31,58,0.28);
}
.bl-desk-btn img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  background: #0b1220;
}
.bl-desk-btn:hover { border-color: var(--gold); }
.bl-desk {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 40;
  width: min(24rem, calc(100vw - 32px));
  max-height: min(28rem, calc(100vh - 120px));
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(11,31,58,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bl-desk[hidden] { display: none; }
.bl-desk-head {
  background: var(--navy);
  color: var(--paper);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bl-desk-head > div {
  min-width: 0;
  flex: 1;
}
.bl-desk-head img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--navy);
  flex: 0 0 36px;
}
.bl-desk-kicker {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.bl-desk-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
  overflow-wrap: break-word;
}
.bl-desk-note {
  margin: 0;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--white);
  border-bottom: 1px solid var(--gold);
}
.bl-desk-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--navy);
}
.bl-desk-msg {
  font-size: 16px;
  line-height: 1.45;
}
.bl-desk-msg a { color: var(--gold); }
.bl-desk-msg.you { color: var(--ink-soft); }
.bl-desk-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--gold);
  background: #101828;
}
.bl-desk-form input {
  flex: 1;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 8px 10px;
  font-family: var(--serif);
  font-size: 16px;
  background: #101828;
  color: var(--white);
}
.bl-desk-form button {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 8px 12px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
}




/* —— Cinematic worlds homepage (Joshua's scroll-story craft, gold lockup) —— */

body.worlds {
  background: var(--navy-deep);
  color: #F3F7F8;
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition: color .45s ease;
}
body.worlds.lit { color: var(--ink); }

#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 90% at 50% 8%, #1c2a44 0%, var(--navy-deep) 55%, #06121f 100%);
}
#floor { position: fixed; inset: 0; z-index: -1; display: block; }
body.worlds main { position: relative; z-index: 1; }

body.worlds .site-header {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: rgba(11, 29, 51, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.75);
}
body.worlds .header-inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

section.world {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16vh 24px;
  text-align: center;
}
body.worlds .wrap { max-width: 62ch; margin: 0 auto; width: auto; }

body.worlds h1,
body.worlds h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #F7F4EC;
}
body.worlds h1 { font-size: clamp(2.4rem, 7.4vw, 5.1rem); margin: 0; }
body.worlds h2 { font-size: clamp(1.85rem, 5vw, 3.35rem); margin: 0; }
body.worlds .lead {
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  margin-top: 1.25rem;
  color: #E4D7B8;
}
body.worlds p.body {
  font-size: 1.06rem;
  margin-top: 1.15rem;
  color: #C9D4DC;
}
body.worlds em { color: var(--gold); font-style: italic; }
body.worlds.lit h1,
body.worlds.lit h2 { color: var(--ink); }
body.worlds.lit .lead { color: #5a4a28; }
body.worlds.lit p.body { color: #33505c; }
body.worlds.lit em { color: var(--gold-ink); }

#depth {
  position: fixed;
  left: 18px;
  bottom: 16px;
  z-index: 5;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  pointer-events: none;
}
#depth b { color: var(--gold); font-weight: 500; }
body.worlds.lit #depth { color: rgba(11,29,51,.45); }
body.worlds.lit #depth b { color: var(--gold-ink); }

.portal {
  position: relative;
  width: min(280px, 62vw);
  aspect-ratio: 3 / 4;
  margin: 0 auto 2.1rem;
  border-radius: 150px 150px 16px 16px;
  background: linear-gradient(180deg, #0e2f4d, #071422);
  border: 1px solid rgba(196, 163, 90, .55);
  box-shadow: 0 0 70px rgba(196, 163, 90, .22), inset 0 0 48px rgba(196, 163, 90, .08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.portal-film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--navy-deep);
}
.portal::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(196, 163, 90, .32));
  pointer-events: none;
}

.who {
  margin-top: 1.45rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: #B9CDD0;
  letter-spacing: .03em;
}
.who .name { color: #fff; }
body.worlds.lit .who { color: #4a6470; }
body.worlds.lit .who .name { color: var(--ink); }

.cta {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-deep);
  background: var(--gold);
  padding: .92rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover {
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(196, 163, 90, .36);
}

.js-on .reveal { opacity: 0; transform: translateY(22px); }
.js-on .reveal.is-in,
.js-on.reveal-safe .reveal { opacity: 1; transform: none; }

.fences {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  text-align: left;
  max-width: 38rem;
}
.fences li {
  font-family: var(--mono);
  font-size: .84rem;
  letter-spacing: .02em;
  color: #D6E4E6;
  padding: .55rem 0 .55rem 1.6rem;
  border-top: 1px solid rgba(196, 163, 90, .28);
  position: relative;
}
.fences li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .68rem;
}
.fences { counter-reset: item; }
body.worlds.lit .fences li { color: #33505c; border-top-color: rgba(11, 31, 58, .16); }

.hometowns {
  font-size: .92rem !important;
  color: rgba(201, 212, 220, .78) !important;
}

.paths {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.2rem;
}
.path {
  border: 1px solid rgba(11, 29, 51, .16);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  min-width: 168px;
  max-width: 240px;
  background: rgba(255, 255, 255, .62);
  text-align: left;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.path .k {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--gold-ink);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.path .t {
  font-family: var(--serif);
  font-size: 1.22rem;
  margin-top: .18rem;
  color: var(--ink);
}
.path .d { font-size: .88rem; color: #4a6470; margin-top: .3rem; }
.path:hover { border-color: var(--gold); }

.world-foot {
  text-align: center;
  padding: 2.4rem 24px 4.2rem;
  color: #8aa0a8;
  font-size: .8rem;
  position: relative;
  z-index: 1;
}
body.worlds.lit .world-foot { color: #5a7480; }
.world-foot a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); }
.world-foot p { margin: 0 0 8px; }
.lockup-foot {
  display: block;
  height: 72px;
  width: auto;
  margin: 0 auto 16px;
}

.constitution .prose { padding-bottom: 64px; }

@media (max-width: 420px) {
  body.worlds .brand-name {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-on .reveal { opacity: 1; transform: none; }
  .cta { transition: none; }
}


body.home .site-header {
  background: linear-gradient(to bottom, rgba(11, 31, 58, 0.82), rgba(11, 31, 58, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold);
}
body.home .brand-name { color: var(--white); }
body.home .site-nav a { color: rgba(247, 244, 236, 0.82); }
body.home .site-nav a:hover,
body.home .site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--gold);
}


/* =================================================================
   PRESTIGE CINEMATIC DOOR — full first screen, 16:9 covering
   Navy #0b1220 / gold #c9a24a / white. Dark room. Gold hairline. One CTA after film.
   ================================================================= */

body.home {
  background: var(--navy);
}
body.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(11, 31, 58, 0.82), rgba(11, 31, 58, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold);
  z-index: 10;
}
body.home .brand-name { color: var(--white); }
body.home .site-nav a { color: rgba(247, 244, 236, 0.82); }
body.home .site-nav a:hover,
body.home .site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--gold);
}
body.home .page { min-height: 0; }

.cinematic-door {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 32rem;
  background: var(--navy);
  margin: 0;
  overflow: hidden;
}
.cinematic-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  background: var(--navy);
}
.cinematic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background:
    linear-gradient(to top, rgba(11, 31, 58, 0.96) 0%, rgba(11, 31, 58, 0.52) 38%, rgba(11, 31, 58, 0.16) 64%, rgba(11, 31, 58, 0.38) 100%),
    linear-gradient(to right, rgba(11, 31, 58, 0.42), transparent 46%);
  pointer-events: none;
  z-index: 1;
}
.cinematic-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
}
.hero-plate {
  pointer-events: none;
  width: min(100% - (var(--pad-m) * 2), var(--content-d));
  margin: 0 auto;
  padding: 0 0 48px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.15s ease, transform 1.15s ease;
}
.cinematic-door.is-ended .hero-plate {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}
.hero-plate .kicker-text { color: var(--gold); }
.hero-plate .kicker-rule { background: var(--gold); }
.hero-plate h1 {
  color: var(--white);
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(11, 31, 58, 0.45);
}
.hero-plate .lede {
  color: var(--white);
  opacity: 0.92;
  max-width: 34rem;
}
.hero-plate .lockup-plate { margin: 0 0 20px; }
.hero-plate .lockup-plate img {
  height: 112px;
  max-width: 140px;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--gold);
}
@media (min-width: 800px) {
  .hero-plate { padding-bottom: 72px; }
  .hero-plate .lockup-plate img { height: 140px; max-width: 176px; }
  .hero-plate h1 { font-size: 3.15rem; }
}
@media (min-width: 1100px) {
  .hero-plate h1 { font-size: 3.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plate {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
}

.after-door {
  background: var(--navy);
  color: var(--white);
}
body.home .site-footer { margin-top: 0; }

.btn.is-wait,
.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: default;
  box-shadow: none;
}
.btn.is-wait:hover,
.btn[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn.is-live {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
}
.btn.is-live:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.draft-banner {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--gold);
  padding: 20px 22px;
  margin: 0 0 28px;
  max-width: 38rem;
}
.draft-banner .draft-mark {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.draft-banner p { margin: 0; color: var(--white); max-width: none; }

.bl-desk-kicker,
.bl-desk-note { display: none !important; }


.btn.is-off,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
}
.country-confirm {
  margin: 0 0 20px;
  max-width: 28rem;
  display: grid;
  gap: 8px;
}
.country-confirm label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.country-confirm select {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--white);
  background: #101828;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
}
#join-hold[hidden],
#join-paid[hidden] { display: none; }


/* =================================================================
   HUB PACK — dark gold room. Kill cream. Book+torch only.
   ================================================================= */

body {
  background: #0b1220;
  color: #f4f1ea;
}

.brand-name { color: #ffffff; }
.site-header { background: #0b1220; }

.hub-room {
  min-height: calc(100dvh - 7.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 48px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(201, 162, 74, 0.10), transparent 58%),
    #0b1220;
}

.hub-mark {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 36rem;
}

.hub-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 18px;
  background: transparent;
}

.hub-kicker {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hub-line {
  margin: 0;
  color: rgba(244, 241, 234, 0.78);
  font-size: 1.05rem;
}

.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(100% - 0px, 58rem);
  margin: 0 auto;
}

.door {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 13.5rem;
  padding: 28px 24px;
  border: 1px solid var(--gold);
  background: rgba(7, 12, 22, 0.55);
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.door:hover,
.door:focus-visible {
  color: var(--white);
  background: rgba(201, 162, 74, 0.08);
  box-shadow: 0 0 0 1px var(--gold), 0 0 36px rgba(201, 162, 74, 0.16);
}

.door-kicker {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.door-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.door-note {
  margin-top: 10px;
  color: rgba(244, 241, 234, 0.72);
  font-size: 0.98rem;
  line-height: 1.4;
}

body.hub .site-footer { padding-top: 24px; padding-bottom: 28px; }
body.hub .lockup-footer { height: 48px; }

.lesson-stamp {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

@media (min-width: 900px) {
  .doors {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
  .door { min-height: 14rem; }
  .hub-room { padding-top: 48px; padding-bottom: 64px; }
}

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


.lesson-row {
  width: min(100%, 58rem);
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px 24px;
  grid-template-columns: 1fr;
}
.lesson-row li { margin: 0; }
.lesson-row a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}
.lesson-row a:hover,
.lesson-row a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold);
}
@media (min-width: 640px) {
  .lesson-row {
    grid-template-columns: 1fr 1fr;
    margin-top: 36px;
  }
}

/* =================================================================
   SCHOOL RESPONSIVE — phone ≤639 / tablet 640–1023 / desktop ≥1024
   ================================================================= */

.site-header {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(var(--pad-m), env(safe-area-inset-left));
  padding-right: max(var(--pad-m), env(safe-area-inset-right));
}
.site-footer {
  padding-left: max(var(--pad-m), env(safe-area-inset-left));
  padding-right: max(var(--pad-m), env(safe-area-inset-right));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.brand { min-width: 0; flex: 1 1 9rem; order: 1; }
.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.lang-switch {
  flex: 0 1 auto;
  order: 2;
  min-width: 0;
  max-width: 100%;
}
.lang-switch button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 6px;
}
.lang-switch button:active { color: var(--white); }
.site-nav {
  flex: 1 1 100%;
  order: 3;
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}
.site-nav a:active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav a:focus-visible {
  color: var(--gold);
}

.door { min-height: 8rem; padding: 18px 16px; }
.door-title { font-size: 1.35rem; }
.door:active {
  color: var(--white);
  background: rgba(201, 162, 74, 0.08);
}

h1, .lede, .prose p, .hub-line, .snap-banner, .cap-math, .quiet, .note, .tool .lede-s {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.wrap, .classroom-tools, .hub-room, .doors, .lesson-row, .mood-board, .mood-meter, .mood-track {
  max-width: 100%;
}
.mood-track { overflow: hidden; }
.mood-meter { width: 100%; box-sizing: border-box; }
.lesson-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: break-word;
}
.lesson-row a:active { color: var(--white); border-bottom-color: var(--gold); }
.back-link:focus-visible, .back-link:active { color: var(--white); }
.footer-inner a:focus-visible, .footer-inner a:active { color: var(--white); }
.btn:focus-visible { color: var(--navy); background: var(--gold); }
.btn:active { color: var(--navy); background: var(--gold); }

.bl-desk-btn {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
}
.bl-desk-btn:focus-visible,
.bl-desk-btn:active { border-color: var(--white); }
.bl-desk {
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
.bl-desk-form button {
  min-height: 44px;
  min-width: 44px;
}
.bl-desk-form button:focus-visible,
.bl-desk-form button:active { background: var(--gold); color: var(--navy); }

@media (max-width: 639px) {
  h1 { font-size: 1.85rem; }
  .hub-room {
    padding: 20px 16px 36px;
    min-height: 0;
    justify-content: flex-start;
  }
  .hub-mark { margin-bottom: 22px; }
  .hub-mark img { width: 56px; height: 56px; }
  .doors { gap: 12px; }
  .door { min-height: 8rem; }
  .country-confirm,
  .country-confirm select,
  .invite-code,
  .invite-code input,
  .cta-row .btn,
  #subscribe-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .charge-facts,
  .consent,
  .invite-code,
  .country-confirm { max-width: 100%; }
  .charge-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .bl-desk-btn {
    width: 44px;
    height: 44px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .bl-desk-btn img { width: 44px; height: 44px; }
  .bl-desk {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    max-height: min(72dvh, calc(100dvh - 72px - env(safe-area-inset-bottom, 0px)));
  }
  /* Keep last CTA / footer clear of the chat launcher. */
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .cta-row { margin-bottom: 12px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .header-inner { gap: 10px 18px; }
  .brand { flex: 1 1 14rem; }
  .brand-name { font-size: 15px; }
  .lang-switch { flex: 0 0 auto; }
  .site-nav { flex: 1 1 100%; }
  .door { min-height: 11rem; padding: 22px 20px; }
  .door-title { font-size: 1.55rem; }
  h1 { font-size: 2.35rem; }
  .hub-room { padding: 36px 28px 48px; }
  .bl-desk-btn {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
  .bl-desk {
    width: min(24rem, calc(100vw - 32px));
    right: max(16px, env(safe-area-inset-right));
    left: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 900px) and (max-width: 1023px) {
  .doors { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .door { min-height: 13rem; }
  .door-title { font-size: 1.4rem; }
}

@media (min-width: 800px) and (max-width: 899px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 11rem; }
}

@media (min-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 24px 32px;
  }
  .brand, .site-nav, .lang-switch { order: 0; }
  .brand { flex: 0 1 auto; max-width: 42%; }
  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .lang-switch { flex: 0 0 auto; margin-left: 8px; }
  .brand-name { font-size: 16px; }
  .doors { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .door { min-height: 16rem; padding: 28px 24px; }
  .door-title { font-size: 1.7rem; }
  h1 { font-size: 3.05rem; }
  .site-header {
    padding: 14px var(--pad-d);
    padding-top: max(14px, env(safe-area-inset-top));
    padding-left: max(var(--pad-d), env(safe-area-inset-left));
    padding-right: max(var(--pad-d), env(safe-area-inset-right));
  }
  .site-footer {
    padding: 40px var(--pad-d);
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    padding-left: max(var(--pad-d), env(safe-area-inset-left));
    padding-right: max(var(--pad-d), env(safe-area-inset-right));
  }
  .bl-desk {
    width: min(24rem, calc(100vw - 32px));
    left: auto;
  }
}

@media (min-width: 1100px) {
  h1 { font-size: 3.25rem; }
}
