@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto Condensed Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/roboto-condensed-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Roboto Condensed Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/roboto-condensed-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: "Inter Variable", Arial, sans-serif;
  color: #fff;
  background: #05070b;
  font-synthesis: none;
  --acid: #315cff;
  --line: rgba(255, 255, 255, 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  overflow: hidden;
  background: #05070b;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

.stage {
  --pointer-x: 54%;
  --pointer-y: 43%;
  --drift-x: 0px;
  --drift-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #05070b;
  touch-action: pan-y;
}

.stage::before {
  position: absolute;
  z-index: 8;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  content: "";
}

.stage__media,
.stage__scene,
.stage__scene img,
.stage__wash,
.stage__grain,
.stage__scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage__media {
  z-index: -5;
  overflow: hidden;
  background: #05070b;
}

.stage__scene {
  z-index: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 0 100%);
}

.stage__scene.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  clip-path: inset(0);
}

.stage__scene.is-exiting {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  clip-path: inset(0);
}

.is-ready .stage__scene.is-active {
  animation: scene-reveal 920ms steps(12, end) both;
}

.stage__scene img {
  object-fit: cover;
  object-position: var(--scene-position, 50% 50%);
  transform: scale(1.045) translate3d(var(--drift-x), var(--drift-y), 0);
  filter: saturate(0.82) contrast(1.1) brightness(0.63);
  transition: filter 900ms ease;
}

.stage__scene.is-active img {
  animation: scene-breathe 14s ease-in-out infinite alternate;
}

.stage__wash {
  z-index: -4;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(49, 92, 255, 0.3), transparent 0 17rem),
    linear-gradient(90deg, rgba(3, 5, 9, 0.9) 0%, rgba(3, 5, 9, 0.32) 56%, rgba(3, 5, 9, 0.74) 100%),
    linear-gradient(0deg, rgba(3, 5, 9, 0.94) 0%, transparent 46%, rgba(3, 5, 9, 0.38) 100%);
  transition: opacity 700ms ease;
}

.stage__grain {
  z-index: -2;
  opacity: 0.12;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.32) 0 0.6px, transparent 0.8px 3px),
    repeating-radial-gradient(circle at 71% 62%, rgba(255, 255, 255, 0.22) 0 0.5px, transparent 0.7px 4px);
  background-size: 11px 13px, 17px 19px;
  mix-blend-mode: overlay;
}

.stage__scan {
  z-index: -1;
  opacity: 0.17;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.08) 6px);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.stage__transition {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -9vw;
  width: 8vw;
  min-width: 48px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(49, 92, 255, 0.64), rgba(255, 255, 255, 0.88), transparent);
  filter: blur(10px);
}

.stage--changing .stage__transition {
  animation: transition-scan 920ms steps(12, end) both;
}

.stage__beam {
  position: absolute;
  z-index: -3;
  top: -25vh;
  width: 22vw;
  height: 120vh;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(78, 108, 255, 0.5), rgba(49, 92, 255, 0.04) 58%, transparent 82%);
  filter: blur(18px);
  transform-origin: 50% 0;
  transition: opacity 700ms ease;
}

.stage__beam--left {
  left: 12vw;
  transform: rotate(-18deg);
}

.stage__beam--right {
  right: 8vw;
  transform: rotate(21deg);
}

.topline {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  margin: 0 28px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 700ms ease 100ms, transform 700ms ease 100ms;
}

.is-ready .topline {
  opacity: 1;
  transform: none;
}

