@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #07111c;
  --night-deep: #030810;
  --paper: #f4f6f5;
  --surface: #e9eeec;
  --surface-soft: #eef2f0;
  --ink: #101a1f;
  --ink-soft: #35454c;
  --muted: #586970;
  --line: #ccd5d2;
  --line-strong: #aebbb7;
  --accent: #9dcfd0;
  --accent-strong: #185d62;
  --hero-ink: #f1f5f4;
  --hero-muted: #c6d0d2;
  --radius: 8px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --section-space: clamp(88px, 9vw, 144px);
  --content-max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 580;
  letter-spacing: -0.048em;
  line-height: 1;
  text-wrap: balance;
}

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

:focus-visible {
  outline: 3px solid #b9eff0;
  outline-offset: 4px;
}

.section-shell :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent-strong);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--hero-ink);
  color: var(--night);
  font-weight: 700;
}

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

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid rgb(255 255 255 / 0.13);
  background: rgb(3 8 16 / 0.38);
  color: var(--hero-ink);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.header-inner {
  position: relative;
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.header-inner > .brand {
  grid-column: 2;
  padding: 0 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
}

.desktop-nav-left {
  grid-column: 1;
  justify-self: start;
}

.desktop-nav-right {
  grid-column: 3;
  justify-self: end;
}

.desktop-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgb(241 245 244 / 0.78);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--hero-ink);
}

.nav-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: clamp(108px, 13vh, 150px) var(--gutter) clamp(160px, 23vh, 230px);
  background: var(--night-deep);
  color: var(--hero-ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse 48% 33% at 50% 43%, rgb(3 8 16 / 0.73), transparent 74%),
    linear-gradient(180deg, rgb(3 8 16 / 0.22) 0%, rgb(3 8 16 / 0.02) 30%, rgb(3 8 16 / 0.2) 64%, rgb(3 8 16 / 0.7) 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-copy {
  width: min(100%, 1160px);
  margin-inline: auto;
  text-align: center;
  transform: translateY(-2vh);
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--hero-muted);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1160px;
  margin-inline: auto;
  color: var(--hero-ink);
  font-size: clamp(3.5rem, 6.3vw, 6.2rem);
  line-height: 0.94;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.72), 0 1px 0 rgb(255 255 255 / 0.12);
}

.hero-lede {
  max-width: 650px;
  margin: 28px auto 0;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.58;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.9);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--hero-ink);
  color: var(--night);
}

.button-primary:hover {
  background: #ffffff;
}

