:root {
  --bg: #0c1016;
  --bg-raise: #121722;
  --text: #f5f7fb;
  --muted: #b7becb;
  --faint: #8b93a3;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #4d84ff;
  --blue-deep: #3a6fe0;
  --sans: Inter, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
  --wrap: min(1140px, calc(100% - 4.5rem));
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

::selection {
  background: #2a4f99;
  color: #fff;
}

a {
  color: inherit;
}

abbr {
  text-decoration: none;
}

a:focus-visible,
.skip:focus {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d5dbe6;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #090c12;
  color: var(--text);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("header.webp") 78% center / cover no-repeat;
  filter: saturate(0.3) blur(0.6px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(7, 10, 16, 0.82) 0%,
    rgba(7, 10, 16, 0.62) 32%,
    rgba(7, 10, 16, 0.18) 54%,
    rgba(7, 10, 16, 0) 70%
  );
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1.35rem;
}

.logo {
  justify-self: start;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.bar nav a {
  position: relative;
  padding-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: #fff;
}

.bar nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.btn-line {
  justify-self: end;
  padding: 0.72rem 1.15rem;
  border: 1.5px solid #7aa2ff;
  color: #fff;
  font-size: 0.95rem;
  background: transparent;
}

.btn-line:hover {
  background: rgba(77, 132, 255, 0.16);
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 2.5rem 1rem;
}

.hero-copy {
  width: min(34rem, 46%);
}

h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.35rem, 3.7vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

h1 .line {
  display: block;
}

h1 .accent {
  color: var(--blue);
}

.lead {
  max-width: 22.5rem;
  margin-top: 1.25rem;
  color: #c5cbd6;
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-top: 1.7rem;
}

.btn-fill {
  padding: 0.95rem 1.35rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
}

.btn-fill:hover {
  background: var(--blue-deep);
}

.btn-quiet {
  padding: 0.4rem 0.1rem;
  color: #fff;
  font-size: 1rem;
}

.btn-quiet:hover {
  color: #d6e2ff;
}

.intro a,
.registry a,
.site-footer a {
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: #d6e2ff;
}

.intro a,
.registry a {
  color: var(--blue);
}

.marks-row {
  padding-bottom: 1.6rem;
}

.marks {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  width: min(34rem, 46%);
  padding: 0;
  list-style: none;
  color: rgba(210, 216, 226, 0.72);
}

.marks svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work,
.process,
.details {
  padding-block: 5.5rem;
  scroll-margin-top: 1.5rem;
}

.work,
.details {
  background: var(--bg);
}

.process {
  background: var(--bg-raise);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.intro {
  margin-top: 0.9rem;
  max-width: 36rem;
  color: var(--muted);
  text-wrap: pretty;
}

.services,
.steps {
  display: grid;
  gap: 1rem;
}

.services {
  grid-template-columns: 1fr 1fr;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service,
.steps li {
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.service p:last-child,
.steps p:last-child {
  color: var(--muted);
  text-wrap: pretty;
}

.num {
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.registry div {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.registry div:last-child {
  border-bottom: 1px solid var(--line);
}

.registry dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.registry .hint {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.registry dd {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.registry .name {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.registry .figure {
  font-family: var(--mono);
  font-size: 1rem;
}

address {
  font-style: normal;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  :root {
    --wrap: min(1140px, calc(100% - 2.25rem));
  }

  .bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .bar nav {
    order: 3;
    width: 100%;
    gap: 1.15rem;
    padding-top: 0.85rem;
  }

  .hero::after {
    background-position: 72% center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(7, 10, 16, 0.55) 0%,
      rgba(7, 10, 16, 0.78) 38%,
      rgba(7, 10, 16, 0.9) 100%
    );
  }

  .hero-copy,
  .marks {
    width: 100%;
  }

  .services,
  .steps,
  .registry div {
    grid-template-columns: 1fr;
  }

  .work,
  .process,
  .details {
    padding-block: 3.75rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .marks {
    gap: 1.1rem;
  }
}

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

@media print {
  body,
  .hero,
  .work,
  .process,
  .details,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: 0;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .lead,
  .intro,
  .service p:last-child,
  .steps p:last-child,
  .registry dt,
  .site-footer,
  .eyebrow {
    color: #000;
  }

  h1 .accent,
  .num,
  .logo {
    color: #000;
  }

  a {
    text-decoration: none;
  }
}
