:root {
  --flight-blue: #0b5394;
  --deep-navy: #1b2354;
  --navy-deep: #11183e;
  --action-ink: #1a203d;
  --safety-orange: #f6911e;
  --safety-orange-hover: #ffad4f;
  --dossier-white: #f7f9fb;
  --steel-mist: #dce3ea;
  --steel-soft: #d5e0eb;
  --graphite: #162331;
  --muted-blue: #4f6680;
  --muted-strong: #5b6b7b;
  --rule: #b9c7d5;
  --rule-dark: rgba(216, 231, 246, 0.26);
  --white: #fff;
  --success: #1f6b4f;
  --success-wash: #dcefe7;
  --error: #a52b2b;
  --error-wash: #f6dddd;
  --page-width: min(1440px, calc(100vw - clamp(2rem, 6vw, 6rem)));
  --header-height: 5rem;
  --display: "Barlow", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
}

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

html {
  background: var(--dossier-white);
  color: var(--graphite);
  font-family: var(--body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--dossier-white);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--body);
}

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

a {
  color: inherit;
}

button,
summary,
select {
  cursor: pointer;
}

button,
input,
select,
textarea {
  border-radius: 0;
}

::selection {
  background: var(--safety-orange);
  color: var(--action-ink);
}

:focus-visible {
  outline: 3px solid var(--safety-orange);
  outline-offset: 4px;
}

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

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid;
}

.site-header--dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-header--light {
  color: var(--deep-navy);
  border-color: var(--rule);
  background: var(--dossier-white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  padding: 0 clamp(1rem, 3vw, 3rem);
  color: inherit;
  text-decoration: none;
}

.brand__initial {
  position: relative;
  display: inline-block;
}

.brand__initial::after {
  content: "";
  position: absolute;
  left: 0.02em;
  bottom: -0.18em;
  width: 0.74em;
  height: 0.14em;
  background: var(--safety-orange);
  transform-origin: left;
  animation: brand-calibrate 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand__initial::after,
.brand:focus-visible .brand__initial::after {
  transform: scaleX(1.4);
}

@keyframes brand-calibrate {
  from {
    transform: scaleX(0);
  }
}

.brand__name {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.text-link svg,
.button-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 180ms ease-out;
}

.text-link:hover svg,
.button-link:hover svg {
  transform: translateX(0.22rem);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.hero::before,
.conversion__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 231, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 231, 246, 0.06) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to bottom, transparent 0, var(--white) 20%, var(--white) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: var(--page-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(1.25rem, 5vh, 3.5rem)) 0 clamp(2rem, 6vh, 4rem);
}

.hero-cad-panel {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(216, 231, 246, 0.24);
  background: var(--navy-deep);
  pointer-events: none;
  opacity: 0;
  animation: schematic-fade 550ms ease-out forwards;
}

/* Short laptop viewports: keep the whole hero stack above the fold. */
@media (min-width: 781px) and (max-height: 760px) {
  .hero-cad-panel {
    max-width: 24rem;
    margin-top: 1.5rem;
  }
}

.hero-cad-panel::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 2px solid var(--safety-orange);
  border-left: 2px solid var(--safety-orange);
  animation: corner-draw 400ms cubic-bezier(0.33, 1, 0.68, 1) 250ms both;
}

.hero-cad-panel::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  border-right: 2px solid var(--safety-orange);
  border-bottom: 2px solid var(--safety-orange);
  animation: corner-draw 400ms cubic-bezier(0.33, 1, 0.68, 1) 450ms both;
}

@keyframes corner-draw {
  from {
    width: 0;
    height: 0;
  }
}

.hero-cad {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke-width: 1.1;
}

.hero-cad path,
.hero-cad rect,
.hero-cad circle {
  vector-effect: non-scaling-stroke;
}

.hero-cad__airframe {
  stroke: rgba(216, 231, 246, 0.52);
}

.hero-cad__frames {
  stroke: rgba(169, 199, 229, 0.18);
  opacity: 0;
  animation: schematic-fade 600ms ease-out 900ms forwards;
}

.hero-cad__marine {
  stroke: rgba(169, 199, 229, 0.44);
}

.hero-cad__dashed {
  stroke-dasharray: 5 6;
}

.hero-cad__datum {
  stroke: rgba(246, 145, 30, 0.42);
  stroke-dasharray: 11 5 2 5;
  opacity: 0;
  animation: schematic-fade 600ms ease-out 1150ms forwards;
}

.hero-cad__water {
  stroke: rgba(169, 199, 229, 0.26);
  stroke-dasharray: 7 7;
  opacity: 0;
  animation: schematic-fade 600ms ease-out 1250ms forwards;
}

