/* ============================================================
   Martel Defense LLC — shared stylesheet
   ============================================================ */

:root {
  --black: #000000;
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #0e0e0e;
  --border: #1a1a1a;
  --border-light: #232323;
  --text-h: #f0f0f0;
  --text-body: #9a9a9a;
  --text-muted: #7d7d7d;
  --text-dim: #5a5a5a;
  --accent: #a88744;
  --accent-bright: #c9a355;
  --accent-dark: #987734;
  --accent-wash: rgba(168,135,68,0.08);
  --red: #cc4444;
  --steel: #7f93a8;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:80px; font-size:16px; -webkit-text-size-adjust:100%; }
body { font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; background:var(--bg); color:var(--text-body); line-height:1.65; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
a { text-decoration:none; color:var(--text-muted); transition:color .15s ease; }
a:hover { color:var(--text-h); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline:2px solid var(--accent); outline-offset:3px; border-radius:2px;
}
img { max-width:100%; display:block; }
::selection { background:rgba(168,135,68,0.28); color:#fff; }
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; z-index:200; }
.skip-link:focus { left:16px; top:12px; width:auto; height:auto; padding:10px 16px; background:var(--accent); color:#000; font-size:0.8rem; font-weight:700; border-radius:4px; }
.mono { font-family:var(--mono); font-variant-numeric:tabular-nums; }

/* ── SCROLL PROGRESS ── */
.progress { position:fixed; top:0; left:0; height:2px; width:0; background:var(--accent); z-index:120; transition:width .08s linear; }

/* ── NAV ── */
.nav { position:sticky; top:0; z-index:100; background:rgba(5,5,5,0.90); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-bottom:1px solid var(--border); }
.nav-inner { max-width:1240px; margin:0 auto; padding:0 28px; height:70px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.nav-logo { display:flex; align-items:center; gap:10px; flex-shrink:0; text-decoration:none; }
.nav-logo:hover { opacity:0.85; }
.nav-links { display:flex; gap:20px; list-style:none; align-items:center; }
.nav-links a { font-size:0.71rem; font-weight:500; text-transform:uppercase; letter-spacing:0.085em; color:var(--text-muted); position:relative; padding:4px 0; white-space:nowrap; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--accent); transition:width .2s ease; }
.nav-links a:hover { color:var(--text-h); }
.nav-links a:hover::after { width:100%; }
.nav-links a[aria-current="page"] { color:var(--text-h); }
.nav-links a[aria-current="page"]::after { width:100%; background:var(--accent); }
.nav-ctas { display:flex; gap:8px; align-items:center; }
.nav-contact { font-family:var(--mono); font-size:0.67rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#000; padding:8px 18px; background:var(--accent); border-radius:3px; white-space:nowrap; }
.nav-contact:hover { background:var(--accent-bright); color:#000; }
.mobile-toggle { display:none; background:none; border:none; color:var(--text-h); cursor:pointer; padding:8px; }
.mobile-menu { display:none; flex-direction:column; padding:8px 24px 20px; border-top:1px solid var(--border); background:rgba(5,5,5,0.99); }
.mobile-menu.open { display:flex; }
.mobile-menu a { padding:13px 0; font-size:0.8rem; font-weight:500; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); border-bottom:1px solid var(--border); }
.mobile-menu a.mobile-contact { margin-top:14px; padding:13px; background:var(--accent); color:#000; font-weight:700; text-align:center; border-radius:3px; border-bottom:none; }

/* ── SECTIONS ── */
.section { padding:96px 28px; }
.section + .section { border-top:1px solid var(--border); }
.section-inner { max-width:1240px; margin:0 auto; }
.eyebrow { display:flex; align-items:baseline; gap:12px; margin-bottom:22px; }
.eyebrow-num { font-family:var(--mono); font-size:0.68rem; font-weight:700; color:var(--accent); letter-spacing:0.06em; }
.eyebrow-text { font-family:var(--mono); font-size:0.66rem; font-weight:500; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.18em; }
.eyebrow-rule { flex:1; height:1px; background:var(--border); }
.section-title { font-family:'Space Grotesk','Inter',sans-serif; font-size:clamp(1.75rem,3.4vw,2.7rem); font-weight:700; color:var(--text-h); letter-spacing:-0.025em; line-height:1.12; margin-bottom:18px; max-width:20ch; }
.section-title.wide { max-width:28ch; }
.section-desc { font-size:0.97rem; color:var(--text-body); max-width:62ch; line-height:1.7; }
.footnote { margin-top:20px; font-family:var(--mono); font-size:0.68rem; color:var(--text-dim); line-height:1.6; max-width:80ch; }
.footnote a { color:var(--text-muted); text-decoration:underline; text-underline-offset:2px; }

/* ── HOME HERO ── */
.hero { position:relative; padding:112px 28px 88px; overflow:hidden; }
.hero::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(168,135,68,0.065) 1px,transparent 1px),linear-gradient(90deg,rgba(168,135,68,0.065) 1px,transparent 1px); background-size:48px 48px; -webkit-mask-image:radial-gradient(ellipse 72% 66% at 50% 38%,#000 18%,transparent 74%); mask-image:radial-gradient(ellipse 72% 66% at 50% 38%,#000 18%,transparent 74%); pointer-events:none; }
.hero-inner { position:relative; max-width:1240px; margin:0 auto; }
.hero-top { max-width:780px; }
.hero-label { display:inline-flex; align-items:center; gap:10px; font-family:var(--mono); font-size:0.66rem; font-weight:500; color:var(--accent); text-transform:uppercase; letter-spacing:0.16em; margin-bottom:30px; padding:6px 12px; border:1px solid rgba(168,135,68,0.28); border-radius:2px; background:var(--accent-wash); }
.hero-label .dot { width:5px; height:5px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.hero h1 { font-family:'Space Grotesk','Inter',sans-serif; font-size:clamp(2.4rem,5.6vw,4.1rem); font-weight:700; color:var(--text-h); letter-spacing:-0.035em; line-height:1.04; margin-bottom:26px; }
.hero h1 .accent { color:var(--accent); }
.hero-sub { font-size:1.05rem; color:var(--text-body); max-width:58ch; margin-bottom:38px; line-height:1.72; }
.hero-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.hero-statbar { display:grid; grid-template-columns:repeat(4,1fr); margin-top:76px; border-top:1px solid var(--border); }
.hero-stat { padding:24px 24px 0 0; }
.hero-stat + .hero-stat { border-left:1px solid var(--border); padding-left:24px; }
.hero-stat-num { font-family:'Space Grotesk','Inter',sans-serif; font-size:clamp(1.4rem,2.4vw,1.95rem); font-weight:700; color:var(--accent); display:block; letter-spacing:-0.025em; line-height:1.05; }
.hero-stat-label { font-family:var(--mono); font-size:0.63rem; font-weight:500; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.11em; margin-top:9px; display:block; line-height:1.5; }

/* ── INTERIOR PAGE HEADER ── */
.page-head { position:relative; padding:76px 28px 60px; border-bottom:1px solid var(--border); overflow:hidden; }
.page-head::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(168,135,68,0.05) 1px,transparent 1px),linear-gradient(90deg,rgba(168,135,68,0.05) 1px,transparent 1px); background-size:48px 48px; -webkit-mask-image:radial-gradient(ellipse 66% 100% at 30% 0%,#000 10%,transparent 70%); mask-image:radial-gradient(ellipse 66% 100% at 30% 0%,#000 10%,transparent 70%); pointer-events:none; }
.page-head-inner { position:relative; max-width:1240px; margin:0 auto; }
.breadcrumb { font-family:var(--mono); font-size:0.65rem; text-transform:uppercase; letter-spacing:0.14em; color:var(--text-dim); margin-bottom:22px; }
.breadcrumb a { color:var(--accent); }
.page-head h1 { font-family:'Space Grotesk','Inter',sans-serif; font-size:clamp(2rem,4.4vw,3.2rem); font-weight:700; color:var(--text-h); letter-spacing:-0.03em; line-height:1.08; margin-bottom:20px; max-width:22ch; }
.page-head p { font-size:1rem; color:var(--text-body); max-width:64ch; line-height:1.72; }

/* ── BUTTONS ── */
.btn-primary { display:inline-block; padding:13px 30px; background:var(--accent); color:#000; font-family:var(--mono); font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; border:none; border-radius:3px; cursor:pointer; transition:background .15s ease; }
.btn-primary:hover { background:var(--accent-bright); color:#000; }
.btn-secondary { display:inline-block; padding:13px 30px; background:transparent; color:var(--text-body); font-family:var(--mono); font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.1em; border:1px solid var(--border-light); border-radius:3px; transition:border-color .15s ease,color .15s ease; }
.btn-secondary:hover { border-color:var(--text-muted); color:var(--text-h); }

/* ── CARD GRIDS ── */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:44px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:44px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:26px; transition:border-color .18s ease, background .18s ease; }
.card:hover { border-color:var(--border-light); background:var(--surface-2); }
.card-num { font-family:var(--mono); font-size:0.63rem; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:0.11em; margin-bottom:14px; display:block; }
.card h4 { font-size:0.96rem; font-weight:600; color:var(--text-h); margin-bottom:9px; letter-spacing:-0.012em; line-height:1.4; }
.card p { font-size:0.865rem; color:var(--text-muted); line-height:1.68; }
.card p + p { margin-top:10px; }

/* ── COST BARS ── */
.cost-table { margin-top:40px; display:flex; flex-direction:column; gap:9px; }
.cost-row { display:flex; align-items:center; gap:14px; padding:5px 9px; border:1px solid transparent; border-radius:4px; }
.cost-row.highlight { background:var(--accent-wash); border-color:rgba(168,135,68,0.16); }
.cost-label { font-size:0.8rem; color:var(--text-body); min-width:180px; font-weight:500; }
.cost-row.highlight .cost-label { color:var(--accent); font-weight:700; }
.cost-track { flex:1; display:flex; align-items:center; gap:12px; min-width:60px; }
.cost-fill { height:24px; border-radius:2px; flex-shrink:0; min-width:5px; }
.cost-val { font-family:var(--mono); font-size:0.72rem; font-weight:700; white-space:nowrap; }
.cost-ratio { font-family:var(--mono); font-size:0.72rem; font-weight:700; min-width:70px; text-align:right; }

/* ── STEPS ── */
.steps { margin-top:44px; border-top:1px solid var(--border); }
.step { display:grid; grid-template-columns:56px 1fr; gap:26px; padding:26px 0; border-bottom:1px solid var(--border); }
.step-num { font-family:var(--mono); font-size:0.7rem; font-weight:700; color:var(--accent); letter-spacing:0.06em; padding-top:3px; }
.step h4 { font-size:0.94rem; font-weight:600; color:var(--text-h); margin-bottom:7px; letter-spacing:-0.01em; }
.step p { font-size:0.875rem; color:var(--text-muted); line-height:1.68; max-width:74ch; }

/* ── SPECS ── */
.specs { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; margin-top:40px; }
.spec { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:20px; }
.spec-key { font-family:var(--mono); font-size:0.62rem; font-weight:500; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.11em; margin-bottom:9px; line-height:1.45; }
.spec-val { font-family:var(--mono); font-size:0.95rem; font-weight:700; color:var(--text-h); letter-spacing:-0.01em; line-height:1.35; }
.spec-val.accent { color:var(--accent); }
.spec-tag { display:inline-block; margin-top:9px; font-family:var(--mono); font-size:0.55rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; padding:2px 6px; border-radius:2px; }
.tag-locked { color:#cfd7de; background:rgba(127,147,168,0.14); border:1px solid rgba(127,147,168,0.26); }
.tag-modeled { color:var(--accent-bright); background:var(--accent-wash); border:1px solid rgba(168,135,68,0.26); }
.tag-target { color:#8fa9c4; background:rgba(127,147,168,0.10); border:1px solid rgba(127,147,168,0.22); }
.tag-open { color:#c98080; background:rgba(204,68,68,0.08); border:1px solid rgba(204,68,68,0.20); }
.tag-concept { color:#a9a9a9; background:rgba(140,140,140,0.09); border:1px solid rgba(140,140,140,0.20); }

/* ── LEGEND ── */
.legend { display:flex; flex-wrap:wrap; gap:20px; margin-top:32px; padding:18px 20px; background:var(--surface); border:1px solid var(--border); border-radius:4px; }
.legend-item { display:flex; align-items:center; gap:9px; font-size:0.76rem; color:var(--text-muted); }

/* ── TABLES ── */
.table-wrap { overflow-x:auto; margin-top:40px; border:1px solid var(--border); border-radius:4px; }
.dtable { width:100%; border-collapse:collapse; font-size:0.83rem; min-width:760px; }
.dtable th { text-align:left; padding:13px 18px; font-family:var(--mono); font-size:0.62rem; font-weight:700; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.11em; background:var(--surface); border-bottom:1px solid var(--border-light); white-space:nowrap; }
.dtable td { padding:14px 18px; border-bottom:1px solid var(--border); color:var(--text-body); vertical-align:top; }
.dtable td.num { font-family:var(--mono); font-size:0.78rem; white-space:nowrap; }
.dtable tbody tr:last-child td { border-bottom:none; }
.dtable tr.us td { background:var(--accent-wash); color:var(--text-h); font-weight:600; }
.dtable tr.us td:first-child { color:var(--accent); }
.bad { color:var(--red); font-weight:700; }
.good { color:var(--accent); font-weight:700; }

/* ── TECH GRID ── */
.tech-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:44px; }
.tech-card { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:26px; transition:border-color .18s ease; }
.tech-card:hover { border-color:var(--border-light); }
.tech-card h4 { font-family:var(--mono); font-size:0.72rem; font-weight:700; color:var(--accent); margin-bottom:14px; text-transform:uppercase; letter-spacing:0.09em; }
.tech-card p { font-size:0.865rem; color:var(--text-muted); margin-bottom:14px; line-height:1.68; }
.tech-card ul { list-style:none; border-top:1px solid var(--border); padding-top:12px; }
.tech-card li { font-family:var(--mono); font-size:0.72rem; color:var(--text-muted); padding:4px 0 4px 16px; position:relative; line-height:1.55; }
.tech-card li::before { content:''; position:absolute; left:0; top:12px; width:7px; height:1px; background:var(--accent); opacity:0.55; }

/* ── PRODUCT BLOCKS ── */
.product { padding-top:56px; margin-top:56px; border-top:1px solid var(--border); }
.product:first-of-type { padding-top:0; margin-top:44px; border-top:none; }
.product-head { display:flex; align-items:flex-start; justify-content:space-between; gap:28px; flex-wrap:wrap; margin-bottom:26px; }
.product-id { font-family:var(--mono); font-size:0.65rem; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:0.16em; margin-bottom:12px; display:block; }
.product-head h3 { font-family:'Space Grotesk','Inter',sans-serif; font-size:clamp(1.4rem,2.6vw,1.95rem); font-weight:700; color:var(--text-h); letter-spacing:-0.025em; line-height:1.15; margin-bottom:12px; }
.product-head p { font-size:0.95rem; color:var(--text-body); line-height:1.72; max-width:62ch; }
.product-meta { flex-shrink:0; text-align:right; }
.product-body { display:grid; grid-template-columns:1.25fr 1fr; gap:28px; align-items:start; }
.product-notes h5 { font-family:var(--mono); font-size:0.65rem; font-weight:700; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.13em; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.product-notes ul { list-style:none; }
.product-notes li { font-size:0.85rem; color:var(--text-muted); padding:9px 0 9px 18px; position:relative; line-height:1.62; border-bottom:1px solid var(--border); }
.product-notes li:last-child { border-bottom:none; }
.product-notes li::before { content:''; position:absolute; left:0; top:18px; width:8px; height:1px; background:var(--accent); opacity:0.6; }
.product-notes li strong { color:var(--text-h); font-weight:600; }

/* ── ROLES / CAREERS ── */
.role-list { margin-top:44px; border-top:1px solid var(--border); }
.role { display:grid; grid-template-columns:220px 1fr; gap:28px; padding:26px 0; border-bottom:1px solid var(--border); align-items:start; }
.role-disc { font-family:var(--mono); font-size:0.72rem; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:0.1em; line-height:1.6; }
.role h4 { font-size:0.94rem; font-weight:600; color:var(--text-h); margin-bottom:7px; }
.role p { font-size:0.87rem; color:var(--text-muted); line-height:1.68; max-width:70ch; }

/* ── PROGRAMS ── */
.prog-list { margin-top:44px; border-top:1px solid var(--border); }
.prog { display:grid; grid-template-columns:190px 1fr 150px; gap:26px; padding:24px 0; border-bottom:1px solid var(--border); align-items:start; }
.prog-id { font-family:var(--mono); font-size:0.74rem; font-weight:700; color:var(--accent); letter-spacing:0.02em; line-height:1.5; }
.prog h4 { font-size:0.93rem; font-weight:600; color:var(--text-h); margin-bottom:6px; }
.prog p { font-size:0.86rem; color:var(--text-muted); line-height:1.65; max-width:66ch; }
.prog-status { font-family:var(--mono); font-size:0.63rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-dim); text-align:right; padding-top:2px; }

/* ── TEAM ── */
.team { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:44px; }
.member { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:26px; }
.member h4 { font-size:1rem; font-weight:600; color:var(--text-h); margin-bottom:5px; letter-spacing:-0.01em; }
.member .role-title { font-family:var(--mono); font-size:0.65rem; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:14px; display:block; }
.member p { font-size:0.855rem; color:var(--text-muted); line-height:1.68; }
.member .prior { margin-top:14px; padding-top:12px; border-top:1px solid var(--border); font-family:var(--mono); font-size:0.68rem; color:var(--text-dim); letter-spacing:0.05em; }

/* ── ABOUT ── */
.about-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:72px; align-items:start; }
.about-text p { font-size:0.92rem; color:var(--text-body); line-height:1.75; margin-bottom:18px; }
.about-text p:last-child { margin-bottom:0; }
.about-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.about-stat { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:26px 20px; text-align:center; }
.about-stat-num { font-family:'Space Grotesk','Inter',sans-serif; font-size:1.15rem; font-weight:700; color:var(--accent); display:block; letter-spacing:-0.02em; line-height:1.35; }
.about-stat-label { font-family:var(--mono); font-size:0.6rem; font-weight:500; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.11em; margin-top:8px; line-height:1.5; }

/* ── CALLOUT ── */
.callout { margin-top:44px; padding:26px 30px; background:var(--surface); border:1px solid var(--border); border-left:2px solid var(--accent); border-radius:0 4px 4px 0; }
.callout h4 { font-family:var(--mono); font-size:0.68rem; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:0.13em; margin-bottom:12px; }
.callout p { font-size:0.9rem; color:var(--text-body); line-height:1.72; max-width:76ch; }
.callout p + p { margin-top:12px; }

/* ── PULLQUOTE ── */
.pull { margin-top:44px; padding:28px 32px; border-left:2px solid var(--accent); background:var(--surface); border-radius:0 4px 4px 0; }
.pull p { font-size:1.02rem; color:var(--text-h); line-height:1.65; font-weight:400; }
.pull cite { display:block; margin-top:12px; font-family:var(--mono); font-size:0.68rem; color:var(--text-dim); font-style:normal; letter-spacing:0.06em; }

/* ── CONTACT ── */
.contact-box { max-width:560px; margin:0 auto; text-align:center; }
.contact-box .section-title { margin:0 auto 14px; max-width:none; }
.contact-box > p { font-size:0.92rem; color:var(--text-body); margin-bottom:38px; line-height:1.7; }
.contact-link { display:flex; align-items:center; justify-content:center; gap:10px; padding:15px; background:var(--surface); border:1px solid var(--border); border-radius:4px; color:var(--text-h); font-family:var(--mono); font-size:0.82rem; font-weight:500; transition:border-color .15s ease; }
.contact-link:hover { border-color:var(--accent); color:var(--text-h); }

/* ── FORM ── */
.form { margin-top:34px; text-align:left; }
.form.wide { max-width:760px; margin-left:auto; margin-right:auto; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-field { margin-bottom:14px; }
.form label { font-family:var(--mono); font-size:0.62rem; font-weight:500; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.11em; margin-bottom:7px; display:block; }
.form input, .form select, .form textarea { width:100%; padding:11px 13px; background:var(--surface); border:1px solid var(--border); border-radius:3px; color:var(--text-h); font-size:0.85rem; font-family:'Inter',sans-serif; outline:none; transition:border-color .15s ease; }
.form input[type="file"] { padding:9px 13px; font-family:var(--mono); font-size:0.75rem; color:var(--text-muted); }
.form input[type="file"]::file-selector-button { font-family:var(--mono); font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:#000; background:var(--accent); border:none; border-radius:2px; padding:6px 12px; margin-right:12px; cursor:pointer; }
.form input:focus, .form select:focus, .form textarea:focus { border-color:var(--accent); }
.form textarea { resize:vertical; }
.form button { width:100%; border:none; cursor:pointer; margin-top:10px; }
.form-hint { font-family:var(--mono); font-size:0.64rem; color:var(--text-dim); margin-top:6px; line-height:1.55; }

/* ── DIAGRAMS ── */
.diagram { margin-top:44px; background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:24px; }
.diagram.tight { margin-top:0; }
.diagram svg { width:100%; height:auto; display:block; }
.diagram-caption { margin-top:16px; padding-top:14px; border-top:1px solid var(--border); font-family:var(--mono); font-size:0.66rem; color:var(--text-dim); text-align:center; line-height:1.6; }

/* ── SOURCES ── */
.sources { margin-top:44px; padding:24px 28px; background:var(--surface); border:1px solid var(--border); border-radius:4px; }
.sources h4 { font-family:var(--mono); font-size:0.66rem; font-weight:700; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.14em; margin-bottom:14px; }
.sources ol { list-style:none; counter-reset:src; }
.sources li { counter-increment:src; font-family:var(--mono); font-size:0.7rem; color:var(--text-muted); padding:7px 0 7px 30px; position:relative; line-height:1.6; }
.sources li::before { content:'[' counter(src) ']'; position:absolute; left:0; color:var(--accent); }
.sources a { color:var(--text-muted); text-decoration:underline; text-underline-offset:2px; word-break:break-word; }
.sources a:hover { color:var(--text-h); }

/* ── FOOTER ── */
.footer { padding:52px 28px; border-top:1px solid var(--border); }
.footer-inner { max-width:1240px; margin:0 auto; display:flex; justify-content:space-between; align-items:flex-start; gap:32px; flex-wrap:wrap; }
.footer-col p { font-family:var(--mono); font-size:0.68rem; color:var(--text-dim); line-height:1.75; }
.footer-col p.strong { color:var(--text-muted); }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { font-family:var(--mono); font-size:0.68rem; letter-spacing:0.06em; }
.footer-disclaimer { max-width:1240px; margin:32px auto 0; padding-top:22px; border-top:1px solid var(--border); font-family:var(--mono); font-size:0.63rem; color:var(--text-dim); line-height:1.75; }

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

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  .nav-links { gap:14px; }
  .nav-links a { font-size:0.665rem; letter-spacing:0.06em; }
}
@media(max-width:1024px) {
  .grid-3, .tech-grid, .team { grid-template-columns:repeat(2,1fr); }
  .about-grid { gap:44px; }
  .prog { grid-template-columns:160px 1fr; }
  .prog-status { grid-column:2; text-align:left; padding-top:0; }
  .product-body { grid-template-columns:1fr; }
}
@media(max-width:900px) {
  .nav-links, .nav-ctas { display:none; }
  .mobile-toggle { display:flex; }
}
@media(max-width:768px) {
  .nav-inner { height:64px; padding:0 18px; }
  .section { padding:64px 18px; }
  .hero { padding:68px 18px 52px; }
  .page-head { padding:52px 18px 42px; }
  .hero-statbar { grid-template-columns:repeat(2,1fr); }
  .hero-stat { padding:20px 16px 20px 0; }
  .hero-stat:nth-child(odd) { border-left:none; padding-left:0; }
  .hero-stat:nth-child(n+3) { border-top:1px solid var(--border); }
  .grid-3, .grid-2, .tech-grid, .team { grid-template-columns:1fr; }
  .about-grid { grid-template-columns:1fr; gap:36px; }
  .specs { grid-template-columns:repeat(2,1fr); }
  .prog, .role { grid-template-columns:1fr; gap:10px; }
  .cost-label { min-width:120px; font-size:0.74rem; }
  .step { grid-template-columns:40px 1fr; gap:16px; }
  .diagram { padding:14px; }
  .pull, .callout { padding:22px 20px; }
  .form-grid { grid-template-columns:1fr; }
  .footer-inner { flex-direction:column; gap:20px; }
  .product-meta { text-align:left; }
}
@media(max-width:480px) {
  .hero h1 { font-size:2.05rem; }
  .specs { grid-template-columns:1fr; }
  .about-stats { grid-template-columns:1fr 1fr; gap:10px; }
  .cost-row { flex-wrap:wrap; gap:8px; }
  .cost-label { min-width:100%; }
  .cost-ratio { min-width:56px; }
}

/* ── PRINT ── */
@media print {
  body { background:#fff; color:#111; }
  .nav, .progress, .mobile-menu, .hero::before, .page-head::before, .form, .footer-links { display:none !important; }
  .section { padding:24px 0; border-top:1px solid #ccc; }
  .section-title, .card h4, .spec-val, .hero h1, .page-head h1, .product-head h3 { color:#000; }
  .card, .spec, .tech-card, .diagram, .callout, .sources { border:1px solid #ccc; background:#fff; }
  a { color:#000; }
}
