/* ============================================================
   Agentyug Design System
   Brand: #D97757 Japonica · #F4F3EE Pampas · #B1ADA1 Cloudy
   Fonts: Newsreader (headlines) · DM Sans (body)
   ============================================================ */


/* ── Variables ── */
:root {
  --primary: #D97757;
  --primary-dark: #C4623E;
  --primary-light: #F0C4AE;
  --primary-pale: #FBF0EB;
  --bg: #F4F3EE;
  --bg-warm: #EEECE5;
  --muted: #B1ADA1;
  --muted-dark: #7A756C;
  --white: #FFFFFF;
  --text: #2A2520;
  --text-secondary: #5C564F;
  --text-light: #7A756C;
  --border: #E0DDD6;
  --border-strong: #C8C4BB;

  --font-serif: 'Newsreader', 'Georgia', serif;
  --font-sans: 'DM Sans', 'system-ui', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(42, 37, 32, 0.08);
  --shadow: 0 4px 16px rgba(42, 37, 32, 0.10);
  --shadow-lg: 0 8px 32px rgba(42, 37, 32, 0.12);
  --shadow-xl: 0 16px 48px rgba(42, 37, 32, 0.14);

  --container: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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: inherit;
}

input,
textarea,
select {
  font: inherit;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

p+p {
  margin-top: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-lg {
  padding: 128px 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Logo Marquee ── */
.marquee-section {
  padding: 28px 0;
  background: var(--bg);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.marquee-track {
  position: relative;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  flex-shrink: 0;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity 0.25s, filter 0.25s;
}

.marquee-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.marquee-logo img {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-logo .wordmark {
  color: var(--text);
}

.nav-logo .wordmark em {
  font-style: normal;
  color: var(--primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.85;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-warm);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Mobile menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
}

/* Liquid spinning-border button */
@property --liq-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes liq-spin {
  to {
    --liq-a: 360deg;
  }
}

.btn-primary {
  --liq-a: 0deg;
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(#2A2520, #2A2520) padding-box,
    conic-gradient(from var(--liq-a),
      #D97757 0%,
      #F0BFA6 20%,
      #fff8f4 35%,
      #D97757 50%,
      #B85A3A 70%,
      #F0BFA6 85%,
      #D97757 100%) border-box;
  animation: liq-spin 3s linear infinite;
  color: #fff;
  border-radius: 10px;
  box-shadow:
    0 0 18px rgba(217, 119, 87, 0.35),
    0 4px 14px rgba(217, 119, 87, 0.20);
  transition: box-shadow 0.3s, transform 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  box-shadow:
    0 0 32px rgba(217, 119, 87, 0.65),
    0 6px 24px rgba(217, 119, 87, 0.40);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-weight: 600;
}

.btn-ghost:hover {
  gap: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.825rem;
}

.btn-arrow::after {
  content: '→';
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-sm {
  padding: 24px;
  border-radius: var(--radius);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.badge-muted {
  background: var(--bg-warm);
  color: var(--text-light);
}

.badge-dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 78% 30%, rgba(217, 119, 87, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(217, 119, 87, 0.07) 0%, transparent 65%),
    var(--bg);
}

/* Lift all hero content */
.hero>*,
.page-hero>* {
  position: relative;
  z-index: 1;
}

/* Two-column hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 420px;
  }
}

.hero-label {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.suck-word {
  position: relative;
  display: inline-block;
  color: var(--primary);
  font-style: italic;
}

.suck-word::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: stroke-draw 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes stroke-draw {
  to {
    transform: scaleX(1);
  }
}

.hero .lead {
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Spinning Logos ── */
.spin-scene {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
  flex-shrink: 0;
}

.spin-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 119, 87, 0.30);
  animation: spin-cw 22s linear infinite;
}

.orbit-item {
  position: absolute;
  top: calc(50% - 28px);
  left: calc(50% - 28px);
  width: 56px;
  height: 56px;
  transform: rotate(var(--a)) translateY(-162px);
}

.icon-inner {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  box-shadow: var(--shadow);
  animation: spin-ccw 22s linear infinite;
  overflow: hidden;
}

.icon-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: var(--white);
  border-radius: 50%;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2;
}

.spin-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

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

@media (max-width: 959px) {
  .spin-scene {
    width: 300px;
    height: 300px;
  }

  .orbit-item {
    transform: rotate(var(--a)) translateY(-110px);
  }
}

/* ── Section headers ── */
.section-header {
  margin-bottom: 56px;
}

.section-header .eyebrow {
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 560px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0 auto;
}

/* ── Service card ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-card h3 {
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
  transition: gap 0.2s;
}

.service-link:hover {
  gap: 10px;
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Highlight card */
.stat-item {
  position: relative;
  background: #2A2520;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  border: 1px solid rgba(217, 119, 87, 0.22);
  box-shadow:
    0 0 0 1px rgba(217, 119, 87, 0.08),
    0 0 18px 2px rgba(217, 119, 87, 0.18),
    0 0 40px 6px rgba(217, 119, 87, 0.10),
    0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Mouse-tracking spotlight */
.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
      rgba(217, 119, 87, 0.18) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
  pointer-events: none;
}

.stat-item:hover {
  border-color: rgba(217, 119, 87, 0.55);
  box-shadow:
    0 0 0 1px rgba(217, 119, 87, 0.15),
    0 0 28px 6px rgba(217, 119, 87, 0.32),
    0 0 60px 12px rgba(217, 119, 87, 0.16),
    0 4px 24px rgba(0, 0, 0, 0.35);
}

.stat-item:hover::before {
  opacity: 1;
}

/* Glowing border sweep on hover */
.stat-item::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(from var(--ha, 0deg),
      transparent 20%,
      rgba(217, 119, 87, 0.8) 40%,
      rgba(240, 191, 166, 1) 50%,
      rgba(217, 119, 87, 0.8) 60%,
      transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

.stat-item:hover::after {
  opacity: 1;
  animation: stat-beam 1.8s linear infinite;
}

@property --ha {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes stat-beam {
  to {
    --ha: 360deg;
  }
}

.stat-number {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── Process steps ── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.process-step:last-child {
  border-bottom: none;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
}

.step-content p {
  font-size: 0.9rem;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-a {
  display: none;
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  display: block;
}

/* ── Testimonials Slider ── */
.tslider {
  position: relative;
  overflow: hidden;
}

/* Edge fade gradients */
.tslider::before,
.tslider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  z-index: 2;
  pointer-events: none;
}

.tslider::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.tslider::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.tslider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.tslider-slide {
  flex: 0 0 52%;
  width: 52%;
  padding: 8px 12px 12px;
  transition: filter 0.45s ease, opacity 0.45s ease;
  filter: blur(3px);
  opacity: 0.45;
  pointer-events: none;
}

.tslider-slide.active {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

.tslider-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 24px rgba(217, 119, 87, 0.18), 0 8px 40px rgba(217, 119, 87, 0.10);
  height: 100%;
  box-sizing: border-box;
}

/* Push proof/embeds to bottom so all cards align */
.tslider-card .testimonial-proof,
.tslider-card .testimonial-li-embeds {
  margin-top: auto;
}

@media (max-width: 768px) {
  .tslider-slide {
    flex: 0 0 85%;
    width: 85%;
  }

  .tslider-card {
    padding: 28px 24px;
  }
}

/* Controls */
.tslider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.tslider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: unset;
}

.tslider-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tslider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tslider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.tslider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Card internals */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  position: relative;
  padding-left: 20px;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary-light);
  font-style: normal;
}

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

.testimonial-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.testimonial-metric::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23D97757' stroke-width='1.5'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%23D97757' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 500;
  overflow: hidden;
}

.testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.testimonial-info {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-title {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1px;
}

.testimonial-logo {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
  flex-shrink: 0;
}

/* PDF preview block */
.testimonial-proof {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  position: relative;
}

.testimonial-pdf-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}

.testimonial-pdf-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 260px;
}

.testimonial-pdf-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--text);
  border-radius: 99px;
  padding: 7px 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.18s;
}

.testimonial-pdf-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* LinkedIn side-by-side embeds */
.testimonial-li-embeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial-li-embeds iframe {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: 180px !important;
}

@media (max-width: 768px) {
  .testimonial-li-embeds {
    grid-template-columns: 1fr;
  }
}

/* ── Homepage service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

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

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


.svc-card {
  position: relative;
  background: #1a1410;
  border: 1px solid rgba(217, 119, 87, 0.18);
  border-radius: 16px;
  padding: 28px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.2s;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
      rgba(217, 119, 87, 0.16) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.svc-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(from var(--ha, 0deg),
      transparent 20%,
      rgba(217, 119, 87, 0.8) 40%,
      rgba(240, 191, 166, 1) 50%,
      rgba(217, 119, 87, 0.8) 60%,
      transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.svc-card:hover {
  border-color: rgba(217, 119, 87, 0.45);
  transform: translateY(-3px);
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-card:hover::after {
  opacity: 1;
  animation: stat-beam 1.8s linear infinite;
}

.svc-card-icon {
  position: relative;
  z-index: 3;
  line-height: 1;
  flex-shrink: 0;
}

.svc-card-icon svg {
  display: block;
  opacity: 0.92;
}

.svc-card-body {
  margin-top: auto;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.svc-card-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.svc-card-arrow {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s;
  display: inline-block;
  margin-top: 4px;
}

.svc-card:hover .svc-card-arrow {
  transform: translateX(5px);
}

/* ══════════════════════════════════════════
   SERVICE PAGE LAYOUT (sp-*)
══════════════════════════════════════════ */
.sp-hero {
  padding: 64px 0 72px;
  background: var(--bg);
}

.sp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.sp-left {
  position: sticky;
  top: 100px;
}

.sp-left .eyebrow {
  margin-bottom: 14px;
}

.sp-left h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 18px;
}

