/* ==========================================================================
   IMVN Website Relaunch — Design tokens + components
   Mirrors the tokens already shipped in style-v2.css (theme imvn) so this
   prototype can graduate into the real WordPress theme with minimal rework.
   ========================================================================== */

:root {
  /* Brand */
  --brand-orange: #FB8301;
  --brand-orange-dark: #D86E00;
  --brand-orange-light: #FFA84D;
  --brand-orange-50: #FFF4E8;
  --brand-black: #0F0F10;
  --brand-black-soft: #1A1A1C;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-inverse: #FFFFFF;

  /* Surface */
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --border: #E8E8E8;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);

  /* 8px spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --font-base: 16px;
  --line-height-body: 1.6;
  --line-height-heading: 1.15;
  --container-max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  font-size: var(--font-base);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  background: var(--bg);
}

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

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

h1, h2, h3, h4 {
  line-height: var(--line-height-heading);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2, .h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem); }
h4, .h4 { font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.4rem); }
p { margin: 0 0 var(--space-4); color: var(--text-secondary); text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-3);
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: clamp(var(--space-7), 8vw, var(--space-10)); }
.section-alt { background: var(--bg-alt); }
.section-black { background: var(--brand-black); color: var(--text-inverse); }
.section-black h1, .section-black h2, .section-black h3 { color: var(--text-inverse); }
.section-black p { color: rgba(255,255,255,0.72); }
.section-black.text-center .max-w-content { max-width: 920px; }

/* Buttons — pill, ≥44px touch target */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 12px var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; border-color: var(--brand-black); color: var(--text-primary); }
.btn-secondary:hover { background: var(--brand-black); color: #fff; }
.btn-outline-inverse { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-inverse:hover { background: #fff; color: var(--brand-black); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-5);
}
.logo { font-weight: 800; font-size: 1.4rem; color: var(--brand-orange); letter-spacing: -0.02em; }
.nav-links { display: none; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--brand-orange); }
.nav-cta { display: none; }
.nav-cta-login { font-weight: 600; font-size: 0.9375rem; }
.nav-cta-login:hover { color: var(--brand-orange); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: none; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--text-primary);
  position: relative; transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--brand-black);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { color: #fff; font-weight: 500; padding: var(--space-2) 0; min-height: 44px; display: flex; align-items: center; }
.mobile-menu .btn { margin-top: var(--space-3); }

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Hero */
.hero { padding-block: clamp(var(--space-8), 10vw, var(--space-10)); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-black-soft); aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,0.4); font-size:0.875rem; }

/* Journey cards (2 buyer journeys) */
.journey-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .journey-grid { grid-template-columns: 1fr 1fr; } }
.journey-card {
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-4);
  min-height: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.journey-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
button.journey-card {
  font: inherit; text-align: left; width: 100%;
  border: none; cursor: pointer;
}
/* keep the dark inbound card's text white even on the <button> element */
button.journey-card.journey-card--inbound { color: #fff; }
button.journey-card.journey-card--outbound { color: var(--text-primary); }
.journey-card--inbound { background: var(--brand-black); color: #fff; }
.journey-card--inbound p { color: rgba(255,255,255,0.72); }
.journey-card--outbound { background: var(--brand-orange-50); }
.journey-card .btn { margin-top: auto; align-self: flex-start; }
.journey-card .card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--brand-orange);
}
.journey-card--inbound .card-link { color: var(--brand-orange-light); }

/* 3-pillar (why IMVN) */
.pillars-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar { text-align: left; }
.pillar-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--brand-orange); color: var(--brand-orange);
  font-weight: 700; margin-bottom: var(--space-4);
}

/* Solution / market cards */
.card-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 576px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 576px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.solution-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.solution-card .card-link { color: var(--brand-orange); font-weight: 600; font-size: 0.9375rem; margin-top: auto; }

.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--bg-alt); }
.article-card .body { padding: var(--space-5); }
.article-card .tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.article-card .tag { font-size: 0.75rem; font-weight: 600; color: var(--brand-orange); background: var(--brand-orange-50); padding: 4px 10px; border-radius: var(--radius-pill); }
.article-card .title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; margin-bottom: var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta { color: var(--text-muted); font-size: 0.8125rem; }

