html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #0b0a0c;
  --paper: #f3e9dd;
  --red: #f04448;
  --muted: #aaa7af;
  --line: #ffffff26;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  font:
    16px/1.55 Manrope,
    Arial,
    sans-serif;
  color: #f5f3f0;
  background: var(--bg);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body,
h1,
h2,
h3,
p,
figure,
ol {
  margin: 0;
}
body {
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1280px, 88%);
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  background: var(--paper);
  color: #171215;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand .brand-logo { display: block; width: 240px; height: auto; }
.brand-picture { display: block; }
.auth-logo .brand-logo { display: block; width: 230px; max-width: 100%; height: auto; }
@media (max-width: 600px) { .auth-header .brand-logo { width: 180px; } .auth-logo .brand-logo { width: 210px; } }
.brand svg {
  width: 29px;
  height: 29px;
  fill: var(--red);
}
.brand path {
  fill: none;
  stroke: #100a0c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand strong {
  font-size: 23px;
  letter-spacing: -0.08em;
  line-height: 1;
}
.brand small {
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}
.quiet,
.text-link {
  font-size: 14px;
}
.text-link:hover,
.quiet:hover {
  color: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b0a0c;
}
.hero-film {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg) url(./media/hero-desktop.webp) center / cover no-repeat;
  pointer-events: none;
  transition: opacity 950ms ease-in-out, visibility 0s 950ms;
}
.hero[data-phase="details"] .hero-film {
  opacity: 0;
  visibility: hidden;
}
.hero-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (orientation: portrait) {
  .hero-film {
    background-image: url(./media/hero-mobile.webp);
  }
}
.hero-scene {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: max(94px, calc(80px + env(safe-area-inset-top))) max(clamp(20px, 4.5vh, 60px), env(safe-area-inset-bottom));
}
.hero-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 0;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(58px, 6.4vw, 108px);
  line-height: 0.99;
}
.hero-copy h1 em {
  display: block;
  color: #ff7779;
  font-size: .86em;
  line-height: 1.12;
}
.hero-copy p {
  max-width: 39ch;
  margin-top: clamp(16px, 2.2vw, 32px);
  color: #c6bec2;
  line-height: 1.5;
  font-size: clamp(15px, 1.15vw, 19px);
}
.hero-orbit {
  position: relative;
  min-width: 0;
  align-self: stretch;
}
.hero-orbit canvas {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  height: 100%;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: clamp(12px, 2.7vw, 44px);
  margin: 0;
  padding-top: clamp(16px, 2.2vh, 32px);
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 7px;
}
.hero-stats dd {
  margin: 0;
  color: var(--paper);
  font-size: clamp(36px, 3.5vw, 57px);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: 1.06;
}
.hero-stats dd span { color: #ff7779; }
.hero-stats dt {
  color: #c6bec2;
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.35;
}
.hero-copy, .hero-orbit, .hero-stats {
  transition: opacity 850ms var(--ease) 620ms, transform 850ms var(--ease) 620ms;
}
.hero-copy { transition-delay: 700ms; }
.hero-stats { transition-delay: 780ms; }
.hero[data-phase="intro"] :is(.hero-copy, .hero-orbit, .hero-stats) {
  opacity: 0;
}
.hero[data-phase="intro"] :is(.hero-copy, .hero-stats) {
  transform: translateY(12px);
}
@media (max-width: 900px) and (orientation: portrait) {
  .hero-scene {
    padding-block: max(clamp(82px, 13vw, 122px), calc(72px + env(safe-area-inset-top))) max(20px, env(safe-area-inset-bottom));
  }
  .hero-story {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(116px, 1fr);
  }
  .hero-copy h1 { font-size: clamp(42px, 11vw, 70px); }
  .hero-copy p { margin-top: 12px; font-size: 15px; }
  .hero-orbit canvas { inset-inline: -5%; width: 110%; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .hero-stats {
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    padding-top: 14px;
  }
  .hero-stats dd { font-size: clamp(26px, 7vw, 40px); }
  .hero-stats > div { gap: 3px; }
}
@media (orientation: landscape) and (max-height: 550px) {
  .hero-scene { padding-block: max(70px, calc(58px + env(safe-area-inset-top))) 14px; }
  .hero-copy h1 { font-size: clamp(35px, 9.5vh, 54px); }
  .hero-copy p { font-size: 14px; margin-top: 10px; }
  .hero-stats { padding-top: 9px; gap: 10px; }
  .hero-stats dd { font-size: 26px; }
  .hero-stats > div { gap: 3px; }
}
@media (orientation: portrait) and (max-height: 650px) {
  .hero-scene { padding-block-start: max(72px, calc(62px + env(safe-area-inset-top))); }
  .hero-copy p { margin-top: 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce), (scripting: none) {
  .hero-film { display: none; }
  .hero[data-phase="intro"] :is(.hero-copy, .hero-orbit, .hero-stats) {
    opacity: 1;
    transform: none;
  }
}
.auth-art:before {
  content: '';
  position: absolute;
  inset: 12% 9%;
  background: radial-gradient(ellipse, #a3324325, transparent 64%);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #cfc2be;
  letter-spacing: 0.11em;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px #f0444866;
}
h1,
h2,
h3 {
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 0.98;
}
em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}
h1 {
  font-size: clamp(64px, 6.6vw, 112px);
  margin: 29px 0 24px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #170a0c;
  font-size: 15px;
  font-weight: 750;
  width: max-content;
  transition:
    background 0.22s,
    transform 0.28s var(--ease);
}
.cta:hover {
  background: #ff6365;
  transform: translateY(-2px);
}
.text-link,
.quiet {
  background: none;
  border: 0;
  padding: 0;
  line-height: 1.55;
}
.quiet {
  color: #b5a9ae;
}
.quiet u {
  text-underline-offset: 4px;
}
.auth-page {
  min-height: 100svh;
  background: radial-gradient(ellipse at 20% 60%, #29131b, transparent 58%), var(--bg);
}
.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1250px, 90%);
  margin: auto;
  padding: 28px 0;
}
.auth-grid {
  position: relative;
  isolation: isolate;
  width: min(1160px, 88%);
  margin: auto;
  min-height: calc(100svh - 94px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 0 70px;
}
.auth-art {
  position: absolute;
  z-index: -1;
  inset: 0 34% 0 -12%;
}
.auth-card {
  width: min(100%, 440px);
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #171318f0;
  box-shadow: 0 32px 100px #0004;
}
.auth-card h1 {
  font-size: clamp(40px, 4.4vw, 64px);
  margin: 22px 0 17px;
}
.auth-card em {
  color: #ee9294;
}
.auth-desc,
.auth-help {
  color: #c1b4bb;
  font-size: 14px;
}
.signup-credentials {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #45383c;
  border-radius: 10px;
}
.signup-credentials dt { color: #f3e8e4; font-weight: 700; font-size: 1rem; }
.signup-credentials > div + div { border-top: 1px solid #45383c; padding-top: 16px; }
.signup-credentials dd { margin: 4px 0 0; overflow-wrap: anywhere; font-family: monospace; font-size: 1rem; user-select: all; }
.signup-credentials .credential-note { margin: 8px 0; font: inherit; font-size: .875rem; color: #d3c6c8; user-select: text; }
.credential-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 4px 0; padding: 8px 14px; border: 1px solid #a87b80; border-radius: 8px; background: #422b30; color: #fff1ef; font: 600 .9375rem/1.3 Manrope, sans-serif; cursor: pointer; }
.credential-copy:hover,.credential-copy:focus-visible { background: #59353b; border-color: #efb4b1; }
#copy-status:empty { margin: 0; }
.auth-card #signup[hidden], .auth-card #receipt[hidden] { display: none; }
.auth-card form {
  margin-top: 24px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-size: 14px;
}
.auth-card input {
  width: 100%;
  min-width: 0;
  background: #100e11;
  border: 1px solid #61505b;
  color: white;
  padding: 11px 12px;
  border-radius: 7px;
  font-size: 16px;
}
.auth-card input:focus {
  outline: none;
  border-color: #f47e80;
}
.pw-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
}
.pw-wrap input {
  padding-right: 91px;
}
.reveal {
  position: absolute;
  right: 4px;
  top: 2px;
  bottom: 2px;
  background: transparent;
  border: 0;
  font-size: 12px;
  color: #d9bdc4;
}
.auth-card .cta {
  width: 100%;
  margin-top: 8px;
}
.auth-help {
  display: grid;
  justify-items: start;
  gap: 11px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 18px;
}
.form-error {
  color: #ffa5a6;
  font-size: 14px;
}
.form-error:empty {
  display: none;
}
@media (max-width: 670px) {
  html {
    scroll-padding-top: 75px;
  }
  .wrap {
    width: 89%;
  }
  .brand svg {
    width: 25px;
    height: 25px;
  }
  .brand strong {
    font-size: 21px;
  }
  .text-link,
  .quiet {
    font-size: 13px;
  }
  .cta {
    padding: 12px 15px;
    gap: 11px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .auth-grid {
    width: 92%;
    min-height: 0;
    padding: 36px 0 55px;
    justify-content: center;
  }
  .auth-header {
    padding: 19px 0;
  }
  .auth-art {
    inset: -15% -3% 30%;
    opacity: 0.4;
  }
  .auth-card {
    position: relative;
  }
  .auth-page .brand small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

.telegram-continue { width: 100%; min-height: 52px; font-size: 17px; }
.telegram-note { margin-top: 20px; font-size: 14px; }
