/* ════════════════════════════════════════════════════════════════════════
   TKIL × CYBERVAHAK · PROPOSAL STYLESHEET
   Cybervahak-aligned palette: cream paper #f7f6f2, near-black text #0a0a0a,
   royal blue accent #1f4bff. Inter for everything (matches Cybervahak's
   actual brand on cybervahak.ai), JetBrains Mono for labels and code.
   TKIL teal #07829C is preserved only on TKIL-branded elements (the TKIL
   wordmark pill, the India footprint map, manufacturing markers) via the
   --tkil-teal token, co-brand respect, not our system color.
════════════════════════════════════════════════════════════════════════ */

:root {
  /* Mirrors cybervahak.ai brand tokens. Text-near-black on cream paper,
     a single vivid royal-blue accent. Inter for everything; no serif.
     TKIL teal is preserved only on TKIL-branded elements (the wordmark
     pill, the India map, manufacturing markers) via --tkil-teal. */

  /* Surfaces, exact Cybervahak tokens */
  --bg: #f7f6f2;
  --bg-deep: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --surface-3: #ebe9e3;
  --panel-hi: #faf9f5;

  /* Lines, Cybervahak's rgba(10,10,10) family */
  --border: rgba(10, 10, 10, 0.09);
  --border-strong: rgba(10, 10, 10, 0.16);
  --border-hi: rgba(10, 10, 10, 0.34);

  /* Brand, Cybervahak royal blue */
  --primary: #0a0a0a;          /* near-black, same as text, used for headings, dark UI */
  --primary-2: #3d3d3d;
  --primary-soft: rgba(10, 10, 10, 0.06);

  --accent: #1f4bff;           /* Cybervahak royal blue */
  --accent-2: #4b6bff;
  --accent-soft: rgba(31, 75, 255, 0.07);
  --accent-line: rgba(31, 75, 255, 0.24);
  --accent-on-light: #1666d4;  /* slightly deeper for AA contrast on text */

  /* TKIL co-brand color, used ONLY on TKIL-branded elements */
  --tkil-teal: #07829C;
  --tkil-teal-soft: rgba(7, 130, 156, 0.10);

  /* Severity colors, Cybervahak's exact tokens */
  --warn: #b76d1d;
  --warn-soft: rgba(183, 109, 29, 0.08);
  --danger: #c4365a;
  --danger-soft: rgba(196, 54, 90, 0.07);
  --success: #1f8a5e;

  /* Text, Cybervahak's exact text scale */
  --text: #0a0a0a;
  --text-2: #3d3d3d;
  --text-3: #6b6b6b;
  --text-4: #9a9a9a;

  /* Gradients, restrained */
  --grad-primary: linear-gradient(135deg, #0a0a0a 0%, #3d3d3d 100%);
  --grad-accent: linear-gradient(135deg, #1f4bff 0%, #1666d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(10, 10, 10, 0.04) 0%, rgba(31, 75, 255, 0.05) 100%);

  /* Typography, Inter throughout. Mono for labels and code. */
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Geometry */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 14px;

  /* Shadows, soft, ink-on-paper, no glow */
  --shadow-card: 0 1px 1px rgba(10, 10, 10, 0.04), 0 4px 12px -6px rgba(10, 10, 10, 0.06);
  --shadow-card-hover: 0 1px 2px rgba(10, 10, 10, 0.06), 0 14px 28px -10px rgba(10, 10, 10, 0.10);
  --shadow-glow: 0 0 0 1px rgba(31, 75, 255, 0.18), 0 12px 28px -10px rgba(10, 10, 10, 0.10);

  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent-soft); color: var(--primary); }

/* ════════════════════════════════════════════════════════════════════════
   AUTH GATE
════════════════════════════════════════════════════════════════════════ */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 60%, #3d3d3d 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.auth-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
}
.auth-glow {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.32;
  animation: glowDrift 18s ease-in-out infinite alternate;
}
.auth-glow-1 { background: #FFFFFF; top: -240px; left: -180px; }
.auth-glow-2 { background: var(--accent-2); bottom: -240px; right: -180px; animation-delay: -9s; }

@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px 32px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 30px 80px -20px rgba(15, 23, 42, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: authIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-logo { width: 38px; height: 38px; flex: 0 0 auto; }
.auth-logo-img { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 14px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.auth-cobrand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 0 8px;
}
.auth-cobrand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.auth-cobrand-cv .auth-brand-name {
  font-size: 16px;
}
.auth-tkil-logo {
  height: 38px;
  width: auto;
  max-width: 200px;
  display: block;
}
.auth-cobrand-x {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-3);
  letter-spacing: 0;
}
.auth-tagline {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 6px;
}

.auth-divider {
  margin: 28px 0 24px;
  text-align: center;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 18px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 75, 255, 0.2), transparent);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span {
  display: inline-block;
  color: var(--primary);
  font-size: 10px;
  opacity: 0.7;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-title-faint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.auth-field input {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  font-family: var(--font-mono);
}

.auth-submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s;
  box-shadow: 0 6px 18px -6px rgba(31, 75, 255, 0.45);
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(31, 75, 255, 0.6);
}
.auth-submit:active { transform: translateY(0); }

.auth-footnote {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: var(--font-mono);
}

/* ════════════════════════════════════════════════════════════════════════
   APP, base & background
════════════════════════════════════════════════════════════════════════ */

.app {
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}
.app.is-visible { opacity: 1; }

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 75, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 75, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 0%, transparent 80%);
}
.bg-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.06;
}
.bg-glow-cyan { background: var(--accent); top: -300px; left: -200px; }
.bg-glow-emerald { background: var(--primary); top: 800px; right: -200px; }

/* ════════════════════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.nav-logo { width: 26px; height: 26px; flex: 0 0 auto; }
.nav-logo-img { width: 30px; height: 30px; flex: 0 0 auto; object-fit: contain; }
.nav-brand-name {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-brand-x {
  color: var(--text-4);
  font-weight: 300;
  font-size: 14px;
}
.nav-brand-client { color: var(--text); }
.tkil-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tkil-teal);   /* TKIL's actual brand color, preserved */
  padding: 6px 12px;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(7, 130, 156, 0.25);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.tkil-pill-lg  { padding: 10px 18px; }
.nav-tkil-pill { padding: 5px 11px; }
.footer-tkil-pill { padding: 4px 10px; }

