/*
Theme Name: Ariel Innovations 2026 — Edge AI for HADR & Civil Training
Theme URI: https://ariel-innovations.ai
Author: Ariel Innovations
Author URI: https://ariel-innovations.ai
Description: Editorial-cinematic theme for Ariel Innovations, positioning the company around Human-Centric AI and Edge AI for Humanitarian Assistance, Disaster Response, and Civil Training. Built for CEATEC and CIAT Demo Day audiences across the US, Japan, and Taiwan. EN / Traditional Chinese / Japanese.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: All Rights Reserved
License URI: https://ariel-innovations.ai
Text Domain: ariel-2026
Tags: editorial, cinematic, multilingual, human-centric, edge-ai, hadr
*/

/* ==========================================================================
   Ariel Innovations — Design System v3
   --------------------------------------------------------------------------
   Tokens derived from the 2026 warm-editorial palette + B-Series tonal range.
   Steel/navy accents added for HADR/Civil-Training gravitas.
   Replace token values when the official style guide PDF is delivered.
   ========================================================================== */

:root {
  /* — Surfaces — */
  --bg:              #F5F0E8;   /* warm cream — primary surface */
  --bg-warm:         #EDE7DB;   /* deeper cream for secondary surfaces */
  --bg-card:         #FFFFFF;
  --bg-tint:         #F9F5EE;   /* faint cream for striped sections */
  --bg-dark:         #14171C;   /* near-black with cool undertone for HADR sections */
  --bg-dark-card:    #1C2026;
  --bg-deep:         #0B0E12;   /* deepest panel for cinematic full-bleeds */

  /* — Ink — */
  --text:            #14171C;
  --text-secondary:  #4A4F56;
  --text-tertiary:   #797E86;
  --text-inv:        #F5F0E8;
  --text-inv-secondary: #B7B6B0;

  /* — Accents — */
  --accent:          #C4844B;   /* copper — brand primary */
  --accent-hover:    #A86E3A;
  --accent-soft:     #E5C9A5;
  --accent-on-dark:  #E0A26A;   /* lifted copper for dark backgrounds */

  /* — HADR / Civil Training accents — */
  --steel:           #3A4A5C;   /* slate steel — disciplined, defense-adjacent */
  --steel-hover:     #2A3849;
  --navy:            #1F2937;
  --signal:          #B0531C;   /* oxide signal red — used very sparingly for alerts */

  /* — Surface lines — */
  --line:            rgba(20,23,28,0.12);
  --line-strong:     rgba(20,23,28,0.22);
  --line-inv:        rgba(245,240,232,0.16);
  --line-inv-strong: rgba(245,240,232,0.32);

  /* — Type — */
  --serif:    "Newsreader", "Source Serif 4", "Iowan Old Style", "Apple Garamond", "Noto Serif TC", "Noto Serif JP", Georgia, serif;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* — Type scale (modular 1.25) — */
  --fs-xs:   0.75rem;     /* 12 */
  --fs-sm:   0.875rem;    /* 14 */
  --fs-base: 1rem;        /* 16 */
  --fs-md:   1.125rem;    /* 18 */
  --fs-lg:   1.375rem;    /* 22 */
  --fs-xl:   1.75rem;     /* 28 */
  --fs-2xl:  2.25rem;     /* 36 */
  --fs-3xl:  3rem;        /* 48 */
  --fs-4xl:  4rem;        /* 64 */
  --fs-5xl:  5.5rem;      /* 88 — display only */

  /* — Spacing (4px base) — */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* — Layout — */
  --container:      1280px;
  --container-wide: 1440px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* — Radii — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* — Shadows — */
  --sh-sm: 0 1px 2px rgba(20,23,28,0.06), 0 1px 3px rgba(20,23,28,0.05);
  --sh-md: 0 6px 24px rgba(20,23,28,0.08), 0 2px 6px rgba(20,23,28,0.06);
  --sh-lg: 0 24px 64px rgba(20,23,28,0.16), 0 8px 24px rgba(20,23,28,0.10);

  /* — Motion — */
  --ease:      cubic-bezier(.2,.7,.2,1);
  --t-fast:    140ms;
  --t-med:     260ms;
  --t-slow:    520ms;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-hover); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 460;        /* Newsreader optical weight */
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 var(--sp-5);
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.6vw, var(--fs-5xl)); font-weight: 480; }
h2 { font-size: clamp(1.875rem, 3.4vw, var(--fs-3xl)); font-weight: 470; }
h3 { font-size: clamp(1.375rem, 2.2vw, var(--fs-xl));  font-weight: 470; }
h4 { font-size: var(--fs-lg); }
h5, h6 { font-size: var(--fs-md); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: 460; }

