/* ==========================================================================
   Inverter HQ, premium editorial design system (theme.css)
   Solar PV systems and inverters. Modern independent publisher look.
   Palette, type, components. WCAG AA. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Brand palette (design seed) */
  --ink: #0B1B2B;
  --brand: #0E6BD6;
  --brand-deep: #0A4C97;
  --accent: #FFB020;
  --accent-warm: #FF8A3D;
  --bg: #FFFFFF;
  --surface: #F4F8FC;
  --line: #E4EAF1;
  --text: #14212C;
  --muted: #5A6B7A;

  /* Derived tints */
  --brand-soft: #E7F1FC;
  --brand-tint: #F0F7FE;
  --accent-soft: #FFF3DD;
  --ink-90: rgba(11, 27, 43, .90);
  --ink-70: rgba(11, 27, 43, .70);
  --on-ink: #E8F0F8;
  --on-ink-muted: #9FB4C7;

  /* Signature gradients */
  --grad-hero: linear-gradient(120deg, #0E6BD6, #22C3E6 55%, #FFB020);
  --grad-accent: linear-gradient(120deg, #FF8A3D, #FFB020);
  --grad-text: linear-gradient(100deg, #0E6BD6 0%, #22C3E6 55%, #0A4C97 100%);
  --grad-ink: linear-gradient(180deg, #0B1B2B 0%, #0A2136 100%);

  /* Overlays for image cards */
  --overlay-card: linear-gradient(180deg, rgba(11, 27, 43, 0) 30%, rgba(11, 27, 43, .82) 100%);
  --overlay-hero: linear-gradient(120deg, rgba(10, 34, 58, .78) 0%, rgba(10, 34, 58, .45) 55%, rgba(10, 34, 58, .18) 100%);

  /* Radii */
  --r-card: 18px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Shadows (soft, layered) */
  --sh-1: 0 2px 8px rgba(11, 27, 43, .05);
  --sh-2: 0 10px 30px rgba(11, 27, 43, .08);
  --sh-3: 0 20px 48px rgba(11, 27, 43, .14);
  --sh-brand: 0 12px 30px rgba(14, 107, 214, .28);
  --sh-accent: 0 12px 26px rgba(255, 138, 61, .30);

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --pad: clamp(1.1rem, 4vw, 2.25rem);
  --gap: clamp(1.1rem, 2.5vw, 1.75rem);
  --header-h: 74px;

  /* Fluid type scale (Inter body, Space Grotesk display) */
  --fs-eyebrow: .78rem;
  --fs-sm: .875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.06rem, 1.4vw, 1.22rem);
  --fs-h4: clamp(1.12rem, 1.6vw, 1.3rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.65rem);
  --fs-h2: clamp(1.6rem, 3.2vw, 2.4rem);
  --fs-h1: clamp(2rem, 4.6vw, 3rem);
  --fs-display: clamp(2.4rem, 6vw, 4rem);

  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .32s;

  --focus: 0 0 0 3px rgba(14, 107, 214, .45);
}

/* --------------------------------------------------------- 2. RESET / BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}

p { margin: 0 0 1rem; }
a { color: var(--brand-deep); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: 0 0 .35rem; }

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

strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

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

::selection { background: var(--accent); color: var(--ink); }

/* Focus visibility on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Screen reader only */
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 1200;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 600;
  box-shadow: var(--sh-2);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* -------------------------------------------------------- 3. LAYOUT WRAP */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.site-main { display: block; min-height: 40vh; }

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--grad-ink); color: var(--on-ink); }

/* Eyebrow label + section heads */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .7rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.section--ink .eyebrow { color: var(--accent); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}
.section__heading { max-width: 640px; }
.section__title { font-size: var(--fs-h2); margin: 0; }
.section__lead { color: var(--muted); font-size: var(--fs-lead); margin: .6rem 0 0; }
.section--ink .section__title { color: #fff; }
.section--ink .section__lead { color: var(--on-ink-muted); }

.section__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-family: var(--ff-head);
  color: var(--brand-deep);
  white-space: nowrap;
}
.section__link::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.section__link:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------- 4. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  text-align: center;
  cursor: pointer;
}
.btn--primary {
  border-radius: var(--r-pill);
  color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14, 107, 214, .38); }
.btn--accent {
  border-radius: var(--r-pill);
  color: var(--ink);
  background: var(--grad-accent);
  box-shadow: var(--sh-accent);
}
.btn--accent:hover { color: var(--ink); transform: translateY(-2px); }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-tint); transform: translateY(-2px); }
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
}
.btn--ghost-light:hover { color: var(--ink); background: #fff; border-color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .6rem 1.05rem; font-size: .875rem; }

/* --------------------------------------------------------------- 5. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.site-header__brand { display: flex; align-items: center; flex-shrink: 0; }
.site-header__brand .custom-logo-link { display: block; line-height: 0; }
.site-header__brand img { max-height: 42px; width: auto; }
.site-header__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.site-header__title::before {
  content: "";
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad-hero);
  box-shadow: var(--sh-brand);
  flex-shrink: 0;
}
.site-header__title:hover { color: var(--brand-deep); }

/* Primary nav */
.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1vw, 1.1rem);
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.site-nav__item { margin: 0; }
.site-nav__link {
  position: relative;
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: .96rem;
  color: var(--text);
  padding: .5rem .35rem;
  white-space: nowrap;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: .35rem; right: .35rem;
  bottom: .1rem;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--brand-deep); }
