/* ============================================================
   IGNITION & VELOCITY — MAIN STYLESHEET
   Global styles, design system, homepage, shared components
   ============================================================ */

/* ── Google Fonts (loaded via <link> in HTML for parallel loading) ── */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C86E;
  --gold-dark:    #A8873A;
  --gold-faint:   rgba(201,168,76,0.08);
  --gold-mid:     rgba(201,168,76,0.20);

  --navy:  #050505;
  --navy2: #0D0D0D;
  --navy3: #141414;
  --navy4: #1C1C1C;
  --navy5: #222222;

  --text:  #DDE8F5;
  --text2: #8FAABF;
  --text3: #4E6A88;

  --red:   #EF4444;
  --green: #22C55E;
  --blue:  #3B82F6;

  --border:  rgba(201,168,76,0.18);
  --border2: rgba(255,255,255,0.09);

  --font-display:   'Bebas Neue', sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-ui:        'Manrope', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 24px rgba(201,168,76,0.2);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --nav-height: 88px;
  --container-max: 1280px;
  --container-article: 720px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--navy);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Page Load Animation ─────────────────────────────────────── */
body {
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Utilities ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Language system removed — English only */

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-faint);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--gold);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

/* ── Category Pills ──────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold-mid);
  color: var(--gold-light);
  border: 1px solid var(--border);
}

.pill--f1       { background: rgba(239,68,68,0.15);  color: #FCA5A5; border-color: rgba(239,68,68,0.3); }
.pill--f2       { background: rgba(59,130,246,0.15); color: #93C5FD; border-color: rgba(59,130,246,0.3); }
.pill--gt       { background: rgba(34,197,94,0.15);  color: #86EFAC; border-color: rgba(34,197,94,0.3); }
.pill--feature  { background: rgba(201,168,76,0.15); color: var(--gold-light); border-color: var(--border); }
.pill--breaking { background: var(--red); color: #fff; }
.pill--press    { background: rgba(139,92,246,0.15); color: #C4B5FD; border-color: rgba(139,92,246,0.3); }

/* ── Pills over images (article cards) — high contrast ───────── */
.article-card__category-wrap .pill {
  background: rgba(8, 14, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.55);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.article-card__category-wrap .pill--f1      { border-left: 3px solid #EF4444; }
.article-card__category-wrap .pill--f2      { border-left: 3px solid #3B82F6; }
.article-card__category-wrap .pill--gt      { border-left: 3px solid #22C55E; }
.article-card__category-wrap .pill--feature { border-left: 3px solid var(--gold); }
.article-card__category-wrap .pill--press   { border-left: 3px solid #8B5CF6; }
.article-card__category-wrap .pill--breaking {
  background: rgba(239,68,68,0.85);
  border-left: none;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow), box-shadow var(--transition-slow);
}

.nav.scrolled {
  background: rgba(5,5,5,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border2), 0 4px 32px rgba(0,0,0,0.5);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav__logo:hover { color: var(--gold-light); }

.nav__logo-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--gold);
  transition: stroke var(--transition);
}

.nav__logo:hover .nav__logo-icon { stroke: var(--gold-light); }

/* Custom uploaded logo image — scales with nav height automatically */
.nav__logo-custom {
  height: calc(var(--nav-height) - 6px); /* 82px desktop */
  max-width: 400px;
  width: auto;
  object-fit: contain;
  object-position: left center; /* anchor content to left — no phantom space on right */
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast; /* sharper rendering on WebKit */
}

/* Once custom logo is loaded, hide default SVG + text label via CSS too */
.nav__logo.has-custom-logo .nav__logo-icon {
  display: none !important;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: var(--border2);
}

.nav__features-link {
  color: var(--gold) !important;
  font-weight: 700 !important;
}
.nav__features-link:hover,
.nav__features-link.active {
  color: var(--gold-light) !important;
  background: rgba(201,168,76,0.1) !important;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  background: transparent;
  transition: color var(--transition), background var(--transition);
}

.nav__search-btn:hover {
  color: var(--text);
  background: var(--border2);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--border2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border2);
}

.nav__lang button {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text3);
  background: transparent;
  transition: color var(--transition), background var(--transition);
}

.nav__lang button.active {
  background: var(--gold-mid);
  color: var(--gold-light);
}

.nav__subscribe {
  display: inline-flex;
  align-items: center;
  padding: 6px 20px;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__subscribe:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 16px rgba(201,168,76,0.25);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__hamburger:hover { background: var(--border2); }

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__mobile a:hover {
  color: var(--text);
  background: var(--gold-faint);
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(20px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.open { display: flex; }

.search-overlay__inner {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}

.search-overlay__input-wrap {
  display: flex;
  align-items: center;
  background: var(--navy3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-overlay__input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.search-overlay__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-size: 18px;
  color: var(--text);
  font-family: var(--font-ui);
}

.search-overlay__input::placeholder { color: var(--text3); }

.search-overlay__close {
  padding: 0 20px;
  color: var(--text2);
  font-size: 20px;
  transition: color var(--transition);
}

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

.search-overlay__results {
  margin-top: 16px;
}

/* ── Breaking News Ticker ─────────────────────────────────────── */
.ticker {
  display: none;
  align-items: center;
  background: var(--gold);
  color: var(--navy);
  height: 36px;
  overflow: hidden;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
}

.ticker.visible { display: flex; }

.ticker__label {
  flex-shrink: 0;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  background: var(--navy);
  color: var(--gold);
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker__track-wrap {
  flex: 1;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticker__track span {
  padding: 0 40px 0 0;
}

.ticker__track span::before {
  content: '●';
  margin-right: 10px;
  opacity: 0.6;
}

@keyframes tickerScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero__slide.active { opacity: 1; pointer-events: auto; }

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-in-out infinite alternate;
  opacity: 1 !important; /* Override lazy-fade */
}

@keyframes kenBurns {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.08) translateX(-1%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,0.6) 0%,
    rgba(5,5,5,0.35) 15%,
    rgba(5,5,5,0.45) 30%,
    rgba(5,5,5,0.75) 60%,
    rgba(5,5,5,0.97) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 0 80px;
}

.hero__content .container {
  max-width: 900px;
}

.hero__category {
  margin-bottom: 16px;
}

.hero__headline {
  font-family: var(--font-editorial);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  max-width: 800px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
}

.hero__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
}

.hero__excerpt {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text2);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.hero__cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.hero__cta svg {
  transition: transform var(--transition);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Hero dots */
.hero__dots {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.hero__dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--navy2);
}

.section--alt {
  background: var(--navy3);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.12em;
  color: var(--text);
}

.section__title span {
  color: var(--gold);
}

.section__see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.section__see-all:hover {
  color: var(--gold-light);
  gap: 10px;
}

/* ── Article Cards ────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--navy2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
    border-color: var(--border);
  }
}
.article-card:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.article-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--navy3);
}

.article-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 1 !important; /* Override lazy-fade for dynamically-loaded card images */
}

.article-card:hover .article-card__image {
  transform: scale(1.04);
}

.article-card__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy3) 0%, var(--navy4) 100%);
}

