/* ==========================================================================
   HyperVance — site styles
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0d16;
  --ink-2: #10152a;
  --ink-3: #182040;
  --paper: #f6f6f2;
  --white: #ffffff;
  --text: #0a0d16;
  --text-muted: #525868;
  --line: #e2e2da;
  --line-dark: rgba(255, 255, 255, 0.1);
  --on-dark: #f3f5fa;
  --on-dark-muted: #a6adc4;
  --accent: #2f5bff;
  --accent-strong: #1d43dd;
  --accent-soft: #e9eeff;
  --accent-on-dark: #86a0ff;
  --accent-2: #18d8c4;
  --gradient: linear-gradient(120deg, #2f5bff 0%, #5d7dff 45%, #18d8c4 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(10, 13, 22, 0.04), 0 10px 30px rgba(10, 13, 22, 0.06);
  --shadow-lg: 0 2px 4px rgba(10, 13, 22, 0.05), 0 24px 60px rgba(10, 13, 22, 0.12);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 16px/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  --btn-bg: var(--accent-strong);
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 91, 255, 0.28);
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-border: rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 22, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 13, 22, 0.94);
  border-bottom-color: var(--line-dark);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--white);
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__name span {
  color: var(--accent-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--white);
}

.nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 16px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-header.is-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav__link[aria-current="true"]::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 112px));
  padding-bottom: clamp(72px, 10vw, 128px);
  background: var(--ink);
  color: var(--on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  right: -18%;
  top: -30%;
  background:
    radial-gradient(closest-side, rgba(47, 91, 255, 0.42), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(24, 216, 196, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark-muted);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow__dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(24, 216, 196, 0.14);
}

.eyebrow__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(24, 216, 196, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 216, 196, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(24, 216, 196, 0);
  }
}

.hero__title {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--on-dark-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
  color: var(--on-dark-muted);
  font-size: 14px;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}

/* Console visual */

.console {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 32, 64, 0.88), rgba(16, 21, 42, 0.92));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.console__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.console__title {
  margin-left: 10px;
  color: var(--on-dark-muted);
  font-size: 12.5px;
}

.console__body {
  padding: 22px 22px 26px;
  margin: 0;
  color: #d5dbee;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.console__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.console__prompt {
  color: var(--accent-on-dark);
}

.console__ok {
  color: var(--accent-2);
}

.console__dim {
  color: #8189a3;
}

.console__live {
  color: var(--white);
  font-weight: 600;
}

.console__cursor {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--accent-2);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.js .console__line {
  opacity: 0;
  transform: translateY(4px);
  animation: line-in 0.4s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.45s + 0.3s);
}

@keyframes line-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__visual {
  position: relative;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(16, 21, 42, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  animation: float 7s ease-in-out infinite;
}

.chip .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
  stroke-width: 2;
}

.chip--a {
  top: -22px;
  right: 28px;
}

.chip--b {
  bottom: -20px;
  left: -18px;
  animation-delay: -3.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    max-width: 560px;
  }
}

@media (max-width: 520px) {
  .console {
    font-size: 12.5px;
  }

  .console__body {
    padding: 18px 16px 22px;
  }

  .chip--b {
    left: 8px;
  }

  .chip--a {
    right: 8px;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-space);
}

.section--white {
  background: var(--white);
}

.section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head--stack {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.section--dark .kicker {
  color: var(--accent-on-dark);
}

.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--text-muted);
  font-size: clamp(17px, 1.4vw, 19px);
  max-width: 560px;
}

.section--dark .section-lead {
  color: var(--on-dark-muted);
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: #cfd6f5;
  box-shadow: var(--shadow-lg);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service__num {
  position: absolute;
  top: clamp(26px, 3vw, 36px);
  right: clamp(26px, 3vw, 36px);
  color: #a3a8b6;
  font-family: var(--font-mono);
  font-size: 13px;
}

.service__title {
  font-size: 24px;
  margin-bottom: 12px;
}

.service__text {
  color: var(--text-muted);
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15.5px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--accent-soft);
}

@media (max-width: 980px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }
}

/* Stack strip */

.stack {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stack__label {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.stack__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack__list li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #2b3040;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */

.section--dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  aspect-ratio: 1;
  left: -240px;
  bottom: -360px;
  background: radial-gradient(closest-side, rgba(47, 91, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.step__num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  color: var(--accent-on-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}

.step__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(134, 160, 255, 0.5), transparent);
}

.step__title {
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--white);
}

.step__text {
  color: var(--on-dark-muted);
  font-size: 15.5px;
}

@media (max-width: 1040px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step__num {
    margin-bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--line);
}

.principle:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.principle__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--accent);
}

.principle__title {
  margin-bottom: 8px;
  font-size: 21px;
}

.principle__text {
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle,
  .principle:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Company details
   -------------------------------------------------------------------------- */

.company {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.company__intro .section-lead {
  margin-top: 20px;
}

.company__intro .btn {
  margin-top: 32px;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line);
}

.btn--outline:hover {
  --btn-bg: var(--paper);
  --btn-fg: var(--text);
  --btn-border: #c9cbd4;
  box-shadow: none;
}

.btn--outline .icon {
  color: var(--accent);
}

.facts {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.facts__row:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.facts__mono {
  font-family: var(--font-mono);
  font-size: 15.5px;
  letter-spacing: 0.02em;
}

.sic {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sic li {
  display: flex;
  gap: 12px;
}

.sic code {
  flex: none;
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .company {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 18px 20px;
  }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contact__list {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.contact__item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact__item .icon {
  margin-top: 2px;
  color: var(--accent);
}

.contact__label {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}

.contact__value {
  font-weight: 500;
  font-style: normal;
  overflow-wrap: anywhere;
}

.contact__value a {
  color: var(--text);
  text-decoration: none;
}

.contact__value a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.form__title {
  grid-column: 1 / -1;
  font-size: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14.5px;
  font-weight: 600;
}

.field .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d4d5cd;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font: 16px/1.5 var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525868' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.15);
}

.form__foot {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.form__note {
  color: var(--text-muted);
  font-size: 14px;
}

.form__status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: #1b2b6b;
  font-size: 14.5px;
}

.form__status:empty {
  display: none;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: 32px;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 15px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer__tagline {
  max-width: 360px;
  margin-top: 16px;
}

.footer__heading {
  margin-bottom: 16px;
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 28px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer__legal p {
  max-width: 760px;
}

@media (max-width: 760px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(48px, 7vw, 80px);
  background: var(--ink);
  color: var(--on-dark);
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  aspect-ratio: 1;
  right: -160px;
  top: -320px;
  background: radial-gradient(closest-side, rgba(47, 91, 255, 0.38), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin-top: 16px;
  color: var(--on-dark-muted);
}

.prose {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 88px);
}

.prose h2 {
  margin: 48px 0 14px;
  font-size: clamp(24px, 2.6vw, 30px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.prose p,
.prose ul {
  margin: 0 0 16px;
  color: #2b3040;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose address {
  margin: 0 0 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-style: normal;
}

/* 404 */

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 48px) var(--gutter) 64px;
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
}

.not-found__code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-on-dark);
  margin-bottom: 16px;
}

.not-found h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.not-found p {
  max-width: 460px;
  margin: 16px auto 32px;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
    transition-delay: 0s !important;
  }

  .js .reveal {
    transform: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero__visual,
  .form {
    display: none !important;
  }

  .hero,
  .page-hero,
  .section--dark,
  .site-footer {
    background: none !important;
    color: #000 !important;
  }
}
