@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #050608;
  --text: #f2f3f1;
  --muted: #8d9199;
  --faint: #555961;
  --border: rgba(242, 243, 241, 0.15);
  --border-hover: rgba(242, 243, 241, 0.5);
  --glow: rgba(242, 243, 241, 0.08);

  /* Pixel-accurate positions from wordmark.png analysis (1298px wide) */
  --quetta-left: 36.9%;
  --quetta-center: 56.7%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}


/* ===== HERO ===== */

.hero {
  position: absolute;
  left: 13.7vw;
  top: 50%;
  width: min(64vw, 985px);
  transform: translateY(-50%);
  animation: hero-settle 22s cubic-bezier(.2,.7,.2,1) both;
}


/* ===== LOGO ===== */

.logo {
  position: relative;
  width: 100%;
  aspect-ratio: 1298 / 419;
}

.piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.monolith {
  clip-path: inset(100% 0 0 0);
  animation:
    monolith-emerge 2.4s 1.35s cubic-bezier(.12,.52,.18,1) forwards;
}

.divider {
  transform-origin: 50% 100%;
  transform: scaleY(0);
  opacity: 0;
  animation:
    divider-emerge 1.1s .95s cubic-bezier(.12,.52,.18,1) forwards;
}

.line {
  clip-path: inset(100% 0 0 0);
}

.line1 {
  animation:
    line-emerge 1.35s 3.15s cubic-bezier(.12,.52,.18,1) forwards,
    line-breathe 1.8s 12s ease-in-out 1;
}

.line2 {
  animation:
    line-emerge 1.35s 3.60s cubic-bezier(.12,.52,.18,1) forwards;
}

.line3 {
  animation:
    line-emerge 1.35s 4.05s cubic-bezier(.12,.52,.18,1) forwards;
}


/* ===== WORDMARK ===== */