.tkil-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  line-height: 1;
}
.tkil-wordmark-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tkil-pill-lg .tkil-wordmark-main { font-size: 26px; letter-spacing: 0.20em; }
.nav-tkil-pill .tkil-wordmark-main { font-size: 14px; letter-spacing: 0.16em; }
.footer-tkil-pill .tkil-wordmark-main { font-size: 13px; letter-spacing: 0.16em; }
.tkil-wordmark-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.tkil-pill-lg .tkil-wordmark-sub { font-size: 11px; letter-spacing: 0.40em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--accent-soft); }
.nav-links a.is-active {
  color: var(--primary);
  background: var(--accent-soft);
}
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Density toggle, Skim / Standard / Deep segmented control */
.nav-zoom {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
}
.nav-zoom-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px 0 10px;
}
.nav-zoom-btn {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.nav-zoom-btn:hover { color: var(--primary); }
.nav-zoom-btn[aria-pressed="true"] {
  color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--accent);
}
@media (max-width: 1100px) {
  .nav-zoom-label { display: none; }
  .nav-zoom-btn { padding: 6px 10px; font-size: 10px; }
}
@media (max-width: 900px) {
  .nav-zoom { display: none; }
  /* density toggle hidden on small screens; surfaces inside mobile menu instead */
  .nav-links.is-open .nav-zoom-mobile {
    display: flex;
    margin: 16px 0 8px;
    width: 100%;
    justify-content: stretch;
  }
  .nav-links.is-open .nav-zoom-mobile .nav-zoom-btn { flex: 1; }
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-btn:hover { color: var(--primary); border-color: var(--accent); background: var(--accent-soft); }
.nav-btn-ghost { background: transparent; }

.nav-mobile-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav-mobile-toggle span {
  width: 18px; height: 1.5px;
  background: var(--text-2);
  margin: 0 auto;
  transition: transform 0.2s;
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 60px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter);
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(31, 75, 255, 0.06) 0%, transparent 55%),
              radial-gradient(ellipse 70% 60% at 90% 80%, rgba(14, 61, 92, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  border: 1px solid rgba(31, 75, 255, 0.20);
  border-radius: 100px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(31, 75, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text);
}
.grad-text {
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 760px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero-stat {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-value {
  font-family: var(--font-body);              /* sans for numerals, serif at this size feels precious */
  font-feature-settings: "tnum" 1, "lnum" 1;  /* tabular lining figures */
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 10px;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(31, 75, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(31, 75, 255, 0.50);
}
.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--primary); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-key {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: var(--font-mono);
}
.hero-meta-val {
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════════
   SECTIONS, common
════════════════════════════════════════════════════════════════════════ */

.section {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 130px) var(--gutter);
  scroll-margin-top: 84px;
}
.section + .section {
  position: relative;
}
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 75, 255, 0.20), transparent);
}
.section-head {
  max-width: 820px;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  color: var(--text);
  max-width: 24ch;
}
/* Pull-quote, sits between title and lede. The "one thing" a reader
   should remember from the section. Inter at 500 weight with a teal
   left border lets the takeaway carry without competing with the title. */
.section-pullquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text);
  max-width: 58ch;
  margin-bottom: 22px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.section-pullquote em {
  color: var(--accent-on-light);
  font-style: normal;
  font-weight: 600;
}
.section-lede {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-3);
  max-width: 64ch;
  font-feature-settings: "ss01", "cv11";  /* Inter's slightly-rounder lowercase */
}
.section-lede em { color: var(--text-2); font-style: italic; font-weight: 500; }
.section-lede strong { color: var(--text); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════════════════
   PRINCIPLES (overview)
════════════════════════════════════════════════════════════════════════ */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.principle {
  position: relative;
  padding: 32px 28px 24px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.principle:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 16px;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.principle p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.principle p em { color: var(--text); font-style: normal; font-weight: 500; }
.principle-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════════════════
   FABRIC GRID
════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
   SCENARIO, "Day in the life" timeline
   Six panels: intrusion → detection → correlation → containment → triage
   → closure. Each step has a stage-coloured dot on a vertical thread.
════════════════════════════════════════════════════════════════════════ */

.scenario-setup {
  position: relative;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}
.scenario-setup-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.scenario-setup p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}
.scenario-component-inline {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin: 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  color: var(--accent-on-light);
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: baseline;
}

.scenario-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.scenario-timeline::before {
  content: '';
  position: absolute;
  left: 122px;
  top: 8px;
  bottom: 12px;
  width: 1px;
  background: var(--border-strong);
}
@media (max-width: 720px) {
  .scenario-timeline::before { display: none; }
}

.scenario-step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.scenario-step:last-child { padding-bottom: 0; }
@media (max-width: 720px) {
  .scenario-step { grid-template-columns: 1fr; gap: 8px; }
}

.scenario-step::before {
  content: '';
  position: absolute;
  left: 116px;
  top: 14px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 1;
}
.scenario-step[data-stage="intrusion"]::before    { background: var(--danger); }
.scenario-step[data-stage="detection"]::before    { background: var(--warn); }
.scenario-step[data-stage="correlation"]::before  { background: var(--warn); }
.scenario-step[data-stage="containment"]::before  { background: var(--accent); }
.scenario-step[data-stage="triage"]::before       { background: var(--accent); }
.scenario-step[data-stage="closure"]::before      { background: var(--success); }

@media (max-width: 720px) {
  .scenario-step::before { display: none; }
}

.scenario-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  padding-top: 12px;
  text-align: right;
}
@media (max-width: 720px) {
  .scenario-time { text-align: left; padding-top: 0; }
}

.scenario-step-body {
  padding-top: 4px;
  max-width: 64ch;
}
.scenario-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.scenario-step[data-stage="intrusion"]    .scenario-step-label { color: var(--danger); }
.scenario-step[data-stage="detection"]    .scenario-step-label { color: var(--warn); }
.scenario-step[data-stage="correlation"]  .scenario-step-label { color: var(--warn); }
.scenario-step[data-stage="containment"]  .scenario-step-label { color: var(--accent); }
.scenario-step[data-stage="triage"]       .scenario-step-label { color: var(--accent); }
.scenario-step[data-stage="closure"]      .scenario-step-label { color: var(--success); }

.scenario-step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.scenario-step-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 16px;
}
.scenario-step-body p strong { color: var(--text); font-weight: 600; }
.scenario-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
}
.scenario-components {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scenario-component {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  color: var(--accent-on-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.scenario-summary {
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.scenario-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .scenario-summary-stats { grid-template-columns: repeat(2, 1fr); } }

.scenario-stat-value {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.scenario-stat-label {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.35;
}
.scenario-summary-prose {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
  font-style: italic;
  max-width: 75ch;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px) { .fabric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fabric-grid { grid-template-columns: 1fr; } }

.fabric-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.fabric-card.has-details { cursor: default; }
.fabric-card.is-expanded { overflow: visible; }
.fabric-card.is-expanded:hover { transform: none; }
.fabric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.25s;
}
.fabric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.fabric-card:hover::before { opacity: 1; }

.fabric-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
  font-size: 18px;
}
.fabric-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.fabric-tagline {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 500;
}
.fabric-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 14px;
}
.fabric-mapped {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 100px;
}

/* Click-to-expand: head layout & button */
.fabric-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.fabric-card-head .fabric-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.fabric-card-titles {
  flex: 1;
  min-width: 0;
}
.fabric-card-titles .fabric-name { margin-bottom: 4px; }
.fabric-card-titles .fabric-tagline { margin-bottom: 0; }

.fabric-expand-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  align-self: flex-start;
}
.fabric-expand-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.fabric-expand-icon { transition: transform 0.25s ease; }
.fabric-card.is-expanded .fabric-expand-icon { transform: rotate(180deg); }
.fabric-card.is-expanded .fabric-expand-btn {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.fabric-card.is-expanded {
  grid-column: 1 / -1;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: none;
}
.fabric-detail-mapped {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

/* Overview block, first item inside expanded detail. Houses the description
   and the "→ Areas X · Y" pill that used to live on the collapsed card. */
.fabric-detail-overview {
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.fabric-detail-overview p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px 0;
}
.fabric-detail-overview .fabric-detail-mapped {
  padding-top: 0;
}

/* Fabric detail panel uses the grid-template-rows trick for smooth height
   transition. Outer is a 1-row grid (0fr collapsed → 1fr expanded). Inner
   wrapper has overflow:hidden + min-height:0 so it can be clipped while
   collapsing without breaking layout. All spacing lives on the inner
   element so margin/padding collapses cleanly with the row. */
.fabric-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.fabric-card.is-expanded .fabric-detail {
  grid-template-rows: 1fr;
}
.fabric-detail-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.fabric-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 720px) { .fabric-detail-grid { grid-template-columns: 1fr; } }
.fabric-detail-block {}
.fabric-detail-block-prose {
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.fabric-detail-block-tkil {
  background: var(--accent-soft);
  border-color: rgba(31, 75, 255, 0.20);
}
.fabric-detail-block-tkil .fabric-detail-key { color: var(--accent); }
.fabric-detail-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.fabric-detail-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fabric-detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.fabric-detail-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-weight: 700;
}
.fabric-detail-block-prose p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}
.fabric-detail-block-tkil p { color: var(--text); }
.fabric-detail-block-submodule {
  background: var(--accent-soft);
  border-color: rgba(31, 75, 255, 0.20);
}
.fabric-detail-block-submodule .fabric-detail-key {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: none;
}
.fabric-detail-block-submodule p { color: var(--text); margin-bottom: 10px; }
.fabric-detail-block-submodule .fabric-detail-list { margin-top: 4px; }
.fabric-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fabric-detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.fabric-note {
  margin-top: 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(31, 75, 255, 0.05), rgba(14, 61, 92, 0.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.fabric-note-icon {
  font-size: 20px;
  color: var(--primary);
  flex: 0 0 auto;
  line-height: 1;
  margin-top: 2px;
}
.fabric-note-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.fabric-note-body strong { color: var(--text); font-weight: 600; }
.fabric-note-body em { color: var(--text); font-style: italic; }

/* ════════════════════════════════════════════════════════════════════════
   COVERAGE MATRIX
════════════════════════════════════════════════════════════════════════ */

.matrix-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.matrix-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.matrix-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 75, 255, 0.1); }
.matrix-search svg { color: var(--text-3); flex: 0 0 auto; }
.matrix-search input {
  flex: 1;
  padding: 11px 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
}

