/* Pixelify Sans is subset without its ligature glyphs: ligatures off everywhere, or "fi" draws as a wrong glyph. */
html { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

/* ==========================================================================
   Teravalur — Open-Beta Landing Page Stylesheet
   Warm golden-hour Dove Beach (light) & Capital dusk (dark) palette.
   Zero external dependencies; system-theme aware; mobile-first.
   ========================================================================== */

@font-face {
  font-family: "Pixelify Sans";
  src: url("fonts/PixelifySans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Light theme — Dove Beach sunlit parchment */
  --bg: #faf4e8;
  --bg-elevated: #fffdf8;
  --bg-tint: #f2e8d6;
  --ink: #221a18;
  --ink-muted: #594b42;
  --border: #d9c7ad;
  --border-strong: #bfa684;

  --accent: #9e3f12;
  --accent-hover: #7f310c;
  --accent-ink: #fffdf8;
  --accent-shadow: #632408;

  --secondary-bg: #fffdf8;
  --secondary-ink: #2b1d3f;
  --secondary-border: #2b1d3f;

  --dusk: #2b1d3f;
  --gold: #f2b544;
  --cream: #fff1d6;
  --focus-ring: #b84e1b;

  --font-pixel: "Pixelify Sans", ui-monospace, "Cascadia Mono", monospace;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-w: 1080px;
  --measure: 64ch;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme — Capital at dusk */
    --bg: #171222;
    --bg-elevated: #221a32;
    --bg-tint: #1d162b;
    --ink: #fff1d6;
    --ink-muted: #cbbca8;
    --border: #3a2d52;
    --border-strong: #534073;

    --accent: #f2b544;
    --accent-hover: #f8c866;
    --accent-ink: #1b1229;
    --accent-shadow: #a86f18;

    --secondary-bg: #2b1d3f;
    --secondary-ink: #fff1d6;
    --secondary-border: #c9a76a;

    --focus-ring: #f2b544;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--dusk);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Pixel-art assets ONLY (never applied to 3D renders) */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Layout containers */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap--narrow {
  max-width: 760px;
}

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}

.section--tint {
  background-color: var(--bg-tint);
}

.section__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section__lead {
  margin: 0 0 2rem;
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms ease, border-color 140ms ease;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent-shadow);
  box-shadow: 0 3px 0 var(--accent-shadow);
}

.btn--primary:hover:not([aria-disabled="true"]):not(:disabled) {
  background-color: var(--accent-hover);
}

.btn--primary:active:not([aria-disabled="true"]):not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-shadow);
}

.btn--secondary {
  background-color: var(--secondary-bg);
  color: var(--secondary-ink);
  border: 2px solid var(--secondary-border);
}

.btn--secondary:hover:not([aria-disabled="true"]):not(:disabled) {
  background-color: var(--bg-tint);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  box-shadow: none;
}

/* Hero-specific high-contrast button (always over dark dusk scrim) */
.hero .btn--primary {
  background-color: #f2b544;
  color: #1b1229;
  border-color: #9c6411;
  box-shadow: 0 3px 0 #9c6411;
}

.hero .btn--primary:hover:not([aria-disabled="true"]):not(:disabled) {
  background-color: #f9ca6c;
}

.hero .btn--primary[aria-disabled="true"],
.hero .btn--primary:disabled {
  background-color: #d9c298;
  color: #241933;
  border-color: #8f7a56;
  opacity: 0.92;
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--dusk);
  color: var(--cream);
}

@media (min-width: 768px) {
  .hero {
    min-height: min(86vh, 780px);
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--dusk);
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__video {
  opacity: 0;
  transition: opacity 450ms ease;
}

.hero__video.is-ready {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(23, 18, 34, 0.34) 0%,
    rgba(23, 18, 34, 0.16) 30%,
    rgba(23, 18, 34, 0.68) 64%,
    rgba(23, 18, 34, 0.92) 100%
  );
}

.hero__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
}

@media (min-width: 480px) {
  .hero__nav {
    gap: 1.1rem;
    font-size: 0.92rem;
  }
}

.hero__nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 3.5rem 0 2.5rem;
}

.hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(23, 18, 34, 0.72);
}

.hero__premise {
  margin: 0 0 0.85rem;
  max-width: 48ch;
  font-size: clamp(1.08rem, 2.6vw, 1.32rem);
  line-height: 1.45;
  color: #fff6e5;
}

