/* ============================================================
   Varde Advisory - Theme CSS
   Design tokens, typography, reset, components, dark mode
   Source of truth: brand-spec.md
   ============================================================ */

/* === TOKENS === */
:root {
  /* Colors - Light */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --fg: #0b1420;
  --muted: #3a5068;
  --border: #d0d8e2;
  --accent: #c98a46;
  /* Darkened from #a86a2b: ~4.15:1 on --bg, below the 4.5:1 AA
     minimum for the normal-size text it's used on. #8a5620
     measures ~5.76:1. */
  --accent-text: #8a5620;
  --on-accent: #0b1420;
  --nav-bg: rgba(247,248,250,0.92);

  /* Typography */
  --font-display: 'Hedvig Letters Serif', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing (8px grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  color-scheme: light dark;
}

/* Dark mode via data-theme attribute */
[data-theme="dark"] {
  --bg: #0a1220;
  --surface: #111b2e;
  --fg: #d4d8dd;
  --muted: #8fa3b8;
  --border: rgba(255,255,255,0.08);
  --accent-text: #c98a46;
  --nav-bg: rgba(10,18,32,0.88);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #0a1220;
    --surface: #111b2e;
    --fg: #d4d8dd;
    --muted: #8fa3b8;
    --border: rgba(255,255,255,0.08);
    --accent-text: #c98a46;
    --nav-bg: rgba(10,18,32,0.88);
  }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration: none; }

/* === GRAIN TEXTURE === */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain-overlay { opacity: 0.05; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.5vw, 48px); letter-spacing: -0.02em; }
h3 { font-size: 24px; letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.lead { font-size: 20px; color: var(--muted); max-width: 52ch; }
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

/* === LAYOUT === */
.container {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-sticky-col {
  position: sticky;
  top: 116px;
}
@media (max-width: 900px) {
  .about-sticky-col { position: static; }
}

/* === SMOOTH ANCHOR SCROLL === */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-3) 0;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
nav.scrolled { border-bottom-color: var(--border); }
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}
.wordmark img { height: 28px; width: auto; }
[data-theme="dark"] .wordmark img { filter: invert(1); }
.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.nav-link-current { color: var(--fg); }
.nav-link-current::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav-link:hover { color: var(--fg); }
  .nav-link:hover::after { transform: scaleX(1); }
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 10px 16px;
  text-decoration: none;
}
@media (hover: hover) {
  .nav-cta:hover { opacity: 0.85; }
}