.hero-cad__dims {
  stroke: rgba(246, 145, 30, 0.38);
}

.hero-cad__airframe path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: schematic-draw 1000ms cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.hero-cad__airframe path:nth-child(1) { animation-delay: 150ms; }
.hero-cad__airframe path:nth-child(2) { animation-delay: 380ms; }
.hero-cad__airframe path:nth-child(3) { animation-delay: 520ms; }
.hero-cad__airframe path:nth-child(4) { animation-delay: 640ms; }

.hero-cad__airframe circle {
  opacity: 0;
  animation: schematic-fade 600ms ease-out 1450ms forwards;
}

.hero-cad__marine path,
.hero-cad__marine rect {
  opacity: 0;
  transform: translateY(14px);
  animation: marine-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cad__marine path:nth-child(1),
.hero-cad__marine rect:nth-child(1) { animation-delay: 850ms; }
.hero-cad__marine path:nth-child(2),
.hero-cad__marine rect:nth-child(2) { animation-delay: 980ms; }

.hero-cad__dims path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: schematic-draw 900ms cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.hero-cad__dims path:nth-child(1) { animation-delay: 1350ms; }
.hero-cad__dims path:nth-child(2) { animation-delay: 1500ms; }

.hero-cad__label {
  fill: rgba(169, 199, 229, 0.6);
  stroke: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: schematic-fade 500ms ease-out 1650ms forwards;
}

.hero__title {
  max-width: none;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.25rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title em {
  color: var(--safety-orange);
  font-style: normal;
}

.hero__support {
  display: flex;
  align-items: center;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3.35rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}

.button-link--primary {
  border-color: var(--safety-orange);
  background: var(--safety-orange);
  color: var(--action-ink);
}

.button-link:hover,
.button-link:focus-visible {
  border-color: var(--safety-orange);
  background: var(--safety-orange);
  color: var(--action-ink);
}

.conversion {
  position: relative;
  background: var(--dossier-white);
}

.conversion__sticky {
  position: relative;
}

.conversion__viewport {
  position: relative;
  min-height: min(78rem, 100svh);
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.conversion__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.04) brightness(0.62);
}

.conversion__poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 62, 0.7);
}

.conversion__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.webgl-ready .conversion {
  height: 660svh;
}

.webgl-ready .conversion__sticky {
  position: sticky;
  top: 0;
  /* 100svh matches the viewport with the browser's UI fully expanded. On iOS,
     scrolling can collapse the bottom bar mid-animation, growing the real
     viewport past that — without the buffer, the next section's white
     background shows through the gap below this sticky box. */
  height: calc(100svh + 50px);
  overflow: hidden;
}

.webgl-ready .conversion__viewport {
  height: 100%;
  min-height: 0;
}

.webgl-ready .conversion__canvas,
.webgl-ready .conversion__stage {
  opacity: 1;
}

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

.conversion__stage .svg-sign-sm {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: #8fa3be;
}

.conversion__stage .svg-sign-lg {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
  fill: #ffc61a;
}

/* Storytelling layer over the scene: scrim, progress rail, stage readout. */
.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  pointer-events: none;
}

.webgl-ready .hud {
  display: block;
}

.hud__scrim {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52%;
  background: linear-gradient(
    to top,
    rgba(17, 24, 62, 0.92) 0%,
    rgba(17, 24, 62, 0.72) 28%,
    rgba(17, 24, 62, 0.3) 62%,
    rgba(17, 24, 62, 0) 100%
  );
}

.rail {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 58px;
  height: 2px;
  background: rgba(169, 199, 229, 0.4);
}

.rail__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #ffc61a;
}

.readout {
  position: absolute;
  left: 26px;
  bottom: 96px;
  max-width: 46ch;
}

