/* ============================================================
   LOAY NOFAL — Manufacturing Systems Architect
   Modern Industrial High-Contrast · Dark · Brutalist grid
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces (dark adaptation of the Stitch system) */
  --bg:            #0a0a0a;
  --panel:         #111213;
  --panel-2:       #17181a;
  --panel-3:       #1d1f22;

  /* Structural lines (steel) */
  --border:        #2a2c30;
  --border-bright: #3a3d42;

  /* Signal */
  --red:           #d0291c;
  --red-deep:      #ac0604;
  --red-bright:    #ff5343;

  /* Type */
  --text:          #f4f6fa;
  --text-mid:      #c2c6cd;
  --text-dim:      #8b9097;
  --label:         #7d8590;

  /* Chrome / themeable */
  --header-bg:     rgba(10, 10, 10, 0.86);
  --placeholder:   #54585e;
  --accent-rgb:    208, 41, 28;

  /* Fonts */
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --edge: 40px;
  --section-gap: 0px; /* sections divided by borders, not gaps */
  --maxw: 1320px;
}

/* ---------- Light theme (toggle) ---------- */
:root[data-theme="light"] {
  --bg:            #e7e9ec;
  --panel:         #ffffff;
  --panel-2:       #f4f5f7;
  --panel-3:       #ebedf0;

  --border:        #c7cad0;
  --border-bright: #a9adb5;

  --red:           #c8480a;
  --red-deep:      #a23a08;
  --red-bright:    #e8601a;

  --text:          #16181b;
  --text-mid:      #3c4047;
  --text-dim:      #646973;
  --label:         #5f656e;

  --header-bg:     rgba(231, 233, 236, 0.86);
  --placeholder:   #a2a6ad;
  --accent-rgb:    200, 72, 10;
}

