:root {
  --floor: #05070b;
  --ink: #ffffff;
  --accent: #ffffff;
  --accent-ink: #05070b;
  /* Below-hero band: near-black slate. Other options:
     #08090c (inkier), #0e1116 (cooler slate), #12151c (softer charcoal) */
  --below: #0a0c10;
  --below-ink: #ffffff;
  --below-mute: #a7adb8;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--floor);
}

body {
  min-height: 100%;
  background: var(--floor);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--floor);
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgb(5 7 11 / 0.92) 0%,
      rgb(5 7 11 / 0.72) 26%,
      rgb(5 7 11 / 0.35) 52%,
      rgb(5 7 11 / 0.55) 78%,
      rgb(5 7 11 / 0.92) 100%
    );
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--floor);
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(0.82) contrast(1.08) brightness(0.86);
  transition:
    opacity 900ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 4.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.hero-slides img.is-active {
  opacity: 1;
  transform: scale(1.03);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  padding:
    calc(clamp(1.5rem, 5vw, 2.75rem) + env(safe-area-inset-top, 0px))
    clamp(1.15rem, 5vw, 2.5rem)
    calc(1.65rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  font-weight: 600;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 2.35rem;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.8rem, 12vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
  width: 100%;
  margin-top: 0.85rem;
  text-align: center;
  animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s both;
}

.headline-kicker {
  display: block;
  font-weight: 400;
  font-size: 0.34em;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 0.22em;
  text-align: center;
}

.headline-line {
  display: block;
  white-space: nowrap;
  text-align: center;
}

.rotator {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 2.6em;
  margin-block: -0.45em;
  overflow: hidden;
}

.rotator-item {
  grid-area: 1 / 1;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  padding-bottom: 0.06em;
  white-space: nowrap;
  /* Thick CRT phosphor bars — Instrument Sans shapes unchanged */
  color: transparent;
  background-image: repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 0.028em,
    rgb(255 255 255 / 0) 0.028em,
    rgb(255 255 255 / 0) 0.06em
  );
  -webkit-background-clip: text;
  background-clip: text;
  /* drop-shadow keeps glow without filling over the bars */
  filter: blur(0) drop-shadow(0 0 0.12em rgb(255 255 255 / 0.55))
    drop-shadow(0 0 0.35em rgb(190 210 255 / 0.28));
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity 750ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 750ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 750ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.rotator-item.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0) drop-shadow(0 0 0.12em rgb(255 255 255 / 0.55))
    drop-shadow(0 0 0.35em rgb(190 210 255 / 0.28));
}

.rotator-item.is-enter {
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(7px) drop-shadow(0 0 0.12em rgb(255 255 255 / 0.55))
    drop-shadow(0 0 0.35em rgb(190 210 255 / 0.28));
}

.rotator-item.is-exit {
  opacity: 0;
  transform: translateY(-0.45em);
  filter: blur(7px) drop-shadow(0 0 0.12em rgb(255 255 255 / 0.55))
    drop-shadow(0 0 0.35em rgb(190 210 255 / 0.28));
}

.hero-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.05rem;
  padding-top: 2rem;
  /* Room for both buttons' outer rings so nothing clips */
  padding-inline: 4px;
  padding-bottom: 5px;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  border-radius: 0.4rem;
  border: 0;
  outline: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* Thin outer ring with a clear gap between fill and stroke */
.btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 0.55rem;
  border-style: solid;
  border-width: 0.5px;
  pointer-events: none;
}

.btn-light {
  color: var(--accent-ink);
  background-color: var(--accent);
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(5 7 11 / 0) 0,
    rgb(5 7 11 / 0) 1.6px,
    rgb(5 7 11 / 0.1) 1.6px,
    rgb(5 7 11 / 0.1) 2.3px
  );
}

.btn-light::after {
  border-color: rgb(255 255 255 / 0.475);
}

.btn-light:hover {
  background-color: rgb(255 255 255 / 0.92);
  transform: translateY(-1px);
}

.btn-dark {
  color: var(--accent);
  background-color: rgb(5 7 11 / 0.95);
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(255 255 255 / 0.14) 0,
    rgb(255 255 255 / 0.14) 0.7px,
    rgb(255 255 255 / 0) 0.7px,
    rgb(255 255 255 / 0) 2.2px
  );
}

