/* CyRiskCo Advisory */

/* ---------- Tokens ---------- */

:root {
  --navy: #07121b;
  --navy-soft: #0c1e2b;
  --navy-line: #1a3142;
  --cyan: #09b5dd;
  --cyan-light: #bfecff;
  --amber: #f2a93b;
  --red: #e5484d;
  --on-cyan: #04121a;

  /* light theme */
  --bg: #ffffff;
  --bg-soft: #f3f7f9;
  --surface: #ffffff;
  --heading: #07121b;
  --text: #22394a;
  --muted: #4b6272;
  --line: #d3dee5;
  --accent-text: #0a6f8c;
  --accent-tint: rgba(9, 181, 221, .1);
  --shadow: 0 1px 2px rgba(7, 18, 27, .04), 0 8px 24px rgba(7, 18, 27, .06);

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 74rem;
  --gutter: 1.25rem;
  --radius: 12px;

  color-scheme: light;
}

/* dark theme: follows the system unless the visitor picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07121b;
    --bg-soft: #0b1b27;
    --surface: #0f2433;
    --heading: #f4f9fb;
    --text: #c5d3dc;
    --muted: #93a8b6;
    --line: #1f3646;
    --accent-text: #3cc8ea;
    --accent-tint: rgba(9, 181, 221, .14);
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07121b;
  --bg-soft: #0b1b27;
  --surface: #0f2433;
  --heading: #f4f9fb;
  --text: #c5d3dc;
  --muted: #93a8b6;
  --line: #1f3646;
  --accent-text: #3cc8ea;
  --accent-tint: rgba(9, 181, 221, .14);
  --shadow: none;
  color-scheme: dark;
}

/* Always-dark bands (hero, page headings, call to action) */
.band-dark {
  --bg: #07121b;
  --surface: #0f2433;
  --heading: #f4f9fb;
  --text: #c5d3dc;
  --muted: #93a8b6;
  --line: #1f3646;
  --accent-text: #3cc8ea;
  --accent-tint: rgba(9, 181, 221, .14);
  --shadow: none;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("/img/arcs.svg");
  background-repeat: no-repeat;
  background-size: 1600px;
  background-position: right -800px top -800px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* icons from /img/icons.svg (styles must be set here, they don't carry through <use>) */
.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--heading);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -.03em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; margin-bottom: .5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li + li { margin-top: .4rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--surface); padding: .5rem 1rem; }

.accent { color: var(--cyan); }

.icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.icon svg { width: 1.4rem; height: 1.4rem; }

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.logo { margin-right: auto; }
.logo img { width: 150px; }
.logo .on-dark { display: none; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--heading); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.nav .btn { color: var(--on-cyan); }
.nav-home { display: inline-flex; align-items: center; gap: .5rem; }
.nav-home svg { width: 1.2rem; height: 1.2rem; }
.nav-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  height: 2.5rem;
  min-width: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle { display: none; padding-inline: .85rem; }

@media (max-width: 56rem) {
  .nav-toggle { display: inline-grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.5rem var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav-home span { position: static; width: auto; height: auto; clip-path: none; }
}

/* logo and toggle swap in dark theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .on-light { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--on-cyan);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--cyan);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: #3cc8ea; border-color: #3cc8ea; color: var(--on-cyan); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-outline:hover { background: transparent; border-color: var(--cyan); color: var(--heading); }
.btn svg { width: 1.1rem; height: 1.1rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
}
.link-arrow svg { width: 1rem; height: 1rem; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Layout ---------- */

.section { padding-block: 5.5rem; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.split {
  display: grid;
  gap: 3rem 4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: center;
}
.split-top { align-items: start; }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.card .num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent-text);
  display: block;
  margin-bottom: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 0;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.panel-head .kicker { margin: 0; }

/* ---------- Lists ---------- */

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding-left: 2rem; position: relative; }
.tick-list li + li { margin-top: .85rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309b5dd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.tick-list strong { color: var(--heading); }

/* ---------- Hero (home) ---------- */

.hero .split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }

.hero { padding-block: 5rem; overflow: hidden; background-position: left -800px bottom -800px; }
.hero h1 { max-width: 11ch; }
.hero .lead { color: var(--text); }
.hero-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  font-size: .95rem;
  color: var(--muted);
}
.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(9, 181, 221, .2);
}

