/* ====================================================================
   Terra Vita Global — Institutional Design System v6
   Mirrors Terra Vita Hub v369 governance posture.
   Field arm aesthetic notes layered on a shared institutional spine.
   ==================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #0a2a43;
  --ink-deep: #051a2c;
  --ink-700: #0f3a5e;
  --ink-soft: rgba(10, 42, 67, 0.65);
  --ink-faint: rgba(10, 42, 67, 0.15);
  --paper: #f9f5e9;
  --paper-pure: #fefcf3;
  --paper-warm: #f1ead7;
  --cream: #fffdf6;
  --accent: #2d4a3e;          /* shared institutional accent */
  --accent-warm: #8b6b3f;     /* Global-only legacy brand brown, used sparingly */
  --rule: #0a2a43;
  --rule-soft: rgba(10, 42, 67, 0.15);
  --track: 0.18em;
  --container: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.039 0 0 0 0 0.165 0 0 0 0 0.263 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
}
::selection { background: var(--ink); color: var(--cream); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ink);
}
em, .tvg-italic { font-style: italic; font-weight: 400; color: var(--accent); }

/* Skip link */
.tvg-skip { position: absolute; left: -9999px; top: 0; }
.tvg-skip:focus {
  left: 8px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 10px 14px;
  font: 500 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
}

/* Layout primitives */
.tvg-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .tvg-container { padding: 0 32px; } }

.tvg-eyebrow {
  font: 500 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
.tvg-ord {
  font: 500 12px/1 "JetBrains Mono", monospace;
  letter-spacing: var(--track);
  color: var(--accent);
}
.tvg-meta-line { display: inline-block; height: 1px; width: 48px; background: rgba(10,42,67,0.3); }

/* CTAs */
.tvg-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--ink); color: var(--cream);
  font: 500 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  border: 1px solid var(--ink);
  box-shadow: 0 14px 30px -18px rgba(10, 42, 67, 0.45);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.tvg-cta-primary:hover {
  background: var(--ink-deep);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -16px rgba(10, 42, 67, 0.55);
}
.tvg-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--ink-faint);
  background: transparent;
  color: var(--ink);
  font: 500 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  transition: all 220ms var(--ease);
}
.tvg-cta-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }

/* Animated underline link */
.tvg-link {
  position: relative; display: inline-block;
  color: var(--ink); font-weight: 500;
  transition: color 200ms var(--ease);
}
.tvg-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(0);
  transition: transform 360ms var(--ease);
}
.tvg-link:hover::after { transform-origin: left; transform: scaleX(1); }
.tvg-link:hover { color: var(--accent); }

/* =========================================================
   HEADER
   ========================================================= */
.tvg-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(249, 245, 233, 0.72);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
/* Header gets a slightly wider container than body content so the institutional nav has room to breathe */
.tvg-header .tvg-container { max-width: 1360px; }
.tvg-header.is-scrolled {
  background: rgba(249, 245, 233, 0.95);
  border-bottom-color: var(--ink);
  box-shadow: 0 8px 24px -12px rgba(10, 42, 67, 0.18);
}
.tvg-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  transition: height 240ms var(--ease);
}
.tvg-header.is-scrolled .tvg-header-inner { height: 60px; }