.hero__facts {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero__offer {
  margin: 0.9rem 0 0;
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #f3e4cc;
}

.hero__offer--taken {
  color: #d7c7b2;
}

.hero__meta-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.82rem;
  color: #e4d6c2;
}

.hero__caption {
  margin: 0;
}

.hero__motion-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(23, 18, 34, 0.72);
  border: 1px solid rgba(255, 241, 214, 0.45);
  border-radius: var(--radius);
  cursor: pointer;
}

.hero__motion-btn:hover {
  background: rgba(43, 29, 63, 0.92);
}

.hero__motion-btn[hidden] {
  display: none;
}

.noscript-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #f3e4cc;
}

/* ==========================================================================
   3. What the game is (Feature panels)
   ========================================================================== */
.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2rem;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel__figure {
  margin: 0;
}

.panel__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--dusk);
  overflow: hidden;
}

.panel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.5rem;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-tint),
    var(--bg-tint) 12px,
    var(--bg-elevated) 12px,
    var(--bg-elevated) 24px
  );
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}

.panel__placeholder-tag {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.panel__placeholder-note {
  font-size: 0.86rem;
  max-width: 34ch;
}

.panel__caption {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-muted);
  background-color: var(--bg-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.panel__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.panel__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.panel__text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   4. How to join (3 steps)
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  padding: 1.35rem 1.25rem;
  background-color: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  background-color: var(--dusk);
  color: var(--gold);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
}

.step__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
}

.step__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* ==========================================================================
   5. Which phones (Plain prose)
   ========================================================================== */
.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  color: var(--ink);
}

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

.prose strong {
  font-weight: 700;
}

/* ==========================================================================
   6. FAQ
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  background-color: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.faq-item__body p {
  margin: 0 0 0.65rem;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.faq-item__body ul {
  margin: 0.45rem 0 0;
  padding-left: 1.25rem;
}

.faq-item__body li {
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.footer {
  padding-block: 2.5rem;
  border-top: 2px solid var(--border);
  background-color: var(--bg-tint);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.footer__links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__links a[hidden] {
  display: none;
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Subpages (Privacy & 404)
   ========================================================================== */
.subpage-header {
  padding-block: 1.2rem;
  background-color: var(--dusk);
  color: var(--cream);
  border-bottom: 2px solid var(--border-strong);
}

.subpage-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.subpage-header a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.subpage-header a:hover {
  text-decoration: underline;
}

.subpage-main {
  padding-block: 3.25rem 4rem;
}

.notice-box {
  padding: 1.25rem 1.35rem;
  background-color: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  margin-block: 1.5rem;
}

.notice-box p {
  margin: 0 0 0.75rem;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.error-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 1;
  color: var(--accent);
}

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

/* ==========================================================================
   Closed-beta application form
   ========================================================================== */
.apply {
  max-width: 34rem;
  margin-top: 0.25rem;
}

.apply__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--dusk);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.apply__badge[hidden],
.apply__form[hidden],
.apply__success[hidden],
.apply__closed[hidden],
.apply__error[hidden],
.field__err[hidden] {
  display: none;
}

.apply__dot {
  width: 0.55rem;
  height: 0.55rem;
  background: #7be08a;
  border-radius: 50%;
}

