/* CAPITAILS site styles
   Layout: a night-time office tower. Navy bands stacked like floors, gold contours,
   chunky bevelled buttons that echo the gold-bar logo, the cast standing above a city skyline. */

/* Nunito Sans, served from this site (SIL Open Font License) */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* Every page is one screen: header, one composed view, footer. Nothing scrolls on a
   desktop or laptop window. Sizes are tied to the window height so the view always fits. */

:root {
  color-scheme: dark;

  /* colour */
  --navy-950: #060F27;
  --navy-900: #081634;
  --navy-800: #0B1D45;
  --navy-700: #12295C;
  --navy-600: #1D3B7C;
  --gold: #EEA513;
  --gold-hi: #FFD36A;
  --gold-lo: #B67800;
  --ink: #F2F5FD;
  --muted: #B7C2DF;
  --on-gold: #0A1533;

  /* type */
  --font: "Nunito Sans", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: 2.1rem;
  --step-4: 2.7rem;

  /* shape */
  --contour: 2.5px;
  --gutter: 24px;
  --max: min(1240px, 180vh);   /* short, wide windows get a slightly narrower page so one screen is enough */

  /* height of the tallest character in the line-up; the skyline is sized from it */
  --h: min(14.5vh, 9.6vw, 9.5rem);
}

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

/* The whole interface scales with the window, so one screen is always enough. */
html {
  height: 100%;
  font-size: clamp(12px, min(2.1vh, 1.4vw), 17px);
}

body {
  min-height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--navy-800);
  background-image:
    radial-gradient(120vh 70vh at 50% -18vh, rgba(74, 122, 220, 0.5), transparent 70%),
    radial-gradient(90vh 60vh at 100% 100%, rgba(3, 8, 24, 0.55), transparent 70%),
    radial-gradient(90vh 60vh at 0% 100%, rgba(3, 8, 24, 0.55), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 28px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--gold);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); text-shadow: 0 0.18rem 0 rgba(3, 9, 26, 0.55); }
h2 { font-size: var(--step-2); text-shadow: 0 0.12rem 0 rgba(3, 9, 26, 0.5); }

p { margin: 0; }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 34em; }
.muted { color: var(--muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 0.25rem;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.6rem 1.5rem;
  border: 0;
  border-radius: 0.9rem;
  font: 900 1rem/1.1 var(--font);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, #D8920A 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 rgba(125, 76, 0, 0.28),
    0 0.35rem 0 var(--gold-lo),
    0 0.9rem 1.4rem rgba(2, 8, 24, 0.45);
}
.btn-line {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(238, 165, 19, 0.12), rgba(238, 165, 19, 0.03));
  box-shadow:
    inset 0 0 0 var(--contour) var(--gold),
    0 0.35rem 0 var(--navy-950),
    0 0.9rem 1.4rem rgba(2, 8, 24, 0.35);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0.22rem); }
.btn-gold:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 rgba(125, 76, 0, 0.28),
    0 0.12rem 0 var(--gold-lo);
}
.btn-line:active { box-shadow: inset 0 0 0 var(--contour) var(--gold), 0 0.12rem 0 var(--navy-950); }

