/* Eight November — site styles. Single light theme by design. */
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1F2328;        /* charcoal: header, footer, headings */
  --ink-2: #394048;      /* body text */
  --muted: #5B636B;      /* captions, labels */
  --line: #DCE0E4;       /* hairlines */
  --paper: #FFFFFF;
  --paper-2: #F2F4F6;    /* alternate section ground, cool gray */
  --amber: #E8971E;      /* brand accent: buttons, marks */
  --amber-ink: #9A5A06;  /* amber dark enough for text on white */
  --ok: #2F7D4F;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-ink);
}
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 2px; border: 2px solid transparent;
  font: 700 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #F2A93A; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--ink); color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #E6E8EA; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--amber); }
.nav .btn { padding: 10px 16px; color: var(--ink); }
.nav .btn:hover { text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid #5B636B; color: #fff; border-radius: 2px; padding: 8px 12px; font: 600 0.9rem var(--sans); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 18px; border-top: 1px solid #343a41; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #343a41; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .brand img { height: 28px; }
}

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); scroll-margin-top: 68px; }
.alt { background: var(--paper-2); }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }

/* Hero */
.hero { padding-block: clamp(44px, 7vw, 84px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.figure-panel { border: 1px solid var(--line); background: var(--paper-2); }
.figure-panel img { width: 100%; }
.title-block {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.title-block div { padding: 8px 10px; border-left: 1px solid var(--line); min-width: 0; }
.title-block div:first-child { border-left: 0; }
.title-block b { display: block; color: var(--ink); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); } .title-block div:nth-child(3) { border-left: 0; } .title-block div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.facts ul { list-style: none; margin-block: 0; padding-block: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; }
.facts li { display: flex; gap: 10px; align-items: baseline; font-size: 0.92rem; color: var(--ink-2); }
.facts li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--amber); transform: translateY(-1px); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; } }

/* Threats */
.threats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.threat { padding: 22px 24px 4px 0; display: grid; gap: 8px; align-content: start; }
.threat + .threat { padding-left: 24px; border-left: 1px solid var(--line); }
.threat .tag { font-family: var(--mono); font-size: 0.78rem; color: var(--amber-ink); }
@media (max-width: 820px) { .threats { grid-template-columns: 1fr; } .threat, .threat + .threat { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* System */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.part { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; align-content: start; }
.part .kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.part ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.95rem; }
@media (max-width: 900px) { .parts { grid-template-columns: 1fr; } }

.screen { margin-top: 28px; }
.screen figure { margin: 0; border: 1px solid var(--line); background: var(--ink); }
.screen figcaption, .caption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

.states-wrap { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--paper); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 820px) { .states-wrap { grid-template-columns: 1fr; } }

/* Power-fail sequence */
.sequence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.sequence li { position: relative; padding: 34px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.sequence li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--ink); }
.sequence li:last-child::before { right: auto; width: 24px; }
.sequence li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.sequence li:first-child::after { background: var(--ink); }
.sequence li:last-child::after { background: var(--amber); border-color: var(--amber); }
.sequence .t { font-family: var(--mono); font-weight: 500; font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sequence .d { font-size: 0.95rem; }
.seq-note { margin-top: 26px; font-size: 0.9rem; color: var(--muted); max-width: 52em; }
@media (max-width: 820px) {
  .sequence { grid-template-columns: 1fr; }
  .sequence li { padding: 0 0 26px 34px; }
  .sequence li::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .sequence li:last-child::before { display: none; }
  .sequence li::after { top: 4px; }
}

/* Security list */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.sec-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.sec-item svg { grid-row: span 2; margin-top: 4px; }
.sec-item p { font-size: 0.97rem; }
@media (max-width: 820px) { .sec-grid { grid-template-columns: 1fr; } }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sector { border-top: 3px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.sector p { font-size: 0.95rem; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } }

/* Status */
.status { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.status li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pill { display: inline-block; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; border: 1px solid currentColor; width: max-content; }
.pill.done { color: var(--ok); }
.pill.next { color: var(--amber-ink); background: #FDF1DF; border-color: #F0C98C; }
.pill.later { color: var(--muted); }
.status h3 { font-size: 1.02rem; margin-bottom: 4px; }
.status p { font-size: 0.95rem; }
@media (max-width: 560px) { .status li { grid-template-columns: 1fr; gap: 8px; } }

.partner { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); padding: 22px 24px; }
.partner p { max-width: 44em; }

/* Company */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.company-grid .prose { display: grid; gap: 16px; max-width: 38em; }
.company-card { border: 1px solid var(--line); background: var(--paper-2); padding: 24px; display: grid; gap: 14px; }
.company-card dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: 0.95rem; }
.company-card dt { color: var(--muted); }
.company-card dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--ink); color: #E6E8EA; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--amber); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.email-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.email { font-family: var(--mono); font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: #fff; text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; user-select: all; overflow-wrap: anywhere; }
.copy-btn { background: transparent; color: #fff; border: 1px solid #6B737B; border-radius: 2px; padding: 8px 12px; font: 600 0.85rem var(--sans); cursor: pointer; }
.copy-btn:hover { border-color: var(--amber); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; align-items: start; } }

/* Footer */
.site-footer { background: #171A1E; color: #A9B0B7; font-size: 0.88rem; padding-block: 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #D5D9DD; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* utility classes (kept out of inline styles for a strict CSP) */
.figure-panel { margin: 0; }
.section-head.flush { margin: 0; }
.h3-lg { font-size: 1.35rem; }
.dot-ok { background: var(--ok); }
.dot-alarm { background: #C0392B; }
.dot-tamper { background: var(--amber); }
.dot-fault { background: var(--ink); }
.partner strong { color: var(--ink); }
.card-logo { height: 34px; width: auto; }