.article-card__image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
}

.article-card__category-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
}

.article-card__body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card__headline {
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.article-card:hover .article-card__headline {
  color: var(--gold-light);
}

.article-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.article-card__author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.article-card__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
}

.article-card__info span + span::before {
  content: '·';
  margin-right: 8px;
}

/* ── Featured Story ───────────────────────────────────────────── */
.featured-story {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 0;
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.featured-story:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}

.featured-story__image-wrap {
  position: relative;
  overflow: hidden;
}

.featured-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transition: transform 0.6s ease;
  opacity: 1 !important; /* Override lazy-fade */
}

.featured-story:hover .featured-story__image {
  transform: scale(1.03);
}

.featured-story__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--navy2));
}

.featured-story__content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-story__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.featured-story__headline {
  font-family: var(--font-editorial);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  transition: color var(--transition);
}

.featured-story:hover .featured-story__headline {
  color: var(--gold-light);
}

.featured-story__excerpt {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-story__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border2);
}

.featured-story__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy4);
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
}

.featured-story__author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}

.featured-story__author-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
}

/* ── Category Row ─────────────────────────────────────────────── */
.category-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar { display: none; }

.category-row .article-card {
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ── Newsletter Section ───────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--navy3) 0%, var(--navy2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.newsletter__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}