/* Responsive nav toggle + menu */
.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-chapters { display: flex; align-items: center; gap: 18px; }
.nav-chapters-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
}
@media (max-width: 950px) {
  nav .container { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .nav-chapters { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-chapters-label { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
  .nav-chapters .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-chapters .nav-link::after { display: none; }
  .nav-cta { margin-top: 4px; }
.nav-menu.open { display: flex; }
}

/* === BREADCRUMBS === */
.breadcrumbs {
  display: flex; align-items: center; gap: 9px; padding: 14px 0 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs [aria-current="page"] { color: var(--fg); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
}
.skip-link:focus {
  top: 1rem;
}

/* === THEME TOGGLE === */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.18s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  align-self: center;
}
.theme-toggle svg {
  position: absolute;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle:active { transform: scale(0.92); }
@media (hover: hover) {
  .theme-toggle:hover { color: var(--fg); border-color: var(--fg); }
}
@keyframes theme-toggle-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.theme-toggle.pulse { animation: theme-toggle-pulse 0.5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle.pulse { animation: none; }
}

/* === PAGE HERO === */
.page-hero {
  position: relative;
  padding: 160px 0 192px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin-bottom: 24px; }
.page-hero .lead { color: var(--muted); max-width: 52ch; font-size: 20px; line-height: 1.5; margin-bottom: 56px; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
  opacity: 0.10;
}
.hero-bg + .container { position: relative; z-index: 1; }
.beacon {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 320px;
  height: 320px;
  z-index: 1;
  opacity: 0.35;
}
.beacon circle { stroke: var(--border); }
.beacon .center { fill: var(--accent); stroke: none; }

/* Beacon pulse */
@keyframes beacon-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}
.ring-1 { animation: beacon-pulse 4s ease-in-out infinite; }
.ring-2 { animation: beacon-pulse 5s ease-in-out infinite 0.5s; }
.ring-3 { animation: beacon-pulse 6s ease-in-out infinite 1s; }
.ring-4 { animation: beacon-pulse 7s ease-in-out infinite 1.5s; }

/* Beacon sweep: an outward-expanding signal ping */
@keyframes beacon-sweep {
  0% { r: 4; stroke-opacity: 0.6; }
  100% { r: 180; stroke-opacity: 0; }
}
.beacon circle.ring-sweep {
  stroke: var(--accent);
  animation: beacon-sweep 4s cubic-bezier(0.2, 0, 0, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ring-1, .ring-2, .ring-3, .ring-4 { animation: none; }
  .ring-sweep { animation: none; opacity: 0; }
}

/* === HOMEPAGE HERO: LATEST SIGNAL CARD === */
.home-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.home-hero h1 { max-width: 11ch; }
.home-hero .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
}
.text-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 3px;
}
.hero-signal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  color: #eef2f4;
  transition: border-color 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.hero-signal-bg { position: absolute; inset: 0; z-index: 0; }
.hero-signal-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-signal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(11, 20, 32, 0.55), rgba(11, 20, 32, 0.92));
}
.hero-signal > * { position: relative; z-index: 2; }
.hero-signal-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(201, 211, 218, 0.45);
  margin-bottom: 12px;
}
.hero-signal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eef2f4;
}
.hero-signal-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-signal-date {
  color: rgba(201, 211, 218, 0.6);
  font-weight: 400;
  font-size: 10px;
}
.hero-signal-type {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  display: block;
  margin-bottom: 8px;
}
.hero-signal-body {
  padding-top: 0;
  padding-left: 8px;
  padding-bottom: 12px;
  border-top: none;
  border-bottom: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-signal-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  max-width: 20ch;
  color: #eef2f4;
  margin: 0;
}
@media (hover: hover) {
  .hero-signal:hover { border-color: var(--accent); }
}
.watchtower-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .watchtower-hero .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-signal { min-height: 340px; }
}

