/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-stack: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

html {
  /* Smaller base on mobile, scales up — tied to viewport */
  font-size: clamp(14px, 0.65vw + 12px, 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--font-stack);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- stage (the simulation viewport) ---------- */
.stage {
  position: relative;
  width: 100%;
  --intro-band-height: clamp(100px, 20svh, 200px);
  /* svh keeps mobile browsers honest about chrome */
  height: 100svh;
  min-height: 480px;
  background: #000;
  /* The simulation walls visually frame the canvas. */
  border-bottom: 1px solid #fff;
  overflow: hidden;
  touch-action: none;
}

#sim {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* JS-disabled fallback */
.fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-stack);
}
.fallback h1 {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 400;
  font-style: italic;
}
.fallback p {
  max-width: 36rem;
  margin: 1rem 0;
}

/* ---------- intro copy ---------- */
.intro-copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--intro-band-height);
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  border-top: 1px solid #000;
  padding: 1.25rem;
  pointer-events: none;
}

.intro-copy p {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vmin, 2.25rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

.intro-copy span {
  display: block;
}

.intro-copy em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}

/* ---------- prose section below ---------- */
.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.eyebrow {
  font-family: var(--font-stack);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.55;
  margin-bottom: 0.25rem;
}

.title {
  font-family: var(--font-stack);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.title em,
.title-mark {
  font-style: italic;
}

/* Underline mark drawn with a single border, brutalist */
.title-mark {
  display: inline-block;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.05em;
}

.body {
  font-family: var(--font-stack);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 38rem;
  color: #f4f4f4;
}

.body em {
  font-style: italic;
  color: #fff;
}

.links {
  margin-top: 0.5rem;
}

.cta {
  display: inline-block;
  font-family: var(--font-stack);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 0.7rem 1.1rem;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

/* ---------- subscribe ---------- */
.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-width: 28rem;
}

.subscribe input,
.subscribe button {
  font: inherit;
  font-family: var(--font-stack);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}

.subscribe input::placeholder {
  color: #fff;
  opacity: 0.4;
}

.subscribe input:focus-visible {
  outline: none;
  background: #0a0a0a;
}

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

.subscribe button {
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.subscribe button:hover,
.subscribe button:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  opacity: 0.7;
  min-height: 1.2em;
  margin-top: 0.25rem;
}

/* ---------- about / bios ---------- */
.about .bio {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about .bio:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about h3 {
  font-family: var(--font-stack);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
}

.about p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #e6e6e6;
}

/* ---------- footer ---------- */
.foot {
  text-align: left;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-stack);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ---------- a11y ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- mobile tweaks ---------- */
@media (max-width: 640px) {
  .stage {
    border-bottom-width: 1px;
  }
  .prose {
    padding: 4rem 1.25rem 3rem;
    gap: 4rem;
  }
  .intro-copy {
    padding: 1rem;
  }
  .intro-copy p {
    font-size: clamp(1rem, 5.1vw, 1.25rem);
  }
  .subscribe {
    grid-template-columns: 1fr;
  }
}