p { margin: 0 0 var(--sp-5); max-width: 68ch; text-wrap: pretty; }
p.lede {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 56ch;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-4);
  font-weight: 600;
}
.eyebrow.on-dark { color: var(--accent-on-dark); }

blockquote {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  line-height: 1.35;
  color: var(--text);
  margin: var(--sp-7) 0;
  padding-left: var(--sp-5);
  border-left: 2px solid var(--accent);
  font-style: italic;
}
blockquote cite { display: block; font-style: normal; font-size: var(--fs-sm); color: var(--text-secondary); margin-top: var(--sp-3); font-family: var(--sans); letter-spacing: 0.04em; }

/* East-Asian script overrides */
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3,
:lang(ja) h1,    :lang(ja) h2,    :lang(ja) h3 {
  font-family: "Noto Serif TC", "Noto Serif JP", var(--serif);
  letter-spacing: 0;
  line-height: 1.3;
}
:lang(zh-Hant) body, :lang(ja) body {
  font-family: "Noto Sans TC", "Noto Sans JP", var(--sans);
  line-height: 1.75;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.container.wide   { max-width: var(--container-wide); }

section { padding: clamp(3rem, 7vw, var(--sp-10)) 0; }
section.tight { padding: clamp(2rem, 4vw, var(--sp-8)) 0; }
section.bleed { padding: 0; }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-asym { grid-template-columns: 5fr 7fr; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4, .grid-asym { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--sp-5); }
.stack-tight > * + * { margin-top: var(--sp-3); }
.stack-loose > * + * { margin-top: var(--sp-7); }

.tone-dark { background: var(--bg-dark); color: var(--text-inv); }
.tone-dark h1, .tone-dark h2, .tone-dark h3, .tone-dark h4, .tone-dark h5, .tone-dark h6 { color: var(--text-inv); }
.tone-dark p { color: var(--text-inv-secondary); }
.tone-dark .eyebrow { color: var(--accent-on-dark); }

.tone-warm { background: var(--bg-warm); }
.tone-tint { background: var(--bg-tint); }
.tone-deep { background: var(--bg-deep); color: var(--text-inv); }
.tone-deep h1, .tone-deep h2, .tone-deep h3 { color: var(--text-inv); }

/* ==========================================================================
   Site header & nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,240,232,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-dark { background: rgba(11,14,18,0.78); border-color: var(--line-inv); }
.site-header.is-dark .nav-link { color: var(--text-inv); }
.site-header.is-dark .nav-link:hover { color: var(--accent-on-dark); }
.site-header .nav-row { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; gap: var(--sp-5); }

.brand-mark {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--serif); font-size: var(--fs-md); font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
  transition: color var(--t-fast) var(--ease);
  line-height: 1;
}
.brand-mark .wordmark { font-weight: 500; }
.brand-mark:hover { color: var(--accent); }

/* SVG logo (inline, preferred) — wordmark inherits currentColor */
.brand-mark.has-svg-logo svg,
.brand-mark .brand-logo {
  display: block;
  height: 36px;
  width: auto;
}
.brand-mark.has-svg-logo svg text { fill: currentColor; }

/* Raster logo (PNG) */
.brand-mark.has-img-logo .brand-logo-img {
  display: block;
  height: 36px;
  width: auto;
}

/* Fallback glyph — kept for the case where logo files are missing */
.brand-mark .glyph {
  display: inline-block; width: 28px; height: 28px;
  background: var(--accent); border-radius: 50%;
  position: relative; flex-shrink: 0;
}
.brand-mark .glyph::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--bg); border-radius: 50%;
  transition: background var(--t-fast) var(--ease);
}

