:root {
  --void: #17191e;
  --monument: #23252a;
  --signal: #f7f6f1;
  --muted: #979ba4;
  --hairline: rgba(247, 246, 241, 0.12);
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --counter-x: 0px;
  --counter-y: 0px;
  color-scheme: dark;
  font-family: "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--void);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--void);
  color: var(--signal);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--void);
  background: var(--signal);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.experience {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 46%, rgba(247, 246, 241, 0.035), transparent 34%),
    var(--void);
}

.experience::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(247, 246, 241, 0.045);
}

.ambient,
.grid,
.pointer-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: -1;
  overflow: hidden;
}

.grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(247, 246, 241, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 246, 241, 0.018) 1px, transparent 1px);
  background-size: clamp(44px, 5vw, 76px) clamp(44px, 5vw, 76px);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.pointer-light {
  opacity: 0;
  background: radial-gradient(360px circle at var(--pointer-x) var(--pointer-y), rgba(247, 246, 241, 0.055), transparent 64%);
  transition: opacity 500ms ease;
}

.has-pointer .pointer-light {
  opacity: 1;
}

.beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent 5%, rgba(247, 246, 241, 0.22) 50%, transparent 95%);
  transform-origin: center;
}

.beam--north {
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
}

.beam--south {
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(0);
}

.is-ready .beam--north {
  animation: beam-north 1600ms 80ms cubic-bezier(.16, 1, .3, 1) both;
}

.is-ready .beam--south {
  animation: beam-south 1600ms 220ms cubic-bezier(.16, 1, .3, 1) both;
}

.topbar,
.footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.system-label,
.edition,
.status,
.language-toggle {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.system-label,
.edition {
  color: rgba(247, 246, 241, 0.43);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.15rem 0.7rem 0.7rem;
  border: 0;
  color: rgba(247, 246, 241, 0.42);
  background: transparent;
  cursor: pointer;
}

.language-toggle [data-language-option="en"] {
  color: var(--signal);
}

[data-language="es"] .language-toggle [data-language-option="en"] {
  color: rgba(247, 246, 241, 0.42);
}

[data-language="es"] .language-toggle [data-language-option="es"] {
  color: var(--signal);
}

.toggle-divider {
  display: block;
  width: 1.7rem;
  height: 1px;
  background: var(--hairline);
}

.language-toggle:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 6px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-height: 0;
  padding: clamp(1rem, 3vh, 2.75rem) 0;
}

.mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(94vw, 1180px);
  height: clamp(260px, 48vh, 520px);
  perspective: 1100px;
}

.monument,
.wordmark {
  position: absolute;
  overflow: visible;
  will-change: transform, opacity, filter;
}

.monument {
  width: min(82vmin, 790px);
  max-width: 76vw;
  fill: var(--monument);
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(.78);
  transition:
    opacity 1200ms 340ms ease,
    filter 1700ms 220ms cubic-bezier(.16, 1, .3, 1),
    transform 1700ms 220ms cubic-bezier(.16, 1, .3, 1);
}

.wordmark {
  width: min(91vw, 1080px);
  fill: var(--signal);
  transform: translate3d(var(--counter-x), var(--counter-y), 20px);
  filter: drop-shadow(0 12px 42px rgba(0, 0, 0, 0.18));
}

.is-ready .monument {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1);
}

.word-block {
  opacity: 0;
  transition:
    opacity 900ms ease,
    transform 1200ms cubic-bezier(.16, 1, .3, 1);
}

.word-block--left {
  transform: translate(-58px, 0);
}

.word-block--right {
  transform: translate(34px, 0);
}

.is-ready .word-block {
  opacity: 1;
}

.is-ready .word-block--left {
  transform: translate(-24px, 0);
  transition-delay: 1050ms;
}

.is-ready .word-block--right {
  transform: translate(0, 0);
  transition-delay: 1050ms;
}

.axis-x {
  transform-box: fill-box;
  transform-origin: center;
}

.axis-segment {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 650ms ease,
    transform 1100ms cubic-bezier(.16, 1, .3, 1),
    filter 700ms ease;
}

.axis-segment--main {
  transform: translate(-18px, -18px) scale(.84);
}

.axis-segment--ne {
  transform: translate(16px, -16px) scale(.72);
}

.axis-segment--sw {
  transform: translate(-16px, 16px) scale(.72);
}

.is-ready .axis-segment {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.is-ready .axis-segment--main {
  transition-delay: 580ms;
}

.is-ready .axis-segment--ne {
  transition-delay: 760ms;
}

.is-ready .axis-segment--sw {
  transition-delay: 900ms;
}

.mark-stage:hover .axis-segment,
.is-pressed .axis-segment {
  filter: drop-shadow(0 0 7px rgba(247, 246, 241, 0.18));
}

.intersection-orbit {
  position: absolute;
  z-index: -1;
  width: clamp(88px, 9vw, 138px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 246, 241, 0.08);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.6);
}

.is-ready .intersection-orbit {
  animation: orbit 4200ms 1750ms cubic-bezier(.16, 1, .3, 1) infinite;
}

.statement {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  width: min(92vw, 880px);
  margin-top: clamp(-2.8rem, -4vh, -1rem);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1000ms 1900ms ease,
    transform 1100ms 1900ms cubic-bezier(.16, 1, .3, 1);
}