.tvg-logo {
  display: inline-flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  margin-right: auto; /* pushes nav and actions to the right */
}
.tvg-logo-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  transition: transform 220ms var(--ease);
}
.tvg-logo:hover .tvg-logo-mark { transform: rotate(-4deg); }
.tvg-logo-mark svg { width: 20px; height: 20px; }
.tvg-logo-name {
  font-family: "Fraunces", serif;
  font-weight: 500; font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.tvg-logo-tag {
  display: none;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid rgba(10, 42, 67, 0.2);
  font: 500 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (min-width: 1700px) { .tvg-logo-tag { display: inline-block; } }

.tvg-nav-primary {
  display: none; align-items: center; gap: 20px;
  flex: 0 1 auto;
}
@media (min-width: 1240px) { .tvg-nav-primary { display: flex; } }
@media (min-width: 1360px) { .tvg-nav-primary { gap: 24px; } }
.tvg-nav-primary a {
  position: relative;
  font-size: 12.5px; color: var(--ink);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
@media (min-width: 1360px) { .tvg-nav-primary a { font-size: 13px; } }
.tvg-nav-primary a:hover,
.tvg-nav-primary a.is-active { color: var(--accent); }
.tvg-nav-primary a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--accent);
}

.tvg-nav-actions {
  display: none; align-items: center; gap: 14px; flex-shrink: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(10, 42, 67, 0.15);
}
@media (min-width: 1240px) { .tvg-nav-actions { display: flex; } }
.tvg-nav-actions .tvg-link-text {
  font-size: 12.5px; color: var(--ink); white-space: nowrap;
  transition: color 200ms var(--ease);
}
@media (min-width: 1360px) { .tvg-nav-actions .tvg-link-text { font-size: 13px; } }
.tvg-nav-actions .tvg-link-text:hover { color: var(--accent); }
/* Hub link only shows on wide screens — kept in footer + mobile-nav at smaller sizes */
.tvg-nav-actions .tvg-link-external { display: none; }
@media (min-width: 1440px) { .tvg-nav-actions .tvg-link-external { display: inline-flex; align-items: center; gap: 4px; } }

.tvg-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(10, 42, 67, 0.4);
  background: transparent; padding: 0;
  flex: 0 0 auto;
}
.tvg-burger::before {
  content: ""; width: 16px; height: 1px; background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}
@media (min-width: 1240px) { .tvg-burger { display: none; } }

.tvg-mobile-nav {
  display: none;
  border-top: 1px solid var(--ink);
  background: var(--paper-pure);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.tvg-mobile-nav.is-open { display: block; }
.tvg-mobile-nav-section { padding: 18px 24px; }
.tvg-mobile-nav-section + .tvg-mobile-nav-section { border-top: 1px solid var(--rule-soft); }
.tvg-mobile-nav-section p.tvg-eyebrow { margin-bottom: 12px; }
.tvg-mobile-nav-section ul { display: grid; gap: 0; }
.tvg-mobile-nav-section ul li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.tvg-mobile-nav-section ul li:last-child a { border-bottom: 0; }
.tvg-mobile-nav-section ul li a span:last-child {
  font: 500 10px/1 "JetBrains Mono", monospace;
  color: rgba(10, 42, 67, 0.4);
}
.tvg-mobile-nav-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

@media (max-width: 1023px) {
  .tvg-header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
}
@media (max-width: 560px) {
  .tvg-logo-name { font-size: 17px; }
  .tvg-header-inner { height: 64px; }
}

/* =========================================================
   HERO — Authority Front Door
   ========================================================= */
.tvg-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 1024px) { .tvg-hero { padding: 104px 0 80px; } }

.tvg-hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    linear-gradient(to right, var(--ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink) 1px, transparent 1px);
  background-size: 120px 120px;
}
.tvg-hero-glow {
  position: absolute; top: -180px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(45, 74, 62, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.tvg-hero-inner { position: relative; }
.tvg-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.tvg-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 920px;
  text-wrap: balance;
}

.tvg-hero-lead {
  display: grid; gap: 20px;
  margin-top: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .tvg-hero-lead { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 22px; }
}
.tvg-hero-lead > p {
  margin: 0;
  font-size: 17px; line-height: 1.55;
  color: rgba(10, 42, 67, 0.85);
  text-wrap: pretty;
}
.tvg-hero-boundary {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--ink-faint);
  background: rgba(255, 253, 246, 0.55);
  border-left: 3px solid var(--accent);
}
.tvg-hero-boundary p {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: rgba(10, 42, 67, 0.78);
}

.tvg-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 32px;
}

/* Optional moodboard panel — Global differentiator */
.tvg-hero-moodboard {
  display: none;
  margin-top: 48px;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}
@media (min-width: 900px) { .tvg-hero-moodboard { display: grid; } }
.tvg-hero-moodboard figure {
  margin: 0; aspect-ratio: 4/5; overflow: hidden;
  border: 1px solid var(--ink-faint);
}
.tvg-hero-moodboard figure:first-child { aspect-ratio: 5/6; }
.tvg-hero-moodboard img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease);
}
.tvg-hero-moodboard figure:hover img { transform: scale(1.04); }