.site-nav__link:hover::after,
.current-menu-item > .site-nav__link::after,
.current-menu-parent > .site-nav__link::after,
.current-menu-ancestor > .site-nav__link::after {
  transform: scaleX(1);
}
.current-menu-item > .site-nav__link { color: var(--brand-deep); }

/* Header actions */
.site-header__actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.header-search-toggle,
.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header-search-toggle:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--line); }
.header-search-toggle__icon { width: 20px; height: 20px; }
.nav-toggle { display: none; }

/* Hamburger bars */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Expanding header search panel */
.header-search {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: var(--header-h);
  z-index: 880;
  animation: dropdown .3s var(--ease);
}
.header-search[hidden] { display: none; }
.header-search .wrap { padding-block: .9rem; }
@keyframes dropdown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------- 6. SEARCH FORM */
.search-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .3rem .3rem .3rem 1.1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 6px 18px -8px rgba(14, 107, 214, .5); }
.search-form__input {
  flex: 1;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  padding: .55rem 0;
  outline: none;
  min-width: 0;
}
.search-form__input::-webkit-search-decoration,
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* The wrapper shows focus (border + glow); the input must NOT draw its own inner ring. */
.search-form__input:focus,
.search-form__input:focus-visible { box-shadow: none; outline: none; }
.search-form__input::placeholder { color: var(--muted); }
.search-form__submit {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease);
}
.search-form__submit:hover { transform: scale(1.05); }
.search-form__icon { width: 20px; height: 20px; }

/* --------------------------------------------------------- 7. MOBILE DRAWER */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 20, 33, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer-backdrop[hidden] { display: none; }
.drawer-backdrop.is-open { opacity: 1; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1001;
  width: min(88vw, 360px);
  pointer-events: none;
}
.mobile-drawer__panel {
  position: absolute;
  inset: 0;
  background: var(--bg);
  box-shadow: -20px 0 48px rgba(11, 27, 43, .22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  pointer-events: auto;
}
.mobile-drawer--open { pointer-events: auto; }
.mobile-drawer--open .mobile-drawer__panel { transform: translateX(0); }

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer__brand { font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.mobile-drawer__close {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.mobile-drawer__close:hover { background: var(--brand-tint); color: var(--brand-deep); }
.mobile-drawer__search { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.mobile-drawer__nav { padding: .5rem 0 1.5rem; }
.mobile-drawer__list { list-style: none; margin: 0; padding: 0; }
.mobile-drawer__list li { margin: 0; }
.mobile-drawer__list a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.4rem;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer__list a::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--grad-accent);
  flex-shrink: 0;
}
.mobile-drawer__list a:hover,
.mobile-drawer__list .current-menu-item > a { color: var(--brand-deep); background: var(--brand-tint); }

/* ----------------------------------------------------------- 8. POST CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid__empty,
.archive-body__empty { color: var(--muted); grid-column: 1 / -1; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: #d3e0ef; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__image { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.card__cat {
  align-self: flex-start;
  font-family: var(--ff-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: .28rem .6rem;
  border-radius: var(--r-pill);
}
.card__cat:hover { background: var(--brand); color: #fff; }
.card__title { font-size: var(--fs-h4); margin: 0; line-height: 1.28; }
.card__title-link { color: var(--ink); }
.card__title-link:hover { color: var(--brand-deep); }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .3rem;
}
.card__dot { color: var(--line); }

/* ------------------------------------------------------------------ 9. HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-ink);
  color: var(--on-ink);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11, 27, 43, .93) 0%, rgba(10, 34, 58, .82) 45%, rgba(10, 34, 58, .6) 100%); }
.hero__orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.hero__orb--1 { width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; top: -10%; right: -8%; background: radial-gradient(circle, #22C3E6, transparent 70%); }
.hero__orb--2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; bottom: -18%; left: -6%; background: radial-gradient(circle, #0E6BD6, transparent 70%); opacity: .5; }
.hero__orb--3 { width: 26vw; height: 26vw; max-width: 340px; max-height: 340px; top: 30%; left: 40%; background: radial-gradient(circle, #FFB020, transparent 70%); opacity: .28; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.hero__headline {
  font-size: var(--fs-display);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1.1rem;
  letter-spacing: -.025em;
}
.hero__word--grad {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__deck {
  font-size: var(--fs-lead);
  color: var(--on-ink-muted);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.9rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.hero__trust li { margin: 0; }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
}
.hero__trust-label { font-size: .8rem; color: var(--on-ink-muted); margin-top: .25rem; }

/* Hero secondary featured stack */
.hero__aside { display: flex; flex-direction: column; gap: .85rem; }
.hero__aside-title {
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin: 0 0 .2rem;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-card);
  padding: .7rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-feature:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); border-color: rgba(34, 195, 230, .4); }
.hero-feature__media {
  flex-shrink: 0;
  width: 92px; height: 68px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}
