:root {
  --ink: #f3efe6;
  --muted: #9a9286;
  --muted-2: #6f695f;
  --gold: #c9a227;
  --gold-soft: #e2c56a;
  --coral: #e36a5d;
  --void: #05070c;
  --panel: #0c1018;
  --line: rgba(201, 162, 39, 0.16);
  --line-strong: rgba(201, 162, 39, 0.32);
  --display: "Syne", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--void);
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1.25rem;
  padding: 1rem var(--pad);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  /* Chrome wordmark — ExtraBold reserved for .brand-hero only */
  font-family: var(--display);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  flex-shrink: 0;
  justify-self: start;
}
.brand img, .brand .gc-mark { flex-shrink: 0; display: block; }
.gc-mark { display: block; flex-shrink: 0; }
.brand span {
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  justify-content: center;
  justify-self: center;
  gap: 1.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  max-width: 36rem;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-shrink: 0;
  justify-self: end;
}
.nav-portal {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-portal:hover { color: var(--gold-soft); }
.nav-cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--void);
  background: var(--gold);
  padding: 0.65rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-soft); }
.nav-tpo {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.62rem 0.85rem;
  border-radius: 2px;
  white-space: nowrap;
  background: transparent;
}
.nav-tpo:hover { background: var(--gold); color: var(--void); }

@media (max-width: 1100px) {
  .nav-links { gap: 1.25rem; font-size: 0.85rem; }
}
@media (max-width: 980px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.55rem;
  }
  .nav-links {
    display: flex;
    flex: 1 0 100%;
    order: 3;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.72rem;
  }
  .nav-links a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .nav-portal:not(.nav-terminal) { display: none; }
  .nav-tpo {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.5rem;
  }
  .nav-links {
    font-size: 0.62rem;
    gap: 0.3rem;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 40%;
  will-change: transform;
  /* Subtle cinematic mid-tone — not washed, not crushed */
  filter: brightness(1.02);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.26) 0%, rgba(5, 7, 12, 0.44) 42%, rgba(5, 7, 12, 0.9) 100%),
    radial-gradient(860px 480px at 74% 38%, rgba(201, 162, 39, 0.13), transparent 58%);
}
.hero-wave {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 24%;
  height: 64px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.hero-wave span {
  flex: 1;
  display: block;
  background: linear-gradient(180deg, var(--gold-soft), transparent);
  border-radius: 99px 99px 0 0;
  transform-origin: bottom;
  animation: wave 1.4s ease-in-out infinite;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  max-width: 100%;
  padding: calc(6.5rem + 4vh) var(--pad) 5.5rem;
  overflow: visible;
}

@media (max-width: 640px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .hero-wave {
    opacity: 0.7;
    bottom: 14%;
    height: 72px;
    left: 6%;
    right: 6%;
  }
  .hero-wave span {
    animation-duration: 1.1s;
  }
  .hero-img {
    animation-duration: 18s;
  }
}
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-hero {
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  /* Matched to reference (~14% smaller than prior live) */
  font-size: clamp(3.5rem, 11.5vw, 7.15rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--ink);
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  word-break: keep-all;
  max-width: none;
}
@media (max-width: 640px) {
  .brand-hero {
    font-size: clamp(2.6rem, 13vw, 3.35rem);
    letter-spacing: -0.03em;
    white-space: normal;
  }
}
.lede {
  margin: 1.05rem 0 0;
  max-width: min(50ch, 100%);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-style: italic;
  color: rgba(243, 239, 230, 0.9);
  line-height: 1.4;
}
.hero-inner > .support {
  margin-top: 0.9rem;
  max-width: min(46ch, 100%);
  /* Soft semi-transparent light grey — matches reference */
  color: rgba(198, 192, 182, 0.55);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  max-width: 100%;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--gold);
  color: var(--void);
}
.btn.primary:hover { background: var(--gold-soft); }
.btn.ghost {
  border-color: rgba(243, 239, 230, 0.45);
  color: var(--ink);
  background: rgba(12, 16, 24, 0.35);
  cursor: pointer;
}
.btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.08);
}
.btn.ghost:focus-visible,
.btn.primary:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}
.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 1.4rem;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* —— Sections —— */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.support {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* Lab organs */
.organs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.organs li {
  background: var(--panel);
  padding: 1.75rem 1.5rem 2rem;
  margin: 0;
}
.org-num {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
}
.organs h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.lab .support,
.week .support,
.trust .support {
  color: #d4d4d8;
}
.organs p {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.98rem;
}
.guard {
  margin: 1.75rem 0 0;
  color: #a1a1aa;
  font-size: 0.95rem;
}
.guard strong { color: var(--gold-soft); font-weight: 600; }

@media (max-width: 860px) {
  .organs { grid-template-columns: 1fr; }
}

/* Pro curriculum — added beside the voice lab, same panel language */
.curriculum-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.curriculum-grid li {
  background: var(--panel);
  padding: 1.75rem 1.5rem 2rem;
  margin: 0;
}
.curriculum-grid h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.curriculum .support,
.curriculum-grid p {
  color: #d4d4d8;
}
.curriculum-grid p {
  margin: 0;
  font-size: 0.98rem;
}
.curriculum .guard a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(226, 197, 106, 0.45);
}
@media (max-width: 860px) {
  .curriculum-grid { grid-template-columns: 1fr; }
}