.matrix-filters { display: flex; gap: 6px; }
.matrix-filter {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.matrix-filter:hover { color: var(--text); border-color: var(--border-strong); }
.matrix-filter.active {
  color: #FFFFFF;
  background: var(--grad-primary);
  border-color: transparent;
  font-weight: 600;
}
.matrix-filter-count {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.15);
}
.matrix-filter:not(.active) .matrix-filter-count {
  background: var(--primary-soft);
  color: var(--primary);
}

.matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.matrix-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1.6fr 140px 36px;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.matrix-row:hover { border-color: var(--border-strong); }
.matrix-row.is-hidden { display: none; }
.matrix-row.is-expanded { border-color: var(--primary); }

.matrix-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.matrix-cap {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}
.matrix-prod {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.matrix-prod-oem {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-top: 4px;
}
.matrix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
  width: fit-content;
}
.matrix-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.matrix-badge-native {
  color: var(--accent);
  background: var(--accent-soft);
}
.matrix-badge-native::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.matrix-badge-partner {
  color: var(--primary);
  background: var(--primary-soft);
}
.matrix-badge-partner::before { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.matrix-badge-detection {
  color: var(--accent);
  background: var(--accent-soft);
}
.matrix-badge-detection::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.matrix-badge-posture {
  color: var(--accent-on-light);
  background: rgba(31, 75, 255, 0.05);
}
.matrix-badge-posture::before { background: var(--accent-on-light); box-shadow: 0 0 8px var(--accent-on-light); }
.matrix-badge-governance {
  color: var(--text);
  background: var(--surface-3);
}
.matrix-badge-governance::before { background: var(--text); box-shadow: 0 0 8px rgba(10,10,10,0.4); }

.matrix-arrow {
  color: var(--text-3);
  transition: transform 0.25s;
  text-align: center;
}
.matrix-row.is-expanded .matrix-arrow { transform: rotate(90deg); color: var(--primary); }

.matrix-detail {
  grid-column: 1 / -1;
  display: none;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.matrix-row.is-expanded .matrix-detail { display: block; }
.matrix-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.matrix-detail-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.matrix-detail-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}
.matrix-detail-val {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 920px) {
  .matrix-row { grid-template-columns: 36px 1fr 36px; gap: 12px; padding: 14px 16px; }
  .matrix-prod, .matrix-badge { grid-column: 2; }
  .matrix-detail-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   ARCHITECTURE
════════════════════════════════════════════════════════════════════════ */

.arch-diagram {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.arch-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arch-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.arch-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.arch-tile {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font-mono);
}
.arch-tile-cond { color: var(--warn); border-color: rgba(255, 176, 32, 0.3); background: var(--warn-soft); }
.arch-tile-fabric {
  background: linear-gradient(135deg, rgba(31, 75, 255, 0.12), rgba(14, 61, 92, 0.08));
  border-color: var(--border-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
}
.arch-tile-out {
  background: rgba(14, 61, 92, 0.06);
  border-color: rgba(14, 61, 92, 0.2);
  color: var(--accent);
}
.arch-tiles-glow .arch-tile-fabric { box-shadow: 0 0 16px -4px rgba(31, 75, 255, 0.3); }

.arch-flow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-mono);
  margin: 24px 0;
  position: relative;
}

/* ════════════════════════════════════════════════════════════════════════
   ROADMAP
════════════════════════════════════════════════════════════════════════ */

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent);
  z-index: 0;
}
.phase {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  z-index: 1;
}
.phase:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.phase-marker {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.phase-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 56px 0 8px;
}
.phase-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.phase-focus {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 16px;
}
.phase-deliv {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.phase-deliv-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.phase-deliv-item::before {
  content: '◆';
  color: var(--primary);
  font-size: 8px;
  margin-top: 5px;
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { display: none; }
  .phase-time { margin-top: 0; padding-left: 36px; }
  .phase-marker { top: 20px; left: 20px; }
}

/* ════════════════════════════════════════════════════════════════════════
   ENGAGEMENT
════════════════════════════════════════════════════════════════════════ */

.engage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 820px) { .engage-split { grid-template-columns: 1fr; } }

.engage-col {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.engage-col-head { margin-bottom: 24px; }
.engage-col-tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 100px;
  margin-bottom: 14px;
}
.engage-col-tag-tkil { color: var(--accent); background: var(--accent-soft); }
.engage-col h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.engage-list { display: flex; flex-direction: column; gap: 10px; }
.engage-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.engage-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.engage-col:nth-child(2) .engage-list li::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.engage-list strong { color: var(--text); font-weight: 600; }