.hero-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature__body { min-width: 0; }
.hero-feature__cat {
  font-family: var(--ff-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-feature__title {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
  color: #fff;
  margin: .2rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-feature:hover .hero-feature__title { color: var(--on-ink); }

/* ------------------------------------------------------ 10. TOPIC CARDS */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.topic-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-1);
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.topic-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.topic-card:hover .topic-card__image { transform: scale(1.07); }
.topic-card__overlay { position: absolute; inset: 0; background: var(--overlay-card); }
.topic-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.35rem 1.4rem;
  color: #fff;
  z-index: 1;
}
.topic-card__name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 .3rem;
}
.topic-card__desc {
  font-size: .88rem;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-card__count {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: .3rem .65rem;
  border-radius: var(--r-pill);
}

/* -------------------------------------------------- 11. FEATURE CARDS / PICKS */
.picks {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--gap);
}
.picks__aside { display: flex; flex-direction: column; gap: var(--gap); }

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: #d3e0ef; }
.feature-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.feature-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feature-card:hover .feature-card__image { transform: scale(1.05); }
.feature-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.feature-card__cat {
  align-self: flex-start;
  font-family: var(--ff-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: .28rem .6rem;
  border-radius: var(--r-pill);
}
.feature-card__title { margin: 0; line-height: 1.22; font-size: var(--fs-h3); }
.feature-card--lead .feature-card__title { font-size: var(--fs-h2); }
.feature-card__title-link { color: var(--ink); }
.feature-card__title-link:hover { color: var(--brand-deep); }
.feature-card__excerpt { color: var(--muted); margin: 0; flex: 1; }
.feature-card__meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.feature-card__dot { color: var(--line); }

/* Compact horizontal pick */
.pick-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: .7rem;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pick-row:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #d3e0ef; }
.pick-row__media { flex-shrink: 0; width: 118px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.pick-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pick-row:hover .pick-row__media img { transform: scale(1.06); }
.pick-row__body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.pick-row__cat { font-family: var(--ff-head); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); }
.pick-row__title { font-size: 1rem; line-height: 1.3; margin: 0; }
.pick-row__title a { color: var(--ink); }
.pick-row__title a:hover { color: var(--brand-deep); }
.pick-row__meta { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------- 12. TRUST / E-E-A-T */
.trust-band { background: var(--surface); }
.trust-band__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.trust-band__media { flex-shrink: 0; }
.trust-band__portrait {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
  padding: 5px;
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent), var(--sh-2);
}
.trust-band__name { font-size: var(--fs-h3); margin: 0 0 .2rem; }
.trust-band__role { color: var(--brand-deep); font-weight: 600; font-family: var(--ff-head); margin: 0 0 1.35rem; }
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.value-prop {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.value-prop__title { display: block; font-family: var(--ff-head); font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.value-prop__text { display: block; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------- 13. TRENDING */
.trending-band { background: var(--grad-ink); color: var(--on-ink); }
.trending {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .5rem 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.trending__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin: 0;
}
.trending__rank {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  min-width: 42px;
  flex-shrink: 0;
}
.trending__body { min-width: 0; }
.trending__link {
  display: block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  line-height: 1.3;
}
.trending__link:hover { color: var(--accent); }
.trending__meta { font-size: .8rem; color: var(--on-ink-muted); margin-top: .2rem; display: block; }

/* ------------------------------------------------------ 14. NEWSLETTER */
.newsletter {
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 28px);
  background: var(--grad-ink);
  color: var(--on-ink);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  isolation: isolate;
}
.newsletter::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 195, 230, .5), transparent 70%);
  filter: blur(50px);
  top: -40%; right: -10%;
  z-index: -1;
}
.newsletter__title { color: #fff; font-size: var(--fs-h2); margin: 0 0 .5rem; }
.newsletter__text { color: var(--on-ink-muted); margin: 0; }
.newsletter__form { display: flex; flex-direction: column; gap: .7rem; }
.newsletter__field { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: var(--r-md);
  padding: .95rem 1.1rem;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 176, 32, .3); }
.newsletter__input:user-invalid { border-color: #ff8a8a; }
.newsletter__note { font-size: .78rem; color: var(--on-ink-muted); margin: 0; }
.newsletter__success {
  display: none;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-head);
  font-weight: 600;
  color: #fff;
  background: rgba(34, 195, 230, .16);
  border: 1px solid rgba(34, 195, 230, .4);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
}
.newsletter__success::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; flex-shrink: 0; }
.newsletter.is-success .newsletter__form { display: none; }
.newsletter.is-success .newsletter__success { display: flex; }

/* --------------------------------------------------------- 15. FAQ */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: #cfe0f2; box-shadow: var(--sh-1); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.35rem 1.3rem; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------------------------------------------------------- 16. BREADCRUMBS */
.breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  list-style: none;
  padding: 0;
  min-width: 0;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; }