/* Week rail */
.week-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.week-rail article {
  padding: 1.5rem 1.1rem 1.7rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  margin: 0;
}
.week-rail article:last-child { border-right: 0; }
.week-rail span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.week-rail strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}
.week-rail em {
  color: #d4d4d8;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .week-rail { grid-template-columns: 1fr; }
  .week-rail article { border-right: 0; padding-right: 0; }
}

/* Package */
.package {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(201, 162, 39, 0.08), transparent 55%),
    var(--void);
}
.package-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.package-price,
.package-math {
  border: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.72);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.package-price {
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.1), transparent 42%),
    rgba(12, 16, 24, 0.85);
}
.plan-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.amount {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 0.35rem;
}
.term {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 28rem;
}
.package-price ul {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.package-price li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
}
.package-math dl {
  margin: 1.25rem 0 1rem;
}
.package-math dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.package-math dt { color: var(--muted); }
.package-math dd { margin: 0; font-variant-numeric: tabular-nums; }
.package-math .net {
  border-top: 1px solid var(--line-strong);
  margin-top: 0.35rem;
  padding-top: 1rem;
}
.package-math .net dt,
.package-math .net dd {
  color: var(--gold-soft);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}
.math-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.package-audit dl > div {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.package-audit dd {
  color: var(--ink);
  font-variant-numeric: normal;
  line-height: 1.45;
}
.package-audit .net {
  flex-direction: column;
}
.package-audit .net dd {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .package-stage { grid-template-columns: 1fr; }
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.trust-grid figure {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--gold);
}
.trust-grid figcaption {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.trust-grid p {
  margin: 0;
  color: #d4d4d8;
}

@media (max-width: 800px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Access / waitlist — interaction panel */
.access {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}
.access-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--panel);
}
.access-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.access-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.access-form label {
  display: grid;
  gap: 0.4rem;
}
.access-form label.full,
.access-form .full-btn {
  grid-column: 1 / -1;
}
.access-form span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.access-form input {
  width: 100%;
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  border-radius: 4px;
  outline: none;
}
.access-form input:focus {
  border-color: var(--gold);
}
.access-form button {
  cursor: pointer;
  margin-top: 0.35rem;
  border: 0;
}
.form-note {
  margin: 1.25rem 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}
.micro {
  margin: 1.25rem 0 0;
  color: var(--muted-2);
  font-size: 0.88rem;
}
.micro a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .access-form { grid-template-columns: 1fr; }
}

/* Footer — 4-column corporate */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.25rem var(--pad) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 2.75rem;
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.footer-brand img, .footer-brand .gc-mark { display: block; flex-shrink: 0; }
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-style: normal;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.footer-brand-copy {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.footer-col p {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--gold-soft); }
.caps {
  letter-spacing: 0.08em;
  font-size: 0.78rem !important;
}
.copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Sub-pages (partners / careers / security / about) —— */
.subpage {
  max-width: 52rem;
  margin: 0 auto;
  padding: 7.5rem var(--pad) 5rem;
}
.subpage h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.subpage .lede-block {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.9);
}
.subpage-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}
.subpage-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.subpage-panel p,
.subpage-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.role-list li {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.35rem 1.5rem;
}
.role-list strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.role-list span {
  color: var(--muted);
  font-size: 0.92rem;
}
.partner-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.partner-form label {
  display: grid;
  gap: 0.4rem;
}
.partner-form label.full,
.partner-form .full-btn {
  grid-column: 1 / -1;
}
.partner-form span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  border-radius: 4px;
  outline: none;
  font: inherit;
}
.partner-form textarea { min-height: 7rem; resize: vertical; }
.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
  border-color: var(--gold);
}
.partner-form button {
  cursor: pointer;
  border: 0;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .partner-form { grid-template-columns: 1fr; }
}