.engage-onsite {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(31, 75, 255, 0.04), rgba(14, 61, 92, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.engage-onsite h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
}
.engage-onsite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.engage-onsite-grid > div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.engage-onsite-key {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.engage-onsite-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
@media (max-width: 720px) { .engage-onsite-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   COMMERCIAL
════════════════════════════════════════════════════════════════════════ */

.comm-table-wrap {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.comm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.comm-table th, .comm-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comm-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  background: rgba(5, 8, 16, 0.4);
}
.comm-table td { color: var(--text-2); }
.comm-table strong { color: var(--text); font-weight: 600; }
.comm-table tbody tr:hover { background: rgba(31, 75, 255, 0.02); }
.comm-table tfoot td {
  font-weight: 500;
  color: var(--text);
  border-bottom: none;
  background: rgba(5, 8, 16, 0.4);
}
.comm-cell-sealed {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comm-bar {
  position: relative;
  height: 6px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 100px;
}
.comm-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  border-radius: 100px;
  transition: width 1s ease;
}
.comm-bar span {
  position: relative;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text);
  padding: 0 8px;
  font-weight: 500;
  z-index: 1;
}

.comm-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 820px) { .comm-notes { grid-template-columns: 1fr; } }
.comm-note {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.comm-note strong { color: var(--text); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════
   DELIVERABLES
════════════════════════════════════════════════════════════════════════ */

.deliv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .deliv-grid { grid-template-columns: 1fr; } }

.deliv-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.deliv-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.deliv-card-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.deliv-card ul { display: flex; flex-direction: column; gap: 10px; }
.deliv-card li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.deliv-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--primary);
}

/* ════════════════════════════════════════════════════════════════════════
   WHY US
════════════════════════════════════════════════════════════════════════ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.why-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(31, 75, 255, 0.1) 0%, transparent 70%);
  transform: translate(50%, -50%);
  transition: transform 0.4s;
}
.why-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.why-card:hover::after { transform: translate(30%, -30%) scale(1.5); }

.why-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  line-height: 1;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════════════════
   CTA
════════════════════════════════════════════════════════════════════════ */

