@import url("https://fonts.googleapis.com/css2?family=Cousine:wght@400;700&display=swap");

@font-face {
  font-family: "OrbitronLogo";
  src: url("orbitron-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --bg: #f7f8f2;
  --color-bg: #f7f8f2;
  --color-fg: #0b0f14;
  --color-accent: #24364d;
  --color-accent-hover: #1b2a3d;
  --hero-bg-surface-image:
    radial-gradient(circle at 78% 12%, rgba(11, 15, 20, 0.06) 0, transparent 26%),
    radial-gradient(circle at 25% 78%, rgba(11, 15, 20, 0.04) 0, transparent 31%),
    radial-gradient(circle, rgba(11, 15, 20, 0.02) 0.85px, transparent 0.95px),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 100%);
  --hero-bg-surface-size: auto, auto, 17px 17px, auto;
  --hero-bg-surface-repeat: no-repeat, no-repeat, repeat, no-repeat;
  --text: #f7f8f2;
  --muted: rgba(247, 248, 242, 0.72);
  --line: rgba(247, 248, 242, 0.2);
  --line-strong: rgba(247, 248, 242, 0.38);
  --hero-bg: #0b0f14;
  --accent: var(--color-accent);
  --accent-strong: var(--color-accent-hover);
  --content-max-width: 1120px;
  --plate-max-width: 720px;
  --header-height: 72px;
  --focus-ring: 0 0 0 3px rgba(36, 54, 77, 0.34);
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(168deg, rgba(11, 15, 20, 0.74) 0%, rgba(11, 15, 20, 0.66) 46%, rgba(11, 15, 20, 0.8) 100%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.58) 0%, rgba(11, 15, 20, 0.74) 70%, rgba(11, 15, 20, 0.84) 100%),
    url("hero-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      68% 56% at 50% 34%,
      rgba(247, 248, 242, 0.15) 0%,
      rgba(247, 248, 242, 0.08) 34%,
      transparent 72%
    ),
    radial-gradient(136% 114% at 50% 48%, transparent 52%, rgba(11, 15, 20, 0.6) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(247, 248, 242, 0.18) 0.4px, transparent 0.7px),
    radial-gradient(circle at 78% 62%, rgba(247, 248, 242, 0.14) 0.4px, transparent 0.8px);
  background-size: 140px 140px, 180px 180px;
  opacity: 0.14;
  mix-blend-mode: screen;
}

