:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #111111;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #111111;
}

.home {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #08130a url("assets/hero-poster-clean.jpg?v=20260606-1") center / cover no-repeat;
}

.home__video,
.home__shade,
.home__iris {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home__video {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.76) contrast(1.02) saturate(1.04);
  opacity: 1;
  background: #111111 url("assets/hero-poster-clean.jpg?v=20260606-1") center / cover no-repeat;
}

.home__video--mobile {
  display: block;
}

.home__shade {
  z-index: 1;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(1, 4, 2, 0.96), rgba(2, 9, 4, 0.86) 13%, rgba(4, 14, 6, 0.56) 28%, rgba(5, 18, 8, 0.24) 46%, rgba(5, 18, 8, 0) 68%),
    linear-gradient(135deg, rgba(1, 4, 2, 0.82), rgba(3, 11, 5, 0.44) 18%, rgba(4, 16, 7, 0.12) 38%, rgba(4, 16, 7, 0) 58%),
    radial-gradient(ellipse at 66% 46%, rgba(210, 224, 198, 0.18), rgba(138, 164, 124, 0.11) 16%, rgba(56, 92, 48, 0.04) 36%, rgba(4, 7, 5, 0) 58%),
    linear-gradient(90deg, rgba(4, 7, 5, 0) 32%, rgba(195, 213, 182, 0.08) 45%, rgba(195, 213, 182, 0.08) 83%, rgba(4, 7, 5, 0) 96%),
    radial-gradient(ellipse at 63% 47%, rgba(160, 185, 150, 0.08), rgba(55, 78, 48, 0.04) 28%, rgba(4, 7, 5, 0) 56%),
    radial-gradient(ellipse at 96% 92%, rgba(3, 8, 5, 0.82), rgba(4, 12, 7, 0.58) 34%, rgba(4, 12, 7, 0.22) 58%, rgba(4, 12, 7, 0) 78%),
    radial-gradient(ellipse at 2% 4%, rgba(3, 8, 5, 0.68), rgba(6, 18, 9, 0.42) 32%, rgba(6, 18, 9, 0.12) 58%, rgba(6, 18, 9, 0) 78%),
    linear-gradient(180deg, rgba(3, 6, 4, 0.34), rgba(6, 16, 8, 0.1) 44%, rgba(3, 6, 4, 0.48)),
    linear-gradient(90deg, rgba(3, 6, 4, 0.28), rgba(3, 6, 4, 0.03) 42%, rgba(3, 6, 4, 0.22));
}

.home__iris {
  z-index: 3;
  background: #000000;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
  transition: clip-path 1.65s cubic-bezier(0.72, 0, 0.2, 1);
}

.home.is-closing .home__iris {
  clip-path: circle(150% at 50% 50%);
}

.rotate-hint {
  display: none;
}

.choice-gallery {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 24px);
  padding: clamp(18px, 4vw, 48px);
  pointer-events: none;
}

.choice-gallery__image {
  width: min(76vw, 760px);
  height: clamp(120px, 24vh, 210px);
  object-fit: cover;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transition:
    opacity 0.75s ease,
    transform 0.95s cubic-bezier(0.2, 0.78, 0.18, 1),
    width 0.95s cubic-bezier(0.2, 0.78, 0.18, 1),
    height 0.95s cubic-bezier(0.2, 0.78, 0.18, 1);
}

.choice-gallery__image[data-title] {
  cursor: pointer;
}

.home.is-closing .choice-gallery__image {
  animation: image-reveal 0.95s ease forwards;
  pointer-events: auto;
}

.home.is-closing .choice-gallery__image:nth-child(1) {
  animation-delay: 2s;
}

.home.is-closing .choice-gallery__image:nth-child(2) {
  animation-delay: 2.75s;
}

.home.is-closing .choice-gallery__image:nth-child(3) {
  animation-delay: 3.5s;
}

