:root {
  --bg: #07111a;
  --bg-alt: #0d1f2b;
  --panel: rgba(8, 21, 31, 0.8);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #eef4f7;
  --muted: #b8c8d3;
  --accent: #ff6b1f;
  --accent-soft: #ffbf8d;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(255, 107, 31, 0.14), transparent 35%),
    linear-gradient(180deg, #050d15 0%, #08131e 35%, #081720 100%);
  color: var(--text);
  font-family: "Audiowide", "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 rgba(38, 44, 52, 0.92);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-footer,
.panel,
.claim-band,
.policy-layout {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: clip;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: background-image 800ms ease-in-out, transform 8s ease;
}

.hero-media.is-animating {
  transform: scale(1.1);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(2, 8, 13, 0.2), rgba(2, 8, 13, 0.38));
}

.hero-content {
  position: relative;
  width: min(100% - 1rem, 1100px);
  text-align: center;
  padding: 2.5rem 1rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Audiowide", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

h1 {
  font-size: clamp(1rem, 2.9vw, 1.95rem);
  text-shadow:
    1px 1px 0 rgba(38, 44, 52, 0.92),
    0 12px 42px rgba(0, 0, 0, 0.42);
}

#hero-title {
  white-space: nowrap;
}

.hero-kicker {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  white-space: nowrap;
}

.hero-logo {
  width: min(380px, 54vw);
  margin: 0 auto 1.2rem;
}

h2 {
  font-size: clamp(1.05rem, 2.7vw, 1.95rem);
}

h3 {
  font-size: 1rem;
  margin-top: 1.6rem;
}

.hero-copy,
.hero-kicker,
.panel-copy p,
.policy-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  font-size: clamp(0.7rem, 1.35vw, 1rem);
  white-space: nowrap;
}

.panel,
.claim-band {
  width: min(100% - 2rem, var(--content));
  margin: 1.25rem auto;
}

.panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11, 25, 35, 0.88), rgba(8, 18, 28, 0.88));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.panel-with-bg {
  overflow: hidden;
}

.panel-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.18;
  transform: scale(1.03);
  z-index: 0;
}

.panel-with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 22, 0.28), rgba(6, 15, 22, 0.41));
  z-index: 0;
}

.panel-with-bg > * {
  position: relative;
  z-index: 1;
}

.world-panel::before {
  background-image: url("./assets/TR1-Moon-Habitats.png");
  opacity: 0.34;
}

.world-panel::after {
  background:
    linear-gradient(180deg, rgba(6, 15, 22, 0.12), rgba(6, 15, 22, 0.2));
}

.claim-panel::before {
  background-image: url("./assets/image_2022-08-26_22-38-07.webp");
  background-position: center center;
  opacity: 0.42;
}

.claim-panel::after {
  background:
    linear-gradient(180deg, rgba(6, 15, 22, 0.17), rgba(6, 15, 22, 0.34));
}

.finale-panel::before {
  background-image: url("./assets/TR1-Moon-Moron-Rocket-in-Foreground.png");
  opacity: 0.16;
}

.panel.intro {
  grid-template-columns: 1fr;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.panel.reverse .panel-copy {
  order: 1;
}

.panel.reverse .stacked-frames {
  order: 2;
}

.panel-copy {
  max-width: 34rem;
}

.panel.intro .panel-copy {
  margin-inline: auto;
}

.title-lockup {
  display: flex;
  width: min(300px, 72vw);
  margin: 1.2rem auto 1rem;
  justify-content: center;
}

.rotating-line,
.emphasis {
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--text);
}

.word-rotator {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding-inline: 0.08em;
  white-space: nowrap;
  color: var(--accent);
}

.word-rotator.inline {
  min-width: 0;
}

.stacked-frames {
  position: relative;
  min-height: 420px;
}

.frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.04);
}

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

.frame-back,
.frame-front {
  position: absolute;
  width: min(100%, 540px);
  aspect-ratio: 16 / 10;
}

.frame-back {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  z-index: 1;
}

.frame-front {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
  z-index: 2;
}

.claim-band {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(6rem, 18vw, 12rem) clamp(2rem, 6vw, 4rem);
  text-align: center;
  background:
    linear-gradient(120deg, rgba(255, 107, 31, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(10, 23, 33, 0.9);
  border: 1px solid rgba(255, 191, 141, 0.2);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.claim-band p {
  margin: 0 0 0.8rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.claim-band h2 {
  font-size: clamp(1.15rem, 3vw, 1.8rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #110702;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  width: min(100% - 2rem, var(--content));
  margin: 1.25rem auto 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 20, 29, 0.86);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.policy-layout {
  width: min(100% - 2rem, 960px);
  margin: 0 auto 2rem;
}

.policy-hero,
.policy-card {
  padding: clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11, 25, 35, 0.88), rgba(8, 18, 28, 0.88));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.policy-hero {
  margin-top: 1rem;
}

.policy-card {
  margin-top: 1rem;
}

.policy-card h2 {
  margin-top: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.policy-card h3 {
  color: var(--accent-soft);
  font-family: "Audiowide", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .panel,
  .panel.reverse {
    grid-template-columns: 1fr;
  }

  .panel.reverse .panel-copy,
  .panel.reverse .stacked-frames {
    order: initial;
  }

  .stacked-frames {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .panel,
  .claim-band,
  .policy-layout,
  .site-footer {
    width: min(100% - 1rem, var(--content));
  }

  .frame-back,
  .frame-front {
    position: relative;
    width: 100%;
    transform: none;
  }

  .frame-front {
    margin-top: 1rem;
  }

  .stacked-frames {
    min-height: 0;
  }
}