/* When the header is over a cinematic hero, flip brand mark + lang switch
   to inverse colors so they stay visible. JS adds .is-dark via IntersectionObserver. */
.site-header.is-dark .brand-mark { color: var(--text-inv); }
.site-header.is-dark .brand-mark:hover { color: var(--accent-on-dark); }
.site-header.is-dark .brand-mark .glyph::after { background: var(--bg-deep); }
.site-header.is-dark .lang-switch { border-color: var(--line-inv-strong); }
.site-header.is-dark .lang-switch button { color: var(--text-inv-secondary); }
.site-header.is-dark .lang-switch button.is-active { background: var(--text-inv); color: var(--text); }
.site-header.is-dark .nav-toggle { color: var(--text-inv); }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 2rem); }
.nav-link {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex; gap: 0; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 2px; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch button {
  background: transparent; border: 0; padding: 6px 12px; border-radius: 999px;
  color: var(--text-secondary); transition: all var(--t-fast) var(--ease);
}
.lang-switch button.is-active { background: var(--text); color: var(--text-inv); }

.nav-toggle { display: none; background: transparent; border: 0; padding: var(--sp-2); color: inherit; }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 880px) {
  .primary-nav {
    position: fixed; inset: 60px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start;
    padding: var(--sp-7) var(--gutter) var(--sp-7);
    gap: var(--sp-5);
    transform: translateY(-110%);
    transition: transform var(--t-med) var(--ease);
    z-index: 49; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 24px 64px rgba(20,23,28,0.18);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .site-header.is-dark .primary-nav { background: var(--bg); }
  .site-header.is-dark .primary-nav .nav-link { color: var(--text); }
  .nav-toggle { display: inline-flex; }
  .nav-link { font-size: var(--fs-lg); font-family: var(--serif); padding: var(--sp-3) 0; width: 100%; }
  .lang-switch { margin-top: var(--sp-3); }
  body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.btn-primary { background: var(--text); color: var(--text-inv); }
.btn-primary:hover { background: var(--accent); color: var(--text-inv); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-on-dark { background: var(--text-inv); color: var(--text); }
.btn-on-dark:hover { background: var(--accent); color: var(--text-inv); }
.btn-ghost-on-dark { background: transparent; color: var(--text-inv); border-color: var(--line-inv-strong); }
.btn-ghost-on-dark:hover { border-color: var(--text-inv); }

.btn .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm);
  color: var(--accent); letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.text-link:hover { color: var(--accent-hover); }

/* ==========================================================================
   Tags / pills
   ========================================================================== */

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.tag.tag-steel { background: rgba(58,74,92,0.12); color: var(--steel); }
.tag.tag-dark  { background: rgba(20,23,28,0.08); color: var(--text); }
.tag.tag-on-dark { background: rgba(245,240,232,0.10); color: var(--text-inv); }

/* ==========================================================================
   Cinematic hero (B-Series full bleed)
   ========================================================================== */

.hero-cinematic {
  position: relative;
  min-height: clamp(560px, 92vh, 920px);
  background: var(--bg-deep);
  color: var(--text-inv);
  overflow: hidden;
  isolation: isolate;
}
.hero-cinematic .hero-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-cinematic .hero-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,18,0.55) 0%, rgba(11,14,18,0.25) 40%, rgba(11,14,18,0.85) 100%),
    linear-gradient(90deg, rgba(11,14,18,0.55) 0%, rgba(11,14,18,0.05) 60%);
}
.hero-cinematic .container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: inherit;
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(2rem, 6vw, 5rem);
}
.hero-cinematic h1 {
  color: var(--text-inv);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  font-weight: 460;
  max-width: 22ch;
  margin-bottom: var(--sp-5);
}
.hero-cinematic h1 em { color: var(--accent-on-dark); }
.hero-cinematic .hero-sub {
  font-family: var(--serif); font-size: var(--fs-lg);
  color: var(--text-inv-secondary);
  max-width: 56ch;
  margin-bottom: var(--sp-7);
}
.hero-cinematic .hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.hero-meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.5rem;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-inv-secondary); pointer-events: none;
}
.hero-meta .meta-left, .hero-meta .meta-right { opacity: 0.7; }