.radar { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.radar .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar .sweep {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: conic-gradient(rgba(9, 181, 221, 0) 0deg 300deg, rgba(9, 181, 221, .28) 359deg, rgba(9, 181, 221, 0) 360deg);
}
.radar .mark { position: absolute; inset: 31%; width: 38%; height: 38%; }
.dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.dot-amber { left: 76%; top: 26%; background: var(--amber); }
.dot-cyan { left: 22%; top: 74%; width: 8px; height: 8px; background: var(--cyan); }
.chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: #e8f1f5;
  background: rgba(12, 30, 43, .9);
  border: 1px solid rgba(9, 181, 221, .35);
  border-radius: 999px;
  padding: .6rem .9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.chip-amber::before { background: var(--amber); }
.chip-1 { left: -2%; top: 10%; }
.chip-2 { right: 2%; top: 4%; }
.chip-3 { right: -4%; top: 40%; }
.chip-4 { left: 0; top: 84%; }
@media (max-width: 30rem) { .chip { display: none; } }

.strip { background: var(--navy-soft); border-top: 1px solid var(--navy-line); padding-block: 1.6rem; }
.strip ul {
  list-style: none;
  margin-block: 0;
  padding-block: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2.25rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e6f1f5;
}
.strip li { margin: 0; }
.strip li:first-child { color: #6f8a9b; }

/* ---------- Page heading (inner pages) ---------- */

.page-head { padding-block: 4.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 18ch; }
.page-head .lead { color: var(--text); }

/* ---------- Risk matrix ---------- */

.matrix-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: .5rem;
}
.axis {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.axis-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.axis-x { grid-column: 2; text-align: center; }
.matrix {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(to right, var(--surface) 3px, transparent 3px),
    linear-gradient(to bottom, var(--surface) 3px, transparent 3px),
    linear-gradient(to top right, rgba(9, 181, 221, .35), rgba(242, 169, 59, .55) 55%, rgba(229, 72, 77, .8));
  background-size: 20% 20%, 20% 20%, 100% 100%;
  background-position: -3px -3px, -3px -3px, 0 0;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
  background: #07121b;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.pin-1 { left: 90%; top: 30%; }
.pin-2 { left: 70%; top: 50%; }
.pin-3 { left: 50%; top: 70%; }

.risk-list { list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: .95rem; }
.risk-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .65rem;
  border-top: 1px solid var(--line);
  margin: 0;
}
.risk-list .n {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--heading);
  color: var(--bg);
  font-size: .75rem;
  font-weight: 700;
}
.sev {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .15rem .55rem;
  border-radius: 2rem;
}
.sev-high { background: rgba(229, 72, 77, .15); color: var(--red); }
.sev-med { background: rgba(242, 169, 59, .18); color: #c27a0e; }

/* ---------- Authorisation gap ---------- */

.gap-diagram { --g: 1.75rem; position: relative; }
.domains { display: grid; gap: var(--g); grid-template-columns: repeat(3, 1fr); }
.domain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 9rem;
}
.domain .kicker { margin-bottom: .6rem; }
.domain p { color: var(--text); }
.domain.is-agent { border-style: dashed; border-color: var(--cyan); }
.lane { position: relative; height: 2.5rem; margin-top: .75rem; }
.lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.agent-dot {
  position: absolute;
  top: 50%;
  left: 33%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(242, 169, 59, .2);
}
.seam { position: absolute; top: -.85rem; bottom: 0; border-left: 2px dashed var(--amber); }
.seam-1 { left: calc(33.333% - var(--g) / 6); }
.seam-2 { left: calc(66.667% + var(--g) / 6); }
.seam-note {
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c27a0e;
}
:root[data-theme="dark"] .seam-note { color: #f2c88a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seam-note { color: #f2c88a; } }
@media (max-width: 44rem) {
  .domains { grid-template-columns: 1fr; }
  .domain { min-height: 0; }
  .lane, .seam { display: none; }
}

.answer {
  margin-block: 2.5rem 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--cyan);
  border-radius: 16px;
  background: var(--accent-tint);
  text-align: center;
}
.answer .kicker { margin-bottom: .5rem; }
.answer p { font-size: 1.15rem; color: var(--heading); max-width: 40rem; margin-inline: auto; }

.joined {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.joined > div { background: var(--surface); padding: 1.6rem; }
.joined .num { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--accent-text); margin-bottom: .75rem; }
.joined h3 { font-size: 1.1rem; }
.joined p { color: var(--muted); font-size: .975rem; }

/* ---------- Featured service ---------- */

.feature {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: center;
  padding: 2.25rem;
  margin-bottom: 1.25rem;
}
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- ERM roadmap ---------- */

.roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: start;
}
.roadmap li { margin: 0; display: grid; grid-template-rows: 8rem; }
.roadmap li::before {
  content: "";
  align-self: end;
  height: 2rem;
  border-bottom: 2px solid var(--cyan);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(to top, rgba(9, 181, 221, .25), var(--cyan));
  margin-bottom: 1.25rem;
}
.roadmap li:nth-child(2)::before { height: 4rem; }
.roadmap li:nth-child(3)::before { height: 6rem; }
.roadmap li:nth-child(4)::before { height: 8rem; }
.roadmap .num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.roadmap h3 { margin-top: .35rem; }
.roadmap p { color: var(--muted); font-size: .975rem; }