.newsletter__heading {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__subtext {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  background: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter__input::placeholder { color: var(--text3); }

.newsletter__input:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.newsletter__btn {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.newsletter__btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.newsletter__btn:active { transform: scale(0.98); }

.newsletter__success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  color: #86EFAC;
  font-size: 14px;
  font-weight: 600;
}

.newsletter__success.visible { display: flex; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--navy2);
  border-top: 1px solid var(--border2);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.footer__brand-tagline {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--border2);
  color: var(--text2);
  font-size: 16px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 1px solid var(--border2);
}

.footer__social-link:hover {
  background: var(--gold-faint);
  border-color: var(--border);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer__col-heading {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text2);
  transition: color var(--transition);
}

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

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text3);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 12px;
  color: var(--text3);
  transition: color var(--transition);
}

.footer__bottom-links a:hover { color: var(--text2); }

/* ── Loading Spinner ─────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--navy3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-left: 4px solid var(--gold);
  animation: toastIn 0.3s ease forwards;
  min-width: 280px;
  max-width: 400px;
}

.toast--success { border-left-color: var(--green); }
.toast--error   { border-left-color: var(--red); }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

/* ── Decorative Elements ─────────────────────────────────────── */
.gold-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border2);
  margin: 40px 0;
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy2);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border2);
  transition: all var(--transition);
  cursor: pointer;
}

.pagination__btn:hover {
  background: var(--navy4);
  color: var(--text);
  border-color: var(--border);
}

.pagination__btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Category Header ─────────────────────────────────────────── */
.cat-header {
  padding: calc(var(--nav-height) + 48px) 0 60px;
  background: linear-gradient(to bottom, var(--navy2) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--border2);
}

.cat-header__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cat-header__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.cat-header__desc {
  font-size: 17px;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.filter-bar__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-right: 8px;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--border2);
}

.filter-btn.active {
  background: var(--gold-mid);
  color: var(--gold-light);
  border-color: var(--border);
}

.filter-btn--features {
  background: rgba(201,168,76,0.08) !important;
  color: var(--gold) !important;
  border-color: rgba(201,168,76,0.3) !important;
  font-weight: 700;
}
.filter-btn--features:hover {
  background: rgba(201,168,76,0.18) !important;
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text3);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state__text {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text2);
}