.sp-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

.sp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.sp-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8.25' stroke='%23D97757' stroke-width='1.5'/%3E%3Cpath d='M5.5 9l2.5 2.5 4.5-5' stroke='%23D97757' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.sp-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-cal-label {
  display: none;
}

.sp-cal-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: visible;
}

.sp-cal-embed>div {
  width: 100% !important;
  height: auto !important;
  min-height: 700px;
  overflow: visible !important;
}

/* FAQ grid */
.sp-faq {
  background: var(--white);
}

.sp-faq-intro {
  max-width: 600px;
  margin-bottom: 48px;
}

.sp-faq-intro h2 {
  margin: 10px 0 12px;
}

.sp-faq-intro p {
  color: var(--text-muted);
  margin: 0;
}

.sp-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sp-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-faq-item h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.sp-faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.sp-faq-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sp-faq-link {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.sp-faq-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 900px) {
  .sp-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-left {
    position: static;
  }

  .sp-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Viral posts ── */
.viral-posts-section {
  background: var(--bg);
}

.viral-posts-grid {
  columns: 3 320px;
  column-gap: 20px;
}

.viral-post-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.viral-post-item iframe {
  display: block;
  width: 100%;
  border: none;
  /* height comes from the HTML height attribute — exact measured value per post */
}

@media (max-width: 768px) {
  .viral-posts-grid {
    columns: 1;
  }
}

/* ── Blog card ── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Featured blog card - add left padding to body content only */
.featured-card {
  padding-left: 16px;
}

.featured-card .blog-card-body {
  padding: 40px 50px 40px 50px !important;
}


.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.9rem;
  flex: 1;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.author-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Case study card ── */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 24px;
  transition: box-shadow 0.2s;
}

