:root {
  color-scheme: dark;
  --night: #000E38;
  --paper: #f0f1e9;
  --muted: #a1aaa0;
  --green: #b8f56a;
  --aqua: #8dd8cb;
  --line: rgba(240, 241, 233, 0.2);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background: var(--night);
}

button,
a {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 25px 5.2vw;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: auto;
  flex: 0 0 auto;
}

.brand-mark-inline {
  width: 280px;
}

.brand-mark-stacked {
  display: none;
  width: 126px;
}

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

.nav-link,
.language-toggle {
  color: rgba(240, 241, 233, 0.82);
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link:hover,
.language-toggle:hover {
  color: var(--green);
}

.language-toggle {
  padding: 8px 0 8px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  cursor: pointer;
}

.language-toggle span {
  padding: 0 5px;
  color: var(--muted);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: calc(100svh - 42px);
  overflow: hidden;
  align-items: center;
  padding: 112px 5.2vw 118px;
  background: var(--night);
}

.scene,
.scene-wash {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-wash {
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 14, 56, 0.9) 0%, rgba(0, 14, 56, 0.58) 32%, rgba(0, 14, 56, 0.03) 66%, rgba(0, 14, 56, 0.12) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(44vw, 620px);
  margin-top: -15px;
  transform: translateY(-120px);
}

.eyebrow {
  margin: 0;
  color: var(--aqua);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.13em;
}

.eyebrow span,
.specialties span {
  padding: 0 5px;
  color: var(--green);
}

.hero h1 {
  max-width: 18ch;
  margin: 22px 0 19px;
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 58px;
  font-weight: 600;
  line-height: 1.02;
}

.claim-s {
  color: var(--green);
  font-weight: inherit;
}

.specialties {
  margin: 0;
  color: rgba(240, 241, 233, 0.76);
  font-size: 13px;
  line-height: 1.7;
}

.active-step {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 47px;
}

.active-step-index {
  color: var(--green);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.active-step-name {
  min-width: 145px;
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 600;
  animation: stage-in 500ms ease both;
}

@keyframes stage-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-footer {
  position: absolute;
  z-index: 3;
  right: 5.2vw;
  bottom: 34px;
  left: 5.2vw;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.cycle-block {
  width: min(410px, 40vw);
}

.cycle-steps {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.cycle-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(240, 241, 233, 0.42);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: color 240ms ease;
}

.cycle-step > .cycle-step-index {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.cycle-step.is-active {
  color: var(--paper);
}

.cycle-step.is-active > .cycle-step-index {
  color: var(--green);
}

.cycle-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(240, 241, 233, 0.19);
}

.cycle-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--green));
  transition: width 120ms linear;
}

.cycle-count {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cycle-count span {
  padding: 0 3px;
  color: var(--green);
}

.motion-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.motion-button,
.replay-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(240, 241, 233, 0.24);
  border-radius: 2px;
  color: rgba(240, 241, 233, 0.78);
  background: rgba(5, 8, 7, 0.35);
  cursor: pointer;
  font-size: 11px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

[hidden] {
  display: none !important;
}

.motion-button:hover,
.replay-button:hover {
  border-color: var(--green);
  color: var(--paper);
  background: rgba(184, 245, 106, 0.08);
}

.motion-icon {
  color: var(--green);
  font-size: 12px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 5.2vw;
  bottom: 40%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(240, 241, 233, 0.56);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.scroll-arrow {
  color: var(--green);
  font-size: 17px;
  writing-mode: horizontal-tb;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1.5fr;
  gap: 9vw;
  padding: 82px 8vw 100px;
  border-top: 1px solid rgba(240, 241, 233, 0.12);
  background: var(--night);
}

.process-intro h2 {
  margin: 17px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 39px;
  font-weight: 400;
  line-height: 1.08;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-self: center;
}

.process-step {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.process-index {
  color: var(--green);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  margin: 21px 0 9px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 600;
}

.process-step p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .site-header {
    padding-right: 38px;
    padding-left: 38px;
  }

  .hero {
    align-items: flex-start;
    padding-right: 38px;
    padding-left: 38px;
    padding-top: 118px;
  }

  .hero-copy {
    width: min(100%, 570px);
    transform: none;
  }

  .hero h1 {
    max-width: 18ch;
    font-size: 46px;
  }

  .active-step {
    margin-top: 22px;
  }

  .scene-wash {
    background: linear-gradient(180deg, rgba(5, 8, 7, 0.82) 0%, rgba(5, 8, 7, 0.45) 33%, rgba(5, 8, 7, 0.04) 66%, rgba(5, 8, 7, 0.55) 100%);
  }

  .hero-footer {
    right: 38px;
    left: 38px;
  }

  .scroll-cue {
    right: 38px;
  }

  .process-section {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 70px 7vw 80px;
  }

  .process-steps {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 19px 21px;
  }

  .brand {
    gap: 0;
  }

  .brand-mark {
    width: auto;
  }

  .brand-mark-inline {
    width: min(203px, calc(100vw - 185px));
  }

  .header-nav {
    gap: 13px;
  }

  .nav-link,
  .language-toggle {
    font-size: 10px;
  }

  .language-toggle {
    padding-left: 10px;
  }

  .hero {
    min-height: min(840px, calc(100svh - 28px));
    align-items: start;
    padding: 94px 22px 174px;
  }

  .scene-wash {
    background: linear-gradient(180deg, rgba(0, 14, 56, 0.48) 0%, rgba(0, 14, 56, 0.04) 33%, rgba(0, 14, 56, 0.12) 61%, rgba(0, 14, 56, 0.82) 83%, rgba(0, 14, 56, 0.97) 100%);
  }

  .hero-copy {
    width: 100%;
    margin: 0;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero h1 {
    max-width: 18ch;
    margin: 13px 0 9px;
    font-size: 33px;
    line-height: 1.02;
  }

  .specialties {
    font-size: 11px;
  }

  .active-step {
    gap: 9px;
    margin-top: 17px;
  }

  .active-step-name {
    min-width: 100px;
    font-size: 23px;
  }

  .hero-footer {
    right: 22px;
    bottom: 23px;
    left: 22px;
    display: block;
  }

  .cycle-block {
    width: 100%;
  }

  .cycle-steps {
    margin-bottom: 8px;
  }

  .cycle-step {
    gap: 5px;
    font-size: 13px;
  }

  .cycle-step span {
    font-size: 8px;
  }

  .cycle-count {
    display: inline-block;
  }

  .motion-controls {
    position: static;
    justify-content: flex-start;
    margin-top: 12px;
  }

  .motion-button,
  .replay-button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .process-section {
    gap: 31px;
    padding: 49px 23px 65px;
  }

  .process-intro h2 {
    font-size: 32px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .process-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 11px;
    padding-top: 12px;
  }

  .process-index {
    grid-row: span 2;
  }

  .process-step h3 {
    margin: 0 0 5px;
    font-size: 22px;
  }

  .process-step p {
    max-width: 42ch;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .brand-mark-inline {
    display: none;
  }

  .brand-mark-stacked {
    display: block;
    width: 126px;
  }
}

@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;
  }
}