/* BitGate ISS — dark theme based on the Pixel Monogram logo concept
   Palette: Terminal Ink #0F1E1C, Emerald #059669, Mint #34D399 */
:root {
  --bg: #0A1513;          /* page background, deeper than Terminal Ink */
  --ink: #0F1E1C;         /* Terminal Ink: header, footer, cards */
  --surface: #13261F;     /* raised surfaces */
  --surface-2: #183029;   /* hover / inputs */
  --line: #24403A;        /* borders */
  --text: #E6ECEA;        /* body text */
  --muted: #9AACA7;       /* secondary text */
  --emerald: #059669;
  --emerald-hover: #047857;
  --mint: #34D399;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--mono); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: #FFFFFF; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--mint); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Header */
.site-header { background: rgba(15, 30, 28, 0.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.brand:hover { text-decoration: none; }
.wordmark { font-family: var(--mono); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; color: #FFFFFF; line-height: 1; }
.wordmark.small { font-size: 1.15rem; }
.tld { color: var(--mint); }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 6px; }
.main-nav a:hover { color: #FFFFFF; background: var(--surface); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--mint); background: var(--surface); }

/* ---------- Buttons */
.btn { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 0.95rem; padding: 13px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--emerald); color: #FFFFFF; }
.btn-primary:hover { background: var(--emerald-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-dark { background: var(--surface-2); color: var(--mint); border-color: var(--line); }
.btn-dark:hover { border-color: var(--mint); }

/* ---------- Hero */
.hero { background:
    radial-gradient(900px 420px at 85% 30%, rgba(52, 211, 153, 0.10), transparent 70%),
    linear-gradient(var(--ink), var(--bg));
  border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { font-family: var(--mono); font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.prompt { color: var(--mint); margin-right: 6px; }
.ok { color: var(--mint); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { display: flex; justify-content: center; }
.hero-mark { width: min(340px, 100%); height: auto; filter: drop-shadow(0 0 40px rgba(52, 211, 153, 0.15)); }

.page-hero { background: linear-gradient(var(--ink), var(--bg)); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.page-hero.tall { padding: 120px 0 140px; }
.page-hero .btn { margin-top: 12px; }

/* ---------- Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label { font-family: var(--mono); font-size: 0.85rem; color: var(--mint); margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--emerald); transform: translateY(-2px); }
.card p { color: var(--muted); flex: 1; }
.card-num { font-family: var(--mono); font-size: 0.85rem; color: var(--mint); display: block; margin-bottom: 14px; }
.card-link { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { border-top: 2px solid var(--emerald); padding-top: 20px; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.step-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--line); display: block; margin-bottom: 6px; }

.trust { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.trust p { color: var(--muted); }
.badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.badges li, .cred { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.badges li span:last-child, .cred p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.badge-code { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--mint); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; min-width: 84px; text-align: center; flex: none; }

.cta { background: var(--ink); border-top: 1px solid var(--line); padding: 72px 0; text-align: center; }
.cta-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Services page */
.services-list { display: grid; gap: 20px; }
.service { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; scroll-margin-top: 96px; }
.service:target { border-color: var(--mint); }
.service h2 { font-size: 1.45rem; }
.service-lead { font-size: 1.08rem; color: var(--text); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.checklist li::before { content: ">"; position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; color: var(--mint); }

/* ---------- About */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose strong { color: #FFFFFF; }
.todo { background: rgba(251, 191, 36, 0.08); border: 1px dashed #B45309; color: #FCD34D !important; padding: 14px 16px; border-radius: 8px; font-size: 0.95rem; }
.cred-panel { display: grid; gap: 16px; position: sticky; top: 100px; }

/* ---------- Contact */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: none; background: rgba(239, 68, 68, 0.1); border: 1px solid #B91C1C; color: #FCA5A5; border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-size: 0.95rem; }
.alert:target { display: block; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; }
.contact-side h2 { font-size: 1.1rem; margin-top: 1.4em; }
.contact-side p { color: var(--muted); }

/* ---------- Footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.tagline { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.9rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--mint); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Responsive */
@media (max-width: 960px) {
  .hero-inner, .trust, .about, .contact { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .cred-panel { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; justify-content: center; }
  .main-nav { justify-content: center; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .service, .form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Badge wall (About page) */
.badge-wall { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.badge-wall li { background: #F4F7F6; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.badge-wall img { width: 120px; height: 120px; object-fit: contain; }
.badge-wall span { font-size: 0.78rem; line-height: 1.35; color: #33433F; }


/* =====================================================================
   Animations (CSS only; no scripts, so the strict CSP stays intact).
   Everything below is skipped for visitors who prefer reduced motion.
   ===================================================================== */

/* Circuit-trace background (static part is always shown) */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.circuit .traces path { fill: none; stroke: #1E3A33; stroke-width: 2; }
.circuit .nodes circle { fill: #0F1E1C; stroke: #24403A; stroke-width: 2; }
.circuit .packets path { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 386; stroke-dashoffset: 400; opacity: 0; }

/* Typed command line: per-length widths */
.typed.t6 { --w: 6ch; --steps: 6; }
.typed.t7 { --w: 7ch; --steps: 7; }
.typed.t9 { --w: 9ch; --steps: 9; }
.typed.t12 { --w: 12ch; --steps: 12; }
.typed.t14 { --w: 14ch; --steps: 14; }
.typed.t26 { --w: 26ch; --steps: 26; }
.typed { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; }
.cursor { display: inline-block; width: 0.6em; height: 1.05em; margin-left: 3px; vertical-align: text-bottom; background: var(--mint); opacity: 0.85; }

/* Hover glow */
.card:hover, .service:hover { box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 10px 30px -12px rgba(52, 211, 153, 0.35); }
.badge-wall li { transition: transform 0.18s, box-shadow 0.18s; }
.badge-wall li:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--mint), 0 12px 28px -12px rgba(52, 211, 153, 0.5); }
.btn-primary:hover { box-shadow: 0 0 22px -4px rgba(52, 211, 153, 0.6); }

@media (prefers-reduced-motion: no-preference) {
  /* 1. "Decrypting" logo: pixels appear in scrambled order */
  .hero-mark rect { opacity: 0; animation: px-on 0.32s ease-out forwards; }
  .hero-mark rect:nth-child(1) { animation-delay: 0.600s; }
  .hero-mark rect:nth-child(2) { animation-delay: 1.230s; }
  .hero-mark rect:nth-child(3) { animation-delay: 1.090s; }
  .hero-mark rect:nth-child(4) { animation-delay: 1.405s; }
  .hero-mark rect:nth-child(5) { animation-delay: 1.370s; }
  .hero-mark rect:nth-child(6) { animation-delay: 0.250s; }
  .hero-mark rect:nth-child(7) { animation-delay: 1.335s; }
  .hero-mark rect:nth-child(8) { animation-delay: 0.950s; }
  .hero-mark rect:nth-child(9) { animation-delay: 0.355s; }
  .hero-mark rect:nth-child(10) { animation-delay: 1.475s; }
  .hero-mark rect:nth-child(11) { animation-delay: 0.705s; }
  .hero-mark rect:nth-child(12) { animation-delay: 1.300s; }
  .hero-mark rect:nth-child(13) { animation-delay: 0.495s; }
  .hero-mark rect:nth-child(14) { animation-delay: 1.055s; }
  .hero-mark rect:nth-child(15) { animation-delay: 0.320s; }
  .hero-mark rect:nth-child(16) { animation-delay: 0.740s; }
  .hero-mark rect:nth-child(17) { animation-delay: 1.195s; }
  .hero-mark rect:nth-child(18) { animation-delay: 0.880s; }
  .hero-mark rect:nth-child(19) { animation-delay: 1.265s; }
  .hero-mark rect:nth-child(20) { animation-delay: 0.285s; }
  .hero-mark rect:nth-child(21) { animation-delay: 1.510s; }
  .hero-mark rect:nth-child(22) { animation-delay: 0.915s; }
  .hero-mark rect:nth-child(23) { animation-delay: 0.845s; }
  .hero-mark rect:nth-child(24) { animation-delay: 1.020s; }
  .hero-mark rect:nth-child(25) { animation-delay: 0.985s; }
  .hero-mark rect:nth-child(26) { animation-delay: 1.440s; }
  .hero-mark rect:nth-child(27) { animation-delay: 0.530s; }
  .hero-mark rect:nth-child(28) { animation-delay: 0.460s; }
  .hero-mark rect:nth-child(29) { animation-delay: 1.125s; }
  .hero-mark rect:nth-child(30) { animation-delay: 0.670s; }
  .hero-mark rect:nth-child(31) { animation-delay: 0.565s; }
  .hero-mark rect:nth-child(32) { animation-delay: 1.160s; }
  .hero-mark rect:nth-child(33) { animation-delay: 0.390s; }
  .hero-mark rect:nth-child(34) { animation-delay: 0.775s; }
  .hero-mark rect:nth-child(35) { animation-delay: 0.810s; }
  .hero-mark rect:nth-child(36) { animation-delay: 0.635s; }
  .hero-mark rect:nth-child(37) { animation-delay: 0.425s; }
  .hero-mark rect.px-accent { animation: px-on 0.32s ease-out 1.75s forwards, led 2.4s ease-in-out 2.2s infinite; }
  @keyframes px-on {
    0%   { opacity: 0; fill: var(--mint); }
    60%  { opacity: 1; fill: var(--mint); }
    100% { opacity: 1; }
  }

  /* 2. Status LED: mint pixels pulse (header logo on every page, hero logo after build-in) */
  .brand .px-accent { animation: led 2.4s ease-in-out infinite; }
  .brand .px-accent + .px-accent { animation-delay: 0.3s; }
  @keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

  /* 3. Data packets travelling along the circuit traces */
  .circuit .packets path { animation: packet 6s linear infinite; }
  .circuit .pk1 { animation-delay: 0.4s; }
  .circuit .pk2 { animation-delay: 2.1s; animation-duration: 7s; }
  .circuit .pk3 { animation-delay: 1.2s; animation-duration: 5.5s; }
  .circuit .pk4 { animation-delay: 3.4s; animation-duration: 7.5s; }
  .circuit .pk5 { animation-delay: 4.6s; animation-duration: 5s; }
  .circuit .pk6 { animation-delay: 0.9s; animation-duration: 6.5s; }
  .circuit .pk7 { animation-delay: 2.8s; animation-duration: 5s; }
  .circuit .pk8 { animation-delay: 5.2s; animation-duration: 4.5s; }
  @keyframes packet {
    0%   { stroke-dashoffset: 400; opacity: 0; }
    8%   { opacity: 0.9; }
    85%  { opacity: 0.9; }
    100% { stroke-dashoffset: 0; opacity: 0; }
  }

  /* 4. Typed command + blinking cursor */
  .typed { width: 0; animation: type calc(var(--steps) * 0.055s) steps(var(--steps), end) 0.35s forwards; }
  @keyframes type { to { width: var(--w); } }
  .cursor { animation: blink 1.05s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  /* 5. Scroll reveals (browsers with scroll-driven animations; others just show content) */
  @supports (animation-timeline: view()) {
    .card, .steps li, .service, .badge-wall li, .cred, .badges li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

/* =====================================================================
   Principles page
   ===================================================================== */
.typed.t17 { --w: 17ch; --steps: 17; }
.muted { color: var(--muted); }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split-art { display: flex; flex-direction: column; align-items: center; }
.trademark { font-size: 0.78rem; color: var(--muted); padding-top: 18px; padding-bottom: 18px; margin: 0 auto; }

/* CIA triad diagram */
.triad { width: 100%; max-width: 480px; height: auto; }
.triad .edges path { stroke: var(--line); stroke-width: 3; fill: none; }
.triad .packets path { fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 18 382; stroke-dashoffset: 400; opacity: 0; }
.triad .node circle { fill: var(--surface); stroke: var(--emerald); stroke-width: 3; }
.triad .node-letter { font-family: var(--mono); font-weight: 700; font-size: 40px; fill: #FFFFFF; }
.triad .node-word { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; fill: var(--mint); }
.pillars { display: grid; gap: 14px; margin-top: 24px; }
.pillar { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pillar-letter { grid-row: span 3; font-family: var(--mono); font-weight: 700; font-size: 1.6rem; color: var(--mint); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.pillar h3 { margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.pillar .pillar-how { margin-top: 6px; font-family: var(--mono); font-size: 0.85rem; color: var(--text); }

/* CISSP domains */
.domains-split { margin-top: 24px; }
.donut { width: 100%; max-width: 300px; height: auto; }
.donut .seg-num { font-family: var(--mono); font-weight: 700; font-size: 13px; fill: #0A1513; }
.donut-big { font-family: var(--mono); font-weight: 700; font-size: 54px; fill: #FFFFFF; }
.donut-small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.25em; fill: var(--muted); }
.domains { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.domain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.domain:hover { border-color: var(--emerald); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 10px 30px -12px rgba(52, 211, 153, 0.35); }
.domain-head { display: flex; justify-content: space-between; font-family: var(--mono); font-weight: 700; margin-bottom: 10px; }
.domain-num { color: var(--mint); }
.domain-weight { color: var(--muted); font-size: 0.9rem; }
.domain h3 { font-size: 1rem; }
.domain p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--mint)); border-radius: 3px; transform-origin: left; }
.bar-fill.w10 { width: 62.5%; } .bar-fill.w12 { width: 75%; } .bar-fill.w13 { width: 81.25%; } .bar-fill.w16 { width: 100%; }

/* ISC2 canons ladder */
.canons { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.canons::before { content: ""; position: absolute; left: 34px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--mint), var(--line)); }
.canon { position: relative; display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 12px; }
.canon-num { flex: none; width: 46px; height: 46px; font-size: 0.85rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--emerald); color: var(--mint); font-family: var(--mono); font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.canon h3 { margin: 0 0 4px; font-size: 1.05rem; }
.canon p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .domains { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .domains { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  /* data flowing around the triad */
  .triad .packets path { animation: packet 4.5s linear infinite; }
  .triad .pk2 { animation-delay: 1.5s; }
  .triad .pk3 { animation-delay: 3s; }
  .triad .node circle { animation: node-glow 4.5s ease-in-out infinite; }
  .triad .n2 circle { animation-delay: 1.5s; }
  .triad .n3 circle { animation-delay: 3s; }
  @keyframes node-glow { 0%, 100% { stroke: var(--emerald); } 15% { stroke: var(--mint); fill: #183A30; } 35% { fill: var(--surface); } }
  .triad-mark .px-accent { animation: led 2.4s ease-in-out infinite; }

  /* donut segments light up in order */
  .donut .seg { animation: seg-in 0.5s ease-out both; }
  .donut .seg1 { animation-delay: 0.2s; } .donut .seg2 { animation-delay: 0.32s; }
  .donut .seg3 { animation-delay: 0.44s; } .donut .seg4 { animation-delay: 0.56s; }
  .donut .seg5 { animation-delay: 0.68s; } .donut .seg6 { animation-delay: 0.8s; }
  .donut .seg7 { animation-delay: 0.92s; } .donut .seg8 { animation-delay: 1.04s; }
  @keyframes seg-in { from { opacity: 0; } to { opacity: 1; } }

  @supports (animation-timeline: view()) {
    .bar-fill { animation: bar-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .domain, .pillar, .canon { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

/* Principles: give the diagrams more room */
.split-cia { grid-template-columns: 1.1fr 1fr; gap: 40px; }
.split-cia .triad { max-width: 600px; }
.donut { max-width: 340px; }
@media (max-width: 960px) { .split-cia { grid-template-columns: 1fr; } }

/* Large and ultrawide monitors: use more of the screen */
@media (min-width: 1600px) {
  :root { --wrap: 1440px; }
  body { font-size: 18px; }
  .split-cia .triad { max-width: 760px; }
  .donut { max-width: 420px; }
  .hero-mark { width: min(420px, 100%); }
}
@media (min-width: 2400px) {
  :root { --wrap: 1680px; }
  body { font-size: 19px; }
  .split-cia .triad { max-width: 860px; }
}

/* Privacy policy page */
.typed.t15 { --w: 15ch; --steps: 15; }
.policy { max-width: 760px; }
.policy h2 { font-size: 1.25rem; margin-top: 1.8em; }
.policy h2:first-child { margin-top: 0; }
.copyright a { color: var(--muted); text-decoration: underline; }
.copyright a:hover { color: var(--mint); }
.copyright .sep { margin: 0 6px; opacity: 0.5; }
.fine a { color: var(--muted); text-decoration: underline; }