/* ==========================================================================
   Editorial section heads
   ========================================================================== */

.section-head { max-width: 64ch; margin-bottom: var(--sp-7); }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p { color: var(--text-secondary); font-size: var(--fs-md); }

.section-rule {
  display: block; width: 64px; height: 2px; background: var(--accent);
  margin-bottom: var(--sp-5);
}

/* ==========================================================================
   Pillar cards (HADR / Civil Training / Supertitle)
   ========================================================================== */

.pillar-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-4);
  position: relative; overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.pillar-card .pillar-image {
  margin: calc(-1 * var(--sp-7)) calc(-1 * var(--sp-7)) var(--sp-3) calc(-1 * var(--sp-7));
  height: 220px;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.pillar-card h3 { margin-bottom: 0; }
.pillar-card .pillar-meta { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
.pillar-card .pillar-link { margin-top: auto; }

/* ==========================================================================
   Metric / deployment stats
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-7) 0;
}
@media (max-width: 880px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat .stat-num {
  font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 460; letter-spacing: -0.02em;
  color: var(--text); line-height: 1;
  display: block; margin-bottom: var(--sp-3);
}
.stat .stat-label {
  font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-secondary);
}
.tone-dark .stat .stat-num { color: var(--text-inv); }
.tone-dark .stat .stat-label { color: var(--text-inv-secondary); }

/* ==========================================================================
   Press / quote cards
   ========================================================================== */

.press-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.press-card .outlet {
  font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-secondary);
}
.press-card .quote {
  font-family: var(--serif); font-size: var(--fs-md); line-height: 1.5; color: var(--text);
}

/* ==========================================================================
   Featured quote (large editorial block)
   ========================================================================== */

.featured-quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, var(--fs-2xl));
  line-height: 1.3; max-width: 30ch; color: var(--text);
}
.featured-quote cite { display: block; margin-top: var(--sp-5); font-style: normal; font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }

/* ==========================================================================
   Credibility bar
   ========================================================================== */

.cred-bar { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred-bar .container { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.cred-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-7);
  align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary);
}
.cred-list li { position: relative; }

/* ==========================================================================
   Speaking moments / events strip
   ========================================================================== */

.events-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
@media (max-width: 880px) { .events-strip { grid-template-columns: 1fr; } }

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  background: var(--bg-card);
}
.event-card .event-when {
  font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3);
}
.event-card h4 { font-family: var(--serif); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.event-card p { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: 0; }

/* ==========================================================================
   Video embed
   ========================================================================== */

.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-deep); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-secondary); font-weight: 600;
}
.field input, .field select, .field textarea {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-deep);
  color: var(--text-inv);
  padding: var(--sp-9) 0 var(--sp-6);
  margin-top: var(--sp-9);
}
.site-footer h4 { color: var(--text-inv); font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.site-footer a { color: var(--text-inv-secondary); }
.site-footer a:hover { color: var(--accent-on-dark); }
.site-footer .footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.site-footer .legal {
  border-top: 1px solid var(--line-inv);
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
  font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--text-inv-secondary);
}

/* ==========================================================================
   Two-column editorial blocks
   ========================================================================== */

.editorial-two {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-9);
  align-items: center;
}
.editorial-two.flip { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .editorial-two { grid-template-columns: 1fr; gap: var(--sp-6); } }
.editorial-two .image-frame {
  aspect-ratio: 4 / 5;
  background-size: cover; background-position: center;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}

/* ==========================================================================
   Marquee strip (B-Series tonal)
   ========================================================================== */

.tonal-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: clamp(180px, 22vw, 280px);
}
.tonal-strip > div {
  background-size: cover; background-position: center;
  filter: contrast(1.04) saturate(0.85);
}
@media (max-width: 720px) { .tonal-strip { grid-template-columns: repeat(2, 1fr); height: 320px; } }