/* Hero entry routes (twin card grid) */
.tvg-entry-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 48px;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 14px 30px -18px rgba(10, 42, 67, 0.28);
}
@media (min-width: 900px) { .tvg-entry-grid { grid-template-columns: repeat(3, 1fr); } }
.tvg-entry-card {
  padding: 28px 26px 32px;
  background: var(--paper-pure);
  display: flex; flex-direction: column;
}
.tvg-entry-card.warm { background: var(--paper-warm); }
.tvg-entry-card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.tvg-entry-card h3 { font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
.tvg-entry-card p {
  font-size: 14px; line-height: 1.6;
  color: rgba(10, 42, 67, 0.75);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.tvg-entry-card-cta { margin-top: auto; }
.tvg-entry-card-cta a {
  font: 500 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap 220ms var(--ease);
}
.tvg-entry-card-cta a:hover { gap: 12px; }

/* =========================================================
   Section primitives
   ========================================================= */
.tvg-section {
  position: relative;
  padding: 64px 0 72px;
  border-top: 1px solid var(--rule-soft);
}
@media (min-width: 1024px) { .tvg-section { padding: 88px 0 96px; } }
.tvg-section-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.tvg-section h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  max-width: 740px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.tvg-section-lead {
  max-width: 680px;
  font-size: 16px; line-height: 1.6;
  color: rgba(10, 42, 67, 0.78);
  text-wrap: pretty;
}

/* =========================================================
   Workstream grid (3 columns institutional)
   ========================================================= */
.tvg-work-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 40px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (min-width: 900px) { .tvg-work-grid { grid-template-columns: repeat(3, 1fr); } }
.tvg-work-card {
  padding: 30px 28px 34px;
  background: var(--paper-pure);
  transition: background 200ms var(--ease);
  display: flex; flex-direction: column;
}
.tvg-work-card:hover { background: var(--paper-warm); }
.tvg-work-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.tvg-work-card h3 { font-size: 22px; line-height: 1.18; margin-bottom: 12px; }
.tvg-work-card p {
  font-size: 14px; line-height: 1.6;
  color: rgba(10, 42, 67, 0.75);
  margin-bottom: 20px;
}
.tvg-work-card ul { margin: 0 0 22px; display: grid; gap: 8px; }
.tvg-work-card li {
  font-size: 13px; line-height: 1.5;
  color: rgba(10, 42, 67, 0.72);
  padding-left: 14px;
  position: relative;
}
.tvg-work-card li::before {
  content: ""; position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px; background: var(--accent);
}
.tvg-work-card-foot { margin-top: auto; }

/* =========================================================
   Public ↔ Protected discipline line
   ========================================================= */
.tvg-boundary-line {
  display: flex; align-items: center; gap: 14px;
  margin: 32px 0 0;
  color: rgba(10, 42, 67, 0.7);
  font: 500 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
}
.tvg-boundary-line::before,
.tvg-boundary-line::after {
  content: ""; height: 1px; background: var(--rule-soft); flex: 1;
}

.tvg-boundary-pair {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 32px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (min-width: 768px) { .tvg-boundary-pair { grid-template-columns: 1fr 1fr; } }
.tvg-boundary-cell {
  padding: 26px 26px 30px;
  background: var(--paper-pure);
}
.tvg-boundary-cell.protected { background: var(--paper-warm); }
.tvg-boundary-cell .tvg-eyebrow { margin-bottom: 10px; display: block; }
.tvg-boundary-cell h3 {
  font-size: 18px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.tvg-boundary-cell ul { margin: 0; display: grid; gap: 6px; }
.tvg-boundary-cell li {
  font-size: 13.5px; line-height: 1.55;
  color: rgba(10, 42, 67, 0.78);
  padding-left: 16px;
  position: relative;
}
.tvg-boundary-cell li::before {
  content: ""; position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--ink);
}

/* =========================================================
   Navy Band Section — Governance Alignment
   ========================================================= */
.tvg-band-navy {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 64px 0 72px;
}
@media (min-width: 1024px) { .tvg-band-navy { padding: 96px 0 104px; } }
.tvg-band-navy::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,253,246,0.05) 1px, transparent 1px);
  background-size: 120px 100%;
  opacity: 0.6;
  pointer-events: none;
}
.tvg-band-navy::after {
  content: ""; position: absolute; bottom: -160px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45, 74, 62, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
.tvg-band-navy h2 { color: var(--cream); }
.tvg-band-navy h2 em { color: rgba(255, 253, 246, 0.62); font-weight: 300; }
.tvg-band-navy .tvg-section-lead { color: rgba(255, 253, 246, 0.75); max-width: 640px; }
.tvg-band-navy .tvg-eyebrow { color: rgba(255, 253, 246, 0.62); }
.tvg-band-navy .tvg-ord { color: rgba(255, 253, 246, 0.55); }
.tvg-band-navy .tvg-meta-line { background: rgba(255, 253, 246, 0.3); }

.tvg-route-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 36px;
}
@media (min-width: 768px) { .tvg-route-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) { .tvg-route-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.tvg-route-card {
  display: block;
  padding: 24px 22px;
  background: rgba(5, 26, 44, 0.45);
  border: 1px solid rgba(255, 253, 246, 0.18);
  color: var(--cream);
  transition: background 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
}
.tvg-route-card:hover {
  background: rgba(5, 26, 44, 0.75);
  border-color: rgba(255, 253, 246, 0.5);
  transform: translateY(-2px);
}
.tvg-route-card .num {
  font: 500 12px/1 "JetBrains Mono", monospace;
  letter-spacing: var(--track);
  color: rgba(255, 253, 246, 0.55);
}
.tvg-route-card h3 {
  margin-top: 14px;
  font-size: 22px; line-height: 1.15;
  color: var(--cream);
}
.tvg-route-card p {
  margin-top: 8px;
  font-size: 13px; line-height: 1.55;
  color: rgba(255, 253, 246, 0.7);
}

.tvg-spine {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 28px;
  background: rgba(255, 253, 246, 0.16);
  border: 1px solid rgba(255, 253, 246, 0.22);
}
@media (min-width: 768px) { .tvg-spine { grid-template-columns: repeat(7, 1fr); } }
.tvg-spine-layer {
  padding: 18px 16px;
  background: rgba(5, 26, 44, 0.55);
}
.tvg-spine-layer .ord {
  font: 500 11px/1 "JetBrains Mono", monospace;
  letter-spacing: var(--track);
  color: rgba(255, 253, 246, 0.62);
}
.tvg-spine-layer h3 {
  margin-top: 12px;
  font-size: 15px; line-height: 1.2;
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
.tvg-spine-layer p {
  margin-top: 6px;
  font-size: 11.5px; line-height: 1.5;
  color: rgba(255, 253, 246, 0.65);
}

/* =========================================================
   Trust pillars / Posture grid
   ========================================================= */
.tvg-pillars {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 40px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (min-width: 768px) { .tvg-pillars { grid-template-columns: repeat(3, 1fr); } }
.tvg-pillars > div { padding: 26px 26px; background: var(--paper-pure); }
.tvg-pillars dt {
  margin-bottom: 8px;
  font: 500 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink-soft);
}
.tvg-pillars dd {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 20px; font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

/* =========================================================
   Two column
   ========================================================= */
.tvg-two-col {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-top: 32px;
  align-items: start;
}
@media (min-width: 900px) { .tvg-two-col { grid-template-columns: 1.3fr 1fr; gap: 36px; } }

.tvg-info-card {
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  padding: 24px 24px 22px;
}
.tvg-info-card .tvg-eyebrow { margin-bottom: 14px; display: block; }
.tvg-info-card h3 {
  font-size: 18px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.tvg-info-card ul { display: grid; gap: 14px; }
.tvg-info-card li { font-size: 13.5px; line-height: 1.55; color: rgba(10, 42, 67, 0.78); }
.tvg-info-card li strong { color: var(--ink); font-weight: 600; }
.tvg-info-card .small-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--ink-soft);
}

.tvg-prose p {
  font-size: 16px; line-height: 1.65;
  color: rgba(10, 42, 67, 0.85);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.tvg-prose p:last-child { margin-bottom: 0; }
.tvg-prose h3 {
  margin: 28px 0 10px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}

/* =========================================================
   Resource / Artefact cards
   ========================================================= */
.tvg-resource-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 32px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (min-width: 700px) { .tvg-resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tvg-resource-grid { grid-template-columns: repeat(3, 1fr); } }
.tvg-resource-grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .tvg-resource-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tvg-resource-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.tvg-resource-grid.cols-5 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .tvg-resource-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tvg-resource-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .tvg-resource-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }
.tvg-resource-card {
  padding: 24px 22px 24px;
  background: var(--paper-pure);
  display: flex; flex-direction: column;
  transition: background 200ms var(--ease);
}
.tvg-resource-card:hover { background: var(--paper-warm); }
.tvg-resource-card .tvg-eyebrow { margin-bottom: 10px; display: block; }
.tvg-resource-card h3 {
  font-size: 17px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 10px;
}
.tvg-resource-card p {
  font-size: 13.5px; line-height: 1.6;
  color: rgba(10, 42, 67, 0.75);
  margin-bottom: 18px;
}
.tvg-resource-availability {
  margin-top: auto;
  font: 500 11px/1.4 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.tvg-resource-availability a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.tvg-resource-availability.muted { color: var(--ink-soft); }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.tvg-page-hero {
  padding: 56px 0 36px;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
  overflow: hidden;
}
@media (min-width: 1024px) { .tvg-page-hero { padding: 80px 0 56px; } }
.tvg-page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image:
    linear-gradient(to right, var(--ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink) 1px, transparent 1px);
  background-size: 120px 120px;
}
.tvg-page-hero .tvg-container { position: relative; }
.tvg-page-hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  max-width: 860px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.tvg-page-hero .tvg-lead {
  margin-top: 20px;
  max-width: 720px;
  font-size: 17px; line-height: 1.55;
  color: rgba(10, 42, 67, 0.82);
  text-wrap: pretty;
}
.tvg-page-hero .tvg-hero-actions { margin-top: 26px; }

/* =========================================================
   Spine diagram (light variant for governance-alignment page)
   ========================================================= */
.tvg-spine-light {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 28px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (min-width: 768px) { .tvg-spine-light { grid-template-columns: repeat(7, 1fr); } }
.tvg-spine-light-layer {
  padding: 22px 18px;
  background: var(--paper-pure);
}
.tvg-spine-light-layer .ord {
  font: 500 11px/1 "JetBrains Mono", monospace;
  letter-spacing: var(--track);
  color: var(--accent);
}
.tvg-spine-light-layer h3 {
  margin-top: 14px;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
.tvg-spine-light-layer p {
  margin-top: 6px;
  font-size: 12px; line-height: 1.5;
  color: rgba(10, 42, 67, 0.72);
}

/* =========================================================
   Pub list (publications)
   ========================================================= */
.tvg-pub-list {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 32px;
}
.tvg-pub-card {
  padding: 24px 24px;
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  transition: background 200ms var(--ease);
}
@media (min-width: 768px) { .tvg-pub-card { grid-template-columns: 1fr auto; align-items: center; gap: 22px; } }
.tvg-pub-card:hover { background: var(--paper-warm); }
.tvg-pub-card .tvg-eyebrow { display: block; margin-bottom: 8px; }
.tvg-pub-card h3 {
  font-size: 17px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}
.tvg-pub-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   Contact list
   ========================================================= */
.tvg-contact-list { display: grid; gap: 14px; }
.tvg-contact-list li {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 600px) { .tvg-contact-list li { grid-template-columns: 220px 1fr; gap: 18px; align-items: center; } }
.tvg-contact-list li:last-child { border-bottom: 0; }
.tvg-contact-list .label {
  font: 500 11px/1.4 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink-soft);
}
.tvg-contact-list .value { font-size: 15px; color: var(--ink); }
.tvg-contact-list .value a { color: var(--ink); border-bottom: 1px solid var(--ink-faint); transition: border-color 200ms var(--ease); }
.tvg-contact-list .value a:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Authority boundary block (full-width)
   ========================================================= */
.tvg-authority-block {
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  border-left-width: 3px;
  border-left-color: var(--accent);
}
.tvg-authority-block .tvg-eyebrow { display: block; margin-bottom: 10px; }
.tvg-authority-block p {
  font-size: 14px; line-height: 1.6;
  color: rgba(10, 42, 67, 0.85);
  margin: 0 0 8px;
}
.tvg-authority-block p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 13px; }

/* =========================================================
   Footer
   ========================================================= */
.tvg-footer {
  margin-top: 0;
  padding: 56px 0 40px;
  background: var(--paper-pure);
  border-top: 1px solid var(--ink);
}
.tvg-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 1024px) {
  .tvg-footer-grid { grid-template-columns: 5fr 3fr 3fr 2fr; gap: 40px; }
}
.tvg-footer h2 {
  font-size: 22px; line-height: 1.18;
  max-width: 380px;
  margin-bottom: 14px;
}
.tvg-footer-lede { font-size: 13.5px; line-height: 1.6; color: rgba(10, 42, 67, 0.72); max-width: 460px; }
.tvg-footer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tvg-footer h3 {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.tvg-footer ul { display: grid; gap: 9px; }
.tvg-footer ul a { font-size: 13px; color: var(--ink); }
.tvg-footer ul a:hover { color: var(--accent); }
.tvg-footer address { font-style: normal; font-size: 13px; line-height: 1.6; color: rgba(10, 42, 67, 0.78); }
.tvg-footer address a { color: var(--ink); border-bottom: 1px solid var(--ink-faint); }

.tvg-footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
}
.tvg-footer-legal {
  display: flex; flex-wrap: wrap; gap: 22px;
  font: 500 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink-soft);
}
.tvg-footer-legal a { color: var(--ink-soft); transition: color 180ms var(--ease); }
.tvg-footer-legal a:hover { color: var(--ink); }
.tvg-footer-copy {
  font: 500 11px/1.5 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink-soft);
  text-align: right;
}
.tvg-footer-statement {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: 11.5px; line-height: 1.6;
  color: rgba(10, 42, 67, 0.55);
  max-width: 880px;
}

