/* ============================================================
   BRIDGE FORENSIC LOGIC — Design System
   
   A restrained, archival aesthetic inspired by national archives,
   scientific institutions, and university press publications.
   
   Color philosophy: deep charcoal, warm white, steel blue, gold
   Typography: Cormorant Garamond (display) + Source Sans 3 (body)
   
   All values use CSS custom properties for maintainability.
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------ */

:root {
  /* Type Scale — fluid, using clamp() */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.25rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6rem);

  /* Spacing — 4px base unit */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content Widths */
  --content-narrow: 640px;
  --content-default: 880px;
  --content-wide: 1200px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Font Families */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
}

/* ------------------------------------------------------------
   2. Color System — Light Mode (default)
   ------------------------------------------------------------ */

:root,
[data-theme="light"] {
  --color-bg: #f5f2ed;            /* warm white */
  --color-surface: #faf8f4;       /* slightly lighter warm white */
  --color-surface-2: #fdfbf7;
  --color-surface-offset: #ede9e2;
  --color-divider: #d8d3cb;
  --color-border: #c4bfb6;

  --color-text: #1a1a1a;          /* deep charcoal */
  --color-text-muted: #555350;
  --color-text-faint: #8a8680;
  --color-text-inverse: #f5f2ed;

  --color-primary: #2c4a6a;       /* steel blue */
  --color-primary-hover: #1e3a56;
  --color-primary-soft: #e8edf2;

  --color-gold: #b08d57;          /* subtle gold */
  --color-gold-hover: #9a7845;
  --color-gold-soft: #f0e8d8;

  --color-accent-rule: #b08d57;   /* gold rule lines */
}

/* ------------------------------------------------------------
   3. Color System — Dark Mode
   ------------------------------------------------------------ */

[data-theme="dark"] {
  --color-bg: #141517;            /* deep charcoal */
  --color-surface: #1a1c1e;
  --color-surface-2: #1e2022;
  --color-surface-offset: #18191b;
  --color-divider: #2a2c2e;
  --color-border: #383a3c;

  --color-text: #e2ddd5;          /* warm white text */
  --color-text-muted: #9a958e;
  --color-text-faint: #6a6660;
  --color-text-inverse: #1a1a1a;

  --color-primary: #7a9bc0;       /* lighter steel blue */
  --color-primary-hover: #9ab5d4;
  --color-primary-soft: #1e2832;

  --color-gold: #c8a878;          /* lighter gold */
  --color-gold-hover: #d8b888;
  --color-gold-soft: #2a2418;

  --color-accent-rule: #8a7550;
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141517;
    --color-surface: #1a1c1e;
    --color-surface-2: #1e2022;
    --color-surface-offset: #18191b;
    --color-divider: #2a2c2e;
    --color-border: #383a3c;
    --color-text: #e2ddd5;
    --color-text-muted: #9a958e;
    --color-text-faint: #6a6660;
    --color-text-inverse: #1a1a1a;
    --color-primary: #7a9bc0;
    --color-primary-hover: #9ab5d4;
    --color-primary-soft: #1e2832;
    --color-gold: #c8a878;
    --color-gold-hover: #d8b888;
    --color-gold-soft: #2a2418;
    --color-accent-rule: #8a7550;
  }
}