/* === TICKER === */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-set {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-set strong { font-weight: 600; color: var(--accent-text); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
@media (hover: hover) {
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker-set[aria-hidden] { display: none; }
  .ticker { overflow-x: auto; }
}

/* === CURSOR SPOTLIGHT === */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .spotlight:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlight::before { display: none; }
}

/* === BUTTONS === */
.cta {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--accent);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.18s cubic-bezier(0.2, 0, 0, 1),
              color 0.18s cubic-bezier(0.2, 0, 0, 1),
              transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.cta:active { transform: scale(0.97); }
@media (hover: hover) {
  .cta:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
}

/* === ERROR META === */
.error-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 160px 0 192px;
}
.error-hero .container { position: relative; z-index: 2; }
.error-hero h1 { max-width: 18ch; margin-bottom: 32px; }
.error-hero .lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 52ch;
}
.error-meta {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* === FOOTER === */
footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
@media (hover: hover) {
  .footer-link:hover { color: var(--fg); border-bottom-color: var(--muted); }
}

/* === SECTION BORDERS === */
section {
  border-bottom: 1px solid var(--border);
  padding: 128px 0;
}

/* === CONTACT SECTION === */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
  opacity: 0.08;
}
.contact-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
@media (hover: hover) {
  .contact-link:hover { border-color: var(--fg); padding-bottom: 5px; }
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.spacer { margin-bottom: var(--space-4); }
.booking-cta {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
@media (hover: hover) {
  .booking-cta:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
}

/* === DIVIDER STRIP === */
.divider-strip {
  height: 160px;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.divider-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}
.prefooter-strip {
  height: 80px;
  overflow: hidden;
}
.prefooter-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

/* === BLOG === */
.blog-listing { padding: var(--space-16) 0; }
.blog-section {
  padding: var(--space-12) 0;
}
.blog-section > .container > .section-label { margin-bottom: var(--space-6); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}
.blog-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-text);
}
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.blog-card h2 {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  margin: 0 0 var(--space-2) 0;
  flex: 1;
}
.blog-card h2 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}
@media (hover: hover) {
  .blog-card h2 a:hover { color: var(--accent-text); }
}
.blog-card-excerpt {
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.blog-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Blog post */
.blog-post { padding: var(--space-16) 0 var(--space-10); }
.brief-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px);
  gap: var(--space-12);
  align-items: start;
}
.brief-rail {
  position: sticky;
  top: 112px;
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}
.brief-rail-label {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-post-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.blog-post-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.brief-facts { margin: var(--space-6) 0 0; }
.brief-facts div { border-top: 1px solid var(--border); padding: 12px 0; }
.brief-facts dt { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.brief-facts dd { margin: 4px 0 0; font-size: 14px; color: var(--fg); text-transform: capitalize; }
.brief-source { display: inline-block; margin-top: var(--space-5); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.brief-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-6); }
.blog-post-content {
  max-width: 680px;
}
.blog-post-content p {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}
.blog-post-content > p:first-child {
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: var(--space-8);
}
.blog-post-content h2 {
  font-size: 26px;
  font-weight: 500;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.noscript-feed { display: grid; gap: 12px; padding-top: 16px; }
.noscript-feed a { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid var(--border); }
.noscript-feed span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; }
.blog-post-content h2:first-child { margin-top: 0; }
.blog-post-content h3 {
  font-size: 19px;
  font-weight: 500;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.blog-post-content strong { font-weight: 600; color: var(--fg); }
.blog-post-content blockquote {
  border-left: 1px solid var(--accent);
  padding-left: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--muted);
  font-style: italic;
}
/* === WATCHTOWER === */
.map-section { padding: var(--space-10) 0; }
.dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}
.map-panel, .feed-panel {
  border: 1px solid var(--border);
  background: var(--surface);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-head b { font-weight: 600; color: var(--accent-text); }
.feed-panel {
  display: flex;
  flex-direction: column;
  height: 409px;
  max-height: 409px;
}
.feed-panel .timeline {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-text) transparent;
}
.feed-panel .timeline::-webkit-scrollbar {
  width: 6px;
}
.feed-panel .timeline::-webkit-scrollbar-track {
  background: transparent;
}
.feed-panel .timeline::-webkit-scrollbar-thumb {
  background: var(--accent-text);
  border-radius: 2px;
}
.feed-panel .timeline::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.feed-panel .timeline-line,
.feed-panel .timeline-item::before { display: none; }
.feed-panel .timeline-item {
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--surface);
  color: var(--fg) !important;
  text-align: left;
}
.feed-panel .timeline-item:hover {
  background: var(--surface);
  border-left-color: var(--accent-text);
}
.feed-panel .timeline-item.active {
  background: rgba(201, 138, 70, 0.12);
  border-left-color: var(--accent-text);
}
.feed-panel .timeline-item:last-child { border-bottom: none; }
.feed-panel .timeline-item-date {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feed-panel .timeline-item h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--fg);
}
.feed-panel .timeline-item-type {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .feed-panel { height: 420px; max-height: 420px; }
}
.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--surface);
  border: none;
  overflow: hidden;
}
.map-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}
.map-grid {
  stroke: var(--border);
  stroke-width: 0.5;
  opacity: 0.32;
}
.map-graticule line:last-child { opacity: 0; }
.map-continents { pointer-events: none; opacity: 0.8; }
.map-continents path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.map-pins { pointer-events: none; }
.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--fg);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1),
              opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 10;
  pointer-events: auto;
}
.map-pin.visible { opacity: 1; }
.map-pin.removing { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
.map-pin.selected {
  transform: translate(-50%, -50%) scale(1.8);
  box-shadow: 0 0 0 4px rgba(201, 138, 70, 0.25);
  z-index: 15;
}
.map-pin:active { transform: translate(-50%, -50%) scale(0.97); }
.map-pin.archive { background: var(--muted); border-color: var(--muted); }
.map-pin.pulse { animation: pin-pulse 2.5s ease-in-out infinite; }
@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 138, 70, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(201, 138, 70, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin.pulse { animation: none; }
}
.map-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 30;
}
@media (hover: hover) {
  .map-pin:hover .map-pin-tooltip { opacity: 1; }
  .map-pin:hover { transform: translate(-50%, -50%) scale(1.5); z-index: 20; }
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.18s cubic-bezier(0.2, 0, 0, 1),
              color 0.18s cubic-bezier(0.2, 0, 0, 1),
              transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.filter-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.filter-btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .filter-btn:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-1px); }
}