/* Proof card (case learnings, no fabricated data) */
.proof-card { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: var(--space-5); background: var(--bg-alt); color: var(--text-muted); font-size: 0.9375rem; }

/* Market pill row */
.market-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.market-pill { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-5); font-weight: 600; font-size: 0.9375rem; min-height:44px; display:flex; align-items:center; }

/* Spotlight taxonomy */
.spotlight-channel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.spotlight-channel-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
}
.spotlight-channel-nav a:hover {
  border-color: transparent;
  background: var(--brand-orange-50);
  color: var(--brand-orange-dark);
}
.solution-card[id] { scroll-margin-top: 96px; }
.spotlight-entry-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .spotlight-entry-grid { grid-template-columns: 1fr 1fr; } }
.spotlight-filter-panel {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}
@media (min-width: 900px) { .spotlight-filter-panel { grid-template-columns: repeat(4, 1fr); } }
.spotlight-filter-panel h4 { font-size: 0.9375rem; margin-bottom: var(--space-3); }
.filter-pill-row,
.taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-pill-row a,
.taxonomy-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
}
.filter-pill-row a:hover,
.taxonomy-list a:hover {
  border-color: transparent;
  background: var(--brand-orange-50);
  color: var(--brand-orange-dark);
}
.taxonomy-list { margin-bottom: var(--space-6); }

/* Filter toolbar — segmented hub tabs + compact selects */
.spotlight-toolbar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-block: 1px solid var(--border);
  padding-block: var(--space-4);
}
.spotlight-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.hub-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs a {
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.hub-tabs a:hover { color: var(--brand-orange-dark); }
.hub-tabs a.is-active { background: var(--brand-orange); color: #fff; }
.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 8px 38px 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.select-wrap select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-50);
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  pointer-events: none;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
}
.result-count { font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) {
  .spotlight-toolbar-inner { gap: var(--space-3); }
  .hub-tabs { width: 100%; }
  .toolbar-controls { width: 100%; }
  .select-wrap { flex: 1 1 auto; }
  .select-wrap select { width: 100%; }
}
.filter-empty {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
}
.article-card[hidden] { display: none; }

/* Featured — 3 latest highlights (1 primary + 2 side) */
.featured-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-4);
}
.featured-grid .article-card { overflow: hidden; }

/* Primary card — mobile: normal vertical card */
.feat-primary .thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.feat-primary .body { padding: var(--space-5); }
.feat-primary .title {
  font-size: clamp(1.2rem, 1.4vw + 0.6rem, 1.6rem);
  -webkit-line-clamp: 2;
}
.feat-primary .excerpt {
  color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: var(--space-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Side cards — horizontal thumbnail + text */
.feat-side { display: grid; grid-template-columns: 128px 1fr; }
.feat-side .thumb { width: 100%; height: 100%; object-fit: cover; }
.feat-side .body { padding: var(--space-4); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.feat-side .title { font-size: 0.9375rem; -webkit-line-clamp: 2; margin-bottom: var(--space-1); }
.feat-side .meta { font-size: 0.75rem; }
@media (max-width: 520px) { .feat-side { grid-template-columns: 104px 1fr; } }

/* Desktop: fixed-height magazine grid, images crop to fill — no overflow */
@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 460px;
  }
  .feat-primary { grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .feat-primary .thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
  .feat-primary .body { flex: 0 0 auto; }
  .feat-side { min-height: 0; }
}
.featured-flag {
  display: inline-flex; align-items: center; width: fit-content;
  font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand-orange-dark); background: var(--brand-orange-50);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: var(--space-3);
}

/* Inline brief capture (Spotlight demand-gen) */
.spotlight-capture {
  display: grid; gap: var(--space-5); align-items: center;
  grid-template-columns: 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--brand-orange-50); padding: var(--space-7);
}
@media (min-width: 768px) { .spotlight-capture { grid-template-columns: 1.2fr 1fr; } }
.spotlight-capture h3 { margin-bottom: var(--space-2); }
.spotlight-capture p { margin-bottom: 0; }
.spotlight-capture .capture-form { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.spotlight-capture .capture-form input {
  flex: 1 1 200px; min-height: 44px; padding: 10px var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-family: inherit; font-size: 1rem; background: #fff;
}
.spotlight-capture .capture-form input:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(251,131,1,0.18); }