/* ------------------------------------------------------------
   4. Base Stylesheet (reset + defaults)
   ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition), color var(--transition);
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.2;
  font-weight: 500;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

::selection {
  background: rgba(176, 141, 87, 0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  z-index: 100;
  font-size: var(--text-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

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

/* ------------------------------------------------------------
   5. Layout Utilities
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section--tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

.section--offset {
  background: var(--color-surface);
}

/* ------------------------------------------------------------
   6. Typography Components
   ------------------------------------------------------------ */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.display {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display--hero {
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  font-weight: 300;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: var(--space-5);
}

.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.prose ul li {
  list-style: disc;
  margin-bottom: var(--space-2);
}

.prose ol li {
  list-style: decimal;
  margin-bottom: var(--space-2);
}

.prose blockquote {
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   7. Gold Rule Divider
   ------------------------------------------------------------ */

.rule {
  width: 48px;
  height: 1px;
  background: var(--color-accent-rule);
  border: none;
  margin-block: var(--space-6);
}

.rule--full {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

/* ------------------------------------------------------------
   8. Header / Navigation
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-text);
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.logo__text-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Desktop Nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-main__link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-main__link:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-main__link--active {
  color: var(--color-text);
  font-weight: 500;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown__item:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-dropdown__section-label {
  display: block;
  padding: var(--space-2) var(--space-3) var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-6);
  overflow-y: auto;
  z-index: 60;
}

.mobile-nav--open {
  display: block;
}

.mobile-nav__group {
  margin-bottom: var(--space-6);
}

.mobile-nav__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-text);
}

/* ------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------ */

.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
  margin-top: var(--space-32);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.site-footer__brand {
  max-width: 320px;
}

.site-footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.5;
}

.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.site-footer__col ul li {
  margin-bottom: var(--space-2);
}

.site-footer__col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-footer__col a:hover {
  color: var(--color-text);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.site-footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 400px;
}

.site-footer__ip {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 560px;
  line-height: 1.5;
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------
   10. Hero Section
   ------------------------------------------------------------ */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding-block: var(--space-24);
  position: relative;
}

.hero__content {
  max-width: 900px;
  padding-inline: var(--space-4);
}

.hero__statement {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-8);
}

.hero__statement em {
  font-style: italic;
  color: var(--color-gold);
}

.hero__sub {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   11. Page Header (interior pages)
   ------------------------------------------------------------ */

.page-header {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}

.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.page-header__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  font-weight: 300;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   12. Cards / Pathways
   ------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.card__link {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card__link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   13. Pathway Cards (homepage)
   ------------------------------------------------------------ */

.pathway {
  display: flex;
  flex-direction: column;
  padding: var(--space-10);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.pathway:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.pathway__number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.pathway__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.pathway__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.pathway__arrow {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
}

/* ------------------------------------------------------------
   14. Service List
   ------------------------------------------------------------ */

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-divider);
}

.service-item__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}

.service-item__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   15. Boundaries / Notice Box
   ------------------------------------------------------------ */

.notice {
  background: var(--color-surface-offset);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.notice__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.notice ul {
  padding-left: var(--space-5);
}

.notice ul li {
  list-style: disc;
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   16. Archive Index
   ------------------------------------------------------------ */

.archive-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}

.archive-entry {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.archive-entry:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.archive-entry__meta {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.archive-entry__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.archive-entry__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   17. Publication / Book Card
   ------------------------------------------------------------ */

.book-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: var(--space-6);
}

.book-card__cover {
  width: 180px;
  height: 270px;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-4);
}

.book-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.book-card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.book-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ------------------------------------------------------------
   18. Table of Contents / Sidebar
   ------------------------------------------------------------ */

.toc {
  position: sticky;
  top: var(--space-16);
  align-self: start;
}

.toc__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.toc ul li {
  margin-bottom: var(--space-1);
}

.toc ul li a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  padding: var(--space-1) 0;
}

.toc ul li a:hover {
  color: var(--color-text);
}

/* ------------------------------------------------------------
   19. Layer Badge / Section Identity
   ------------------------------------------------------------ */

.layer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
}

.layer-badge--narrowlight {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.layer-badge--archive {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

/* ------------------------------------------------------------
   20. Contact
   ------------------------------------------------------------ */

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact-info__item h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.contact-info__item p {
  font-size: var(--text-base);
  color: var(--color-text);
}

/* ------------------------------------------------------------
   21. FAQ / Accordion
   ------------------------------------------------------------ */

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__question {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-5) 0;
  color: var(--color-text);
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__answer {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   22. Two-Column Layout
   ------------------------------------------------------------ */

.two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-12);
  align-items: start;
}

/* ------------------------------------------------------------
   23. Placeholder / TODO
   ------------------------------------------------------------ */

.todo {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: monospace;
  background: var(--color-gold-soft);
  color: var(--color-gold-hover);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-gold);
}

