/* ==========================================================================
   Blog.NextGenCoastal.com — Modern Coastal Premium
   --------------------------------------------------------------------------
   Clean, spacious, premium SaaS aesthetic for coastal CA property management.
   Typography: Geist (display + body), Instrument Serif (italic accents only).
   Palette: white ground, rich ink, deep ocean blue primary, coral warm accent.
   ========================================================================== */

/* Self-hosted fonts — Geist (variable, 100-900) + Instrument Serif italic.
   Only Latin + Latin-ext subsets loaded; total ~88 KB. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/geist-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/geist-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals */
  --white:        #FFFFFF;
  --surface:      #F9FAFB;
  --surface-2:    #F3F4F6;
  --border:       #E5E7EB;
  --border-soft:  #F1F2F4;
  --ink:          #0A1525;
  --ink-soft:     #1F2937;
  --muted:        #6B7280;
  --muted-soft:   #9CA3AF;

  /* Coastal accents */
  --ocean:        #0369A1;   /* primary — deep ocean blue */
  --ocean-dark:   #075985;
  --ocean-light:  #0EA5E9;
  --ocean-soft:   #E0F2FE;
  --coral:        #F97316;   /* warm accent — sunset coral */
  --coral-dark:   #EA580C;
  --coral-soft:   #FFF7ED;
  --sand:         #FEF3C7;
  --kelp:         #065F46;   /* success/positive */

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(10, 21, 37, 0.04);
  --shadow:     0 2px 8px rgba(10, 21, 37, 0.06), 0 1px 2px rgba(10, 21, 37, 0.04);
  --shadow-md:  0 8px 24px rgba(10, 21, 37, 0.08), 0 2px 4px rgba(10, 21, 37, 0.04);
  --shadow-lg:  0 20px 50px rgba(10, 21, 37, 0.10), 0 4px 12px rgba(10, 21, 37, 0.05);
  --shadow-xl:  0 40px 80px rgba(10, 21, 37, 0.15);

  /* Type */
  --font-sans:   'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-italic: 'Instrument Serif', Georgia, serif;

  /* Scale — fluid where meaningful */
  --text-2xs: 0.6875rem;   /* 11 */
  --text-xs:  0.75rem;     /* 12 */
  --text-sm:  0.875rem;    /* 14 */
  --text-base:1rem;        /* 16 */
  --text-lg:  1.125rem;    /* 18 */
  --text-xl:  1.25rem;     /* 20 */
  --text-2xl: 1.5rem;      /* 24 */
  --text-3xl: 1.875rem;    /* 30 */
  --text-4xl: 2.25rem;     /* 36 */
  --text-5xl: clamp(2.5rem, 4vw, 3.25rem);    /* 40–52 */
  --text-6xl: clamp(3rem, 6vw, 4.5rem);       /* 48–72 */
  --text-hero: clamp(3rem, 7vw, 5.5rem);      /* 48–88 */

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Layout */
  --max-w:   1280px;
  --max-w-narrow: 720px;
  --max-w-prose: 680px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --radius:  12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 400ms;
  --dur-4: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { margin: 0; }
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
figure { margin: 0; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--ocean); color: var(--white); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); letter-spacing: -0.015em; font-weight: 600; }
h4 { font-size: var(--text-xl); letter-spacing: -0.012em; }

p { margin: 0 0 var(--s-4); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: var(--max-w-narrow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ocean);
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--ocean);
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.2em;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--ocean); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--border);
  background: var(--white);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 0.9em 1.5em; font-size: var(--text-base); border-radius: var(--radius); }

/* Text links with chevron */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--ocean);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: gap var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.link-arrow:hover { gap: 0.55em; color: var(--ocean-dark); }
.link-arrow svg { width: 14px; height: 14px; }

/* ==========================================================================
   Navigation — NGP-pattern, NGC-branded.
   logo · links · (search · cta · subscribe) · hamburger
   ========================================================================== */
:root {
  --nav-h: 68px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--ocean);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 10px; }

.nav {
  position: sticky;
  top: 0;
  left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 36, 64, 0.04), 0 8px 24px -10px rgba(15, 36, 64, 0.10);
  z-index: 0;
  transition: background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.nav-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  padding: 0 clamp(16px, 3vw, 40px);
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ocean-dark);
  white-space: nowrap;
  transition: opacity var(--dur-1) var(--ease), color var(--dur-2) var(--ease);
}
.nav-logo:hover { opacity: 0.82; }
.nav-logo-mark {
  display: block;
  width: auto;
  height: 32px;
  /* Flat-blue PNG — when nav is transparent over a hero, flip the logo to
     white via filter (brightness(0) makes it black, invert(1) flips to white). */
  transition: filter var(--dur-2) var(--ease);
}
.nav-logo-wordmark {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Default (non-hero / scrolled state): "Coastal" reads ocean-blue on the
     glass nav. Overridden to white when the nav is transparent over a hero. */
  color: var(--ocean-dark);
  line-height: 1;
  transition: color var(--dur-2) var(--ease);
}
.nav-logo-serif {
  /* "Insights" — secondary weight/color next to bolder "Coastal". */
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: inherit;
  padding-left: 1px;
  transition: color var(--dur-2) var(--ease);
}

/* ── Links (center cluster) ──────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0; margin: 0;
  flex: 1;
  justify-content: flex-end;
}
.nav-links a {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(14, 55, 90, 0.06); }
.nav-links a.on {
  color: var(--ocean-dark);
  font-weight: 600;
  background: rgba(14, 55, 90, 0.08);
}

/* ── Hierarchical dropdowns ──────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px 7px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-dropdown-trigger:hover { color: var(--ink); background: rgba(14, 55, 90, 0.06); }
.nav-dropdown-trigger.on { color: var(--ocean-dark); font-weight: 600; background: rgba(14, 55, 90, 0.08); }
.nav-dropdown-caret {
  transform-origin: center;
  transition: transform var(--dur-2) var(--ease);
  opacity: 0.7;
}
.nav-has-dropdown[data-open="true"] .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  /* Rich dropdown (icon + label + subtext) needs a consistent width so the
     two-line labels don't jitter the panel between hovers. */
  width: max-content;
  min-width: 260px;
  max-width: 320px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(15, 36, 64, 0.06);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 16px 40px -12px rgba(15, 36, 64, 0.14),
    0 4px 12px -4px rgba(15, 36, 64, 0.06);
  transition: opacity var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease),
              visibility var(--dur-2) var(--ease);
}
.nav-has-dropdown[data-open="true"] .nav-dropdown,
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* Hover bridge — invisible gap-filler so pointer doesn't lose the dropdown
   while traveling from the trigger into the panel. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 12px;
}
.nav-dropdown-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
}
/* Items no longer need hairline dividers — the icon + subtext layout gives
   each row its own visual weight, and the "All {Parent}" row gets its own
   divider above it. */
.nav-dropdown-list li { position: relative; }
.nav-dropdown-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 11px !important;
  padding: 10px 12px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.35;
  white-space: normal;
  transition: background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
}
.nav-dropdown-link:hover {
  background: rgba(14, 55, 90, 0.05) !important;
}
.nav-dropdown-link.on {
  background: rgba(14, 55, 90, 0.07) !important;
}
.nav-dropdown-link.on .drop-label strong { color: var(--ocean-dark); font-weight: 600; }

/* Icon chip + label/subtext rows (NGP-style) */
.drop-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(14, 55, 90, 0.09);
  color: var(--ocean, #0E6FB8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background var(--dur-1) var(--ease);
}
.drop-icon--muted {
  background: rgba(15, 36, 64, 0.06);
  color: var(--muted);
}
.nav-dropdown-link:hover .drop-icon { background: rgba(14, 55, 90, 0.14); }
.nav-dropdown-link:hover .drop-icon--muted { background: rgba(15, 36, 64, 0.1); }
.nav-dropdown-link.on .drop-icon { background: rgba(14, 55, 90, 0.18); color: var(--ocean-dark); }

