@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/roboto-mono-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --story-offset: 0px;
  --viewport-height: 100svh;
  color-scheme: dark;
  --background: #030303;
  --ink: #f6f0e2;
  --muted: rgba(246, 240, 226, 0.88);
  --quiet: rgba(246, 240, 226, 0.68);
  --gold: #c99638;
  --cream: #f4efe3;
  --field: rgba(17, 17, 15, 0.72);
  --field-border: rgba(244, 239, 227, 0.28);
  background: var(--background);
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--background);
  scrollbar-width: none;
  overscroll-behavior-y: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  height: 100%;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  touch-action: none;
  background: var(--background);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

.story {
  background: var(--background);
  touch-action: pan-x;
  transform: translateY(var(--story-offset));
  transition: transform 700ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.story-section {
  position: relative;
  height: var(--viewport-height);
  overflow: hidden;
  background: var(--background);
  isolation: isolate;
}

.story-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  height: 1px;
  content: "";
  background: rgba(246, 240, 226, 0.08);
}

.scene {
  position: absolute;
  inset: 0 0 0 min(29.166vw, 420px);
  z-index: -4;
  display: block;
  overflow: hidden;
}

.scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.story-section:nth-child(2) .scene {
  opacity: 0.88;
}

.story-section:not(:nth-child(2)) .scene {
  opacity: 0.92;
}

.scene-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0) 62%, rgba(3, 3, 3, 0.94) 100%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.86) 46%, rgba(3, 3, 3, 0.12) 100%),
    rgba(3, 3, 3, 0.1);
}