.wordmark {
  width: max-content;
  font-family: "Roboto Condensed Variable", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.wordmark span {
  color: var(--acid);
}

.topline__state {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(49, 92, 255, 0.65);
  animation: live-pulse 2.2s ease-out infinite;
}

.scene-switch {
  justify-self: end;
  display: inline-flex;
  gap: 13px;
  align-items: center;
  min-width: 92px;
  padding: 10px 0 10px 18px;
  border-left: 1px solid var(--line);
  outline: 0;
  cursor: pointer;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-switch i {
  display: block;
  width: 27px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
}

.scene-switch i::after {
  display: block;
  width: 8px;
  height: 8px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 250ms ease, background 250ms ease;
}

.scene-switch[aria-pressed="true"] i::after {
  transform: translateX(13px);
  background: var(--acid);
}

.scene-rail {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 148px;
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 10px;
  width: min(45vw, 590px);
}

.scene-rail__item {
  --progress-duration: 5200ms;
  display: grid;
  gap: 8px;
  padding: 9px 0;
  outline: 0;
  cursor: pointer;
  background: transparent;
  text-align: left;
}

.scene-rail__track {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.scene-rail__track i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

.scene-rail__item.is-active.is-progressing .scene-rail__track i {
  animation: scene-progress var(--progress-duration) linear both;
}

.scene-rail__number {
  color: rgba(255, 255, 255, 0.48);
  font-family: "Roboto Condensed Variable", sans-serif;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  transition: color 220ms ease;
}

.scene-rail__item:hover .scene-rail__number,
.scene-rail__item.is-active .scene-rail__number {
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(1050px, calc(100vw - 56px));
  margin: 0 28px;
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.hero-copy__index {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 28px;
  font-family: "Roboto Condensed Variable", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-copy__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  overflow: hidden;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy__kicker::before {
  width: 42px;
  height: 2px;
  background: var(--acid);
  content: "";
}

.hero-copy__kicker span,
.hero-copy h1,
.hero-copy__lead {
  opacity: 0;
  transform: translateY(34px);
}

.is-ready .hero-copy__kicker span {
  opacity: 1;
  transform: none;
  transition: opacity 650ms ease 320ms, transform 650ms ease 320ms;
}

.hero-copy h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Roboto Condensed Variable", sans-serif;
  font-size: clamp(4.7rem, 10.8vw, 10.5rem);
  font-weight: 760;
  line-height: 0.74;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-shadow: 0 3px 35px rgba(0, 0, 0, 0.36);
}

.hero-copy h1 em {
  margin-left: 0.31em;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.94);
}

.is-ready .hero-copy h1 {
  opacity: 1;
  transform: none;
  transition: opacity 850ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms, transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms;
}

.hero-copy__lead {
  max-width: 520px;
  margin: clamp(1.8rem, 4vh, 3rem) 0 0 clamp(2rem, 15vw, 12rem);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 440;
  line-height: 1.45;
  text-wrap: balance;
}

.is-ready .hero-copy__lead {
  opacity: 0.88;
  transform: none;
  transition: opacity 700ms ease 670ms, transform 700ms ease 670ms;
}

.contact-dock {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(165px, 0.75fr) minmax(0, 3fr) minmax(100px, 0.45fr);
  min-height: 104px;
  margin: 0 28px 24px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.6);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease 820ms, transform 700ms ease 820ms;
}

.is-ready .contact-dock {
  opacity: 1;
  transform: none;
}

.contact-dock__label,
.contact-dock__time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
}

.contact-dock__label {
  border-right: 1px solid var(--line);
}

.contact-dock__time {
  align-items: flex-end;
  border-left: 1px solid var(--line);
}

.contact-dock__label span,
.contact-dock__time span,
.contact-link span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-dock__label strong,
.contact-dock__time strong {
  font-family: "Roboto Condensed Variable", sans-serif;
  font-size: 1.2rem;
  font-weight: 660;
  text-transform: uppercase;
}

.contact-dock__links {
  display: grid;
}

.contact-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 22px;
  overflow: hidden;
  transition: background 260ms ease;
}

.contact-link::before {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
  content: "";
}

.contact-link:hover {
  background: rgba(49, 92, 255, 0.14);
}

.contact-link:hover::before {
  transform: scaleX(1);
}