.drop-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drop-label strong {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.drop-label span {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.3;
}

/* "All {Parent}" row — divider above, muted icon, slightly smaller feel */
.nav-dropdown-all { margin-top: 4px; padding-top: 4px; position: relative; }
.nav-dropdown-all::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background: rgba(15, 36, 64, 0.06);
  pointer-events: none;
}
.nav-dropdown-list li.nav-dropdown-all + li::before,
.nav-dropdown-list li + li.nav-dropdown-all::before { display: none; }
.nav-dropdown-link--all .drop-label strong { font-weight: 500; }

/* Dropdown state colors on cinematic-hero (transparent nav) variant */
body.has-hero .nav .nav-dropdown-trigger { color: rgba(255, 255, 255, 0.82); }
body.has-hero .nav .nav-dropdown-trigger:hover,
body.has-hero .nav .nav-dropdown-trigger.on { color: var(--white); background: rgba(255, 255, 255, 0.12); }
body.has-hero .nav.nav--scrolled .nav-dropdown-trigger { color: var(--muted); }
body.has-hero .nav.nav--scrolled .nav-dropdown-trigger:hover { color: var(--ink); background: rgba(14, 55, 90, 0.06); }
body.has-hero .nav.nav--scrolled .nav-dropdown-trigger.on { color: var(--ocean-dark); background: rgba(14, 55, 90, 0.08); }
/* The dropdown panel itself stays light regardless of the hero state — it's
   anchored in normal page flow, not over the image. */

/* ── Mobile drawer hierarchy ─────────────────────────────────────────── */
/* Sibling <a> + <button> pattern, no <details>/<summary>. The parent row is
   a flex container so the label can grow while the caret button stays fixed
   on the right. JS toggles `.is-open` on the group and `[hidden]` on the
   sublist — accessible, keyboard-navigable, screen-reader-friendly. */
.nav-drawer-group { border-bottom: 1px solid var(--border); }
.nav-drawer-group-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.nav-drawer-group-link {
  flex: 1;
  padding: 18px 0 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  border: 0 !important;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.nav-drawer-group-link.on { color: var(--ocean-dark) !important; }
.nav-drawer-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--muted-soft);
  transition: transform var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}
.nav-drawer-group-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--ocean); }
.nav-drawer-sublist {
  padding: 2px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* `display: flex` above beats the browser's default `[hidden] { display: none }`,
   so the collapsed state needs an explicit override. */
.nav-drawer-sublist[hidden] { display: none; }
.nav-drawer-sublink {
  display: block !important;
  padding: 11px 14px !important;
  border: 0 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  border-radius: 8px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.nav-drawer-sublink:hover { color: var(--ink) !important; background: rgba(14, 55, 90, 0.04); }
.nav-drawer-sublink.on { color: var(--ocean-dark) !important; background: rgba(14, 55, 90, 0.07); font-weight: 600 !important; }

/* ── Right cluster ───────────────────────────────────────────────────── */
.nav-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-search-btn {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-search-btn:hover { color: var(--ink); background: rgba(14, 55, 90, 0.07); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 7px;
  background: var(--coral, #F97316);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25);
  transition: background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease),
              box-shadow var(--dur-1) var(--ease);
}
.nav-cta:hover {
  background: var(--coral-dark, #EA580C);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.32);
}
.nav-subscribe-btn {
  padding: 9px 18px;
  border-radius: 7px;
  background: var(--ocean);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.22);
  transition: background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.nav-subscribe-btn:hover { background: var(--ocean-dark); transform: translateY(-1px); }

/* ── Hamburger (mobile) ──────────────────────────────────────────────── */
.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
}
.nav-ham span {
  display: block;
  height: 1.75px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--dur-2) var(--ease),
              opacity var(--dur-1) var(--ease),
              width var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease);
}
.nav-ham span:nth-child(1) { width: 100%; }
.nav-ham span:nth-child(2) { width: 70%; }
.nav-ham span:nth-child(3) { width: 100%; }
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ───────────────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 49;
  background: var(--paper, #FBFAF7);
  padding: 24px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.nav-drawer.open { transform: none; }
.nav-drawer[hidden] { display: block; }
.nav-drawer a {
  display: block;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}
.nav-drawer a:hover { color: var(--ink); padding-left: 6px; }
.nav-drawer a.on { color: var(--ocean-dark); }
.nav-drawer-cta {
  margin-top: 20px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px !important;
  background: var(--coral, #F97316);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: 15px !important;
  font-weight: 600;
  text-align: center;
  border: 0 !important;
}
.nav-drawer-cta:hover { color: var(--white) !important; padding-left: 22px !important; }
/* Inline search input in the mobile drawer — sits between the category list
   and the CTA. Submits to /search/?q=… on Enter via the wrapping <form>. */
.nav-drawer-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 6px;
}
.nav-drawer-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.nav-drawer-search__input {
  width: 100%;
  padding: 14px 14px 14px 40px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--dur-1) var(--ease),
              box-shadow  var(--dur-1) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.nav-drawer-search__input::placeholder { color: var(--muted); }
.nav-drawer-search__input:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(14, 55, 90, 0.12);
}

.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.nav-drawer-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
.nav-drawer-action--accent { background: var(--ocean); color: var(--white); border-color: var(--ocean); }

/* ── Full-screen search overlay ──────────────────────────────────────── */
.search-ov {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease),
              visibility var(--dur-2) var(--ease);
}
.search-ov.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.search-ov[hidden] { display: flex; }
.search-ov-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.search-ov-close:hover { color: var(--ink); background: rgba(14, 55, 90, 0.06); }
.search-ov-wrap {
  width: 100%;
  max-width: 760px;
  padding: 0 24px;
}
.search-ov-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 8px 0 18px;
  font-family: inherit;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  outline: none;
}
.search-ov-input::placeholder { color: rgba(17, 24, 39, 0.2); }
.search-ov-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.search-ov-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
}

/* ── Subscribe modal ─────────────────────────────────────────────────── */
.nav-sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10, 21, 37, 0.55);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease),
              visibility var(--dur-2) var(--ease);
}
.nav-sub-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-sub-overlay[hidden] { display: flex; }

.nav-sub-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #0E1E33;
  color: #F1F5F9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 36px 32px 30px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.55),
              0 8px 24px -8px rgba(0, 0, 0, 0.35);
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease),
              opacity var(--dur-2) var(--ease);
}
.nav-sub-overlay.open .nav-sub-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.nav-sub-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: rgba(241, 245, 249, 0.55);
  cursor: pointer;
  border-radius: 999px;
  transition: color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease);
}
.nav-sub-close:hover { color: #F1F5F9; background: rgba(255, 255, 255, 0.06); }

.nav-sub-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral, #F97316);
  margin-bottom: 14px;
}
.nav-sub-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #F8FAFC;
  margin: 0 0 12px;
}
.nav-sub-title em {
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: #F8FAFC;
}
.nav-sub-body {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.72);
  margin: 0 0 18px;
}
.nav-sub-promises {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-sub-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(241, 245, 249, 0.85);
}
.nav-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--coral, #F97316);
  flex-shrink: 0;
}