.btn-dark::after {
  border-color: rgb(5 7 11 / 0.475);
}

.btn-dark:hover {
  background-color: rgb(5 7 11 / 0.85);
  transform: translateY(-1px);
}

.btn-dark:hover::after {
  border-color: rgb(5 7 11 / 0.425);
}

.btn-light:active,
.btn-dark:active {
  transform: none;
}

/* —— Below-hero content band —— */
.below {
  position: relative;
  background: var(--below);
  color: var(--below-ink);
  padding:
    clamp(4.5rem, 12vw, 8.5rem)
    clamp(1.15rem, 5vw, 2.5rem)
    clamp(3.25rem, 8vw, 5rem);
}

.below-inner {
  width: min(48rem, 100%);
  margin-inline: auto;
}

.fact {
  padding-block: clamp(2.75rem, 7vw, 4.25rem);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fact.is-in {
  opacity: 1;
  transform: none;
}

.fact:last-of-type {
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.crt-title,
.crt-num {
  font-weight: 700;
  letter-spacing: -0.045em;
  color: transparent;
  background-image: repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 0.028em,
    rgb(255 255 255 / 0) 0.028em,
    rgb(255 255 255 / 0) 0.06em
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.crt-title {
  font-size: clamp(2.55rem, 10vw, 4.75rem);
  line-height: 1.05;
  margin: 0 0 clamp(1.6rem, 4vw, 2.35rem);
}

.fact-num {
  font-size: clamp(4.75rem, 22vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0 0 0.35rem;
  padding-bottom: 0.04em;
}

.fact-label {
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--below-ink);
  margin: 0 0 clamp(1.35rem, 3.5vw, 1.85rem);
  max-width: 22rem;
}

.below-body {
  font-weight: 400;
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--below-mute);
  max-width: 36rem;
}

.below-body strong {
  color: rgb(232 235 240 / 0.92);
  font-weight: 600;
}

.below-body + .below-body {
  margin-top: 1.15rem;
}

.below-sources {
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgb(167 173 184 / 0.55);
  max-width: 34rem;
}

.close {
  background: var(--below);
  color: var(--below-ink);
  padding:
    clamp(3.5rem, 10vw, 6.5rem)
    clamp(1.15rem, 5vw, 2.5rem)
    clamp(4rem, 11vw, 6.75rem);
}

.close-inner {
  width: min(48rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.close-title {
  margin-bottom: clamp(1.85rem, 5vw, 2.75rem);
  text-wrap: balance;
}

.close-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.05rem;
  padding-inline: 4px;
  padding-bottom: 5px;
  max-width: min(44rem, 100%);
  margin-inline: auto;
}

/* Dark button ring needs a little more presence on the slate band */
.close .btn-dark::after {
  border-color: rgb(255 255 255 / 0.22);
}

.close .btn-dark:hover::after {
  border-color: rgb(255 255 255 / 0.3);
}

.site-footer {
  background: var(--below);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding:
    0.85rem
    clamp(1.15rem, 5vw, 2.5rem)
    calc(0.85rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.site-footer p {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgb(167 173 184 / 0.5);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 840px) {
  .hero-copy {
    /* Full-bleed so the brand can sit on the far left edge */
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(1.75rem, 4vw, 3.25rem);
  }

  .brand {
    align-self: flex-start;
    text-align: left;
    margin-bottom: 2.75rem;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 1.15rem;
    max-width: min(44rem, 100%);
    width: 100%;
    margin-inline: auto;
    padding-inline: 6px;
  }

  .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.85rem 1.75rem;
    font-size: 1.02rem;
  }

  .below {
    padding-inline: clamp(1.75rem, 4vw, 3.25rem);
  }

  .close {
    padding-inline: clamp(1.75rem, 4vw, 3.25rem);
  }

  .close-cta {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 1.15rem;
    padding-inline: 6px;
  }

  .close-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.85rem 1.75rem;
    font-size: 1.02rem;
  }

  .site-footer {
    padding-inline: clamp(1.75rem, 4vw, 3.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero h1,
  .hero-cta {
    animation: none;
  }

  .hero-slides img {
    transition: none;
    transform: none;
  }

  .rotator-item {
    transition: none;
  }

  .fact {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-light:hover,
  .btn-dark:hover {
    transform: none;
  }
}