/* ==========================================================================
   Skip link / accessibility
   ========================================================================== */

.skip-link {
  position: absolute; left: -10000px; top: 0;
  background: var(--text); color: var(--text-inv); padding: 0.75rem 1rem;
  border-radius: var(--r-sm); font-weight: 600; z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: var(--sp-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Subtle motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.fade-up { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.fade-up.is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .video-embed, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   RESPONSIVE — comprehensive device support
   --------------------------------------------------------------------------
   Layered breakpoints, smallest to largest:

     ≤ 380px   Small phone (iPhone SE in portrait, narrow Android)
     ≤ 560px   Phone (iPhone 14 / Pro / Pro Max in portrait)
     ≤ 768px   Phone landscape, iPad mini in portrait
     ≤ 1024px  iPad portrait, smaller tablets
     ≤ 1280px  iPad landscape, small notebooks
     ≥ 1281px  Desktop & up

   Each layer only overrides what should change at that size. The base
   styles above are mobile-first and carry through.
   ========================================================================== */

/* — Universal small-screen polish — */
@media (max-width: 1024px) {
  a.btn, button.btn, .nav-link, .text-link, .lang-switch button {
    min-height: 44px;            /* Apple/WCAG touch target */
  }
  .btn { padding: 0.95rem 1.5rem; }
  h1, h2, h3 { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
}

/* — Tablet landscape & small notebooks (≤1280px) — */
@media (max-width: 1280px) {
  :root { --gutter: clamp(1.25rem, 3.6vw, 2.25rem); }
  section { padding: clamp(2.75rem, 6vw, 5.5rem) 0; }
  .editorial-two { gap: clamp(2rem, 5vw, 4rem); }
}

/* — Tablet portrait (≤1024px) — */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-card .pillar-image { height: 200px; }
  .grid-asym { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem) !important; }
  .events-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .container { padding-left: clamp(1.25rem, 4vw, 2.5rem); padding-right: clamp(1.25rem, 4vw, 2.5rem); }
}

/* — Phone landscape & small tablet (≤768px) — */
@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }
  section { padding: clamp(2.25rem, 8vw, 4rem) 0; }

  /* Hero — keep cinematic but step heights & type down. svh = small-viewport height,
     accounts for mobile browser chrome (Safari address bar etc.). */
  .hero-cinematic { min-height: clamp(440px, 78svh, 640px); }
  .hero-cinematic h1 { font-size: clamp(2rem, 7vw, 3.25rem); max-width: 18ch; }
  .hero-cinematic .hero-sub { font-size: var(--fs-md); margin-bottom: var(--sp-5); }
  .hero-cinematic .container {
    padding-top: clamp(3.5rem, 12vw, 6rem);
    padding-bottom: clamp(1.75rem, 6vw, 3rem);
  }
  .hero-cinematic .hero-image::after {
    background:
      linear-gradient(180deg, rgba(11,14,18,0.50) 0%, rgba(11,14,18,0.30) 30%, rgba(11,14,18,0.92) 100%);
  }
  .hero-cinematic .hero-actions { gap: var(--sp-3); flex-direction: column; align-items: stretch; }
  .hero-cinematic .hero-actions .btn { justify-content: center; }
  .hero-meta { display: none; }              /* reclaim vertical room */

  /* Section heads */
  .section-head { margin-bottom: var(--sp-6); }

  /* Typography step-down */
  h1 { font-size: clamp(2rem, 7vw, 2.75rem); }
  h2 { font-size: clamp(1.625rem, 5.4vw, 2.25rem); }
  h3 { font-size: clamp(1.25rem, 4.4vw, 1.5rem); }
  p.lede { font-size: var(--fs-md); }

  /* Grids collapse to single column */
  .pillar-grid,
  .grid-2, .grid-3, .grid-4,
  .grid-asym,
  .events-strip,
  .stat-row,
  .editorial-two,
  .editorial-two.flip,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--sp-5);
  }
  .stat-row { padding: var(--sp-6) 0; gap: var(--sp-5); }
  .stat .stat-num { font-size: clamp(2rem, 8vw, 2.75rem); }

  /* Pillar cards — kill any fixed heights, soften padding */
  .pillar-card { padding: var(--sp-6); min-height: 0 !important; }
  .pillar-card .pillar-image {
    margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-3);
    height: 180px;
  }

  /* Editorial two-column image — prevent giant 4:5 portrait on phones */
  .editorial-two .image-frame { aspect-ratio: 16 / 11; max-height: 60vh; }

  /* Tonal strip — keep 2 across, shorter */
  .tonal-strip { grid-template-columns: repeat(2, 1fr); height: 280px; }

  /* Cred bar — wrap nicely instead of justify-between */
  .cred-list {
    gap: var(--sp-3) var(--sp-5);
    justify-content: flex-start;
    font-size: 0.7rem;
  }

  /* Video embed */
  .video-embed { border-radius: var(--r-md); }

  /* Forms — full width fields, prevent iOS auto-zoom */
  .form-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .field input, .field select, .field textarea { font-size: 16px; }
  body.page-contact form, body.page-template-page-contact form { padding: 1.25rem; }

  /* Footer */
  .site-footer { padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-7); }
  .site-footer .legal { flex-direction: column; gap: var(--sp-2); align-items: flex-start; }

  /* Header tighter on mobile */
  .site-header .nav-row { padding: var(--sp-3) 0; }

  /* Spec list (Supertitle) — stack columns instead of 200px+1fr */
  .spec-list { grid-template-columns: 1fr !important; gap: 0 !important; }
  .spec-list li { grid-template-columns: 1fr !important; gap: var(--sp-1) !important; padding: var(--sp-3) 0 !important; }
  .spec-list li strong { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
}