.nav-sub-form-wrap { margin: 0; }
.nav-sub-hp { display: none !important; }
.nav-sub-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.nav-sub-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease);
}
.nav-sub-input::placeholder { color: rgba(241, 245, 249, 0.35); }
.nav-sub-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}
.nav-sub-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--coral, #F97316);
  border: 1px solid var(--coral, #F97316);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.nav-sub-submit:hover { background: #EA6A0E; }
.nav-sub-submit:active { transform: translateY(1px); }
.nav-sub-submit[disabled] { opacity: 0.6; cursor: wait; }
.nav-sub-arrow { transition: transform var(--dur-1) var(--ease); }
.nav-sub-submit:hover .nav-sub-arrow { transform: translateX(2px); }

.nav-sub-msg {
  margin: 12px 0 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(241, 245, 249, 0.85);
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease);
}
.nav-sub-msg.is-visible { opacity: 1; }
.nav-sub-msg.is-success { color: #7DD3FC; }
.nav-sub-msg.is-error { color: #FCA5A5; }

.nav-sub-fine {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.45);
  letter-spacing: 0.01em;
}

body.sub-modal-open { overflow: hidden; }

/* Panels inside card */
.nav-sub-panel { display: block; }
.nav-sub-panel[hidden] { display: none; }

/* ── Success state ──────────────────────────────────────────── */
.nav-sub-panel--success {
  text-align: center;
  padding: 10px 4px 4px;
}
.nav-sub-check {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 6px auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-sub-check-ring {
  display: block;
  overflow: visible;
}
.nav-sub-check-ring__bg {
  fill: rgba(249, 115, 22, 0.08);
  stroke: rgba(249, 115, 22, 0.22);
  stroke-width: 1;
}
.nav-sub-check-ring__pulse {
  fill: rgba(249, 115, 22, 0.22);
  stroke: none;
  transform-origin: 48px 48px;
  animation: sub-pulse 1.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.35s 1 both;
  opacity: 0;
}
.nav-sub-check-ring__stroke {
  fill: none;
  stroke: var(--coral, #F97316);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 276.5;
  transform: rotate(-90deg);
  transform-origin: 48px 48px;
  animation: sub-ring-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
.nav-sub-check-ring__tick {
  stroke: var(--coral, #F97316);
  stroke-width: 5;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: sub-tick-draw 0.35s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.35));
}
.nav-sub-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--coral, #F97316);
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.nav-sub-panel--success.is-active .nav-sub-spark {
  animation: sub-spark 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}
.nav-sub-spark--1 { --sx:  62px; --sy: -26px; width: 5px; height: 5px; background: #7DD3FC; }
.nav-sub-spark--2 { --sx:  48px; --sy:  50px; width: 4px; height: 4px; }
.nav-sub-spark--3 { --sx: -58px; --sy: -22px; width: 6px; height: 6px; }
.nav-sub-spark--4 { --sx: -40px; --sy:  54px; width: 4px; height: 4px; background: #7DD3FC; }
.nav-sub-spark--5 { --sx:   2px; --sy: -68px; width: 5px; height: 5px; }
.nav-sub-spark--6 { --sx:  -6px; --sy:  64px; width: 3px; height: 3px; background: #FBBF24; }

@keyframes sub-ring-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes sub-tick-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes sub-pulse {
  0%   { opacity: 0.55; transform: scale(0.6); }
  70%  { opacity: 0;    transform: scale(1.6); }
  100% { opacity: 0;    transform: scale(1.7); }
}
@keyframes sub-spark {
  0%   { opacity: 0;    transform: translate(-50%, -50%) translate(0, 0) scale(0.4); }
  35%  { opacity: 1; }
  100% { opacity: 0;    transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) scale(1); }
}

.nav-sub-success-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral, #F97316);
  margin-bottom: 10px;
  opacity: 0;
  animation: sub-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}
.nav-sub-success-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #F8FAFC;
  margin: 0 0 12px;
  opacity: 0;
  animation: sub-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}
.nav-sub-success-title em {
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: #F8FAFC;
}
.nav-sub-success-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.72);
  margin: 0 auto 24px;
  max-width: 360px;
  opacity: 0;
  animation: sub-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}
.nav-sub-success-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #F8FAFC;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  animation: sub-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
  transition: background var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
}
.nav-sub-success-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

@keyframes sub-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-sub-check-ring__pulse,
  .nav-sub-check-ring__stroke,
  .nav-sub-check-ring__tick,
  .nav-sub-spark,
  .nav-sub-success-kicker,
  .nav-sub-success-title,
  .nav-sub-success-body,
  .nav-sub-success-close {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
  .nav-sub-check-ring__stroke { stroke-dashoffset: 0; }
  .nav-sub-check-ring__tick { stroke-dashoffset: 0; }
  .nav-sub-success-kicker,
  .nav-sub-success-title,
  .nav-sub-success-body,
  .nav-sub-success-close { opacity: 1; }
}

@media (max-width: 520px) {
  .nav-sub-card { padding: 30px 22px 24px; border-radius: 12px; }
  .nav-sub-input-row { flex-direction: column; }
  .nav-sub-submit { justify-content: center; }
  .nav-sub-check { width: 96px; height: 96px; margin-bottom: 20px; }
  .nav-sub-check-ring { width: 88px; height: 88px; }
}

/* ── Breakpoints ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .nav-inner { gap: 14px; }
}
@media (max-width: 1040px) {
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-subscribe-btn { display: none; }
  .nav-ham { display: inline-flex; }
}
@media (max-width: 640px) {
  .nav-logo-mark { height: 28px; }
  .nav-inner { padding: 0 18px; gap: 10px; }
}

/* ==========================================================================
   Hero — big, clean, confident
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-7);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(14, 165, 233, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(249, 115, 22, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }

.hero__headline {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: var(--s-5) 0 var(--s-5);
  color: var(--ink);
}
.hero__headline em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean);
  letter-spacing: -0.02em;
}
.hero__deck {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 var(--s-6);
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--s-6);
}
.hero__meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted-soft);
}
.hero__author { color: var(--ink); font-weight: 500; }

.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Hero with image (featured article pattern) */
.hero-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
}
.hero-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(14, 165, 233, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(249, 115, 22, 0.05), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-featured__copy { padding-right: var(--s-4); }
.hero-featured__headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: var(--s-4) 0 var(--s-4);
  max-width: 18ch;
}
.hero-featured__headline a {
  background-image: linear-gradient(var(--ocean), var(--ocean));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size var(--dur-3) var(--ease);
}
.hero-featured__headline a:hover { background-size: 100% 2px; color: var(--ocean); }
.hero-featured__deck {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 var(--s-5);
  max-width: 48ch;
}
.hero-featured__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
  /* background set by .hero-featured__image rule in the Image fallback block */
  box-shadow: var(--shadow-lg);
}
.hero-featured__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.hero-featured__image:hover img { transform: scale(1.03); }

@media (max-width: 860px) {
  .hero-featured { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-featured__copy { padding-right: 0; }
  .hero-featured__image { aspect-ratio: 3/2; }
}

/* ==========================================================================
   Image fallback — CSS-only. Every image container has the branded
   gradient + "N" wave mark as its background. The <img> sits on top
   (z-index: 1) and covers them when loaded. On error the <img> hides
   (via inline onerror="this.style.display='none'") and the fallback
   shows through. No JS required.
   ========================================================================== */
.card__image,
.hero-featured__image,
.article-hero__image,
.archive-item__image {
  background-color: #0369A1;
  background-image:
    radial-gradient(ellipse at 28% 22%, rgba(14, 165, 233, 0.55), transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(249, 115, 22, 0.35), transparent 55%),
    linear-gradient(135deg, #0EA5E9 0%, #0369A1 50%, #075985 100%);
}
/* Branded "N" wave mark centered on the fallback */
.card__image::after,
.hero-featured__image::after,
.article-hero__image::after,
.archive-item__image::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.85'><path d='M2 12c3 0 3-3 6-3s3 3 6 3 3-3 6-3 3 3 2 3'/><path d='M2 16c3 0 3-3 6-3s3 3 6 3 3-3 6-3 3 3 2 3'/><path d='M2 20c3 0 3-3 6-3s3 3 6 3 3-3 6-3 3 3 2 3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px;
  backdrop-filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
/* Image sits above the fallback when loaded */
.card__image > img,
.hero-featured__image > img,
.article-hero__image > img,
.archive-item__image > img {
  position: relative;
  z-index: 1;
}

/* Author avatars — simpler solid fallback */
.author-card__avatar,
.article-head__avatar {
  background: linear-gradient(135deg, var(--ocean-light) 0%, var(--ocean) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: var(--text-sm);
}
.author-card__avatar > img,
.article-head__avatar > img {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section {
  padding: var(--s-8) 0;
}
.section--lg { padding: var(--s-9) 0; }

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.section__title {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}
.section__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean);
  letter-spacing: -0.01em;
}
.section__lead {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 52ch;
  margin: var(--s-3) 0 0;
  line-height: 1.5;
}

/* ==========================================================================
   Article cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* background set by .card__image rule in the Image fallback block */
  position: relative;
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-4) var(--ease);
}
.card:hover .card__image img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  flex: 1;
}
.card__cat {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ocean);
}
.card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.card__title a { color: inherit; transition: color var(--dur-1) var(--ease); }
.card:hover .card__title a { color: var(--ocean); }
.card__dek {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: auto;
  padding-top: var(--s-2);
}
.card__meta-sep {
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--muted-soft);
}