/* Raised-sheet shadow — light theme only (dark stays flat) */
:root[data-theme="light"] .pullquote,
:root[data-theme="light"] .spec-sheet,
:root[data-theme="light"] .module-grid,
:root[data-theme="light"] .outcomes,
:root[data-theme="light"] .industry-grid,
:root[data-theme="light"] .engage-grid,
:root[data-theme="light"] .capacity-bar,
:root[data-theme="light"] .warn-panel {
  box-shadow: 0 2px 3px rgba(0,0,0,0.16), 0 5px 9px rgba(0,0,0,0.13);
}
:root[data-theme="light"] .site-header {
  box-shadow: 0 3px 7px rgba(0,0,0,0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Inline accent links (in body copy / spec rows / footer) */
.inline-link { color: var(--red); border-bottom: 1px solid transparent; transition: border-color 0.12s, color 0.12s; }
.inline-link:hover,
.inline-link:focus-visible { border-bottom-color: var(--red); }

::selection { background: var(--red); color: #fff; }

/* Visible focus — sharp red ring, matches the system */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Shared type ---------- */
.display,
.section-title,
.warn-title { font-family: var(--f-display); }

.red { color: var(--red); }
.hl  { color: var(--text); border-bottom: 2px solid var(--red); }

em { color: var(--text); font-style: normal; font-weight: 600; }

/* Mono labels everywhere */
.eyebrow, .sec-index, .sec-tag, .tlm, .spec-k, .spec-v, .module-id,
.outcome-id, .outcome-sector, .engage-stage, .engage-term, .warn-code,
.net-label, .side-tag, .ind-yrs, .cap-k, .cap-v, .foot-mark, .foot-meta,
.nav-links a, .field label, .form-note, .spec-row-k {
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 var(--edge);
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--red);
  display: inline-flex;
  align-items: center;
}
.wordmark .grip { height: 0.84em; width: auto; margin-left: 0.04em; }
.header-telemetry {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  flex: 1;
}
.tlm { font-size: 12px; color: var(--text-dim); }
.tlm-key { color: var(--label); }
.tlm-val { color: var(--text-mid); }
.tlm-val.red { color: var(--red); }
.tlm.sep { padding-left: 22px; border-left: 1px solid var(--border); }

.header-nav { display: flex; align-items: center; gap: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { color: #fff !important; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.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); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.theme-toggle:hover,
.theme-toggle:focus-visible { background: var(--red); color: #fff; border-color: var(--red); }
.theme-toggle svg { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.btn .arr { font-size: 16px; line-height: 1; }
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
main { max-width: var(--maxw); margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

.section {
  padding: 72px var(--edge);
  border-top: 1px solid var(--border);
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 44px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.sec-index { font-size: 12px; color: var(--red); align-self: start; padding-top: 6px; }
.section-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sec-tag { font-size: 12px; color: var(--text-dim); text-align: right; padding-bottom: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(56px, 9vw, 110px) var(--edge) clamp(64px, 9vw, 100px);
  position: relative;
}
.hero::before {
  /* faint schematic crosshair top-left */
  content: "";
  position: absolute;
  top: 28px; left: var(--edge);
  width: 22px; height: 22px;
  border-left: 2px solid var(--red);
  border-top: 2px solid var(--red);
  opacity: 0.7;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 0;
}
.hero-main { padding-right: 40px; }
.eyebrow {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 26px;
}
.display {
  margin: 0;
  font-weight: 900;
  font-size: clamp(46px, 7.5vw, 94px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero-sub {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin: 26px 0 0;
  text-transform: uppercase;
}
.hero-hook {
  max-width: 46ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-mid);
  margin: 30px 0 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-side {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  align-self: end;
}
.spec-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.spec-line:first-child { border-top: 1px solid var(--border); }
.spec-k { color: var(--label); }
.spec-v { color: var(--text-mid); text-align: right; }
.spec-v.red { color: var(--red); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.lead {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--text-mid);
}
.pullquote {
  margin: 0;
  padding: 28px 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ============================================================
   SPEC SHEET (Where I fit + Capability)
   ============================================================ */
.spec-sheet { border: 1px solid var(--border); border-bottom: none; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--border);
}
.spec-row-k {
  font-size: 13px;
  color: var(--text);
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  background: var(--panel);
  line-height: 1.15;
  align-self: stretch;
}
.spec-row-v {
  padding: 22px 26px;
  color: var(--text-mid);
  font-size: 16px;
}
.spec-row:hover .spec-row-k { background: var(--red); color: #fff; }

.capability .spec-row-k { font-size: 12px; }
.capability .spec-row-v { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.02em; color: var(--text-mid); text-transform: none; }

/* ============================================================
   MODULES (How I'd contribute)
   ============================================================ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
}
.module {
  position: relative;
  padding: 30px 26px 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.12s, color 0.12s;
  outline-offset: -2px;
}
.module-id {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 12px;
  color: var(--label);
}
.module-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 18px 0 12px;
  line-height: 1.02;
  max-width: 90%;
}
.module p { margin: 0; color: var(--text-dim); font-size: 16px; }
.module:hover,
.module:focus-visible {
  background: var(--red);
  color: #fff;
}
.module:hover .module-id,
.module:focus-visible .module-id { color: rgba(255,255,255,0.7); }
.module:hover p,
.module:focus-visible p { color: rgba(255,255,255,0.92); }

.module-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.module-ghost:hover { background: var(--bg); }
.ghost-mark { font-family: var(--f-mono); color: var(--border-bright); font-size: 20px; }

/* ============================================================
   OUTCOMES
   ============================================================ */
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
}
.outcome {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.12s;
  outline-offset: -2px;
}
.outcome:hover { background: var(--panel-2); }
.outcome.featured {
  grid-column: 1 / -1;
  border-left: 3px solid var(--red);
}
.outcome-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.outcome-id { font-size: 12px; color: var(--red); }
.outcome-sector { font-size: 12px; color: var(--text-dim); text-align: right; }
.outcome-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  line-height: 0.98;
}
.outcome.featured .outcome-title { font-size: clamp(30px, 4vw, 46px); }
.outcome-cap { margin: 0; display: grid; gap: 4px; }
.outcome-cap dt {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-top: 14px;
}
.outcome-cap dt:first-child { margin-top: 0; }
.outcome-cap dd { margin: 4px 0 0; color: var(--text-mid); font-size: 16px; line-height: 1.5; }
.outcome.featured .outcome-cap { grid-template-columns: 110px 1fr; column-gap: 26px; align-items: baseline; }
.outcome.featured .outcome-cap dt { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.outcome.featured .outcome-cap dd { padding-top: 14px; border-top: 1px solid var(--border); }
.outcome.featured .outcome-cap dt:first-of-type,
.outcome.featured .outcome-cap dd:first-of-type { border-top: none; padding-top: 0; }

/* ============================================================
   INDUSTRY EXPERIENCE
   ============================================================ */
.industry { margin-top: 56px; }
.industry-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.industry-head .sec-index { padding-top: 0; align-self: baseline; }
.industry-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-top: none;
  border-right: none;
}
.industry-cell {
  padding: 24px 22px 28px;
  border-right: 1px solid var(--border);
  background: var(--panel);
}
.ind-yrs { font-size: 12px; color: var(--red); }
.industry-cell h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 12px 0 10px;
  line-height: 1.02;
}
.industry-cell p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ============================================================
   WHEN NOT TO HIRE ME (warning panel)
   ============================================================ */
#not-fit { padding: 56px var(--edge); }
.warn-panel {
  border: 1px solid var(--red);
  background:
    repeating-linear-gradient(45deg,
      rgba(var(--accent-rgb),0.05) 0, rgba(var(--accent-rgb),0.05) 12px,
      transparent 12px, transparent 24px);
}
.warn-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--red);
  background: rgba(var(--accent-rgb),0.10);
}
.warn-tri { color: var(--red); font-size: 22px; line-height: 1; }
.warn-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  flex: 1;
}
.warn-code { font-family: var(--f-mono); font-size: 12px; color: var(--red); letter-spacing: 0.08em; }
.warn-list { list-style: none; margin: 0; padding: 8px 0; counter-reset: warn; }
.warn-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.25);
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text);
}
.warn-list li:last-child { border-bottom: none; }
.warn-x { font-family: var(--f-mono); color: var(--red); font-weight: 700; font-size: 18px; }
.warn-list em { color: var(--text-dim); font-weight: 500; font-style: italic; }

/* ============================================================
   ENGAGEMENT
   ============================================================ */
.capacity-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 18px 26px;
  border: 1px solid var(--border);
  background: var(--panel);
  margin-bottom: 0;
}
.cap-k { font-size: 12px; color: var(--label); }
.cap-v { font-size: 13px; color: var(--text); }
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-top: none;
  border-right: none;
}
.engage-card {
  position: relative;
  padding: 30px 26px 34px;
  border-right: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.12s, color 0.12s;
  outline-offset: -2px;
}
.engage-stage { font-size: 12px; color: var(--red); }
.engage-card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 14px 0 12px;
}
.engage-term {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.engage-card > p:last-child { margin: 0; color: var(--text-dim); font-size: 16px; }
.engage-card:hover { background: var(--panel-2); }

.network-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--bg);
}
.net-label { font-size: 12px; color: var(--red); }
.network-note p { margin: 0; color: var(--text-mid); font-size: 16px; line-height: 1.6; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--panel); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 0;
}
.contact-form-wrap { padding-right: 48px; }
.contact-form-wrap .sec-index { display: inline-block; font-size: 12px; color: var(--red); margin-bottom: 12px; }
.contact-form-wrap .section-title { font-size: clamp(48px, 8vw, 90px); margin-bottom: 22px; }
.contact-intro { max-width: 48ch; color: var(--text-mid); margin: 0 0 36px; font-size: 16.5px; }