/* Keep the breadcrumb on ONE line: earlier crumbs stay put, the long final crumb (post title) truncates. */
.breadcrumbs li:last-child { flex-shrink: 1; min-width: 0; }
.breadcrumbs li:last-child > a,
.breadcrumbs li:last-child > [aria-current="page"] {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.breadcrumbs__sep { flex-shrink: 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-deep); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }
.breadcrumbs--light { color: rgba(255, 255, 255, .8); }
.breadcrumbs--light a { color: rgba(255, 255, 255, .8); }
.breadcrumbs--light a:hover { color: #fff; }
.breadcrumbs--light [aria-current="page"] { color: #fff; }
.breadcrumbs--light .breadcrumbs__sep { color: rgba(255, 255, 255, .4); }

/* ------------------------------------------------------ 17. SINGLE POST */
.single__head { padding-top: clamp(2rem, 4vw, 3rem); }
.single__cat {
  display: inline-flex;
  font-family: var(--ff-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.single__cat:hover { color: #fff; box-shadow: var(--sh-brand); }
.single__title { font-size: var(--fs-h1); margin: 0 0 1.1rem; }
.single__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  color: var(--muted);
  font-size: .9rem;
}
.single__author-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
.single__byline-link { color: var(--ink); font-weight: 600; }
.single__byline-link:hover { color: var(--brand-deep); }
.single__dot { color: var(--line); }
.single__updated { color: var(--brand-deep); font-weight: 500; }

.single__hero { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }
.single__hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--sh-2);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.single-layout--toc { grid-template-columns: 250px minmax(0, 1fr); }
.single__content-col { min-width: 0; max-width: 760px; margin-inline: auto; width: 100%; }

/* TOC */
.single__toc-col { position: relative; }
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 1.25rem 1.3rem;
}
.toc[hidden] { display: none; }
.toc__title {
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .8rem;
}
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.toc__item { margin: 0; }
.toc__item--sub { padding-left: .9rem; }
.toc__link {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  padding: .35rem .5rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  line-height: 1.35;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc__link:hover { color: var(--brand-deep); background: var(--brand-tint); }
.toc__link.is-active { color: var(--brand-deep); font-weight: 600; border-left-color: var(--accent); background: var(--brand-tint); }

.toc-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: .85rem 1.1rem;
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}
.toc-mobile-toggle::after { content: "\25BE"; color: var(--brand); transition: transform var(--dur) var(--ease); }
.toc.is-open .toc-mobile-toggle::after { transform: rotate(180deg); }

/* -------------------------------------------------- 18. ENTRY CONTENT */
.entry-content { font-size: clamp(1.0625rem, .4vw + 1rem, 1.15rem); line-height: 1.75; color: var(--text); }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: var(--fs-h3); margin-top: 2.4rem; margin-bottom: .2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h3 { font-size: var(--fs-h4); margin-top: 1.8rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--grad-accent); border-radius: 3px; margin-top: .55rem; }
.entry-content a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(14, 107, 214, .35); }
.entry-content a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content ul li::marker { color: var(--brand); }
.entry-content ol li::marker { color: var(--brand); font-weight: 700; font-family: var(--ff-head); }
.entry-content img { border-radius: var(--r-card); box-shadow: var(--sh-1); }
.entry-content blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.5rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--surface);
  padding: .15em .45em;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.entry-content pre {
  background: var(--ink);
  color: var(--on-ink);
  padding: 1.2rem 1.35rem;
  border-radius: var(--r-md);
  overflow-x: auto;
}
.entry-content pre code { background: transparent; border: 0; color: inherit; padding: 0; }

/* Tables scroll on mobile */
.entry-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.entry-content table { margin: 1.5rem 0; }
.entry-content .table-scroll table { margin: 0; border: 0; }
.entry-content th, .entry-content td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.entry-content thead th { background: var(--surface); font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) { background: rgba(244, 248, 252, .5); }

/* Callout blocks (key-takeaways / tip) */
.is-style-callout,
.key-takeaways,
.tip {
  position: relative;
  border-radius: var(--r-card);
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.key-takeaways {
  background: var(--brand-tint);
  border-color: #cfe0f2;
  border-left: 4px solid var(--brand);
}
.tip {
  background: var(--accent-soft);
  border-color: #f4e0b8;
  border-left: 4px solid var(--accent);
}
.key-takeaways > :first-child,
.tip > :first-child { margin-top: 0; }
.key-takeaways > :last-child,
.tip > :last-child { margin-bottom: 0; }
.key-takeaways strong:first-child,
.tip strong:first-child { font-family: var(--ff-head); color: var(--ink); }

/* Tags */
.single__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.single__tag {
  font-size: .84rem;
  font-weight: 500;
  color: var(--brand-deep);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.single__tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* -------------------------------------------------- 19. AUTHOR BOX */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2.75rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.author-box__media { display: flex; }
.author-box__ring {
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent), var(--sh-1);
}
.author-box__avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; display: block; }
.author-box__eyebrow {
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .25rem;
}
.author-box__name { font-size: var(--fs-h4); margin: 0 0 .3rem; }
.author-box__name-link { color: var(--ink); }
.author-box__name-link:hover { color: var(--brand-deep); }
.author-box__role { color: var(--brand-deep); font-weight: 600; font-family: var(--ff-head); font-size: .9rem; margin: 0 0 .7rem; }
.author-box__bio { color: var(--muted); font-size: .95rem; margin: 0 0 .9rem; }
.author-box__badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.author-box__badge {
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid #f4e0b8;
  padding: .28rem .65rem;
  border-radius: var(--r-pill);
}
.author-box__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.author-box__count { font-size: .85rem; color: var(--muted); }
.author-box__count strong { color: var(--ink); font-family: var(--ff-head); }
.author-box__more { font-weight: 600; font-family: var(--ff-head); color: var(--brand-deep); display: inline-flex; align-items: center; gap: .35rem; }
.author-box__more::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.author-box__more:hover::after { transform: translateX(4px); }

/* ------------------------------------------------- 20. POST NAV + RELATED */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-nav__link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #d3e0ef; }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__dir {
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.post-nav__title { font-family: var(--ff-head); font-weight: 600; color: var(--ink); line-height: 1.3; }

.related { padding-top: clamp(2rem, 4vw, 3rem); }
.related__title { font-size: var(--fs-h3); margin: 0 0 1.5rem; }