/* Card — feature variant (bigger, spans 2 cols) */
.card--feature { grid-column: span 2; }
.card--feature .card__image { aspect-ratio: 16 / 9; }
.card--feature .card__body { padding: var(--s-6); gap: var(--s-4); }
.card--feature .card__title {
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card--feature .card__dek { font-size: var(--text-base); }
@media (max-width: 980px) { .card--feature { grid-column: span 2; } }
@media (max-width: 620px) { .card--feature { grid-column: span 1; }
  .card--feature .card__title { font-size: var(--text-2xl); }
}

/* ==========================================================================
   Archive list (category + all + search)
   ========================================================================== */
.archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
@media (max-width: 780px) { .archive { grid-template-columns: 1fr; } }

.archive-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-5);
  align-items: start;
}
.archive-item__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  /* background set by .archive-item__image rule in the Image fallback block */
  border-radius: var(--radius);
  position: relative;
}
.archive-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.archive-item:hover .archive-item__image img { transform: scale(1.05); }
.archive-item__cat {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ocean);
  display: inline-block;
  margin-bottom: var(--s-2);
}
.archive-item__title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 var(--s-2);
}
.archive-item__title a { color: inherit; transition: color var(--dur-1) var(--ease); }
.archive-item__title a:hover { color: var(--ocean); }
.archive-item__dek {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 var(--s-3);
}
.archive-item__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (max-width: 520px) {
  .archive-item { grid-template-columns: 1fr; }
}

/* Archive header (top of category/all/search pages) */
.archive-header {
  padding: var(--s-9) 0 var(--s-6);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.archive-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: var(--s-3);
}
.archive-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.archive-header__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean);
}
.archive-header__lead {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
  line-height: 1.5;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--s-6);
  font-size: var(--text-sm);
  color: var(--muted);
}
.pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5em 0.85em;
  color: var(--ink);
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--dur-1) var(--ease);
}
.pagination__link:hover { background: var(--surface); }
.pagination__link.is-disabled { color: var(--muted-soft); pointer-events: none; }

/* ==========================================================================
   Article page
   ========================================================================== */
.article-head {
  padding: var(--s-8) 0 var(--s-6);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--s-5);
}
.breadcrumb a { color: var(--muted); transition: color var(--dur-1) var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb svg { width: 12px; height: 12px; color: var(--muted-soft); }

.article-head__cat {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: var(--s-4);
}
.article-head__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 0 var(--s-4);
}
.article-head__deck {
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 var(--s-6);
}
.article-head__byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
}
.article-head__byline-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted-soft);
}
.article-head__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-weight: 500;
}
.article-head__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  overflow: hidden;
  flex: 0 0 auto;
}
.article-head__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Hero image */
.article-hero {
  margin: var(--s-6) 0 var(--s-7);
}
.article-hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* background set by .article-hero__image rule in the Image fallback block */
  box-shadow: var(--shadow-md);
  position: relative;
}
.article-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__caption {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--s-3);
  line-height: 1.5;
}

/* Prose */
.prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: var(--s-5); }
.prose > p:first-child { margin-top: 0; }
.prose h2 {
  /* Section openers need enough weight to feel like chapter marks in a
     long-form guide. The previous 24px was only 6px above body — readers
     lost their place. Fluid clamp: 26px on mobile → 34px on desktop. */
  font-size: clamp(1.625rem, 1.15rem + 1.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
}
.prose h3 {
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}
.prose h2 + h3 { margin-top: var(--s-5); }
.prose a {
  color: var(--ocean);
  border-bottom: 1px solid rgba(3, 105, 161, 0.3);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.prose a:hover { border-bottom-color: var(--ocean); }
.prose em { font-family: var(--font-italic); font-style: italic; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol {
  padding-left: 1.5em;
  list-style: disc outside;
}
.prose ol { list-style: decimal outside; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--muted-soft); }
.prose blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--ocean);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
}
.prose img {
  border-radius: var(--radius);
  margin: var(--s-5) 0;
}
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-7) 0; }

/* Aside/callout */
.callout {
  max-width: var(--max-w-prose);
  margin: var(--s-6) auto;
  padding: var(--s-5);
  background: var(--ocean-soft);
  border-left: 3px solid var(--ocean);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-soft);
}
.callout__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ocean-dark);
  margin-bottom: var(--s-2);
}