.under-construction-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.under-construction-page > * {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration-color: rgba(247, 248, 242, 0.34);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

.container {
  width: min(100% - 3rem, var(--content-max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  border-bottom: 1px solid rgba(11, 15, 20, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-transform: none;
  letter-spacing: normal;
}

body.has-scrolled .site-header {
  box-shadow: 0 10px 24px -26px rgba(11, 15, 20, 0.7);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.site-header__brand {
  color: var(--color-fg);
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  font-family: "OrbitronLogo", "Cousine", monospace;
  font-size: clamp(1.08rem, 1.1vw, 1.34rem);
  letter-spacing: 0.03em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
  padding: 4px 2px;
}

.site-header__brand-logo {
  width: clamp(1.82rem, 2.6vw, 2.2rem);
  height: clamp(1.82rem, 2.6vw, 2.2rem);
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header__menu-toggle {
  display: none;
  border: 1px solid rgba(11, 15, 20, 0.24);
  background: transparent;
  color: var(--color-fg);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header__menu-toggle:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, rgba(11, 15, 20, 0.24));
  color: color-mix(in srgb, var(--color-accent) 82%, var(--color-fg));
}

.site-header__menu-icon {
  display: inline-grid;
  gap: 5px;
}

.site-header__menu-line {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header[data-open="true"] .site-header__menu-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header[data-open="true"] .site-header__menu-line:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .site-header__menu-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-header__nav {
  margin-left: auto;
}

.site-header__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
}

.site-header__item {
  position: relative;
}

.site-header__link {
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  opacity: 0.86;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  transition:
    opacity 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    text-decoration-color 180ms ease;
}

.site-header__link:hover,
.site-header__link:focus-visible,
.site-header__link.is-active {
  color: color-mix(in srgb, var(--color-accent) 78%, var(--color-fg));
  text-decoration-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  opacity: 1;
}

.site-header__contact {
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 11px 16px;
  min-height: 40px;
  opacity: 1;
  text-decoration: none;
}

.site-header__contact:hover,
.site-header__contact:focus-visible {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header__menu-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (min-width: 961px) {
  .site-header__menu-toggle {
    display: none;
  }

  .site-header__nav {
    display: block !important;
  }
}

@media (max-width: 960px) {
  .site-header {
    border-bottom-color: rgba(11, 15, 20, 0.16);
  }

  .site-header__inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 8px 0;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    display: block;
    padding-bottom: 8px;
  }

  .site-header[data-nav-ready="true"][data-open="false"] .site-header__nav {
    display: none;
  }

  .site-header[data-open="true"] .site-header__nav {
    display: block;
  }

  .site-header__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-header__item {
    width: 100%;
  }

  .site-header__link {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    text-decoration: none;
  }

  .site-header__item--contact {
    margin-top: 2px;
  }

  .site-header__item--contact .site-header__link {
    justify-content: center;
  }
}

.uc-main {
  flex: 1 0 auto;
  width: min(100% - 3rem, var(--content-max-width));
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 4.2rem) 0 clamp(1.6rem, 5vw, 3.4rem);
  display: grid;
  align-items: center;
}

.hero {
  width: 100%;
  display: grid;
  place-items: center;
  width: min(100%, var(--plate-max-width));
  margin-inline: auto;
  text-align: center;
}

.uc-plate__content {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.hero h1 {
  margin: 0 auto;
  max-width: 100%;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.58rem, 4.6vw, 3.2rem);
  letter-spacing: -0.028em;
  line-height: 1.02;
  white-space: nowrap;
}

.hero-subheadline {
  margin: 0.5rem 0 0;
  max-width: 44ch;
  color: rgba(247, 248, 242, 0.9);
  font-size: clamp(1.04rem, 2.2vw, 1.27rem);
  line-height: 1.5;
}

.hero-what-we-do {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  letter-spacing: 0.01em;
}

.uc-plate__cta,
.hero-cta-group {
  margin-top: clamp(1.5rem, 4vw, 2.2rem);
  display: grid;
  justify-items: center;
  gap: 0.66rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.82rem 1.42rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 54, 77, 0.78);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow:
    0 14px 28px -24px rgba(36, 54, 77, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.cta-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-primary:focus-visible {
  outline: 2px solid transparent;
  box-shadow:
    var(--focus-ring),
    0 14px 28px -24px rgba(36, 54, 77, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cta-secondary {
  margin-top: 0.15rem;
  color: rgba(247, 248, 242, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 248, 242, 0.26);
  padding-bottom: 0.08rem;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  color: var(--text);
  border-color: rgba(247, 248, 242, 0.52);
}

.uc-footer {
  width: min(100% - 3rem, var(--plate-max-width));
  margin: 0 auto;
  padding: 1.1rem 0 1.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.uc-footer p {
  margin: 0;
}

.uc-footer__contact {
  opacity: 0.92;
}

@media (min-width: 880px) {
  body {
    background-attachment: fixed;
  }
}

@media (max-width: 760px) {
  .container,
  .uc-main,
  .uc-footer {
    width: min(100% - 1.6rem, var(--content-max-width));
  }

  .uc-main {
    padding: 1.2rem 0 1.6rem;
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(1.42rem, 7.2vw, 2.3rem);
    line-height: 1.04;
  }

  .hero-subheadline {
    font-size: clamp(1rem, 4.5vw, 1.14rem);
  }

  .hero-what-we-do {
    font-size: 0.84rem;
    letter-spacing: 0.06em;
  }

  .cta-primary {
    min-height: 50px;
    width: 100%;
    max-width: 280px;
  }

  .uc-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.95rem;
  }
}

@media (max-height: 720px) {
  .uc-main {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
