:root {
  --brand-primary: #0072bc;
  --brand-primary-hover: #005f9e;
  --brand-accent: #00AEEF;
  --ink: #0b0b0c;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-quiet: #7a7a7c;
  --surface: #ffffff;
  --surface-alt: #f5f5f3;
  --surface-deep: #ecece8;
  --surface-tint: #f9f9f7;
  --border: rgba(0,0,0,0.08);
  --radius-md: 8px;
  --radius-lg: 14px;
  --max-width: 1100px;
  --section-pad-y: clamp(60px, 9vw, 120px);
  --section-pad-x: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* GRADIENT STRIP — thin brand-blue accent for section breaks */
.gradient-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

/* SITE HEADER (sticky top nav, shared across pages) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px var(--section-pad-x);
  gap: 24px 32px;
  flex-wrap: wrap;
}
.site-brand { flex: 0 0 100%; justify-content: center; }
.site-nav { justify-content: center; }
.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}
.site-brand img {
  height: 32px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.site-nav a {
  font-size: 14px;
  color: #b6b6b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}
.site-nav a:hover { color: #fff; }
.site-nav-cta {
  background: var(--brand-primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background 150ms ease;
}
.site-nav-cta:hover { background: var(--brand-primary-hover); }

/* Mobile hamburger toggle (checkbox-hack, no JS) */
.site-nav-toggle { display: none; }
.site-nav-burger { display: none; }

@media (max-width: 960px) {
  .site-header-inner {
    justify-content: space-between;
    gap: 12px;
  }
  .site-brand { flex: 0 0 auto; justify-content: flex-start; }

  .site-nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    padding: 4px 0;
    background: none;
    border: 0;
  }
  .site-nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .site-nav-toggle:checked ~ .site-nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav-toggle:checked ~ .site-nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .site-nav-toggle:checked ~ .site-nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav a {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .site-nav a:not(.site-nav-cta) + a { border-top: 1px solid rgba(255,255,255,0.04); }
  .site-nav-cta {
    margin-top: 12px;
    padding: 14px 16px;
    text-align: center;
  }
  .site-nav-toggle:checked ~ .site-nav { display: flex; }
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 150ms ease, transform 100ms ease;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-hover); }
.btn-primary:active { transform: scale(0.98); }

/* HERO (insights index) */
.hero {
  background: var(--ink);
  color: #fff;
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 1.5rem;
  max-width: 820px;
}
.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: #b6b6b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FEATURED ON (shared logo strip — auto-scrolling marquee) */
.featured {
  background: var(--surface-alt);
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}
.featured-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0 0 2rem;
  padding: 0 var(--section-pad-x);
}
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logo-scroll 90s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.logo-track img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 200ms ease;
  flex-shrink: 0;
}
.logo-track img:hover { opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; padding: 0 var(--section-pad-x); }
}

/* INSIGHTS LIST */
.insights-list {
  background: var(--surface);
  padding: var(--section-pad-y) var(--section-pad-x);
}
.insights-list-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, border-color 150ms ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}
.post-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 12px;
}
.post-card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}
.post-card-date {
  font-size: 12px;
  color: var(--text-quiet);
  margin: 0;
  letter-spacing: 0.04em;
}

/* POST PAGE */
.post-hero {
  background: var(--ink);
  color: #fff;
  padding: var(--section-pad-y) var(--section-pad-x) clamp(40px, 6vw, 80px);
}
.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.post-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 1.5rem;
}
.post-eyebrow a {
  color: var(--brand-primary);
  text-decoration: none;
}
.post-eyebrow a:hover { text-decoration: underline; }
.post-eyebrow span { color: #b6b6b8; }
.post-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.5rem;
}
.post-meta {
  font-size: 14px;
  color: #b6b6b8;
  margin: 0;
  letter-spacing: 0.04em;
}
.post-body {
  background: var(--surface);
  padding: clamp(40px, 6vw, 80px) var(--section-pad-x) var(--section-pad-y);
}
.post-body-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.post-body-inner h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.post-body-inner h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 2rem 0 1rem;
  line-height: 1.35;
}
.post-body-inner p {
  margin: 0 0 1.25rem;
  color: var(--text);
}
.post-body-inner p.lede {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.post-body-inner a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body-inner a:hover {
  color: var(--brand-primary-hover);
}
.post-body-inner ul, .post-body-inner ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.post-body-inner li {
  margin: 0 0 0.5rem;
}
.post-body-inner blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--brand-primary);
  background: var(--surface-alt);
  font-style: italic;
  color: var(--text-muted);
}
.post-body-inner strong {
  font-weight: 600;
  color: var(--text);
}
.post-image {
  margin: 2rem 0;
}
.post-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* RELATED POSTS (shown above CTA on insight posts) */
.related {
  background: var(--surface-alt);
  padding: clamp(60px, 9vw, 100px) var(--section-pad-x);
}
.related-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 2rem;
  color: var(--text-quiet);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, border-color 150ms ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}
.related-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.related-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
  flex-grow: 1;
}
.related-card .read-more {
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 500;
}

/* POST CTA — bold brand-blue band */
.post-cta {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
  color: #fff;
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}
.post-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.post-cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.75rem;
}
.post-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.75rem;
}
.post-cta .btn-primary {
  background: #fff;
  color: var(--brand-primary);
}
.post-cta .btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

/* FOOTER */
footer {
  background: #060607;
  color: #888;
  padding: 32px var(--section-pad-x);
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #888; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: #888; text-decoration: none; }
.footer-social a:hover { color: #fff; }
.footer-credit {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: #666;
  text-align: center;
}
.footer-credit a { color: #888; text-decoration: none; }
.footer-credit a:hover { color: #fff; }
