/* =========================================================
   SEN — Solving Existential IT Nightmares
   Shared stylesheet — "case file" industrial/forensic system
   ========================================================= */

:root {
  --black: #0B0D0E;
  --graphite: #171A1C;
  --steel: #343A3D;
  --steel-line: #2A2E31;
  --off-white: #F1F0EB;
  --off-white-dim: rgba(241, 240, 235, 0.62);
  --off-white-faint: rgba(241, 240, 235, 0.38);
  --orange: #E65324;
  --orange-dim: rgba(230, 83, 36, 0.16);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-w: 1180px;
  --edge: clamp(24px, 5vw, 64px);
}

/* ---------- reset ---------- */
*, *::before, *::after { 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; }
}
body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- type scale ---------- */
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--orange);
  display: inline-block;
}
.statement-xl {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.statement-lg {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  text-transform: uppercase;
}
.statement-md {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--off-white-dim);
  max-width: 62ch;
  line-height: 1.55;
}
.body-copy {
  max-width: 68ch;
  color: var(--off-white-dim);
  font-size: 1.05rem;
}
.body-copy + .body-copy { margin-top: 1rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 14, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.wordmark span { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.main-nav ul { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.main-nav a {
  font-size: 0.92rem;
  color: var(--off-white-dim);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--off-white); }
.main-nav a[aria-current="page"] { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel);
  color: var(--off-white);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--black);
}
.btn-primary:hover { background: #ff6a38; }
.btn-secondary {
  background: transparent;
  border-color: var(--steel);
  color: var(--off-white);
}
.btn-secondary:hover { border-color: var(--off-white); }
.btn-ghost {
  background: transparent;
  color: var(--off-white-dim);
  text-transform: none;
  font-weight: 600;
  padding: 13px 4px;
  border-bottom: 1px solid var(--steel);
}
.btn-ghost:hover { color: var(--off-white); border-color: var(--off-white); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 2.2rem; }

/* ---------- sections / rhythm ---------- */
.section {
  padding: clamp(64px, 10vw, 128px) 0;
  border-bottom: 1px solid var(--steel-line);
}
.section-alt { background: var(--graphite); }
.section-tight { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { max-width: 90%; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow-mono { margin-bottom: 14px; }
.section-head h2 { margin-top: 10px; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(72px, 13vw, 150px) 0 clamp(56px, 9vw, 100px);
  position: relative;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--off-white-faint);
  border: 1px solid var(--steel);
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 28px;
}
.hero h1 { margin-bottom: 22px; }
.hero .reveal-b { color: var(--off-white-faint); }
.hero-lede { margin-top: 22px; }

.hero-crossfade {
  animation: crossfade 6s ease-in-out infinite;
}
@keyframes crossfade {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0.32; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-crossfade { animation: none; }
}

/* ---------- placeholder visual blocks (imagery stand-ins) ---------- */
.tech-frame {
  border: 1px solid var(--steel);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, var(--steel-line) 23px, var(--steel-line) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, var(--steel-line) 23px, var(--steel-line) 24px),
    var(--graphite);
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.tech-frame::before {
  content: "";
  position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid var(--steel);
  pointer-events: none;
}
.tech-frame::after {
  content: "+";
  position: absolute; top: -9px; left: 8px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--black);
  padding: 0 3px;
}
.tech-frame-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--off-white-faint);
  letter-spacing: 0.04em;
  z-index: 1;
}

/* ---------- proof stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--steel-line);
  border-left: 1px solid var(--steel-line);
}
.stat-cell {
  border-right: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
  padding: 30px 26px;
}
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--orange);
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
/* Word-based labels (as opposed to short numeric stats) get their own,
   smaller scale so a long word like "Provocative" or "Infrastructure"
   can never overflow its grid cell into a neighbour. */
.stat-cell .term {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: var(--orange);
  display: block;
  text-transform: none;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.15;
}
.stat-cell .label {
  margin-top: 8px;
  color: var(--off-white-dim);
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

/* ---------- process steps (genuinely sequential content) ---------- */
.step-list { border-top: 1px solid var(--steel-line); }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--steel-line);
}
.step .step-index {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.95rem;
  padding-top: 4px;
}
.step h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--off-white-dim); font-size: 0.98rem; max-width: 58ch; }

/* ---------- pathway cards (Shielding / Fire Fighting) ---------- */
.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
}
.pathway {
  background: var(--black);
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
}
.pathway .eyebrow-mono { margin-bottom: 16px; }
.pathway h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; margin-bottom: 14px; }
.pathway p { color: var(--off-white-dim); margin-bottom: 24px; }
.pathway .btn { margin-top: auto; align-self: flex-start; }
.pathway.pathway-fire .eyebrow-mono { color: var(--orange); }