/* store buttons */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.store {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #0D2152 0%, var(--navy-950) 100%);
  box-shadow:
    inset 0 0 0 var(--contour) var(--gold),
    inset 0 4px 0 rgba(255, 255, 255, 0.05),
    0 0.35rem 0 #03081A,
    0 0.9rem 1.4rem rgba(2, 8, 24, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store:hover { transform: translateY(-2px); }
.store:active { transform: translateY(0.22rem); box-shadow: inset 0 0 0 var(--contour) var(--gold), 0 0.12rem 0 #03081A; }
.store svg { flex: none; width: 2.3rem; height: 2.3rem; color: var(--gold); }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.store b { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.store .soon {
  position: absolute;
  top: -1.15rem;
  right: -0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--gold);
  box-shadow: 0 2px 0 var(--gold-lo);
}
/* "Soon" store buttons stay clickable: they lead to the newsletter box until launch */

/* ---------- header ---------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.8rem 0.3rem;
}
.brand { display: inline-flex; }
.brand img { height: 4.34rem; width: auto; filter: drop-shadow(0 0.3rem 0.5rem rgba(2, 8, 24, 0.5)); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; margin-left: auto; }
.nav a:not(.btn) {
  padding: 0.5rem 0.8rem;
  border-radius: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.nav a:not(.btn):hover { color: var(--gold); background: rgba(238, 165, 19, 0.08); }
.nav a:not(.btn)[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0.7rem 0.7rem 0 0; }
.nav .btn { min-height: 2.6rem; padding: 0.45rem 1.1rem; margin-left: 0.5rem; font-size: 0.95rem; }

/* ---------- the one-screen view ---------- */

main { display: grid; align-content: center; min-height: 0; padding-block: 0.4rem 0.7rem; }

/* ---------- home ---------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.6rem 3.4rem;
}
/* keep the home view clear of the rooftops behind the cast */
.home-grid { padding-bottom: calc(var(--h) * 0.5); }
.pitch { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; container-type: inline-size; }
.home-grid h1 { font-size: min(calc(var(--step-4) * 1.12), 9.4cqi); line-height: 1.08; text-wrap: balance; }

.panel {
  border-radius: 1.2rem;
  background: linear-gradient(180deg, var(--navy-700) 0%, #0D2250 100%);
  box-shadow:
    inset 0 0 0 var(--contour) var(--gold),
    inset 0 5px 0 rgba(255, 255, 255, 0.05),
    0 0.45rem 0 var(--navy-950),
    0 1.4rem 2.2rem rgba(2, 8, 24, 0.5);
}
.newsletter { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.9rem 1.1rem 0.8rem; margin-top: 0.2rem; }
.newsletter h2 { font-size: var(--step-1); text-shadow: none; }
/* the box lights up when a store button or "Get the free app" link sends people to it */
.newsletter.is-called { animation: called 1.4s ease-out 1; }
@keyframes called {
  0%, 35% { box-shadow: inset 0 0 0 var(--contour) var(--gold-hi), 0 0 0 0.35rem rgba(238, 165, 19, 0.55), 0 0.45rem 0 var(--navy-950), 0 1.4rem 2.2rem rgba(2, 8, 24, 0.5); }
}
@media (prefers-reduced-motion: reduce) { .newsletter.is-called { animation: none; } }
/* the same box under each team member and at the end of each glossary term */
.newsletter-band { max-width: 40rem; margin: 2.4rem auto 0; }
.term .newsletter { margin-top: 0; }
.signup { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup input {
  flex: 1 1 13rem;
  min-width: 0;
  min-height: 3.1rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 0.9rem;
  font: 700 1rem/1.2 var(--font);
  color: var(--ink);
  background: var(--navy-950);
  box-shadow: inset 0 0 0 var(--contour) var(--navy-600), inset 0 4px 8px rgba(0, 0, 0, 0.35);
}
.signup input::placeholder { color: #8493BA; }
.signup input:focus-visible { outline: 0; box-shadow: inset 0 0 0 var(--contour) var(--gold), inset 0 4px 8px rgba(0, 0, 0, 0.35); }
.form-note { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.form-note[data-kind="ok"] { color: var(--gold-hi); }
.form-note[data-kind="error"] { color: #FF9C8A; }

.latest { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; }
.latest-head a { font-weight: 800; text-decoration: none; }
.latest-head a:hover { text-decoration: underline; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: 0 0 0 3px var(--gold), 0 0.55rem 0 var(--navy-950), 0 1.6rem 2.4rem rgba(2, 8, 24, 0.55);
}
.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: center;
  color: var(--ink);
  background-color: var(--navy-950);
  background-size: cover;
  background-position: center;
}
.poster .play {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 0.35rem 0 var(--gold-lo), 0 0.9rem 1.4rem rgba(2, 8, 24, 0.5);
}
a.poster { text-decoration: none; }
.poster .play { transition: transform 0.14s ease; }
a.poster[href]:hover .play { transform: translateY(-3px) scale(1.06); }
.poster .play svg { width: 1.7rem; height: 1.7rem; margin-left: 0.3rem; }
.poster .question { font-size: var(--step-3); font-weight: 900; line-height: 1.1; text-shadow: 0 0.18rem 0 rgba(3, 9, 26, 0.7); }
.poster .tag { font-size: var(--step--1); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------- the app, the video series ---------- */

.app-grid, .videos-grid { display: grid; align-items: center; gap: 1.6rem 3.4rem; }
.app-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.videos-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.features { display: flex; flex-direction: column; gap: 1rem; margin: 0.2rem 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; }
.features svg { width: 2.8rem; height: 2.8rem; color: var(--gold); }
.features h2 { font-size: var(--step-1); text-shadow: none; margin-bottom: 0.2rem; }
.features p { color: var(--muted); max-width: 36em; }
.app-grid .stage { --stage-h: min(50vh, 30rem); padding-top: 3.6rem; }
.app-grid .stage::before { width: min(100%, 30rem); }
.bubble {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  max-width: 13.5rem;
  padding: 0.7rem 1rem;
  border-radius: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--on-gold);
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--navy-950), 0 0.35rem 0 var(--gold);
}
.bubble::after {
  content: "";
  position: absolute;
  right: 1.6rem;
  bottom: -0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  transform: rotate(45deg);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--navy-950);
}

/* ---------- footer: the cast on the skyline, then one quiet line ---------- */

.ground { position: relative; min-height: min(5vh, 2.6rem); }
.ground::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--h) * 1.5);
  background: url("capitails-skyline.svg") repeat-x left bottom / auto 100%;
  pointer-events: none;
}
.cast {
  height: var(--h);   /* anyone taller than the standard height rises above the row without moving the page */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cast a { position: relative; display: block; text-decoration: none; transition: transform 0.16s ease; }
.cast img { height: calc(var(--h) * var(--k, 1)); width: auto; max-width: none; filter: drop-shadow(0 0.25rem 0 rgba(3, 9, 26, 0.4)); }
.cast span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.2rem);
  transform: translateX(-50%);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 900;
  white-space: nowrap;
  color: var(--on-gold);
  background: var(--gold);
  box-shadow: 0 2px 0 var(--gold-lo);
  opacity: 0;
  pointer-events: none;
}
.cast a:hover, .cast a:focus-visible { transform: translateY(-0.4rem); z-index: 2; }
.cast a:hover span, .cast a:focus-visible span { opacity: 1; }

.footbar { position: relative; background: var(--navy-950); border-top: 3px solid var(--gold); }
.footbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem 1.5rem;
  padding-block: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.footbar a { color: inherit; text-decoration: underline; }
.footbar a:hover { color: var(--gold); }
.footbar .foot-note { margin-left: auto; }

/* social icons: in the footer straight after the Glossary link (computers),
   or as their own centred row above the copyright line (phones). Gold rings, gold glyphs. */
.socials { display: flex; flex-wrap: nowrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.footbar .socials a {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--gold);
  transition: transform 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}
.footbar .socials a:hover { color: var(--gold-hi); background: rgba(238, 165, 19, 0.12); transform: translateY(-1px); }
.socials svg { width: 52%; height: 52%; }

/* ---------- privacy ---------- */

.privacy-copy { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; padding-block: 1.5rem; }
.privacy-copy h2 { font-size: var(--step-1); text-shadow: none; margin-top: 0.6rem; }
.privacy-copy p { line-height: 1.55; }
.privacy-copy a { color: var(--gold); }

/* ---------- who we are ---------- */

.team { display: flex; flex-direction: column; gap: 1.5rem; }
.team-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0.6rem 3rem; }
.team-head .titles { display: flex; flex-direction: column; gap: 0.5rem; }
.team-head p.intro { max-width: 44em; color: var(--muted); }