.wordmark-unified {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.wordmark-quetta {
  clip-path: polygon(
    0 0,
    77% 0,
    77% 100%,
    0 100%
  );

  opacity: 0;

  animation:
    wordmark-emerge 1.25s 6.0s cubic-bezier(.16,.62,.2,1) forwards;
}

.wordmark-lith {
  clip-path: polygon(
    77% 0,
    100% 0,
    100% 100%,
    77% 100%
  );

  opacity: 0;

  animation:
    wordmark-emerge 1.25s 6.0s cubic-bezier(.16,.62,.2,1) forwards,
    lith-fade-out 1.0s 8.5s ease-in-out forwards,
    lith-fade-in 1.0s 11.5s ease-in-out forwards;
}


/* ===== NONILLION SUBTITLE ===== */

.nonillion-wrap {
  position: absolute;
  left: var(--quetta-left);
  bottom: -32px;
  transform: none;
  pointer-events: none;
}

.nonillion-text {
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0;
  white-space: nowrap;

  animation:
    nonillion-reveal 1.0s 9.7s cubic-bezier(.16,.62,.2,1) forwards,
    nonillion-fade 1.0s 11.5s ease-in-out forwards;
}

.nonillion-text sup {
  position: relative;
  top: -0.25em;
  font-size: 0.7em;
  letter-spacing: 0;
}


/* ===== FINAL SEQUENCE ===== */

.final-sequence {
  margin-left: var(--quetta-left);
  margin-top: 55px;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tagline {
  opacity: 0;
  transform: translateY(2px);
  white-space: nowrap;
}

.tagline + .tagline {
  margin-top: 18px;
}

.tagline-1 {
  color: var(--text);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.32em;

  animation:
    text-reveal 1.2s 13.5s cubic-bezier(.16,.62,.2,1) forwards;
}

.tagline-2 {
  color: var(--muted);
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 400;
  letter-spacing: 0.06em;

  animation:
    text-reveal 1.2s 15.0s cubic-bezier(.16,.62,.2,1) forwards;
}

.tagline-3 {
  color: var(--text);
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: 0.18em;

  animation:
    text-reveal 1.2s 16.5s cubic-bezier(.16,.62,.2,1) forwards;
}

.tagline sup {
  position: relative;
  top: -0.25em;
  font-size: 0.65em;
  letter-spacing: 0;
}


/* ===== CTA ===== */

.cta-button {
  position: absolute;
  top: 7.5vh;
  right: 6vw;
  padding: 14px 32px;

  color: var(--text);
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-decoration: none;

  border: none;

  opacity: 0;
  transform: translateY(4px);

  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    color 0.4s ease;

  animation:
    cta-reveal 1.2s 18.0s cubic-bezier(.16,.62,.2,1) forwards,
    cta-pulse 3.6s 20.0s ease-in-out infinite;

  z-index: 20;
}

.cta-button:hover {
  color: #ffffff;
}

.cta-button:active {
  opacity: 0.85;
}


/* ===== ACQUISITION ===== */

.acquisition {
  position: absolute;
  right: 6vw;
  bottom: 4.5vh;
  text-align: right;
}

.domain {
  margin-bottom: 18px;

  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;

  opacity: 0;

  animation:
    text-reveal 1.2s 18.0s cubic-bezier(.16,.62,.2,1) forwards;
}

.label {
  margin-bottom: 7px;

  color: #8d9199;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;

  opacity: 0;

  animation:
    text-reveal 1.2s 18.8s cubic-bezier(.16,.62,.2,1) forwards;
}


/* ===== FOOTER ===== */

.footer {
  position: absolute;
  left: 3vw;
  bottom: 2.5vh;

  color: var(--faint);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .22em;

  opacity: 0;

  animation:
    soft-reveal 1.2s 18.0s both cubic-bezier(.16,.62,.2,1);
}


/* ===== SCREEN READER ONLY ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===== KEYFRAMES ===== */

@keyframes divider-emerge {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  30% {
    opacity: .35;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes monolith-emerge {
  0% {
    clip-path: inset(100% 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes line-emerge {
  0% {
    clip-path: inset(100% 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes line-breathe {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .94;
  }
}

@keyframes wordmark-emerge {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lith-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes lith-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes nonillion-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nonillion-fade {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-reveal-center {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: none;
  }

  50% {
    opacity: 0.25;
    text-shadow: 0 0 18px var(--glow);
  }
}

@keyframes soft-reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-settle {
  from {
    opacity: .99;
  }

  to {
    opacity: 1;
  }
}

@keyframes acquisition-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}


/* ===== RETURN VISIT — SKIP INTRO ANIMATION ===== */

.skip-animation .hero {
  animation: none;
}

.skip-animation .monolith {
  animation: none;
  clip-path: inset(0 0 0 0);
}

.skip-animation .divider {
  animation: none;
  transform: scaleY(1);
  opacity: 1;
}

.skip-animation .line {
  animation: none;
  clip-path: inset(0 0 0 0);
}

.skip-animation .wordmark-quetta {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.skip-animation .wordmark-lith {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.skip-animation .nonillion-text {
  animation: none;
  opacity: 0;
}

.skip-animation .tagline {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.skip-animation .cta-button {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.skip-animation .domain {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.skip-animation .label {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.skip-animation .footer {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}


/* ===== RESPONSIVE ===== */

@media screen and (max-width: 768px) {

  .hero {
    left: 50vw;
    width: 92vw;
    transform: translate(-50%, -50%);
  }

  .logo {
    aspect-ratio: 1298 / 419;
  }

  .nonillion-wrap {
    bottom: -24px;
  }

  .nonillion-text {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .final-sequence {
    margin-top: 45px;
  }

  .tagline + .tagline {
    margin-top: 14px;
  }

  .tagline-1 {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .tagline-2 {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .tagline-3 {
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .cta-button {
    top: 4vh;
    right: 5vw;
    padding: 10px 20px;
    font-size: 9px;
    letter-spacing: 0.2em;

    animation:
      cta-reveal 1.2s 18.0s cubic-bezier(.16,.62,.2,1) forwards,
      cta-pulse 3.6s 20.0s ease-in-out infinite;
  }

  .acquisition {
    right: 5vw;
    bottom: 3.5vh;
  }

  .domain {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .label {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .footer {
    left: 5vw;
    bottom: 2vh;
    font-size: 7px;
  }
}


@media screen and (max-width: 480px) {

  .hero {
    width: 94vw;
  }

  .nonillion-wrap {
    bottom: -20px;
  }

  .nonillion-text {
    font-size: 10px;
  }

  .final-sequence {
    margin-top: 38px;
  }

  .tagline + .tagline {
    margin-top: 12px;
  }

  .tagline-1 {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .tagline-2 {
    font-size: 11px;
  }

  .tagline-3 {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .cta-button {
    top: 3vh;
    right: 50%;
    padding: 8px 16px;
    font-size: 8px;
    letter-spacing: 0.16em;

    animation:
      cta-reveal-center 1.2s 18.0s cubic-bezier(.16,.62,.2,1) forwards,
      cta-pulse 3.6s 20.0s ease-in-out infinite;
  }

  .label {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
}