@media (max-width: 760px) {
  .pathway-grid { grid-template-columns: 1fr; }
}

/* ---------- exhibit / case study blocks ---------- */
.exhibit {
  border: 1px solid var(--steel);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 28px;
}
.exhibit-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--off-white-faint);
  display: block;
  margin-bottom: 18px;
}
.exhibit .headline-stat {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.exhibit .chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--off-white);
  margin: 18px 0 22px;
}
.exhibit .chain span.arrow { color: var(--steel); }
.exhibit p { color: var(--off-white-dim); }
.exhibit .callout {
  margin-top: 18px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--off-white);
}

/* ---------- audience table ---------- */
.audience-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.audience-table th, .audience-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--steel-line);
  vertical-align: top;
  font-size: 0.95rem;
}
.audience-table th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--off-white-faint);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--steel);
}
.audience-table td.role { font-weight: 700; color: var(--off-white); }
.audience-table td.msg { color: var(--orange); font-style: normal; }
@media (max-width: 700px) {
  .audience-table thead { display: none; }
  .audience-table, .audience-table tbody, .audience-table tr, .audience-table td { display: block; width: 100%; }
  .audience-table tr { border-bottom: 1px solid var(--steel); padding: 14px 0; }
  .audience-table td { border: none; padding: 4px 0; }
}

/* ---------- final CTA banner ---------- */
.cta-banner {
  background: var(--graphite);
  padding: clamp(56px, 9vw, 110px) 0;
  text-align: center;
}
.cta-banner .container { display: flex; flex-direction: column; align-items: center; }
.cta-banner h2 { max-width: 18ch; }
.cta-banner .cta-row { justify-content: center; }

/* ---------- lists with orange markers ---------- */
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--off-white-dim);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px;
  border: 1px solid var(--orange);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--black);
  padding: 56px 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--steel-line);
}
.footer-brand .wordmark { display: block; margin-bottom: 12px; }
.footer-brand p { color: var(--off-white-faint); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--off-white-faint);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-weight: 400;
  text-transform: none;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--off-white-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--off-white-faint);
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- page masthead image (e.g. Shielding hero photo) ---------- */
.masthead {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-line);
}
.masthead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* For source images where critical content (headline, caption) spans
   nearly the full frame, forcing a 16:9 crop clips real information.
   This variant shows the image at its native ratio instead, framed
   like the site's other exhibit photography rather than full-bleed. */
.masthead-framed {
  aspect-ratio: auto;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--steel);
  background: var(--graphite);
}
.masthead-framed img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ---------- exhibit photo frame (real image, not the tech-frame placeholder) ---------- */
.exhibit-photo {
  border: 1px solid var(--steel);
  margin-bottom: 20px;
  overflow: hidden;
}
.exhibit-photo img {
  width: 100%;
  display: block;
}

/* ---------- enemy / two-up image cards (Home "Enemies" section) ---------- */
.enemy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.enemy-card {
  background: var(--black);
  border: 1px solid var(--steel);
}
.enemy-card img { width: 100%; display: block; }
.enemy-card .enemy-copy { padding: 26px 28px clamp(30px, 4vw, 40px); }
.enemy-card .eyebrow-mono { margin-bottom: 10px; }
.enemy-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); text-transform: uppercase; margin-bottom: 10px; }
.enemy-card p { color: var(--off-white-dim); font-size: 0.96rem; }
@media (max-width: 760px) {
  .enemy-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- scroll reveal (sequential reveal, not parallax) ----------
   Progressive enhancement: content is fully visible by default. Only once
   an early inline script confirms JS is running does <html> get the "js"
   class, which is the ONLY thing that allows these elements to start
   hidden. If JS is blocked or fails, everything just renders normally. */
.js .reveal-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal-block.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-block.reveal-image {
  transition-delay: 0.18s;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- placeholder / assumption notices (remove when replaced) ---------- */
.build-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--off-white-faint);
  border: 1px dashed var(--steel);
  padding: 10px 14px;
  margin-top: 14px;
  display: inline-block;
}

/* ---------- generic two-col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- responsive nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 180px var(--edge);
    display: none;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 8px; width: 100%; margin: -170px 0 0 0; }
  .main-nav a { font-size: 1.15rem; }
  .main-nav .btn { margin-top: 10px; }
}

/* space-grotesk-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/space-grotesk-v22-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/space-grotesk-v22-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/manrope-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/manrope-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/manrope-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/manrope-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-mono-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