/* ------------------------------------------------------------
   24. Breadcrumb
   ------------------------------------------------------------ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb__sep {
  color: var(--color-text-faint);
}

/* ------------------------------------------------------------
   25. Stat / Principle Grid
   ------------------------------------------------------------ */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.principle {
  padding: var(--space-6) 0;
}

.principle__number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.principle__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.principle__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   26. Responsive Breakpoints
   ------------------------------------------------------------ */

@media (max-width: 960px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    margin-bottom: var(--space-8);
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-block: var(--space-16);
  }

  .hero__statement {
    font-size: var(--text-xl);
    line-height: 1.25;
  }

  .hero__sub {
    font-size: var(--text-lg);
    line-height: 1.45;
  }

  .hero__desc {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 52ch;
  }

  .hero__content {
    padding-inline: var(--space-2);
  }

  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-card__cover {
    margin-inline: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .site-footer__ip {
    max-width: 100%;
  }

  .display {
    font-size: var(--text-xl);
  }

  .page-header__title {
    font-size: var(--text-xl);
  }

  .page-header__desc {
    font-size: var(--text-base);
    line-height: 1.6;
  }

  .prose {
    max-width: 100%;
  }

  .pathway {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .hero {
    padding-block: var(--space-12);
  }

  .hero__statement {
    font-size: var(--text-lg);
    line-height: 1.3;
  }

  .hero__sub {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero__desc {
    font-size: 1rem;
    max-width: 100%;
  }

  .section {
    padding-block: clamp(var(--space-8), 8vw, var(--space-16));
  }

  .prose h2 {
    font-size: var(--text-lg);
  }

  .prose h3 {
    font-size: var(--text-base);
  }

  .pathway {
    padding: var(--space-5);
  }

  .pathway__desc {
    font-size: var(--text-sm);
    line-height: 1.6;
  }
}

/* ------------------------------------------------------------
   27. Print Styles
   ------------------------------------------------------------ */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .mobile-nav,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ==========================================================================
   MOBILITY MARQUES
   Two independent in-universe manufacturers. Each marque owns its own tokens.
   Nothing here is shared between them except structural layout primitives, so
   the two brands never inherit each other's identity.
   ========================================================================== */

.marque {
  --mq-ink: #14181d;
  --mq-paper: #f2efe9;
  --mq-line: rgba(255, 255, 255, 0.16);
  --mq-accent: #b08d57;
  --mq-muted: rgba(242, 239, 233, 0.66);
}

/* --- Veridiam Aster Mobility: restrained, executive, ceremonial ---------- */
.marque--veridiam {
  --mq-ink: #101822;          /* deep executive navy */
  --mq-ink-2: #16202c;
  --mq-accent: #c2a36b;       /* warm ceremonial gold */
  --mq-muted: rgba(238, 234, 226, 0.62);
}

/* --- Northbridge Engineering: practical, expeditionary, systems-led ------ */
.marque--northbridge {
  --mq-ink: #23261f;          /* field olive-slate */
  --mq-ink-2: #2b2f26;
  --mq-accent: #c0b184;       /* muted field bronze — lightened from #9d8c62 for
                                 7.2:1 on the olive masthead, at parity with the
                                 Veridiam gold, while staying cooler and more
                                 khaki so the two marques stay distinguishable */
  --mq-muted: rgba(233, 231, 222, 0.62);
}

/* --- marque masthead ----------------------------------------------------- */
.marque__masthead {
  background: var(--mq-ink);
  color: #efece5;
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--mq-accent);
}
.marque__wordmark {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0;
  color: #f4f1ea;
}
.marque--veridiam .marque__wordmark { letter-spacing: 0.14em; font-weight: 500; }
.marque--northbridge .marque__wordmark { letter-spacing: 0.06em; font-weight: 600; }

.marque__sub {
  max-width: none;   /* base rule is p{max-width:72ch}; at 0.72rem that clamps to ~386px
                        and breaks centring on the Veridiam masthead */
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mq-accent);
  margin: var(--space-3) 0 0;
}
.marque__rule {
  width: 64px; height: 1px; background: var(--mq-accent);
  margin: var(--space-6) 0; border: 0; opacity: 0.9;
}
.marque--veridiam .marque__rule { margin-left: auto; margin-right: auto; }
.marque__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #e6e1d8;
  max-width: 46ch;
  margin: 0;
}
.marque--veridiam .marque__inner { text-align: center; }
/* letter-spacing adds a trailing space after the last glyph, which pulls centred
   text visually left; indent by the same amount to re-centre it optically */