.section-cta {
  padding-bottom: clamp(60px, 8vw, 100px);
}
.cta-card {
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 55%, #3d3d3d 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -28px rgba(31, 75, 255, 0.40);
}
.cta-card .cta-eyebrow { color: var(--accent-2); }
.cta-card .cta-title { color: #FFFFFF; -webkit-background-clip: unset; background: none; }
.cta-card .cta-lede { color: rgba(255, 255, 255, 0.85); }
.cta-card .cta-item { background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; }
.cta-card .cta-item-key { color: var(--accent-2); }
.cta-card .cta-item-val { color: rgba(255, 255, 255, 0.92); }
.cta-card .cta-contact { border-top-color: rgba(255, 255, 255, 0.18); }
.cta-card .cta-contact-key { color: rgba(255, 255, 255, 0.65); }
.cta-card .cta-contact-val { color: #FFFFFF; }
.cta-card .mono { color: #FFFFFF; }
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.cta-lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 760px;
  margin-bottom: 40px;
  position: relative;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
  position: relative;
}
@media (max-width: 720px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-item {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.cta-item-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.cta-item-val {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.cta-item-val .mono { font-family: var(--font-mono); color: var(--text); font-size: 12px; }

.cta-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  position: relative;
}
@media (max-width: 720px) { .cta-contact { grid-template-columns: 1fr; } }
.cta-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.cta-contact-val {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 40px var(--gutter);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-cobrand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-x {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-4);
}
.footer-tkil-logo {
  height: 20px;
  width: auto;
  max-width: 140px;
  display: block;
}
.footer-logo-img { width: 24px; height: 24px; flex: 0 0 auto; object-fit: contain; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin-bottom: 0;
}
.footer-brand span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}
.footer-legal {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-4);
  font-family: var(--font-mono);
}
.footer-ref {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════════════
   TKIL PROFILE / CONTEXT SECTION
════════════════════════════════════════════════════════════════════════ */

.tkil-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.tkil-profile-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.tkil-profile-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tkil-profile-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.tkil-profile-val {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

.tkil-verticals {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.tkil-verticals-head {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.tkil-vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .tkil-vertical-grid { grid-template-columns: 1fr; } }
.tkil-vertical {
  padding: 16px 18px;
  border-left: 2px solid var(--primary);
  background: rgba(31, 75, 255, 0.04);
  border-radius: 4px;
}
.tkil-vertical-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.tkil-vertical-impl {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.tkil-implications {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.tkil-impl-head {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.tkil-impl-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
}
.tkil-impl-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.tkil-impl-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 10px;
}
.tkil-impl-list strong { color: var(--text); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════
   RISKS GRID
════════════════════════════════════════════════════════════════════════ */

.risks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
}
.risk-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.risk-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.risk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.risk-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.risk-sev {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid;
}
.risk-sev-critical {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(196, 54, 90, 0.30);
}
.risk-sev-high {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(183, 109, 29, 0.30);
}
.risk-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}
/* Industry-impact line, visible at all zoom levels, between title and
   the expand button. Translates Critical/High severity into board-language. */
.risk-impact-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.risk-impact-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.risk-impact-value {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

/* Expand affordance for risk cards */
.risk-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.risk-expand-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.risk-expand-icon { transition: transform 0.25s ease; }
.risk-card.is-expanded .risk-expand-icon { transform: rotate(180deg); }
.risk-card.is-expanded .risk-expand-btn {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Risk detail content (vector / impact / mitigation), grid-template-rows
   trick for smooth height. Spacing lives on .risk-detail-inner. */
.risk-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.risk-card.is-expanded .risk-detail {
  grid-template-rows: 1fr;
}
.risk-detail-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.risk-vector,
.risk-impact,
.risk-mitigation {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.risk-vector span,
.risk-impact span,
.risk-mitigation span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.risk-mitigation { color: var(--text); }

/* ════════════════════════════════════════════════════════════════════════
   QUICK WINS / FIRST 90 DAYS
════════════════════════════════════════════════════════════════════════ */

.quickwins {
  background: linear-gradient(180deg, rgba(31, 75, 255, 0.05) 0%, rgba(14, 61, 92, 0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}
.quickwins-head { margin-bottom: 24px; }
.quickwins-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.quickwins-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.quickwins-lede {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 720px;
}
.quickwins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .quickwins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .quickwins-grid { grid-template-columns: 1fr; } }

.quickwin {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  transition: border-color 0.2s;
}
.quickwin:hover { border-color: var(--border-strong); }
.quickwin-when {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.quickwin ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.quickwin li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.quickwin li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════
   COMPLIANCE CROSSWALK
════════════════════════════════════════════════════════════════════════ */

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.compliance-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.compliance-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.compliance-card-india { border-left: 3px solid var(--primary); }

.compliance-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.compliance-card:not(.compliance-card-india) .compliance-flag {
  background: var(--surface-3);
  color: var(--text-3);
}
.compliance-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

/* Compliance expand affordance */
.compliance-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.compliance-expand-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.compliance-expand-icon { transition: transform 0.25s ease; }
.compliance-card.is-expanded .compliance-expand-icon { transform: rotate(180deg); }
.compliance-card.is-expanded .compliance-expand-btn {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Compliance detail content (scope + where-it-lives), grid-template-rows
   trick for smooth height. Spacing lives on .compliance-detail-inner. */
.compliance-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.compliance-card.is-expanded .compliance-detail {
  grid-template-rows: 1fr;
}
.compliance-detail-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Subtle fade-in for the inner content when a panel opens. The grid-template-rows
   transition handles the height; the fade adds a touch of polish on the content. */
@keyframes expandableFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fabric-card.is-expanded .fabric-detail-inner,
.risk-card.is-expanded .risk-detail-inner,
.compliance-card.is-expanded .compliance-detail-inner {
  animation: expandableFadeIn 0.32s ease-out;
}
@media print {
  .fabric-card.is-expanded .fabric-detail-inner,
  .risk-card.is-expanded .risk-detail-inner,
  .compliance-card.is-expanded .compliance-detail-inner {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   GLOBAL ZOOM MODES, Skim / Standard / Deep
   data-zoom on <body> drives section padding + a few non-card adjustments.
   Card open/closed state is driven entirely by .is-expanded class on the
   card (JS collapseAll/expandAll keeps it in sync), so no CSS overrides
   for [data-expand-content] are needed here.
════════════════════════════════════════════════════════════════════════ */

/* Skim: tighter section padding for a denser at-a-glance view. */
body[data-zoom="skim"] .section { padding: clamp(56px, 8vw, 90px) var(--gutter); }
body[data-zoom="skim"] .section-head { margin-bottom: 32px; }

/* Deep: every fabric card stretches to full grid width for richer reading.
   Suppress the fade-in animation when bulk-expanding 22 panels at once. */
body[data-zoom="deep"] .fabric-card { grid-column: 1 / -1; }
body[data-zoom="deep"] .fabric-summary { display: none !important; }
body[data-zoom="deep"] .fabric-card.is-expanded .fabric-detail-inner,
body[data-zoom="deep"] .risk-card.is-expanded .risk-detail-inner,
body[data-zoom="deep"] .compliance-card.is-expanded .compliance-detail-inner {
  animation: none !important;
}
/* Suppress fade-in animation when zoom mode forces all panels open at once
   (would create a janky cascade of fades). */
body[data-zoom="deep"] .fabric-detail,
body[data-zoom="deep"] .risk-detail,
body[data-zoom="deep"] .compliance-detail { animation: none !important; }

.compliance-scope {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
  padding: 0;
  border: none;
}
.compliance-mapping {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}
.compliance-mapping span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.compliance-note {
  background: linear-gradient(135deg, rgba(31, 75, 255, 0.08) 0%, rgba(14, 61, 92, 0.04) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.compliance-note strong { color: var(--primary); }

/* ════════════════════════════════════════════════════════════════════════
   FOOTPRINT, INDIA MAP, LOCATIONS, NUMBERS, TIMELINE, CUSTOMERS
════════════════════════════════════════════════════════════════════════ */

.footprint-canvas {
  margin-bottom: 40px;
}
.footprint-map-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
@media (max-width: 920px) {
  .footprint-map-wrap { grid-template-columns: 1fr; }
}

.india-map {
  width: 100%;
  height: auto;
  max-height: 640px;
  display: block;
}

.india-map .map-network line {
  stroke: var(--tkil-teal);
  stroke-width: 0.6;
  stroke-dasharray: 3 3;
  stroke-opacity: 0.45;
  fill: none;
}

.india-map .map-pin {
  cursor: default;
  transition: transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.india-map .map-pin:hover {
  transform: scale(1.10);
}

.india-map .map-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  fill: var(--text);
  letter-spacing: 0.005em;
}
.india-map .map-label-hq { fill: var(--primary); font-size: 13px; }
.india-map .map-sublabel {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pulsing animation on the HQ pin */
.india-map .map-pin-hq circle:first-child {
  animation: hqPulse 2.6s ease-in-out infinite;
  transform-origin: 121px 415px;
}
@keyframes hqPulse {
  0%, 100% { opacity: 0.10; transform: scale(1); }
  50%      { opacity: 0.18; transform: scale(1.18); }
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
}
.map-legend-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.map-legend-dot-hq { background: var(--primary); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.15); }
.map-legend-dot-mfg { background: var(--tkil-teal); box-shadow: 0 0 0 3px rgba(7, 130, 156, 0.18); }
.map-legend-dot-office { background: var(--text-3); box-shadow: 0 0 0 3px rgba(107, 107, 107, 0.18); }
.map-legend-dash {
  width: 18px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--tkil-teal) 0 4px, transparent 4px 8px, var(--tkil-teal) 8px 12px, transparent 12px 16px, var(--tkil-teal) 16px 18px);
  flex: 0 0 auto;
}
.map-legend-foot {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}

/* Locations grid */
.footprint-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.footprint-loc {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--border-strong);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.footprint-loc:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.footprint-loc-hq    { border-left-color: var(--primary); }
.footprint-loc-mfg   { border-left-color: var(--tkil-teal); }
.footprint-loc:not(.footprint-loc-hq):not(.footprint-loc-mfg) { border-left-color: var(--text-3); }
.footprint-loc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.footprint-loc-hq .footprint-loc-tag { color: var(--primary); }
.footprint-loc:not(.footprint-loc-hq):not(.footprint-loc-mfg) .footprint-loc-tag { color: var(--text-3); }
.footprint-loc-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
}
.footprint-loc-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footprint-loc-role {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.footprint-loc-role strong { color: var(--text); font-weight: 600; }

/* By the numbers */
.footprint-numbers {
  background: linear-gradient(135deg, rgba(14, 61, 92, 0.04) 0%, rgba(31, 75, 255, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}
.footprint-numbers-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.footprint-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .footprint-numbers-grid { grid-template-columns: repeat(2, 1fr); } }
.footprint-stat {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.footprint-stat-value {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.footprint-stat-value span {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 2px;
  letter-spacing: 0;
}
.footprint-stat-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Timeline */
.footprint-timeline {
  margin-bottom: 40px;
}
.footprint-timeline-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
.footprint-timeline-track {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  position: relative;
  padding-top: 30px;
}
.footprint-timeline-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 2px;
}
@media (max-width: 920px) {
  .footprint-timeline-track { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .footprint-timeline-track::before { display: none; }
}
.footprint-tl-event {
  position: relative;
  padding: 6px 12px;
  text-align: center;
}
@media (max-width: 920px) { .footprint-tl-event { text-align: left; padding: 14px 18px; border-left: 2px solid var(--accent); margin-left: 8px; } }
.footprint-tl-event::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--surface);
}
@media (max-width: 920px) {
  .footprint-tl-event::before { top: 14px; left: -8px; transform: none; }
}
.footprint-tl-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 8px;
}
.footprint-tl-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.footprint-tl-body strong { color: var(--text); font-weight: 600; }

/* Customer trust wall */
.footprint-customers {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.footprint-customers-head {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.footprint-customers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) { .footprint-customers-grid { grid-template-columns: 1fr; } }
.footprint-customer-group {}
.footprint-customer-group-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.footprint-customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footprint-customer-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footprint-customer-tags span:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: var(--accent-soft);
}
.footprint-customers-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  font-style: italic;
}

/* Verticals enhancement */
.tkil-vertical-head {
  margin-bottom: 10px;
}
.tkil-vertical-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
════════════════════════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-primary);
  z-index: 200;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(31, 75, 255, 0.5);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   COMMERCIAL · Investment & breakdown
   Headline summary tiles, year-by-year cost matrix, per-fabric pricing,
   services breakdown, payment milestones, inclusions/exclusions, GST notes.
════════════════════════════════════════════════════════════════════════ */

.comm-headline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
@media (max-width: 920px) { .comm-headline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .comm-headline { grid-template-columns: 1fr; } }

.comm-headline-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.comm-headline-value {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.comm-headline-label {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.comm-headline-label small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* Headline tile emphasis variant, applied to the tail-risk tile so it
   visually leads the four. Royal-blue accent border, slight scale. */
.comm-headline-stat-emph {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 60%);
  box-shadow: 0 1px 2px rgba(31, 75, 255, 0.06), 0 8px 20px -6px rgba(31, 75, 255, 0.14);
}
.comm-headline-stat-emph .comm-headline-value {
  color: var(--accent-on-light);
}

/* ────── Investment thesis subsection ────── */
.comm-thesis {
  margin: 0 0 56px;
  padding: 32px 36px 36px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.comm-thesis-head {
  max-width: 70ch;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-strong);
}
.comm-thesis-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.comm-thesis-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 12px;
}
.comm-thesis-lede {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.comm-thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 920px) { .comm-thesis-grid { grid-template-columns: 1fr; } }

.comm-thesis-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.comm-thesis-panel-d { grid-column: 1 / -1; background: var(--text); color: #ffffff; border-color: var(--text); }

.comm-thesis-panel-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 10px;
}
.comm-thesis-panel-d .comm-thesis-panel-tag { color: var(--accent-2); }

.comm-thesis-panel-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 18px;
}
.comm-thesis-panel-d .comm-thesis-panel-title { color: #ffffff; }

.comm-thesis-panel-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  font-style: italic;
}

/* Panel A, two-column comparison (do vs do-not) */
.comm-thesis-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .comm-thesis-twocol { grid-template-columns: 1fr; } }

.comm-thesis-twocol-block {
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
}
.comm-thesis-twocol-block-warn { border-left-color: var(--danger); }
.comm-thesis-twocol-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.comm-thesis-twocol-value {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.comm-thesis-twocol-value span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 6px;
  letter-spacing: 0;
}
.comm-thesis-twocol-block-warn .comm-thesis-twocol-value { color: var(--danger); }
.comm-thesis-twocol-foot {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Panel B, value-bucket list */
.comm-thesis-value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comm-thesis-value-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.comm-thesis-value-list li:last-child { border-bottom: none; }
.comm-thesis-value-row { color: var(--text-2); }
.comm-thesis-value-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-on-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.comm-thesis-value-total {
  font-weight: 700;
  margin-top: 6px;
  padding-top: 14px !important;
  border-top: 2px solid var(--accent) !important;
  border-bottom: none !important;
  font-size: 15px !important;
}
.comm-thesis-value-total .comm-thesis-value-row { color: var(--text); }
.comm-thesis-value-total .comm-thesis-value-num { font-size: 17px; color: var(--accent-on-light); }

/* Panel C, strategic preservation grid */
.comm-thesis-strat-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comm-thesis-strat-item {
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}
.comm-thesis-strat-key {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.005em;
}
.comm-thesis-strat-val {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Panel D, the decision (full-width, dark) */
.comm-thesis-decision-prose {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 80ch;
}
.comm-thesis-decision-prose + .comm-thesis-decision-prose { margin-top: 14px; }
.comm-thesis-decision-prose strong { color: #ffffff; font-weight: 600; }
.comm-thesis-decision-prose-em {
  font-size: 16px;
  font-style: italic;
  color: var(--accent-2);
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--accent-2);
  border-radius: 0 4px 4px 0;
  max-width: 76ch;
}

/* Block wrapper used for each commercial sub-section (A, B, C, D) */
.comm-block {
  margin-bottom: 48px;
}
.comm-block-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.comm-block-eyebrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
}
.comm-block-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.comm-block-lede {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
  max-width: 70ch;
}

/* Year-matrix table */
.comm-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.comm-table {
  width: 100%;
  border-collapse: collapse;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.comm-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-2);
}
.comm-th-num   { width: 50px; text-align: center; }
.comm-th-year  { width: 80px; text-align: right; }
.comm-th-total { color: var(--accent-on-light); }
.comm-th-share { width: 200px; }
.comm-table tbody td {
  padding: 14px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comm-table tbody tr:hover { background: var(--accent-soft); }
.comm-table .comm-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
  font-weight: 600;
}
.comm-table .comm-areas {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-on-light);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
  white-space: nowrap;
}
.comm-table td.comm-total,
.comm-table th.comm-th-total {
  text-align: right;
  font-weight: 700;
  color: var(--text);
}
.comm-table tbody td.comm-total {
  background: var(--surface-2);
  border-left: 1px solid var(--border);
}
.comm-em {
  text-align: right;
  color: var(--text-4);
  font-style: italic;
}
/* Numeric year columns aligned right */
.comm-table tbody td:nth-child(3),
.comm-table tbody td:nth-child(4),
.comm-table tbody td:nth-child(5) { text-align: right; }

.comm-table strong { color: var(--text); }

/* Bar visualisation in share column */
.comm-bar {
  position: relative;
  height: 14px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.comm-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--grad-accent);
  border-radius: 100px;
}
.comm-bar span {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  z-index: 1;
}

/* Footer rows */
.comm-table tfoot td {
  padding: 14px 14px;
  font-size: 13.5px;
  border-top: 1px solid var(--border-strong);
  text-align: right;
}
.comm-table tfoot tr.comm-subtotal td {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
}
.comm-table tfoot tr.comm-subtotal td:first-child { text-align: left; }
.comm-table tfoot tr.comm-subtotal td.comm-total { color: var(--accent-on-light); }
.comm-table tfoot tr.comm-gst td { color: var(--text-3); border-top: none; }
.comm-table tfoot tr.comm-gst td:first-child { text-align: left; }
.comm-table tfoot tr.comm-grand td {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
  font-size: 15px;
  border-top: 2px solid var(--accent);
  border-bottom: none;
}
.comm-table tfoot tr.comm-grand td:first-child { text-align: left; }
.comm-table tfoot tr.comm-grand td.comm-total { color: var(--accent-on-light); font-size: 17px; }

/* Fabric breakdown sections */
.comm-fabric-section { margin-bottom: 32px; }
.comm-fabric-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: var(--surface-2);
  border-left: 3px solid var(--text-3);
  border-radius: 0 4px 4px 0;
  color: var(--text);
  margin-bottom: 14px;
}
.comm-fabric-tag-native  { border-left-color: var(--accent); color: var(--accent-on-light); background: var(--accent-soft); }
.comm-fabric-tag-partner { border-left-color: var(--text-3); }

.comm-table-fabric .comm-section-subtotal td {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 14px;
  border-bottom: none;
}
.comm-table-fabric .comm-section-subtotal td:first-child { text-align: left; }

.comm-fabric-totals {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 12px;
}
.comm-fabric-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-2);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.comm-fabric-totals-row + .comm-fabric-totals-row { border-top: 1px solid var(--border); }
.comm-fabric-totals-row span:last-child { font-weight: 600; color: var(--text); }
.comm-fabric-totals-grand {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  padding-top: 16px !important;
  margin-top: 4px;
  border-top: 2px solid var(--accent) !important;
}
.comm-fabric-totals-grand span:last-child { color: var(--accent-on-light); font-size: 18px; }
.comm-fabric-totals-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
  font-style: italic;
}

/* 5-year trajectory block (Section 10.A) */
.comm-trajectory {
  margin-top: 24px;
  padding: 24px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.comm-trajectory-head { margin-bottom: 18px; }
.comm-trajectory-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 8px;
}
.comm-trajectory-lede {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 84ch;
}
.comm-table-trajectory {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.comm-table-trajectory td,
.comm-table-trajectory th { padding: 11px 14px; }
.comm-trajectory-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.comm-trajectory-note sup { font-size: 10px; }

/* Services grid */
.comm-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px) { .comm-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .comm-services-grid { grid-template-columns: 1fr; } }

.comm-service-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.comm-service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.comm-service-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 10px;
}
.comm-service-cost {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.comm-service-when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.comm-service-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.comm-service-card-sum {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface-2) 100%);
  border-color: var(--accent-line);
}
.comm-service-card-sum:hover { transform: none; }

/* Payment milestones */
.comm-payments-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px 28px;
}
.comm-payment-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comm-payment-row:last-child { border-bottom: none; }
.comm-payment-key {
  color: var(--text-2);
  flex: 1;
}
.comm-payment-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-on-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.comm-payment-row-divider { border-top: 2px solid var(--accent); padding-top: 18px; }

/* Inclusions / Exclusions split */
.comm-incl-excl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 820px) { .comm-incl-excl { grid-template-columns: 1fr; } }