.apply__form {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.1rem 1.25rem;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.field input[type="email"],
.field input[type="text"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input::placeholder {
  color: var(--ink-muted);
  opacity: 0.8;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c4361b;
}

.field__note {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.field__err {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b42a12;
}

.field--check {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: 0.7rem;
  align-items: start;
}

.field--check input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
}

.field--check label {
  margin: 0;
  font-weight: 600;
}

.field--check .field__err {
  grid-column: 2;
}

.field--check a,
.apply__fine a {
  color: var(--accent);
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply__submit {
  width: 100%;
}

.apply__form .btn--primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-shadow);
  box-shadow: 0 3px 0 var(--accent-shadow);
}

.apply__form .btn--primary:disabled {
  background-color: var(--bg-tint);
  color: var(--ink-muted);
  border-color: var(--border-strong);
}

.apply__status {
  min-height: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.apply__status:empty {
  display: none;
}

.apply__error {
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  color: #7a1b0b;
  background: #ffe3dc;
  border: 2px solid #c4361b;
  border-radius: var(--radius);
}

.apply__error p {
  margin: 0;
}

.apply__fine {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.apply__success,
.apply__closed {
  padding: 1.1rem 1.25rem;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 2px solid var(--border-strong);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
}

.apply__success p,
.apply__closed p {
  margin: 0;
  font-weight: 600;
}

.apply__success-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.apply__success:focus {
  outline-offset: 3px;
}

.join-apply {
  display: flex;
  justify-content: flex-start;
}

.join-apply .apply {
  width: 100%;
}

.prose li p {
  margin: 0 0 0.5rem;
}

.prose ul {
  padding-left: 1.25rem;
}

/* ==========================================================================
   Redesign (owner, 2026-12-05): one purpose, one path -> the application.
   Dark base, one gold accent for every button, Inter for text,
   pixel font only for the name and the badge.
   ========================================================================== */
:root { --btn-gold: #f2b544; --btn-gold-hover: #f8c866; --btn-gold-ink: #1b1229; --btn-gold-edge: #9c6411; }

.btn--primary,
.hero .btn--primary,
.apply__form .btn--primary {
  background-color: var(--btn-gold);
  color: var(--btn-gold-ink);
  border: 2px solid var(--btn-gold-edge);
  box-shadow: 0 3px 0 var(--btn-gold-edge);
}
.btn--primary:hover:not(:disabled):not([aria-disabled="true"]),
.hero .btn--primary:hover:not(:disabled):not([aria-disabled="true"]) { background-color: var(--btn-gold-hover); }
.btn--primary:disabled,
.hero .btn--primary:disabled,
.apply__form .btn--primary:disabled {
  background-color: #d9c298; color: #241933; border-color: #8f7a56; opacity: 0.92; box-shadow: none;
}
.btn--small { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }

.hero { min-height: 0; justify-content: flex-start; min-height: min(100svh, 820px); min-height: min(100vh, 820px); }
@supports (min-height: 100svh) { .hero { min-height: min(100svh, 820px); } }
.hero__content { padding: 1.5rem 0 1rem; }
.hero__title { display: block; margin: 0 0 0.6rem; font-family: var(--font-body); text-shadow: none; line-height: 1.05; }
.hero__name {
  display: block; margin-bottom: 0.35rem;
  font-family: var(--font-pixel); font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 700; letter-spacing: 0.01em;
  color: var(--cream); text-shadow: 0 3px 0 rgba(23, 18, 34, 0.72);
}
.hero__headline {
  display: block; font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 7.2vw, 3rem); color: #fff6e5; text-shadow: 0 2px 14px rgba(23, 18, 34, 0.7);
}
.hero__sub { margin: 0 0 1.1rem; max-width: 44ch; font-size: clamp(1rem, 3.6vw, 1.2rem); line-height: 1.4; color: #fff1d6; text-shadow: 0 1px 8px rgba(23, 18, 34, 0.8); }
.brand { font-family: var(--font-pixel); }
.hero__topbar { padding-block: 0.8rem; }
.hero__meta-bar { padding-bottom: 0.8rem; }
.hero__scrim { background: linear-gradient(to bottom, rgba(23,18,34,0.45) 0%, rgba(23,18,34,0.4) 35%, rgba(23,18,34,0.78) 70%, rgba(23,18,34,0.93) 100%); }

.apply__badge { font-family: var(--font-pixel); margin-bottom: 0.7rem; }
.apply__dot { position: relative; }
.apply__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #7be08a;
  animation: apply-pulse 1.8s ease-out infinite;
}
@keyframes apply-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }

.apply { max-width: 32rem; }
.apply__form { gap: 0.6rem; padding: 0.9rem; }
.step1__row { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 420px) { .step1__row { grid-template-columns: 1fr auto; align-items: end; } }
.step1__row .field label { font-size: 0.9rem; }
.step1__row .apply__submit { width: auto; min-width: 7.5rem; }
@media (max-width: 419px) { .step1__row .apply__submit { width: 100%; } }
.step1 .field__note { margin-top: 0.5rem; }
.step2 { display: grid; gap: 0.9rem; }
.step2[hidden], .step1[hidden] { display: none; }
.step2__title { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.step2__who { margin: -0.4rem 0 0; font-size: 0.9rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.field__opt { font-weight: 400; color: var(--ink-muted); }
.apply__success-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.apply__error { background: #3b1712; color: #ffd9d0; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .apply__error { background: #ffe3dc; color: #7a1b0b; } }

/* Headings: Inter, heavy */
.section__title { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em; }
.panel__title, .faq-item summary { font-family: var(--font-body); font-weight: 700; }
.section { padding-block: 3rem; }

/* Credits roll */
.credits { padding-block: 3rem; text-align: center; background: #0d0a14; color: #f4ead6; border-top: 1px solid #2a2040; }
.credits__title { margin: 0 0 0.4rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.5rem, 5vw, 2.2rem); letter-spacing: 0.35em; padding-left: 0.35em; }
.credits__lead { margin: 0 0 1.5rem; color: #bfae94; font-size: 0.95rem; }
.credits__window {
  position: relative; height: 17rem; max-width: 26rem; margin-inline: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.credits__track { animation: credits-roll 30s linear infinite; }
.credits__roll { list-style: none; margin: 0; padding: 0; }
.credits__roll:first-child { padding-top: 6.5rem; }
.credits__window:hover .credits__track { animation-play-state: paused; }
@keyframes credits-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.credits__line { display: flex; justify-content: center; align-items: center; height: 2.4rem; }
.credits__bar { display: block; height: 0.85rem; background: #d9cdb6; opacity: 0.32; border-radius: 3px; filter: blur(3px); }
.credits__line--you span {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; letter-spacing: 0.04em; color: var(--btn-gold);
  text-shadow: 0 0 18px rgba(242, 181, 68, 0.55); padding-inline: 0.4rem;
}
.credits__line--you { height: 3.4rem; }
@media (prefers-reduced-motion: reduce) {
  .credits__track { animation: none; }
  .credits__roll--dup, .credits__roll[aria-hidden] { display: none; }
  .credits__roll:first-child { padding-top: 0; }
  .credits__window { height: auto; -webkit-mask-image: none; mask-image: none; max-height: 20rem; }
  .credits__roll .credits__line:nth-child(n+14) { display: none; }
  .apply__dot::after { animation: none; display: none; }
}

/* Three panels */
@media (min-width: 900px) { .panels--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.panels--three .panel__caption { display: none; }

/* Sticky bottom apply bar (phones) */
.sticky-apply {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(23, 18, 34, 0.94); border-top: 2px solid var(--btn-gold-edge);
  transform: translateY(110%); visibility: hidden; transition: transform 220ms ease, visibility 0s linear 220ms;
}
.sticky-apply.is-visible { transform: none; visibility: visible; transition: transform 220ms ease; }
.sticky-apply .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
@media (min-width: 768px) { .sticky-apply { display: none; } }
@media (max-width: 767px) { .footer { padding-bottom: 6rem; } }
@media (prefers-reduced-motion: reduce) { .sticky-apply, .sticky-apply.is-visible { transition: none; } }

/* Device / phone picker (big tappable chips) */
.phone { border: 0; margin: 0; padding: 0; min-width: 0; }
.phone legend { padding: 0; margin-bottom: 0.4rem; font-weight: 700; font-size: 0.95rem; }
.phone__body { display: grid; gap: 0.6rem; }
.phone__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; }
.phone__title { font-weight: 700; font-size: 0.95rem; }
.phone__path { font-size: 0.85rem; color: var(--ink-muted); }
.phone__q { margin: 0; font-weight: 700; }
.phone__note { margin: 0; font-size: 0.88rem; color: var(--ink-muted); }
.phone__done { margin: 0; }
.phone__back {
  min-height: 48px; padding: 0 0.6rem 0 0; font: inherit; font-weight: 700; color: var(--accent);
  background: none; border: 0; cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 48px; padding: 0.55rem 1rem; font: inherit; font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  color: var(--ink); background: var(--bg); border: 2px solid var(--border-strong); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--btn-gold); }
.chip--primary, .chip[aria-pressed="true"] { background: var(--btn-gold); color: var(--btn-gold-ink); border-color: var(--btn-gold-edge); }
.phone__other { display: grid; gap: 0.5rem; }
.phone__other input { min-height: 48px; padding: 0.6rem 0.8rem; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--border-strong); border-radius: var(--radius); width: 100%; }
.phone__other label { font-weight: 600; font-size: 0.92rem; }
