@font-face {
  font-family: Golos;
  src: url('./fonts/golos-text-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url('./fonts/golos-text-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+2113;
}
@font-face {
  font-family: Manrope;
  src: url('./fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope;
  src: url('./fonts/manrope-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+2113;
}

:root {
  color-scheme: light;
  --ink: #271f2c;
  --muted: #625866;
  --paper: #fcf8f6;
  --line: #e5dcdf;
  --accent: #934165;
  --purple: #28182e;
  --body: Golos, system-ui, sans-serif;
  --display: Manrope, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #d45e91; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrapper { width: min(100% - var(--gutter) * 2, 73rem); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: var(--gutter);
  padding: .7rem 1rem;
  border-radius: .5rem;
  background: var(--paper);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }


.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: clamp(4rem, 9vh, 5.2rem);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: clamp(7.5rem, 13vw, 10.1rem); height: auto; }
.header__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); font-size: .9rem; }
.header__links > a:first-child:hover { color: var(--accent); }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .94rem;
  line-height: 1.2;
  text-align: center;
}

.button--header { min-height: 2.68rem; border-color: #b48b9c; }
.button--header:hover { background: #f9e7ef; }

.hero {
  --stage-height: 100vh;
  --stable-height: 100vh;
  --scroll-distance: var(--stable-height);
  --aspect: calc(16 / 9);
  position: relative;
}
@supports (height: 100dvh) {
  .hero { --stage-height: 100dvh; --stable-height: 100svh; }
}
.hero__scene {
  position: relative;
  height: var(--stage-height);
  background: radial-gradient(ellipse at 50% 70%, #2c1e32, #17121e 76%);
  isolation: isolate;
}
.hero__scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff3f6;
  opacity: var(--burst-fill, 0);
}
.hero__art {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, calc(var(--stage-height) * var(--aspect)));
  aspect-ratio: var(--aspect);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__art picture, .hero__art img, .hero__art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__art img { object-fit: contain; object-position: center top; }
.hero__art canvas { visibility: hidden; }
.hero__art[data-frame] canvas { visibility: visible; }
.hero__art[data-frame] picture { visibility: hidden; }

.site-entry {
  display: flex;
  flex-direction: column;
  min-height: min(var(--stage-height), 46rem);
  background: var(--paper);
}
.site-entry__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  flex: 1;
  padding-block: clamp(1.5rem, 7vh, 5rem);
}
.site-entry__copy h1 {
  font-size: clamp(2.6rem, 7.3vw, 7.6rem);
  line-height: 1;
  letter-spacing: -.064em;
  text-wrap: balance;
}
.site-entry__copy h1 span { color: var(--accent); }
.site-entry__copy p {
  margin-top: clamp(.85rem, 3vh, 2rem);
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-wrap: balance;
}

.hero[data-motion='on'] { height: calc(var(--stage-height) + var(--scroll-distance)); }
.hero[data-motion='on'] .hero__stage {
  position: sticky;
  top: 0;
  height: var(--stage-height);
  overflow: clip;
}
.hero[data-motion='on'] .site-entry {
  position: absolute;
  inset: 0;
  min-height: 0;
  clip-path: circle(var(--reveal-radius, 0px) at var(--light-x, 50%) var(--light-y, 50%));
}
.hero[data-motion='on']:not([data-reveal]) .site-entry { visibility: hidden; }
.hero[data-motion='on'][data-reveal='open'] .site-entry { clip-path: none; }
.site-entry[inert], .main-content[inert], .footer[inert] { pointer-events: none; }

.main-content { position: relative; z-index: 2; background: var(--paper); }
.intro { padding-block: clamp(4.5rem, 10vw, 9.5rem) clamp(3rem, 7vw, 6rem); }
.kicker {
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.intro__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  align-items: end;
  gap: 1.4rem clamp(2rem, 7vw, 8rem);
}
.section-title {
  font-size: clamp(2.35rem, 5.35vw, 5.2rem);
  line-height: 1.055;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.intro__body p { max-width: 28rem; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.23rem); }
.features { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 8.5rem); }
.features__title { margin-bottom: 1.25rem; font-size: clamp(1.6rem, 3.2vw, 2.5rem); letter-spacing: -.04em; }
.features__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.features__list li {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: baseline;
  gap: .65rem 2rem;
  padding: clamp(1.35rem, 3.3vw, 2.85rem) 0;
  border-bottom: 1px solid var(--line);
}
.features h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.12; letter-spacing: -.04em; }
.features p { max-width: 36rem; color: var(--muted); }

.login { padding-bottom: clamp(3.75rem, 8vw, 7.5rem); }
.login__panel {
  padding: clamp(2.7rem, 7vw, 6.25rem) clamp(1.1rem, 6vw, 5rem);
  border-radius: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--purple);
  color: #fff5f9;
  text-align: center;
}
.login__panel p { margin: 1.1rem auto 0; color: #e9d8e6; text-wrap: balance; }
.login__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.button--primary { color: #2a1b2c; background: #f5bdd1; }
.button--primary:hover { background: #ffdae7; }
.button--secondary { color: #fff5f9; border-color: #d3b9cd; }
.button--secondary:hover { background: #fff5f918; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.footer__brand { color: var(--ink); font-family: var(--display); font-weight: 600; }
.footer a:hover { color: var(--accent); }


@media (orientation: portrait) {
  .hero { --aspect: calc(9 / 16); }
}
@media (max-width: 550px) {
  .intro__body, .features__list li { grid-template-columns: 1fr; }
  .header__links { gap: .64rem; }
  .header__links > a:first-child { display: none; }
  .button--header { padding-inline: 1.08rem; }
}
