:root {
  color-scheme: dark;
  --bg: #0A0F1A;
  --bg-alt: #0D1522;
  --line: rgba(255, 255, 255, 0.1);
  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.6);
  --gold: #C9A45C;
  --display: 'Cinzel', Georgia, serif;
  --body: 'Public Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(1rem, 5vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

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

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  background: var(--text);
  color: var(--bg);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(10, 15, 26, 0.85);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* PNG, not SVG: the white logo SVGs are drawn via an SVG <mask>, which iOS
   WebKit (iOS Chrome/Safari) renders blank when loaded through an <img>.
   The PNG renders identically on every browser. */
.brand img {
  width: 56px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
}

.site-nav a:hover { color: var(--text); }

/* Section the reader is in (set by the scroll script). */
.site-nav a.is-current:not(.nav-cta) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.site-nav .nav-cta.is-current {
  background-color: var(--gold);
  color: var(--bg);
}

.site-nav .nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-weight: 600;
}

/* Menu button: shown only at narrower widths (see the 1100px query). */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.5rem;
  padding: 0 0.7rem;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin-bottom: 1rem;
  max-width: 24em;
}

h2.h2-wide {
  max-width: none;
}

/* Avoid a lone word on the last line of body text (ignored by browsers
   that do not support it). */
p, li, dd { text-wrap: pretty; }

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.lede {
  color: var(--text-soft);
}

/* Hero */
/* Full-bleed photos behind the hero, desaturated and tinted to the page
   navy, crossfading every 4 seconds (script at the bottom of the page).
   The overlay stays dark across the text column (which ends near the
   page center) and lightens toward the registrations card. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slides,
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slides { z-index: -2; }

.hero::after { content: ""; }

/* Each slide sets its own crop (--pos) and exposure (--b): daylight
   shots are pulled down so every slide sits at the same darkness. */
.hero-slide {
  position: absolute;
  inset: 0;
  background: var(--img, none) var(--pos, center) / cover no-repeat;
  filter: grayscale(0.7) brightness(var(--b, 1.05)) contrast(1.15);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active { opacity: 1; }

/* On wide screens a slide can zoom and shift its photo (--wide-size,
   --wide-pos) to move its subject clear of the registrations card. */
@media (min-width: 1200px) {
  .hero-slide {
    background-size: var(--wide-size, cover);
    background-position: var(--wide-pos, var(--pos, center));
  }
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 15, 26, 0.94) 0%, rgba(10, 15, 26, 0.86) calc(50% + 40px), rgba(10, 15, 26, 0.4) calc(50% + 420px), rgba(10, 15, 26, 0.3) 100%),
    linear-gradient(180deg, rgba(10, 15, 26, 0.4) 0%, rgba(10, 15, 26, 0) 30%, rgba(10, 15, 26, 0) 65%, rgba(10, 15, 26, 0.9) 100%);
}