.button-quiet {
  border-color: rgb(255 255 255 / 0.32);
  background: rgb(3 8 16 / 0.22);
  color: var(--hero-ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button-quiet:hover {
  border-color: rgb(255 255 255 / 0.62);
  background: rgb(3 8 16 / 0.42);
}

.button-dark {
  background: var(--night);
  color: var(--hero-ink);
}

.button-dark:hover {
  background: #102333;
}

.section-shell {
  width: 100%;
  padding: var(--section-space) max(var(--gutter), calc((100vw - var(--content-max)) / 2));
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section-intro,
.outputs-intro {
  max-width: 780px;
}

.section-intro h2,
.outputs-intro h2,
.contact h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
}

.section-intro > p,
.outputs-intro > p,
.contact-copy > p {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: clamp(56px, 9vw, 130px);
  align-items: start;
  margin-top: clamp(54px, 7vw, 92px);
}

.fault-lines,
.service-row ul,
.fit-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.fault-lines {
  border-top: 1px solid var(--line-strong);
}

.fault-lines li {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.fault-lines strong {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 750;
}

.fault-lines span {
  color: var(--ink-soft);
}

.diagnosis-note {
  margin-top: 6px;
  padding: 8px 0 8px clamp(24px, 3vw, 42px);
  border-left: 1px solid var(--line-strong);
}

.diagnosis-note p {
  max-width: 470px;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.services {
  background: var(--surface-soft);
}

.service-list {
  margin-top: clamp(58px, 7vw, 96px);
  border-bottom: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.72fr) auto;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  padding: clamp(38px, 4.5vw, 62px) 0;
  border-top: 1px solid var(--line-strong);
}

.service-duration {
  margin-bottom: 20px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 720;
}

.service-summary h3 {
  max-width: 640px;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.service-summary > p:last-child {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
}

.service-row ul {
  padding-top: 40px;
}

.service-row li {
  position: relative;
  padding: 10px 0 10px 17px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.service-row li::before {
  position: absolute;
  top: 1.1em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--accent-strong);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 31px;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.method {
  background: var(--paper);
}

.process-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin: clamp(58px, 7vw, 96px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.process-list li {
  min-height: 280px;
  padding: clamp(32px, 4vw, 54px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list h3 {
  max-width: 430px;
  font-size: clamp(1.75rem, 2.7vw, 3rem);
}

.process-list p {
  max-width: 510px;
  margin: 80px 0 0;
  color: var(--muted);
}

.outputs {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  gap: clamp(64px, 10vw, 150px);
  align-items: start;
  background: var(--surface);
}

.outputs-intro {
  position: sticky;
  top: 42px;
}

.output-list {
  border-top: 1px solid var(--line-strong);
}

.output-list article {
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.output-list h3 {
  font-size: clamp(1.75rem, 2.7vw, 3rem);
}

.output-list p {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--muted);
}

.fit {
  background: var(--paper);
}

.fit-intro {
  max-width: 980px;
}

.fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(58px, 7vw, 96px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.fit-column {
  padding: clamp(34px, 4.5vw, 58px) clamp(28px, 4.5vw, 60px) clamp(34px, 4.5vw, 58px) 0;
}

.fit-column + .fit-column {
  padding-right: 0;
  padding-left: clamp(28px, 4.5vw, 60px);
  border-left: 1px solid var(--line);
}

.fit-column h3 {
  color: var(--accent-strong);
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
}

.fit-column-muted h3 {
  color: var(--muted);
}

.fit-column ul {
  margin-top: 30px;
}

.fit-column li {
  padding: 13px 0;
  color: var(--ink-soft);
}

.fit-column li + li {
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(64px, 10vw, 150px);
  border-bottom: 0;
  background: var(--surface-soft);
}

.contact-copy {
  padding-top: 14px;
}

.contact-copy > a {
  display: inline-block;
  margin-top: 30px;
  color: var(--accent-strong);
  font-weight: 750;
}

.intake-form {
  display: grid;
  gap: 22px;
  padding-top: 6px;
}

.form-required,
.form-action p,
.form-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-required {
  margin: 0;
}

.form-required span,
.intake-form label b {
  color: var(--accent-strong);
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.intake-form label {
  display: grid;
  gap: 8px;
}

.intake-form label > span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.intake-form input,
.intake-form select {
  min-height: 50px;
  padding: 0 13px;
}

.intake-form textarea {
  min-height: 138px;
  padding: 13px;
  resize: vertical;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgb(24 93 98 / 0.16);
}

.form-action {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
}

.form-action p {
  max-width: 210px;
  margin: 0;
  line-height: 1.45;
}

.form-status {
  min-height: 1.2em;
  margin: -6px 0 0;
}

.site-footer {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  grid-template-columns: 1fr auto auto;
  gap: 38px;
  align-items: center;
  margin-inline: auto;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-brand {
  justify-self: start;
  color: var(--ink);
  font-size: 0.96rem;
}

.site-footer p {
  margin: 0;
}

.error-page {
  min-height: 100dvh;
  background: var(--night-deep);
  color: var(--hero-ink);
}

.error-shell {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  min-height: 100dvh;
  grid-template-rows: auto 1fr;
  margin-inline: auto;
  padding: 28px 0 clamp(58px, 9vw, 120px);
}

.error-shell > .brand {
  justify-self: start;
}

.error-copy {
  align-self: center;
  max-width: 780px;
}

.error-copy h1 {
  max-width: 760px;
  color: var(--hero-ink);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.error-copy p {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.error-copy .button {
  margin-top: 32px;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px;
  }

  .header-inner > .brand {
    padding-inline: 14px;
  }

  .service-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }

  .service-row .text-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0;
  }
}

@media (max-width: 920px) {
  .site-header,
  .header-inner {
    min-height: 68px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-inner > .brand {
    grid-column: 1;
    justify-self: start;
    padding: 0;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 78px;
    min-height: 44px;
    grid-column: 2;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hero-ink);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
  }

  .nav-toggle-lines {
    position: relative;
    width: 18px;
    height: 12px;
  }

  .nav-toggle-lines i {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, top 180ms ease;
  }

  .nav-toggle-lines i:first-child {
    top: 2px;
  }

  .nav-toggle-lines i:last-child {
    top: 9px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child {
    top: 6px;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child {
    top: 6px;
    transform: rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100dvh - 68px);
    padding: 24px var(--gutter) 30px;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    border-bottom: 1px solid rgb(255 255 255 / 0.14);
    background: rgb(3 8 16 / 0.97);
    box-shadow: 0 22px 50px rgb(0 0 0 / 0.28);
    transition: visibility 180ms, opacity 180ms ease, transform 220ms var(--ease);
  }

  .mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav a {
    display: flex;
    min-height: 54px;
    align-items: center;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    color: var(--hero-ink);
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 560;
    letter-spacing: -0.035em;
    text-decoration: none;
  }

  .diagnosis-grid,
  .outputs,
  .contact {
    grid-template-columns: 1fr;
  }

  .diagnosis-note {
    max-width: 650px;
  }

  .outputs-intro {
    position: static;
  }

  .output-list {
    margin-top: 8px;
  }
}

@media (max-width: 700px) {
  :root {
    --section-space: 86px;
  }

  .hero {
    padding: 98px var(--gutter) clamp(132px, 19vh, 180px);
  }

  .hero::before {
    background:
      radial-gradient(ellipse 80% 27% at 50% 43%, rgb(3 8 16 / 0.77), transparent 75%),
      linear-gradient(180deg, rgb(3 8 16 / 0.18) 0%, rgb(3 8 16 / 0.04) 32%, rgb(3 8 16 / 0.22) 68%, rgb(3 8 16 / 0.64) 100%);
  }

  .hero-copy {
    transform: translateY(-1vh);
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
    line-height: 0.96;
  }

  .hero-lede {
    max-width: 520px;
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .section-intro h2,
  .outputs-intro h2,
  .contact h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .fault-lines li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .diagnosis-grid {
    gap: 48px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-row ul {
    padding-top: 0;
  }

  .service-row .text-link {
    grid-column: auto;
    margin-top: 0;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 0;
  }

  .process-list p {
    margin-top: 42px;
  }

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

  .fit-column,
  .fit-column + .fit-column {
    padding: 34px 0;
  }

  .fit-column + .fit-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (max-width: 700px) and (max-height: 650px) {
  .hero {
    padding-top: 76px;
    padding-bottom: 50px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero-lede {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 20px;
  }
}

@media (max-height: 650px) and (min-width: 701px) {
  .hero {
    padding-top: 94px;
    padding-bottom: 84px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7.8vh, 4.8rem);
  }

  .hero-lede {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 22px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .mobile-nav {
    background: var(--night-deep);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .button-quiet {
    background: var(--night);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