.staff {
  --fig: clamp(5rem, 21vh, 13.5rem);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1.3rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.staff a { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; text-align: center; text-decoration: none; color: var(--ink); }
.staff .fig {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: var(--fig);
  padding-bottom: 0.55rem;
  margin-bottom: 0.45rem;
}
.staff .fig::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 82%;
  height: 1.5rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #17337A, var(--navy-950));
  box-shadow: 0 0 0 2px var(--gold), 0 0.3rem 0 rgba(3, 9, 26, 0.7);
  transition: box-shadow 0.16s ease;
}
.staff .fig img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 96%;
  max-height: calc(100% * var(--tall, 1));
  filter: drop-shadow(0 0.2rem 0 rgba(3, 9, 26, 0.4));
  transition: transform 0.16s ease;
}
.staff a:hover .fig img { transform: translateY(-0.4rem); }
.staff a:hover .fig::after { box-shadow: 0 0 0 3px var(--gold), 0 0.3rem 0 rgba(3, 9, 26, 0.7); }
.staff .name { font-size: var(--step-1); font-weight: 900; line-height: 1.15; color: var(--gold); }
.staff .name, .staff .role { text-shadow: 0 1px 0 var(--navy-950), 0 0 0.5rem var(--navy-950); }
.staff .role { font-size: var(--step--1); font-weight: 700; line-height: 1.25; color: var(--muted); text-wrap: balance; }

