/* Inter (SIL Open Font License 1.1) — self-hosted latin variable subset.
   DESIGN.md names Inter as the PPNeueMontreal substitute; loading it locally
   keeps the geometry consistent across platforms with no third-party request. */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --void: #000000;
  --white: #ffffff;
  --ash: #9a9a9a;
  --mist: #bdbdbd;
  --iris: #8052ff;
  --saffron: #ffb829;
  --verdant: #15846e;
  --radius: 24px;
  --max: 1280px;
  --font: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* DESIGN.md type scale — hierarchy comes from scale + tracking, never weight.
     The 113px display cap is only reached on very wide screens: in a half-width
     hero column this headline needs ~15 characters per line to keep the CTA
     above the fold on a 900px-tall laptop. */
  --step-display: clamp(2.75rem, 1.9rem + 3.1vw, 7.0625rem);
  --step-heading-lg: clamp(2.35rem, 1.7rem + 3vw, 4.875rem);
  --step-heading-sm: clamp(1.9rem, 1.4rem + 1.6vw, 2.625rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.16vw, 1.125rem);

  /* -0.04em on every display size 42px and up; -0.02em at 24px. */
  --track-display: -0.04em;
  --track-mid: -0.02em;
  --track-label: 0.025em;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--void);
  color: var(--white);
  font-family: var(--font);
  font-feature-settings: "ss01" 1;
  font-weight: 200;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 5px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 14px;
  left: 14px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: 999px;
  background: var(--iris);
  color: var(--white);
  font-weight: 600;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: transparent;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: min(330px, 62vw);
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ash);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.primary-nav a:not(.button) {
  padding: 8px 0;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}

.button-primary {
  background: var(--iris);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--iris) 82%, var(--white));
  transform: translateY(-1px);
}

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

.ghost-link {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--iris);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100svh - 230px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.label {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  line-height: 1.2;
  text-transform: uppercase;
}

.saffron {
  color: var(--saffron);
}

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

h1,
h2 {
  font-weight: 400;
  letter-spacing: var(--track-display);
}

h1 {
  max-width: min(18ch, 100%);
  margin-bottom: 28px;
  font-size: var(--step-display);
  line-height: 0.9;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: var(--step-heading-lg);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lede {
  max-width: 62ch;
  margin-bottom: 34px;
  color: var(--white);
  font-size: var(--step-body);
  font-weight: 200;
  line-height: 1.5;
  text-wrap: pretty;
}

.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.constellation-wrap {
  position: relative;
  min-height: 640px;
}

/* canvas is a replaced element: `width: auto` resolves to its intrinsic
   300x150, not to the inset box, so the size must be stated explicitly. */
.constellation {
  position: absolute;
  inset: -70px -120px -70px -20px;
  width: calc(100% + 140px);
  height: calc(100% + 140px);
  max-width: none;
}

/* Ambient triangle field drifting behind the whole page (DESIGN.md > Ambient
   Particle Field). Sits under all content and never intercepts pointer events. */
.ambient-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
footer {
  position: relative;
  z-index: 1;
}

.statement,
.section,
.contact {
  scroll-margin-top: 110px;
  padding: 120px 0;
  background: var(--void);
}

.section-tight {
  padding-block: 78px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.68fr);
  align-items: start;
  gap: 72px;
}

.copy-stack {
  color: var(--mist);
  font-size: var(--step-body);
  text-wrap: pretty;
}

.copy-stack p:not(.label),
.section-copy p,
.contact-copy p {
  margin-bottom: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: 84px;
}

.section-visual {
  position: relative;
  min-height: 560px;
}

/* The delivered view: an ordered lattice with one row lifted out of it. Same
   triangular vocabulary as the hero, deliberately opposite in behaviour —
   the hero drifts and converges, this one holds its structure. */
.orbit-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.section-copy h2 {
  margin-bottom: 40px;
}

.text-list,
.process-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.text-list {
  display: grid;
  gap: 24px;
}

.text-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  gap: 24px;
}

.text-list strong {
  color: var(--white);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: var(--track-mid);
  line-height: 1.25;
}

.text-list span {
  color: var(--mist);
  font-size: var(--step-body);
  text-wrap: pretty;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: 84px;
}

.process-head {
  position: sticky;
  top: 132px;
  align-self: start;
}

.process-list {
  display: grid;
  gap: 54px;
}

.process-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px 28px;
}

.process-list span {
  grid-row: span 2;
  color: var(--iris);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: var(--track-mid);
  font-variant-numeric: tabular-nums;
}

.process-list strong {
  color: var(--white);
  font-size: var(--step-heading-sm);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.08;
}

.process-list p {
  max-width: 62ch;
  margin: 0;
  color: var(--mist);
  font-size: var(--step-body);
  text-wrap: pretty;
}

.proof-line {
  max-width: 1040px;
  margin-inline: auto;
}

.proof-line h2 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  gap: 84px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 28px;
}

.contact-copy p {
  max-width: 62ch;
  color: var(--mist);
  font-size: var(--step-body);
  text-wrap: pretty;
}

.contact-direct {
  margin-top: 26px;
  color: var(--ash);
  font-size: 14px;
}

.contact-direct a {
  color: var(--saffron);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  gap: 22px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--ash);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ash);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  outline: 0;
}

input,
select {
  min-height: 46px;
}

select option {
  color: #000000;
}

textarea {
  min-height: 126px;
  padding-top: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--iris);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--saffron);
  font-size: 14px;
  font-weight: 400;
}

footer {
  padding: 54px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ash);
}

.footer-brand img {
  width: min(260px, 70vw);
}

footer p,
footer small {
  margin: 0;
}

footer p {
  max-width: 360px;
  font-size: 14px;
}

footer small {
  font-size: 12px;
}

/* Scoped to .js so the page still renders its content if the script fails to
   load — otherwise every revealed block stays at opacity 0 forever. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  /* minmax(0, 1fr) rather than 1fr: a bare 1fr track has an implicit `auto`
     minimum, so long display type refuses to shrink and overflows the viewport. */
  .hero-grid,
  .two-column,
  .split-section,
  .process-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 18px;
  }

  .constellation-wrap {
    min-height: 520px;
  }

  .constellation {
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
  }

  .process-head {
    position: static;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    min-height: 78px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 78px 16px auto;
    display: none;
    padding: 22px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--void) 92%, var(--iris));
  }

  .primary-nav.is-open {
    display: grid;
    gap: 18px;
  }

  .nav-cta {
    width: max-content;
  }

  .hero {
    padding-top: 120px;
  }

  .statement,
  .section,
  .contact {
    padding-block: 86px;
  }

  .text-list li,
  .process-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-list span {
    grid-row: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 200px;
  }

  h1 {
    line-height: 0.94;
  }

  .action-row,
  .button {
    width: 100%;
  }

  .constellation-wrap {
    min-height: 360px;
  }

  .section-visual {
    min-height: 360px;
  }
}
