/* ============================================================================
   ECHO-STATE COMPENDIUM — Style system
   Mapped 1:1 from DESIGN.md (General Intelligence Company style reference)
   Theme: light · warm Cream canvas · serif display · single blue accent
============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Colors — DESIGN.md tokens */
  --color-hudson-blue: #0081c0;
  --color-slate-cyan: #41a1cf;
  --color-graphite-night: #282834;
  --color-ink: #171717;
  --color-carbon: #2c2c2c;
  --color-iron: #444141;
  --color-steel: #646464;
  --color-fog: #b4b8b4;
  --color-ash: #a5afaf;
  --color-mist: #cfd3cf;
  --color-sage: #dee2de;
  --color-cream: #fefffc;
  --color-linen: #f9faf7;
  --color-paper: #ffffff;
  --color-obsidian: #1f1f29;

  /* Fonts — ppmondwest→Lora (serif display), af→Inter (body/UI) */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;

  /* Type scale */
  --text-caption: 13px;
  --text-body-sm: 15px;
  --text-subheading: 18px;
  --text-heading: 40px;
  --text-heading-lg: 48px;
  --text-display: 54px;

  /* Spacing */
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-80: 80px;

  /* Layout */
  --page-max-width: 1200px;

  /* Radius */
  --radius-buttons: 4px;
  --radius-cards: 12px;
  --radius-elevated: 16px;
  --radius-hero: 24px;
  --radius-nav: 50px;

  /* Shadows */
  --shadow-sm: rgba(0, 0, 0, 0.15) 0px 2px 6px 0px;
  --shadow-subtle: rgb(222, 226, 222) 0px 0px 0px 1px;
  --shadow-subtle-2: rgba(0, 0, 0, 0.08) 0px 1px 1px 0px,
    rgba(0, 0, 0, 0.08) 0px 4px 5px 0px;
  --shadow-subtle-3: rgba(0, 0, 0, 0.06) 0px 2px 2px 0px,
    rgba(0, 0, 0, 0.04) 0px 0px 0px 5px;
  --shadow-sm-2: rgba(0, 0, 0, 0.05) 0px 1px 8px 0px;
}

/* ---------------------------------------------------------------- Base ---- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  letter-spacing: -0.0120em;
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

/* Offset anchored sections below the fixed floating nav */
section[id],
header[id] {
  scroll-margin-top: 96px;
}

/* DESIGN.md layout: centered ~1200px container */
.esc-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Editorial eyebrow / section label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel);
}

/* Inline accent link — the only chromatic color in the system */
.accent-link {
  color: var(--color-hudson-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ------------------------------------------------------------ Sections ---- */
.section {
  padding-block: var(--spacing-80);
}
.section--linen {
  background: var(--color-linen);
}
.section--paper {
  background: var(--color-paper);
}
/* Hairline divider between bands */
.section + .section,
.divider-top {
  border-top: 1px solid var(--color-sage);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--spacing-48);
}
.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, var(--text-heading));
}
.section-lead {
  margin-top: 16px;
  color: var(--color-steel);
  font-size: var(--text-subheading);
  line-height: 1.5;
  max-width: 64ch;
}

/* ----------------------------------------------- Floating pill nav -------- */
.nav-island {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(1100px, calc(100% - 32px));
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-graphite-night);
  border-radius: var(--radius-nav);
  box-shadow: var(--shadow-sm);
  padding: 8px 8px 8px 18px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.nav-brand img {
  height: 26px;
  width: auto;
}
.nav-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-nav);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-body-sm);
  font-weight: 400;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-obsidian);
  color: #fff;
  font-size: var(--text-body-sm);
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-buttons);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover {
  background: #000;
  transform: translateY(-1px);
}
.nav-burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

/* ------------------------------------------------------- Buttons ---------- */
/* Primary: dark obsidian fill, 4px radius (no pill on content) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-obsidian);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-subheading);
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--color-obsidian);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Ghost: outlined slate cyan */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-hudson-blue);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--color-slate-cyan);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  background: var(--color-slate-cyan);
  color: #fff;
  transform: translateY(-2px);
}
/* Ghost on dark surfaces */
.btn-ghost--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost--light:hover {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}