/* ---------- character page ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.14fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 1.5rem 2.8rem;
}
.stage {
  --stage-h: min(60vh, 36rem);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 1.5rem;
  min-width: 0;
}
.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(130%, 30rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(238, 165, 19, 0.26), rgba(238, 165, 19, 0.07) 58%, transparent 74%);
  pointer-events: none;
}
.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 20rem);
  height: 3.4rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #17337A, var(--navy-950));
  box-shadow: 0 0 0 3px var(--gold), 0 0.5rem 0 rgba(3, 9, 26, 0.75), 0 1.2rem 1.8rem rgba(2, 8, 24, 0.5);
}
.stage img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: var(--stage-h);
  filter: drop-shadow(0 0.35rem 0 rgba(3, 9, 26, 0.35));
}

.bio-copy { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.bio-copy h1 { font-size: calc(var(--step-4) * 1.15); }
.role-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; font-size: var(--step-1); font-weight: 800; }
.species {
  padding: 0.15rem 0.7rem;
  border-radius: 0.5rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.quote {
  margin: 0.2rem 0;
  padding-left: 1rem;
  border-left: 0.3rem solid var(--gold);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.22;
  text-wrap: balance;
}
.bio-copy p.more { color: var(--muted); }

.bio-side { display: flex; flex-direction: column; gap: 1.3rem; min-width: 0; }
.office { margin: 0; }
.office img {
  width: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 0 0 3px var(--gold), 0 0.5rem 0 var(--navy-950), 0 1.5rem 2.2rem rgba(2, 8, 24, 0.55);
}
.ask { display: flex; flex-direction: column; gap: 0.6rem; }
.ask + .ask { margin-top: 0.3rem; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.ticks.one { grid-template-columns: minmax(0, 1fr); }
.ticks li { position: relative; padding-left: 1.5rem; font-weight: 700; line-height: 1.3; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.3em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  background: var(--gold);
  box-shadow: 0 2px 0 var(--gold-lo);
  transform: rotate(45deg);
}

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.3rem 0.7rem; }
.pager a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 900; text-decoration: none; color: var(--gold); }
.pager a:hover { color: var(--gold-hi); }
.pager a.all { color: var(--muted); font-weight: 800; }
.pager a.all:hover { color: var(--gold); }
.pager svg { width: 1.1rem; height: 1.1rem; }
.pager .flip { transform: scaleX(-1); }

/* ---------- glossary (public/glossary/, built by glossary-source/build.py) ---------- */
/* Glossary pages are for reading, so they scroll like a normal page and keep a steady text size. */