/* Article foot */
.article-foot {
  max-width: var(--max-w-prose);
  margin: var(--s-8) auto 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.tag {
  display: inline-block;
  padding: 0.4em 0.75em;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-pill);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.tag:hover { color: var(--ink); background: var(--surface-2); }

/* Category pill — the single primary tag identifying the article's category.
   Solid ocean accent; stands apart from the keyword chips that follow. */
.tag--cat {
  color: var(--white);
  background: var(--ocean);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tag--cat:hover { color: var(--white); background: var(--ocean-dark); }

/* Keyword chips — subtle outlined look with a hash prefix. Clearly secondary
   to the category pill but still hoverable, signaling that they route to
   cross-category tag archives. */
.tag--kw {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: calc(0.4em - 1px) calc(0.75em - 1px);
  font-weight: 500;
}
.tag--kw::before {
  content: "#";
  margin-right: 0.15em;
  color: var(--muted-soft);
}
.tag--kw:hover {
  color: var(--ink);
  border-color: var(--ocean);
  background: var(--ocean-soft);
}
.tag--kw:hover::before { color: var(--ocean); }

/* Author card */
.author-card {
  max-width: var(--max-w-prose);
  margin: var(--s-6) auto 0;
  padding: var(--s-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.author-card__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.author-card__role {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0 0 var(--s-2);
  line-height: 1.5;
}

/* ==========================================================================
   Newsletter CTA — clean, confident, gradient-accented
   ========================================================================== */
.newsletter {
  position: relative;
  margin: var(--s-9) 0 0;
  padding: var(--s-9) 0;
  background: linear-gradient(135deg, #0A1628 0%, #0F2A44 40%, #1E3A5F 100%);
  color: var(--white);
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(14, 165, 233, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(249, 115, 22, 0.15), transparent 55%);
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .newsletter__inner { grid-template-columns: 1fr; } }

.newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: var(--s-4);
}
.newsletter__eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--ocean-light);
}
.newsletter__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 var(--s-4);
}
.newsletter__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean-light);
}
.newsletter__dek {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 var(--s-5);
  max-width: 48ch;
}
.newsletter__promises {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}
.newsletter__promises li {
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.newsletter__promises li::before {
  content: '';
  width: 16px; height: 16px;
  background: rgba(14, 165, 233, 0.25);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230EA5E9' stroke-width='2'><path d='m3 8 3 3 7-7'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.newsletter__form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.newsletter__form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--s-2);
}
.newsletter__input-row { display: flex; gap: var(--s-2); }
.newsletter__input {
  flex: 1;
  padding: 0.85em 1em;
  font-size: var(--text-base);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter__input:focus {
  border-color: var(--ocean-light);
  background: rgba(255, 255, 255, 0.12);
}
.newsletter__submit {
  padding: 0.85em 1.4em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
  white-space: nowrap;
}
.newsletter__submit:hover { transform: translateY(-1px); background: var(--ocean-light); color: var(--white); }
.newsletter__fine {
  margin: var(--s-3) 0 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 540px) {
  .newsletter__input-row { flex-direction: column; }
}

/* ==========================================================================
   Footer — clean, minimal
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--s-9) 0 var(--s-5);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--s-4);
  white-space: nowrap;
}
.site-footer__brand > span { white-space: nowrap; }
.site-footer__brand em { font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--ocean-light); }
.site-footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 var(--s-5);
  max-width: 32ch;
}
.site-footer__hq {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}
.site-footer__hq a { color: rgba(255, 255, 255, 0.7); transition: color var(--dur-1) var(--ease); }
.site-footer__hq a:hover { color: var(--white); }

.site-footer__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 var(--s-4);
}
.site-footer__list { display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--dur-1) var(--ease);
}
.site-footer__link:hover { color: var(--white); }

.site-footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: var(--s-9) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.notfound::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(14, 165, 233, 0.08), transparent 60%);
  pointer-events: none;
}
.notfound__content { position: relative; max-width: 520px; margin: 0 auto; }
.notfound__code {
  display: inline-block;
  padding: 0.3em 0.75em;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--ocean-soft);
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-5);
}
.notfound__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.notfound__title em { font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--ocean); }
.notfound__lead {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 var(--s-6);
}
.notfound__actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Search form (inline)
   ========================================================================== */
.search-form {
  display: flex;
  gap: var(--s-2);
  max-width: 560px;
  margin: var(--s-5) 0 0;
}
.search-form__input {
  flex: 1;
  padding: 0.8em 1em;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.search-form__input::placeholder { color: var(--muted-soft); }
.search-form__input:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

/* ==========================================================================
   Motion — subtle entrance
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal var(--dur-4) var(--ease) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-4) var(--ease), transform var(--dur-4) var(--ease);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.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;
}

/* ==========================================================================
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CINEMATIC LAYER — full-bleed hero + bento grid + glass nav states.
   Used on homepage + article page. Activated via body.has-hero.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ========================================================================== */

/* ---------- Body class modifier for cinematic pages ---------- */
body.has-hero { /* marker class — individual rules below hook into it */ }

/* ---------- Nav states on cinematic pages: transparent over hero ----------
   On body.has-hero the nav starts transparent + white text, bleeding into the
   full-bleed image. Once JS adds .nav--scrolled it snaps back to the default
   glass look (rules above). */
body.has-hero .nav { position: fixed; }
body.has-hero .nav::before {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.has-hero .nav .nav-logo,
body.has-hero .nav .nav-logo-wordmark { color: var(--white); }
body.has-hero .nav .nav-logo-serif { color: rgba(255, 255, 255, 0.82); }
body.has-hero .nav .nav-logo-mark { filter: brightness(0) invert(1); }
body.has-hero .nav .nav-links a { color: rgba(255, 255, 255, 0.82); }
body.has-hero .nav .nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
body.has-hero .nav .nav-links a.on { color: var(--white); background: rgba(255, 255, 255, 0.16); }
body.has-hero .nav .nav-search-btn { color: rgba(255, 255, 255, 0.82); }
body.has-hero .nav .nav-search-btn:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
body.has-hero .nav .nav-ham span { background: var(--white); }
/* CTA keeps the coral pop over dark hero — it's the call-to-action, should read. */

/* Scrolled — flip back to glass/ink */
body.has-hero .nav.nav--scrolled::before {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 2px rgba(15, 36, 64, 0.04), 0 8px 24px -10px rgba(15, 36, 64, 0.10);
}
body.has-hero .nav.nav--scrolled .nav-logo { color: var(--ocean-dark); }
body.has-hero .nav.nav--scrolled .nav-logo-wordmark { color: var(--ocean-dark); }
body.has-hero .nav.nav--scrolled .nav-logo-serif { color: var(--muted); }
body.has-hero .nav.nav--scrolled .nav-logo-mark { filter: none; }
body.has-hero .nav.nav--scrolled .nav-links a { color: var(--muted); }
body.has-hero .nav.nav--scrolled .nav-links a:hover { color: var(--ink); background: rgba(14, 55, 90, 0.06); }
body.has-hero .nav.nav--scrolled .nav-links a.on { color: var(--ocean-dark); background: rgba(14, 55, 90, 0.08); }
body.has-hero .nav.nav--scrolled .nav-search-btn { color: var(--muted); }
body.has-hero .nav.nav--scrolled .nav-search-btn:hover { color: var(--ink); background: rgba(14, 55, 90, 0.07); }
body.has-hero .nav.nav--scrolled .nav-ham span { background: var(--ink); }

/* ==========================================================================
   Cinematic hero — full-bleed featured article
   ========================================================================== */
.cinematic-hero {
  position: relative;
  height: clamp(560px, 85svh, 900px);
  width: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--white);
  background: #0A1525;  /* fallback color behind the media */
  isolation: isolate;
}

.cinematic-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Fallback gradient shown when <img> fails (onerror hides img,
     gradient shows through). Real image covers gradient when loaded. */
  background-color: #0A1525;
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(14, 165, 233, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(249, 115, 22, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(3, 105, 161, 0.8), transparent 60%),
    linear-gradient(135deg, #0EA5E9 0%, #0369A1 40%, #0A1525 100%);
}
.cinematic-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06) translateY(0);
  animation: kenburns 18s var(--ease) forwards;
  will-change: transform;
}
.cinematic-hero__media .img-fallback-cine {
  position: absolute;
  inset: 0;
  background-color: #0A1525;
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(14, 165, 233, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(249, 115, 22, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(3, 105, 161, 0.8), transparent 60%),
    linear-gradient(135deg, #0EA5E9 0%, #0369A1 40%, #0A1525 100%);
}
@keyframes kenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.1)  translate3d(-1%, -1%, 0); }
}

/* Dark scrim — radial vignette + bottom gradient for legibility. Two layers
   stacked intentionally: bottom gradient ensures the text area is readable
   regardless of image composition; the vignette adds cinematic depth. */
.cinematic-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* text-area gradient at bottom — deepened so noon-bright hero images
       (lots of white sky / pale stucco) still read cleanly behind the 104px
       display title. Previous 0.75/0.35 wasn't enough over hi-key photos. */
    linear-gradient(to top, rgba(10, 21, 37, 0.88) 0%, rgba(10, 21, 37, 0.55) 28%, rgba(10, 21, 37, 0.15) 55%, transparent 72%),
    /* nav-anchor scrim — fixed 180px band at the top so a bright/washed hero
       image can't swallow the transparent nav. Strong at the top, long feather
       so the transition is invisible. */
    linear-gradient(to bottom, rgba(10, 21, 37, 0.75) 0, rgba(10, 21, 37, 0.5) 56px, rgba(10, 21, 37, 0.22) 110px, rgba(10, 21, 37, 0) 180px),
    /* radial emphasizing bottom-left where the display title anchors */
    radial-gradient(ellipse 70% 55% at 20% 85%, rgba(10, 21, 37, 0.4), transparent 65%);
  pointer-events: none;
}

/* Subtle grain for filmic quality */
.cinematic-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.cinematic-hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem, 10vh, 9rem) 0 clamp(3rem, 8vh, 5rem);
}
.cinematic-hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: end;
}
@media (max-width: 780px) {
  .cinematic-hero__inner { grid-template-columns: 1fr; gap: var(--s-5); }
}

.cinematic-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.4em 0.9em;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: var(--s-5);
  width: fit-content;
}
.cinematic-hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

.cinematic-hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 0 0 var(--s-5);
  max-width: 22ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.cinematic-hero__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}
.cinematic-hero__title a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur-2) var(--ease);
}
.cinematic-hero__title a:hover { opacity: 0.88; }

