@import "tailwindcss";

@font-face {
  font-family: "Sydo Haas";
  src: url("/fonts/NeueHaasDisplayRoman.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sydo Haas";
  src: url("/fonts/NeueHaasDisplayMedium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Sydo Haas";
  src: url("/fonts/NeueHaasDisplayBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #00274d;
  --graphite: #2c2c2c;
  --paper: #f2f4f3;
  --raised: #e4e9e8;
  --muted: #626d73;
  --hairline: #c8d0d1;
  --white: #fbfcfb;
  --page-gutter: clamp(1.25rem, 4.4vw, 5.5rem);
  --content-max: 100rem;
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: "Sydo Haas", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 40;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.page-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 62%, transparent);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(16px);
}

.wordmark {
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.4rem, 2.4vw, 3rem);
  color: #34424a;
  font-size: 0.93rem;
}

.desktop-nav > a:not(.nav-cta) {
  position: relative;
}

.desktop-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav > a:not(.nav-cta):hover::after,
.desktop-nav > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.15rem 1rem;
  color: var(--white);
  white-space: nowrap;
  background: var(--navy);
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    background 200ms ease;
}

.nav-cta:hover {
  background: #073965;
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(1px);
}

.mobile-menu {
  display: none;
  justify-self: end;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 100dvh;
  padding: 6rem var(--page-gutter) 3.5rem;
  isolation: isolate;
}

.hero-copy {
  z-index: 2;
  grid-column: 1 / span 7;
  align-self: end;
  max-width: 65rem;
  padding-bottom: clamp(0rem, 2.5vh, 2rem);
}

.hero-label,
.plain-label {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(4rem, 7vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -0.064em;
  line-height: 0.88;
}

.hero-support {
  max-width: 35rem;
  margin: 1.65rem 0 0;
  color: #47535a;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.4rem;
  padding: 0.2rem 1.45rem;
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 210ms cubic-bezier(0.16, 1, 0.3, 1),
    background 210ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-primary:hover {
  background: #073965;
  transform: translateY(-2px);
}

.button-primary:active {
  transform: translateY(1px) scale(0.99);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}

.text-link svg {
  transition: transform 210ms cubic-bezier(0.16, 1, 0.3, 1);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.state-field {
  position: absolute;
  z-index: 0;
  top: calc(var(--header-height) + 1rem);
  right: var(--page-gutter);
  width: min(62vw, 62rem);
  height: min(76vh, 46rem);
  color: var(--navy);
  opacity: 0.94;
}

.state-field::before {
  position: absolute;
  inset: 15% 5% 8% 20%;
  z-index: -1;
  content: "";
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--navy) 5%, transparent),
    transparent 69%
  );
}

.state-field svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.state-node {
  fill: var(--paper);
  stroke: var(--navy);
  stroke-width: 1.2;
  opacity: 0.44;
  transform-box: fill-box;
}

.ghost-route {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25;
  stroke-dasharray: 3 7;
  opacity: 0.38;
}