.contact-link strong {
  max-width: calc(100% - 92px);
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-link small {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--acid);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.interaction-note {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 211px;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-switch:focus-visible,
.scene-rail__item:focus-visible,
.contact-link:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.stage--live .stage__scene.is-active img {
  filter: saturate(1.08) contrast(1.12) brightness(0.84);
}

.stage--live .stage__wash {
  opacity: 0.66;
}

.stage--live .stage__beam {
  opacity: 0.72;
  animation: beam-sweep 5s ease-in-out infinite alternate;
}

.stage--pulse .stage__wash {
  animation: touch-flash 700ms ease-out;
}

@keyframes scene-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes transition-scan {
  0% { left: -9vw; opacity: 0; }
  12% { opacity: 0.72; }
  84% { opacity: 0.66; }
  100% { left: 102vw; opacity: 0; }
}

@keyframes scene-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes scene-breathe {
  from { transform: scale(1.045) translate3d(var(--drift-x), var(--drift-y), 0); }
  to { transform: scale(1.085) translate3d(var(--drift-x), var(--drift-y), 0); }
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 9px rgba(49, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 92, 255, 0); }
}

@keyframes beam-sweep {
  from { transform: rotate(-17deg) translateX(-5vw); }
  to { transform: rotate(18deg) translateX(7vw); }
}

@keyframes touch-flash {
  35% { opacity: 0.42; }
}

@media (max-width: 960px) {
  .topline,
  .hero-copy,
  .contact-dock {
    margin-right: 18px;
    margin-left: 18px;
  }

  .hero-copy {
    width: calc(100vw - 36px);
  }

  .hero-copy h1 {
    font-size: clamp(4.1rem, 13vw, 8.2rem);
  }

  .scene-rail {
    right: 18px;
    width: min(58vw, 520px);
  }

  .contact-dock {
    grid-template-columns: minmax(145px, 0.6fr) minmax(0, 2.4fr);
    margin-bottom: 18px;
  }

  .contact-dock__time {
    display: none;
  }

  .interaction-note {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    overflow-y: auto;
  }

  .stage {
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100svh;
  }

  .stage::before {
    border-width: 0 1px;
  }

  .stage__scene img {
    object-position: 50% 50%;
    transform: scale(1.025) translate3d(var(--drift-x), var(--drift-y), 0);
    filter: saturate(0.82) contrast(1.1) brightness(0.64);
  }

  .stage__scene.is-active img {
    animation-name: scene-breathe-mobile;
  }

  .stage__wash {
    background:
      radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(49, 92, 255, 0.3), transparent 0 12rem),
      linear-gradient(180deg, rgba(3, 5, 9, 0.6) 0%, rgba(3, 5, 9, 0.12) 29%, rgba(3, 5, 9, 0.78) 71%, #05070b 100%);
  }

  .stage__transition {
    width: 15vw;
  }

  .topline {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    margin: 0 16px;
  }

  .wordmark {
    font-size: 1.45rem;
  }

  .topline__state {
    display: none;
  }

  .scene-switch {
    min-width: 79px;
    padding-left: 14px;
  }

  .scene-rail {
    top: 78px;
    right: 16px;
    bottom: auto;
    left: 16px;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    width: auto;
  }

  .scene-rail__item {
    gap: 0;
    padding: 4px 0 12px;
  }

  .scene-rail__number {
    display: none;
  }

  .hero-copy {
    align-self: end;
    width: calc(100vw - 32px);
    margin: 0 16px;
    padding: 70px 0 22px;
  }

  .hero-copy__index {
    top: 28px;
  }

  .hero-copy__kicker {
    margin-bottom: 13px;
    font-size: 0.65rem;
  }

  .hero-copy__kicker::before {
    width: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(3.45rem, 17.5vw, 5.8rem);
    line-height: 0.78;
    letter-spacing: -0.068em;
  }

  .hero-copy h1 em {
    margin-left: 0;
    -webkit-text-stroke-width: 1px;
  }

  .hero-copy__lead {
    max-width: 31rem;
    margin: 22px 0 0;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .contact-dock {
    display: block;
    min-height: 0;
    margin: 0 12px max(12px, env(safe-area-inset-bottom));
    background: rgba(5, 7, 11, 0.78);
  }

  .contact-dock__label {
    display: none;
  }

  .contact-dock__links {
    display: grid;
  }

  .contact-link {
    min-height: 68px;
    padding: 12px 14px;
  }

  .contact-link span {
    margin-bottom: 5px;
    font-size: 0.54rem;
  }

  .contact-link strong {
    max-width: calc(100% - 86px);
    font-size: 0.74rem;
  }

  .contact-link small {
    right: 14px;
    font-size: 0.52rem;
  }
}

@media (max-height: 690px) and (min-width: 701px) {
  .topline {
    min-height: 64px;
  }

  .hero-copy {
    padding: 2rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 10vw, 7rem);
  }

  .hero-copy__lead {
    margin-top: 1.3rem;
  }

  .scene-rail {
    bottom: 116px;
  }

  .contact-dock {
    min-height: 82px;
    margin-bottom: 14px;
  }
}

@media (max-width: 700px) and (max-height: 650px) {
  .hero-copy {
    padding-top: 52px;
    padding-bottom: 16px;
  }

  .hero-copy__index {
    top: 16px;
  }

  .hero-copy__lead {
    display: none;
  }

  .contact-link {
    min-height: 58px;
  }
}

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

  .stage__scene img {
    transform: scale(1.04);
  }
}

@keyframes scene-breathe-mobile {
  from { transform: scale(1.025) translate3d(var(--drift-x), var(--drift-y), 0); }
  to { transform: scale(1.065) translate3d(var(--drift-x), var(--drift-y), 0); }
}
