:root {
  --black: #0a0a0a;
  --charcoal: #17171a;
  --charcoal-2: #131315;
  --line: #2a2a2e;
  --white: #f5f4f2;
  --gray: #b2b2b6;
  --gray-dim: #83838a;
  --amber: #9f6d33;
  --amber-bright: #c78b42;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--amber);
  color: var(--black);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, .brand, .eyebrow, .btn, nav.primary, .num, .idx {
  font-family: var(--sans);
  letter-spacing: -0.015em;
}

.eyebrow, nav.primary, .idx, .go, .field label {
  letter-spacing: 0.14em;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 36px;
  height: 36px;
  color: var(--white);
}

nav.primary {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

nav.primary a {
  color: var(--gray);
  transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--line);
  background: var(--black);
  z-index: 19;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav .wrap {
  padding-top: 20px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-size: 16px;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a[aria-current="page"] { color: var(--white); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--amber);
  color: var(--white);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--amber); color: var(--black); }

.btn.solid {
  background: var(--amber);
  color: var(--black);
  border-color: var(--amber);
}

.btn.solid:hover { background: var(--amber-bright); border-color: var(--amber-bright); }

/* Hero */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text { max-width: 660px; }

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
}

.hero-mark svg {
  width: 130%;
  max-width: 560px;
  color: var(--charcoal);
  opacity: 0.9;
}

.hero-mark svg .line {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}

.eyebrow {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 0 36px;
}

.sub strong {
  color: var(--white);
  font-weight: 600;
}

/* Doors */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}

.door {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--black);
  padding: 40px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.door:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--charcoal);
  transform: translateY(-2px);
}

.door h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.door p {
  color: var(--gray);
  font-size: 15px;
  margin: 0 0 24px;
}

.door .go {
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
}

/* Legitimacy / spec strip */
.strip {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  background: var(--charcoal-2);
}

.strip .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.strip .item {
  border-top: 2px solid var(--amber);
  padding-top: 18px;
}