.marque--veridiam .marque__wordmark { text-indent: 0.14em; }
.marque--veridiam .marque__sub { text-indent: 0.34em; }
.marque--veridiam .marque__motto { margin-inline: auto; }

/* --- vehicle records ----------------------------------------------------- */
.mq-vehicle {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-10);
  margin-top: var(--space-12);
}
.mq-vehicle:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

.mq-vehicle__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
.marque--veridiam .mq-vehicle__name { letter-spacing: 0.08em; font-weight: 500; }
.marque--northbridge .mq-vehicle__name { letter-spacing: 0.02em; font-weight: 600; }

.mq-vehicle__type {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-text-faint); display: block; margin-bottom: var(--space-4);
}
.mq-vehicle__line {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

/* plate figure */
.mq-plate { margin: var(--space-6) 0 0; }
.mq-plate img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-offset);
}
.mq-plate figcaption {
  font-size: 0.8rem; color: var(--color-text-faint);
  margin-top: var(--space-3); line-height: 1.5;
}
.mq-plate a.mq-plate__full {
  font-size: 0.8rem; font-weight: 600; color: var(--color-gold);
  text-decoration: none; border-bottom: 1px solid currentColor;
}

/* --- specification presentation: deliberately different per marque ------- */

/* Veridiam: quiet, generous, comfort-forward. No grid lines. */
.mq-appointments { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.mq-appointments li {
  padding: var(--space-3) 0;
  border-bottom: 1px dotted var(--color-divider);
  display: flex; justify-content: space-between; gap: var(--space-6);
  font-size: 0.95rem;
}
.mq-appointments li span:first-child {
  color: var(--color-text-muted);
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem;
  align-self: center;
}
.mq-appointments li span:last-child {
  font-family: var(--font-display); font-size: 1.05rem; text-align: right;
}

/* Northbridge: engineering data table, monospaced figures, ruled. */
.mq-specs {
  width: 100%; border-collapse: collapse; margin: var(--space-6) 0 0;
  font-size: 0.9rem;
}
.mq-specs caption {
  text-align: left; font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--color-text-faint);
  padding-bottom: var(--space-3);
}
.mq-specs th, .mq-specs td {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) var(--space-4);
  text-align: left; vertical-align: top;
}
.mq-specs th {
  font-weight: 600; width: 42%; color: var(--color-text-muted);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.mq-specs td {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}
.mq-specs tr:last-child th, .mq-specs tr:last-child td { border-bottom: 0; }

/* Northbridge trim/system chips */
.mq-trims { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.mq-trims li {
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- media ---------------------------------------------------------------- */
.mq-film { margin: var(--space-8) 0 0; }
.mq-film video {
  width: 100%; height: auto; display: block;
  background: #000;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.mq-film figcaption {
  font-size: 0.8rem; color: var(--color-text-faint);
  margin-top: var(--space-3); line-height: 1.55;
}

/* --- provenance / holding notes ------------------------------------------ */
.mq-note {
  border-left: 2px solid var(--color-gold);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-offset);
  font-size: 0.88rem; color: var(--color-text-muted);
  margin: var(--space-8) 0 0;
}


.mc-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--space-1);
}

.mc-card__note--provenance {
  font-style: italic;
  color: var(--color-text-faint);
  border-left-color: var(--color-border);
}