/* Incident detail */
.incident-detail {
  margin-top: var(--space-8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.2, 0, 0, 1),
              transform 0.35s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}
.incident-detail.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.incident-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.incident-type, .incident-date, .incident-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.incident-type {
  color: var(--accent-text);
  text-transform: uppercase;
}
.incident-date {
  color: var(--muted);
}
.incident-date::before {
  content: "Incident date: ";
  color: var(--muted);
  font-weight: 400;
}
.incident-status {
  text-transform: uppercase;
}
.incident-status.current {
  color: var(--accent-text);
}
.incident-status.archive {
  color: var(--muted);
}
.incident-status::before {
  content: "Status: ";
  color: var(--muted);
  font-weight: 400;
}
.incident-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.incident-action-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-8);
}
.incident-content {
  display: flex;
  flex-direction: column;
}
.incident-detail h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  margin: 0 0 var(--space-6) 0;
  max-width: 50ch;
  font-weight: 400;
  line-height: 1.15;
}
.incident-context {
  flex: 1;
}
.incident-detail .incident-context p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  max-width: 55ch;
  margin-bottom: var(--space-5);
}
.incident-footer {
  position: relative;
  margin-top: 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 295px;
}
.incident-primary-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: var(--space-3) var(--space-4);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
  width: fit-content;
  margin: 0;
  align-self: center;
}
@media (hover: hover) {
  .incident-primary-cta:hover {
    opacity: 0.9;
  }
}
.incident-primary-cta:active {
  opacity: 0.8;
}
.incident-action-row .incident-cta { margin-top: var(--space-2); }
.incident-perspective {
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: var(--space-4);
}
.incident-perspective-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.incident-perspective-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}
.incident-perspective p { margin: 0; }
.incident-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.incident-source {
  position: absolute;
  top: var(--space-8);
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  margin-bottom: var(--space-2);
}
.incident-source::before {
  content: "Reporting: ";
  color: var(--muted);
}
.incident-source a {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s, opacity 0.2s;
}
.incident-source a::after {
  content: " ↗";
  margin-left: 4px;
  font-weight: 400;
}
@media (hover: hover) {
  .incident-source a:hover {
    color: var(--accent);
  }
}
.incident-cta {
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: rgba(201, 138, 70, 0.04);
}
.incident-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.incident-cta p {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 var(--space-3) 0;
}
.incident-cta-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
@media (hover: hover) {
  .incident-cta-link:hover { color: var(--fg); border-color: var(--accent-text); }
}
.incident-share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  align-self: end;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.incident-share-label {
  color: var(--muted);
  font-weight: 400;
}
.incident-share a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
@media (hover: hover) {
  .incident-share a:hover {
    color: var(--accent-text);
  }
}
@media (max-width: 900px) {
  .incident-main {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .incident-action-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .incident-footer {
    position: static;
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: var(--space-3);
  }
  .incident-action-row .incident-cta { margin-top: 0; }
  .incident-sidebar {
    flex-direction: row;
    gap: var(--space-4);
  }
  .incident-perspective {
    flex: 1;
  }
  .incident-cta {
    flex: 1;
  }
}
@media (max-width: 600px) {
  .incident-sidebar {
    flex-direction: column;
  }
  .incident-perspective {
    flex: initial;
  }
  .incident-cta {
    flex: initial;
  }
  .incident-footer {
    flex-direction: column;
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline-line {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.2, 0, 0, 1),
              transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--fg);
}
.timeline-item.current::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline-item.active h4 { color: var(--accent-text); }
.timeline-item.hidden { display: none; }
.timeline-item-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.timeline-item-type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.timeline-empty { color: var(--muted); font-size: 16px; }

/* Feed subscribe */
.feed-subscribe { margin-top: var(--space-4); }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s cubic-bezier(0.2, 0, 0, 1),
              transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: 0s; }
