/* ── Self-hosted fonts ──────────────────────────────────────────────────────
   SIL Open Font License. Full terms in assets/fonts/LICENSE-*.txt.
   Latin subset only, woff2 only — 114 KB total, no external requests.
   ────────────────────────────────────────────────────────────────────────── */
@font-face { font-family:'Big Shoulders Display'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Big Shoulders Display'; font-style:normal; font-weight:800; font-display:swap;
  src:url('fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-style:normal; font-weight:600; font-display:swap;
  src:url('fonts/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/public-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap;
  src:url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

/* ==========================================================================
   OPTEC Solutions — site.css
   One stylesheet for all pages. Edit here, every page updates.
   ========================================================================== */

:root {
  /* Palette — anodized airframe panel + hi-vis test markings */
  --ink:       #101820;
  --ink-2:     #1a2530;
  --paper:     #eceef0;
  --card:      #ffffff;
  --rule:      #cfd5da;
  --rule-ink:  #2c3944;
  --text:      #22303c;
  --muted:     #4f5d69;
  --hivis:     #a3450f;  /* on light — 5.3:1 */
  --hivis-lt:  #f08a2c;  /* on ink   — 7.1:1 */

  /* Type */
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body:    'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: 1.5rem;
  --max: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--hivis); }
:focus-visible { outline: 2px solid var(--hivis-lt); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--hivis); color: #fff; padding: .75rem 1.25rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 880px; }

/* ── Type scale ────────────────────────────────────────────────────────── */
h1, h2, h3, .h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--text);
}
.h-xl { font-size: clamp(2.9rem, 7.5vw, 5.6rem); line-height: .95; }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.h-md { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.h-sm { font-size: 1.1rem; letter-spacing: .04em; }

.eyebrow {
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--hivis); margin-bottom: .85rem;
}
.lede { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }
.prose p { margin-bottom: 1.1rem; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; color: var(--text); }

.rule-bar { width: 44px; height: 3px; background: var(--hivis); margin-bottom: 1.4rem; }
.on-ink .rule-bar, .pagehead .rule-bar, .hero .rule-bar { background: var(--hivis-lt); }

/* ── Header + navigation ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-ink);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand-mark {
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  letter-spacing: .05em; color: #fff; line-height: 1;
}
.brand-mark em { font-style: normal; color: var(--hivis-lt); }
.brand-tail {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}
.nav { display: flex; gap: .15rem; }
.nav a {
  display: block; padding: .5rem .85rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,.7);
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--hivis-lt); }

.menu-btn {
  display: none; align-items: center; gap: .55rem;
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .45rem .8rem; cursor: pointer;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.menu-btn:hover { border-color: rgba(255,255,255,.65); }
.menu-btn .bars { display: block; width: 16px; height: 2px; background: #fff; position: relative; }
.menu-btn .bars::before,
.menu-btn .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: #fff; }
.menu-btn .bars::before { top: -5px; }
.menu-btn .bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav-panel {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule-ink);
    display: none;
  }
  .nav-panel.is-open { display: block; }
  .nav { flex-direction: column; padding: .25rem var(--gutter) 1rem; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"] { border-bottom-color: var(--hivis-lt); }
}

/* ── Hero (home) ───────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  min-height: min(92vh, 880px);
  display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}
.hero-scrim {
  position: absolute; inset: 0;
  /* Dense behind the headline, opening up to the right so the footage reads. */
  background: linear-gradient(100deg,
    rgba(16,24,32,.90) 0%,
    rgba(16,24,32,.80) 42%,
    rgba(16,24,32,.42) 70%,
    rgba(16,24,32,.16) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr 22rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--hivis-lt); }