@media (min-width: 768px) {
  .case-card {
    grid-template-columns: 1fr 1fr;
  }
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
}

.case-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-metric-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
}

.case-metric-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-light);
  padding: 20px 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--muted);
}

/* ── Article / Blog content ── */
.article-header {
  padding: 60px 0 48px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  margin: 48px 0 16px;
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: 1.3rem;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 16px 0 20px 24px;
  list-style: disc;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Blog prose ── */
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.prose p {
  margin-bottom: 1.5em;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  margin-top: 3em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: var(--text);
  margin-top: 2.25em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--primary-dark);
}

.prose ul,
.prose ol {
  margin: 0.75em 0 1.5em 1.5em;
  list-style: disc;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--primary-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

/* ── CTA section ── */
.cta-section {
  background: var(--text);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(217, 119, 87, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(217, 119, 87, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section>* {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-section .btn-primary {
  font-size: 1rem;
  padding: 16px 36px;
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: var(--muted);
  padding: 64px 0 32px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-brand .footer-logo span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 260px;
}

.footer-addr {
  font-style: normal;
  margin-top: 12px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
}

.footer-col .footer-col-heading {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ── Page hero (interior pages) ── */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 85% 20%, rgba(217, 119, 87, 0.10) 0%, transparent 65%),
    linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .lead {
  max-width: 600px;
}

/* Blog post hero metadata layout */
.blog-hero-meta {
  display: grid !important;
  grid-template-columns: 1fr !important;
  margin-bottom: 36px !important;
}

.blog-hero-badges {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.blog-hero-stats {
  display: block !important;
  font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.page-hero .blog-hero-meta + h1 {
  margin-top: 0;
}

/* ── Highlight box ── */
.highlight-box {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.highlight-box p {
  color: var(--text-secondary);
}

/* ── Table of contents ── */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 48px;
}

.toc h5 {
  margin-bottom: 12px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc li {
  font-size: 0.9rem;
  counter-increment: toc-counter;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.toc li::before {
  content: counter(toc-counter) ".";
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 20px;
}

.toc a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--primary);
}

.toc ol {
  counter-reset: toc-counter;
}

/* ── Related posts ── */
.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  margin-bottom: 28px;
  font-size: 1.4rem;
}

/* ── Tag list ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: var(--bg-warm);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tag:hover {
  background: var(--primary-pale);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* ── Author bio (inline) ── */
.author-bio-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 48px 0;
  align-items: flex-start;
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.author-bio-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-bio-role {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.author-bio-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Dividers ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── Utilities ── */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-light);
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── Responsive typography helpers ── */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section-lg {
    padding: 80px 0;
  }

  .cta-section {
    padding: 48px 24px;
    border-radius: var(--radius-lg);
  }

  .hero {
    padding: 64px 0 56px;
  }
}