/* Next-step funnel block (article) */
.next-step-grid {
  display: grid; gap: var(--space-4); grid-template-columns: 1fr;
  margin-block: var(--space-7);
}
@media (min-width: 768px) { .next-step-grid { grid-template-columns: 1fr 1fr; } }
.next-step-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6); background: #fff; display: flex; flex-direction: column; gap: var(--space-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.next-step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.next-step-card .card-link { color: var(--brand-orange); font-weight: 700; font-size: 0.9375rem; margin-top: auto; }

.section-heading-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
@media (min-width: 768px) {
  .section-heading-row {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding-block: var(--space-5); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.0625rem; list-style: none; display:flex; justify-content:space-between; align-items:center; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--brand-orange); }
.faq-item[open] summary::after { content: '–'; }

/* Form */
.brief-form { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .brief-form.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 600; font-size: 0.875rem; }
.field input, .field select, .field textarea {
  min-height: 44px; padding: 10px var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem;
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--brand-orange-50);
}
.field-full { grid-column: 1 / -1; }

/* Breadcrumb */
.breadcrumb { display: flex; gap: var(--space-2); font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--space-5); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-orange); }

/* Footer */
.site-footer { background: var(--brand-black); color: #fff; padding-block: var(--space-8) var(--space-5); }
.footer-top { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .footer-top { grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(140px, 0.8fr)) minmax(260px, 1.15fr); } }
.footer-col h4 { font-size: 0.9375rem; color: #fff; margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a, .footer-col p { color: rgba(255,255,255,0.65); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--brand-orange); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.12); margin-block: var(--space-6); }
.footer-bottom { display: flex; flex-direction: column; gap: var(--space-3); justify-content: space-between; align-items: flex-start; font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.social-row { display: flex; gap: var(--space-3); }
.social-row a { min-width: 44px; min-height: 44px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,0.2); border-radius: 50%; font-size: 0.75rem; font-weight: 700; }

/* Logo lockups (real brand assets) */
.logo-link { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.footer-logo { height: 32px; width: auto; }
.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand-lockup .footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand-lockup span {
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}

/* Hero visual — animated, not a static box (floating illustration + soft glow) */
.hero-media {
  position: relative;
  background: var(--brand-black-soft);
  isolation: isolate;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 25% 30%, rgba(251,131,1,0.32), transparent 32%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,0.12), transparent 36%);
  z-index: -1;
}