.readout__stage {
  margin: 0 0 6px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.readout__line {
  margin: 0;
  color: #c5d6e7;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  text-wrap: balance;
}

.readout.is-swapping .readout__stage,
.readout.is-swapping .readout__line {
  opacity: 0;
}

.readout__stage,
.readout__line {
  transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hint {
  position: absolute;
  right: 26px;
  bottom: 96px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9c7e5;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 400ms ease-out;
}

.hint__arrow {
  width: 1px;
  height: 22px;
  background: linear-gradient(#ffc61a, rgba(255, 198, 26, 0));
  animation: hint-drift 1900ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes hint-drift {
  0% {
    transform: translateY(-7px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(7px);
    opacity: 0;
  }
}

.hint.is-gone {
  opacity: 0;
}

.webgl-ready .conversion__poster,
.webgl-ready .conversion__poster-shade {
  opacity: 0;
  pointer-events: none;
}

.conversion__copies {
  position: relative;
  z-index: 4;
  width: var(--page-width);
  margin: 7rem auto 5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
}

.conversion__copy {
  min-height: 19rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--dossier-white);
  color: var(--graphite);
}

.conversion__copy h2 {
  max-width: 15ch;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.conversion__copy p {
  max-width: 63ch;
  margin: 0;
  color: var(--muted-blue);
}

.conversion__copy-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--flight-blue);
  font-size: 0.88rem;
  font-weight: 600;
}

.conversion__copy-index {
  color: var(--safety-orange);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
}

/* With the scene running, the readout narrates; the cards stay in the
   document as the screen-reader and fallback narrative. */
.webgl-ready .conversion__copies {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  clip-path: inset(50%);
  background: transparent;
}

.webgl-ready .conversion__copy {
  display: none;
}

.webgl-ready .conversion__copy.is-active {
  display: block;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rule);
  gap: 1px;
  border-bottom: 1px solid var(--rule);
}

.status-band__item {
  min-height: 9rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  background: var(--white);
}

.status-band__label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--flight-blue);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-band__item p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section__inner {
  width: var(--page-width);
  margin: 0 auto;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 4fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section__head--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 56rem;
}

.section__head h2 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section__head p {
  margin: 0;
  color: var(--muted-blue);
  font-size: 1.05rem;
}

.applications {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.applications::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 231, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 231, 246, 0.06) 1px, transparent 1px);
  background-size: 5rem 5rem;
}

.applications .section__inner {
  position: relative;
  z-index: 1;
}

.application-grid {
  border-top: 1px solid rgba(216, 231, 246, 0.22);
}

.application {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 4rem) 0;
  border-bottom: 1px solid rgba(216, 231, 246, 0.22);
}

.application:nth-child(even) .application__image {
  order: -1;
}