.reveal-2 { transition-delay: 0.1s; }
.reveal-3 { transition-delay: 0.2s; }
.reveal-fade {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1);
}
.reveal-fade.visible { opacity: 1; }
.reveal-img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1), transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}
.reveal-img.visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
  .reveal-img { opacity: 1; transform: none; transition: none; }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .page-hero { padding: 96px 0 64px; }
  .beacon { width: 240px; height: 240px; top: 16px; right: 16px; opacity: 0.25; }
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-6); }
  .brief-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .brief-rail { position: static; }
  .brief-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: 40px; letter-spacing: -0.02em; }
  h2 { font-size: 32px; }
  .page-hero { padding: 64px 0 48px; }
  .beacon { display: none; }
  .map-section { padding: var(--space-10) 0; }
  .crosslink-section { padding: var(--space-10) 0; }
  .divider-strip { height: 120px; }
  .prefooter-strip { height: 60px; }
  footer .container { flex-direction: column; gap: 16px; }
  .map-container { aspect-ratio: 4 / 3; }
}

/* === FOCUS === */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* === HOMEPAGE === */
.bg-surface { background: var(--surface); }
.ticker + #about { padding-top: 80px; }
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.grid-services .service-card:first-child,
.grid-services #service-spm { grid-column: span 2; }
.service-card {
  padding: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.18s, transform 0.18s cubic-bezier(0.2, 0, 0, 1);
  scroll-margin-top: 90px;
}
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { color: var(--muted); margin-bottom: var(--space-2); }
.case-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.18s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.18s cubic-bezier(0.2, 0, 0, 1);
}
@media (hover: hover) {
  .service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .service-card:hover .case-link { color: var(--accent-text); border-bottom-color: var(--accent-text); }
  .case-link:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.outcome {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}
.outcome:last-child { border-right: none; }
.outcome strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.outcome > span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome { border-right: none; border-bottom: 1px solid var(--border); }
  .outcome:last-child { border-bottom: none; }
}