/* ------------------------------------------------ 21. ARCHIVE / CATEGORY */
.cat-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--grad-ink);
}
.cat-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10, 27, 43, .92) 0%, rgba(10, 34, 58, .72) 60%, rgba(10, 76, 151, .55) 100%); }
.cat-hero__eyebrow {
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.cat-hero__title { font-size: var(--fs-h1); color: #fff; margin: 0 0 .8rem; max-width: 20ch; }
.cat-hero__desc { color: rgba(255, 255, 255, .86); max-width: 62ch; font-size: var(--fs-lead); margin: 0 0 1rem; }
.cat-hero__count {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--ff-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
}

.archive-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.archive-head__eyebrow {
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .6rem;
}
.archive-head__title { font-size: var(--fs-h1); margin: 0 0 .6rem; }
.archive-head__desc { color: var(--muted); max-width: 62ch; font-size: var(--fs-lead); }
.archive-body { padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(2.5rem, 5vw, 4rem); }

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  list-style: none;
  padding: 0;
}
.filter-chips li { margin: 0; }
.filter-chip {
  display: inline-flex;
  font-family: var(--ff-head);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .45rem .95rem;
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-chip:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: #cfe0f2; }
.filter-chip.is-active { background: linear-gradient(120deg, var(--brand), var(--brand-deep)); color: #fff; border-color: transparent; }

/* Pagination */
.pagination { margin-top: clamp(2rem, 4vw, 3rem); }
.pagination .nav-links,
.pagination.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; height: 44px;
  padding: 0 .75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pagination .page-numbers:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: #cfe0f2; }
.pagination .page-numbers.current { background: linear-gradient(120deg, var(--brand), var(--brand-deep)); color: #fff; border-color: transparent; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ------------------------------------------------ 22. AUTHOR ARCHIVE */
.author-hero { background: var(--surface); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.author-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: center;
}
.author-hero__avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  padding: 5px;
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent), var(--sh-2);
}
.author-hero__eyebrow {
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .4rem;
}
.author-hero__name { font-size: var(--fs-h1); margin: 0 0 .3rem; }
.author-hero__role { color: var(--brand-deep); font-family: var(--ff-head); font-weight: 600; margin: 0 0 .8rem; }
.author-hero__bio { color: var(--muted); max-width: 66ch; margin: 0 0 1rem; }
.author-hero__stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.author-hero__stat { display: flex; flex-direction: column; }
.author-hero__stat-num { font-family: var(--ff-head); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.author-hero__stat-label { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------ 23. SEARCH / 404 EMPTY */
.state-block { padding-block: clamp(2.5rem, 5vw, 4rem); }
.state-block__inner { text-align: center; max-width: 620px; margin-inline: auto; }
.state-block__eyebrow {
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .6rem;
}
.state-block__title { font-size: var(--fs-h1); margin: 0 0 .8rem; }
.state-block__text { color: var(--muted); font-size: var(--fs-lead); margin: 0 auto 1.5rem; max-width: 52ch; }
.state-block__search { max-width: 520px; margin: 0 auto 1.5rem; }
.state-block__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

.error-404__code {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 .5rem;
}

.helpful-links { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.helpful-links__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ---------------------------------------------------------- 24. AD SLOT */
.ad-slot { margin-block: 1.5rem; text-align: center; }
.ad-slot--in-article { margin-block: 2.5rem; }
.ad-slot__label {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.ad-slot__body:empty { min-height: 90px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); }
.ad-slot[aria-hidden="true"] { opacity: .9; }

/* ------------------------------------------------------------ 25. FOOTER */
.site-footer {
  background: var(--grad-ink);
  color: var(--on-ink);
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.site-footer__brand-title {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 .8rem;
}
.site-footer__brand-title::before {
  content: "";
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad-hero);
  flex-shrink: 0;
}
.site-footer__brand img { max-height: 40px; width: auto; margin-bottom: .8rem; }
.site-footer__tagline { color: var(--on-ink-muted); max-width: 40ch; margin: 0 0 1.2rem; }
.site-footer__col-title {
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-list li { margin: 0; }
.footer-list a { color: var(--on-ink-muted); font-size: .95rem; }
.footer-list a:hover { color: #fff; padding-left: 3px; }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.3rem;
}
.footer-legal__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-legal__list li { margin: 0; }
.footer-legal__link,
.cookie-settings-btn {
  color: var(--on-ink-muted);
  font-size: .85rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--ff-body);
  cursor: pointer;
}
.footer-legal__link:hover,
.cookie-settings-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__copy { color: var(--on-ink-muted); font-size: .85rem; margin: 0; }
.site-footer__made { color: var(--on-ink-muted); font-size: .85rem; margin: 0; }

/* ------------------------------------------------------- 26. BACK TO TOP */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 700;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--sh-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.back-to-top[hidden] { display: none; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top__icon { width: 20px; height: 20px; }

/* ----------------------------------------------------- 27. COOKIE CONSENT */
.cookie-consent {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 1100;
  width: min(400px, calc(100vw - 2rem));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-consent__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-3);
  padding: 1.35rem 1.4rem 1.4rem;
}
.cookie-consent__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.cookie-consent__title { font-size: 1.1rem; margin: 0; }
.cookie-consent__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-consent__close:hover { background: var(--brand-tint); color: var(--brand-deep); }
.cookie-consent__text { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.6; }
.cookie-consent__link { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; flex-direction: column; gap: .6rem; }
.cookie-consent__row { display: flex; gap: .6rem; }
.cookie-consent__row .btn { flex: 1; }

.cookie-consent__prefs { display: none; margin: .2rem 0 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cookie-consent.show-prefs .cookie-consent__prefs { display: block; }
.cookie-consent__save-row { display: none; }
.cookie-consent.show-prefs .cookie-consent__save-row { display: flex; }
.cookie-consent.show-prefs .cookie-consent__intro-actions { display: none; }
.cookie-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.cookie-toggle:last-of-type { border-bottom: 0; }
.cookie-toggle__info { min-width: 0; }
.cookie-toggle__name { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.cookie-toggle__desc { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.cookie-toggle__switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; }
.cookie-toggle__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease);
  pointer-events: none;
}
.cookie-toggle__track::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease);
}
.cookie-toggle__switch input:checked + .cookie-toggle__track { background: var(--brand); }
.cookie-toggle__switch input:checked + .cookie-toggle__track::before { transform: translateX(18px); }
.cookie-toggle__switch input:disabled + .cookie-toggle__track { background: var(--brand-deep); opacity: .6; }
.cookie-toggle__switch input:focus-visible + .cookie-toggle__track { box-shadow: var(--focus); }

/* -------------------------------------------------- 28. PAGE (generic) */
.page-single__head { padding-top: clamp(2rem, 4vw, 3rem); }
.page-single__title { font-size: var(--fs-h1); margin: 0 0 1rem; }
.page-single__content { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------------------------------------------------- 29. REVEAL ANIM */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger.is-visible > * { animation: rise .6s var(--ease) both; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================== 30. RESPONSIVE */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  html { font-size: 96%; }            /* slightly smaller type on tablet */
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .site-nav__list { gap: .3rem; }
  .site-nav__link { font-size: .9rem; padding: .5rem .3rem; }
}

/* Switch to the mobile (hamburger) header below 1024px so the nav never overflows. */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .single-layout--toc { grid-template-columns: minmax(0, 1fr); }
  .single__toc-col { display: none; } /* remove the mobile "On this page" TOC box; article reads full-width */
  .picks { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .trust-band__inner { grid-template-columns: 1fr; text-align: center; }
  .trust-band__portrait { margin-inline: auto; }
  .value-props { text-align: left; }
}

@media (max-width: 768px) {
  .card-grid,
  .topic-grid,
  .helpful-links__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  /* Stack the secondary article cards vertically. No horizontal scroll. */
  .hero__aside { flex-direction: column; overflow: visible; }
  .hero__aside .hero-feature { min-width: 0; }
  .value-props { grid-template-columns: 1fr; gap: .8rem; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { grid-column: 1; text-align: left; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box__media { justify-content: center; }
  .author-box__badges,
  .author-box__meta { justify-content: center; }
  .author-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .author-hero__avatar { margin-inline: auto; }
  .author-hero__stats { justify-content: center; }
}

@media (max-width: 560px) {
  :root { --gap: 1rem; }
  html { font-size: 92.5%; }          /* slightly smaller type on phones */
  .card-grid,
  .card-grid--2,
  .topic-grid,
  .helpful-links__grid { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero__aside { flex-direction: column; }
  .hero__aside .hero-feature { min-width: 0; }
  .hero__trust { gap: 1.1rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .newsletter__field { flex-direction: column; }
  .newsletter__field .btn { width: 100%; }
  .cookie-consent { right: .75rem; left: .75rem; width: auto; }
  .cookie-consent__row { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .site-header__title { font-size: 1.1rem; }
  .trending__rank { font-size: 1.7rem; min-width: 34px; }
}

/* ============================================== 31. REDUCED MOTION / PRINT */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-stagger.is-visible > * { animation: none !important; }
  .card:hover,
  .topic-card:hover,
  .feature-card:hover,
  .pick-row:hover,
  .btn:hover,
  .post-nav__link:hover,
  .back-to-top:hover { transform: none !important; }
  .card:hover .card__image,
  .topic-card:hover .topic-card__image,
  .feature-card:hover .feature-card__image { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .cookie-consent, .ad-slot,
  .header-search, .mobile-drawer, .drawer-backdrop, .single__toc-col,
  .post-nav, .related, .newsletter { display: none !important; }
  body { color: #000; }
  .single__content-col { max-width: none; }
}

/* ============================================================
   V2 ENHANCEMENTS: hero animations, premium FAQ, footer wordmark
   ============================================================ */

/* ---------- HERO: extraordinary motion ---------- */
.hero { padding-block: clamp(3.75rem, 8vw, 6.75rem); }
.hero__media img { transform: scale(1.06); animation: heroKen 26s ease-in-out infinite alternate; }
@keyframes heroKen { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.13) translateY(-1.6%); } }

.hero::before {
  content: ""; position: absolute; z-index: -1; top: -35%; right: -12%;
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34,195,230,0), rgba(34,195,230,.26), rgba(14,107,214,0), rgba(255,176,32,.18), rgba(34,195,230,0));
  filter: blur(46px); opacity: .75; animation: heroSpin 36s linear infinite;
}
@keyframes heroSpin { to { transform: rotate(360deg); } }

.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 72% 18%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 85% 75% at 72% 18%, #000 0%, transparent 72%);
  animation: gridPan 24s linear infinite;
}
@keyframes gridPan { to { background-position: 46px 46px; } }

.hero__orb { will-change: transform; }
.hero__orb--1 { animation: orbFloatA 16s ease-in-out infinite; }
.hero__orb--2 { animation: orbFloatB 21s ease-in-out infinite; }
.hero__orb--3 { animation: orbFloatC 14s ease-in-out infinite; }
@keyframes orbFloatA { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-4%,5%) scale(1.08);} }
@keyframes orbFloatB { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(5%,-4%) scale(1.1);} }
@keyframes orbFloatC { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(6%,6%) scale(1.16);} }

.hero__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__shape { position: absolute; opacity: .55; will-change: transform; }
.hero__shape--ring { width: 88px; height: 88px; border: 2px solid rgba(34,195,230,.4); border-radius: 50%; top: 17%; left: 5%; animation: shapeFloat 8s ease-in-out infinite; }
.hero__shape--ring2 { width: 46px; height: 46px; border: 2px dashed rgba(255,176,32,.4); border-radius: 50%; bottom: 16%; left: 14%; animation: spinSlow 20s linear infinite; }
.hero__shape--dot { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); top: 60%; left: 9%; box-shadow: 0 0 20px 5px rgba(255,176,32,.5); animation: shapeFloat 6.5s ease-in-out infinite 1s; }
.hero__shape--bolt { bottom: 20%; right: 7%; color: rgba(255,176,32,.5); animation: shapeFloat 7.5s ease-in-out infinite .5s; }
.hero__shape--bolt svg { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(255,176,32,.35)); }
@keyframes shapeFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-18px);} }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.hero__eyebrow::after { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent); margin-left:.55rem; animation: pulseDot 2.2s ease-out infinite; }
@keyframes pulseDot { 0%{box-shadow:0 0 0 0 rgba(255,176,32,.55);} 70%{box-shadow:0 0 0 10px rgba(255,176,32,0);} 100%{box-shadow:0 0 0 0 rgba(255,176,32,0);} }

