:root {
  color-scheme: dark;
  --ink: #050708;
  --paper: #eeeee8;
  --muted: rgba(238, 238, 232, 0.5);
  --faint: rgba(238, 238, 232, 0.15);
  --cyan: #78c5d0;
  --amber: #c88b58;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  color: var(--paper);
  font-family: "Helvetica Neue", "Neue Haas Grotesk Text Pro", "Inter", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 45%, rgba(24, 81, 96, 0.105), transparent 34%),
    radial-gradient(circle at 93% 78%, rgba(101, 65, 39, 0.075), transparent 29%),
    linear-gradient(135deg, #090c0e 0%, #050708 55%, #080b0d 100%);
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.96) 0%, rgba(5, 7, 8, 0.77) 30%, rgba(5, 7, 8, 0.08) 62%, rgba(5, 7, 8, 0.2) 100%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.42) 116%);
}

.grain {
  position: absolute;
  inset: -50%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  animation: grain-shift 0.3s steps(2) infinite;
}

.masthead,
.footer {
  position: absolute;
  z-index: 10;
  right: clamp(1.5rem, 3.5vw, 4.5rem);
  left: clamp(1.5rem, 3.5vw, 4.5rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.masthead {
  top: clamp(1.5rem, 3.5vw, 3.5rem);
}

.footer {
  bottom: clamp(1.5rem, 3vw, 3rem);
  color: var(--muted);
  letter-spacing: 0.11em;
}

.wordmark {
  display: grid;
  width: min-content;
  line-height: 1.08;
  letter-spacing: 0.17em;
}

.wordmark span:last-child {
  color: var(--muted);
}

.status {
  color: rgba(238, 238, 232, 0.34);
}

.footer a {
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 400ms ease;
}

.footer a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0.2);
  transform-origin: right;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--paper);
}

.footer a:hover::after,
.footer a:focus-visible::after {
  transform: scaleX(1);
}

.statement {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: clamp(1.5rem, 8.3vw, 10.5rem);
  width: min(64rem, calc(100vw - 3rem));
  transform: translateY(-47%);
}

.eyebrow {
  margin: 0 0 clamp(1.35rem, 2.5vw, 2.4rem);
  color: rgba(210, 224, 225, 0.45);
  font-size: clamp(0.68rem, 0.7vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.175em;
  text-transform: uppercase;
  opacity: 0;
  animation: reveal 1.4s 0.35s forwards;
}

h1 {
  margin: 0;
  font-size: clamp(3.9rem, 7.8vw, 9.4rem);
  font-weight: 300;
  letter-spacing: -0.057em;
  line-height: 0.87;
}

h1 span {
  display: block;
  width: max-content;
  opacity: 0;
  transform: translateY(0.42em);
  animation: title-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 span:first-child {
  color: rgba(238, 238, 232, 0.98);
  animation-delay: 0.15s;
}

h1 span:last-child {
  color: rgba(238, 238, 232, 0.62);
  animation-delay: 0.3s;
}

.positioning {
  display: grid;
  gap: 0.24rem;
  max-width: 35rem;
  margin: clamp(1.9rem, 3vw, 3.2rem) 0 0 0.1em;
  color: rgba(238, 238, 232, 0.41);
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.5;
  opacity: 0;
  animation: reveal 1.8s 1.55s forwards;
}

.positioning strong {
  margin-top: 0.45rem;
  color: rgba(224, 230, 226, 0.75);
  font-weight: 400;
}

.data-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  animation: field-in 2.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#execution-field {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.48) 0%, transparent 45%, transparent 84%, rgba(5, 7, 8, 0.42) 100%),
    radial-gradient(circle at 78% 49%, transparent 0 19%, rgba(5, 7, 8, 0.24) 66%, rgba(5, 7, 8, 0.58) 100%);
}

.field-register {
  position: absolute;
  right: clamp(1.5rem, 4.3vw, 5.3rem);
  bottom: clamp(5rem, 8vw, 8rem);
  display: flex;
  gap: 1.6rem;
  align-items: center;
  color: rgba(220, 229, 227, 0.28);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.register-state {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.register-state i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(116, 197, 208, 0.85);
  box-shadow: 0 0 0.8rem rgba(116, 197, 208, 0.8);
  animation: status-pulse 2.8s ease-in-out infinite;
}

@keyframes title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@keyframes field-in {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-3%, 2%); }
  75% { transform: translate(3%, 4%); }
  100% { transform: translate(-2%, -4%); }
}

@media (max-width: 760px) {
  .stage::before {
    background:
      linear-gradient(180deg, rgba(5, 7, 8, 0.12), rgba(5, 7, 8, 0.5) 72%),
      linear-gradient(90deg, rgba(5, 7, 8, 0.48), transparent 100%);
  }

  .statement {
    top: 46%;
    left: 1.5rem;
    width: calc(100vw - 3rem);
  }

  h1 {
    font-size: clamp(3.45rem, 16.5vw, 6.2rem);
    line-height: 0.9;
  }

  h1 span {
    width: auto;
  }

  .eyebrow {
    max-width: 18rem;
    line-height: 1.65;
  }

  .positioning {
    max-width: 19rem;
    margin-top: 1.8rem;
  }

  .data-visual {
    left: 0;
    width: 100%;
    opacity: 1;
  }

  #execution-field {
    filter: brightness(1.42) saturate(1.08);
  }

  .visual-vignette {
    background:
      linear-gradient(180deg, rgba(5, 7, 8, 0.04), rgba(5, 7, 8, 0.25) 78%),
      radial-gradient(circle at 68% 48%, transparent 0 25%, rgba(5, 7, 8, 0.16) 76%);
  }

  .field-register {
    display: none;
  }

  .footer span {
    display: none;
  }

  .footer {
    justify-content: flex-end;
  }

  .status {
    letter-spacing: 0.11em;
  }
}

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