/* Sibling surface strip — Hub reference */
.tvg-footer-sibling {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--rule-soft);
  background: rgba(10, 42, 67, 0.03);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .tvg-footer-sibling { grid-template-columns: 1.4fr 1fr; gap: 32px; }
}
.tvg-footer-sibling-label .tvg-eyebrow { display: block; margin-bottom: 8px; }
.tvg-footer-sibling-label p {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 17px; line-height: 1.4; color: var(--ink);
  font-weight: 400; letter-spacing: -0.005em;
  margin: 0;
}
.tvg-footer-sibling-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: flex-start;
}
@media (min-width: 880px) {
  .tvg-footer-sibling-actions { justify-content: flex-end; }
}

/* External sibling link in header — softer accent */
.tvg-nav-actions .tvg-link-external {
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--ink-faint);
  padding-bottom: 2px;
}
.tvg-nav-actions .tvg-link-external:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================================
   Reveal animation
   ========================================================= */
.tvg-reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.tvg-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tvg-reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  body { background: #fff !important; background-image: none !important; color: #000 !important; }
  .tvg-header, .tvg-footer, .tvg-no-print { display: none !important; }
}


/* =========================================================
   v4/v5 reviewer route and Hub diagram bridge
   ========================================================= */
.tvg-route-section { background: linear-gradient(180deg, rgba(10,42,67,0.035), rgba(10,42,67,0)); }
.tvg-route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 30px;
}
@media (min-width: 760px) {
  .tvg-route-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tvg-route-step {
  position: relative;
  min-height: 210px;
  padding: 22px 20px 20px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-pure);
  box-shadow: 0 22px 48px rgba(10,42,67,0.055);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tvg-route-step::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -18px;
  width: 22px;
  height: 1px;
  background: rgba(10,42,67,0.24);
}
.tvg-route-step:last-child::after { display: none; }
@media (max-width: 759px) { .tvg-route-step::after { display: none; } }
.tvg-route-step.protected {
  background: var(--ink);
  color: var(--paper-pure);
  border-color: rgba(10,42,67,0.76);
}
.tvg-route-step.protected p,
.tvg-route-step.protected .tvg-route-num { color: rgba(249,245,233,0.74); }
.tvg-route-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.tvg-route-step h3 { margin-top: 22px; font-size: 21px; line-height: 1.16; }
.tvg-route-step p { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(10,42,67,0.72); }
.tvg-diagram-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 900px) {
  .tvg-diagram-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tvg-diagram-card {
  border: 1px solid var(--rule-soft);
  background: var(--paper-pure);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 22px 48px rgba(10,42,67,0.045);
}
.tvg-diagram-card.compact { min-height: 230px; }
.tvg-diagram-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  margin: -2px -2px 18px;
  padding: 12px;
  border: 1px solid rgba(10,42,67,0.08);
  background: rgba(10,42,67,0.025);
  overflow: hidden;
}
.tvg-diagram-thumb img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
.tvg-diagram-card h3 { font-size: 19px; line-height: 1.16; margin-top: 8px; }
.tvg-diagram-card p { font-size: 13px; line-height: 1.55; color: rgba(10,42,67,0.70); margin: 12px 0 18px; }
.tvg-diagram-card .tvg-link { margin-top: auto; }
.tvg-profile-diagram-note { margin-top: 28px; }


