/* TWRU Technologies site styles. One stylesheet for every page. */
:root {
  --paper: #f6f8f4;
  --paper-2: #edf2e8;
  --ink: #16211a;
  --muted: #4b584f;
  --line: #cfd9c8;
  --forest: #173626;
  --forest-2: #20462f;
  --leaf: #5d9732;
  --leaf-ink: #3d6c1e;
  --sage: #dfe9d6;
  --signal: #b7791f;
  --white: #ffffff;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-l: 14px;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--white); padding: 10px 14px; z-index: 50; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--sage { background: var(--paper-2); }
.section--forest { background: var(--forest); color: #e7efe2; }
.section--forest h2, .section--forest h3, .section--forest h4 { color: var(--white); }
.section--forest a { color: #b9dd98; }
.section--forest .lead, .section--forest p { color: #cfdcc8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 244, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--leaf-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.header-phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-block; }
  .nav, .header-cta { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; padding: 8px 0 12px; margin: 0; }
  .site-header.open .nav a { padding: 8px 0; font-size: 1.1rem; }
  .site-header.open .header-cta { display: flex; width: 100%; padding-bottom: 16px; flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; font-size: 1rem; }
.btn--primary { background: var(--leaf-ink); color: var(--white); }
.btn--primary:hover { background: var(--forest); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--forest .btn--primary { background: #b9dd98; color: var(--forest); }
.section--forest .btn--primary:hover { background: var(--white); }
.section--forest .btn--ghost { border-color: #cfdcc8; color: var(--white); }
.section--forest .btn--ghost:hover { background: var(--white); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn--small { padding: 9px 16px; font-size: 0.95rem; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 18px; }
.hero--page .wrap { grid-template-columns: minmax(0, 1fr); }
.hero--page h1 { max-width: 20ch; }
.kicker { font-weight: 700; color: var(--leaf-ink); margin-bottom: 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }


/* Proof strip */
.proof { border-block: 1px solid var(--line); background: var(--white); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof div { padding: 22px 20px 22px 0; }
.proof div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--display); font-stretch: 88%; font-size: 1.35rem; line-height: 1.15; }
.proof span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .proof .wrap { grid-template-columns: 1fr 1fr; } .proof div:nth-child(3) { padding-left: 0; border-left: 0; } .proof div { border-top: 1px solid var(--line); } .proof div:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 520px) { .proof .wrap { grid-template-columns: 1fr; } .proof div, .proof div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .proof div:first-child { border-top: 0; } }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2 { margin: 0; }
.head p { margin: 0; }
.head--stack { grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; gap: 14px; } }

/* Pillars: three columns separated by rules, not cards */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.pillars > div { padding: 26px 28px 8px 0; }
.pillars > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.pillars ul { padding-left: 1.1em; margin: 0 0 18px; color: var(--muted); }
.pillars li { margin-bottom: 4px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillars > div, .pillars > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .pillars > div:first-child { border-top: 0; } }

/* Systems list (AI) */
.systems { display: grid; gap: 0; border-top: 1px solid rgba(219, 231, 211, 0.25); }
.system { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); padding-block: 36px; border-bottom: 1px solid rgba(219, 231, 211, 0.25); align-items: center; }
.system h3 { margin-bottom: 10px; }
.system .result { font-family: var(--display); font-stretch: 88%; font-weight: 700; color: #b9dd98; font-size: 1.15rem; margin-top: 4px; }
.system ul { padding-left: 1.1em; margin: 0; color: #cfdcc8; }
@media (max-width: 860px) { .system { grid-template-columns: 1fr; } }
.section:not(.section--forest) .systems, .section:not(.section--forest) .system { border-color: var(--line); }
.section:not(.section--forest) .system .result { color: var(--leaf-ink); }
.section:not(.section--forest) .system ul { color: var(--muted); }

/* Flow diagrams */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.flow > div { flex: 1 1 0; min-width: 120px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(219, 231, 211, 0.28); border-radius: var(--radius-s); padding: 12px 14px; font-size: 0.92rem; line-height: 1.35; position: relative; }
.flow > div + div { margin-left: 22px; }
.flow > div + div::before { content: ""; position: absolute; left: -17px; top: 50%; width: 12px; height: 2px; background: #9fbf86; }
.flow > div + div::after { content: ""; position: absolute; left: -9px; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: #9fbf86; }
.flow strong { display: block; color: var(--white); font-size: 0.95rem; }
.flow .human { border-color: #e9b45c; }
.flow .human strong { color: #f3cf8e; }
.section:not(.section--forest) .flow > div { background: var(--white); border-color: var(--line); }
.section:not(.section--forest) .flow strong { color: var(--ink); }
.section:not(.section--forest) .flow > div + div::before { background: var(--leaf); }
.section:not(.section--forest) .flow > div + div::after { border-left-color: var(--leaf); }
.section:not(.section--forest) .flow .human { border-color: var(--signal); }
.section:not(.section--forest) .flow .human strong { color: #8a5a12; }
@media (max-width: 620px) {
  .flow { flex-direction: column; }
  .flow > div + div { margin-left: 0; margin-top: 18px; }
  .flow > div + div::before { left: 50%; top: -15px; width: 2px; height: 10px; }
  .flow > div + div::after { left: calc(50% - 4px); top: -8px; border: 5px solid transparent; border-top-color: #9fbf86; }
  .section:not(.section--forest) .flow > div + div::after { border-top-color: var(--leaf); border-left-color: transparent; }
}

/* Big number moment (used once per page at most) */
.bignum { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.bignum .from-to { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); line-height: 0.95; color: var(--forest); }
.bignum .from-to s { color: var(--muted); text-decoration-thickness: 4px; text-decoration-color: rgba(75, 88, 79, 0.6); font-weight: 600; }
.bignum .from-to span { display: block; color: var(--leaf-ink); }
@media (max-width: 760px) { .bignum { grid-template-columns: 1fr; } }

/* Two-column text blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.section--forest .ticks li { border-color: rgba(219, 231, 211, 0.2); }
.section--forest .ticks li::before { border-color: #b9dd98; }

/* Steps: a real sequence, so numbered */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 22px 22px 10px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--leaf-ink); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: var(--step-1); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .steps li:first-child { border-top: 0; } }

/* Price table */
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-family: var(--display); font-stretch: 88%; font-size: 1.15rem; }
.prices td.price { font-family: var(--display); font-stretch: 88%; font-weight: 750; font-size: 1.2rem; white-space: nowrap; color: var(--forest); }
.prices td small { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 0.85rem; white-space: normal; }
@media (max-width: 680px) { .prices, .prices tbody, .prices tr, .prices td, .prices th { display: block; } .prices thead { display: none; } .prices tr { border-bottom: 1px solid var(--line); padding: 14px 0; } .prices td, .prices th { border: 0; padding: 4px 0; } }

/* Industries list */
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.industry { padding: 22px 0; border-bottom: 1px solid var(--line); }
.industry h3 { font-size: var(--step-1); margin-bottom: 6px; }
.industry p { color: var(--muted); margin-bottom: 8px; }
.industry .tools { font-size: 0.9rem; color: var(--ink); }
.industry .tools b { color: var(--leaf-ink); }
@media (max-width: 760px) { .industries { grid-template-columns: 1fr; } }

/* Stories */
.story { border-left: 4px solid var(--leaf); padding: 4px 0 4px 22px; margin-bottom: 30px; }
.story h3 { font-size: var(--step-1); }
.story p { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--leaf-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person { border-top: 2px solid var(--ink); padding-top: 18px; }
.person .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.8rem; margin-bottom: 14px; overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: var(--step-1); margin-bottom: 2px; }
.person .role { color: var(--leaf-ink); font-weight: 700; margin-bottom: 10px; }
.person p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #c3cfbf; padding-block: 56px 32px; font-size: 0.95rem; }
.site-footer a { color: #dfe9d6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid .foot-h { color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 0 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { background: var(--white); border-radius: var(--radius-s); padding: 10px 12px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 150px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(195, 207, 191, 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.note { font-size: 0.88rem; color: var(--muted); }
.section--forest .note { color: #a9bca1; }
.mt-0 { margin-top: 0; }
.center-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.redirect { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- Home hero: live operations console ---------- */
.hero--console {
  --night: #0c1d14;
  position: relative; overflow: hidden; color: #e4ede0;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(93, 151, 50, 0.28), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(32, 70, 47, 0.9), transparent 70%),
    linear-gradient(180deg, #102a1c 0%, var(--night) 100%);
  padding-block: clamp(56px, 8vw, 112px) 0;
}
.hero--console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(185, 221, 152, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 221, 152, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 90% at 70% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 90% at 70% 40%, #000 30%, transparent 85%);
}
.hero--console .wrap { position: relative; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.hero--console h1 { color: var(--white); font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.9rem); line-height: 0.98; letter-spacing: -0.025em; font-stretch: 82%; max-width: 12ch; }
.hero--console .lead { color: #bfd0b6; max-width: 46ch; }
.hero--console .btn--primary { background: #9fd36f; color: #0c1d14; }
.hero--console .btn--primary:hover { background: var(--white); color: #0c1d14; }
.hero--console .btn--ghost { border-color: rgba(228, 237, 224, 0.55); color: var(--white); }
.hero--console .btn--ghost:hover { background: var(--white); color: #0c1d14; }

.console {
  margin: 0; background: rgba(9, 22, 15, 0.82); border: 1px solid rgba(185, 221, 152, 0.22);
  border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(185, 221, 152, 0.04);
  backdrop-filter: blur(6px); overflow: hidden; font-size: 0.94rem;
}
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(185, 221, 152, 0.16); background: rgba(185, 221, 152, 0.05); }
.console-title { font-family: var(--display); font-stretch: 88%; font-weight: 700; color: var(--white); margin-right: auto; }
.console-clock { font-family: var(--mono); font-size: 0.85rem; color: #9fbf86; font-variant-numeric: tabular-nums; }
.console-state { font-size: 0.8rem; font-weight: 700; padding: 4px 10px 4px 22px; border-radius: 999px; position: relative; white-space: nowrap; transition: background-color .3s, color .3s; }
.console-state::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; }
.console-state[data-state="ok"] { background: rgba(159, 211, 111, 0.14); color: #a9dc7e; }
.console-state[data-state="warn"] { background: rgba(233, 180, 92, 0.16); color: #f0c274; }
.console-state[data-state="bad"] { background: rgba(240, 120, 96, 0.16); color: #ff9b84; }
.console-state[data-state="bad"]::before { animation: blink 1s steps(2) infinite; }

.console-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(185, 221, 152, 0.12); border-bottom: 1px solid rgba(185, 221, 152, 0.16); }
.tile { background: #0b1b12; padding: 12px 14px; border-top: 3px solid #6fae45; transition: border-color .3s; }
.tile span { display: block; font-size: 0.76rem; color: #93a98a; }
.tile b { display: block; color: var(--white); font-size: 0.98rem; margin-top: 2px; }
.tile[data-s="warn"] { border-top-color: #e9b45c; }
.tile[data-s="bad"] { border-top-color: #f07860; }
.tile[data-s="bad"] b { color: #ffb4a3; }

.console-feed { list-style: none; margin: 0; padding: 6px 16px 4px; }
.console-feed li { display: grid; grid-template-columns: 4.8rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(185, 221, 152, 0.12); }
.console-feed li:last-child { border-bottom: 0; }
.console-feed time { font-family: var(--mono); font-size: 0.82rem; color: #8fb27a; padding-top: 2px; }
.console-feed p { margin: 0; color: #dbe6d5; line-height: 1.42; }
.console-feed small { display: block; font-size: 0.78rem; color: #8ea386; margin-top: 2px; }
.console-feed li.done p { color: var(--white); font-weight: 700; }
.approve { display: inline-block; margin-top: 6px; font-size: 0.76rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1px solid #e9b45c; color: #f0c274; }
.approve.ok { border-color: #9fd36f; color: #a9dc7e; background: rgba(159, 211, 111, 0.1); }
.console figcaption { padding: 10px 16px 14px; font-size: 0.78rem; color: #8ea386; border-top: 1px solid rgba(185, 221, 152, 0.12); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.console-replay { font: inherit; font-weight: 700; color: #a9dc7e; background: none; border: 1px solid rgba(159, 211, 111, 0.4); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.console-replay:hover { background: rgba(159, 211, 111, 0.12); }

/* Feed reveal: only when the script is running it */
.console.animate .console-feed li { visibility: hidden; opacity: 0; }
.console.animate .console-feed li.on { visibility: visible; opacity: 1; animation: feed-in 380ms ease-out both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(8px); background: rgba(159, 211, 111, 0.12); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes blink { 50% { opacity: 0.2; } }

.hero--console .hero-partners { display: block; padding-block: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 40px); }

/* ---------- Partner logos: one-colour, no boxes ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.partners-label { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 0; }
.partners li { display: flex; align-items: center; padding: 4px 28px; border-left: 1px solid var(--line); }
.partners li:first-child { border-left: 0; padding-left: 0; }
.partners img { width: auto; display: block; filter: brightness(0); opacity: 0.62; transition: opacity .2s, filter .2s; }
.partners li:hover img { filter: none; opacity: 1; }
.partner-name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--muted); }
.partners--dark .partners-label { color: #8ea386; }
.partners--dark li { border-left-color: rgba(185, 221, 152, 0.22); }
.partners--dark img { filter: brightness(0) invert(1); opacity: 0.72; }
.partners--dark li:hover img { filter: brightness(0) invert(1); opacity: 1; }
.hero--console .hero-partners { border-top: 1px solid rgba(185, 221, 152, 0.14); margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; }
@media (max-width: 600px) {
  .partners { flex-direction: column; align-items: flex-start; gap: 12px; }
  .partners ul { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .partners li, .partners li:first-child { padding: 0; border-left: 0; }
}
.partners-row { grid-column: 1 / -1; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.partners-row > p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 28ch; }

@media (max-width: 900px) {
  .hero--console .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .console-tiles { grid-template-columns: 1fr; }
  .tile { display: flex; justify-content: space-between; align-items: baseline; border-top: 0; border-left: 3px solid #6fae45; }
  .tile[data-s="warn"] { border-left-color: #e9b45c; } .tile[data-s="bad"] { border-left-color: #f07860; }
  .console-bar { flex-wrap: wrap; }
  .console-feed li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) { .console-feed li, .console-state::before { animation: none !important; } }

/* ---------- Security page ---------- */
.hero--security .wrap { align-items: center; }
.soc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(185, 221, 152, 0.18); border: 1px solid rgba(185, 221, 152, 0.22); border-radius: 16px; overflow: hidden; }
.soc-stats div { background: rgba(9, 22, 15, 0.85); padding: 22px 22px 20px; }
.soc-stats strong { display: block; font-family: var(--display); font-stretch: 82%; font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1; color: #a9dc7e; letter-spacing: -0.02em; }
.soc-stats span { display: block; margin-top: 8px; color: #c7d6bf; font-size: 0.95rem; line-height: 1.35; }
.soc-stats p { grid-column: 1 / -1; max-width: none; margin: 0; padding: 12px 22px; background: rgba(9, 22, 15, 0.92); color: #8ea386; font-size: 0.8rem; }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.layer { padding: 24px 26px 26px 0; border-bottom: 1px solid var(--line); }
.layer:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.layer h3 { margin-bottom: 8px; }
.layer p { margin: 0; color: var(--muted); }
.flow--wide { margin-top: 8px; }
@media (max-width: 900px) {
  .layers { grid-template-columns: 1fr 1fr; }
  .layer:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .layer:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .layers { grid-template-columns: 1fr; }
  .layer:nth-child(even) { padding-left: 0; border-left: 0; }
  .soc-stats { grid-template-columns: 1fr 1fr; }
  .soc-stats div { padding: 16px; }
}

/* Console loop */
.console-feed { transition: opacity .45s ease; }
.console-feed.fade { opacity: 0; }
.console figcaption > span { min-width: 0; }
.console-scenario { color: #c7d6bf; font-weight: 700; }
.console figcaption { align-items: flex-start; line-height: 1.5; }
.console figcaption > span { white-space: normal; }
@media (max-width: 520px) { .console figcaption > span { min-height: 4.5em; } }
