:root {
  color-scheme: dark;
  --midnight: #030a16;
  --ivory: #f2e8d5;
  --gold: #d3b47b;
  background: var(--midnight);
  font-family: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; isolation: isolate; display: flex; flex-direction: column; margin: 0; min-width: 280px; min-height: 100svh; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--midnight) url('../assets/landing/holographic-lab-poster.webp') 50% 50% / cover no-repeat;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(3 10 22 / 22%), transparent 20%, transparent 76%, rgb(3 10 22 / 24%));
}
/* A scene-wide pool of shadow: no boundary follows the text block.
   Its left edge fades out before the central character. */
.landing-ui::before {
  content: '';
  position: fixed;
  inset: 0 0 0 61%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(3 10 22 / 72%) 28%, rgb(3 10 22 / 88%) 72%, rgb(3 10 22 / 90%));
  mask-image: linear-gradient(180deg, transparent 28%, rgb(0 0 0 / 18%) 42%, #000 57%, #000 83%, rgb(0 0 0 / 65%) 100%);
}
.landing-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.landing-ui {
  --edge: clamp(28px, 3vw, 72px);
  flex: 1;
  min-height: 0;
  padding: max(var(--edge), env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right)) max(var(--edge), env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left));
}
.landing-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 24px;
}
h1 { margin: 0; justify-self: start; font-weight: 400; }
button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 5px; }
.landing-copy {
  position: absolute;
  top: 54svh;
  right: max(var(--edge), env(safe-area-inset-right));
  width: min(30vw, 460px);
  margin: 0;
  color: var(--ivory);
  font-size: clamp(16px, .9vw, 18px);
  line-height: 1.5;
  text-wrap: pretty;
  text-shadow: 0 1px 3px rgb(0 0 0 / 75%);
  animation: narrative-arrival .7s ease-out both;
}
.landing-copy p { margin: 0; }
.landing-copy .copy-lead {
  margin-bottom: 20px;
  font-size: clamp(24px, 1.45vw, 28px);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.landing-copy .copy-beat + .copy-beat { margin-top: 14px; }
.landing-copy .copy-promise { margin-top: 18px; }
.copy-promise strong { color: #dfbf86; font-weight: 400; font-style: italic; }
#continue-journey { margin-top: 20px; max-width:100%; text-shadow:none; }
#continue-journey:focus-visible { outline: 2px solid var(--ivory); outline-offset: 5px; }
@keyframes narrative-arrival { from { opacity: 0; } to { opacity: 1; } }
/* The portrait crop stays above a flowing reading area. Both the poster and
   video dissolve into the same navy field, including no-JavaScript mode. */
@media (max-width: 1100px), (max-height: 600px) {
  body { --scene-height: 100svh; }
  body::before, .landing-video {
    position: absolute;
    inset: 64px 0 auto;
    height: calc(var(--scene-height) - 64px);
    mask-image: linear-gradient(180deg, transparent, #000 48px, #000 54%, transparent 100%);
  }
  body::after {
    position: absolute;
    background: linear-gradient(180deg,
      transparent calc(var(--scene-height) * .60),
      rgb(3 10 22 / 84%) calc(var(--scene-height) * .70),
      rgb(3 10 22 / 98%) calc(var(--scene-height) * .82),
      var(--midnight) var(--scene-height));
  }
  .landing-ui::before { display: none; }
  .landing-ui { --edge: 20px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .landing-content { column-gap: 16px; }
  .landing-copy {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    justify-self: end;
    width: min(100%, 460px);
    margin-top: calc(68svh - 44px);
    font-size: 16px;
  }
  .landing-copy .copy-lead { font-size: 24px; }
}
@media (max-height: 600px) and (min-width: 768px) {
  body { --scene-height: max(100svh, calc(56.25vw + 64px)); }
  .landing-copy { margin-top: calc(var(--scene-height) - 88px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body:has(.landing-ui) .product-footer { flex: none; background: linear-gradient(180deg, transparent, #030a16ba); text-shadow: 0 1px 3px #000; }

.wallet-status{max-width:38rem;white-space:normal;font:14px/1.5 system-ui;text-align:center;color:#eee;margin:16px auto 0}.wallet-token{font:14px/1.5 system-ui;color:#eee}.wallet-token[hidden]{display:none}.wallet-token input{max-width:12rem;background:#111;color:#fff;border:1px solid #888;padding:8px;margin:8px}