.application__brief {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.application__brief h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.application__brief h3::after {
  content: "";
  position: absolute;
  left: 0.04em;
  bottom: -0.22em;
  width: 1.4em;
  height: 3px;
  background: var(--safety-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.application:hover .application__brief h3::after {
  transform: scaleX(1);
}

.application__num {
  margin-top: 0.16em;
  color: var(--safety-orange);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.application__brief > p {
  max-width: 42ch;
  margin: 0.4rem 0 0;
  color: #c5d6e7;
  font-size: 1rem;
  line-height: 1.6;
}

.application__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.application__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.application:hover .application__image img {
  transform: scale(1.025);
}

.application__label {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  background: var(--safety-orange);
  color: var(--action-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.development {
  background: var(--deep-navy);
  color: var(--white);
}

.development .section__head p {
  color: #c5d6e7;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.phase {
  min-height: 22rem;
  padding: 2rem clamp(1.2rem, 3vw, 2.5rem);
  border-right: 1px solid var(--rule-dark);
}

.phase:last-child {
  border-right: 0;
}

.phase__index {
  display: block;
  margin-bottom: 4rem;
  color: var(--safety-orange);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.phase h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.phase p {
  margin: 0;
  color: #c5d6e7;
}

.close-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: clamp(3rem, 7vw, 6rem) max(calc((100vw - 1440px) / 2), clamp(1rem, 3vw, 3rem));
  background: var(--flight-blue);
  color: var(--white);
}

.close-cta h2 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--rule);
  background: var(--dossier-white);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  color: var(--deep-navy);
  font-family: var(--display);
  letter-spacing: 0.06em;
}

.site-footer nav {
  justify-self: end;
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: var(--deep-navy);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.partnership-page {
  padding-top: var(--header-height);
}

@keyframes schematic-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes schematic-fade {
  to {
    opacity: 1;
  }
}

@keyframes marine-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.partnership-layout {
  width: var(--page-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--dossier-white);
}

.partnership-head {
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.partnership-head h1 {
  max-width: 20ch;
  margin: 0;
  color: var(--deep-navy);
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.partnership-form-wrap {
  min-width: 0;
  max-width: 62rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--deep-navy);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #8fa2b5;
  background: var(--dossier-white);
  color: var(--graphite);
  font-size: 1rem;
}

.field textarea {
  min-height: 11rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--flight-blue);
  outline: 3px solid rgba(11, 83, 148, 0.18);
  outline-offset: 1px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-blue);
}

.field__hint {
  color: var(--muted-blue);
  font-size: 0.75rem;
}

.field:focus-within > label {
  color: var(--flight-blue);
}

.field:focus-within > label::after {
  content: " //";
  color: var(--safety-orange);
}

.field__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.char-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.char-counter__track {
  display: block;
  width: 5.5rem;
  height: 3px;
  background: var(--steel-mist);
  overflow: hidden;
}

.char-counter__bar {
  display: block;
  height: 100%;
  background: var(--safety-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}

.char-counter[data-state="ok"] .char-counter__bar {
  background: var(--flight-blue);
}

.char-counter__value {
  min-width: 4.9rem;
  color: var(--muted-blue);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.char-counter[data-state="ok"] .char-counter__value {
  color: var(--flight-blue);
}

.form-grid.is-sent {
  display: none;
}

.form-receipt[hidden] {
  display: none;
}

.form-receipt {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  max-width: 34rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--success);
  background: var(--success-wash);
}

.form-receipt__mark {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--success);
  stroke-width: 2.4;
}

.form-receipt__mark rect,
.form-receipt__mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: schematic-draw 700ms cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.form-receipt__mark path {
  animation-delay: 450ms;
}

.form-receipt__stamp {
  margin: 0.4rem 0 0;
  color: var(--deep-navy);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-receipt__copy {
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
}

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0.6rem 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--flight-blue);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 14rem;
  min-height: 3.35rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border: 1px solid var(--safety-orange);
  background: var(--safety-orange);
  color: var(--action-ink);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 180ms ease-out;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--safety-orange-hover);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.submit-button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  margin: 0;
  padding: 1rem;
  font-size: 0.88rem;
}

.form-status[data-state="success"],
.form-status[data-state="preview"] {
  display: block;
  background: var(--success-wash);
  color: var(--success);
}

.form-status[data-state="error"] {
  display: block;
  background: var(--error-wash);
  color: var(--error);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 1100px) {
  .partnership-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .application {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .application:nth-child(even) .application__image {
    order: 0;
  }

  .phase {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .phase:last-child {
    border-bottom: 0;
  }

  .phase__index {
    margin-bottom: 2rem;
  }
}

@media (max-width: 780px) {
  :root {
    --page-width: calc(100vw - 2rem);
    --header-height: 4.25rem;
  }

  .brand {
    padding: 0 1rem;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 2.4rem);
    padding-bottom: 3rem;
  }

  .hero__title {
    font-size: clamp(3rem, 15vw, 4.6rem);
    line-height: 0.9;
  }

  .hero-cad-panel {
    max-width: none;
    margin-top: 1.5rem;
  }

  .hero__support {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__actions .button-link {
    width: 100%;
  }

  .hero__status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.65rem;
  }

  .hero__status span:last-child {
    grid-column: 1 / -1;
  }

  .conversion__viewport {
    min-height: 42rem;
  }

  .webgl-ready .conversion {
    height: 620svh;
  }

  .rail {
    left: 18px;
    right: 18px;
    bottom: calc(max(26px, env(safe-area-inset-bottom)) + 6px);
  }

  .readout {
    left: 18px;
    right: 18px;
    bottom: calc(max(26px, env(safe-area-inset-bottom)) + 40px);
    max-width: none;
  }

  .readout__stage {
    font-size: clamp(24px, 7vw, 32px);
  }

  .readout__line {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .hud__scrim {
    height: 58%;
  }

  /* Centered in the quiet strip between the readout and the rail. */
  .hint {
    right: auto;
    left: 50%;
    bottom: calc(max(26px, env(safe-area-inset-bottom)) + 13px);
    transform: translateX(-50%);
    gap: 7px;
    font-size: 0.6rem;
  }

  .hint__arrow {
    height: 15px;
  }

  .conversion__copies,
  .status-band,
  .section__head,
  .close-cta,
  .site-footer,
  .partnership-layout {
    grid-template-columns: 1fr;
  }

  .conversion__copies {
    margin: 0 auto;
  }

  .conversion__copy {
    min-height: 0;
  }

  .status-band__item {
    min-height: 0;
  }

  .section__head {
    gap: 1.5rem;
  }

  .application {
    padding: 2rem 0;
    gap: 1.25rem;
  }

  .application__brief h3 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .section__head h2,
  .close-cta h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .close-cta {
    align-items: start;
    padding: 4rem 1rem;
  }

  .close-cta .button-link {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .field__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

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

  .field--full,
  .consent,
  .form-actions,
  .form-status {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }
}

@media (max-width: 360px), (max-width: 780px) and (max-height: 640px) {
  .webgl-ready .conversion__copy {
    padding: 1rem;
  }

  .webgl-ready .conversion__copy h2 {
    margin-bottom: 0.65rem;
    font-size: 1.7rem;
  }

  .webgl-ready .conversion__copy-status {
    margin-bottom: 0.75rem;
  }

  .webgl-ready .conversion__copy p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

}

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