.comm-incl, .comm-excl {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.comm-incl { border-left: 3px solid var(--success); }
.comm-excl { border-left: 3px solid var(--text-4); }
.comm-incl-head, .comm-excl-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.comm-incl-head { color: var(--success); }
.comm-excl-head { color: var(--text-3); }
.comm-incl ul, .comm-excl ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comm-incl li, .comm-excl li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.comm-incl li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--success);
  font-weight: 700;
}
.comm-excl li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--text-4);
  font-weight: 700;
}
.comm-incl strong, .comm-excl strong { color: var(--text); }

/* Notes block at bottom */
.comm-notes {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
}
.comm-note-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.comm-note-row + .comm-note-row { border-top: 1px solid var(--border); }
.comm-note-row span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  min-width: 130px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   BACK TO TOP FAB
════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
   STICKY TOC RAIL, desktop right-edge reading-progress dots
   Visible at >=1280px viewport. Each dot has an SVG arc for scroll
   progress within its section, fills as the reader passes each section,
   and shows a tooltip on hover. Hidden in print.
════════════════════════════════════════════════════════════════════════ */

.toc-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(31, 75, 255, 0.05);
  z-index: 90;
}
.toc-dot {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.18s ease, transform 0.18s ease;
}
.toc-dot:hover {
  color: var(--accent);
  transform: scale(1.08);
}
.toc-arc-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toc-arc {
  width: 24px;
  height: 24px;
  display: block;
  transform: rotate(-90deg);
}
.toc-arc-bg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.30;
}
.toc-arc-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.15s ease-out;
}
.toc-dot-core {
  position: absolute;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
}
.toc-dot.is-passed {
  color: var(--accent);
  opacity: 0.55;
}
.toc-dot.is-passed .toc-dot-core { background: var(--accent); }
.toc-dot.is-passed .toc-arc-fill { stroke-dashoffset: 0; }
.toc-dot.is-active {
  color: var(--accent);
}
.toc-dot.is-active .toc-dot-core {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toc-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: var(--primary);
  padding: 6px 11px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.30);
}
.toc-label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--primary);
}
.toc-dot:hover .toc-label,
.toc-dot:focus-visible .toc-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.toc-dot:focus-visible { outline: none; }
.toc-dot:focus-visible .toc-arc-wrap {
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: 50%;
}

