:root {
  color-scheme: dark;
  --carbon: #101214;
  --graphite: #191c1f;
  --champagne: #c9a562;
  --ivory: #f4efe5;
  --muted: rgba(244, 239, 229, 0.7);
  --hairline: rgba(241, 220, 181, 0.48);
  --glass: rgba(22, 22, 21, 0.62);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
}

.scene,
.scene img,
.scene-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  overflow: hidden;
  background: var(--graphite);
}

.scene img {
  object-fit: cover;
  object-position: center center;
  animation: settle 1.25s cubic-bezier(.2, .75, .25, 1) both;
}

.scene-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.2), transparent 46%, rgba(5, 6, 7, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 34%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
}

.brand {
  position: absolute;
  top: 5.1%;
  left: 13.5%;
  display: flex;
  gap: 0.48rem;
  align-items: baseline;
  font-size: clamp(1.2rem, 1.95vw, 2rem);
  font-weight: 350;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
  animation: reveal 0.7s 0.12s ease-out both;
}

.brand-emphasis {
  font-weight: 680;
  letter-spacing: -0.045em;
}

.glass-plane {
  position: absolute;
  top: 18.4%;
  left: 17%;
  width: 59.6%;
  height: 54.8%;
  display: flex;
  align-items: center;
  margin: 0;
  border: 1px solid transparent;
  background: transparent;
  animation: reveal 0.85s 0.2s ease-out both;
}

.message {
  width: 86%;
  margin-left: 7.2%;
  transform: translateY(2.8%);
}

h1 {
  max-width: 28ch;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(2rem, 3.45vw, 3.65rem);
  font-weight: 330;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.56);
}

.rule {
  width: clamp(4rem, 5.3vw, 5.6rem);
  height: 1px;
  margin: clamp(2rem, 4.9vh, 3.2rem) 0 1.55rem;
  background: linear-gradient(90deg, var(--champagne), var(--hairline));
  box-shadow: 0 0 16px rgba(201, 165, 98, 0.18);
}

.message p {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(1rem, 1.55vw, 1.65rem);
  font-weight: 370;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

footer {
  position: absolute;
  right: 3.2%;
  bottom: 2.8%;
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

footer span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  margin-right: 1rem;
  vertical-align: -0.08rem;
  background: rgba(244, 239, 229, 0.32);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.018);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-aspect-ratio: 4 / 5) {
  body {
    overflow: auto;
  }

  .scene img {
    object-position: 68% center;
  }

  .scene-shade {
    background:
      linear-gradient(180deg, rgba(8, 9, 10, 0.36), rgba(8, 9, 10, 0.12) 26%, rgba(8, 9, 10, 0.68) 76%, rgba(8, 9, 10, 0.88)),
      linear-gradient(90deg, rgba(8, 9, 10, 0.4), transparent 70%);
  }

  .brand {
    top: max(1.5rem, env(safe-area-inset-top));
    left: 1.5rem;
    font-size: 1.35rem;
  }

  .glass-plane {
    top: auto;
    right: 1rem;
    bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.25rem));
    left: 1rem;
    width: auto;
    height: auto;
    min-height: 19rem;
    align-items: flex-end;
    padding: 2.2rem 1.6rem 2rem;
    border-color: rgba(241, 220, 181, 0.28);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(21, 22, 22, 0.89), rgba(42, 38, 31, 0.8));
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
  }

  .message {
    width: 100%;
    margin: 0;
    transform: none;
  }

  h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 9vw, 3.1rem);
    line-height: 1.12;
  }

  .rule {
    margin: 2rem 0 1.25rem;
  }

  .message p {
    font-size: 1rem;
  }

  footer {
    right: auto;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    left: 1.5rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  footer span:last-child,
  footer span:last-child::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