.hero-route {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.goal-mark circle {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
}

.goal-mark .goal-fill {
  fill: var(--navy);
}

.state-field text {
  fill: var(--muted);
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.section-pad {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: clamp(7.5rem, 12vw, 11rem) var(--page-gutter);
}

.section-intro {
  display: grid;
  gap: 2.5rem;
  max-width: 78rem;
}

.section-intro h2,
.commission-copy h2,
.erasteel-copy h2,
.lab h2,
.closing h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 0.94;
}

.section-intro h2 {
  max-width: 18ch;
}

.scrubbed-statement {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(1.65rem, 3.3vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.scrub-word {
  opacity: 0.13;
}

.capability-map {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(16rem, 1fr);
  gap: 1px;
  margin-top: clamp(4.5rem, 8vw, 7rem);
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.cap-zone {
  position: relative;
  display: flex;
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper);
  outline-offset: -3px;
  transition:
    color 350ms cubic-bezier(0.16, 1, 0.3, 1),
    background 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cap-wide {
  grid-column: span 7;
}

.cap-narrow {
  grid-column: span 5;
}

.cap-third {
  grid-column: span 4;
}

.cap-node {
  position: absolute;
  top: clamp(1.5rem, 3vw, 3rem);
  right: clamp(1.5rem, 3vw, 3rem);
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.cap-zone::after {
  position: absolute;
  top: 3.35rem;
  right: 4rem;
  left: 2rem;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.14;
  transform: scaleX(0.22);
  transform-origin: right;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cap-zone h3 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cap-zone p {
  max-width: 31rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.cap-zone:hover,
.cap-zone:focus {
  color: var(--white);
  background: var(--navy);
}

.cap-zone:hover h3,
.cap-zone:hover p,
.cap-zone:focus h3,
.cap-zone:focus p {
  color: inherit;
}

.cap-zone:hover::after,
.cap-zone:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

.commissioning {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  background: var(--raised);
}

.commission-copy {
  max-width: 72rem;
}

.commission-copy h2 {
  max-width: 15ch;
}

.commission-copy p,
.erasteel-copy > p:last-child,
.lab-copy > p,
.closing p {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.45;
}

.commission-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.75rem;
  align-self: center;
  margin: clamp(4rem, 8vh, 7rem) 0;
}

.commission-line,
.erasteel-line {
  position: absolute;
  top: 0.45rem;
  right: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--navy) 20%, transparent);
}

.commission-progress,
.erasteel-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
}

.commission-step {
  position: relative;
  padding-top: 2.4rem;
  opacity: 0.25;
  transform: translateY(1.25rem);
}

.step-marker {
  position: absolute;
  top: 0.18rem;
  left: 0;
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--raised);
}

.commission-step h3,
.erasteel-stage h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.commission-step p,
.erasteel-stage p {
  max-width: 14rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.commission-link {
  justify-self: start;
}

.erasteel {
  display: grid;
  align-content: center;
  min-height: 100dvh;
}

.erasteel-top {
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.erasteel-copy h2 {
  max-width: none;
  font-size: clamp(2.4rem, 3.7vw, 4rem);
}

.erasteel-headline > span {
  display: block;
  white-space: nowrap;
}

.erasteel-image {
  position: relative;
  min-height: clamp(24rem, 45vw, 38rem);
  overflow: hidden;
  background: var(--navy);
}

.erasteel-image img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform-origin: center;
}

.erasteel-workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.7vw, 3rem);
  margin-top: clamp(3rem, 6vh, 5.5rem);
}

.erasteel-line {
  top: 0;
}

.erasteel-stage {
  padding-top: 1.7rem;
  opacity: 0.28;
  transform: translateY(1rem);
}

.erasteel-stage h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.methodology-row,
.metric-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 2.2fr) auto;
  gap: 2rem;
  align-items: start;
  margin-top: clamp(3rem, 6vh, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.methodology-row > h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.methodology-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.method-item {
  margin: 0;
  color: #47535a;
  font-size: 0.95rem;
}

.methodology-disclosure {
  width: min(17rem, 100%);
}

.methodology-disclosure summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 500;
}

.methodology-disclosure p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.metric-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric {
  display: grid;
  gap: 0.45rem;
}

.metric strong {
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.metric span,
.metric-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-row small {
  grid-column: 1 / -1;
}

.lab {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  min-height: 90dvh;
}

.lab h2 {
  max-width: 12ch;
}

.inline-lab-image {
  position: relative;
  display: inline-block;
  width: clamp(5.5rem, 9vw, 9rem);
  height: 0.68em;
  overflow: hidden;
  vertical-align: 0.04em;
}

.inline-lab-image img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.team-pending {
  position: relative;
  min-height: clamp(25rem, 47vw, 42rem);
  overflow: hidden;
  background: var(--raised);
}

.team-pending img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.team-pending::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 39, 77, 0.62), transparent 38%);
}