/* — Phone portrait (≤560px) — */
@media (max-width: 560px) {
  .hero-cinematic h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); line-height: 1.1; }
  .hero-cinematic .hero-sub { font-size: 1rem; line-height: 1.55; }
  .hero-cinematic .hero-actions .btn { width: 100%; }

  /* Brand mark — tighter */
  .brand-mark { font-size: 0.95rem; gap: 0.5rem; }
  .brand-mark .glyph { width: 24px; height: 24px; }
  .brand-mark .glyph::after { inset: 5px; }
  .brand-mark.has-svg-logo svg,
  .brand-mark .brand-logo,
  .brand-mark.has-img-logo .brand-logo-img { height: 28px; }

  /* Lang switch — compact */
  .lang-switch { font-size: 10px; }
  .lang-switch button { padding: 5px 9px; }

  /* Cards & cred bar */
  .pillar-card { padding: var(--sp-5); }
  .pillar-card .pillar-image { height: 160px; }
  .cred-list { gap: var(--sp-2) var(--sp-4); font-size: 0.66rem; letter-spacing: 0.12em; }
  .cred-list li { line-height: 1.4; }

  /* Primary CTAs go full-width on truly narrow */
  section .btn-primary, section .btn-on-dark {
    width: 100%; max-width: 360px; justify-content: center;
  }

  /* Editorial blockquote */
  blockquote { font-size: var(--fs-lg); padding-left: var(--sp-4); }

  /* Featured quote */
  .featured-quote { font-size: var(--fs-xl); }

  /* Tonal strip */
  .tonal-strip { height: 220px; }

  /* Container */
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* About leadership cards — soften forced inline padding */
  body.page-about article[style*="padding: var(--sp-7)"],
  body.page-template-page-about article[style*="padding: var(--sp-7)"] {
    padding: var(--sp-5) !important;
  }
}

/* — Small phone (≤380px) — iPhone SE etc — */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .hero-cinematic { min-height: clamp(400px, 70svh, 540px); }
  .hero-cinematic h1 { font-size: 1.7rem; }
  .hero-cinematic .hero-sub { font-size: 0.95rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .nav-row { padding: 0.5rem 0; }
  .brand-mark .wordmark { display: none; }   /* fallback only; SVG/PNG logo stays visible */
  .brand-mark.has-svg-logo svg,
  .brand-mark .brand-logo,
  .brand-mark.has-img-logo .brand-logo-img { height: 24px; }
}