/* =========================================================
   v5 homepage compression and modular navigation refinements
   ========================================================= */
.tvg-home-compressed .tvg-resource-card p { color: var(--ink-soft); }
@media (min-width: 1240px) and (max-width: 1319px) {
  .tvg-nav-primary,
  .tvg-nav-actions { display: none; }
  .tvg-burger { display: inline-flex; }
}
@media (min-width: 1320px) {
  .tvg-nav-primary { display: flex; gap: 13px; }
  .tvg-nav-actions { display: flex; }
  .tvg-burger { display: none; }
  .tvg-nav-primary a { font-size: 12px; }
}
@media (min-width: 1500px) {
  .tvg-nav-primary { gap: 18px; }
  .tvg-nav-primary a { font-size: 12.5px; }
}
.tvg-route-step p,
.tvg-resource-card p,
.tvg-work-card p { max-width: 60ch; }

/* =========================================================
   v6 micro-legibility refinements
   ========================================================= */
.tvg-work-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.tvg-work-card-head .tvg-ord::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 10px;
  background: rgba(10, 42, 67, 0.22);
  vertical-align: -0.12em;
}


/* =========================================================
   v7 Hub & FieldTrace route integration
   ========================================================= */
.tvg-hub-fieldtrace-band .tvg-section-lead { max-width: 920px; }
.tvg-flow-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 900px) {
  .tvg-flow-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tvg-flow-strip article {
  position: relative;
  border: 1px solid var(--rule-soft);
  background: var(--paper-pure);
  padding: 22px;
  box-shadow: 0 22px 48px rgba(10,42,67,0.045);
  min-height: 190px;
}
.tvg-flow-strip article::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 18px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(10,42,67,0.42);
}
.tvg-flow-strip article:last-child::after { content: "✓"; }
.tvg-flow-strip h3 { margin-top: 18px; font-size: 21px; line-height: 1.16; }
.tvg-flow-strip p { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(10,42,67,0.72); }
.tvg-table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--rule-soft); background: var(--paper-pure); }
.tvg-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.tvg-table th,
.tvg-table td { padding: 16px 18px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.tvg-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); background: rgba(10,42,67,0.035); }
.tvg-table td { font-size: 13.5px; line-height: 1.55; color: rgba(10,42,67,0.76); }
.tvg-table tr:last-child td { border-bottom: 0; }
@media (min-width: 1320px) {
  .tvg-nav-primary { gap: 9px; }
  .tvg-nav-primary a { font-size: 11.6px; }
}
@media (min-width: 1500px) {
  .tvg-nav-primary { gap: 14px; }
  .tvg-nav-primary a { font-size: 12px; }
}