@media (max-width: 1280px) {
  .toc-rail { display: none; }
}
@media print {
  .toc-rail { display: none !important; }
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s, background 0.2s;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(31, 75, 255, 0.12);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.back-to-top svg { color: var(--primary); }

/* ════════════════════════════════════════════════════════════════════════
   HERO TAKEAWAYS PANEL
════════════════════════════════════════════════════════════════════════ */

.hero-takeaways {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.hero-takeaways-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.hero-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}
@media (max-width: 720px) { .hero-takeaways-grid { grid-template-columns: 1fr; } }

.hero-takeaway {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hero-takeaway-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding: 4px 8px;
  background: var(--primary-soft);
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}
.hero-takeaway-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ════════════════════════════════════════════════════════════════════════
   SECTION RHYTHM, alternating subtle BG tones
════════════════════════════════════════════════════════════════════════ */

.app .section-band {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.4) 50%, rgba(11, 18, 32, 0) 100%);
}
/* Apply alternating tints by section id without disturbing layout */
#risks, #coverage, #engagement, #compliance, #why {
  position: relative;
}
#risks::after, #coverage::after, #engagement::after, #compliance::after, #why::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(31, 75, 255, 0.025), transparent 60%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   PRIOR-ASSESSMENT CONTEXT BLOCK  (Context section)
════════════════════════════════════════════════════════════════════════ */