/* Legacy aliases kept so existing markup still styles correctly */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-obsidian);
  color: #fff;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--color-obsidian);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.25s;
}
.btn:hover {
  background: #000;
  transform: translateY(-2px);
}
.btn2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-ink);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-buttons);
  border: 1px solid #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.25s, color 0.25s;
}
.btn2:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* --------------------------------------------------------- Cards ---------- */
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-elevated);
  box-shadow: var(--shadow-subtle-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-slate-cyan);
  box-shadow: var(--shadow-sm), var(--shadow-subtle-2);
}
.card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-ink);
}
.card-text {
  color: var(--color-steel);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

/* Aspect-ratio media wrappers (CLS-safe, DESIGN.md image constraints) */
.media {
  display: block;
  overflow: hidden;
  background: var(--color-mist);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ratio-16-9 {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-cards);
}
.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* ---------------------------------------------------------- Hero ---------- */
/* Full-bleed painted illustration + frosted text card (DESIGN.md signature) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: url(../img/hero-blood-moon-citadel.webp) center / cover no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 4, 6, 0.25) 0%,
    rgba(8, 4, 6, 0.1) 35%,
    rgba(8, 4, 6, 0.7) 100%
  );
}
.hero-inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 0 24px 72px;display: flex;
    justify-content: end;
}
/* Frosted glass text card, lower-left quadrant */
.frosted {
  max-width: 620px;
  background: rgba(18, 14, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-subtle-3);
  padding: 32px 36px;
  color: #fff;
}
.frosted .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}
.hero-emblem {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.frosted h1 {
  color: #fff;
  font-size: clamp(36px, 5.4vw, var(--text-display));
  font-weight: 500;
  margin: 14px 0 16px;
}
.frosted p {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-subheading);
  line-height: 1.5;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------- Gallery + lightbox --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-cards);
  overflow: hidden;
  border: 1px solid var(--color-sage);
  background: var(--color-mist);
  cursor: pointer;
  box-shadow: var(--shadow-subtle-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(10, 8, 12, 0.72) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item::after {
  content: "\f00e"; /* fa magnifying glass */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  font-size: 13px;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover figcaption,
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item:hover::after {
  transform: scale(1);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 8, 12, 0.88);
  backdrop-filter: blur(6px);
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: var(--radius-elevated);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-body-sm);
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

/* -------------------------------------------------- Editorial band -------- */
.feature-band {
  position: relative;
  overflow: hidden;
  background: var(--color-graphite-night);
  color: #fff;
  border-radius: var(--radius-hero);
}
.feature-band .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.feature-band h2 {
  color: #fff;
}
.feature-band p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------------- Newsletter ---------- */
.newsletter-card {
  background: var(--color-paper);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-subtle-2);
  padding: 48px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1 1 260px;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  padding: 13px 16px;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-buttons);
  background: var(--color-linen);
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--color-slate-cyan);
  box-shadow: 0 0 0 3px rgba(65, 161, 207, 0.18);
}

/* ------------------------------------------------------- Footer ----------- */
.site-footer {
  background: var(--color-graphite-night);
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}

/* ------------------------------------------------- Cookie consent --------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1500;
  width: min(720px, calc(100% - 32px));
  background: var(--color-paper);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-elevated);
  box-shadow: var(--shadow-sm), var(--shadow-subtle-2);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-bar .cookie-text {
  flex: 1 1 320px;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--color-steel);
}
.cookie-bar .cookie-text strong {
  color: var(--color-ink);
}
.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-bar.hide {
  display: none;
}

/* Cookie buttons — designed, not default */
.cookie-accept {
  background: var(--color-obsidian);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body-sm);
  padding: 10px 20px;
  border: 1px solid var(--color-obsidian);
  border-radius: var(--radius-buttons);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.cookie-accept:hover {
  background: #000;
  transform: translateY(-1px);
}
.cookie-decline {
  background: transparent;
  color: var(--color-iron);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body-sm);
  padding: 10px 18px;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-buttons);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.cookie-decline:hover {
  border-color: var(--color-iron);
  color: var(--color-ink);
  background: var(--color-linen);
}

/* About avatars */
.about-avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--color-sage);
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------- Responsive ----- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .section {
    padding-block: 56px;
  }
  .newsletter-card {
    padding: 28px;
  }
}
@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .frosted {
    padding: 24px;
  }
}

