@font-face {
  font-family: "Mono45 Headline";
  src: url("../fonts/mono45-headline-bold.ttf") format("truetype"),
       url("../fonts/mono45-headline-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cyan:      #7af3ff;
  --lavender:  #e1e2ff;
  --blue:      #2b32fd;
  --blue-soft: #3f45ee;
  --purple:    #7a38ff;
  --navy:      #00053f;
  --yellow:    #ffc12f;
  --ink:       #1c1d2b;

  --display: "Mono45 Headline", "Roboto Mono", ui-monospace, monospace;
  --sans:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Roboto Mono", ui-monospace, SFMono-Regular, monospace;

  --gut: clamp(24px, 8.333vw, 120px);

  --fs-tag:      clamp(14px, 12.59px + 0.376vw, 18px);
  --fs-display:  clamp(54px, 34.28px + 5.258vw, 110px);
  --fs-lead:     clamp(20px, 17.18px + 0.751vw, 28px);
  --fs-list:     clamp(16px, 15.30px + 0.188vw, 18px);
  --fs-ref:      clamp(32px, 22.14px + 2.629vw, 60px);
  --fs-ref-on:   clamp(54px, 37.80px + 4.319vw, 100px);
  --fs-ref-ttl:  clamp(22px, 18.48px + 0.939vw, 32px);
  --fs-body:     clamp(16px, 14.59px + 0.376vw, 20px);
  --fs-small:    clamp(14px, 13.30px + 0.188vw, 16px);
  --fs-sub:      clamp(18px, 17.30px + 0.188vw, 20px);

  --row: clamp(54px, 46.25px + 2.066vw, 76px);

  --refs-pad: calc(var(--row) * 0.34);

  --refs-shift: var(--refs-pad);
  --refs-ease: 320ms cubic-bezier(0.33, 0, 0.2, 1);

  --refs-swap: 170ms;

  --refs-step: 26vh;
}

@media (min-width: 900px) {
  :root {
    --refs-ease: 200ms cubic-bezier(0.33, 0, 0.2, 1);
    --refs-swap: 110ms;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

body { scrollbar-width: none; -ms-overflow-style: none; }

::-webkit-scrollbar { width: 0; height: 0; display: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--yellow); color: var(--navy);
  padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap {
  width: min(100% - var(--gut) * 2, 1200px);
  margin-inline: auto;
}

.mark {
  width: clamp(140px, 130.7px + 2.47vw, 175px);
  height: auto;
}
.mark--white { position: absolute; top: 0; left: 0; }


.hero {
  background: var(--cyan);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px var(--gut);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 24px + 1.1vw, 40px);
}

.hero__logo { margin: 0; }
.hero__logo img { width: min(83vw, 690px); }

.tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 15.8px + 1.13vw, 32px);
  font-family: var(--mono);
  font-size: var(--fs-tag);
  line-height: 1;
  color: var(--navy);
}

.about {
  background: var(--lavender);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(40px, 34.3px + 1.5vw, 50px) 0 clamp(48px, 60px, 120px);
  display: flex;
}

.about__wrap {
  display: flex;
  flex-direction: column;
}

.about__headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: var(--blue);
  max-width: 12ch;
  margin-top: clamp(60px, 44.5px + 4.13vw, 104px);
}

.about__lead {
  margin-top: clamp(32px, 8px + 6.4vw, 100px);
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--blue-soft);
  max-width: min(100%, 454px);
}

.about__lists {
  display: grid;
  gap: 40px;
  align-content: start;
  margin-top: auto;
  padding-top: clamp(48px, 30px + 4.8vw, 100px);
}

.listing__label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--fs-list);
  line-height: 1;
  color: rgb(43 50 253 / 0.4);
  margin-bottom: 16px;
}

.listing__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(16px, 13.2px + 0.75vw, 24px);
  font-size: var(--fs-list);
  font-weight: 600;
  line-height: 1.4;
  color: rgb(43 50 253 / 0.8);
}
.listing__items--bold { font-weight: 700; }

@media (min-width: 900px) {
  .about__wrap {
    display: grid;
    grid-template-columns: minmax(0, 454fr) minmax(0, 599fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 3.6px + 9.7vw, 147px);
    align-content: start;
  }
  .about > .wrap > .mark,
  .about__headline { grid-column: 1 / -1; }
  .about__lead { grid-column: 1; grid-row: 3; }
  .about__lists {
    grid-column: 2;
    grid-row: 3;
    gap: 40px;
    margin-top: 0;
    padding-top: clamp(32px, 8px + 6.4vw, 100px);
  }
}

.refs {
  position: relative;
  background: var(--purple);

  height: calc(100vh + (var(--refs-count) - 1) * var(--refs-step));
  height: calc(100svh + (var(--refs-count) - 1) * var(--refs-step));
}

.refs__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.refs__wrap {
  position: relative;
  height: 100%;
}

.mark--white { top: clamp(40px, 34.3px + 1.5vw, 50px); }

.refs__grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  gap: clamp(24px, 40px, 48px);
}

.refs__viewport {
  order: 1;
  position: relative;
  height: 100%;

  overflow: hidden;
  overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}

.refs__list {
  position: absolute;
  inset-inline: 0;
  top: 0;
  will-change: transform;
}