@media (max-width: 640px) {
  .mq-appointments li { flex-direction: column; gap: var(--space-1); }
  .mq-appointments li span:last-child { text-align: left; }
  .mq-specs th { width: auto; }
  .mq-specs th, .mq-specs td { display: block; }
  .mq-specs th { border-bottom: 0; padding-bottom: 0; }
}

/* ============================================================
   MATERIAL CULTURE GALLERY
   Gallery card layout for commercial products and brands.
   Uses existing design tokens — no new color or type variables.
   ============================================================ */

.mc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-5);
}

.mc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

a.mc-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.mc-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.mc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-divider);
}

.mc-card__image-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mc-card__category {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.mc-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.mc-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.mc-card__place {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  margin: 0;
}

.mc-card__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-3);
  margin-top: var(--space-2);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .mc-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---- Narrowlight Press tile ---- */
.nl-tile-section {
  padding: var(--space-12) var(--space-4);
  background:
    /* Amber glow warm left */
    radial-gradient(ellipse 60% 80% at 25% 50%,
      rgba(198, 152, 88, 0.12) 0%,
      rgba(198, 152, 88, 0.04) 35%,
      transparent 60%),
    /* Cool midnight depth right */
    radial-gradient(ellipse 40% 70% at 80% 40%,
      rgba(37, 49, 59, 0.35) 0%,
      transparent 55%),
    /* Warm/cool base gradient */
    linear-gradient(120deg,
      #221810 0%, #1e1810 25%, #1a1820 50%,
      #161820 75%, #121418 100%);
  border-top: 1px solid color-mix(in srgb, #c69858 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, #c69858 18%, transparent);
}

.nl-tile {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8);
  background:
    /* Amber glow center */
    radial-gradient(ellipse 60% 50% at 30% 50%,
      rgba(198, 152, 88, 0.08) 0%,
      transparent 70%),
    /* Warm gradient base */
    linear-gradient(160deg, #2e2416 0%, #2a2014 35%, #241a10 70%, #201810 100%);
  border: 1px solid color-mix(in srgb, #c69858 25%, #3a2e1c);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(198,152,88,0.08);
}

.nl-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, #c69858 40%, #3a2e1c);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 32px rgba(198,152,88,0.12), inset 0 1px 0 rgba(198,152,88,0.12);
}

.nl-tile__mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(198,152,88,0.20));
}

.nl-tile__content {
  flex: 1;
}

.nl-tile__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f0e0c0;
  margin: 0 0 var(--space-2);
}

.nl-tile__desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #c8b890;
  margin: 0 0 var(--space-3);
}

.nl-tile__cta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4a462;
  transition: color 0.3s ease;
}

.nl-tile:hover .nl-tile__cta {
  color: #d4a868;
}

@media (max-width: 640px) {
  .nl-tile-section {
    padding: var(--space-8) var(--space-3);
  }
  .nl-tile {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
    gap: var(--space-4);
  }
  .nl-tile__mark {
    width: 44px;
    height: 44px;
  }
  .nl-tile__title {
    font-size: 1.3rem;
  }
  .nl-tile__desc {
    font-size: 0.875rem;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .nl-tile-section {
  background:
    radial-gradient(ellipse 60% 80% at 25% 50%,
      rgba(198, 152, 88, 0.14) 0%,
      rgba(198, 152, 88, 0.04) 35%,
      transparent 60%),
    radial-gradient(ellipse 40% 70% at 80% 40%,
      rgba(37, 49, 59, 0.4) 0%,
      transparent 55%),
    linear-gradient(120deg,
      #1a1510 0%, #1e1810 25%, #1a1820 50%,
      #161820 75%, #121418 100%);
}
[data-theme="dark"] .nl-tile {
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%,
      rgba(198, 152, 88, 0.10) 0%,
      transparent 70%),
    linear-gradient(160deg, #2e2416 0%, #2a2014 35%, #241a10 70%, #201810 100%);
  border-color: color-mix(in srgb, #c69858 25%, #3a2e1c);
}