.strip .item .idx {
  display: block;
  font-family: var(--mono);
  color: var(--gray-dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.strip .item .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
}

.strip .item .num.text {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.strip .item .label {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.strip .item .desc {
  color: var(--gray-dim);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Sections */
main { display: block; }

section.block {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

section.block:last-of-type { border-bottom: none; }

section.block h2 {
  font-size: 28px;
  margin: 0 0 20px;
  max-width: 760px;
  font-weight: 700;
}

section.block p {
  color: var(--gray);
  font-size: 16.5px;
  max-width: 760px;
  margin: 0 0 18px;
}

section.block p:last-child { margin-bottom: 0; }

/* Editorial section family */
section.block.editorial {
  padding: 88px 0;
}

section.block.editorial h2 {
  max-width: 760px;
}

section.block.editorial p {
  max-width: 760px;
  font-size: 17px;
}

.idx-label {
  display: block;
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Continuous narrative pattern: multiple beats inside one section, no hard breaks between them */
.narrative .beat {
  max-width: 780px;
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.narrative .beat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.narrative .beat h2 {
  font-size: 24px;
  margin: 0 0 16px;
  max-width: 100%;
}

.narrative .beat p {
  font-size: 16.5px;
  max-width: 100%;
  margin: 0 0 16px;
}

.narrative .beat p:last-child { margin-bottom: 0; }

/* Larger feature treatment for current/active programs */
.programs-current {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.program-feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--charcoal);
  border: 1px solid var(--line);
  padding: 40px;
}

.program-feature .idx {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.program-feature h3 {
  font-size: 23px;
  margin: 0 0 14px;
}

.program-feature p {
  color: var(--gray);
  font-size: 15.5px;
  margin: 0;
}

@media (max-width: 720px) {
  .programs-current { grid-template-columns: 1fr; }
}

/* Technical section family */
section.block.technical {
  background: var(--charcoal-2);
}

/* Commercial section family */
section.block.commercial {
  background: linear-gradient(180deg, var(--charcoal), var(--charcoal-2));
}

section.block.commercial h2 {
  font-size: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Discipline cards */
.disciplines {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.disciplines.cols-2 { grid-template-columns: 1fr 1fr; }
.disciplines.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.discipline {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--black);
  padding: 32px;
  transition: background 0.15s ease;
}

.discipline.future {
  opacity: 0.62;
}

.discipline .idx {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.discipline h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.discipline p {
  color: var(--gray);
  font-size: 14.5px;
  margin: 0;
}

@media (max-width: 900px) {
  .disciplines.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .disciplines.cols-2, .disciplines.cols-3 { grid-template-columns: 1fr; }
}

/* Spec table */
.spec { border-top: 1px solid var(--line); }

.spec dl { display: grid; grid-template-columns: 220px 1fr; margin: 0; }

.spec dt, .spec dd {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.spec dt { color: var(--gray); margin: 0; }
.spec dd { margin: 0; }

/* Clean list (bullet style) */
ul.list-clean {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  max-width: 720px;
}

ul.list-clean li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-size: 16px;
}

ul.list-clean li:last-child { border-bottom: none; }

ul.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--amber);
}

/* Quote / pull */
.pull {
  font-size: 21px;
  line-height: 1.4;
  color: var(--white);
  border-left: 2px solid var(--amber);
  padding-left: 22px;
  max-width: 640px;
  margin: 32px 0 0;
  font-weight: 500;
}

/* Inline CTA (used after a pull quote, no section break) */
.cta-inline {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-inline h3 {
  font-size: 20px;
  margin: 0;
}

/* Partnership tiers */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}

.tier {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--charcoal);
  padding: 28px;
  border-top: 2px solid var(--line);
  transition: border-color 0.15s ease;
}

.tier.t2 { border-top-color: var(--amber); }
.tier.t3 { border-top-color: var(--amber-bright); background: linear-gradient(180deg, rgba(199,139,66,0.06), transparent), var(--charcoal); }

.tier h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--white);
}

.tier .tag {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin: 0 0 14px;
}

.tier p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

/* System diagram (About page) */
.diagram {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  max-width: 420px;
}

.diagram .step {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border-left: 2px solid var(--amber);
  padding: 12px 0 12px 18px;
}

.diagram .arrow {
  color: var(--gray-dim);
  font-size: 13px;
  padding-left: 17px;
  font-family: var(--mono);
}

/* Form */
.form-panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 36px;
  max-width: 640px;
  margin-top: 40px;
}

form.contact-form { max-width: 100%; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.field .required { color: var(--amber-bright); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-bright);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #b6493f;
}

.field textarea { resize: vertical; min-height: 120px; }

/* Contact form success state */
.form-success {
  border-left: 2px solid var(--amber);
  padding: 20px 24px;
  background: var(--charcoal-2);
}

.form-success p {
  color: var(--white);
  font-size: 16px;
  margin: 0;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer.site .foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site .brand svg { width: 24px; height: 24px; }
footer.site .brand { font-size: 16px; }

footer.site nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--gray);
}

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

footer.site .foot-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

footer.site .foot-meta a:hover { color: var(--white); }

footer.site .fine {
  color: var(--gray-dim);
  font-size: 12px;
  width: 100%;
  padding-top: 16px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { min-height: 220px; order: -1; }
  .hero-mark svg { color: var(--gray-dim); opacity: 0.55; }
}

@media (max-width: 720px) {
  nav.primary { display: none; }
  .nav-toggle { display: flex; }
  h1 { letter-spacing: -0.02em; }
  .doors, .grid-2, .strip .row { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 4px; border-bottom: none; }
  header.site .wrap { height: 72px; }
  .mobile-nav { top: 72px; }
  footer.site .foot-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  footer.site nav { flex-wrap: wrap; row-gap: 12px; }
  footer.site .foot-meta { flex-direction: column; gap: 12px; }
}