.is-ready .statement {
  opacity: 1;
  transform: translateY(0);
}

.thesis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.34em;
  row-gap: 0.05em;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 3.25rem);
  font-weight: 350;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.thesis strong {
  font-weight: 720;
}

.method {
  max-width: 48rem;
  margin: 0;
  color: rgba(247, 246, 241, 0.54);
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  font-weight: 430;
  line-height: 1.5;
  letter-spacing: 0.105em;
}

.footer {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 900ms 2450ms ease,
    transform 900ms 2450ms ease;
}

.is-ready .footer {
  opacity: 1;
  transform: translateY(0);
}

.status {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin: 0 0 .25rem .25rem;
  padding: .35rem .15rem;
  overflow: visible;
  border: 0;
  color: var(--signal);
  background: transparent;
  box-shadow: none;
  font-size: .8rem;
  font-weight: 720;
}

.status::before {
  content: none;
}

.status [data-copy="coming"] {
  position: relative;
  isolation: isolate;
  display: inline-block;
  opacity: .6;
  will-change: opacity, filter, text-shadow;
  animation: status-glow 2250ms 2800ms cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

.status [data-copy="coming"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: calc(100% + 1.6rem);
  height: 1.7rem;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .3), rgba(247, 246, 241, .1) 44%, transparent 74%);
  filter: blur(5px);
  transform: translate(-50%, -50%) scale(.92);
  will-change: opacity, transform;
  animation: status-aura 2250ms 2800ms cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--signal);
  opacity: .08;
  will-change: opacity, filter, box-shadow;
  animation: status-beacon 2250ms 2800ms cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

@keyframes beam-north {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scaleX(0); }
  34% { opacity: .8; }
  72% { opacity: .2; transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
}

@keyframes beam-south {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
  34% { opacity: .8; }
  72% { opacity: .2; transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
}

@keyframes orbit {
  0% { opacity: 0; transform: scale(.62); }
  14% { opacity: .55; }
  58% { opacity: .1; }
  100% { opacity: 0; transform: scale(2.35); }
}

@keyframes status-glow {
  from {
    opacity: .6;
    filter: brightness(.78);
    text-shadow: 0 0 1px rgba(247, 246, 241, .06);
  }
  to {
    opacity: 1;
    filter: brightness(1.55);
    text-shadow:
      0 0 5px rgba(255, 255, 255, .92),
      0 0 14px rgba(247, 246, 241, .58),
      0 0 24px rgba(247, 246, 241, .3);
  }
}

@keyframes status-aura {
  from {
    opacity: .02;
    transform: translate(-50%, -50%) scale(.92);
  }
  to {
    opacity: .56;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes status-beacon {
  from {
    opacity: .08;
    filter: brightness(.45);
    box-shadow: 0 0 0 rgba(247, 246, 241, 0);
  }
  to {
    opacity: 1;
    filter: brightness(1.6);
    box-shadow:
      0 0 6px 1px rgba(255, 255, 255, .86),
      0 0 16px 3px rgba(247, 246, 241, .38);
  }
}

@media (max-width: 700px) {
  .experience {
    padding: max(1.2rem, env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left));
  }

  .system-label,
  .edition,
  .status,
  .language-toggle {
    font-size: 0.57rem;
  }

  .mark-stage {
    width: 100%;
    height: min(43vh, 390px);
  }

  .monument {
    width: min(94vw, 520px);
    max-width: none;
  }

  .wordmark {
    width: 101vw;
  }

  .statement {
    gap: 0.9rem;
    margin-top: -1.1rem;
  }

  .thesis {
    display: grid;
    gap: 0.07em;
    font-size: clamp(1.72rem, 8vw, 2.4rem);
  }

  .method {
    max-width: 24rem;
    font-size: 0.67rem;
    line-height: 1.55;
  }

  .footer {
    align-items: flex-end;
  }

  .status {
    margin: 0 0 .2rem .15rem;
    padding: .28rem .1rem;
    font-size: .72rem;
  }

  .edition {
    max-width: 9.5rem;
    text-align: right;
    line-height: 1.5;
  }
}

@media (max-height: 680px) and (min-width: 701px) {
  .mark-stage {
    height: 46vh;
  }

  .monument {
    width: min(72vmin, 600px);
  }

  .statement {
    margin-top: -2rem;
  }
}

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

  .beam,
  .intersection-orbit {
    display: none;
  }

  .status [data-copy="coming"] {
    opacity: 1;
    filter: none;
    text-shadow:
      0 0 5px rgba(255, 255, 255, .85),
      0 0 14px rgba(247, 246, 241, .52);
  }

  .status [data-copy="coming"]::before {
    opacity: .55;
    transform: translate(-50%, -50%) scale(1);
  }

  .status-dot {
    opacity: 1;
    filter: none;
    box-shadow: 0 0 9px 2px rgba(247, 246, 241, .52);
  }


  .monument,
  .word-block,
  .axis-segment,
  .statement,
  .footer {
    opacity: 1;
    filter: none;
  }

  .monument {
    transform: scale(1);
  }

  .word-block--left {
    transform: translate(-24px, 0);
  }

  .word-block--right,
  .axis-segment,
  .statement,
  .footer {
    transform: none;
  }
}