.prior-assess {
  margin-top: 28px;
  padding: 30px 32px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  position: relative;
}
.prior-assess-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 10px;
}
.prior-assess-head {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.prior-assess-lede {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 78ch;
  margin-bottom: 22px;
}
.prior-assess-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
@media (max-width: 920px) { .prior-assess-stats { grid-template-columns: repeat(2, 1fr); } }
.prior-assess-findings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.prior-assess-findings li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.prior-assess-findings li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: 10px;
}
.prior-assess-findings strong { color: var(--text); font-weight: 600; }
.prior-assess-close {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════════
   RISK · OBSERVED-AT-TKIL LINE  (per-card data-grounding)
════════════════════════════════════════════════════════════════════════ */

.risk-observed {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.risk-observed-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  font-weight: 600;
  margin-right: 8px;
  white-space: nowrap;
}
.risk-observed-value { color: var(--text); }

/* ════════════════════════════════════════════════════════════════════════
   SCENARIO · BASELINE CALIBRATION BLOCK
════════════════════════════════════════════════════════════════════════ */

.scenario-baseline {
  margin: 20px 0 32px;
  padding: 22px 26px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.scenario-baseline-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 14px;
}
.scenario-baseline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 920px) { .scenario-baseline-stats { grid-template-columns: repeat(2, 1fr); } }
.scenario-baseline-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.scenario-baseline-stat strong {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1;
}
.scenario-baseline-stat span {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.scenario-baseline-prose {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 80ch;
}

/* ════════════════════════════════════════════════════════════════════════
   FABRIC · MAPPING TO MEASURED GAPS
════════════════════════════════════════════════════════════════════════ */

.fabric-mapping {
  margin-top: 24px;
  padding: 26px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.fabric-mapping-head { margin-bottom: 18px; }
.fabric-mapping-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 6px;
}
.fabric-mapping-lede {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.fabric-mapping-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fabric-mapping-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
@media (max-width: 768px) { .fabric-mapping-row { grid-template-columns: 1fr; gap: 6px; } }
.fabric-mapping-product {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.fabric-mapping-gap {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════════
   DELIVERABLES · MEASURABLE TARGETS TABLE
════════════════════════════════════════════════════════════════════════ */

.deliv-targets {
  margin-top: 32px;
  padding: 30px 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.deliv-targets-head { margin-bottom: 22px; }
.deliv-targets-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 8px;
}
.deliv-targets-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.deliv-targets-lede {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 80ch;
}
.deliv-targets-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.deliv-target-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr 1.3fr;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.deliv-target-row:last-child { border-bottom: 0; }
.deliv-target-row > div {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.deliv-target-row-head {
  background: var(--surface-3);
  padding: 11px 16px;
}
.deliv-target-row-head > div {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.deliv-target-name { color: var(--text) !important; font-weight: 500; }
.deliv-target-y1, .deliv-target-y2 { color: var(--text) !important; }
.deliv-target-base { color: var(--text-3) !important; font-variant-numeric: tabular-nums; }
@media (max-width: 920px) {
  .deliv-target-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .deliv-target-row-head { display: none; }
  .deliv-target-name { font-size: 14px; margin-bottom: 4px; }
  .deliv-target-base::before { content: 'Baseline: '; color: var(--text-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
  .deliv-target-y1::before { content: 'Year 1: '; color: var(--text-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
  .deliv-target-y2::before { content: 'Year 2 to 5 sustained: '; color: var(--text-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
}
.deliv-targets-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  max-width: 90ch;
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════════════════
   PRINT
════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
   PDF COVER PAGE, print-only, fills the first page
════════════════════════════════════════════════════════════════════════ */

.pdf-cover { display: none; }

@media print {
  @page { size: A4; margin: 16mm 14mm; }

  /* Cover page, only thing visible on the first PDF page. */
  .pdf-cover {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    min-height: 250mm;
    page-break-after: always;
    page-break-inside: avoid;
    color: var(--text);
    background: #ffffff;
    padding: 8mm 0;
  }
  .pdf-cover-top { display: flex; flex-direction: column; gap: 14mm; }
  .pdf-cover-cobrand {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .pdf-cover-cv-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .pdf-cover-cv-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text);
  }
  .pdf-cover-x {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-4);
    line-height: 1;
  }
  .pdf-cover-tkil-pill { padding: 12px 22px; }
  .pdf-cover-tkil-pill .tkil-wordmark-main { font-size: 30px; letter-spacing: 0.20em; }
  .pdf-cover-tkil-pill .tkil-wordmark-sub  { font-size: 12px; letter-spacing: 0.40em; margin-top: 5px; }

  .pdf-cover-classification {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--accent-on-light);
    padding-left: 14px;
    border-left: 2px solid var(--accent);
  }

  .pdf-cover-middle { padding: 0; }
  .pdf-cover-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0 0 14mm;
    max-width: 22ch;
  }
  .pdf-cover-subtitle {
    font-size: 18px;
    line-height: 1.45;
    color: var(--text-2);
    max-width: 30ch;
    font-weight: 400;
  }

  .pdf-cover-bottom { display: flex; flex-direction: column; gap: 10mm; }
  .pdf-cover-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8mm 0 0;
    border-top: 1px solid var(--border-strong);
  }
  .pdf-cover-meta-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 13px;
    color: var(--text);
  }
  .pdf-cover-meta-key {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    min-width: 140px;
    flex-shrink: 0;
  }
  .pdf-cover-foot {
    padding-top: 6mm;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.6;
    color: var(--text-3);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Base palette is already light, minimal overrides needed */
  .auth-gate, .nav, .bg-mesh, .nav-actions, .matrix-controls, .nav-mobile-toggle,
  .scroll-progress, .back-to-top { display: none !important; }
  .app { opacity: 1 !important; }
  body { background: #FFFFFF; }
  .section { padding: 24px 0; max-width: 100%; scroll-margin-top: 0; page-break-before: always; }
  .section + .section::before { display: none !important; }
  #context, #overview { page-break-before: auto; } /* keep first content sections after hero on continuous flow */
  .hero { padding: 20px 0 24px; page-break-after: avoid; }
  .hero-title { font-size: 28px !important; line-height: 1.2 !important; }
  .hero-lede { font-size: 13px !important; }
  .hero-stats { gap: 12px !important; }
  .hero-stat-value { font-size: 26px !important; }
  .hero-takeaways { padding: 16px 18px !important; margin-top: 20px !important; page-break-inside: avoid; }
  .matrix-row, .principle, .fabric-card, .why-card, .phase, .engage-col, .deliv-card, .cta-card, .arch-diagram, .tkil-profile-card, .tkil-verticals, .tkil-implications, .tkil-vertical, .risk-card, .quickwins, .quickwin, .compliance-card, .compliance-note, .footprint-map-wrap, .footprint-loc, .footprint-numbers, .footprint-customers, .footprint-stat, .footprint-tl-event, .scenario-setup, .scenario-step, .scenario-summary, .comm-headline-stat, .comm-table-wrap, .comm-service-card, .comm-payments-grid, .comm-incl, .comm-excl, .comm-notes, .comm-fabric-totals, .comm-thesis, .comm-thesis-panel {
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .comm-service-card:hover { transform: none !important; }
  .comm-services-grid { grid-template-columns: 1fr 1fr !important; }
  .comm-headline { grid-template-columns: 1fr 1fr !important; }
  .comm-table-wrap { overflow: visible !important; }
  .comm-table tbody tr:hover { background: transparent !important; }
  /* Thesis: dark Panel D needs to print readably (white text on dark) */
  .comm-thesis-panel-d { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .comm-thesis { page-break-inside: auto; }
  .comm-thesis-grid { grid-template-columns: 1fr !important; }
  .comm-thesis-panel-d { grid-column: auto !important; }
  .footprint-locations { grid-template-columns: 1fr 1fr !important; }
  .footprint-numbers-grid { grid-template-columns: 1fr 1fr 1fr 1fr !important; gap: 10px !important; }
  .footprint-timeline-track { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  .footprint-customer-tags span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cta-card { background: #FFFFFF !important; color: #0F172A !important; border: 1px solid #CBD5E0; }
  .cta-card .cta-title, .cta-card .cta-lede, .cta-card .cta-eyebrow,
  .cta-card .cta-item-key, .cta-card .cta-item-val,
  .cta-card .cta-contact-key, .cta-card .cta-contact-val,
  .cta-card .mono { color: #0F172A !important; }
  .cta-card .cta-eyebrow, .cta-card .cta-item-key, .cta-card .cta-contact-key { color: #1f4bff !important; }
  .cta-card .cta-item { background: #F5F7FA !important; border-color: #E5E9EF !important; }
  .section-head { page-break-after: avoid; margin-bottom: 24px; }
  .matrix-row { display: grid !important; }
  .matrix-detail { display: block !important; }
  /* Always show all expandable details in print regardless of card state.
     Force grid-template-rows to 1fr to override the default collapsed
     state. Hide the expand buttons and fabric summary since neither apply
     to a printed document. */
  .fabric-detail,
  .risk-detail,
  .compliance-detail {
    grid-template-rows: 1fr !important;
    transition: none !important;
  }
  .fabric-detail-inner,
  .risk-detail-inner,
  .compliance-detail-inner {
    animation: none !important;
  }
  .fabric-summary { display: none !important; }
  .fabric-card.is-expanded { grid-column: auto !important; }
  .fabric-expand-btn,
  .risk-expand-btn,
  .compliance-expand-btn { display: none !important; }
  .fabric-grid { grid-template-columns: 1fr 1fr !important; }
  .fabric-detail-grid { grid-template-columns: 1fr !important; }
  .fabric-card { padding: 18px 20px !important; }
  .fabric-detail-inner { font-size: 11px; gap: 12px !important; }
  .fabric-card-head { margin-bottom: 10px !important; }
  /* Density toggle never appears in PDFs. */
  .nav-zoom { display: none !important; }
  /* No card hover lifts in print */
  .fabric-card:hover, .why-card:hover, .principle:hover, .deliv-card:hover, .risk-card:hover, .compliance-card:hover { transform: none !important; }
  /* Compliance + risks → 2 cols max for readable print */
  .risks-grid, .compliance-grid { grid-template-columns: 1fr 1fr !important; }
  .quickwins-grid { grid-template-columns: 1fr 1fr !important; }
  a { color: #1666d4; text-decoration: none; }
  .footer { page-break-before: always; padding: 24px 0; }
}