.hero__word--grad {
  background: linear-gradient(100deg,#22C3E6,#0E6BD6,#FFB020,#22C3E6);
  background-size: 240% auto; -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent; position:relative;
  animation: gradShift 7.5s linear infinite;
}
@keyframes gradShift { to { background-position: 240% center; } }
.hero__word--grad::after {
  content:""; position:absolute; left:0; right:0; bottom:-.06em; height:.08em; border-radius:6px;
  background: var(--grad-hero); transform: scaleX(0); transform-origin:left;
  animation: underlineIn 1s var(--ease) .7s forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }

.hero .btn--primary { position:relative; box-shadow:0 10px 26px rgba(14,107,214,.42); overflow:visible; }
.hero .btn--primary::after {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  animation: ctaGlow 2.8s ease-out infinite;
}
@keyframes ctaGlow { 0%{box-shadow:0 0 0 0 rgba(34,195,230,.5);} 70%{box-shadow:0 0 0 15px rgba(34,195,230,0);} 100%{box-shadow:0 0 0 0 rgba(34,195,230,0);} }

.hero-feature { backdrop-filter: blur(11px) saturate(140%); -webkit-backdrop-filter: blur(11px) saturate(140%); background: rgba(255,255,255,.07); }
.hero-feature__media { position: relative; }
.hero-feature__media::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,transparent 40%,rgba(34,195,230,.25)); opacity:0; transition:opacity var(--dur) var(--ease); }
.hero-feature:hover .hero-feature__media::after { opacity:1; }

