@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/type/InstrumentSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/type/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/type/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #EBEFF4;
  --grid: #C8D7EE;
  --ink: #14254F;
  --muted: #4A5F82;
  --orange: #E8692D;
  --accent: #B4451A;
  --sans: "Instrument Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --serif: "Instrument Serif", serif;
  --gutter: clamp(1.5rem, 5.5vw, 6.5rem);
  --dock-clearance: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; }
html { scroll-padding-block: 2rem var(--dock-clearance); }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  border-left: 1px solid var(--orange);
  opacity: .35;
  pointer-events: none;
}
button, input { font: inherit; }
code { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button:disabled { cursor: wait; opacity: .65; }
a, button, input, summary { scroll-margin-block: 4rem var(--dock-clearance); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2 { letter-spacing: -.03em; line-height: .96; text-wrap: balance; }
em { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: 1rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem var(--gutter);
  min-height: 86px;
}
.home-page .site-header { position: absolute; inset: 0 0 auto; }
.wordmark {
  display: inline-block;
  white-space: nowrap;
  min-height: 44px;
  font-size: 2.2rem;
  letter-spacing: -.03em;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.wordmark span { color: #205CD4; }
.motion-toggle {
  min-height: 44px;
  min-width: 118px;
  padding: .65rem .9rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: 400 .75rem/1.2 var(--mono);
}
.motion-toggle:hover { background: var(--grid); }
.eyebrow {
  margin-block-end: 1.6rem;
  color: var(--muted);
  font: 400 .75rem/1.6 var(--mono);
}
.world-stage {
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  width: 58vw;
  height: 100svh;
  pointer-events: none;
}
.world-stage img, #world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#world { display: block; opacity: 0; }
.world-stage[data-ready="true"] #world { opacity: 1; }
.world-stage[data-ready="true"] [data-stage-poster] { opacity: 0; }
html[data-motion="off"] #world { opacity: 0 !important; }
html[data-motion="off"] [data-stage-poster] { opacity: 1 !important; }
.chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 8rem var(--gutter) 7rem;
  isolation: isolate;
  overflow: clip;
}
.chapter-hero { padding-bottom: 12rem; }
.chapter-copy { position: relative; z-index: 2; width: 47%; }
.chapter h1, .chapter h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
}
.chapter h2 { font-size: clamp(4rem, 6.8vw, 8.3rem); }
.chapter-intro { max-width: 29ch; margin-bottom: 1.2rem; font-size: clamp(1rem, 1.3vw, 1.25rem); }
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 48px;
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--ink); }
.text-link span { font-size: 1.4rem; font-weight: 400; }
.link-pair { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.chapter-number { position: absolute; bottom: 2.3rem; left: var(--gutter); color: var(--muted); font: .75rem var(--mono); }
.stage-slot { display: none; }
.credentials {
  position: absolute;
  z-index: 2;
  bottom: 3.4rem;
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 1.5rem 0;
  list-style: none;
  border-top: 1px solid var(--muted);
}
.credentials a { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; min-height: 72px; text-decoration: none; }
.credentials img { width: auto; max-width: 180px; height: 28px; object-fit: contain; object-position: left center; }
.credentials span { color: var(--muted); font: .75rem/1.5 var(--mono); }
.credentials a:hover span { color: var(--accent); text-decoration: underline; }
.chapter-hero .chapter-number { bottom: 1.4rem; }
.decor { position: absolute; z-index: -1; pointer-events: none; }
.decor-orbit { top: 20%; right: 5%; width: 34vw; aspect-ratio: 1; border: 1px dashed var(--muted); border-radius: 50%; opacity: .45; }
.decor-orbit::after { content: ""; position: absolute; top: 12%; right: 9%; width: 20px; height: 20px; background: var(--orange); }
/* Stepped bar decoration retired in favour of interactive library_guide.exe */
.decor-window { top: 18%; right: 7%; width: 25vw; aspect-ratio: 1.2; border: 1px solid var(--muted); }
.decor-window span { display: block; padding: .65rem; border-bottom: 1px solid var(--muted); font: .65rem var(--mono); color: var(--muted); }
.decor-window i { position: absolute; width: 3.5rem; height: 3.5rem; top: -1.75rem; right: 2rem; background: var(--orange); }
.decor-asterisk { top: 24%; right: 9%; width: 180px; height: 180px; }
.decor-asterisk i { position: absolute; top: 76px; left: 0; width: 100%; height: 28px; background: var(--orange); }
.decor-asterisk i:nth-child(2) { transform: rotate(60deg); }
.decor-asterisk i:nth-child(3) { transform: rotate(120deg); }
.taskbar {
  position: fixed;
  z-index: 20;
  inset: auto 0 calc(1.15rem + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100% - 24px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(44px, auto);
  gap: .25rem;
  margin-inline: auto;
  padding: .45rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 7px;
  box-shadow: 4px 5px 0 var(--ink);
}
.taskbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem 1.2rem; border-radius: 3px; font: .75rem/1.2 var(--mono); text-decoration: none; }
.taskbar a:hover { background: var(--grid); }
.taskbar [aria-current="page"] { background: var(--ink); color: var(--paper); }
.taskbar [aria-current="page"]:hover { background: var(--ink); }
.site-footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: 2rem var(--gutter) var(--dock-clearance); border-top: 1px solid var(--muted); background: var(--paper); color: var(--muted); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .company-line { flex-basis: 100%; font-size: .75rem; }
.page-main { position: relative; padding: 3.5rem var(--gutter) 7rem; }
.page-heading { max-width: 1050px; margin-bottom: 4rem; }
.page-heading h1 { margin-bottom: 1.7rem; font-size: clamp(4.3rem, 8.5vw, 8.5rem); }
.page-heading > p:last-child { max-width: 42ch; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.window { border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.window-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; background: var(--ink); color: var(--paper); font: .7rem/1.5 var(--mono); }
.window-bar span:last-child { opacity: .8; }
.window-content { padding: clamp(1.25rem, 3vw, 3rem); }
.library-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--muted); }
.library-toolbar button { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--muted); border-radius: 3px; color: var(--ink); background: var(--paper); font: .7rem/1.3 var(--mono); }
.library-toolbar button:hover { background: var(--grid); }
.library-toolbar [aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-status { min-height: 1.6rem; margin: 1rem 0 2rem; color: var(--muted); font: .7rem/1.6 var(--mono); }
.library-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin: 0; padding: 0; list-style: none; }
.library-item { min-width: 0; border-bottom: 1px solid var(--grid); }
.library-item a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 160px; padding: 1.6rem 0; text-decoration: none; }
.library-item a:hover h2 { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.library-item h2 { margin: .55rem 0; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.18; letter-spacing: -.035em; text-wrap: pretty; }
.resource-meta, .evidence { color: var(--muted); font: .75rem/1.6 var(--mono); }
.resource-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.resource-type { padding: .15rem .45rem; border: 1px solid var(--grid); }
.evidence { margin-top: .4rem; }
.review-note { max-width: 80ch; margin: 3rem 0 0; color: var(--muted); font-size: .85rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.editorial-list { padding: 0; margin: 0; list-style: none; }
.editorial-list li { padding: 1.4rem 0; border-top: 1px solid var(--muted); }
.editorial-list h2, .editorial-list h3 { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.04em; margin-bottom: .6rem; }
.editorial-list p { max-width: 40ch; color: var(--muted); margin-bottom: .5rem; }
.section-title { font-size: clamp(2.4rem, 4vw, 4rem); margin-bottom: 2rem; }
.speaking-art { margin: 0; }
.speaking-art img { width: 100%; max-height: 530px; object-fit: contain; }
.speaking-art figcaption { color: var(--muted); font: .7rem/1.6 var(--mono); }
.content-section { margin-top: 6rem; }
.appearances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.appearance { padding-block: 1.5rem; border-top: 1px solid var(--muted); }
.appearance h3 { margin: .6rem 0; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.2; }
.appearance p { color: var(--muted); }
.academy-main { max-width: 1240px; margin-inline: auto; padding-top: 2rem; }
.academy-window .window-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.academy-copy h1 { margin-bottom: 1.5rem; font-size: clamp(3.7rem, 5.7vw, 6rem); }
.academy-copy > p { max-width: 30ch; }
.academy-art { width: 100%; max-height: 250px; object-fit: contain; }
.waitlist-form { align-self: center; min-width: 0; }
.waitlist-form label:not(.consent-label) { display: block; margin-bottom: .6rem; font-weight: 550; }
.waitlist-form input[type="email"] { width: 100%; min-height: 54px; padding: .8rem 1rem; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 1rem; }
.field-hint { margin: .5rem 0 1.5rem; color: var(--muted); font-size: .8rem; }
.consent-label { display: flex; align-items: flex-start; gap: .85rem; min-height: 44px; margin: 1.5rem 0; padding-block: .25rem; font-size: .9rem; cursor: pointer; }
.consent-label input { flex: 0 0 21px; width: 21px; height: 21px; margin: .15rem 0 0; accent-color: var(--accent); }
.form-notice { margin: 1.5rem 0; padding: 1rem 0 1rem 1rem; border-left: 3px solid var(--orange); color: var(--muted); font-size: .85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 50px; padding: .85rem 1.4rem; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--paper); font-weight: 550; text-decoration: none; }
.button:hover { background: var(--ink); border-color: var(--ink); }
.waitlist-form .button { width: 100%; margin-top: 1rem; }
.form-status { min-height: 1.5rem; margin: 1rem 0; font-size: .9rem; }
.form-status[data-state="error"] { color: var(--accent); }
.form-status[data-state="success"] { color: var(--ink); font-weight: 550; }
.form-privacy { font-size: .8rem; color: var(--muted); }
.form-privacy a { display: inline-flex; align-items: center; min-height: 44px; }
.noscript-notice { display: block; padding: 1rem; border: 1px solid var(--accent); color: var(--accent); }
.academy-page { position: relative; }
/* Anchor the same dock to the footer without changing document height on blur. */
body[data-keyboard="open"] .taskbar { position: absolute; margin-block: 0; }
.contact-window { max-width: 1000px; }
.contact-email { display: inline-flex; align-items: center; min-height: 60px; max-width: 100%; margin-bottom: 1.5rem; font-size: clamp(1.5rem, 4vw, 3.2rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.contact-note { max-width: 45ch; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; font: .75rem/1.4 var(--mono); }
.contact-bottom { margin-top: 3rem; max-width: 1000px; }
.privacy-main { max-width: 1100px; margin-inline: auto; }
.privacy-main .page-heading h1 { font-size: clamp(3.6rem, 7vw, 6.5rem); }
.prose { max-width: 70ch; }
.prose section { margin-bottom: 3rem; }
.prose h2 { margin-bottom: 1rem; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-block: .75rem; }
@media (min-width: 1600px) {
  .chapter-copy { max-width: 720px; }
  .page-main:not(.academy-main):not(.privacy-main) { max-width: 1800px; margin-inline: auto; }
}
/* Wide screens: the taskbar sits in the right-hand column so it never covers the hero bio card */
@media (min-width: 1100px) {
  .taskbar { margin-inline: auto var(--gutter); }
}
@media (max-width: 900px) {
  .chapter h1 { font-size: clamp(3.5rem, 7vw, 5rem); }
  .chapter h2 { font-size: clamp(3.8rem, 7.8vw, 5.7rem); }
  .chapter-copy { width: 49%; }
  .credentials { gap: 1rem; }
  .credentials img { max-width: 145px; height: 24px; }
  .appearances { grid-template-columns: 1fr; gap: 0; }
  .academy-window .window-content { gap: 2rem; }
}
@media (max-width: 700px) {
  :root { --gutter: 1.5rem; }
  body { background-size: 36px 36px; }
  body::before { left: 12px; }
  .site-header { padding-block: 1rem; min-height: 78px; }
  .wordmark { font-size: 2rem; }
  .motion-toggle { min-width: 108px; font-size: .75rem; }
  .chapter { display: block; min-height: 100svh; padding: 5.8rem var(--gutter) 3.8rem; }
  .chapter-hero { padding-top: 7.5rem; padding-bottom: 3.8rem; }
  .chapter-copy { width: 100%; }
  .chapter h1 { font-size: clamp(3.5rem, 14vw, 4.5rem); margin-bottom: 1.25rem; }
  .chapter h2 { font-size: clamp(3.8rem, 13vw, 5.8rem); margin-bottom: 1.25rem; }
  .eyebrow { margin-bottom: 1.15rem; font-size: .75rem; }
  .chapter-intro { max-width: 30ch; font-size: 1rem; margin-bottom: .5rem; }
  .world-stage { display: none; width: 100%; height: 48svh; min-height: 260px; top: 28rem; }
  html[data-enhanced="true"] .world-stage { display: block; }
  .stage-slot { display: block; position: relative; min-height: 260px; height: 48svh; margin: 0 calc(-1 * var(--gutter)); background-position: center; background-repeat: no-repeat; background-size: contain; }
  [data-model="hero"] .stage-slot { background-image: url("/assets/models/hero.webp"); }
  [data-model="skills"] .stage-slot { background-image: url("/assets/models/skills.webp"); }
  [data-model="learn"] .stage-slot { background-image: url("/assets/models/learn.webp"); }
  [data-model="academy"] .stage-slot { background-image: url("/assets/models/academy.webp"); }
  [data-model="speaking"] .stage-slot { background-image: url("/assets/models/speaking.webp"); }
  .stage-slot:has(.world-stage), html[data-enhanced="true"] .stage-slot[data-hosted="true"] { background-image: none !important; }
  .credentials { position: relative; inset: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; padding: 1.3rem 0; }
  .credentials a { min-height: 58px; gap: .55rem; }
  .credentials img { height: 23px; max-width: 145px; }
  .credentials span { font-size: .75rem; }
  .chapter-number, .chapter-hero .chapter-number { bottom: 1.5rem; font-size: .75rem; }
  .decor-orbit { width: 65vw; top: 43%; right: 7%; }
  .decor-window { width: 55vw; top: 45%; right: 7%; }
  /* Retired decor-steps mobile overrides */
  .decor-asterisk { top: 45%; right: 8%; width: 110px; height: 110px; }
  .decor-asterisk i { top: 47px; height: 17px; }
  .taskbar { width: calc(100% - 28px); padding: .3rem; gap: .1rem; bottom: calc(.8rem + env(safe-area-inset-bottom, 0px)); }
  .taskbar a { padding: .55rem .15rem; font-size: .75rem; min-height: 48px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .site-footer p { max-width: 39ch; }
  .page-main { padding-top: 2.6rem; padding-bottom: 4rem; }
  .page-heading { margin-bottom: 2.5rem; }
  .page-heading h1 { font-size: clamp(3.8rem, 14vw, 5.8rem); }
  .page-heading > p:last-child { font-size: 1.1rem; }
  .window { box-shadow: 5px 5px 0 var(--ink); }
  .window-bar { padding: .8rem 1rem; font-size: .63rem; }
  .window-bar span:last-child { font-size: .57rem; }
  .library-toolbar { gap: .4rem; }
  .library-toolbar button { padding-inline: .8rem; }
  .library-list { grid-template-columns: 1fr; }
  .library-item a { min-height: 135px; }
  .library-item h2 { font-size: 1.45rem; }
  .split-layout, .academy-window .window-content { grid-template-columns: 1fr; gap: 2rem; }
  .speaking-art { order: 2; }
  .speaking-art img { max-height: 340px; }
  .content-section { margin-top: 4rem; }
  .academy-main { padding-top: 1.6rem; }
  .academy-copy h1 { font-size: clamp(3.2rem, 12vw, 5rem); }
  .academy-art { max-height: 180px; }
  .contact-email { font-size: clamp(1.25rem, 7vw, 2rem); }
  .privacy-main .page-heading h1 { font-size: clamp(3.2rem, 12vw, 5rem); }
}
/* Six labels need about 345px at 12px; below that the wordmark is the way home. */
@media (max-width: 379px) {
  .taskbar .taskbar-home { display: none; }
}
@media (max-width: 360px) {
  :root { --gutter: 1.2rem; }
  .credentials { gap: 1rem; }
  .credentials img { max-width: 125px; }
}
@media (forced-colors: active) {
  .taskbar, .window, .button, .motion-toggle { border: 1px solid ButtonText; box-shadow: none; }
  .taskbar [aria-current="page"], .library-toolbar [aria-pressed="true"] { outline: 2px solid ButtonText; }
  .decor { display: none; }
}