.founder-block {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.founder-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0;
}
.founder-bullets {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.founder-bullets p {
  color: var(--muted);
  margin-bottom: 0;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.65;
}
.founder-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--space-3);
}
.founder-figure img {
  width: 100%;
  filter: grayscale(100%) contrast(1.1);
  border: 1px solid var(--border);
}
.about-figure img {
  width: 100%;
  filter: grayscale(100%) contrast(1.1);
  border: 1px solid var(--border);
  margin-top: var(--space-3);
}
.regulatory-tags { margin-top: var(--space-3); }
.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 16px;
  display: inline-block;
  margin-right: var(--space-1);
  margin-bottom: var(--space-1);
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.method-head .section-label { margin-bottom: 16px; }
.method-head h2 { max-width: 8ch; margin-bottom: 24px; }
.steps { border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 60px 1fr 1.25fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
}
.step h3 { font-size: 24px; margin: 0; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.step-output {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.process-platform {
  margin-top: 56px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: none;
}
.process-platform a {
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}
.faq-question {
  font-family: var(--font-display);
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
  content: '+';
  font-family: var(--font-mono);
  font-size: 14px;
  margin-right: var(--space-2);
  color: var(--accent-text);
}
.faq-item[open] .faq-question::before { content: '\2212'; }
.faq-answer p { color: var(--muted); max-width: 72ch; }
.faq-answer {
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s;
  max-height: 0; opacity: 0; padding-bottom: 0;
}
.faq-item[open] .faq-answer { max-height: 400px; opacity: 1; padding-bottom: var(--space-3); }
@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}

/* === METHODOLOGY === */
.page-hero h1 { max-width: 22ch; margin-bottom: 24px; }
.grid-2 > .reveal p { color: var(--muted); }
.pillar-kicker,
.pillar-output span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.method-principles { padding: 96px 0; background: var(--bg); }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principles-grid > div { display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 24px 24px 24px 0; border-right: 1px solid var(--border); }
.principles-grid > div:not(:first-child) { padding-left: 24px; }
.principles-grid > div:last-child { border-right: none; }
.principles-grid span { font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); }
.principles-grid strong { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.principles-grid small { color: var(--muted); font-size: 14px; }
.before-after { padding: 128px 0; }
.before-after-grid { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 24px; }
.before-after-card { min-height: 220px; padding: 32px; border: 1px solid var(--border); }
.before-after-card.after { background: var(--surface); border-color: var(--accent); }
.before-after-card span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.before-after-card.after span { color: var(--accent-text); }
.before-after-card strong { display: block; max-width: 20ch; margin: 28px 0 16px; font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.15; }
.before-after-card p { max-width: 42ch; color: var(--muted); font-size: 15px; }
.before-after-arrow { text-align: center; font-family: var(--font-display); font-size: 40px; color: var(--accent-text); }
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.pillar:last-child { padding-bottom: 0; }
.pillar-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}
.pillar-heading { position: relative; }
.pillar-kicker { display: block; margin-bottom: 20px; color: var(--muted); }
.pillar h2 { font-size: clamp(28px, 3vw, 40px); }
.pillar-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 52ch;
}
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.pillar-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.pillar-output strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg);
}