/* — Phone in landscape — keep hero from eating the whole screen — */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-cinematic { min-height: clamp(360px, 92svh, 520px); }
  .hero-cinematic .container {
    padding-top: clamp(3rem, 8vw, 4rem);
    padding-bottom: clamp(1.25rem, 4vw, 2rem);
  }
}

/* — iPad-class (769–1024px) — refined two-column layouts — */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-cinematic { min-height: clamp(560px, 80vh, 760px); }
  .hero-cinematic h1 { font-size: clamp(2.5rem, 5.6vw, 3.75rem); max-width: 20ch; }
  .pillar-grid > article:nth-child(3) { grid-column: 1 / -1; }
  .events-strip > article:nth-child(3) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 2 / -1; }
}

/* — Large desktop (≥1440px) — */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  .hero-cinematic h1 { font-size: clamp(3.5rem, 5vw, 6rem); }
}

/* — Extra-large displays (≥1920px) — */
@media (min-width: 1920px) {
  :root { --container: 1440px; }
  body { font-size: 1.0625rem; }
}

/* — Reduce motion (re-enforced) — */
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic .hero-image { transition: none; }
  .pillar-card:hover { transform: none; }
}

/* — Hover vs. touch — disable hover-only effects on touch devices — */
@media (hover: none) {
  .pillar-card:hover { transform: none; box-shadow: var(--sh-sm); }
  .btn:hover { transform: none; }
  .btn:hover .arrow { transform: none; }
  .nav-link:hover::after { transform: scaleX(0); }
  .nav-link.is-active::after { transform: scaleX(1); }
}

/* — High-contrast / forced colors — */
@media (forced-colors: active) {
  .btn, .text-link, .nav-link { border-color: ButtonBorder; color: ButtonText; }
  .hero-cinematic h1, .hero-cinematic .hero-sub { color: CanvasText; }
}

/* — Notch / safe-area insets (iPhone) — */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: max(var(--sp-6), env(safe-area-inset-bottom)); }
}
/* HADR page — steel accent treatment */

body.page-hadr .hero-cinematic h1 em,
body.page-template-page-hadr .hero-cinematic h1 em {
  color: var(--accent-on-dark);
}

body.page-hadr .press-card,
body.page-template-page-hadr .press-card {
  border-left: 3px solid var(--steel);
}

body.page-hadr .bullet-list li,
body.page-template-page-hadr .bullet-list li {
  font-family: var(--serif);
  font-size: var(--fs-md);
}


/* ==========================================================================
   INSIGHTS MICROSITE — additions on top of the production design system
   These rules cover surfaces unique to the insights subsite:
   chapter pages, TOC chapter groups, refrains, cross-link callouts.
   ========================================================================== */

/* — Brand tagline (the "INSIGHTS" badge after the ARiEL wordmark) — */
.brand-mark .brand-tagline {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-left: var(--sp-3);
  border-left: 1px solid var(--line);
  color: inherit;
  line-height: 1;
}
.site-header.is-dark .brand-mark .brand-tagline { border-left-color: var(--line-inv); }

/* — Hero CTA row — */
.cta-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }

/* — Language switch: disabled buttons (translations not yet available) — */
.lang-switch button[disabled] { opacity: 0.32; cursor: not-allowed; pointer-events: none; }

/* — TOC: lede under the section head — */
.section-lede {
  max-width: 60ch;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: calc(-1 * var(--sp-4));
  margin-bottom: 0;
}

/* — TOC: chapter groups (three Parts) — */
.chapter-group {
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--line);
}
.chapter-group:first-of-type { margin-top: var(--sp-8); }
.chapter-group-header {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-7);
  align-items: baseline;
  margin-bottom: var(--sp-6);
}
.chapter-group-header .eyebrow { margin-bottom: var(--sp-3); grid-column: 1; }
.chapter-group-header h3 {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  font-weight: 470;
  margin: 0;
  grid-column: 1;
  letter-spacing: -0.012em;
}
.chapter-group-header p {
  grid-column: 2;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 56ch;
}
@media (max-width: 880px) {
  .chapter-group-header { grid-template-columns: 1fr; gap: var(--sp-3); }
  .chapter-group-header .eyebrow,
  .chapter-group-header h3,
  .chapter-group-header p { grid-column: 1; }
}