.home.is-returning:not(.has-story-selected) .choice-gallery__image {
  animation: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@keyframes image-reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home.has-story-selected .choice-gallery {
  align-items: flex-start;
  padding-left: clamp(24px, 6vw, 96px);
}

.home.has-story-selected .choice-gallery__image {
  animation: none;
}

.home.has-story-selected .choice-gallery__image.is-selected {
  width: min(44vw, 680px);
  height: min(56vh, 360px);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home.has-story-selected .choice-gallery__image:not(.is-selected) {
  position: absolute;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
}

.rights-notice {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 2.2vh, 22px);
  z-index: 5;
  margin: 0;
  transform: translateX(-50%);
  color: #39ff14;
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.rights-notice span {
  margin: 0 0.45em;
}

.home.is-closing:not(.has-story-selected) .rights-notice {
  opacity: 1;
  transition-delay: 3.8s;
}

.paid-access-link {
  position: absolute;
  left: 50%;
  bottom: clamp(30px, 5.4vh, 58px);
  z-index: 5;
  transform: translateX(-50%);
  color: rgba(57, 255, 20, 0.86);
  font-size: clamp(0.66rem, 1.1vw, 0.8rem);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.home.is-closing:not(.has-story-selected) .paid-access-link {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 3.8s;
}

.paid-access-link:hover,
.paid-access-link:focus-visible {
  color: #39ff14;
  outline: none;
}

.story-launch {
  position: absolute;
  top: 50%;
  right: clamp(28px, 8vw, 140px);
  z-index: 5;
  width: min(38vw, 560px);
  transform: translateY(-50%) translateX(24px);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.78, 0.18, 1);
}

.home.has-story-selected .story-launch {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
  transition-delay: 0.28s;
}

.story-launch h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.16),
    0 8px 28px rgba(0, 0, 0, 0.64);
}

.story-launch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.story-launch__button:hover,
.story-launch__button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.payment-prompt {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  z-index: 7;
  display: flex;
  width: min(92vw, 720px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(57, 255, 20, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.72);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(57, 255, 20, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.home.has-payment-prompt .payment-prompt {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.payment-prompt p {
  margin: 0;
  font-size: clamp(0.78rem, 1.4vw, 0.96rem);
  line-height: 1.35;
  text-align: left;
}

.payment-prompt__button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(57, 255, 20, 0.72);
  border-radius: 999px;
  color: #08130a;
  background: #39ff14;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.payment-prompt__button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.payment-prompt__button:hover,
.payment-prompt__button:focus-visible {
  outline: none;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.44);
}

.home__content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18vh 0 12vh;
}

h1,
h2,
p {
  margin-top: 0;
}

.access-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.82), rgba(3, 8, 5, 0.96)),
    url("assets/hero-poster-clean.jpg?v=20260606-1") center / cover no-repeat;
}

.access__video {
  display: none;
}