/* === PLATFORM === */
.status-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.status-marker .status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: none;
}
.platform-capabilities { padding: 96px 0; }
.platform-capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform-capability {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), border-color 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.platform-capability:hover { border-color: var(--accent); transform: translateY(-3px); }
.platform-capability > span,
.platform-capability b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.platform-capability strong { margin-top: 48px; font-family: var(--font-display); font-size: 27px; font-weight: 400; line-height: 1.1; }
.platform-capability p { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.platform-capability b { margin-top: auto; padding-top: 24px; font-weight: 600; }
.capability-understand { background: linear-gradient(145deg, var(--surface), rgba(201, 138, 70, 0.08)); }
.capability-plan { background: linear-gradient(145deg, var(--surface), rgba(58, 80, 104, 0.08)); }
.capability-prove { background: linear-gradient(145deg, var(--surface), rgba(201, 138, 70, 0.04)); }
.capability-report { background: linear-gradient(145deg, var(--surface), rgba(58, 80, 104, 0.04)); }
.platform-module-nav {
  position: sticky;
  top: 86px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}
.platform-module-nav > span { margin-right: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.platform-filter { padding: 10px 14px; border: 1px solid transparent; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.platform-filter.is-active { color: var(--bg); background: var(--fg); }
.platform-filter:hover { border-color: var(--fg); color: var(--fg); }
.module-phase[hidden] { display: none; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-phase { margin-top: 80px; }
.module-phase-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.module-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
  transition: border-color 0.18s cubic-bezier(0.2, 0, 0, 1),
              transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.module-card:active { transform: scale(0.97); }
.module-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.module-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-top: 16px;
  margin-bottom: 0;
}
.module-card p {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--muted);
  margin-top: 8px;
  max-width: none;
}
@media (hover: hover) {
  .module-card:hover { border-color: var(--accent); transform: translateY(-2px); }
}

/* === FEATURED CASE === */
.featured-case { padding: var(--space-8) 0; border-bottom: 1px solid var(--border); }
.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 56px;
  align-items: start;
  padding-top: 24px;
}
.featured-visual {
  position: relative;
  border: 1px solid var(--border);
  height: 380px;
  margin: 0;
}
.featured-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
}
.featured-visual figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #eef2f4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.featured-copy h2 { max-width: 20ch; margin: 0 0 24px; font-size: clamp(28px, 2.5vw, 38px); }
.featured-copy p { color: var(--muted); max-width: 46ch; }
.featured-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin: 36px 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.featured-stats > div {
  display: flex;
  flex-direction: column;
}
.featured-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.featured-stats > div > span {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.featured-stats strong .stat-count {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .featured-visual { height: 280px; }
}

/* === FIELD REPORTS === */
.cases-list { display: flex; flex-direction: column; gap: 32px; }
.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.18s cubic-bezier(0.2, 0, 0, 1),
              transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.case-card[hidden] { display: none; }
.case-card:active { transform: scale(0.97); }
.case-text { padding: 48px; }
.case-media {
  position: relative;
  border-left: 1px solid var(--border);
  background: var(--bg);
}
.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
  border: none;
}
.case-media:empty { display: none; }
.case-card:has(.case-media:empty) .case-text { grid-column: 1 / -1; }
.case-card h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 20px;
  max-width: 40ch;
}
.case-meta { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.case-service-tag, .case-client {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case-service-tag { color: var(--accent-text); margin-bottom: 0; }
.case-client { color: var(--muted); margin-bottom: 0; }
.case-card p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 65ch; }
.case-outcome {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.01em;
  max-width: 65ch;
}
.stat-count { font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .case-card:hover { border-color: var(--accent); transform: translateY(-2px); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .grid-services { grid-template-columns: 1fr; }
  .grid-services .service-card:first-child,
  .grid-services #service-spm { grid-column: span 1; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
  .method-head h2 { max-width: none; }
  .step { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; }
  .step h3 { grid-column: 2; }
  .step > div { grid-column: 2; }
  .pillar { grid-template-columns: 1fr; gap: 40px; }
  .platform-capability-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .service-card { padding: 32px 24px; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid > div:nth-child(2) { border-right: none; }
  .principles-grid > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .principles-grid > div:nth-child(3) { padding-left: 0; }
  .before-after { padding: 96px 0; }
  .before-after-grid { grid-template-columns: 1fr; gap: 16px; }
  .before-after-arrow { transform: rotate(90deg); }
  .platform-capabilities { padding: 80px 0; }
  .platform-capability-grid { grid-template-columns: 1fr; }
  .platform-capability { min-height: 220px; }
  .platform-capability strong { margin-top: 32px; }
  .platform-module-nav { align-items: flex-start; flex-wrap: wrap; top: 64px; }
  .platform-module-nav > span { width: 100%; margin-bottom: 4px; }
  .platform-filter { flex: 1 0 auto; }
  .pillar { padding: 48px 0; }
  .case-text { padding: 32px 24px; }
  .case-media:not(:empty) { border-left: none; border-top: 1px solid var(--border); min-height: 200px; }
  .module-grid { grid-template-columns: 1fr; }
}

/* === LEGAL PAGES === */
.legal-content { max-width: 70ch; }
.legal-content h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.legal-content ul {
  color: var(--muted);
  margin-bottom: 16px;
  padding-left: 32px;
}
.legal-content li { margin-bottom: 8px; }

/* === DE-INLINED UTILITIES === */
.hero-content { position: relative; z-index: 2; }
.founder-label { grid-column: 1 / -1; margin: 0 0 24px; }
.founder-bio { max-width: none; }
.nowrap { white-space: nowrap; }
.page-section,
.legal-section { padding: 128px 0; }
.default-content { margin-top: var(--space-4); max-width: 56ch; }
.blog-empty { color: var(--muted); font-size: 18px; }
.blog-post-tags { margin-top: var(--space-4); }
.contact-section { position: relative; padding: 128px 0 64px; overflow: hidden; }
.contact-content { position: relative; z-index: 1; }
.footer-tel { color: inherit; text-decoration: none; }
.footer-sep { margin: 0 12px; color: var(--muted); }

/* Incident page */
.incident-body { max-width: 70ch; }
.incident-body > p {
  color: var(--muted);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}
.incident-page-back { margin-top: var(--space-4); }
.incident-blog-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  display: inline-block;
  margin-top: 24px;
}
.incident-blog-link:hover { border-bottom-color: var(--accent-text); }