/* Mobile dropdown for pill nav */
.nav-mobile {
  display: none;
  margin-top: 8px;
  background: var(--color-graphite-night);
  border-radius: var(--radius-elevated);
  box-shadow: var(--shadow-sm);
  padding: 8px;
}
.nav-mobile.open {
  display: block;
}
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: var(--radius-buttons);
  font-size: var(--text-body-sm);
}
.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ----------------------------------------------- Layout utilities --------- */
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.gap-1 {
  gap: 4px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.gap-8 {
  gap: 32px;
}
.gap-10 {
  gap: 40px;
}
.mb-3 {
  margin-bottom: 12px;
}
.grid-cols-1 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:text-right {
    text-align: right;
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===================================================================
   ECHO-STATE — multi-page components
=================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-obsidian);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-buttons);
  z-index: 2000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------------- Inner page banners ---------------- */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 150px 0 64px;
}
.page-banner .esc-container {
  position: relative;
}
.page-banner h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, var(--text-display));
  margin: 10px 0 14px;
}
.page-banner p {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-subheading);
  max-width: 60ch;
}
.page-banner--slim {
  padding: 140px 0 52px;
  background: var(--color-graphite-night);
}
.article-banner {
  padding: 160px 0 72px;
}
.article-byline {
  margin-top: 14px !important;
  font-size: var(--text-body-sm) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb span[aria-current] {
  color: #fff;
  margin: 0;
}

/* ---------------- Ghost access link ---------------- */
.ghost-access {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-hudson-blue);
  text-decoration: none;
  transition: letter-spacing 0.25s, color 0.25s;
}
.ghost-access:hover {
  color: var(--color-ink);
  letter-spacing: 0.12em;
}

/* ---------------- Archive cards (home) ---------------- */
.archive-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.archive-thumb {
  position: relative;
  display: block;
  border-radius: 0;
}
.meta-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  background: rgba(31, 31, 41, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-buttons);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
}
.meta-badge-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.meta-badge-max {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.archive-body {
  padding: 20px 22px 24px;
}
.archive-studio {
  font-size: var(--text-caption);
  color: var(--color-steel);
  margin-bottom: 12px;
}

/* ---------------- Meta-Grid page ---------------- */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.metacard {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}
.metacard-thumb {
  border-radius: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  /* cancel the 1/1 aspect-ratio inherited from .ratio-1-1 so the thumb fills
     the fixed 220px column instead of deriving its width from the row height */
  aspect-ratio: auto;
}
.metacard-body {
  padding: 24px 26px;
}
.metacard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.metascore {
  flex: 0 0 auto;
  text-align: center;
  background: var(--color-obsidian);
  color: #fff;
  border-radius: var(--radius-elevated);
  padding: 10px 16px;
  min-width: 76px;
}
.metascore-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
.metascore-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------- Sub-metric bars ---------------- */
.submetrics {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.submetrics li {
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  align-items: center;
  gap: 10px;
}
.submetric-label {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-iron);
}
.submetric-track {
  height: 7px;
  background: var(--color-sage);
  border-radius: 999px;
  overflow: hidden;
}
.submetric-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-slate-cyan), var(--color-hudson-blue));
}
.submetric-val {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-ink);
  text-align: right;
}
.submetrics--dark .submetric-label {
  color: rgba(255, 255, 255, 0.72);
}
.submetrics--dark .submetric-track {
  background: rgba(255, 255, 255, 0.16);
}
.submetrics--dark .submetric-val {
  color: #fff;
}