.cinematic-hero__deck {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 0 var(--s-5);
  text-wrap: pretty;
}

.cinematic-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-5);
}
.cinematic-hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.cinematic-hero__author { color: var(--white); font-weight: 500; }

.cinematic-hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cinematic-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cinematic-hero__cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: var(--coral);
  color: var(--white);
}
.cinematic-hero__cta-primary svg { width: 16px; height: 16px; }

.cinematic-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.4em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.cinematic-hero__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Hero sidebar: 2 related articles (keyword-scored against the hero) ──
   Absolute-positioned, flush to the RIGHT viewport edge so the block hugs the
   window instead of sitting inside the inner container's gutter. Text
   right-aligned to echo the edge anchor. */
.cinematic-hero__stories {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(3rem, 8vh, 5rem);
  z-index: 5;
  width: 320px;
  max-width: 40vw;
  font-family: var(--font-sans);
  text-align: right;
  color: rgba(255, 255, 255, 0.86);
}
.cinematic-hero__stories-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.cinematic-hero__stories .hero-story {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-2) var(--ease);
}
.cinematic-hero__stories .hero-story:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.cinematic-hero__stories .hero-story:hover,
.cinematic-hero__stories .hero-story:hover + .hero-story {
  border-top-color: rgba(255, 255, 255, 0.4);
}
.cinematic-hero__stories .hero-story:hover:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}
.cinematic-hero__stories .hero-story-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.cinematic-hero__stories .hero-story-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--dur-2) var(--ease);
}
.cinematic-hero__stories .hero-story:hover .hero-story-title {
  color: var(--white);
}
/* Hide well before the block starts colliding with the wrapping hero title.
   At ~1200px the 320px stories column + 40px gutter eats into the headline
   area, so pull the plug early rather than let the layers crash. */
@media (max-width: 1200px) {
  .cinematic-hero__stories { display: none; }
}

/* Side-column dossier (vol/issue/coords) — editorial fingerprint */
.cinematic-hero__dossier {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
  text-align: right;
}
.cinematic-hero__dossier strong { color: rgba(255, 255, 255, 0.9); font-weight: 500; }
@media (max-width: 780px) { .cinematic-hero__dossier { text-align: left; } }

/* Scroll hint at very bottom */
.cinematic-hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: scroll-hint-bob 2.6s var(--ease) infinite;
}
.cinematic-hero__scroll-hint svg { width: 14px; height: 14px; }
@keyframes scroll-hint-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50%      { transform: translate(-50%, 4px); opacity: 0.85; }
}
@media (max-width: 780px) { .cinematic-hero__scroll-hint { display: none; } }

/* ==========================================================================
   Bento grid — image-forward browsing below the cinematic hero
   ========================================================================== */
.bento-section {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--white);
  position: relative;
}

.bento-section__header {
  max-width: var(--max-w);
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.bento-section__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.bento-section__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean);
  letter-spacing: -0.015em;
}
.bento-section__lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  margin: var(--s-3) 0 0;
}

/* Bento grid — 4 cols × 2 rows on desktop. Tiles take different spans. */
.bento-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(260px, 26vw, 340px);
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
}
@media (max-width: 980px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; } }

.bento-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #0A1525;
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(14, 165, 233, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(249, 115, 22, 0.3), transparent 55%),
    linear-gradient(135deg, #0EA5E9 0%, #0369A1 50%, #075985 100%);
  isolation: isolate;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* Tile size variants — each article gets a class based on its index */
.bento-tile--hero   { grid-column: span 2; grid-row: span 2; }
.bento-tile--tall   { grid-column: span 1; grid-row: span 2; }
.bento-tile--wide   { grid-column: span 2; grid-row: span 1; }
.bento-tile--std    { grid-column: span 1; grid-row: span 1; }

@media (max-width: 980px) {
  .bento-tile--hero { grid-column: span 2; grid-row: span 2; }
  .bento-tile--tall { grid-column: span 1; grid-row: span 2; }
  .bento-tile--wide { grid-column: span 2; grid-row: span 1; }
  .bento-tile--std  { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 520px) {
  .bento-tile, .bento-tile--hero, .bento-tile--tall,
  .bento-tile--wide, .bento-tile--std { grid-column: span 1; grid-row: span 1; }
}

.bento-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bento-tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter var(--dur-3) var(--ease);
  will-change: transform;
}
.bento-tile:hover .bento-tile__media img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Tile scrim — stronger at bottom where text sits */
.bento-tile__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(10, 21, 37, 0.88) 0%,
      rgba(10, 21, 37, 0.55) 30%,
      rgba(10, 21, 37, 0.15) 55%,
      transparent 75%);
  transition: background var(--dur-2) var(--ease);
  pointer-events: none;
}
.bento-tile:hover .bento-tile__scrim {
  background:
    linear-gradient(to top,
      rgba(10, 21, 37, 0.92) 0%,
      rgba(10, 21, 37, 0.65) 35%,
      rgba(10, 21, 37, 0.2) 60%,
      transparent 80%);
}

.bento-tile__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 2.2vw, 1.75rem);
  color: var(--white);
}

.bento-tile__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.bento-tile__eyebrow::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.bento-tile__title {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
.bento-tile--hero .bento-tile__title { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.bento-tile--tall .bento-tile__title { font-size: clamp(1.25rem, 1.7vw, 1.625rem); }
.bento-tile--wide .bento-tile__title { font-size: clamp(1.25rem, 1.7vw, 1.625rem); }
.bento-tile--std  .bento-tile__title { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); }
.bento-tile__title a {
  color: inherit;
  position: static;
}
.bento-tile__title a::before {
  /* Makes the whole tile clickable */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

.bento-tile__dek {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: var(--s-2) 0 0;
  max-width: 48ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-tile--std .bento-tile__dek { display: none; }

.bento-tile__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
  margin-top: var(--s-3);
}
.bento-tile__meta .dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* ==========================================================================
   Article page — cinematic hero variant
   ========================================================================== */
.article-hero-cine {
  position: relative;
  height: clamp(480px, 72svh, 780px);
  width: 100%;
  overflow: hidden;
  color: var(--white);
  background: #0A1525;
  isolation: isolate;
}
.article-hero-cine__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0A1525;
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(14, 165, 233, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(249, 115, 22, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(3, 105, 161, 0.8), transparent 60%),
    linear-gradient(135deg, #0EA5E9 0%, #0369A1 40%, #0A1525 100%);
}
.article-hero-cine__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: kenburns 22s var(--ease) forwards;
}
.article-hero-cine__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Article hero carries a 76px title + dim subtitle — deeper scrim so
       long titles stay readable over bright imagery. */
    linear-gradient(to top, rgba(10, 21, 37, 0.9) 0%, rgba(10, 21, 37, 0.55) 35%, rgba(10, 21, 37, 0.15) 60%, transparent 78%),
    linear-gradient(to bottom, rgba(10, 21, 37, 0.55) 0%, transparent 28%);
  pointer-events: none;
}
.article-hero-cine__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.article-hero-cine__content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: clamp(6rem, 12vh, 10rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.article-hero-cine__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--s-4);
}
.article-hero-cine__breadcrumb a { color: rgba(255, 255, 255, 0.8); transition: color var(--dur-1) var(--ease); }
.article-hero-cine__breadcrumb a:hover { color: var(--white); }
.article-hero-cine__breadcrumb svg { width: 12px; height: 12px; color: rgba(255, 255, 255, 0.4); }

.article-hero-cine__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.9em;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: var(--s-5);
  width: fit-content;
}
.article-hero-cine__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.article-hero-cine__title {
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0 0 var(--s-4);
  max-width: 26ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.article-hero-cine__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.article-hero-cine__deck {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 0 var(--s-5);
}
.article-hero-cine__byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}
.article-hero-cine__byline .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* Copy-link button (inside hero byline and elsewhere) */
.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  margin: -4px 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.005em;
  transition: background var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.copy-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}