/* ---------- Execution drift chart ---------- */

.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis-line { stroke: var(--line); stroke-width: 1.5; }
.chart .plan { stroke: var(--cyan); stroke-width: 3; fill: none; }
.chart .actual { stroke: var(--muted); stroke-width: 2.5; fill: none; stroke-dasharray: 6 6; }
.chart .gap { fill: rgba(242, 169, 59, .16); }
.chart .bracket { stroke: var(--amber); stroke-width: 2; fill: none; }
.chart text { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; fill: var(--muted); }
.chart .label-amber { fill: var(--amber); }
.legend { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--muted); }
.legend li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.legend li::before { content: ""; width: 1.5rem; border-top: 3px solid var(--cyan); }
.legend li.dashed::before { border-top: 2.5px dashed var(--muted); }

/* ---------- ISO badge ---------- */

.badge { max-width: 20rem; margin-inline: auto; }
.badge svg { width: 100%; height: auto; display: block; }
.badge .ring { fill: none; stroke: var(--line); }
.badge .ring-accent { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 70 18 8 18; }
.badge .core { fill: var(--accent-tint); }
.badge .circle-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: var(--muted); white-space: pre; }
.badge .big { font-family: var(--font-head); font-weight: 600; font-size: 54px; fill: var(--heading); letter-spacing: -.02em; }
.badge .small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; fill: var(--accent-text); }

/* ---------- From / to shift (about) ---------- */

.shift { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.shift-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: rgba(15, 36, 51, .6); }
.shift-card strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--heading); font-weight: 600; margin-bottom: .3rem; }
.shift-card span:last-child { color: var(--muted); font-size: .95rem; }
.shift-card .kicker { margin-bottom: .75rem; }
.shift-card.is-to { border-color: var(--cyan); background: rgba(9, 181, 221, .08); }
.shift-arrow { width: 2.25rem; height: 2.25rem; color: var(--cyan); }
@media (max-width: 34rem) {
  .shift { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); margin-inline: auto; }
}

/* ---------- How we work cycle ---------- */

.cycle svg { width: 100%; max-width: 26rem; height: auto; display: block; margin-inline: auto; }
.cycle .track { fill: none; stroke: var(--line); stroke-width: 2; }
.cycle .out { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 5 6; }
.cycle .tick { fill: var(--cyan); }
.cycle .node { fill: var(--surface); stroke: var(--cyan); stroke-width: 2; }
.cycle .node-6 { fill: var(--cyan); }
.cycle .n { font-family: var(--font-head); font-weight: 600; font-size: 15px; fill: var(--heading); text-anchor: middle; dominant-baseline: central; }
.cycle .n-6 { fill: var(--on-cyan); }
.cycle .centre { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; fill: var(--muted); text-anchor: middle; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.25rem; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  display: grid;
  place-items: center;
}
.steps li:last-child::before { background: var(--cyan); color: var(--on-cyan); }
.steps h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.steps p { color: var(--muted); font-size: .975rem; }

/* ---------- Insights ---------- */

.post-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.post { display: flex; flex-direction: column; }
.post .meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; font-size: .875rem; color: var(--muted); }
.post h2, .post h3 { font-size: 1.25rem; line-height: 1.3; }
.post h2 a, .post h3 a { color: var(--heading); text-decoration: none; }
.post h2 a:hover, .post h3 a:hover { color: var(--accent-text); }
.post .link-arrow { margin-top: auto; padding-top: 1rem; }

.article-head .meta { display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 24ch; }
.back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }
.back svg { width: 1rem; height: 1rem; transform: rotate(180deg); }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 3rem; }
.prose p, .prose li { font-size: 1.1rem; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--heading); }