/* ---------------- Article layout ---------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.article-lead {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--color-carbon);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-sage);
}
.article-section {
  margin-bottom: 36px;
}
.article-section h2 {
  font-size: 28px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-section h2 i {
  color: var(--color-hudson-blue);
  font-size: 20px;
}
.article-section p {
  color: var(--color-iron);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-sage);
}
.article-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}
.score-card {
  background: var(--color-graphite-night);
  color: #fff;
  border-radius: var(--radius-hero);
  padding: 26px;
  box-shadow: var(--shadow-subtle-2);
}
.score-card .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.score-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  margin: 8px 0 20px;
}
.score-big span {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.55);
}
.facts-card {
  background: var(--color-paper);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-elevated);
  padding: 24px 26px;
  box-shadow: var(--shadow-subtle-2);
}
.facts-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.facts-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}
.facts-card dt {
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-steel);
}
.facts-card dd {
  margin: 0;
  font-size: var(--text-body-sm);
  color: var(--color-ink);
  text-align: right;
}

/* ---------------- Contact ---------------- */
.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-subheading);
  color: var(--color-carbon);
}
.contact-list i {
  color: var(--color-hudson-blue);
  width: 22px;
  text-align: center;
}
.comms-form {
  display: grid;
  gap: 16px;
}
.comms-form label {
  display: grid;
  gap: 6px;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-iron);
}
.comms-form label span {
  color: var(--color-hudson-blue);
}
.comms-form input,
.comms-form textarea {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-ink);
  padding: 12px 14px;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-buttons);
  background: var(--color-linen);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comms-form input:focus,
.comms-form textarea:focus {
  border-color: var(--color-slate-cyan);
  box-shadow: 0 0 0 3px rgba(65, 161, 207, 0.18);
}
.comms-form textarea {
  resize: vertical;
}
.form-banner {
  padding: 12px 16px;
  border-radius: var(--radius-buttons);
  font-size: var(--text-body-sm);
  font-weight: 600;
  margin-bottom: 18px;
}
.form-banner--ok {
  background: rgba(0, 129, 192, 0.1);
  color: var(--color-hudson-blue);
  border: 1px solid rgba(0, 129, 192, 0.3);
}
.form-banner--err {
  background: rgba(176, 0, 32, 0.08);
  color: #b00020;
  border: 1px solid rgba(176, 0, 32, 0.28);
}

/* Comms form on the dark illustration background (light fields over dark art) */
.comms-card {
  position: relative;
  border-radius: var(--radius-hero);
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm), var(--shadow-subtle-2);
  background-color: #001220;
  background-image: linear-gradient(155deg, rgba(2, 12, 24, 0.74), rgba(2, 12, 24, 0.88)),
    url("/assets/img/contact-form-illustration.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.comms-card .comms-form label {
  color: rgba(255, 255, 255, 0.84);
}
.comms-card .comms-form label span {
  color: #8ea2ff;
}
.comms-card .comms-form input,
.comms-card .comms-form textarea {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-ink);
}
.comms-card .comms-form input::placeholder,
.comms-card .comms-form textarea::placeholder {
  color: rgba(20, 28, 38, 0.5);
}
.comms-card .comms-form input:focus,
.comms-card .comms-form textarea:focus {
  border-color: #8ea2ff;
  box-shadow: 0 0 0 3px rgba(113, 93, 242, 0.32);
}
.comms-card .card-text {
  color: rgba(255, 255, 255, 0.72);
}
.comms-card .card-text span {
  color: #8ea2ff;
}
@media (max-width: 560px) {
  .comms-card {
    padding: 24px;
  }
}

/* ---------------- Legal docs ---------------- */
.legal-doc {
  max-width: 760px;
}
.legal-doc h2 {
  font-size: 24px;
  margin: 30px 0 10px;
}
.legal-doc p {
  color: var(--color-iron);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-doc code {
  background: var(--color-linen);
  border: 1px solid var(--color-sage);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}
.legal-list {
  margin: 4px 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.legal-list li {
  color: var(--color-iron);
  font-size: 16px;
  line-height: 1.7;
}
.legal-list li strong {
  color: var(--color-ink);
}

/* ---------------- Footer (extended) ---------------- */
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: 56px 32px;
}
.footer-brand .footer-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 14px;
}
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.footer-brand p {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  max-width: 38ch;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 4px;
}
.footer-col a {
  font-size: var(--text-body-sm);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-base small {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-caption);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .metacard {
    grid-template-columns: 1fr;
  }
  .metacard-thumb {
    aspect-ratio: 16 / 9;
  }
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-banner {
    background-attachment: scroll;
  }
}
@media (max-width: 560px) {
  .article-aside {
    grid-template-columns: 1fr;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .submetrics li {
    grid-template-columns: 96px 1fr 28px;
  }
}