.copy-link:active { transform: scale(0.97); }
.copy-link__icon {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform var(--dur-1) var(--ease);
}
.copy-link:hover .copy-link__icon { opacity: 1; transform: rotate(-8deg); }
.copy-link.is-copied {
  background: rgba(96, 199, 172, 0.18);
  border-color: rgba(96, 199, 172, 0.36);
  color: #a8ecda;
}
.copy-link.is-copied .copy-link__icon { transform: none; }
.article-hero-cine__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--white);
  font-weight: 500;
}
.article-hero-cine__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean));
  overflow: hidden;
  flex: 0 0 auto;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.article-hero-cine__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* On article page, the prose starts immediately below the cinematic hero
   with extra breathing room. */
.article-body-wrap {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

/* Full-bleed image break mid-article (use inside .prose with class break-out) */
.prose .break-out {
  margin-left: calc(50% - 50vw + 16px);
  margin-right: calc(50% - 50vw + 16px);
  margin-top: var(--s-6);
  margin-bottom: var(--s-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 780px) {
  .prose .break-out { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; }
}

/* Large pull-quote treatment — only for quotes that break out */
.prose blockquote.pull {
  margin: var(--s-7) calc(50% - 50vw + 16px) var(--s-7);
  padding: 0;
  border: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  max-width: none;
  font-family: var(--font-italic);
  font-style: italic;
  text-wrap: balance;
}
.prose blockquote.pull::before { content: '"'; color: var(--ocean); margin-right: 0.1em; }
.prose blockquote.pull::after  { content: '"'; color: var(--ocean); margin-left: 0.1em; }

/* ==========================================================================
   Compact category rail — horizontal scroll-snap carousel
   ========================================================================== */
.rail-section { padding: clamp(3rem, 5vw, 4.5rem) 0; background: var(--surface); }
.rail-section--white { background: var(--white); }
.rail-header {
  max-width: var(--max-w);
  margin: 0 auto var(--s-5);
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
}
.rail-header__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.rail-header__title em { font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--ocean); }

.rail {
  display: flex;
  gap: var(--s-4);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * {
  flex: 0 0 clamp(280px, 32vw, 400px);
  scroll-snap-align: start;
}

/* ==========================================================================
   Related articles grid (article-page footer)
   ========================================================================== */
.related-section {
  background: var(--surface);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.related-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reading progress bar — fixed top, fills on scroll
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.reading-progress.is-visible { opacity: 1; }
.reading-progress__fill {
  height: 100%;
  width: var(--reading-progress, 0%);
  background: linear-gradient(90deg, var(--ocean) 0%, var(--ocean-light) 50%, var(--coral) 100%);
  transition: width 120ms linear;
  box-shadow: 0 0 12px rgba(3, 105, 161, 0.4);
}

/* ==========================================================================
   Reduce motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cinematic-hero__media img,
  .article-hero-cine__media img { animation: none !important; transform: none !important; }
  .cinematic-hero__scroll-hint { animation: none !important; }
  .bento-tile:hover .bento-tile__media img { transform: none; }
}

/* ==========================================================================
   Footer social icons
   ========================================================================== */
.site-footer__socials {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.site-footer__socials li { margin: 0; }

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--ink-muted, rgba(255,255,255,0.72));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
}
.site-footer__social:hover,
.site-footer__social:focus-visible {
  color: var(--coral, #fb923c);
  background: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.32);
  transform: translateY(-1px);
}
.site-footer__social:focus-visible {
  outline: 2px solid var(--coral, #fb923c);
  outline-offset: 2px;
}
.site-footer__social svg { display: block; }

/* Screen-reader-only utility (if not already defined elsewhere) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Article layout — main column + sticky sidebar (TOC + related)
   ========================================================================== */
.article-layout {
  display: grid;
  /* Wider prose + narrower sidebar so the article fills more of the
     viewport. The prose column caps at 820px (still a comfortable
     measure) and the sidebar is capped at 260px. */
  grid-template-columns: minmax(0, 820px) minmax(220px, 260px);
  column-gap: clamp(2.5rem, 5vw, 5rem);
  /* NO align-items: start — we need the aside to stretch to the grid
     row height so the sticky inner has room to stick the full article. */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.article-layout--no-toc {
  grid-template-columns: minmax(0, 820px) minmax(200px, 240px);
}
.article-main {
  /* Explicit placement — the aside precedes main in the DOM so without
     explicit columns auto-flow would drop main into row 2. */
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.article-main .prose {
  /* Parent column caps the measure; don't double-cap. */
  max-width: none;
}
.article-main .article-summary {
  margin: 0 0 var(--s-6);
  font-size: var(--text-xl);
  color: var(--ink);
  font-weight: 500;
}

/* ── 30 Second Summary card ───────────────────────────────────────── */
.article-summary-card {
  margin: 0 0 var(--s-6);
  padding: 16px 20px 18px;
  background: rgba(14, 55, 90, 0.035);
  border: 1px solid rgba(14, 55, 90, 0.08);
  border-left: 3px solid var(--ocean, #0E6FB8);
  border-radius: 8px;
}
.article-summary-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-dark, #0C4A73);
  margin-bottom: 10px;
}
.article-summary-card__icon { color: var(--ocean, #0E6FB8); }
.article-summary-card__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft, #2C3E52);
  font-weight: 400;
}
.article-summary-card__body > :first-child { margin-top: 0; }
.article-summary-card__body > :last-child { margin-bottom: 0; }
.article-summary-card__body p { margin: 0 0 10px; }
.article-summary-card__body p:last-child { margin-bottom: 0; }

.article-sidebar {
  grid-column: 2;
  grid-row: 1;
  /* No height constraint — aside stretches to row height (default
     align-items: stretch), giving the sticky inner room to stick. */
}
.article-sidebar__inner {
  /* Pure sticky — no inner scroll. The inner scroll was capturing wheel
     events and locking the page. TOC now fits because it's h2-only. */
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

/* ── Table of contents (scrollspy target) ───────────────────────────────── */
.article-toc {
  border-left: 1px solid var(--border);
  padding: 2px 0 2px var(--s-4);
}
.article-toc__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.article-toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-toc__item { margin: 0; }
.article-toc__item--l3 { padding-left: var(--s-3); }
.article-toc__link {
  display: block;
  position: relative;
  /* Let long headings wrap to as many lines as they need — clamping was
     cutting off the third line mid-word. Padding + line-height still hit
     the 44px min touch-target on 2-line titles, and longer titles just
     take more vertical room (acceptable in a sticky sidebar). */
  padding: 10px 0 10px 2px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color var(--dur-1) var(--ease);
  text-decoration: none;
  border: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.article-toc__link:hover { color: var(--ink); }
.article-toc__link::before {
  content: "";
  position: absolute;
  left: calc(var(--s-4) * -1 - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 14px;
  background: transparent;
  border-radius: 2px;
  transition: background var(--dur-1) var(--ease);
}
.article-toc__link.is-active {
  color: var(--ocean);
  font-weight: 600;
}
.article-toc__link.is-active::before {
  background: var(--ocean);
}

/* ── Related list in sidebar ────────────────────────────────────────────── */
.article-aside-related__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  list-style: none;
  padding: 0;
  margin: var(--s-1) 0 0;
}
.article-aside-related__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: 0;
  color: inherit;
  border: 0;
  transition: transform var(--dur-1) var(--ease);
}
.article-aside-related__link:hover { transform: translateX(2px); }
.article-aside-related__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,87,146,0.14), rgba(251,146,60,0.18));
  flex: 0 0 auto;
}
.article-aside-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-aside-related__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.article-aside-related__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-aside-related__title {
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur-1) var(--ease);
}
.article-aside-related__link:hover .article-aside-related__title {
  color: var(--ocean);
}

/* ── Sidebar CTA card ───────────────────────────────────────────────────── */
.article-aside-cta {
  background: linear-gradient(160deg, rgba(0,87,146,0.06) 0%, rgba(251,146,60,0.09) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
}
.article-aside-cta__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: var(--s-2);
}
.article-aside-cta__body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 var(--s-3);
}
.article-aside-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.article-aside-cta__btn:hover {
  color: var(--coral, #fb923c);
  border-bottom-color: var(--coral, #fb923c);
}
.article-aside-cta__btn svg { transition: transform var(--dur-1) var(--ease); }
.article-aside-cta__btn:hover svg { transform: translateX(2px); }

/* ── Article share row (bottom of main column) ──────────────────────────── */
.article-share {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--s-5);
}
.article-share button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* ── Tablet / mobile: stack sidebar below main ──────────────────────────── */
@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--max-w-prose);
  }
  /* Reset the explicit grid-row from the desktop rules so the two
     children stack into separate rows instead of piling into row 1. */
  .article-main {
    grid-column: 1;
    grid-row: 1;
  }
  .article-sidebar {
    grid-column: 1;
    grid-row: 2;
    margin-top: var(--s-7);
  }
  .article-sidebar__inner {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .article-toc {
    padding: var(--s-4);
    border-left: 0;
    background: var(--surface);
    border-radius: var(--radius);
  }
  .article-toc__link::before { display: none; }
}

/* ==========================================================================
   Related articles — full-width grid beneath the article
   ========================================================================== */
.related-section {
  background: var(--surface);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.related-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.related-section__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.related-section__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--ocean);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  /* Bottom-accent underline that reveals on hover. No vertical lift or
     ambient shadow — restrained aesthetic per design direction. */
  border-bottom: 2px solid transparent;
  transition: border-bottom-color var(--dur-2) var(--ease);
}
.related-card:hover {
  border-bottom-color: var(--ocean, #0E6FB8);
}
.related-card__link {
  display: block;
  color: inherit;
  border: 0;
}
.related-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(0,87,146,0.16), rgba(251,146,60,0.22));
  overflow: hidden;
}
.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-4) var(--ease);
}
.related-card:hover .related-card__media img { transform: scale(1.04); }
.related-card__body {
  padding: var(--s-4) var(--s-5) var(--s-5);
}
.related-card__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: var(--s-2);
}
.related-card__title {
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-2);
  color: var(--ink);
  transition: color var(--dur-1) var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover .related-card__title { color: var(--ocean); }