.hero .data-card {
  background-color: rgba(13, 21, 34, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.quote-start {
  margin-top: 2rem;
  max-width: 30rem;
}

.quote-start label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.quote-row {
  display: flex;
  gap: 0.6rem;
}

.quote-row input { flex: 1; min-width: 0; }

.aside-link {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.aside-link a { color: var(--gold); }

/* Inner-page hero: a row of buttons in place of the quote form. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions .button { white-space: normal; text-align: center; }

/* Company data card */
.data-card {
  border: 1px solid var(--line);
  background-color: var(--bg-alt);
  padding: 1.5rem;
}

.data-card .eyebrow { margin-bottom: 0.5rem; }

.card-download {
  display: block;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.card-download::before { content: "\2193\00a0"; }
.card-download span { color: var(--text-soft); font-weight: 400; }
.card-download:hover { text-decoration: underline; }

.data-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.data-row dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.data-row dd {
  font-family: var(--mono);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.data-row dd.naics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}

.data-row dd.naics-list span { white-space: nowrap; }
.data-row dd.naics-list span:first-child { flex-basis: 100%; }
.data-row dd.naics-list.even span:first-child { flex-basis: auto; }

.data-row dd.naics-list small {
  font-family: var(--body);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.data-row dd.plain {
  font-family: var(--body);
  font-size: 0.9375rem;
}

/* Commitments */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.nowrap { white-space: nowrap; }
.training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card-grid > div {
  border-top: 1px solid var(--gold);
  padding-top: 1.1rem;
}

.card-grid p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

/* Quality steps */
.steps {
  list-style: none;
  margin-top: 2rem;
  max-width: 46rem;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.steps .num {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--gold);
  padding-top: 0.1rem;
}

.steps h3 { margin-bottom: 0.2rem; }

.steps p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

/* Supply */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.platforms > div {
  border: 1px solid var(--line);
  background-color: var(--bg-alt);
  padding: 1.25rem;
}

.platforms .tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.platforms p:last-child {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.list-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2.5rem 0 0.25rem;
}

.codes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
}

.codes li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.codes .code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--gold);
  padding-top: 0.1rem;
}

.codes .primary {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

/* Investors */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.stats > div {
  border-top: 1px solid var(--gold);
  padding-top: 1rem;
}

.stats .stat-num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.stats p:last-child {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.source {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.callout {
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--gold);
  background-color: rgba(201, 164, 92, 0.08);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  text-wrap: balance;
}

.callout strong { color: var(--gold); font-weight: 400; }

.list-title + .card-grid { margin-top: 1rem; }
.list-title + .terms { margin-top: 0.75rem; }

.disclaimer {
  margin-top: 2.5rem;
  max-width: 52rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Manufacturers */
.terms {
  margin-top: 2rem;
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.terms > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.terms dt { font-weight: 600; }

.terms dd {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.button {
  display: inline-block;
  background-color: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 2px;
  padding: 0.75rem 1.2rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.button:hover { opacity: 0.88; }

.button-outline {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.section-cta { margin-top: 2.5rem; }
.section-cta .button { white-space: normal; text-align: center; }

.site-footer .ids a { white-space: nowrap; }

.button:disabled {
  opacity: 0.45;
  cursor: default;
}

.terms + .button { margin-top: 2rem; }

/* Namesake */
.namesake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.namesake-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(201, 164, 92, 0.55);
  outline: 1px solid rgba(201, 164, 92, 0.25);
  outline-offset: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.namesake-quote p {
  font-family: var(--display);
  text-align: center;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  line-height: 1.3;
  text-wrap: balance;
}

.namesake-attribution {
  margin: 1rem 0 1.5rem;
  text-align: center;
  text-wrap: balance;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--gold);
}

.namesake-bio {
  margin: 0 auto;
  text-align: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.address {
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.contact-email {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.contact-email span {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover { text-decoration: underline; }

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

.contact-form label,
.quote-start label {
  color: var(--text-soft);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.contact-form .wide { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
}

select option { color: #000; }

textarea {
  resize: vertical;
  min-height: 130px;
}

input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Honeypot: hidden from humans, tempting to bots */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  font-size: 0.875rem;
}

.form-status.error { color: #ff8a80; }
.form-status.success { color: #8affc1; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer .ids {
  font-family: var(--mono);
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.site-footer p + p { margin-top: 0.4rem; }

.site-footer .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.footer-logo {
  flex: none;
  display: block;
  width: 160px;
  height: auto;
}

/* Menu button: the header links fold into a dropdown below the width
   where all seven fit on one line. */
@media (max-width: 1100px) {
  /* Without JavaScript the plain links stay in the bar. */
  html:not(.js) .site-nav a:not(.nav-cta) { display: none; }
  .js .nav-toggle { display: flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background-color: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
  }
  .js .site-header.menu-open .site-nav { display: flex; }
  .js .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav .nav-cta {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gold);
    text-align: center;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .namesake-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .namesake-figure { width: min(300px, 80vw); margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }
  .footer-logo {
    width: min(240px, 70vw);
    margin: 0 auto;
  }
  /* Stacked layout: text spans the full width, so darken evenly. */
  .hero::after {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.86) 0%, rgba(10, 15, 26, 0.78) 50%, rgba(10, 15, 26, 0.9) 100%);
  }
}

@media (max-width: 560px) {
  .brand { font-size: 0.9rem; }
  .brand img { width: 44px; }
  .card-grid,
  .codes,
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .terms > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .quote-row { flex-direction: column; }
}