html.reading { height: auto; font-size: clamp(15px, 0.5vw + 10px, 17px); }
.gloss { min-height: 100vh; min-height: 100dvh; }
.gloss main { align-content: start; padding-block: 0.6rem calc(var(--h) * 1.4 + 1rem); }
.gloss h1 { font-size: var(--step-4); margin: 0.35rem 0 0.2rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; margin-bottom: 1rem; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.crumbs .sep { color: var(--navy-600); }
.crumbs [aria-current] { color: var(--ink); }

.term, .az { display: flex; flex-direction: column; gap: 1.4rem; max-width: 46rem; margin-inline: auto; }
.term .eyebrow, .term h1 { margin-bottom: -0.6rem; }
.term-part h2, .note h2, .calc h2, .list-title, .other-hubs h2 { font-size: var(--step-1); text-shadow: none; margin-bottom: 0.45rem; }
.term-part p { font-size: 1.06rem; line-height: 1.65; }
.term .answer { font-size: var(--step-1); line-height: 1.55; font-weight: 600; }
.term .what { padding-top: 0.6rem; }
.example p { padding: 1rem 1.2rem; border-radius: 1rem; background: rgba(6, 15, 39, 0.55); box-shadow: inset 0 0 0 2px var(--navy-600); }
.worth p { padding-left: 1rem; border-left: 0.3rem solid var(--gold); }

.note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 1.2rem; padding: 1.1rem 1.3rem 0 1.1rem; overflow: hidden; }
.note .fig { width: auto; height: 9.5rem; max-width: 8rem; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0.25rem 0 rgba(3, 9, 26, 0.4)); }
.note > div { padding-bottom: 1.1rem; }
.note-line { font-size: var(--step-1); font-weight: 800; line-height: 1.35; }
.note-who { margin-top: 0.5rem; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.note-who a { font-weight: 900; text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.chips a, .chips span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.chips a:hover { color: var(--on-gold); background: var(--gold); }
.chips .soon-term { color: var(--muted); box-shadow: inset 0 0 0 2px var(--navy-600); }
.hub-link { margin-top: 0.8rem; font-weight: 800; }
.hub-link a { text-decoration: none; }
.hub-link a:hover { text-decoration: underline; }

.calc { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem 1.3rem; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; }
.calc-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--step--1); font-weight: 800; color: var(--muted); }
.calc-field input {
  min-height: 3rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 0.8rem;
  font: 800 1.15rem/1.2 var(--font);
  color: var(--ink);
  background: var(--navy-950);
  box-shadow: inset 0 0 0 var(--contour) var(--navy-600), inset 0 4px 8px rgba(0, 0, 0, 0.35);
}
.calc-field input:focus-visible { outline: 0; box-shadow: inset 0 0 0 var(--contour) var(--gold), inset 0 4px 8px rgba(0, 0, 0, 0.35); }
.calc-out { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 1rem; border-radius: 0.9rem; background: rgba(238, 165, 19, 0.1); box-shadow: inset 0 0 0 2px var(--gold); }
.calc-sum { color: var(--muted); font-weight: 700; }
.calc-answer { font-size: var(--step-2); font-weight: 900; line-height: 1.2; color: var(--gold-hi); }
[data-calc="leverage"] .calc-answer, [data-calc="credit-card-payoff"] .calc-answer { font-size: var(--step-1); line-height: 1.3; }
.calc.is-error .calc-answer { font-size: var(--step-0); color: #FF9C8A; }
.calc-small, .calc-after { font-size: var(--step--1); color: var(--muted); }
.calc-after a { font-weight: 800; }

.app-line { padding-top: 1.2rem; border-top: 2px solid var(--navy-600); font-weight: 700; }
.app-line a { font-weight: 900; white-space: nowrap; }
.edu { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.term .edu { margin-top: -0.8rem; }

/* hub pages */
.hub { display: flex; flex-direction: column; gap: 1.4rem; }
.hub-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: center; gap: 1.5rem 3rem; }
.hub-figs { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0.6rem; padding-bottom: 1.2rem; }
.hub-figs::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: min(100%, 22rem);
  height: 2.8rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #17337A, var(--navy-950));
  box-shadow: 0 0 0 3px var(--gold), 0 0.5rem 0 rgba(3, 9, 26, 0.75);
}
.hub-fig { position: relative; z-index: 1; width: auto; max-height: 20rem; min-width: 0; filter: drop-shadow(0 0.3rem 0 rgba(3, 9, 26, 0.35)); }
.hub-figs.n3 .hub-fig { max-height: 13rem; max-width: 32%; }
.hub-copy { display: flex; flex-direction: column; gap: 0.9rem; }
.intro { display: flex; flex-direction: column; gap: 0.25rem; max-width: 40rem; }
.intro-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; font-weight: 900; }
.intro-who a { font-size: var(--step-1); text-decoration: none; }
.intro-who span { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.term-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, var(--navy-700) 0%, #0D2250 100%);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0.3rem 0 var(--navy-950);
  transition: transform 0.12s ease;
}
a.term-card:hover { transform: translateY(-2px); }
.term-card b { font-size: var(--step-1); color: var(--gold); line-height: 1.2; }
.term-card span { font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.term-card.is-soon { background: rgba(6, 15, 39, 0.45); box-shadow: inset 0 0 0 2px var(--navy-600); }
.term-card.is-soon b { color: var(--ink); opacity: 0.75; }
.calc-badge { align-self: flex-start; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.7rem !important; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-gold) !important; background: var(--gold); }
.other-hubs { margin-top: 0.6rem; }