/* — TOC: chapter row (3 cards) — */
.chapter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 980px) { .chapter-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .chapter-row { grid-template-columns: 1fr; } }

.chapter-card {
  background: var(--bg-card);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
  color: var(--text);
}
.chapter-card .eyebrow { margin-bottom: 0; }
.chapter-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 470;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.chapter-card .blurb {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-secondary);
  flex-grow: 1;
  margin: 0;
  max-width: none;
}
.chapter-card .read-more {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: var(--sp-1);
}

/* — Chapter page: dark cinematic hero — */
article.chapter { background: var(--bg); }
article.chapter .chapter-hero {
  background: var(--bg-deep);
  color: var(--text-inv);
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line-inv);
  position: relative;
  overflow: hidden;
}
article.chapter .chapter-hero .hero-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.40;
  z-index: 0;
}
article.chapter .chapter-hero .hero-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,18,0.45) 0%, rgba(11,14,18,0.25) 40%, rgba(11,14,18,0.92) 100%),
    linear-gradient(90deg, rgba(11,14,18,0.55) 0%, rgba(11,14,18,0.10) 60%);
}
article.chapter .chapter-hero .container { position: relative; z-index: 1; max-width: 880px; }
article.chapter .chapter-hero .eyebrow { color: var(--accent-on-dark); }
article.chapter h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  color: var(--text-inv);
  font-weight: 460;
  max-width: 22ch;
}
article.chapter h1 em { color: var(--accent-on-dark); }
article.chapter .chapter-hero .subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.45;
  color: var(--accent-on-dark);
  max-width: 56ch;
  margin-top: var(--sp-4);
}
article.chapter .chapter-hero .subhead em { color: var(--accent-on-dark); font-style: italic; }

/* — Chapter page: long-form prose — */
.prose { padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: var(--bg); }
.prose .container { max-width: 720px; }
.prose p { font-size: 1.125rem; line-height: 1.75; margin: 0 0 var(--sp-5); max-width: 65ch; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose strong { font-weight: 600; }
.prose em { color: var(--accent); font-style: italic; }
.prose hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: var(--sp-7) auto;
  max-width: 120px;
}
.prose .refrain {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: 1.45;
  text-align: center;
  color: var(--accent);
  margin: var(--sp-7) auto 0;
  max-width: 36rem;
}

/* — Refrain block (on the TOC intro section) — */
.refrain-block { text-align: center; margin: var(--sp-7) auto 0; max-width: 40rem; }
.refrain-block .refrain {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--accent);
  margin: 0;
}

/* — Chapter nav (prev/next) — */
.chapter-nav {
  border-top: 1px solid var(--line);
  padding: var(--sp-6) 0;
  background: var(--bg-tint);
}
.chapter-nav .container {
  max-width: 1080px;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
}
.chapter-nav a {
  flex: 1;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transition: all var(--t-fast) var(--ease);
  color: var(--text);
  text-decoration: none;
}
.chapter-nav a:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  color: var(--text);
}
.chapter-nav a.next { text-align: right; align-items: flex-end; }
.chapter-nav .label {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.chapter-nav .title {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.2;
  color: var(--text);
}
@media (max-width: 720px) {
  .chapter-nav .container { flex-direction: column; }
  .chapter-nav a.next { text-align: left; align-items: flex-start; }
}

/* — Cross-link callout (back to /hadr/ on main site) — */
.cross-link {
  background: var(--bg-warm);
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cross-link .container { max-width: 56rem; }
.cross-link h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: var(--sp-4); }
.cross-link p {
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto var(--sp-5);
  color: var(--text);
}

/* — Hero overrides for the insights index (smaller than production's homepage hero) — */
.hero-cinematic.hero-paper {
  min-height: clamp(440px, 70vh, 720px);
}
.hero-cinematic.hero-paper .container { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