/* Speed gap graphic */
.speed { margin: 2rem 0; }
.speed-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; margin-top: .9rem; }
.speed-label { font-size: .9rem; color: var(--muted); }
.speed-track { position: relative; height: 2.25rem; }
.speed-bar { position: absolute; inset: 0 auto 0 0; border-radius: 6px; display: flex; overflow: hidden; }
.speed-bar.is-fast { width: 20%; background: var(--red); }
.speed-bar.is-slow { width: 100%; gap: 3px; }
.speed-bar.is-slow span {
  flex: 1;
  background: var(--accent-tint);
  border: 1px solid rgba(9, 181, 221, .4);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: grid;
  place-items: center;
}
.speed-window {
  position: absolute;
  left: 20%;
  right: 0;
  top: .4rem;
  border-top: 2px solid var(--amber);
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: .35rem;
}
.speed-window::before, .speed-window::after { content: ""; position: absolute; top: -.45rem; height: .8rem; border-left: 2px solid var(--amber); }
.speed-window::before { left: 0; }
.speed-window::after { right: 0; }
@media (max-width: 34rem) {
  .speed-row { grid-template-columns: 1fr; gap: .35rem; }
  .speed-bar.is-slow span { font-size: .6rem; letter-spacing: 0; }
}

/* ---------- Contact ---------- */

.contact-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.contact-card:hover { border-color: var(--cyan); color: inherit; }
.contact-card h2 { font-size: 1.15rem; margin-bottom: .3rem; }
.contact-card p { color: var(--accent-text); font-weight: 600; }

/* ---------- Call to action ---------- */

.cta { padding-block: 5rem; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { max-width: 22ch; margin-bottom: .75rem; }
.cta p { color: var(--muted); font-size: 1.15rem; }
.cta .actions { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); border-top: 1px solid var(--navy-line); color: #93a8b6; padding-block: 4rem 2rem; font-size: .95rem; }
.site-footer a { color: #e6f1f5; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid img { width: 160px; margin-bottom: 1.25rem; }
.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6f8a9b;
  margin-bottom: 1rem;
}
.footer-grid nav { display: grid; gap: .5rem; align-content: start; }
.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-size: .85rem;
  color: #e6f1f5;
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: 2rem;
  padding: .45rem .9rem;
  cursor: pointer;
}
.footer-base p { margin: 0; }
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .sun { display: none; }
.mt-lg { margin-top: 3rem; }

/* ---------- Motion (inside graphics only) ---------- */

.cycle .orbit { fill: var(--cyan); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .radar .ring-1 { animation: spin 90s linear infinite; }
  .radar .ring-2 { animation: spin 55s linear infinite reverse; }
  .radar .ring-3 { animation: spin 140s linear infinite; }
  .radar .sweep { animation: spin 7s linear infinite; }
  .dot::after { animation: ping 2.6s cubic-bezier(.2, .7, .2, 1) infinite; }
  .dot-cyan::after { animation-delay: 1.1s; }
  .chip-1 { animation: bob 6s ease-in-out infinite; }
  .chip-2 { animation: bob 8s ease-in-out 2s infinite; }
  .chip-3 { animation: bob 7s ease-in-out 1.2s infinite; }
  .chip-4 { animation: bob 6.5s ease-in-out .6s infinite; }

  .hero-note::before { animation: halo 2.4s ease-out infinite; }

  .cycle .orbit { opacity: 1; transform-origin: 160px 160px; animation: spin 12s linear infinite; }
  .cycle .out { animation: march 1.2s linear infinite; }

  .chart .plan { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s ease-out .3s forwards; }
  .chart .actual,
  .chart .gap, .chart .bracket, .chart .label-amber { opacity: 0; animation: appear .6s ease-out 1.9s forwards; }

  .seam { animation: seam 2.4s ease-in-out infinite; }
  .seam-2 { animation-delay: 1.2s; }
  .agent-dot { animation: travel 7s ease-in-out infinite; }

  .pin-1 { animation: halo-red 2.4s ease-out infinite; }
  .badge .ring-accent { transform-origin: 150px 150px; animation: spin 60s linear infinite; }

  .card { transition: border-color .2s, transform .2s; }
  .post:hover, .contact-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(3); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(9, 181, 221, .5); } 100% { box-shadow: 0 0 0 10px rgba(9, 181, 221, 0); } }
@keyframes halo-red { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); } 100% { box-shadow: 0 0 0 14px rgba(229, 72, 77, 0); } }
@keyframes march { to { stroke-dashoffset: -22; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes seam { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes travel {
  0% { left: 0; }
  28% { left: calc(33.333% - 8px); }
  38% { left: calc(33.333% - 8px); }
  62% { left: calc(66.667% - 8px); }
  72% { left: calc(66.667% - 8px); }
  100% { left: calc(100% - 16px); }
}