/* Motion — never hide above-the-fold hero (was causing blank/white hero) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.in,
.hero .reveal {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes heroDrift {
  /* Smooth zoom out ↔ zoom in; ease-in-out removes end-of-round pause */
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1%, -0.7%, 0);
  }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 640px) {
  .reveal {
    transform: translateY(28px);
    transition-duration: 0.85s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
  .hero-wave span { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* —— Student Terminal (/terminal) —— */
.terminal-page {
  min-height: 100vh;
  padding: 6.5rem var(--pad) 4rem;
}
.terminal-shell {
  max-width: 42rem;
  margin: 0 auto;
}
.terminal-console {
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
    var(--panel);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.terminal-mark {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
/* Section-headline face (same as “Three organs. One three-minute drill.”).
   Syne ExtraBold stays exclusive to .brand-hero on the landing page. */
.terminal-console h1,
.drill-card h2,
.complete-banner strong,
.terminal-headline {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.terminal-console h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
}
.drill-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}
.complete-banner strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}
.terminal-console .terminal-lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(243, 239, 230, 0.9);
}
.auth-choice { display: grid; gap: 0.75rem; }
.auth-choice[hidden] { display: none; }
.auth-choice .btn { width: 100%; cursor: pointer; }
.auth-note { margin: 0; color: var(--muted-2); font-size: 0.82rem; line-height: 1.5; }
.terminal-form {
  display: grid;
  gap: 1rem;
}
.terminal-form[hidden] {
  display: none;
}
.terminal-form label {
  display: grid;
  gap: 0.4rem;
}
.terminal-form label > span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.terminal-form input {
  width: 100%;
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  border-radius: 4px;
  outline: none;
}
.terminal-form input:focus { border-color: var(--gold); }
.terminal-form .btn {
  width: 100%;
  margin-top: 0.35rem;
  cursor: pointer;
  border: 0;
  text-align: center;
}
.terminal-error {
  margin: 0;
  color: var(--coral);
  font-size: 0.92rem;
}
.terminal-error[hidden],
.terminal-block[hidden],
#evalCard[hidden],
#completeBanner[hidden] {
  display: none !important;
}

.terminal-workspace { display: grid; gap: 1.25rem; }
.terminal-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.terminal-bar strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.terminal-bar span {
  color: var(--muted);
  font-size: 0.88rem;
}
.terminal-disconnect {
  background: none;
  border: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0;
}
.terminal-disconnect:hover { color: var(--gold-soft); }

.drill-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1.35rem, 3vw, 1.75rem);
}
.drill-card .day-pill {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.drill-card .prompt {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}
.drill-card .summary {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.recorder-console {
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 12, 0.55);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}
.recorder-timer {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.recorder-hint {
  margin: 0.65rem 0 1.5rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.recorder-actions {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto;
}
.recorder-actions .btn { width: 100%; cursor: pointer; border: 0; }
.recorder-status {
  margin: 1rem 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.complete-banner {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--panel);
  padding: 1.25rem 1.5rem;
}
.complete-banner p { margin: 0; color: var(--muted); }

.eval-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  display: grid;
  gap: 1.25rem;
}
.eval-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.eval-chip {
  border: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.55);
  padding: 0.45rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.eval-chip.accent { color: var(--gold); border-color: var(--line-strong); }
.eval-wpm { display: flex; flex-direction: column; align-items: flex-start; min-width: 7.5rem; }
.eval-wpm-kicker { color: var(--muted-2); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.eval-wpm strong { margin-top: 0.2rem; font-size: 1.35rem; line-height: 1; font-weight: 700; }
.eval-wpm small { margin-top: 0.28rem; color: #a1a1aa; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.eval-wpm .slow { color: #eab308; }
.eval-wpm .optimal { color: #22c55e; }
.eval-wpm .fast { color: #f97316; }
.eval-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.eval-cols article {
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(5, 7, 12, 0.4);
}
.eval-cols h3 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.eval-cols .raw { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.eval-cols .raw mark.filler,
.ledger-item .raw mark.filler {
  color: #e36a5d;
  background: transparent;
  font-weight: 700;
}
.eval-cols .rewrite { margin: 0; color: var(--ink); font-size: 0.98rem; font-weight: 500; line-height: 1.55; }
.clip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.clip-play {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font: 700 0.72rem/1 "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.clip-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  white-space: nowrap;
}
.clip-bar {
  flex: 1;
  height: 4px;
  background: rgba(201, 162, 39, 0.22);
}
.clip-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}
.voice-stack { display: grid; gap: 0.85rem; }
.voice-row {
  border: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.45);
  padding: 0.85rem 1rem;
}
.voice-row h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.voice-empty { margin: 0; color: var(--muted); font-size: 0.85rem; }
.word-card {
  border: 1px solid var(--line-strong);
  background: #09090b;
  padding: 1rem 1.15rem;
  margin: 0 0 1rem;
}
.word-card h3 {
  margin: 0.35rem 0 0.15rem;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.word-card p { margin: 0; color: var(--muted); }
.word-card .word-expansion {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: rgba(201, 162, 39, 0.62);
  letter-spacing: 0.02em;
}
.dict-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #09090b;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  cursor: pointer;
}
.dict-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 7, 12, 0.78);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.dict-modal[hidden] { display: none; }
.dict-sheet {
  width: min(440px, 100%);
  background: #09090b;
  border: 1px solid var(--line-strong);
  padding: 1.15rem;
}
.dict-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dict-head h2 { margin: 0; font-size: 1.1rem; letter-spacing: -0.03em; }
.dict-close {
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.dict-form { display: flex; gap: 0.5rem; margin: 1rem 0; }
.dict-form input {
  flex: 1;
  background: var(--void);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
}
.dict-status, .dict-definition, .dict-example { margin: 0; color: var(--muted); }
.dict-word { margin: 0; color: var(--gold); font-family: var(--display); font-size: 1.4rem; }
.dict-pos { margin: 0.2rem 0 0.55rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.dict-example { margin-top: 0.7rem; font-style: italic; }
.dict-example + .dict-example { margin-top: 0.35rem; }
.eval-note {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .eval-cols { grid-template-columns: 1fr; }
  .terminal-bar { flex-direction: column; }
}

.placement-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.placement-row article {
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #0c1018;
  padding: 0.75rem 0.8rem;
  min-width: 0;
}
.placement-row span {
  display: block;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.placement-row strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #c9a227;
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55);
  animation: gc-sync-pulse 1.4s ease-in-out infinite;
  flex: none;
}
.sync-dot.is-off { animation: none; opacity: 0.35; }
@keyframes gc-sync-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.terminal-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.terminal-tabs button {
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.terminal-tabs button.is-active {
  color: #05070c;
  background: #c9a227;
  border-color: #c9a227;
}

.drill-card .recorder-console {
  margin-top: 1.35rem;
  padding: 1.15rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.drill-card .complete-banner { margin-top: 1.15rem; }
.drill-card .recorder-timer { font-size: clamp(2.4rem, 8vw, 3.4rem); }

.wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin: 0.2rem 0 0.9rem;
}
.wave[hidden] { display: none !important; }
.wave span {
  width: 4px;
  height: 100%;
  background: #c9a227;
  transform-origin: center bottom;
  animation: gc-wave 0.9s ease-in-out infinite;
}
.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.15s; }
.wave span:nth-child(6) { animation-delay: 0.25s; }
.wave span:nth-child(7) { animation-delay: 0.05s; }
@keyframes gc-wave {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

.btn.is-recording {
  background: #9b2c2c;
  color: #f3efe6;
  animation: gc-sync-pulse 1.1s ease-in-out infinite;
}

.ledger-list { display: grid; gap: 0.85rem; }
.ledger-item {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.ledger-item .raw,
.ledger-item .rewrite { margin: 0.35rem 0 0; line-height: 1.45; }
.ledger-item .raw { color: var(--muted); }
.ledger-item .rewrite { color: var(--ink); }

.coach-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 600;
}
.system-pane .btn,
#systemPane .btn { margin-top: 1rem; width: 100%; cursor: pointer; border: 0; }

@media (max-width: 720px) {
  .placement-row { grid-template-columns: 1fr; }
}

.filler { color: #e36a5d; background: transparent; font-weight: 700; }

.warmup { margin: 1rem 0 0.4rem; }
.warmup-scenario { margin: 0.45rem 0 0.8rem; color: var(--ink); }
.warmup-choices { display: grid; gap: 0.5rem; }
.warmup-choice {
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
.warmup-choice.is-correct {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.22);
  color: #e2c56a;
}
.warmup-choice.is-wrong { border-color: #e36a5d; color: #e36a5d; }
.warmup-note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.85rem; }
#beginBtn:disabled { opacity: 0.45; cursor: not-allowed; }
#beginBtn.is-ready { opacity: 1; }

.trend { display: flex; align-items: flex-end; gap: 0.45rem; height: 92px; margin-top: 0.8rem; }
.trend-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.trend-bar { width: 100%; max-width: 18px; background: #c9a227; min-height: 2px; }
.trend-col span { margin-top: 0.35rem; color: var(--muted); font-size: 0.72rem; }
.ledger-card { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.ledger-card .btn { margin-top: 0.7rem; cursor: pointer; }

.sprint-home, .sprint-actions { display: grid; gap: 0.65rem; margin-top: 1rem; }
.sprint-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.sprint-chip {
  border: 1px solid #c9a227;
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font: inherit;
}
.sprint-chip:disabled { opacity: 0.35; }
.sprint-built, .sprint-note { margin: 0.7rem 0 0; }
.sprint-built { color: #e2c56a; }
#sprintPlay { border: 1px solid var(--line); padding: 1rem; margin-top: 1rem; }