.access {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.access__content {
  width: min(100%, 560px);
  text-align: center;
}

.access__eyebrow {
  margin-bottom: 12px;
  color: #39ff14;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 0.98;
}

.access__status {
  min-height: 44px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.45;
}

.access__actions {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.access__button,
.access__manual button,
.access__back {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.access__back {
  position: fixed;
  left: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  min-height: 42px;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.access__button.is-disabled {
  color: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.access__support {
  display: none;
  margin: -6px 0 26px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.access__support.is-visible {
  display: block;
}

.access__support p {
  margin-bottom: 10px;
}

.access__support a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(57, 255, 20, 0.54);
  border-radius: 999px;
  color: #39ff14;
  font-weight: 800;
  text-decoration: none;
  background: rgba(57, 255, 20, 0.06);
}

.access__support a:hover,
.access__support a:focus-visible {
  outline: none;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.34);
}

.access__manual {
  display: grid;
  gap: 10px;
  text-align: left;
}

.access__manual label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.access__manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.access__manual input {
  min-height: 48px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font: inherit;
  padding: 0 16px;
}

.access__manual button {
  padding: 0 18px;
}

.access__back:hover,
.access__back:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

@media (min-width: 901px) and (pointer: fine) {
  .access-page {
    position: relative;
    overflow: hidden;
    background: #08130a url("assets/hero-poster-clean.jpg?v=20260606-1") center / cover no-repeat;
    isolation: isolate;
  }

  .access-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(1, 4, 2, 0.96), rgba(2, 9, 4, 0.86) 13%, rgba(4, 14, 6, 0.56) 28%, rgba(5, 18, 8, 0.24) 46%, rgba(5, 18, 8, 0) 68%),
      linear-gradient(135deg, rgba(1, 4, 2, 0.82), rgba(3, 11, 5, 0.44) 18%, rgba(4, 16, 7, 0.12) 38%, rgba(4, 16, 7, 0) 58%),
      radial-gradient(ellipse at 66% 46%, rgba(210, 224, 198, 0.18), rgba(138, 164, 124, 0.11) 16%, rgba(56, 92, 48, 0.04) 36%, rgba(4, 7, 5, 0) 58%),
      linear-gradient(90deg, rgba(4, 7, 5, 0) 32%, rgba(195, 213, 182, 0.08) 45%, rgba(195, 213, 182, 0.08) 83%, rgba(4, 7, 5, 0) 96%),
      radial-gradient(ellipse at 63% 47%, rgba(160, 185, 150, 0.08), rgba(55, 78, 48, 0.04) 28%, rgba(4, 7, 5, 0) 56%),
      radial-gradient(ellipse at 96% 92%, rgba(3, 8, 5, 0.82), rgba(4, 12, 7, 0.58) 34%, rgba(4, 12, 7, 0.22) 58%, rgba(4, 12, 7, 0) 78%),
      radial-gradient(ellipse at 2% 4%, rgba(3, 8, 5, 0.68), rgba(6, 18, 9, 0.42) 32%, rgba(6, 18, 9, 0.12) 58%, rgba(6, 18, 9, 0) 78%),
      linear-gradient(180deg, rgba(3, 6, 4, 0.34), rgba(6, 16, 8, 0.1) 44%, rgba(3, 6, 4, 0.48)),
      linear-gradient(90deg, rgba(3, 6, 4, 0.28), rgba(3, 6, 4, 0.03) 42%, rgba(3, 6, 4, 0.22));
  }

  .access__video {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.76) contrast(1.02) saturate(1.04);
    background: #111111 url("assets/hero-poster-clean.jpg?v=20260606-1") center / cover no-repeat;
  }

  .access {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 900px), (pointer: coarse) {
  .home {
    background: #000000 url("assets/hero-poster-clean.jpg?v=20260606-1") center / cover no-repeat;
    background-color: #000000;
  }

  .home__video--mobile {
    display: block;
    object-fit: contain;
    object-position: center;
    transform: scale(1.18);
    transform-origin: center;
    filter: brightness(0.76) contrast(1.02) saturate(1.04);
    background-color: #000000;
  }

  .rotate-hint {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 8vh, 58px);
    z-index: 2;
    display: none;
    width: min(82vw, 360px);
    transform: translateX(-50%);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.24);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    backdrop-filter: blur(10px);
  }

  @media (orientation: portrait) {
    .home:not(.is-closing):not(.has-seen-hint) .rotate-hint {
      display: none;
    }
  }

  .home__content {
    width: min(100% - 28px, 760px);
    padding-bottom: 10vh;
  }

  .choice-gallery {
    gap: 12px;
    padding: 16px;
  }

  .choice-gallery__image {
    width: min(92vw, 520px);
    height: clamp(104px, 24vh, 170px);
    border-radius: 20px;
  }

  .home.has-story-selected .choice-gallery {
    align-items: center;
    justify-content: flex-start;
    padding: 26px 16px;
  }

  .home.has-story-selected .choice-gallery__image.is-selected {
    width: min(90vw, 520px);
    height: clamp(150px, 28vh, 230px);
  }

  .story-launch {
    top: clamp(310px, 43vh, 390px);
    right: auto;
    left: 50%;
    width: min(90vw, 520px);
    transform: translateX(-50%) translateY(14px);
  }

  .home.has-story-selected .story-launch {
    transform: translateX(-50%) translateY(0);
  }

  .story-launch h1 {
    margin-bottom: 58px;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .story-launch__button {
    min-height: 46px;
    padding: 0 22px;
    font-size: 0.95rem;
  }

  .payment-prompt {
    bottom: max(14px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .payment-prompt p {
    text-align: center;
  }

  .payment-prompt__button {
    width: 100%;
  }

  .paid-access-link {
    bottom: max(54px, calc(env(safe-area-inset-bottom) + 54px));
  }
}