.related-card__dek {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 var(--s-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  color: var(--muted);
}
.related-card__meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
}

/* Smooth-scroll offset so TOC anchors don't hide under the sticky nav */
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   .dim — subtitle de-emphasis inside headings
   The admin editor stores an optional <span class="dim">...</span> in an
   article's h1 to visually soften a subtitle portion. Over cinematic
   white-on-image heroes we use a translucent white; over light surfaces
   (bento tiles already have a scrim) we match the parent's ink colour at
   a reduced weight + alpha.
   ========================================================================== */
.cinematic-hero__title .dim,
.article-hero-cine__title .dim {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 400;
  letter-spacing: -0.015em;
  display: block;
  font-size: 0.72em;
  margin-top: 0.3em;
  line-height: 1.2;
}
.bento-tile__title .dim {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
  display: block;
  font-size: 0.78em;
  margin-top: 0.25em;
  line-height: 1.25;
}
/* Generic fallback for any heading using .dim on a light surface */
h1 .dim,
h2 .dim,
h3 .dim {
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   De-italic override — Instrument Serif removed per brand direction
   Every decorative <em> in display type now renders upright Geist, keeping
   its accent color but losing the cursive face. .prose em still inherits
   Geist (italic remains semantic in body copy).
   ========================================================================== */
:root { --font-italic: var(--font-sans); }

.hero__headline em,
.section__title em,
.archive-header__title em,
.newsletter__title em,
.nav-sub-title em,
.nav-sub-success-title em,
.cinematic-hero__title em,
.bento-section__title em,
.article-hero-cine__title em,
.rail-header__title em,
.related-section__title em,
.site-footer__brand em,
.notfound__title em,
.nav-logo-serif {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
}

/* ==========================================================================
   Inline data charts (.ngp-chart) — figure wraps a Chart.js canvas and a
   collapsible <table> fallback. The table is the SEO + a11y surface so
   search engines and screen readers always get the raw data, even when
   Chart.js hasn't loaded or JS is disabled.
   ========================================================================== */
.ngp-chart {
  background: rgba(14, 55, 90, 0.025);
  border: 1px solid rgba(14, 55, 90, 0.09);
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin: 32px 0;
  position: relative;
}
.ngp-chart-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-dark, #0C4A73);
  margin-bottom: 6px;
}
.ngp-chart figcaption,
.ngp-chart-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink, #0E1E33);
  margin: 0 0 4px;
  display: block;
  font-family: var(--font-sans);
}
.ngp-chart-desc,
.ngp-chart-desc-lg {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #4B5563);
  margin: 0 0 18px;
}
.ngp-chart canvas {
  /* Reserve vertical space so the figure doesn't collapse before
     Chart.js hydrates. Keeps layout stable. */
  display: block;
  width: 100% !important;
  max-height: 360px;
  min-height: 240px;
}
.ngp-chart-detail {
  margin-top: 14px;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted, #4B5563);
  padding: 10px 14px;
  background: rgba(14, 55, 90, 0.05);
  border-left: 3px solid var(--ocean, #0E6FB8);
  border-radius: 0 8px 8px 0;
  display: none;
}
.ngp-chart-detail.visible { display: block; }

/* ── Collapsible data table (SEO / a11y fallback) ───────────────── */
.ngp-chart-data {
  margin: 14px 0 0;
  border-top: 1px dashed rgba(14, 55, 90, 0.18);
  padding-top: 10px;
}
.ngp-chart-data > summary {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ocean-dark, #0C4A73);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  user-select: none;
}
.ngp-chart-data > summary::-webkit-details-marker { display: none; }
.ngp-chart-data > summary::before {
  content: "";
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--dur-1) var(--ease);
  margin-right: 2px;
}
.ngp-chart-data[open] > summary::before { transform: rotate(45deg); }
.ngp-chart-data > summary:hover { color: var(--ocean, #0E6FB8); }

.ngp-chart-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 2px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #0E1E33);
}
.ngp-chart-data-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #4B5563);
}
.ngp-chart-data-table th,
.ngp-chart-data-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(14, 55, 90, 0.08);
}
.ngp-chart-data-table th[scope="row"],
.ngp-chart-data-table th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink, #0E1E33);
}
.ngp-chart-data-table thead th {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #4B5563);
  border-bottom: 1px solid rgba(14, 55, 90, 0.14);
}
.ngp-chart-data-table tr:last-child th,
.ngp-chart-data-table tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .ngp-chart { padding: 18px 14px 14px; }
  .ngp-chart figcaption,
  .ngp-chart-title { font-size: 15.5px; }
  .ngp-chart canvas { max-height: 300px; min-height: 200px; }
  .ngp-chart-data-table th,
  .ngp-chart-data-table td { padding: 6px 8px; font-size: 12px; }
}


/* Author card extended bio paragraph */
.author-card__bio {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted, #4B5563);
  max-width: 62ch;
}


/* ── FAQ accordion ────────────────────────────────────────────────── */
.article-faq {
  max-width: var(--max-w-prose);
  margin: var(--s-8) auto;
}
.article-faq__heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item__question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::marker { display: none; }
.faq-item__question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ocean, #0E6FB8);
  border-bottom: 2px solid var(--ocean, #0E6FB8);
  transform: rotate(-45deg);
  transition: transform var(--dur-1, 0.18s) var(--ease, ease);
  margin-top: -2px;
}
.faq-item[open] > .faq-item__question::after {
  transform: rotate(45deg);
  margin-top: 2px;
}
.faq-item__question:hover { color: var(--ocean, #0E6FB8); }
.faq-item__answer {
  padding: 0 0 var(--s-5);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-soft, #2C3E52);
}
