:root {
  color-scheme: dark;
  --bg-0: #061018;
  --bg-1: #0c1720;
  --bg-2: #1f313f;
  --bg-3: #384e5f;
  --text-main: rgba(248, 250, 252, 0.98);
  --text-soft: rgba(228, 236, 243, 0.82);
  --line-soft: rgba(224, 232, 240, 0.24);
  --dot-idle: rgba(236, 242, 248, 0.36);
  --dot-active: rgba(248, 251, 255, 0.96);
  --shadow-soft: 0 28px 90px rgba(3, 10, 15, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(95, 127, 153, 0.18), transparent 36%),
    linear-gradient(180deg, #081118 0%, #0d1720 46%, #0a1117 100%);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: clip;
  background: linear-gradient(180deg, rgba(5, 11, 16, 0.8), rgba(7, 13, 19, 0.92));
}

.hero__media,
.hero__frame {
  position: absolute;
  inset: 0;
}

.hero__fallback,
.hero__image,
.hero__veil,
.hero__mist {
  position: absolute;
  inset: 0;
}

.hero__fallback {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(0.88);
}

.hero__fallback--a {
  background:
    radial-gradient(circle at 74% 22%, rgba(164, 192, 212, 0.12), transparent 22%),
    radial-gradient(circle at 18% 70%, rgba(121, 154, 181, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(27, 41, 54, 0.52), rgba(5, 11, 16, 0.84)),
    linear-gradient(135deg, #455867 0%, #16232d 44%, #0b1217 100%);
}

.hero__fallback--b {
  opacity: 0.62;
  background:
    radial-gradient(circle at 22% 26%, rgba(181, 208, 224, 0.1), transparent 20%),
    radial-gradient(circle at 82% 72%, rgba(109, 142, 171, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(19, 33, 42, 0.36), rgba(5, 10, 15, 0.62)),
    linear-gradient(160deg, #55697a 0%, #24333f 42%, #0c1318 100%);
  mix-blend-mode: screen;
}

.hero__image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 2.2s ease, transform 12s ease;
  filter: saturate(0.78) brightness(0.84) contrast(1.11);
}

@media (min-width: 821px) {
  .hero__image {
    filter: saturate(1) brightness(0.92) contrast(1.34);
  }
}

.hero__image.is-active {
  opacity: 1;
  transform: scale(1.06);
}

.hero__veil {
  background:
    radial-gradient(circle at center, rgba(4, 8, 12, 0.04) 0%, rgba(4, 8, 12, 0.12) 42%, rgba(4, 8, 12, 0.34) 78%, rgba(4, 8, 12, 0.52) 100%),
    linear-gradient(180deg, rgba(4, 8, 12, 0.42) 0%, rgba(5, 10, 15, 0.24) 24%, rgba(5, 10, 14, 0.48) 100%),
    linear-gradient(90deg, rgba(6, 12, 17, 0.4) 0%, rgba(6, 12, 17, 0.12) 34%, rgba(6, 12, 17, 0.28) 100%);
}

@media (min-width: 821px) {
  .hero__veil {
    background:
      radial-gradient(circle at center, rgba(4, 8, 12, 0.02) 0%, rgba(4, 8, 12, 0.07) 40%, rgba(4, 8, 12, 0.18) 74%, rgba(4, 8, 12, 0.34) 100%),
      linear-gradient(180deg, rgba(4, 8, 12, 0.22) 0%, rgba(5, 10, 15, 0.1) 24%, rgba(5, 10, 14, 0.26) 100%),
      linear-gradient(90deg, rgba(6, 12, 17, 0.18) 0%, rgba(6, 12, 17, 0.06) 34%, rgba(6, 12, 17, 0.12) 100%);
  }
}

.hero__mist {
  background:
    radial-gradient(circle at 30% 78%, rgba(234, 241, 247, 0.16), transparent 26%),
    radial-gradient(circle at 58% 86%, rgba(224, 233, 240, 0.12), transparent 24%),
    radial-gradient(circle at 68% 18%, rgba(165, 188, 204, 0.09), transparent 22%);
  mix-blend-mode: screen;
  filter: blur(34px);
  opacity: 0.92;
}

@media (min-width: 821px) {
  .hero__mist {
    opacity: 0.18;
  }
}

.hero__frame {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 2vw, 2rem);
  isolation: isolate;
}

.hero__topline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: start;
  justify-self: start;
  margin-top: clamp(0.25rem, 1vh, 1rem);
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 14, 19, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__index {
  color: rgba(240, 245, 249, 0.9);
}

.hero__name {
  color: var(--text-soft);
}

.hero__copy {
  align-self: end;
  max-width: min(52rem, calc(100vw - 2.5rem));
  margin-bottom: clamp(2.4rem, 7vh, 4.2rem);
  padding-left: clamp(0.8rem, 2.4vw, 2.6rem);
  padding-right: clamp(1rem, 10vw, 12rem);
}

.hero__kicker {
  margin: 0 0 0.78rem;
  color: rgba(235, 241, 247, 0.88);
  font-size: clamp(0.6rem, 0.86vw, 0.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__quote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  max-width: none;
  text-shadow: 0 8px 30px rgba(5, 10, 16, 0.34);
}

.hero__quote-line {
  display: block;
  width: max-content;
  max-width: none;
}

.hero__author {
  margin: 0.72rem 0 0;
  color: var(--text-soft);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__nav {
  display: inline-flex;
  gap: 0.65rem;
  align-self: end;
  justify-self: end;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(8, 14, 19, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero__dot {
  appearance: none;
  width: 0.42rem;
  height: 0.42rem;
  border: none;
  border-radius: 50%;
  background: var(--dot-idle);
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.hero__dot:hover,
.hero__dot:focus-visible {
  transform: scale(1.18);
  background: rgba(245, 249, 252, 0.72);
  outline: none;
}

.hero__dot.is-active {
  background: var(--dot-active);
  box-shadow: 0 0 0 0.14rem rgba(245, 249, 252, 0.14);
  transform: scale(1.28);
}

.future-fold {
  min-height: 20vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem 2.6rem;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.54), rgba(7, 11, 16, 0.9));
}

.future-fold__inner {
  width: min(920px, 100%);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

.future-fold__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 20, 28, 0.52);
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.future-fold__button:hover,
.future-fold__button:focus-visible {
  transform: translateY(-1px);
  background: rgba(18, 30, 41, 0.72);
  border-color: rgba(255, 255, 255, 0.34);
  outline: none;
}

@media (max-width: 820px) {
  .hero__image {
    filter: saturate(0.8) brightness(1.02) contrast(1.12);
  }

  .hero__veil {
    background:
      radial-gradient(circle at center, rgba(4, 8, 12, 0.005) 0%, rgba(4, 8, 12, 0.025) 42%, rgba(4, 8, 12, 0.08) 78%, rgba(4, 8, 12, 0.14) 100%),
      linear-gradient(180deg, rgba(4, 8, 12, 0.1) 0%, rgba(5, 10, 15, 0.05) 24%, rgba(5, 10, 14, 0.14) 100%),
      linear-gradient(90deg, rgba(6, 12, 17, 0.09) 0%, rgba(6, 12, 17, 0.02) 34%, rgba(6, 12, 17, 0.06) 100%);
  }

  .hero__mist {
    opacity: 0.42;
  }

  .hero__frame {
    padding: 1rem 0.95rem 0.9rem;
  }

  .hero__copy {
    max-width: min(100%, 34rem);
    padding-left: 0.2rem;
    padding-right: 0.35rem;
    margin-bottom: 1.05rem;
  }

  .hero__kicker {
    margin-bottom: 0.58rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero__quote {
    font-size: clamp(0.92rem, 4vw, 1.28rem);
    line-height: 1.1;
  }

  .hero__author {
    margin-top: 0.56rem;
    font-size: 0.58rem;
  }

  .hero__nav {
    justify-self: center;
    margin-bottom: 0.35rem;
    padding: 0.52rem 0.72rem;
  }

  .hero__topline {
    font-size: 0.58rem;
    padding: 0.42rem 0.62rem;
  }
}

@media (max-width: 480px) {
  .hero__frame {
    grid-template-rows: auto 1fr auto;
    padding: 0.85rem 0.78rem 0.72rem;
  }

  .hero__topline {
    margin-top: 0;
  }

  .hero__copy {
    align-self: center;
    max-width: 100%;
    margin-bottom: 0.4rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .hero__kicker {
    font-size: 0.56rem;
    margin-bottom: 0.42rem;
  }

  .hero__quote {
    font-size: clamp(0.74rem, 3.3vw, 0.96rem);
    line-height: 1.14;
  }

  .hero__author {
    font-size: 0.54rem;
    margin-top: 0.46rem;
  }

  .hero__nav {
    gap: 0.5rem;
    margin-bottom: 0.12rem;
    padding: 0.46rem 0.66rem;
  }

  .future-fold {
    min-height: 12vh;
    padding-top: 0.85rem;
  }
}

@media (max-height: 520px), (orientation: landscape) and (max-height: 640px) {
  .hero {
    min-height: 100svh;
  }

  .hero__frame {
    grid-template-rows: auto 1fr auto;
    padding: 0.65rem 0.8rem 0.5rem;
  }

  .hero__topline {
    font-size: 0.52rem;
    padding: 0.34rem 0.52rem;
    margin-top: 0;
  }

  .hero__copy {
    align-self: start;
    max-width: min(68vw, 34rem);
    margin-top: 0.42rem;
    margin-bottom: 0.12rem;
    padding-left: 0.05rem;
    padding-right: 0;
  }

  .hero__kicker {
    font-size: 0.52rem;
    margin-bottom: 0.28rem;
    letter-spacing: 0.07em;
  }

  .hero__quote {
    font-size: clamp(0.78rem, 2.5vw, 1rem);
    line-height: 1.1;
  }

  .hero__author {
    font-size: 0.5rem;
    margin-top: 0.34rem;
  }

  .hero__nav {
    justify-self: center;
    margin-bottom: 0.05rem;
    padding: 0.34rem 0.56rem;
  }

  .future-fold {
    min-height: 6vh;
    padding: 0.45rem 0.8rem 0.7rem;
  }

  .future-fold__inner {
    padding-top: 0.55rem;
  }

  .future-fold p {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image,
  .hero__dot {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