@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero::before, .hero__grid, .hero__orb, .hero__shape,
  .hero__word--grad, .hero__word--grad::after, .hero .btn--primary::after, .hero__eyebrow::after { animation: none !important; }
  .hero__word--grad::after { transform: scaleX(1); }
}

/* ---------- FAQ: premium accordions (homepage + single post) ---------- */
.faq__item,
.single__content .wp-block-details {
  background:#fff; border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faq { gap: .85rem; }
.single__content .wp-block-details { margin: 1rem 0; }
.faq__item:hover,
.single__content .wp-block-details:hover { border-color:#b9d4ef; box-shadow: var(--sh-1); transform: translateY(-1px); }
.faq__item[open],
.single__content .wp-block-details[open] { border-color: var(--brand); box-shadow: 0 12px 32px rgba(14,107,214,.12); }

.faq__q,
.single__content .wp-block-details > summary {
  list-style:none; cursor:pointer; display:flex; align-items:center; gap:1rem;
  padding:1.15rem 3.6rem 1.15rem 1.35rem; position:relative;
  font-family:var(--ff-head); font-weight:600; font-size:1.03rem; line-height:1.4; color:var(--ink);
}
.faq__q::-webkit-details-marker,
.single__content .wp-block-details > summary::-webkit-details-marker { display:none; }
.faq__q::marker,
.single__content .wp-block-details > summary::marker { content:""; }
.faq__q:hover,
.single__content .wp-block-details > summary:hover { color: var(--brand-deep); }

.faq__q::after,
.single__content .wp-block-details > summary::after {
  content:""; position:absolute; right:1.15rem; top:50%; width:32px; height:32px; transform:translateY(-50%);
  border-radius:50%; border:1.5px solid var(--line);
  background:
    linear-gradient(var(--brand),var(--brand)) center/13px 2px no-repeat,
    linear-gradient(var(--brand),var(--brand)) center/2px 13px no-repeat, #fff;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after,
.single__content .wp-block-details[open] > summary::after {
  transform: translateY(-50%) rotate(135deg); border-color: var(--brand);
  background:
    linear-gradient(#fff,#fff) center/13px 2px no-repeat,
    linear-gradient(#fff,#fff) center/2px 13px no-repeat, var(--brand);
}

.faq__a,
.single__content .wp-block-details > :not(summary) { padding: 0 1.35rem 1.3rem; margin:0; color: var(--muted); line-height:1.75; }
.single__content .wp-block-details > summary + * { padding-top: .1rem; }
.faq__item[open] .faq__a,
.single__content .wp-block-details[open] > :not(summary) { animation: faqReveal .4s var(--ease); }
@keyframes faqReveal { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__a, .single__content .wp-block-details[open] > :not(summary),
  .faq__item:hover, .single__content .wp-block-details:hover { animation:none !important; transform:none !important; }
}

/* ---------- FOOTER: light wordmark (dark PNG logo was invisible on dark footer) ---------- */
.site-footer .custom-logo-link, .site-footer__brand > img { display:none !important; }
.site-footer__logo { display:inline-flex; align-items:center; gap:.6rem; margin-bottom:.9rem; }
.site-footer__logo-badge {
  display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px;
  border-radius:12px; background: linear-gradient(135deg,#0E6BD6,#22C3E6); box-shadow:0 6px 16px rgba(14,107,214,.42);
}
.site-footer__logo-badge svg { width:23px; height:23px; }
.site-footer__logo-text { font-family:var(--ff-head); font-weight:700; font-size:1.5rem; letter-spacing:-.02em; color:#fff; line-height:1; }
.site-footer__logo-hq { color: var(--accent); margin-left:.12em; }

/* ---------- HERO video background (progressive enhancement) ---------- */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease; pointer-events: none;
}
.hero__video.is-playing { opacity: .9; }
/* animated light sweep across the hero for an extra premium feel */
.hero__sheen {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(105deg, transparent 30%, rgba(34,195,230,.14) 45%, rgba(255,176,32,.10) 55%, transparent 70%);
  background-size: 260% 100%; animation: heroSheen 9s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes heroSheen { 0%,100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }
@media (max-width: 768px) { .hero__video { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } .hero__sheen { animation: none; opacity: .3; } }

/* ============================================================
   HERO — responsive polish for ALL screen sizes (v2.3)
   ============================================================ */

/* Trust indicators: elegant dividers + subtle gradient numbers (all sizes) */
.hero__trust { gap: 0; flex-wrap: wrap; row-gap: .6rem; margin-top: .25rem; }
.hero__trust li { padding: 0 1.35rem; position: relative; }
.hero__trust li:first-child { padding-left: 0; }
.hero__trust li:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 50%; height: 34px; width: 1px; transform: translateY(-50%);
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.24), rgba(255,255,255,0));
}
.hero__trust-num {
  background: linear-gradient(120deg, #ffffff, #A9DBF7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Animated scroll cue at the bottom of the hero (desktop only; heroes are short + stacked below) */
.hero__cue {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: var(--on-ink-muted); opacity: .85; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__cue:hover { opacity: 1; transform: translateX(-50%) translateY(2px); color: #fff; }
.hero__cue-mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.hero__cue-mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px; background: #fff;
  transform: translateX(-50%); animation: cueScroll 1.8s ease-in-out infinite;
}
.hero__cue-text { font-family: var(--ff-head); font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
@keyframes cueScroll { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 11px); } }
@media (max-width: 1023px) { .hero__cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__cue-mouse::after { animation: none; } }

/* Large desktop: a touch more presence */
@media (min-width: 1280px) {
  .hero__inner { gap: clamp(2.5rem, 4vw, 4rem); }
  .hero__deck { max-width: 48ch; }
}

/* Tablet 769-1023 (2-col hero): keep the aside tidy in its side column */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero__aside .hero-feature { padding: .6rem; }
  .hero__aside .hero-feature__media { width: 84px; height: 62px; }
  .hero__aside .hero-feature__title { font-size: .92rem; }
}

/* 561-768 (single-col hero): aside becomes a compact 3-up card row (no scroll) */
@media (min-width: 561px) and (max-width: 768px) {
  .hero__aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
  .hero__aside-title { grid-column: 1 / -1; display: block; }
  .hero__aside .hero-feature { flex-direction: column; align-items: stretch; gap: .55rem; padding: .55rem; }
  .hero__aside .hero-feature__media { width: 100%; height: 108px; }
  .hero__aside .hero-feature__title { font-size: .92rem; }
}

/* Mobile <=560: full-width stacked CTAs, tighter spacing, 2 aside cards */
@media (max-width: 560px) {
  .hero { padding-block: clamp(2.6rem, 9vw, 3.6rem); }
  .hero__eyebrow { margin-bottom: .75rem; }
  .hero__headline { margin-bottom: .85rem; }
  .hero__deck { margin-bottom: 1.4rem; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-bottom: 1.6rem; }
  .hero__actions .btn { width: 100%; justify-content: center; padding-block: .85rem; }
  .hero__aside { flex-direction: column; gap: .7rem; }
  .hero__aside-title { display: block; }
  .hero__aside .hero-feature:last-child { display: none; } /* keep 2 for a focused mobile hero */
  .hero__trust li { padding: 0 1rem; }
  .hero__trust-num { font-size: 1.3rem; }
}

/* Very small <=380: keep trust readable */
@media (max-width: 380px) {
  .hero__trust li { padding: 0 .8rem; }
  .hero__trust-num { font-size: 1.2rem; }
  .hero__deck { font-size: 1rem; }
}

/* ---------- Full-height hero: fills the viewport below the sticky header ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h)); /* accounts for mobile browser chrome */
}
.hero__inner { width: 100%; }