.team-pending p {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.2rem;
  left: 1.5rem;
  margin: 0;
  color: var(--white);
  font-size: 0.9rem;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  min-height: 72dvh;
  border-top: 1px solid var(--hairline);
}

.closing h2 {
  max-width: 13ch;
}

.closing-button {
  min-width: 14.5rem;
}

.launch-note {
  grid-column: 1 / -1;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2rem var(--page-gutter);
  border-top: 1px solid var(--hairline);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  color: var(--navy);
  font-size: 0.9rem;
}

@media (max-width: 899px) {
  :root {
    --header-height: 4rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu[open] {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }

  .mobile-menu[open] summary {
    text-align: right;
  }

  .mobile-menu nav {
    display: grid;
    gap: 1.25rem;
    padding: 2rem 0 1rem;
    color: var(--navy);
    font-size: 1.35rem;
  }

  .hero {
    display: flex;
    min-height: 100dvh;
    padding-top: 5.5rem;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-copy {
    order: 2;
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 15vw, 5.7rem);
    line-height: 0.9;
  }

  .hero-support {
    max-width: 29rem;
  }

  .state-field {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    width: 100%;
    height: min(39vh, 22rem);
    margin-bottom: -1rem;
  }

  .section-pad {
    padding: 7.5rem var(--page-gutter);
  }

  .section-intro h2,
  .commission-copy h2,
  .erasteel-copy h2,
  .lab h2,
  .closing h2 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .capability-map {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .cap-wide,
  .cap-narrow,
  .cap-third {
    grid-column: 1;
  }

  .cap-zone {
    min-height: 14rem;
  }

  .commissioning,
  .erasteel {
    min-height: auto;
  }

  .commission-track {
    grid-template-columns: 1fr;
    gap: 0;
    margin-block: 3.5rem;
    padding-left: 1.2rem;
  }

  .commission-line {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0.27rem;
    width: 1px;
    height: auto;
  }

  .commission-progress {
    height: 100%;
    transform: scaleY(1);
  }

  .commission-step {
    padding: 0 0 2.4rem 1.2rem;
    opacity: 1;
    transform: none;
  }

  .step-marker {
    top: 0.52rem;
    left: -1.2rem;
  }

  .erasteel-top,
  .lab {
    grid-template-columns: 1fr;
  }

  .erasteel-headline > span {
    display: inline;
    white-space: normal;
  }

  .erasteel-headline > span::after {
    content: " ";
  }

  .erasteel-copy {
    order: 1;
  }

  .erasteel-image {
    order: 2;
    min-height: 23rem;
  }

  .erasteel-workflow {
    display: flex;
    gap: 1rem;
    margin-right: calc(var(--page-gutter) * -1);
    padding-right: var(--page-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .erasteel-workflow::-webkit-scrollbar {
    display: none;
  }

  .erasteel-line {
    display: none;
  }

  .erasteel-stage {
    min-width: min(78vw, 22rem);
    min-height: 12rem;
    padding: 1.5rem;
    opacity: 1;
    background: var(--raised);
    scroll-snap-align: start;
    transform: none;
  }

  .methodology-row,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .methodology-items {
    grid-template-columns: 1fr;
  }

  .team-pending {
    min-height: 28rem;
  }

  .closing {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 70dvh;
  }

  .closing-button {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 1.5rem;
  }

  .hero-actions {
    align-items: center;
    gap: 0.8rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    width: auto;
    min-height: 3.15rem;
    padding-inline: 1rem;
    font-size: 0.92rem;
  }

  .state-field {
    height: 23vh;
    margin-bottom: -1.6rem;
  }

  .section-pad {
    padding-block: 6.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-route {
    stroke-dashoffset: 0;
  }

  .scrub-word,
  .commission-step,
  .erasteel-stage,
  .method-item {
    opacity: 1;
    transform: none;
  }

  .commission-progress,
  .erasteel-progress {
    transform: scaleX(1);
  }
}
