/*
  Frostfire Labs website v3
  Template, colors and visual style: FFL Bishop Site. Copy: website-v2-working (content.py).

  The static site and the WordPress theme share this stylesheet. Both render the same WordPress block markup
  (source/render.py), so every rule below styles core blocks (group, heading, paragraph, list, buttons, details)
  by the class names the renderer gives them.
*/

:root {
  --black: #050606;
  --panel: #0b0d0e;
  --panel-2: #111516;
  --white: #f5f7f7;
  --grey: #a5abad;
  --ice: #9de7f4;
  --ice-bright: #c8f5fc;
  --ember: #ff542e;
  --teal: #006976;
  --shell: min(91vw, 1380px);
  --header-h: 5rem;
  /* WordPress sets this when the admin toolbar is showing (logged-in users); 0 everywhere else. */
  --admin-bar: var(--wp-admin--admin-bar--height, 0px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Tone variables (dark by default; each section tone overrides them) */
  --bg: var(--black);
  --fg: var(--white);
  --fg-2: #c9cecf;
  --muted: var(--grey);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --label: var(--ice);
  --accent: var(--ice);
  --mark: var(--ember);
  --card: var(--panel-2);

  scroll-padding-top: calc(var(--header-h) + var(--admin-bar) + 0.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  counter-reset: sec;
  margin: 0;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 4px;
}

.tone-light :focus-visible,
.tone-ice :focus-visible,
.tone-ember :focus-visible {
  outline-color: var(--black);
}

main:focus {
  outline: 0;
}

/* Block wrappers: spacing comes from the rules in this file, never from browser or WordPress defaults. */
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, form, fieldset, details, blockquote) {
  margin: 0;
}

:where(.wp-block-group, .wp-block-buttons, .wp-block-details, .wp-site-blocks, .site-main, .site-sections) > * {
  margin-block: 0;
}

.wp-site-blocks {
  padding: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Skip link: the static pages print it; WordPress adds the same link itself. */
html body .skip-link.screen-reader-text:focus {
  top: calc(var(--admin-bar) + 0.75rem);
  left: 0.75rem;
  z-index: 100000;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  clip-path: none;
  background: var(--ice);
  color: var(--black);
  font: 800 1rem/1.2 var(--sans);
  text-decoration: none;
}

/* ---------------------------------------------------------------- Tones */

.tone-dark,
.tone-panel,
.form-card {
  --fg: var(--white);
  --fg-2: #c9cecf;
  --muted: var(--grey);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --label: var(--ice);
  --accent: var(--ice);
  --mark: var(--ember);
  --card: var(--panel-2);
  color: var(--fg);
}

.tone-dark {
  --bg: var(--black);
  background: var(--bg);
}

.tone-panel {
  --bg: var(--panel);
  background: var(--bg);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.tone-light {
  --bg: var(--white);
  --fg: var(--black);
  --fg-2: #252a2b;
  --muted: #53595a;
  --line: rgba(5, 6, 6, 0.18);
  --line-strong: rgba(5, 6, 6, 0.6);
  --label: var(--teal);
  --accent: var(--teal);
  --mark: var(--ember);
  --card: #e9eded;
  background: var(--bg);
  color: var(--fg);
}

.tone-ice {
  --bg: var(--ice);
  --fg: var(--black);
  --fg-2: #0f2427;
  --muted: #23373a;
  --line: rgba(5, 6, 6, 0.22);
  --line-strong: rgba(5, 6, 6, 0.62);
  --label: #1c3033;
  --accent: #063840;
  --mark: var(--black);
  --card: rgba(255, 255, 255, 0.3);
  background: var(--bg);
  color: var(--fg);
}

.tone-ember {
  --bg: var(--ember);
  --fg: var(--black);
  --fg-2: #1a0a05;
  --muted: #2e1710;
  --line: rgba(5, 6, 6, 0.26);
  --line-strong: rgba(5, 6, 6, 0.62);
  --label: #2e1710;
  --accent: var(--black);
  --mark: var(--black);
  --card: rgba(255, 255, 255, 0.14);
  background: var(--bg);
  color: var(--fg);
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: fixed;
  top: var(--admin-bar);
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding: 0 4.5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 6, 6, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: calc(2.45rem * 3.5635);
  height: 2.45rem;
  fill: currentColor;
}

.brand:hover .brand-logo {
  color: var(--ice-bright);
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 2.3vw, 2.6rem);
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 170ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.is-current > .nav-link,
.nav-item-menu.is-open > .nav-link {
  color: var(--ice);
}

.nav-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-menu-toggle .chev {
  transition: transform 180ms ease;
}

.nav-item-menu.is-open .nav-menu-toggle .chev {
  transform: rotate(180deg);
}

.nav-item.is-current .nav-menu-toggle,
.nav-menu-toggle:hover {
  color: var(--ice);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 1.5rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  color: var(--black);
  background: var(--ember);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 170ms ease;
}

.nav-cta:hover {
  background: var(--ice);
}

/* Services mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 2.6rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(157, 231, 244, 0.05) 1px, transparent 1px) 0 0 / min(8vw, 7rem) 100%,
    var(--black);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.nav-item-menu.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}

@media (hover: hover) and (min-width: 901px) {
  .nav-item-menu:not(.is-suppressed):hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 160ms ease 80ms, transform 160ms ease 80ms, visibility 0s linear 80ms;
  }

  .nav-item-menu:not(.is-suppressed):hover > .nav-link {
    color: var(--ice);
  }
}

.mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}

.mega-eyebrow,
.mega-label {
  margin: 0 0 1.1rem;
  color: var(--ice);
  font: 750 0.68rem/1.35 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mega-lead {
  max-width: 24rem;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 650;
  line-height: 1.3;
}

.mega-intro .text-link {
  margin-top: 1.8rem;
}

.mega-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mega-col a {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 2rem 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  position: relative;
}

.mega-col a::after {
  content: "↗";
  content: "↗" / "";
  position: absolute;
  top: 0.95rem;
  right: 0.2rem;
  color: var(--ice);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-name {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.menu-desc {
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.45;
}

.mega-col a:hover .menu-name,
.mega-col a[aria-current="page"] .menu-name {
  color: var(--ice);
}

.mega-col a:hover::after {
  opacity: 1;
  transform: translate(0.15rem, -0.15rem);
}

/* Mobile toggle + panel */
.nav-toggle {
  display: none;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  cursor: pointer;
}

.nav-toggle i {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.35rem 0;
  background: var(--white);
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] i:first-of-type {
  transform: translateY(0.2rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i:last-of-type {
  transform: translateY(-0.2rem) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + var(--admin-bar));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  overflow-y: auto;
  padding: 1rem 0 3rem;
  background: var(--black);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-label {
  margin: 1.6rem 0 0.4rem;
  color: var(--ice);
  font: 750 0.66rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav li a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-nav li a[aria-current="page"] {
  color: var(--ice);
}

.mobile-nav .button-row {
  margin-top: 2rem;
}

.mobile-nav .button-row > .wp-block-button.btn {
  flex: 1 1 100%;
}

/* ---------------------------------------------------------------- Buttons & links */

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.button-row.align-end {
  justify-content: flex-end;
  margin-top: 3rem;
}

.button-row > .wp-block-button.btn {
  display: flex;
  margin: 0;
}

.btn > .wp-block-button__link,
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
  min-width: 15rem;
  height: auto;
  min-height: 3.65rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  word-break: normal;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn > .wp-block-button__link::after,
.form-submit::after {
  content: "↗";
  content: "↗" / "";
  flex: none;
  font-weight: 900;
}

.btn > .wp-block-button__link:hover,
.form-submit:hover {
  transform: translateY(-2px);
}

.btn-primary > .wp-block-button__link,
.form-submit {
  background: var(--ember);
  color: var(--black);
}

.btn-primary > .wp-block-button__link:hover,
.form-submit:hover {
  background: var(--ice);
  color: var(--black);
}

.btn-outline > .wp-block-button__link {
  border-color: var(--line-strong);
  color: var(--fg);
  background: transparent;
}

.btn-outline > .wp-block-button__link:hover {
  border-color: var(--ice);
  color: var(--black);
  background: var(--ice);
}

.tone-light .btn-outline > .wp-block-button__link:hover,
.tone-ice .btn-outline > .wp-block-button__link:hover {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

.btn-dark > .wp-block-button__link {
  color: var(--white);
  background: var(--black);
}

.btn-dark > .wp-block-button__link:hover {
  color: var(--black);
  background: var(--ice);
}

.btn-outline-dark > .wp-block-button__link {
  border-color: rgba(5, 6, 6, 0.6);
  color: var(--black);
  background: transparent;
}

.btn-outline-dark > .wp-block-button__link:hover {
  color: var(--white);
  background: var(--black);
}

.text-link,
.card-link a {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent);
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link {
  margin-top: 2rem;
}

.site-header .text-link {
  color: var(--white);
  border-color: var(--ice);
}

.text-link > span[aria-hidden],
.card-link a::after {
  color: var(--accent);
  transition: transform 180ms ease;
}

.card-link a::after {
  content: "↗";
  content: "↗" / "";
}

.text-link:hover > span[aria-hidden],
.card-link a:hover::after {
  transform: translate(0.25rem, -0.25rem);
}

/* In-copy links */
.prose a,
.split-head p a,
.faq-item > p a,
.boundary-note a,
.scope-col a,
.evidence-list a,
.page-hero-copy p a,
.feature a,
.quote-list a,
.check-list a,
.band-copy a,
.card-text a,
.industry-card a,
.principle a,
.split-heading-body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose a:hover,
.split-head p a:hover,
.faq-item > p a:hover,
.boundary-note a:hover,
.scope-col a:hover,
.page-hero-copy p a:hover,
.band-copy a:hover,
.card-text a:hover,
.split-heading-body a:hover {
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------- Home hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 9rem 0 4rem;
  background:
    radial-gradient(circle at 72% 35%, rgba(38, 104, 112, 0.26), transparent 24rem),
    radial-gradient(circle at 86% 72%, rgba(255, 84, 46, 0.1), transparent 20rem),
    linear-gradient(120deg, #050606 0%, #080b0c 52%, #050606 100%);
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.46;
  filter: saturate(0.82) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.72), transparent 62%),
    linear-gradient(to bottom, transparent 68%, var(--black));
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: var(--header-h) 0 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: min(8vw, 7rem) min(8vw, 7rem);
  -webkit-mask-image: linear-gradient(to right, transparent 10%, black 42%, black 82%, transparent);
  mask-image: linear-gradient(to right, transparent 10%, black 42%, black 82%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-index {
  display: flex;
  justify-content: space-between;
  margin: 0 0 3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ice);
  font: 700 0.72rem/1.2 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.4rem, 7.7vw, 8.9rem);
  font-weight: 900;
  letter-spacing: -0.068em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--ember);
  font-style: normal;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 40rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem 3rem;
  width: min(84%, 74rem);
  margin: 4.6rem 0 0 auto;
}

.hero-copy p {
  margin: 0;
  color: #d1d6d7;
  font-size: clamp(1rem, 1.32vw, 1.22rem);
  line-height: 1.55;
}

.hero-copy p + p {
  margin-top: 1rem;
}

.hero-bottom .button-row {
  justify-content: flex-end;
}

.signal {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.signal i {
  display: block;
  height: 3px;
  background: var(--ice);
}

.signal-one { top: 31%; right: 0; }
.signal-one i:nth-child(1) { width: 3rem; }
.signal-one i:nth-child(2) { width: 8rem; background: var(--white); }
.signal-one i:nth-child(3) { width: 1.5rem; background: var(--ember); }
.signal-two { top: 56%; left: 0; }
.signal-two i:nth-child(1) { width: 7rem; background: var(--white); }
.signal-two i:nth-child(2) { width: 2rem; background: var(--ember); }

/* Illustrative attack path (system map) */
.system-map {
  position: relative;
  z-index: 1;
  margin: 3.2rem 0 0;
  padding: 1.1rem clamp(1rem, 2vw, 1.6rem) 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 4, 4, 0.7);
}

.attack-map-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ice);
  font: 700 0.64rem/1.2 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.attack-map-head span:last-child {
  color: var(--grey);
}

.chain {
  --link-w: clamp(2.6rem, 4.2vw, 3.8rem);
  --bpad: clamp(0.55rem, 1vw, 0.95rem);
  display: flex;
  align-items: stretch;
  margin: 3.4rem 0 1.6rem;
}

.chain-node {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.28rem;
  min-height: 4.2rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--ice);
  background: var(--panel-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.chain-node strong {
  color: var(--white);
  font-size: clamp(0.66rem, 0.86vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.chain-node span {
  color: var(--grey);
  font: 600 0.58rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chain-node.is-outside {
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-left: 3px solid var(--ember);
}

.chain-boundary {
  position: relative;
  flex: 4 1 calc(3 * var(--link-w) + 2 * var(--bpad) + 2px);
  display: flex;
  align-items: stretch;
  min-width: 0;
  margin: -2.1rem 0 -0.95rem;
  padding: 2.1rem var(--bpad) 0.95rem;
  border: 1px dashed rgba(157, 231, 244, 0.55);
  background: rgba(157, 231, 244, 0.04);
}

.boundary-label {
  position: absolute;
  top: 0.62rem;
  left: var(--bpad);
  color: var(--ice);
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chain-link {
  position: relative;
  flex: 0 0 var(--link-w);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 6px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, transparent 0 35%, var(--ember-glow, #ffb59c) 35% 65%, transparent 65%) 0 0 / 300% 100% no-repeat,
    rgba(255, 84, 46, 0.62);
  animation: link-pulse 2.8s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.32s);
}

.chain-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  border-block: 4.5px solid transparent;
  border-left: 7px solid var(--ember);
  transform: translateY(-50%);
}

.chain-link i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-right: 6px;
  border: 1.5px solid var(--ember);
  border-radius: 50%;
  background: var(--black);
  color: var(--ember);
  font: 700 0.62rem/1 var(--mono);
  font-style: normal;
}

.attack-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.attack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c3c9ca;
  font-size: 0.8rem;
  line-height: 1.4;
}

.attack-legend li {
  display: flex;
  gap: 0.6rem;
}

.attack-legend span {
  flex: none;
  min-width: 1.9rem;
  color: var(--ember);
  font: 700 0.72rem/1.55 var(--mono);
  white-space: nowrap;
}

.attack-finding {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.25rem 1rem;
}

.finding-label {
  grid-column: 1 / -1;
  color: var(--ice);
  font: 700 0.6rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.attack-finding strong {
  color: var(--white);
  font-size: 0.86rem;
}

.finding-tag {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--ember);
  background: rgba(255, 84, 46, 0.14);
  color: var(--ember);
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-caption {
  margin: 0.9rem 0 0;
  color: var(--grey);
  font: 0.64rem var(--mono);
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.map-caption span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  background: var(--ember);
}

/* ---------------------------------------------------------------- Page hero */

.page-hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  padding: calc(var(--header-h) + 4.5rem) 0 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 72% 30%, rgba(46, 122, 132, 0.2), transparent 24rem),
    var(--black);
}

/* Bishop's grid texture */
.page-hero::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: min(8vw, 7rem) min(8vw, 7rem);
  -webkit-mask-image: linear-gradient(to right, transparent, black 22%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 22%, black 80%, transparent);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0 0 4rem;
}

.page-index p,
.page-index .wp-block-post-date {
  margin: 0;
  color: var(--ice);
  font: 750 0.72rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-index .page-index-n {
  color: var(--ember);
}

.page-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(4rem, 9.5vw, 10.8rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}

.page-hero h1.is-lg {
  max-width: 14ch;
  font-size: clamp(3.4rem, 7.4vw, 8.4rem);
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.page-hero h1.is-md {
  max-width: 17ch;
  font-size: clamp(3rem, 6.2vw, 7rem);
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.page-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 4rem;
}

.page-hero-body:not(.has-aside) .page-hero-copy {
  width: min(74%, 64rem);
  margin-left: auto;
}

.page-hero-body.has-aside {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.page-hero-copy > p {
  max-width: 50rem;
  margin: 0 0 1.2rem;
  color: #c9cecf;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.page-hero-copy > .page-hero-sub {
  margin-bottom: 1.4rem;
  color: var(--white);
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  font-weight: 650;
  line-height: 1.25;
}

.page-hero-email a {
  color: var(--ice);
  font-family: var(--mono);
  font-size: 0.92em;
}

.page-hero-copy .button-row {
  margin-top: 2.2rem;
}

.hero-aside {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 4, 4, 0.66);
  padding: 1.4rem clamp(1.1rem, 2vw, 1.7rem) 1.5rem;
}

.brief-title {
  margin: 0 0 0.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ice);
  font: 750 0.68rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.36fr) minmax(0, 1fr);
  gap: 0.4rem 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brief-row:last-child {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

.brief-label {
  padding-top: 0.2rem;
  color: var(--grey);
  font: 700 0.62rem/1.45 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brief-value,
.brief-list {
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.5;
}

.brief-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-list li {
  position: relative;
  padding: 0 0 0.45rem 1.1rem;
  font-weight: 700;
}

.brief-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--ember);
}

.ladder-steps {
  position: relative;
  counter-reset: n;
}

.ladder-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ladder-step::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  content: counter(n, decimal-leading-zero) / "";
  grid-row: 1 / 3;
  color: var(--ember);
  font: 700 0.7rem/1.6 var(--mono);
}

.ladder-label {
  color: var(--grey);
  font: 700 0.62rem/1.45 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ladder-link {
  font-size: 1.02rem;
  line-height: 1.3;
}

.ladder-link a {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.ladder-link a::after {
  content: "\00a0↗";
  content: "\00a0↗" / "";
  color: var(--ice);
}

.ladder-link a:hover {
  color: var(--ice);
}

.ladder-foot {
  margin: 1rem 0 0;
  color: var(--grey);
  font: 0.72rem/1.55 var(--mono);
}

.hero-mission {
  border-left: 4px solid var(--ember);
}

.mission-text {
  margin: 1.1rem 0 0;
  color: var(--white);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.not-found {
  min-height: 86svh;
}

/* ---------------------------------------------------------------- Sections */

.section {
  position: relative;
  padding: clamp(6rem, 10.5vw, 9.5rem) 0;
}

.section.has-glow {
  background:
    radial-gradient(circle at 0 82%, rgba(255, 84, 46, 0.11), transparent 26rem),
    var(--bg);
}

.section-label {
  margin: 0;
  color: var(--label);
  font: 750 0.72rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Section numbers ("01 / ") count the numbered sections on each page. */
.section-label.has-n::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) " / ";
  content: counter(sec, decimal-leading-zero) " / " / "";
}

.sec-title {
  margin: 0;
  font-size: clamp(2.9rem, 5.9vw, 6.9rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.sec-title.is-small {
  font-size: clamp(2.2rem, 3.8vw, 4.4rem);
}

.lead {
  color: var(--fg);
  font-weight: 650;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(11rem, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(2.5rem, 8vw, 9rem);
  align-items: start;
}

.split-heading > *,
.split-grid > *,
.evidence-grid > *,
.band-grid > *,
.closing-grid > *,
.form-section-grid > *,
.contact-grid > * {
  min-width: 0;
}

.split-heading .sec-title {
  max-width: 16ch;
}

.split-heading-body > .lead {
  max-width: 48rem;
  margin: 2.4rem 0 0;
  font-size: clamp(1.25rem, 1.9vw, 1.85rem);
  line-height: 1.3;
}

.split-heading-body > p:not(.lead) {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section > .sec-body {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

/* Split: heading column + body column */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.split-head .section-label {
  margin-bottom: 1.8rem;
}

.split-head .sec-title {
  font-size: clamp(2.6rem, 4.3vw, 5.1rem);
}

/* FAQ headings sit in a narrower column; keep long words like EXPLAINED inside it on wide screens. */
.split-grid.is-faq .split-head .sec-title {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
}

.split-head p:not(.section-label) {
  max-width: 40rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.split-head p.lead {
  margin-top: 2.2rem;
  color: var(--fg);
  font-size: clamp(1.12rem, 1.45vw, 1.35rem);
  line-height: 1.5;
}

.split-body {
  padding-top: 0.3rem;
}

.split-grid .split-body > * + * {
  margin-top: 2.2rem;
}

/* Evidence grid: heading left, numbered list right */
.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.evidence-head .section-label {
  margin-bottom: 1.6rem;
}

@media (min-width: 901px) {
  .evidence-head,
  .is-faq > .split-head {
    position: sticky;
    top: calc(var(--header-h) + var(--admin-bar) + 2.5rem);
  }
}

.evidence-head p:not(.section-label) {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Band: Bishop's authorization band (label | title | copy) */
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.6fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: start;
}

.band-grid .sec-title {
  font-size: clamp(2.8rem, 5vw, 5.9rem);
}

.band-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.band-copy p + p {
  margin-top: 1rem;
}

.is-band {
  padding-bottom: 0;
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: 3rem;
}

.shell > .related-head {
  margin-bottom: 3rem;
}

.related-head .section-label {
  flex-basis: 100%;
}

.is-related {
  padding: clamp(5rem, 8vw, 7rem) 0;
}

/* ---------------------------------------------------------------- Blocks */

.prose p {
  margin: 0 0 1.4rem;
  color: var(--fg-2);
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.list-lead {
  margin: 0 0 1.1rem;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listblock .list-lead {
  margin-bottom: 1.1rem;
}

.check-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.check-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
}

.check-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 1.38rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--mark);
}

.check-list.is-checks li::before {
  top: 1.12rem;
  width: 0.62rem;
  height: 0.36rem;
  border-left: 2px solid var(--mark);
  border-bottom: 2px solid var(--mark);
  background: transparent;
  transform: rotate(-45deg);
}

.quote-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-list li {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.1rem;
  border-left: 3px solid var(--ember);
  background: var(--card);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.quote-list li::before {
  content: "\201C";
  content: "\201C" / "";
  position: absolute;
  top: 0.55rem;
  left: 1rem;
  color: var(--ember);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.tone-light .quote-list li::before {
  color: var(--teal);
}

/* Numbers (Bishop mono indices), drawn with CSS counters so the block content stays plain text */
.tiles,
.method-steps,
.evidence-list,
.principles-grid,
.feature-grid,
.industry-grid,
.svc-cards,
.link-cards,
.readiness-list,
.next-list,
.faq-list {
  counter-reset: n;
}

.svc-cards.is-advanced {
  counter-reset: n 3;
}

.tile::before,
.step::before,
.evidence-item::before,
.principle::before,
.feature::before,
.industry-card::before,
.svc-card::before,
.link-card::before,
.readiness-item::before,
.next-item::before,
.faq-item > summary::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  content: counter(n, decimal-leading-zero) / "";
  display: block;
  color: var(--accent);
  font: 400 0.68rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Tiles (ice band strip) */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.shell > .tiles {
  margin-top: clamp(4rem, 7vw, 6rem);
}

.tile {
  min-height: 12rem;
  padding: 1.5rem 1.5rem 2.2rem;
  border-left: 1px solid var(--line);
}

.tile:last-child {
  border-right: 1px solid var(--line);
}

.tile h3 {
  margin: 2.6rem 0 0.7rem;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.tile p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Grid cells that draw their borders with the gap */
.feature-grid,
.industry-grid,
.link-cards,
.svc-cards,
.principles-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-grid > *,
.industry-grid > *,
.link-cards > *,
.svc-cards > *,
.principles-grid > * {
  background: var(--bg);
}

.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Feature grid (Bishop surface grid) */
.feature {
  min-height: 15.5rem;
  padding: 1.5rem 1.5rem 1.8rem;
}

.feature h3 {
  margin: 3.6rem 0 0.9rem;
  font-size: clamp(1.25rem, 1.65vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.split-body .feature {
  min-height: 13rem;
}

.split-body .feature h3 {
  margin-top: 2.6rem;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
}

/* Industry cards */
.industry-card {
  min-height: 22rem;
  padding: 1.7rem;
}

.industry-card h3 {
  margin: 7rem 0 1.2rem;
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.industry-card p {
  max-width: 26rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Service cards (services overview, home advanced) */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  padding: 1.7rem;
}

.svc-card::before {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.5rem;
  background: var(--ember);
  color: var(--black);
  font: 750 0.6rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.svc-card > .badge {
  position: absolute;
  top: 1.87rem;
  right: 1.7rem;
  margin: 0;
}

.card-kicker {
  display: block;
  margin: 3.2rem 0 0.8rem;
  color: var(--ember);
  font: 750 0.66rem/1.35 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.card-text {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card-meta {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.card-meta strong {
  color: var(--fg);
}

.card-list-label {
  margin: 1.2rem 0 0.4rem;
  color: var(--label);
  font: 750 0.62rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.card-list li::before {
  content: "";
  position: absolute;
  top: 0.95em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--mark);
}

.svc-card > .card-link {
  margin: auto 0 0;
  padding-top: 2rem;
}

.svc-cards.is-compact .svc-card {
  min-height: 21rem;
}

.svc-cards.is-compact .card-kicker {
  margin-top: 2.4rem;
}

.svc-cards.is-compact .card-title {
  font-size: clamp(1.3rem, 1.8vw, 1.9rem);
}

.subhead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: clamp(4rem, 7vw, 6rem) 0 1.6rem;
  color: var(--fg);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sec-body > .subhead {
  margin: clamp(4rem, 7vw, 6rem) 0 1.6rem;
}

.sec-body > .subhead:first-child {
  margin-top: 0;
}

.subhead::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ember);
}

.subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Link cards (also of interest): the whole card is clickable through its "Learn more" link */
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.6rem;
  color: var(--fg);
  transition: background 190ms ease, color 190ms ease;
}

.link-card .card-kicker {
  margin-top: 3rem;
}

.link-card h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.card-cta {
  margin: auto 0 0;
  padding-top: 2rem;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-card > .card-cta {
  margin-top: auto;
}

.card-cta a {
  color: inherit;
  text-decoration: none;
}

.card-cta a::before {
  content: "";
  position: absolute;
  inset: 0;
}

.card-cta a::after {
  content: "\00a0↗";
  content: "\00a0↗" / "";
  color: var(--accent);
}

.link-card:hover,
.link-card:focus-within {
  background: var(--ice);
  color: var(--black);
}

.link-card:hover::before,
.link-card:hover .card-kicker,
.link-card:hover .card-cta a::after,
.link-card:focus-within::before,
.link-card:focus-within .card-kicker,
.link-card:focus-within .card-cta a::after {
  color: #173135;
}

.link-card:focus-within :focus-visible {
  outline-color: var(--black);
}

/* Service selector (Bishop tabs) */
.service-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  border: 1px solid var(--line);
}

.service-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.service-tab {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.2rem 1rem;
  flex: 1;
  min-height: 9.5rem;
  padding: 1.65rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: rgba(245, 247, 247, 0.74);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.service-tab:last-child {
  border-bottom: 0;
}

.service-tab > span {
  grid-row: 1 / 3;
  color: var(--grey);
  font: 0.68rem var(--mono);
}

.service-tab strong {
  font-size: clamp(1.5rem, 2.4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.service-tab small {
  align-self: end;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.service-tab small .badge {
  margin-left: 0.4rem;
}

.service-tab:hover {
  color: var(--white);
  background: rgba(157, 231, 244, 0.06);
}

.service-tab.is-active {
  color: var(--black);
  background: var(--ice);
}

.service-tab.is-active > span {
  color: rgba(5, 6, 6, 0.62);
}

.service-panel {
  min-height: 100%;
  padding: clamp(2.2rem, 4.5vw, 4.6rem);
  animation: panel-in 240ms ease both;
}

.service-panel[hidden] {
  display: none;
}

.service-panel .panel-kicker {
  margin: 0 0 1.4rem;
  display: inline-block;
  padding: 0.3rem 0.55rem;
  background: var(--ember);
  color: var(--black);
  font: 750 0.62rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-panel h3 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.service-panel > p:not(.panel-kicker):not(.card-list-label) {
  max-width: 42rem;
  margin: 1.8rem 0 0;
  color: #c4c9ca;
  font-size: 1.05rem;
  line-height: 1.6;
}

.service-panel .card-list-label {
  margin-top: 2rem;
}

.service-panel ul {
  display: grid;
  margin: 0 0 2.6rem;
  padding: 0;
  list-style: none;
}

.service-panel li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Method steps (Bishop) */
.method-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.step {
  min-height: 19rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step h3 {
  margin: 4.8rem 0 1rem;
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Method steps with 3, 4 or 6 steps (the default grid has five columns) */
.method-steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method-steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.method-steps.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.steps-6 .step:nth-child(3n) {
  border-right: 0;
}

.steps-6 .step:nth-child(-n + 3) {
  border-bottom: 1px solid var(--line);
}

/* Tiles: three in a row */
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Evidence list (Bishop) */
.evidence-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.45rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.evidence-item:last-child {
  border-bottom: 1px solid var(--line);
}

.evidence-item::before {
  grid-row: 1 / 3;
  padding-top: 0.3rem;
}

.evidence-item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.evidence-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Principles grid (Bishop about) */
.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle {
  min-height: 19rem;
  padding: 1.7rem;
}

.principle h3 {
  margin: 5.5rem 0 1rem;
  font-size: clamp(1.9rem, 3.1vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

.principle p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Boundary note (Bishop) */
.boundary-note {
  margin-top: 2rem;
  padding: 1.2rem 1.25rem;
  border-left: 4px solid var(--ember);
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.boundary-note p,
.boundary-note h3 {
  margin: 0;
  font: 0.82rem/1.6 var(--mono);
}

.boundary-note .note-label,
.boundary-note h3 {
  margin-bottom: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tone-ice .boundary-note,
.tone-ember .boundary-note {
  border-left-color: var(--black);
}

.split-grid .split-body > .boundary-note {
  margin-top: 2rem;
}

.sec-body > .boundary-note {
  max-width: 60rem;
  margin-top: 2.5rem;
}

.sec-body > .boundary-note:first-child {
  margin-top: 0;
}

/* Chips */
.chips {
  margin-top: 2.6rem;
}

.split-grid .split-body > .chips {
  margin-top: 2.6rem;
}

.chips-label {
  margin: 0 0 0.9rem;
  color: var(--label);
  font: 750 0.68rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.chips-note {
  max-width: 46rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font: 0.76rem/1.6 var(--mono);
}

/* Comparison table */
.table-wrap {
  border-top: 2px solid var(--fg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 1.3rem 1.5rem 1.3rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--label);
  font: 750 0.66rem/1.35 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-table tbody th {
  width: 24%;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.25;
}

.compare-table tbody th a {
  text-decoration: none;
}

.compare-table tbody th a::after {
  content: "\00a0↗";
  content: "\00a0↗" / "";
  color: var(--accent);
}

.compare-table tbody th a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.compare-table td {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.compare-table td:nth-child(2) {
  color: var(--fg);
  font-weight: 700;
}

/* Scope: what it is / isn't */
.scope-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.split-body .scope-cols {
  gap: 2rem;
}

.scope-col h3 {
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--fg);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scope-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-col li {
  position: relative;
  padding: 1rem 0.5rem 1rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.5;
}

.scope-col li::before,
.scope-col li::after {
  content: "";
  position: absolute;
}

.scope-col.is-yes li::before {
  top: 1.35rem;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(-45deg);
}

.scope-col.is-no li::before,
.scope-col.is-no li::after {
  top: 1.45rem;
  left: 0.05rem;
  width: 0.85rem;
  height: 2px;
  background: var(--fg);
  transform: rotate(45deg);
}

.scope-col.is-no li::after {
  transform: rotate(-45deg);
}

/* Readiness checklist */
.readiness-list {
  border-bottom: 1px solid var(--line);
}

.readiness-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 0.6rem 2rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.readiness-item h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.readiness-item p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Compare columns (assessment vs red team) */
.compare-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-col {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-strong);
}

.compare-col.is-accent {
  border-color: var(--black);
  border-top: 4px solid var(--ember);
  background: var(--black);
  color: var(--white);
}

.compare-col h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.compare-row {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.compare-col.is-accent .compare-row {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.compare-label {
  margin: 0 0 0.35rem;
  color: var(--label);
  font: 750 0.62rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-col.is-accent .compare-label {
  color: var(--ice);
}

.compare-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ---------------------------------------------------------------- FAQ */

.split-grid.is-faq {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr);
}

.is-faq .split-head .section-label {
  margin-bottom: 1.8rem;
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item > summary {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 1.6rem;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 160ms ease;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::before {
  padding-top: 0.35rem;
}

.faq-item > summary::after {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 0.7rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 0.7rem no-repeat;
  transition: border-color 180ms ease;
}

.faq-item[open] > summary::after {
  border-color: var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) center / 0.7rem 2px no-repeat;
}

.faq-item > summary:hover {
  color: var(--accent);
}

.faq-item > p {
  max-width: 48rem;
  margin: 0 2.6rem 1rem 3.6rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item > p:last-child {
  margin-bottom: 1.8rem;
}

/* ---------------------------------------------------------------- Closing CTA (Bishop) */

.closing-cta,
.form-section {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 11vw, 11rem) 0;
}

/* Bishop's signal bars */
.closing-cta::after,
.form-section::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: 3rem;
  width: 28rem;
  height: 5px;
  background: linear-gradient(90deg, var(--black) 0 14rem, transparent 14rem 15rem, var(--ice) 15rem 19rem,
    transparent 19rem 20rem, var(--black) 20rem 28rem);
  opacity: 0.42;
  transform: rotate(-8deg);
  pointer-events: none;
}

.closing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 2.2fr);
  gap: 4rem;
}

.closing-copy h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 6.3vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
}

.closing-copy > p {
  max-width: 42rem;
  margin: 2rem 0 2.2rem;
  font-size: 1.1rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- Forms */

.form-section-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.form-section-copy .section-label {
  margin-bottom: 1.8rem;
}

.form-section-copy .sec-title {
  font-size: clamp(2.8rem, 5vw, 6rem);
}

.form-section-copy .lead {
  max-width: 38rem;
  margin: 2rem 0 0;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.next-steps {
  margin-top: 3rem;
}

.form-section-copy > .next-steps {
  margin-top: 3rem;
}

.next-title {
  margin: 0 0 0.6rem;
  color: var(--label);
  font: 750 0.68rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.3rem 0.8rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.next-item:last-child {
  border-bottom: 1px solid var(--line);
}

.next-item::before {
  grid-row: 1 / 3;
  padding-top: 0.25rem;
}

.next-item h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 850;
}

.next-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-card {
  padding: clamp(1.5rem, 3.6vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--black);
  color: var(--white);
}

.tone-ember .form-card {
  border-color: var(--black);
  box-shadow: 0 1.5rem 3rem rgba(46, 23, 16, 0.25);
}

.form-title {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.form-card > .form-title {
  margin-bottom: 2rem;
}

.lead-form {
  display: grid;
  gap: 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.4rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
}

.field.is-full {
  grid-column: 1 / -1;
}

.field > label,
.fieldset legend {
  color: var(--ice);
  font: 700 0.66rem/1.35 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.req {
  color: var(--ember);
}

.field > input,
.field > select,
.field > textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: var(--white);
  background: transparent;
  font: 1rem/1.45 var(--sans);
  transition: border-color 160ms ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--ice) 50%) calc(100% - 0.9rem) 55% / 0.4rem 0.4rem no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ice) 50%) calc(100% - 0.5rem) 55% / 0.4rem 0.4rem no-repeat,
    var(--black);
  cursor: pointer;
}

.field select option {
  color: var(--white);
  background: var(--panel-2);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field > input::placeholder,
.field > textarea::placeholder {
  color: rgba(165, 171, 173, 0.72);
}

.field > input:hover,
.field > select:hover,
.field > textarea:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus {
  border-bottom-color: var(--ice);
  outline: 0;
}

.field > input:focus-visible,
.field > select:focus-visible,
.field > textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

.field > input:user-invalid,
.field > select:user-invalid,
.field > textarea:user-invalid,
.field > [aria-invalid="true"] {
  border-bottom-color: var(--ember);
}

.field-error {
  margin: 0;
  color: var(--ember);
  font-size: 0.8rem;
  line-height: 1.4;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: 0.8rem;
  padding: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.check-opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.check-opt:hover {
  border-color: rgba(157, 231, 244, 0.6);
}

.check-opt:has(input:checked) {
  border-color: var(--ice);
  background: rgba(157, 231, 244, 0.08);
}

.check-opt input {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--ember);
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: grid;
  gap: 1rem;
}

.form-footer .form-submit {
  justify-self: start;
  width: auto;
}

.form-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-legal {
  max-width: 40rem;
  margin: 0;
  color: var(--grey);
  font: 0.7rem/1.6 var(--mono);
}

.form-notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--ice);
  background: rgba(157, 231, 244, 0.1);
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-notice.is-error {
  border-left-color: var(--ember);
  background: rgba(255, 84, 46, 0.12);
}

.form-notice p {
  margin: 0;
}

.form-notice p + p {
  margin-top: 0.5rem;
}

.form-notice a {
  color: var(--ice);
}

.form-notice[hidden] {
  display: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-aside .next-steps,
.contact-aside > .next-steps {
  margin-top: 0;
}

.aside-block,
.contact-aside > .aside-block {
  margin-top: 2.8rem;
}

.aside-block > h3 {
  margin: 0 0 1rem;
  color: var(--label);
  font: 750 0.68rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aside-block .check-list li {
  font-size: 0.88rem;
}

.aside-block.boundary-note > h3 {
  margin-bottom: 0.5rem;
  color: var(--fg);
}

/* ---------------------------------------------------------------- Standard pages and posts (WordPress) */

/* Blocks added straight onto a full-width "Frostfire sections" page, outside the section patterns */
.site-sections > :where(p, h2, h3, h4, ul, ol, blockquote, figure, table, .wp-block-image, .wp-block-buttons, .wp-block-list, .wp-block-heading, .wp-block-quote, .wp-block-table, .wp-block-embed) {
  width: var(--shell);
  max-width: 50rem;
  margin: 2rem auto;
}

.page-hero.is-standard {
  min-height: 0;
  padding-bottom: 4.5rem;
}

.page-hero.is-standard h1 {
  max-width: 22ch;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.prose-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.prose-content {
  max-width: 50rem;
  color: var(--fg-2);
  font-size: 1.08rem;
  line-height: 1.7;
}

.prose-content > * + * {
  margin-block-start: 1.3em;
}

.prose-content :where(h2, h3, h4) {
  color: var(--fg);
  line-height: 1.05;
}

.prose-content h2 {
  margin-block-start: 2.2em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.prose-content h3 {
  margin-block-start: 1.9em;
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1.2;
}

.prose-content h4 {
  margin-block-start: 1.6em;
  font: 750 0.78rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose-content > :first-child {
  margin-block-start: 0;
}

.prose-content a:where(:not(.wp-element-button)) {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose-content a:where(:not(.wp-element-button)):hover {
  text-decoration-thickness: 2px;
}

.prose-content :where(ul, ol) {
  padding-left: 1.3em;
}

.prose-content li + li {
  margin-top: 0.45em;
}

.prose-content li::marker {
  color: var(--ember);
}

.prose-content blockquote {
  padding: 0.4em 0 0.4em 1.2em;
  border-left: 4px solid var(--ember);
  color: var(--fg);
  font-weight: 650;
}

.prose-content img {
  height: auto;
}

.prose-content :where(figcaption) {
  margin-top: 0.6em;
  color: var(--muted);
  font: 0.76rem/1.5 var(--mono);
}

.prose-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.prose-content :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose-content :where(th, td) {
  padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.posts-list .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.posts-list .wp-block-post {
  display: grid;
  gap: 0.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.posts-list .wp-block-post-date {
  color: var(--label);
  font: 750 0.7rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.posts-list .wp-block-post-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.posts-list .wp-block-post-title a {
  text-decoration: none;
}

.posts-list .wp-block-post-title a:hover {
  color: var(--accent);
}

.posts-list .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: var(--muted);
}

.posts-list .wp-block-post-excerpt__more-text {
  margin: 0.4rem 0 0;
}

.posts-list .wp-block-query-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.posts-list .wp-block-query-pagination a {
  text-decoration: none;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  padding: 5rem 0 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--black);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
}

.footer-brand .brand-logo {
  width: calc(2.7rem * 3.5635);
  height: 2.7rem;
}

.footer-brand-col p {
  max-width: 28rem;
  margin: 1.6rem 0 2rem;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-title {
  margin: 0 0 1rem;
  color: var(--ice);
  font: 750 0.66rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-title-spaced {
  margin-top: 2.4rem;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.6rem;
}

.footer-col a {
  color: var(--white);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ice);
}

.footer-col .footer-email {
  color: var(--ice);
  font-family: var(--mono);
  font-size: 0.83rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--grey);
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------------------------------------------------------------- Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: none; }
}

@keyframes link-pulse {
  0% { background-position: 150% 0, 0 0; }
  60%, 100% { background-position: -50% 0, 0 0; }
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1180px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step {
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(3n) {
    border-right: 0;
  }

  .step:nth-child(n + 4) {
    border-bottom: 0;
  }

  .steps-3 .step {
    border-bottom: 0;
  }

  .method-steps.steps-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-4 .step,
  .steps-4 .step:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .steps-4 .step:nth-child(2n) {
    border-right: 0;
  }

  .steps-4 .step:nth-child(n + 3) {
    border-bottom: 0;
  }

  .tiles.tiles-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mega-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .band-grid {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  }

  .band-copy {
    grid-column: 2;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile {
    border-bottom: 1px solid var(--line);
  }

  .tile:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .chain {
    --link-w: 2.3rem;
    --bpad: 0.5rem;
  }

  .chain-node {
    padding: 0.55rem 0.5rem;
  }

  .chain-node span {
    font-size: 0.54rem;
    letter-spacing: 0.06em;
  }

  .chain-link i {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.56rem;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 46rem);
  }

  .hero-bottom .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 4.5rem;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .brand-logo {
    width: calc(2.2rem * 3.5635);
    height: 2.2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: 3.4rem;
  }

  .hero-bottom .button-row {
    justify-content: flex-start;
  }

  .button-row > .wp-block-button.btn {
    flex: 1 1 15rem;
  }

  .form-footer .form-submit {
    justify-self: stretch;
    width: 100%;
  }

  .chain {
    --link-w: 2.4rem;
    flex-direction: column;
    margin: 1.6rem 0 1.4rem;
  }

  .chain-boundary {
    flex: none;
    flex-direction: column;
    margin: 0;
    padding: 2.3rem var(--bpad) var(--bpad);
  }

  .chain-node {
    flex: none;
    min-height: 3.6rem;
  }

  .chain-node strong {
    font-size: 0.9rem;
  }

  .chain-link {
    flex: 0 0 var(--link-w);
  }

  .chain-link::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 6px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background:
      linear-gradient(180deg, transparent 0 35%, #ffb59c 35% 65%, transparent 65%) 0 0 / 100% 300% no-repeat,
      rgba(255, 84, 46, 0.62);
    animation-name: link-pulse-v;
  }

  .chain-link::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    border-inline: 4.5px solid transparent;
    border-block: 0;
    border-top: 7px solid var(--ember);
    transform: translateX(-50%);
  }

  .chain-link i {
    margin: 0 0 6px;
  }

  .attack-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .attack-legend {
    flex-direction: column;
  }

  .map-caption {
    text-align: left;
  }

  .split-heading,
  .split-grid,
  .split-grid.is-faq,
  .evidence-grid,
  .band-grid,
  .closing-grid,
  .form-section-grid,
  .contact-grid,
  .page-hero-body.has-aside,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .band-copy {
    grid-column: auto;
  }

  .page-hero {
    min-height: auto;
  }

  .page-hero-body:not(.has-aside) .page-hero-copy {
    width: 100%;
  }

  .service-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-tab {
    min-height: 7.5rem;
  }

  .cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step,
  .step:nth-child(n + 4) {
    min-height: 14rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(2n) {
    border-right: 0;
  }

  .step:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .step h3 {
    margin-top: 2.8rem;
  }

  .method-steps.steps-3,
  .method-steps.steps-4,
  .method-steps.steps-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-4 .step:last-child,
  .steps-6 .step:last-child {
    grid-column: auto;
  }

  .steps-6 .step:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .steps-6 .step:nth-child(2n) {
    border-right: 0;
  }

  .steps-3 .step:not(:last-child),
  .steps-6 .step:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .steps-6 .step:nth-child(n + 5) {
    border-bottom: 0;
  }

  .industry-card {
    min-height: 18rem;
  }

  .industry-card h3 {
    margin-top: 4.5rem;
  }

  .check-list.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .readiness-item {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .readiness-item p {
    grid-column: 2;
  }

  /* Table -> stacked rows */
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .compare-table tr {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .compare-table tbody th,
  .compare-table td {
    width: 100%;
    padding: 0.4rem 0;
    border: 0;
  }

  .compare-table tbody th {
    padding-bottom: 0.6rem;
    font-size: 1.2rem;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--label);
    font: 750 0.62rem/1.35 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: calc(1.95rem * 3.5635);
    height: 1.95rem;
  }

  .hero {
    padding: 7rem 0 3rem;
  }

  .hero-index {
    margin-bottom: 2rem;
    font-size: 0.62rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12.6vw, 4.6rem);
  }

  .signal {
    display: none;
  }

  .section {
    padding: 5.5rem 0;
  }

  .sec-title,
  .split-head .sec-title,
  .band-grid .sec-title,
  .form-section-copy .sec-title,
  .closing-copy h2 {
    font-size: clamp(2.3rem, 10.6vw, 4rem);
  }

  .sec-title.is-small {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .page-hero {
    padding: 7.5rem 0 4rem;
  }

  .page-index {
    margin-bottom: 2.6rem;
  }

  .page-hero h1 {
    font-size: clamp(3.3rem, 15.5vw, 5.6rem);
  }

  .page-hero h1.is-lg {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .page-hero h1.is-md,
  .page-hero.is-standard h1 {
    font-size: clamp(2.25rem, 10.2vw, 3.6rem);
  }

  .page-hero-body {
    margin-top: 2.6rem;
  }

  .cols-2,
  .cols-3,
  .cols-4,
  .principles-grid,
  .tiles,
  .method-steps,
  .scope-cols,
  .compare-cols,
  .form-grid,
  .check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile,
  .tile:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .step,
  .step:nth-child(n + 4) {
    min-height: auto;
    border-right: 0;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step h3 {
    margin-top: 1.6rem;
  }

  .method-steps.steps-3,
  .method-steps.steps-4,
  .method-steps.steps-6,
  .tiles.tiles-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-steps .step:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature,
  .industry-card,
  .link-card,
  .svc-card,
  .principle,
  .tile {
    min-height: auto;
  }

  .feature h3,
  .principle h3 {
    margin-top: 2rem;
  }

  .industry-card h3 {
    margin-top: 3rem;
  }

  .card-kicker,
  .link-card .card-kicker {
    margin-top: 2rem;
  }

  .service-tab {
    min-height: auto;
    padding: 1.2rem;
  }

  .service-panel {
    padding: 1.5rem;
  }

  .faq-item > summary {
    grid-template-columns: minmax(0, 1fr) 1.6rem;
  }

  .faq-item > summary::before {
    display: none;
  }

  .faq-item > p {
    margin-right: 0;
    margin-left: 0;
  }

  .faq-item > p:last-child {
    margin-bottom: 1.6rem;
  }

  .form-card {
    padding: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@keyframes link-pulse-v {
  0% { background-position: 0 150%, 0 0; }
  60%, 100% { background-position: 0 -50%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .hero-media,
  .hero-grid,
  .signal,
  .lead-form {
    display: none !important;
  }

  .page-hero::before,
  .closing-cta::after,
  .form-section::after {
    display: none !important;
  }

  body,
  .tone-dark,
  .tone-panel,
  .hero,
  .page-hero,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
}

/* Leadership card (About) */
.leader-mini {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: var(--card);
}

.leader-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}

.leader-name {
  margin: 0;
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.leader-role {
  margin: 0.45rem 0 0;
  color: var(--ember);
  font: 750 0.72rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leader-text {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.leader-link {
  margin: 0.8rem 0 0;
  font: 600 0.8rem/1.4 var(--mono);
}

@media (max-width: 620px) {
  .leader-mini {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
  }
}

/* About, Independence: each point highlights ember (brand red) on hover or tap */
.sec-independence .readiness-item {
  padding-right: 1rem;
  padding-left: 1rem;
  transition: background-color 0.2s ease;
}

.sec-independence .readiness-item:hover,
.sec-independence .readiness-item:active,
.sec-independence .readiness-item:focus-within {
  background: var(--ember);
}

.sec-independence .readiness-item:hover::before,
.sec-independence .readiness-item:hover h3,
.sec-independence .readiness-item:hover p,
.sec-independence .readiness-item:active::before,
.sec-independence .readiness-item:active h3,
.sec-independence .readiness-item:active p,
.sec-independence .readiness-item:focus-within::before,
.sec-independence .readiness-item:focus-within h3,
.sec-independence .readiness-item:focus-within p {
  color: #050606;
}