.inquiry-form { display: grid; gap: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.field {
  border: 1px solid var(--border);
  background: var(--bg);
}
.field-row .field + .field { border-left: none; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--label);
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 15px;
  padding: 14px;
  resize: vertical;
}
.field textarea { min-height: 120px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus { outline: none; }
.field:focus-within { border-color: var(--red); }
.field:focus-within label { color: var(--red); border-bottom-color: var(--red); }

.form-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn-submit { padding: 15px 28px; }
.form-note { font-size: 12px; color: var(--text-dim); margin: 0; }
.form-note.ok { color: var(--text); }
.form-note.err { color: var(--red-bright); }

.contact-side {
  border-left: 1px solid var(--border);
  padding-left: 30px;
}
.side-tag { font-size: 12px; color: var(--text-dim); }
.side-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  line-height: 0.9;
}
.side-role {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin: 0;
}
.side-divider { height: 1px; background: var(--border); margin: 26px 0 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-bright);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 22px var(--edge);
}
.foot-mark { font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.foot-meta { font-size: 12px; color: var(--text-dim); }
.foot-meta:nth-child(2) { margin-right: auto; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Hide the (decorative) telemetry strip before it crowds the nav */
@media (max-width: 1180px) {
  .header-telemetry { display: none; }
  .header-nav { margin-left: auto; }
}

@media (max-width: 980px) {
  /* Collapse nav to a menu button well before links + toggle would overflow */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px var(--edge); font-size: 13px; }
  .nav-cta { background: var(--red); color: #fff !important; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { padding-right: 0; }
  .hero-side {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    margin-top: 40px;
  }
  .approach-body { grid-template-columns: 1fr; gap: 28px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .engage-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding-right: 0; }
  .contact-side {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 30px;
    margin-top: 40px;
  }
}

@media (max-width: 720px) {
  :root { --edge: 20px; }
  .warn-code { display: none; }
  .warn-head { gap: 12px; }

  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-index { padding-top: 0; }
  .sec-tag { text-align: left; padding-bottom: 0; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row-k { border-right: none; border-bottom: 1px solid var(--border); }
  .module-grid { grid-template-columns: 1fr; }
  .module-ghost { display: none; }
  .industry-grid { grid-template-columns: 1fr; }
  .network-note { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 1px; }
  .field-row .field + .field { border-left: 1px solid var(--border); }
  .outcome.featured .outcome-cap { grid-template-columns: 1fr; }
  .outcome.featured .outcome-cap dt { border-top: none; padding-top: 14px; }
  .outcome.featured .outcome-cap dd { border-top: none; padding-top: 2px; }
  .outcome.featured .outcome-cap dt:first-of-type { padding-top: 0; }
}