.empty-state__sub {
  font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  .featured-story {
    grid-template-columns: 1fr;
  }

  .featured-story__image {
    min-height: 260px;
  }

  .featured-story__overlay {
    background: linear-gradient(to bottom, transparent 40%, var(--navy2));
  }

  .featured-story__content {
    padding: 28px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav__links { display: none; }
  .nav__subscribe { display: none; }
  .nav__hamburger { display: flex; }

  /* ── Nav: always dark on mobile so logo looks perfect regardless of hero ── */
  .nav {
    background: rgba(4,6,14,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav.scrolled {
    background: rgba(4,6,14,0.98);
    box-shadow: 0 1px 0 var(--border2), 0 4px 24px rgba(0,0,0,0.6);
  }

  /* ── Logo: constrain width on tablet/mobile ── */
  .nav__logo-custom {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; } /* thinner header on mobile — was 68px */

  /* ── Logo: bigger within the slimmer nav ── */
  .nav__logo-custom {
    height: calc(var(--nav-height) - 2px); /* 62px — bigger logo in slimmer nav */
    max-width: 240px;
  }

  /* ── Mobile nav improvements ── */
  .nav__hamburger {
    width: 44px;
    height: 44px;
  }

  .nav__mobile {
    padding: 16px 20px 20px;
    gap: 2px;
    border-bottom: 2px solid var(--gold-dark);
    background: var(--navy);
  }

  .nav__mobile a {
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: all 0.2s ease;
  }

  .nav__mobile a:hover,
  .nav__mobile a.active {
    color: var(--gold-light);
    background: var(--gold-faint);
  }

  .nav__mobile a::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    opacity: 0.5;
  }

  /* ── Layout ── */
  .section { padding: 48px 0; }

  .articles-grid { grid-template-columns: 1fr; }

  /* ── Hero ── */
  .hero {
    min-height: 460px;
    max-height: 580px;
  }

  .hero__content { padding: 0 0 56px; }

  .hero__headline {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem);
    line-height: 1.2;
  }

  .hero__excerpt {
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero__cta {
    padding: 12px 24px;
    font-size: 13px;
    min-height: 44px;
  }

  .hero__dots {
    right: 50%;
    transform: translateX(50%);
    bottom: 16px;
    gap: 16px;
  }
  .hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: none;
    -webkit-tap-highlight-color: transparent;
  }
  .hero__dot.active {
    background: var(--gold);
    transform: none;
  }

  /* ── Article cards — horizontal layout on mobile ── */
  .articles-grid .article-card,
  #relatedGrid .article-card {
    flex-direction: row;
    align-items: stretch;
  }

  .articles-grid .article-card__image-wrap,
  #relatedGrid .article-card__image-wrap {
    width: 140px;
    min-width: 140px;
    flex-shrink: 0;
    padding-top: 0;
    min-height: 120px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .articles-grid .article-card__body,
  #relatedGrid .article-card__body {
    padding: 14px 16px;
    justify-content: center;
  }

  .articles-grid .article-card__headline,
  #relatedGrid .article-card__headline {
    font-size: 15px;
    font-weight: 700;
    -webkit-line-clamp: 3;
    line-height: 1.3;
  }

  /* Hide deck on mobile cards for cleaner look */
  .articles-grid .article-card__body > p,
  #relatedGrid .article-card__body > p {
    display: none;
  }

  .articles-grid .article-card__category-wrap,
  #relatedGrid .article-card__category-wrap {
    top: 8px;
    left: 8px;
  }

  .articles-grid .article-card__category-wrap .pill,
  #relatedGrid .article-card__category-wrap .pill {
    font-size: 9px;
    padding: 3px 8px;
  }

  /* ── Featured story — stack vertically on mobile ── */
  .featured-story__content {
    padding: 20px;
    gap: 10px;
  }

  .featured-story__headline {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured-story__excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-height: 1.5;
  }

  .featured-story__image {
    min-height: 220px;
  }

  .featured-story__author {
    gap: 8px;
    padding-top: 6px;
  }

  .featured-story__author-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .featured-story__author-name { font-size: 12px; }
  .featured-story__author-meta { font-size: 10px; }

  /* ── Category / Features page header on mobile ── */
  .cat-header {
    padding: 90px 0 30px;
  }

  .cat-header__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .cat-header__desc {
    font-size: 14px;
    line-height: 1.6;
  }

  /* ── Newsletter ── */
  .newsletter { padding: 52px 0; }

  .newsletter__form { flex-direction: column; }

  .newsletter__btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .newsletter__input {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* ── Footer ── */
  .footer {
    padding: 48px 0 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__links {
    gap: 12px;
  }

  .footer__links a {
    font-size: 15px;
    display: block;
    padding: 2px 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__bottom-links {
    gap: 20px;
  }

  /* ── Category page (see mobile overrides above) ── */

  .filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-btn {
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 18px;
  }

  /* ── Pagination ── */
  .pagination__btn {
    width: 44px;
    height: 44px;
  }

  /* ── Toast on mobile ── */
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
    font-size: 13px;
  }

  /* ── Section header ── */
  .section__header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root { --nav-height: 60px; } /* even slimmer on very small phones */
  .container { padding: 0 16px; }

  /* Logo fills the slim nav */
  .nav__logo-custom {
    height: calc(var(--nav-height) - 2px); /* 58px — bigger than before */
    max-width: 180px;
  }

  /* Hero more compact on very small screens */
  .hero {
    min-height: 400px;
    max-height: 500px;
  }

  .hero__headline {
    font-size: clamp(1.4rem, 8vw, 1.9rem);
  }

  .hero__excerpt { display: none; }

  /* Article cards even more compact */
  .articles-grid .article-card__image-wrap,
  #relatedGrid .article-card__image-wrap {
    width: 115px;
    min-width: 115px;
    min-height: 100px;
  }

  .articles-grid .article-card__body,
  #relatedGrid .article-card__body {
    padding: 10px 12px;
  }

  .articles-grid .article-card__headline,
  #relatedGrid .article-card__headline {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .articles-grid .article-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .articles-grid .article-card__info {
    font-size: 10px;
  }

  /* Featured story tighter on small phones */
  .featured-story__content {
    padding: 16px;
    gap: 8px;
  }

  .featured-story__headline {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .featured-story__excerpt {
    display: none;
  }

  .featured-story__label {
    font-size: 10px;
  }

  /* Newsletter */
  .newsletter__heading { font-size: 1.6rem; }

  .newsletter__subtext {
    font-size: 14px;
    margin-bottom: 28px;
  }

  /* Footer bottom links wrap */
  .footer__bottom-links {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* ── Infinite Scroll ───────────────────────────────────────── */
.infinite-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.infinite-scroll-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: infiniteSpin 0.8s linear infinite;
}
@keyframes infiniteSpin {
  to { transform: rotate(360deg); }
}