.hero .eyebrow { color: var(--hivis-lt); }
.hero-sub { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 46ch; margin: 1.4rem 0 2.1rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: .73rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .85rem 1.6rem; border: 1px solid transparent;
  transition: background .18s, border-color .18s, color .18s;
}
.btn--primary { background: var(--hivis); color: #fff; }
.btn--primary:hover { background: #86380c; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: none; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn--outline { border-color: var(--rule); color: var(--text); background: var(--card); }
.btn--outline:hover { border-color: var(--text); }

/* ── Data plate — the signature device ─────────────────────────────────── */
.plate { border: 1px solid var(--rule); background: var(--card); padding: 1.05rem 1.2rem; }
.plate-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hivis); border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem; margin-bottom: .35rem;
}
.plate-head span { color: var(--muted); letter-spacing: .14em; }
.plate-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem;
  padding: .38rem 0; border-bottom: 1px dotted var(--rule);
  font-family: var(--mono); font-size: .715rem; line-height: 1.5;
}
.plate-row:last-child { border-bottom: 0; }
.plate-row dt { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.plate-row dd { color: var(--text); }

.plate--dark { border-color: rgba(255,255,255,.28); background: rgba(16,24,32,.88); backdrop-filter: blur(2px); }
.plate--dark .plate-head { color: var(--hivis-lt); border-bottom-color: rgba(255,255,255,.2); }
.plate--dark .plate-head span { color: rgba(255,255,255,.55); }
.plate--dark .plate-row { border-bottom-color: rgba(255,255,255,.14); }
.plate--dark .plate-row dt { color: rgba(255,255,255,.55); }
.plate--dark .plate-row dd { color: rgba(255,255,255,.93); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: clamp(3.25rem, 6.5vw, 5.5rem) 0; }
.section--card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .h-lg, .section--ink .h-md, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: var(--hivis-lt); }
.section--ink .lede { color: rgba(255,255,255,.78); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.pagehead {
  background: var(--ink); color: #fff;
  padding: clamp(2.75rem, 5.5vw, 4.25rem) 0;
  border-bottom: 3px solid var(--hivis);
}
.pagehead h1 { color: #fff; }
.pagehead .eyebrow { color: var(--hivis-lt); }
.pagehead .lede { color: rgba(255,255,255,.78); margin-top: 1.1rem; }

/* ── Grids and cells ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--card); padding: 1.7rem 1.55rem; }
.cell h3 { margin-bottom: .6rem; }
.cell p { font-size: .93rem; color: var(--muted); }
.cell-meta {
  margin-top: 1.1rem; padding-top: .85rem; border-top: 1px dotted var(--rule);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}
.cell-meta b { color: var(--hivis); font-weight: 500; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) {
  .split, .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid--3 { grid-template-columns: 1fr; }
}

/* ── Capability list ───────────────────────────────────────────────────── */
.caps { border-top: 1px solid var(--rule); }
.cap {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
}
.cap-key {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  color: var(--hivis); border: 1px solid var(--rule); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  height: 2.2rem; text-transform: uppercase;
}
.cap-body strong {
  display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: .15rem;
}
.cap-body span { font-size: .9rem; color: var(--muted); }

/* ── Program entries ───────────────────────────────────────────────────── */
.program {
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--hivis);
  padding: 1.7rem 1.8rem; margin-bottom: 1.25rem;
  display: grid; grid-template-columns: 1fr 20rem; gap: 2rem; align-items: start;
}
.program:last-of-type { margin-bottom: 0; }
.program h3 { margin-bottom: .8rem; }
.program p { font-size: .93rem; color: var(--muted); margin-bottom: .9rem; }
.program p:last-child { margin-bottom: 0; }
.program ul { margin-top: .3rem; }
.program li {
  position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--muted); margin-bottom: .35rem;
}
.program li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; background: var(--hivis);
}
@media (max-width: 900px) { .program { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--hivis);
  border: 1px solid var(--rule); background: var(--paper);
  padding: .2rem .6rem; margin-bottom: .8rem;
}

/* ── Table ─────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th {
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--ink); text-align: left; padding: .9rem 1.1rem;
}
td {
  font-size: .88rem; color: var(--muted); padding: .82rem 1.1rem;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
td:first-child { color: var(--text); font-weight: 600; }
tbody tr:nth-child(even) td { background: #f6f7f8; }
tbody tr:hover td { background: #f0e7e0; }
.table-note { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin-top: .9rem; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.person {
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--hivis);
  padding: 1.4rem 1.5rem; margin-bottom: 1rem;
}
.person .role {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--hivis); margin-bottom: .3rem;
}
.person .name {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: .7rem;
}
.person a { display: block; font-size: .92rem; color: var(--muted); text-decoration: none; padding: .15rem 0; }
.person a:hover { color: var(--hivis); text-decoration: underline; }

.form { background: var(--card); border: 1px solid var(--rule); padding: 1.6rem 1.6rem 1.75rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: .95rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--rule); padding: .7rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--hivis); outline-offset: 0; background: #fff;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin-top: .9rem; line-height: 1.6; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--hivis-lt); margin-bottom: .9rem;
}
.site-footer p, .site-footer li { font-size: .88rem; line-height: 1.85; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: .05em; color: #fff; margin-bottom: .6rem; }
.footer-brand em { font-style: normal; color: var(--hivis-lt); }
.footer-bar {
  border-top: 1px solid var(--rule-ink); padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