.refs__item {
  height: var(--row);
  display: flex;
  align-items: center;

  transition: transform var(--refs-ease);
  will-change: transform;
}
.refs__item.is-before { transform: translate3d(0, calc(var(--refs-pad) * -1), 0); }
.refs__item.is-after  { transform: translate3d(0, var(--refs-shift), 0); }

.refs__name {
  all: unset;
  cursor: pointer;
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-ref);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.32;
  white-space: nowrap;
  transform-origin: left center;
  transition: font-size var(--refs-ease), opacity var(--refs-ease), filter var(--refs-ease);
}

.refs__item.is-edge1 .refs__name { opacity: 0.24; filter: blur(4px); }
.refs__item.is-edge2 .refs__name { opacity: 0.12; filter: blur(8px); }

.refs__item.is-active .refs__name {
  font-size: var(--fs-ref-on);
  opacity: 1;
  filter: none;
}

.refs__panel {
  order: 2;
  position: absolute;
  top: calc(50% + var(--row) / 2 + var(--refs-pad));
  left: 0;
  right: 0;
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: start;
}

.js .refs__panel {
  transition: opacity var(--refs-swap) ease, transform var(--refs-swap) ease;
}
.refs__panel.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.refs__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-ref-ttl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.refs__text {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: rgb(255 255 255 / 0.8);
  max-width: 34ch;
}

.refs__metric {
  margin-top: 5px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1.1;
  border-radius: 8px;
  padding: 11px 13px;
}
.refs__metric[hidden] { display: none; }

@media (min-width: 900px) {
  .refs__grid {
    grid-template-columns: minmax(0, 408fr) minmax(0, 557fr);
    gap: clamp(48px, 193px, 193px);
    align-items: center;
  }
  .refs__panel {
    order: 1;
    position: static;
    gap: 15px;
    align-content: center;
  }
  .refs__viewport { order: 2; }
}

.no-js .refs { height: auto; padding: 80px 0; }
.no-js .refs__sticky { position: static; height: auto; overflow: visible; }
.no-js .refs__viewport { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.no-js .refs__list { position: static; }
.no-js .refs__panel { position: static; margin-top: 40px; }
.no-js .refs__name { opacity: 0.9; }

.contact {
  background: var(--navy);
  color: #fff;
  padding: clamp(80px, 100px, 200px) 0 60px;
}

.contact__grid {
  display: grid;
  gap: 80px;
}

.contact__intro {
  display: grid;
  gap: 20px;
  text-align: center;
}

.contact__headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.contact__sub {
  font-size: var(--fs-sub);
  line-height: 1.4;
  max-width: 30ch;
  margin-inline: auto;
}

.contact__form { display: grid; gap: 24px; justify-items: center; }

.contact__note {
  font-size: var(--fs-small);
  line-height: 1.5;
  text-align: center;
  max-width: 42ch;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 456fr) minmax(0, 599fr);
    column-gap: clamp(40px, 3.6px + 9.7vw, 147px);
    align-items: start;
  }
  .contact__intro { text-align: left; }
  .contact__sub { margin-inline: 0; }
}

.form { width: 100%; display: grid; gap: 20px; justify-items: center; }

.form__trap {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.field { position: relative; width: 100%; }

.field input {
  width: 100%;
  height: 60px;
  padding: 18px 24px;
  background: transparent;
  border: 2px solid var(--lavender);
  border-radius: 4px;
  color: var(--lavender);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  transition: border-color 200ms ease, color 200ms ease, border-radius 240ms ease;
}
.field input::placeholder { color: var(--lavender); opacity: 1; }

.field input:focus {
  outline: none;
  border-radius: 34px;
  border-color: var(--yellow);
  color: var(--yellow);
}
.field input:focus::placeholder { color: rgb(255 193 47 / 0.7); }

.field.has-error input { border-color: #ff7a7a; color: #ffd7d7; }

.field__error {
  display: none;
  padding: 6px 24px 0;
  font-size: 13px;
  line-height: 1.3;
  color: #ff9d9d;
}
.field.has-error .field__error { display: block; }

.field__row { width: 100%; display: grid; gap: 20px; }

.btn {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #000;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 12px;
  transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: #ffcf5c; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.form__status {
  min-height: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 42ch;
}
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--cyan); }
.form__status.is-error { color: #ff9d9d; }

@media (min-width: 700px) {
  .field__row { grid-template-columns: 1fr 1fr; gap: 30px; }
  .btn { width: 192px; }
}

.site-footer {
  margin-top: clamp(80px, 120px, 160px);
  padding-top: clamp(40px, 60px, 60px);
  border-top: 1px solid rgb(255 255 255 / 0.16);
  display: grid;
  gap: 32px;
}

.site-footer__logo { width: clamp(150px, 143px + 1.9vw, 175px); }

.site-footer__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.office { display: grid; gap: 32px; align-content: start; }

.office__city {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}

.office__addr {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.4;
  color: var(--lavender);
}

.office__contact {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--lavender);
  justify-items: start;
}
.office__mail { color: var(--cyan); text-decoration: underline; }

.site-footer__art {
  width: clamp(132px, 122px + 2.6vw, 179px);
  justify-self: center;
  margin-top: 24px;
}

.copyright {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 2.2;
  text-align: center;
  color: rgb(255 255 255 / 0.7);
}
.copyright a { text-decoration: underline; }

@media (min-width: 900px) {
  .office { gap: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr auto; gap: 40px; }
  .site-footer__art { justify-self: end; margin-top: 0; }
  .copyright { margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .refs__name { filter: none !important; }
}