.hero-media svg { width: min(78%, 360px); height: auto; }
.route-line { fill: none; stroke: rgba(255,255,255,0.68); stroke-width: 3; stroke-linecap: round; }
.route-node { fill: var(--brand-orange); stroke: #fff; stroke-width: 3; }
.route-node.alt { fill: #fff; stroke: var(--brand-orange); }
.route-pulse { fill: var(--brand-orange); opacity: 0.28; animation: pulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.36; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Utilities */
.max-w-content { max-width: 760px; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }
.stack-gap { display: grid; gap: var(--space-4); }
.grid-2 { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-orange-50);
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.icon-badge.sm { width: 44px; height: 44px; margin-bottom: var(--space-2); }
.icon-badge svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.9; }

.badge-direction {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange-50);
  color: var(--brand-orange-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

/* Language switcher */
.lang-switcher { position: relative; display: none; }
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.875rem;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.lang-menu a,
.lang-menu-mobile a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.lang-menu a.active,
.lang-menu a:hover,
.lang-menu-mobile a.active { background: var(--brand-orange-50); color: var(--brand-orange-dark); }
.lang-menu-mobile { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-3); }
.lang-menu-mobile a { color: #fff; border: 1px solid rgba(255,255,255,0.18); min-width: 44px; justify-content: center; }
@media (min-width: 992px) { .lang-switcher { display: block; } }

/* Contact / CF7 handoff */
.contact-method-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-method-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-panel,
.cf7-slot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-7);
}
.contact-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.contact-panel a { color: var(--brand-orange-dark); font-weight: 700; }
.cf7-slot {
  max-width: 840px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.cf7-slot .brief-form { margin-top: var(--space-5); }
.cf7-note {
  border-left: 3px solid var(--brand-orange);
  background: var(--brand-orange-50);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Article template */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light));
  z-index: 200;
}
.article-layout { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 260px minmax(0, 820px); } }
.article-rail {
  display: none;
  position: sticky;
  top: 96px;
  border-right: 1px solid var(--border);
  padding-right: var(--space-5);
}
@media (min-width: 1100px) { .article-rail { display: block; } }
.article-rail ol { padding-left: 1.2rem; margin: 0; display: grid; gap: var(--space-2); color: var(--text-secondary); }
.article-rail a:hover { color: var(--brand-orange); }
/* scroll-spy: highlight the section currently in view */
.article-toc a.is-current { color: var(--brand-orange-dark); font-weight: 700; }
.article-toc li { transition: color 0.15s ease; }
/* compact conversion CTA inside the reading rail */
.rail-cta {
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--brand-orange-50);
}
.rail-cta p { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-3); }
.rail-cta .btn { font-size: 0.875rem; min-height: 40px; padding: 8px var(--space-4); }
/* SEO topic tags in the reading rail (link to filtered Spotlight / market page) */
.rail-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rail-tags .tag { transition: background 0.15s ease, color 0.15s ease; }
.rail-tags .tag:hover { background: var(--brand-orange); color: #fff; }
/* Avoid duplicate tags: header tags show only where the rail is hidden (mobile) */
@media (min-width: 1100px) { .article-header-tags { display: none; } }
.topic-nav,
.topic-nav-mobile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.topic-nav a,
.topic-nav-mobile a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
}
.topic-nav a.active,
.topic-nav-mobile a.active { color: var(--brand-orange-dark); background: var(--brand-orange-50); border-color: transparent; }
.topic-nav-mobile { flex-direction: row; overflow-x: auto; padding-bottom: var(--space-2); margin-block: var(--space-5); }
@media (min-width: 1100px) { .topic-nav-mobile { display: none; } }
.share-rail { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.share-rail a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange-dark);
  background: var(--brand-orange-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
}
.avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-black);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
}
.avatar-initials.lg { width: 48px; height: 48px; }
.article-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}
.article-toc-mobile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--bg-alt);
  margin-bottom: var(--space-6);
}
@media (min-width: 1100px) { .article-toc-mobile { display: none; } }
.article-body { font-size: 1.0625rem; }
.article-body p { color: #333; }
.article-body h2 { margin-top: var(--space-8); }
.article-body img { border-radius: var(--radius-md); margin-block: var(--space-5); width: 100%; }
.pull-quote {
  margin-block: var(--space-7);
  padding: var(--space-6);
  border-left: 4px solid var(--brand-orange);
  background: var(--brand-orange-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 700;
}
.inline-link-panel {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-block: var(--space-7);
}
@media (min-width: 700px) { .inline-link-panel { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .inline-link-panel { grid-template-columns: repeat(3, 1fr); } }
.mini-link-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: #fff;
}
.mini-link-card span { display: block; color: var(--brand-orange); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; margin-bottom: var(--space-2); }
.author-box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-5);
  margin-top: var(--space-8);
}
.post-cta {
  margin-block: var(--space-8);
  padding: var(--space-7);
  border-radius: var(--radius-md);
  background: var(--brand-black);
  color: #fff;
  text-align: center;
}
.post-cta p { color: rgba(255,255,255,0.72); }

/* Auth prototype */
.auth-wrap { max-width: 520px; }
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
}
.social-auth-row { display: grid; gap: var(--space-3); }
.btn-social { border-color: var(--border); background: #fff; color: var(--text-primary); }
.auth-divider { text-align: center; color: var(--text-muted); margin-block: var(--space-5); font-size: 0.875rem; }
.auth-footer-link { text-align: center; margin-top: var(--space-5); color: var(--text-secondary); }
.auth-footer-link a { color: var(--brand-orange-dark); font-weight: 700; }

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.floating-actions a {
  min-width: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-black);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}
.floating-actions a.messenger { background: var(--brand-orange); }

@media (max-width: 767px) {
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-7); }
  .journey-card,
  .contact-panel,
  .cf7-slot,
  .auth-card { padding: var(--space-5); }
}
