@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range:
    U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD, U+2212, U+2190-21FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range:
    U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD, U+2212, U+2190-21FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

:root {
  --ink: #f4f8fb;
  --ink-soft: rgba(230, 239, 246, 0.72);
  --line: rgba(220, 235, 245, 0.2);
  --blue: #7bc7ff;
  --night: #050a10;
  --paper: #f1efe9;
  --paper-ink: #0b1721;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: clip;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #a9dcff;
  outline-offset: 5px;
}

.site-header {
  --brand-sequence-start: 1.96s;
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
}

body.home .site-header {
  animation: ui-enter 0.75s 1.78s ease both;
}

.header-brand {
  display: inline-flex;
  width: max-content;
  color: #f7fafc;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.header-brand__visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-brand__word {
  display: flex;
  align-items: center;
  gap: 0.18em;
}

.header-brand__slot {
  display: block;
  overflow: hidden;
  margin-block: -0.08em;
  padding-block: 0.08em;
}

.header-brand__glyph {
  display: block;
}

.header-brand__tagline {
  display: block;
  margin-top: 8px;
  color: rgba(226, 238, 246, 0.58);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.home .header-brand__glyph {
  animation: header-brand-glyph 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home .header-brand__glyph--from-top {
  --brand-start-y: -120%;
}

body.home .header-brand__glyph--from-bottom {
  --brand-start-y: 120%;
}

body.home .header-brand__slot:nth-child(1) .header-brand__glyph,
body.home .header-brand__slot:nth-child(2) .header-brand__glyph {
  animation-delay: var(--brand-sequence-start);
}

body.home .header-brand__slot:nth-child(3) .header-brand__glyph,
body.home .header-brand__slot:nth-child(4) .header-brand__glyph {
  animation-delay: calc(var(--brand-sequence-start) + 90ms);
}

body.home .header-brand__slot:nth-child(5) .header-brand__glyph,
body.home .header-brand__slot:nth-child(6) .header-brand__glyph {
  animation-delay: calc(var(--brand-sequence-start) + 180ms);
}

body.home .header-brand__tagline {
  animation: header-brand-tagline 420ms
    calc(var(--brand-sequence-start) + 780ms)
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes header-brand-glyph {
  from {
    opacity: 0.18;
    transform: translateY(var(--brand-start-y));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-brand-tagline {
  from {
    opacity: 0;
    transform: translateY(4px);
    clip-path: inset(100% 0 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.header-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 0 21px;
  border: 1px solid rgba(159, 210, 240, 0.58);
  background: rgba(5, 14, 22, 0.22);
  color: #f5f9fb;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.header-contact:hover,
.header-contact:focus-visible {
  border-color: #d9f1ff;
  background: rgba(237, 247, 252, 0.96);
  color: #071019;
  transform: translateY(-1px);
}

/* WordPress shell and navigation. */
html {
  overflow-x: clip;
}

body {
  min-width: 320px;
}

ul {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  background: #f1efe9;
  color: #0b1721;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.desktop-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  list-style: none;
}

.desktop-nav a {
  position: relative;
  display: block;
  padding: 9px 0;
  color: rgba(236, 243, 248, 0.76);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: #b7ddf3;
  transition: right 240ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-contact {
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 4vw, 68px);
  border-top: 1px solid rgba(220, 235, 245, 0.16);
  background: #050a10;
  color: rgba(230, 239, 246, 0.66);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: #f4f8fb;
  letter-spacing: 0.16em;
}

body:not(.home) .site-header {
  position: absolute;
  border-color: rgba(11, 23, 33, 0.16);
  background: rgba(248, 247, 242, 0.94);
  opacity: 1;
  animation: none;
  backdrop-filter: blur(18px);
}

body:not(.home) .header-brand,
body:not(.home) .desktop-nav a {
  color: #0b1721;
}

body:not(.home) .header-brand__tagline {
  color: rgba(11, 23, 33, 0.58);
}

body:not(.home) .header-contact {
  border-color: rgba(11, 23, 33, 0.5);
  color: #0b1721;
}

body:not(.home) .header-contact:hover {
  background: #0b1721;
  color: #f8f7f2;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    min-height: 76px;
  }

  .desktop-nav {
    display: flex;
    order: 2;
  }

  .desktop-nav__list li:not(:first-child) {
    display: none;
  }

  .desktop-nav a {
    font-size: 10px;
  }

  .header-contact {
    order: 3;
    min-width: 112px;
    min-height: 42px;
    padding: 0 16px;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .header-brand {
    font-size: 16px;
  }

  .header-brand__tagline {
    font-size: 6px;
  }

  .header-contact {
    min-width: 100px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 9px;
  }

  .site-footer {
    display: block;
    padding: 24px 18px;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .site-header {
    animation: none !important;
  }

  .header-brand__glyph,
  .header-brand__tagline {
    opacity: 1;
    animation: none !important;
    transform: none;
    clip-path: none;
  }
}