/* A-Z page */
.az { max-width: 62rem; }
.az h1 { margin-bottom: -0.4rem; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.hub-card {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  height: 100%;
  padding: 0.7rem 1rem 0;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, var(--navy-700) 0%, #0D2250 100%);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0.3rem 0 var(--navy-950);
  overflow: hidden;
  transition: transform 0.12s ease;
}
.hub-card:hover { transform: translateY(-2px); }
.hub-card-fig { flex: none; width: 3.6rem; height: 4.6rem; object-fit: contain; object-position: bottom; }
.hub-card span { display: flex; flex-direction: column; padding-bottom: 0.8rem; }
.hub-card b { font-size: var(--step-1); color: var(--gold); line-height: 1.2; }
.hub-card small { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.az-jump { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.az-jump a, .az-jump span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 0.6rem; font-weight: 900; text-decoration: none; }
.az-jump a { color: var(--on-gold); background: var(--gold); box-shadow: 0 2px 0 var(--gold-lo); }
.az-jump span { color: var(--navy-600); box-shadow: inset 0 0 0 2px var(--navy-700); }
.az-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.2rem 2rem; }
.az-group h2 { font-size: var(--step-2); border-bottom: 2px solid var(--navy-600); padding-bottom: 0.2rem; margin-bottom: 0.5rem; }
.az-group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.az-group a { font-weight: 800; text-decoration: none; }
.az-group a:hover { text-decoration: underline; }
.az-group li span { display: block; font-size: var(--step--1); color: var(--muted); }
.az-group { scroll-margin-top: 1rem; }

/* ---------- narrow windows and phones: the view stacks and the page scrolls ---------- */

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { height: auto; font-size: 16px; }
  body { min-height: 100vh; min-height: 100dvh; }
  main { align-content: start; padding-block: 0.5rem 2rem; }
  .home-grid, .bio-grid, .app-grid, .videos-grid { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 3.36rem; }
  .nav .nav-extra { display: none; }   /* phones keep the three-item menu; the glossary link sits in the footer */
  .stores { grid-template-columns: minmax(0, 1fr); }
  .signup .btn { flex: 1 1 100%; }
  :root { --h: 4.8rem; }
  .home-grid { padding-bottom: 0; }
  .cast { height: auto; flex-wrap: wrap; row-gap: 0.6rem; padding-inline: 8px; }
  .team-head { grid-template-columns: minmax(0, 1fr); }
  .staff { --fig: 9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0.8rem; }
  .stage { --stage-h: 20rem; }
  .stage::before { width: 100%; }
  .bio-copy h1 { font-size: var(--step-4); }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .pager { flex-wrap: wrap; }
  .hub-head { grid-template-columns: minmax(0, 1fr); }
  .hub-fig { max-height: 14rem; }
  .hub-figs.n3 .hub-fig { max-height: 9rem; }
  .note { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.9rem; padding-left: 0.8rem; }
  .note .fig { height: 7.5rem; }
  .footbar .wrap { flex-direction: column; align-items: center; gap: 0.35rem; padding-block: 0.9rem 1rem; text-align: center; }
  .footbar .foot-note { margin-left: 0; }
  .socials { order: -1; justify-content: center; gap: 0.9rem; margin-bottom: 0.45rem; }
  .footbar .socials a { width: 44px; height: 44px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .staff { gap: 1.2rem 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .store, .footbar .socials a, .cast a, .staff .fig img, .staff .fig::after, .poster .play, .term-card, .hub-card { transition: none; }
}