.section-shell {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.brand {
  position: absolute;
  top: 36px;
  left: clamp(32px, 3.89vw, 56px);
  width: 284px;
  height: 80px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.story-copy {
  position: absolute;
  inset: 0;
}

.eyebrow,
.story-title,
.story-body,
.scene-cue {
  position: absolute;
  left: clamp(32px, 3.89vw, 56px);
  margin: 0;
}

.eyebrow {
  top: clamp(126px, 16.667svh, 150px);
  width: min(430px, calc(100vw - 112px));
  color: var(--gold);
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.36px;
}

.story-title {
  top: clamp(176px, 23.778svh, 214px);
  width: min(690px, calc(100vw - 112px));
  color: var(--ink);
  font-size: clamp(52px, 5.278vw, 76px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0;
}

.story-section:nth-child(2) .story-title {
  font-size: clamp(50px, 4.722vw, 68px);
  line-height: 1.15;
}

.story-body {
  top: clamp(334px, 45.556svh, 410px);
  width: min(620px, calc(100vw - 112px));
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
}

.scene-cue {
  top: clamp(450px, 59.556svh, 536px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: min(588px, calc(100vw - 112px));
  color: var(--quiet);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.scene-cue span {
  flex: 0 0 32px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(201, 150, 56, 0.95);
}

.scene-cue p {
  margin: 0;
}

.nurk-overlay {
  position: absolute;
  z-index: -3;
  display: block;
  pointer-events: none;
}

.nurk-overlay-two {
  top: 46.2%;
  right: 16%;
  width: 162px;
  height: 274px;
}

.nurk-overlay-three {
  right: 3.7%;
  bottom: 24.8%;
  width: 272px;
  height: 99px;
}

.language-picker {
  position: absolute;
  top: 42px;
  right: clamp(32px, 7.36vw, 106px);
  z-index: 30;
  width: 58px;
}

.language-trigger,
.language-option {
  position: relative;
  width: 58px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.language-trigger {
  z-index: 2;
  border: 1.5px solid rgba(212, 162, 58, 0.9);
  background: rgba(244, 239, 227, 0.07);
  box-shadow: 0 0 5px rgba(201, 150, 56, 0.24);
}

.language-trigger:focus-visible,
.language-option:focus-visible,
.progress-dot:focus-visible,
.signup input:focus-visible,
.signup button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.language-menu {
  position: absolute;
  top: -1px;
  left: 0;
  width: 58px;
  height: 90px;
  padding-top: 47px;
  border: 1px solid rgba(244, 239, 227, 0.34);
  border-radius: 12px;
  background: rgba(7, 7, 6, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.language-menu[hidden] {
  display: none;
}

.flag {
  position: absolute;
  top: 11px;
  left: 10px;
  display: none;
  width: 28px;
  height: 18px;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.24);
  border-radius: 2px;
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1.38px, #fff 1.38px 2.76px);
}

.flag-us i {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 9.7px;
  background:
    radial-gradient(circle, #fff 0 0.55px, transparent 0.7px) 0 0 / 3px 3px,
    #3c3b6e;
}

.flag-ru {
  background: linear-gradient(to bottom, #f6f6f0 0 33.33%, #1a3394 33.33% 66.66%, #bd1f21 66.66%);
}

[data-locale="en"] > .flag-us,
[data-locale="ru"] > .flag-ru {
  display: block;
}

.language-chevron {
  position: absolute;
  top: 18px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 150ms ease;
}

.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.story-progress {
  position: fixed;
  top: calc(50svh - 102px);
  right: min(4.86vw, 70px);
  z-index: 22;
  display: flex;
  width: 22px;
  height: 178px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.progress-rail {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 10px;
  width: 2px;
  border-radius: 999px;
  background: rgba(246, 240, 226, 0.16);
}

.progress-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.progress-dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: rgba(246, 240, 226, 0.23);
  transform: translate(-50%, -50%);
  transition: width 160ms ease, height 160ms ease, background-color 160ms ease;
}

.progress-dot.is-active::before {
  width: 14px;
  height: 14px;
  background: var(--gold);
}

.signup {
  position: absolute;
  bottom: clamp(40px, 14.667svh, 132px);
  left: clamp(32px, 3.89vw, 56px);
  z-index: 24;
  display: grid;
  width: 304px;
  grid-template-rows: 62px 62px;
  gap: 24px;
}

.signup input,
.signup button {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.signup input {
  min-width: 0;
  padding: 0 20px;
  border: 1px solid var(--field-border);
  outline: 0;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.signup input::placeholder {
  color: rgba(244, 239, 227, 0.58);
  opacity: 1;
}

.signup button {
  padding: 0 22px;
  cursor: pointer;
  border: 0;
  background: var(--cream);
  color: #11110f;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background-color 160ms ease, transform 160ms ease;
}

.signup button:hover {
  background: #fffaf0;
}

.signup button:active {
  transform: translateY(1px);
}

.form-message {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-height: 18px;
  margin: 0;
  color: rgba(246, 240, 226, 0.72);
  font-size: 12px;
  line-height: 18px;
}

.signup[data-state="invalid"] input {
  border-color: rgba(215, 92, 81, 0.92);
}

.signup[data-state="invalid"] .form-message {
  color: #e99489;
}

.signup[data-state="success"] input {
  border-color: rgba(201, 150, 56, 0.72);
}

.signup[data-state="success"] .form-message {
  color: #e2c37b;
}

.signup[data-state="pending"] {
  opacity: 0.72;
}

.signup input:disabled,
.signup button:disabled {
  cursor: wait;
}

.signup[data-state="error"] input {
  border-color: rgba(215, 92, 81, 0.92);
}

.signup[data-state="error"] .form-message {
  color: #e99489;
}

.success-toast {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 80;
  display: flex;
  align-items: center;
  width: 390px;
  min-height: 80px;
  padding: 14px 18px 14px 14px;
  gap: 14px;
  border: 1px solid rgba(201, 150, 56, 0.72);
  border-radius: 14px;
  background: #0c0b09;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.success-toast[hidden] {
  display: none;
}

.success-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.success-toast > img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.success-toast-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--ink);
}

.success-toast-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.success-toast-copy > span {
  color: rgba(246, 240, 226, 0.72);
  font-size: 12px;
  line-height: 16px;
}

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

@media (max-width: 760px) {
  .story-section {
    height: var(--viewport-height);
  }

  .scene {
    inset: 0;
    opacity: 1 !important;
  }

  .scene-wash {
    background:
      linear-gradient(180deg, rgba(3, 3, 3, 0) 66%, rgba(3, 3, 3, 0.78) 100%),
      linear-gradient(90deg, rgba(3, 3, 3, 0.7) 0%, rgba(3, 3, 3, 0.46) 42%, rgba(3, 3, 3, 0.12) 74%, rgba(3, 3, 3, 0.02) 100%),
      rgba(3, 3, 3, 0.05);
  }

  .brand {
    top: 24px;
    left: 24px;
    width: 220px;
    height: 62px;
  }

  .eyebrow,
  .story-title,
  .story-body,
  .scene-cue {
    left: 24px;
  }

  .eyebrow {
    top: 104px;
    width: calc(100vw - 72px);
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.3px;
  }

  .story-title,
  .story-section:nth-child(2) .story-title {
    top: 144px;
    width: calc(100vw - 48px);
    font-size: 38px;
    line-height: 44px;
  }

  .story-body {
    top: 248px;
    width: calc(100vw - 48px);
    font-size: 16px;
    line-height: 24px;
  }

  .scene-cue {
    top: 356px;
    width: calc(100vw - 74px);
    gap: 12px;
    font-size: 12px;
    line-height: 17px;
  }

  .scene-cue span {
    flex-basis: 26px;
    margin-top: 8px;
  }

  .nurk-overlay {
    display: none;
  }

  .language-picker {
    top: calc(36px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 50px;
  }

  .language-trigger,
  .language-option {
    width: 50px;
    height: 38px;
    border-radius: 10px;
  }

  .language-menu {
    width: 50px;
    height: 82px;
    padding-top: 43px;
    border-radius: 10px;
  }

  .flag {
    top: 10px;
    left: 8px;
    width: 24px;
    height: 16px;
  }

  .flag-us i {
    width: 10px;
    height: 8.6px;
  }

  .language-chevron {
    top: 16px;
    right: 7px;
    width: 6px;
    height: 6px;
  }

  .story-progress {
    top: calc(50svh - 75px);
    right: 7px;
  }

  .signup {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    width: min(342px, calc(100vw - 48px));
    grid-template-rows: 52px 54px;
    gap: 10px;
  }

  .signup input,
  .signup button {
    border-radius: 14px;
  }

  .signup input {
    padding: 0 16px;
    font-size: 16px;
  }

  .signup button {
    padding: 0 18px;
    font-size: 16px;
  }

  .form-message {
    right: 0;
    bottom: calc(100% + 5px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .success-toast {
    right: 24px;
    bottom: calc(188px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 48px);
    min-height: 76px;
    padding: 13px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .success-toast-copy strong {
    font-size: 13px;
    line-height: 16px;
  }

  .success-toast-copy > span {
    font-size: 11px;
    line-height: 15px;
  }
}

@media (max-width: 380px) {
  .story-title,
  .story-section:nth-child(2) .story-title {
    font-size: 36px;
    line-height: 41px;
  }

  .story-body {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
