@font-face {
  font-family: Nunito;
  src: url("../fonts/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/Nunito-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Science Gothic";
  src: url("../fonts/ScienceGothic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Science Gothic";
  src: url("../fonts/ScienceGothic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Science Gothic";
  src: url("../fonts/ScienceGothic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Science Gothic";
  src: url("../fonts/ScienceGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stalinist One";
  src: url("../fonts/StalinistOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font-display: "Stalinist One", sans-serif;
  --font-text: Nunito, sans-serif;

  --color-text: #14181e;
  --color-text-soft: #3a3f48;
  --color-bg: #ffffff;
  --color-ink: #101626;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: rgba(255, 255, 255, 0.82);
  --color-line: #d7d8dc;
  --color-field: #e7e8ea;
  --color-placeholder: #8e9198;
  --color-overlay: rgba(10, 16, 26, 0.58);
  --color-hero-shade: rgba(6, 12, 22, 0.58);
  --color-ending-he: #5f78e6;
  --color-ending-she: #e06a93;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --title-md: clamp(1.75rem, 2.6vw, 2.5rem);
  --title-lg: clamp(1.85rem, 8vw, 2.35rem);

  --content: 40rem;
  --measure: 36rem;
  --form: 28rem;
  --line: 1.55;
  --page-pad: 1.25rem;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--text-md);
  font-weight: 450;
  line-height: var(--line);
}

body:has(.site-header--overlay) {
  timeline-scope: --hero;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 6rem var(--page-pad) 3.5rem;
  view-timeline-name: --hero;
  view-timeline-axis: block;
  color: var(--color-on-dark);
  text-align: center;
  background:
    linear-gradient(var(--color-hero-shade), rgba(6, 12, 22, 0.42)),
    url("../images/bg-01.jpg") center 42% / cover no-repeat;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  width: min(100%, 62rem);
}

.hero__title {
  font-size: var(--title-lg);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero__line {
  display: block;
}

.hero--contacts {
  background:
    linear-gradient(var(--color-hero-shade), rgba(6, 12, 22, 0.42)),
    url("../images/bg-04.jpg") center / cover no-repeat;
}

@keyframes backdrop-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero,
.projects-hero {
  animation: backdrop-appear 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .projects-hero {
    animation: none;
  }
}

.section {
  padding: var(--space-3xl) var(--page-pad);
  text-align: center;
}

.section--about {
  padding-top: calc(var(--space-3xl) * 2);
}

.section__inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section__title {
  margin-bottom: var(--space-lg);
  font-size: var(--title-md);
}

.section p {
  max-width: var(--measure);
  margin-inline: auto;
  color: var(--color-text-soft);
}

.text-he {
  color: var(--color-ending-he);
}

.text-she {
  color: var(--color-ending-she);
}

.section__rule {
  width: min(16rem, 70%);
  margin: var(--space-xl) auto;
  border: 0;
  border-top: 1px solid var(--color-line);
}

.section__action {
  margin-top: var(--space-xl);
}

.section--tight-bottom {
  padding-bottom: var(--space-lg);
}

.section--direct {
  padding-bottom: var(--space-xl);
}

.section--contact-lead {
  padding-top: var(--space-2xl);
}

.contact-anchor {
  scroll-margin-top: 4.95rem;
}

.direct {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.section .direct__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: none;
  color: var(--color-text-soft);
}

.direct__name {
  font-size: var(--text-sm);
}

.direct__link {
  color: #3656d6;
  font-size: var(--text-md);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.direct__link:hover,
.direct__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.section--after-cards {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.contact-band {
  padding: var(--space-2xl) var(--page-pad);
  background: url("../images/bg-02.jpg") center / cover no-repeat;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: min(100%, var(--form));
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--color-bg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
}

.field__label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--color-field);
  color: var(--color-text);
}

.field__input:focus {
  border-color: #000;
  outline: none;
}

.field__input::placeholder {
  color: var(--color-placeholder);
}

.field__input--area {
  min-height: 6.5rem;
  resize: vertical;
}

.site-footer {
  padding: var(--space-xl) var(--page-pad) var(--space-lg);
  background: var(--color-ink);
  color: var(--color-on-dark-soft);
  font-family: Inter, sans-serif;
  text-align: center;
}

.site-footer__nav,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-on-dark-soft);
  font-size: var(--text-sm);
}

.site-footer__legal .link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__rule {
  width: min(100%, 36rem);
  margin: var(--space-lg) auto;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer__payer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-on-dark-soft);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.site-footer__payer p {
  margin: 0;
}

.page {
  padding: var(--space-3xl) var(--page-pad);
}

.doc-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.doc-page main {
  flex: 1;
}

.doc {
  padding: var(--space-2xl) var(--page-pad) var(--space-3xl);
  color: var(--color-text);
  font-family: Inter, sans-serif;
  font-weight: 400;
  text-align: left;
}

.doc__inner {
  width: min(100%, 70rem);
}

.doc__title {
  margin-bottom: var(--space-sm);
  font-family: "Stalinist One", sans-serif;
  font-size: clamp(0.8rem, 3.2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
}

.doc__date {
  margin-bottom: var(--space-2xl);
  color: var(--color-text-soft);
  font-size: var(--text-sm);
}

.doc h2 {
  margin: var(--space-2xl) 0 var(--space-md);
  font-family: Inter, sans-serif;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.doc__date + h2 {
  margin-top: 0;
}

.doc p {
  margin-bottom: var(--space-md);
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc strong {
  font-weight: 400;
}

.doc a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.section__inner,
.section--after-cards,
.project-card,
.contact-band,
.site-footer,
.page,
.doc,
.ht-about,
.ht-gallery,
.ht-feature,
.ht-download,
.ht-more__head,
.nd-gallery,
.nd-plot,
.nd-stage,
.nd-download,
.nd-more__head {
  animation: block-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 18rem;
}

.site-footer {
  animation-range: entry 0% entry 100%;
}

@keyframes block-in {
  from {
    opacity: 0;
    translate: 0 1.75rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section__inner,
  .section--after-cards,
  .project-card,
  .contact-band,
  .site-footer,
  .page,
  .doc,
  .ht-about,
  .ht-gallery,
  .ht-feature,
  .ht-download,
  .ht-more__head,
  .nd-gallery,
  .nd-plot,
  .nd-stage,
  .nd-download,
  .nd-more__head {
    animation: none;
  }
}

.site-nav {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
}

.site-nav a {
  color: var(--color-text);
}

@media (min-width: 48rem) {
  :root {
    --page-pad: 2rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 3.5vw, 3.45rem);
  }

  .hero__line {
    white-space: nowrap;
  }

  .section {
    padding: var(--space-4xl) var(--page-pad);
  }

  .section--about {
    padding-top: calc(var(--space-4xl) * 2);
  }

  .section--tight-bottom {
    padding-bottom: var(--space-xl);
  }

  .section--direct {
    padding-bottom: var(--space-2xl);
  }

  .section--contact-lead {
    padding-top: var(--space-3xl);
  }

  .section--after-cards {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-4xl);
  }

  .contact-band {
    padding: var(--space-3xl) var(--page-pad);
  }

  .contact-form {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
  }

  .doc {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-4xl);
  }

  .site-footer__nav,
  .site-footer__legal {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }
}
