/* ================================================
   Spencer Solutions -- Bold Agency Redesign v2
   Design: Confident, editorial-luxury creative agency
   Font pairing: Instrument Serif + DM Sans
   Palette: Off-black, warm cream, vivid terracotta
   Key moves: Full-bleed hero, morphing blobs, marquee,
   bento grid, grain texture, scroll reveals, magnetic CTAs
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700&family=Instrument+Serif:ital@0;1&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #f5f1eb;
  --bg-dark: #141210;
  --surface: #ffffff;
  --surface-warm: #faf7f3;
  --text: #141210;
  --text-light: #ede8e2;
  --text-muted-light: rgba(237, 232, 226, 0.75);
  --muted: #5a544f;
  --accent: #c44b2b;
  --accent-bright: #e05a35;
  --accent-deep: #a33d22;
  --accent-soft: rgba(196, 75, 43, 0.08);
  --accent-medium: rgba(196, 75, 43, 0.15);
  --border: rgba(20, 18, 16, 0.08);
  --border-dark: rgba(237, 232, 226, 0.1);
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { 
  box-sizing: border-box;
  /* Prevent overflow on mobile */
  max-width: 100%;
}
html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-display); 
  font-weight: 400;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { 
  max-width: 100%; 
  height: auto;
  display: block;
}
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
p {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- Selection & Scrollbar --- */
::selection {
  background: var(--accent);
  color: white;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* --- Typography --- */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.heading-md {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.heading-sm {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.body-lg {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}
.body-md {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}
.body-sm {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.text-muted {
  color: var(--muted);
}

/* --- Container --- */
.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

/* ==========================================
   BUTTONS -- Magnetic feel, rich hovers
   ========================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 16px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(196, 75, 43, 0.25);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 48px rgba(196, 75, 43, 0.35);
}
.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(196, 75, 43, 0.25);
}
.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn-secondary:hover {
  background: currentColor;
  transform: translateY(-2px);
}
.btn-secondary.btn-on-dark:hover {
  color: var(--bg-dark);
}
.btn-primary.btn-on-dark {
  background: white;
  color: var(--bg-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.btn-primary.btn-on-dark:hover {
  background: var(--text-light);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px) scale(1.02);
}
.btn-secondary.btn-on-dark {
  color: var(--text-light);
}
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ==========================================
   HEADER -- Floating pill nav
   ========================================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 16px auto 0;
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(245, 241, 235, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.3s var(--ease), background 0.3s;
}
.site-header:hover {
  box-shadow: 0 4px 30px rgba(20, 18, 16, 0.06);
}
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-style: italic;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.7; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  color: var(--muted);
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(20, 18, 16, 0.04);
}
.site-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(20, 18, 16, 0.07);
}
.site-nav a[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- Mobile Menu --- */
.menu-toggle,
.menu-close {
  display: none;
}
.menu-toggle {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.menu-toggle:hover {
  border-color: var(--muted);
  background: var(--surface-warm);
}
.menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  stroke-width: 2;
  fill: none;
}
.nav-overlay { display: none; }

@media (max-width: 768px) {
  .menu-toggle,
  .menu-close { display: flex; }
  .site-nav {
    position: fixed; top: 0; right: 0;
    width: 300px; height: 100dvh;
    background: var(--bg-dark);
    flex-direction: column; align-items: flex-start;
    padding: 80px 36px 36px; gap: 0;
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a {
    color: var(--text-light); font-size: 1.15rem;
    padding: 16px 0; width: 100%;
    border-bottom: 1px solid var(--border-dark);
    border-radius: 0;
    font-weight: 500;
  }
  .site-nav a::after { display: none; }
  .site-nav a:hover { background: transparent; color: white; }
  .site-nav a[aria-current="page"] { color: white; background: transparent; }
  .nav-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 299;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
  .menu-close {
    position: absolute; top: 20px; right: 20px;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    border-radius: 999px; background: rgba(255,255,255,0.08);
    transition: background 0.2s;
  }
  .menu-close:hover { background: rgba(255,255,255,0.15); }
  .menu-close svg {
    width: 18px; height: 18px;
    stroke: white; stroke-width: 2; fill: none;
  }
}

/* ==========================================
   HERO -- Full viewport, dramatic split
   ========================================== */
.hero {
  min-height: 92vh;
  margin-top: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero .eyebrow {
  color: var(--accent-bright);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s var(--ease-out) 0.2s forwards;
}
.hero h1 {
  color: white;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s var(--ease-out) 0.35s forwards;
}
.hero h1 em {
  color: var(--accent-bright);
  font-style: italic;
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-bright);
  border-radius: 2px;
  opacity: 0.4;
}
.hero .body-lg {
  color: var(--text-muted-light);
  max-width: 480px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.7s var(--ease-out) 0.5s forwards;
}
.hero .btn-group {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s var(--ease-out) 0.65s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero visual side -- animated shapes */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  opacity: 0;
  animation: heroVisualIn 1s var(--ease-out) 0.6s forwards;
}
.hero-shapes {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}
.hero-shape-1 {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 32% 68% 60% 40% / 40% 32% 68% 60%;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  opacity: 0.9;
  animation: morph1 12s ease-in-out infinite;
  filter: blur(0px);
}
.hero-shape-2 {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 60% 40% 32% 68% / 68% 60% 40% 32%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  animation: morph2 10s ease-in-out infinite;
}
.hero-dot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  height: 84%;
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: spin 32s linear infinite;
}
/* Inner decorative ring */
.hero-dot-ring::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-bright), 0 0 40px rgba(224, 90, 53, 0.3);
}
@keyframes heroVisualIn {
  to { opacity: 1; }
}
@keyframes morph1 {
  0%, 100% { border-radius: 32% 68% 60% 40% / 40% 32% 68% 60%; }
  50% { border-radius: 60% 40% 32% 68% / 68% 60% 40% 32%; }
}
@keyframes morph2 {
  0%, 100% { border-radius: 60% 40% 32% 68% / 68% 60% 40% 32%; }
  50% { border-radius: 32% 68% 60% 40% / 40% 32% 68% 60%; }
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero background layers */
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(196, 75, 43, 0.12), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================
   MARQUEE STRIP
   ========================================== */
.marquee-strip {
  background: var(--accent);
  color: white;
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-strip::before,
.marquee-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--accent), transparent);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--accent), transparent);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  padding: 0 28px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.marquee-track span:hover {
  opacity: 1;
}
.marquee-track span::after {
  content: "\2022";
  margin-left: 52px;
  opacity: 0.4;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}
.section--alt {
  background: var(--surface-warm);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
  opacity: 0.5;
}
.section--dark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  pointer-events: none;
}
.section--dark .eyebrow { color: var(--accent-bright); }
.section--dark .body-lg,
.section--dark .body-md { color: var(--text-muted-light); }
.section--dark > .container { position: relative; z-index: 1; }

.section-header {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-header h2 {
  margin-bottom: 18px;
}
.section-header .body-lg {
  margin-bottom: 0;
}

/* --- Utility section modifiers --- */
.section-header--narrow { max-width: 700px; }
.section-header--center { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section--flush-top { padding-top: 0; }

/* ==========================================
   BENTO SERVICES GRID
   ========================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-grid .bento-card:first-child {
  grid-column: 1 / 3;
  grid-row: 1;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s;
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(20, 18, 16, 0.1);
  border-color: rgba(196, 75, 43, 0.15);
}
.bento-card:hover::before {
  transform: scaleX(1);
}
.bento-card:hover::after {
  opacity: 1;
}
.bento-card .bento-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.bento-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}
.bento-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Featured bento card (first, spanning 2 cols) */
.bento-card--featured {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px 40px;
}
.bento-card--featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright)) !important;
  transform: scaleX(1);
}
.bento-card--featured::after {
  background: radial-gradient(circle at 80% 20%, rgba(224, 90, 53, 0.12), transparent 60%);
}
.bento-card--featured:hover {
  border-color: rgba(224, 90, 53, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.bento-card--featured h3 {
  color: white;
  font-size: 1.35rem;
}
.bento-card--featured p {
  color: var(--text-muted-light);
}
.bento-card--featured .bento-tag {
  background: rgba(224, 90, 53, 0.18);
  color: var(--accent-bright);
}

/* ==========================================
   STATS ROW
   ========================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.stat-item {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  transition: background 0.3s;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24%;
  height: 52%;
  width: 1px;
  background: var(--border-dark);
}
.stat-item:hover {
  background: rgba(255,255,255,0.03);
}
.stat-item .stat-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent-bright);
  line-height: 1.1;
  margin-bottom: 10px;
  transition: transform 0.3s var(--ease);
}
.stat-item:hover .stat-number {
  transform: scale(1.05);
}
.stat-item .stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted-light);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ==========================================
   CTA BANNER
   ========================================== */
.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(64px, 9vw, 100px) clamp(32px, 6vw, 76px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(196, 75, 43, 0.16), transparent 55%);
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.4;
}
.cta-banner h2 {
  color: white;
  margin-bottom: 18px;
  position: relative;
}
.cta-banner .body-lg {
  max-width: 500px;
  margin: 0 auto 38px;
  color: var(--text-muted-light);
  position: relative;
}
.cta-banner .btn-primary {
  position: relative;
}

/* ==========================================
   PAGE HEADER (inner pages)
   ========================================== */
.page-header {
  padding: clamp(56px, 10vw, 110px) 0 clamp(24px, 5vw, 48px);
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-header h1 {
  margin-bottom: 18px;
}
.page-header .body-lg {
  max-width: 560px;
}

/* ==========================================
   ABOUT CONTENT
   ========================================== */
.about-body {
  max-width: 640px;
}
.about-body p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 22px;
}
.about-body p:last-child { margin-bottom: 0; }

/* ==========================================
   VALUES GRID
   ========================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-block {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.value-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}
.value-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(20, 18, 16, 0.07);
  border-color: rgba(196, 75, 43, 0.12);
}
.value-block:hover::after {
  transform: scaleX(1);
}
.value-block .value-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s, transform 0.3s;
}
.value-block:hover .value-icon {
  background: var(--accent-medium);
  transform: scale(1.08) rotate(-3deg);
}
.value-block .value-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s;
}
.value-block:hover .value-icon svg {
  transform: rotate(5deg);
}
.value-block h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.value-block p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--muted);
  margin: 0;
}

/* ==========================================
   SERVICES LIST (services page)
   ========================================== */
.services-list { display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 36px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: all 0.35s var(--ease-out);
  position: relative;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 0;
  bottom: 0;
  background: var(--accent-soft);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-row:hover::before { opacity: 1; }
.service-row:hover {
  padding-left: 12px;
  padding-right: 12px;
}
.service-row .service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
  transition: transform 0.3s var(--ease-out), color 0.3s;
  position: relative;
}
.service-row:hover .service-num {
  transform: translateX(4px);
  color: var(--accent-bright);
}
.service-row h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.service-row:hover h3 { color: var(--accent-deep); }
.service-row .body-md { max-width: 520px; }

/* ==========================================
   PROCESS STEPS
   ========================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: process;
}
.process-step {
  position: relative;
  padding-top: 58px;
  transition: transform 0.3s var(--ease);
}
.process-step:hover {
  transform: translateY(-4px);
}
.process-step::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--accent);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
  line-height: 1;
}
.process-step:hover::before {
  opacity: 0.6;
  transform: translateX(4px);
}
.process-step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.process-step:hover h3 { color: var(--accent-deep); }
.process-step p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Connector lines between steps */
.process-step:not(:nth-child(4n))::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -16px;
  width: 14px;
  height: 1px;
  background: var(--border);
}

/* ==========================================
   CONTACT LAYOUT
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-block {
  padding: 46px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.contact-info-block::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(196, 75, 43, 0.1), transparent 60%);
  pointer-events: none;
}
.contact-info-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.5;
}
.contact-info-block > * { position: relative; z-index: 1; }
.contact-info-block h2 {
  font-family: var(--font-body);
  font-weight: 700;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.contact-info-block .body-md,
.contact-info-block .body-sm {
  color: var(--text-muted-light);
  margin-bottom: 34px;
}
.contact-methods { display: grid; gap: 24px; }
.contact-method { display: grid; gap: 5px; }
.contact-method .label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted-light);
  font-weight: 600;
}
.contact-method .value {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ==========================================
   LEAD FORM
   ========================================== */
.lead-form {
  display: grid;
  gap: 20px;
  background: var(--surface);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(20, 18, 16, 0.04);
  transition: box-shadow 0.3s;
}
.lead-form:focus-within {
  box-shadow: 0 8px 40px rgba(20, 18, 16, 0.08);
  border-color: rgba(196, 75, 43, 0.15);
}
.form-field { display: grid; gap: 7px; }
.form-field label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface-warm);
  color: var(--text);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    transform 0.2s;
  outline: none;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: rgba(20, 18, 16, 0.18);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: white;
  transform: translateY(-1px);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field .form-error {
  font-size: 0.8rem; color: var(--accent); min-height: 0;
}
.lead-form button[type="submit"] {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.87rem;
  border-radius: 999px;
  padding: 17px 38px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(196, 75, 43, 0.25);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.lead-form button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.lead-form button[type="submit"]:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(196, 75, 43, 0.35);
}
.lead-form button[type="submit"]:hover::before { opacity: 1; }
.lead-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(196, 75, 43, 0.2);
}
.lead-form button[type="submit"]:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none;
}
.form-status { min-height: 1.5rem; margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ==========================================
   PRIVACY PAGE CONTENT
   ========================================== */
.page-content { max-width: 720px; }
.page-content h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 44px 0 14px;
  color: var(--text);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
  list-style: disc;
}
.page-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 5px;
}
.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.page-content a:hover { color: var(--accent-deep); }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  position: relative;
}
.footer-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}
.footer-brand { max-width: 280px; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: var(--muted); margin: 0; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 18px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--text);
  transform: translateX(3px);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--text); }

/* Social Links */
.footer-social, .contact-social {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.lus-social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lus-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted);
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.lus-social-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(196, 75, 43, 0.15);
}
.lus-social-icon { width: 16px; height: 16px; display: block; fill: currentColor; }
.brand-image { display: block; max-height: 32px; width: auto; }

/* ==========================================
   WHATSAPP FLOATING CHAT BUTTON
   ========================================== */
.wa-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition:
    transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.25s ease;
  /* Safe area insets for notched phones */
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: max(24px, env(safe-area-inset-right, 24px));
}
.wa-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.wa-button:active {
  transform: scale(0.96);
}
.wa-button svg {
  width: 28px;
  height: 28px;
  fill: white;
}
.wa-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
  transition: background 0.2s;
}
.wa-close:hover {
  background: rgba(0, 0, 0, 0.8);
}
.wa-close svg {
  width: 10px;
  height: 10px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}
.wa-button.hidden {
  display: none;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.reveal-fade.revealed { opacity: 1; }

/* Stagger delays for children */
.stagger-reveal > *:nth-child(1) { transition-delay: 0s; }
.stagger-reveal > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-reveal > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-reveal > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-reveal > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-reveal > *:nth-child(6) { transition-delay: 0.40s; }

/* Bento stagger */
.bento-grid .bento-card:nth-child(1) { transition-delay: 0s; }
.bento-grid .bento-card:nth-child(2) { transition-delay: 0.1s; }
.bento-grid .bento-card:nth-child(3) { transition-delay: 0.2s; }
.bento-grid .bento-card:nth-child(4) { transition-delay: 0.3s; }
.bento-grid .bento-card:nth-child(5) { transition-delay: 0.4s; }
.bento-grid .bento-card:nth-child(6) { transition-delay: 0.5s; }

/* Values stagger */
.values-grid .value-block:nth-child(1) { transition-delay: 0s; }
.values-grid .value-block:nth-child(2) { transition-delay: 0.12s; }
.values-grid .value-block:nth-child(3) { transition-delay: 0.24s; }

/* Process stagger */
.process-steps .process-step:nth-child(1) { transition-delay: 0s; }
.process-steps .process-step:nth-child(2) { transition-delay: 0.1s; }
.process-steps .process-step:nth-child(3) { transition-delay: 0.2s; }
.process-steps .process-step:nth-child(4) { transition-delay: 0.3s; }

/* Service rows stagger */
.services-list .service-row:nth-child(1) { transition-delay: 0s; }
.services-list .service-row:nth-child(2) { transition-delay: 0.06s; }
.services-list .service-row:nth-child(3) { transition-delay: 0.12s; }
.services-list .service-row:nth-child(4) { transition-delay: 0.18s; }
.services-list .service-row:nth-child(5) { transition-delay: 0.24s; }
.services-list .service-row:nth-child(6) { transition-delay: 0.30s; }

/* Stat items stagger */
.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(2) { transition-delay: 0.12s; }
.stat-item:nth-child(3) { transition-delay: 0.24s; }

/* Progressive enhancement: JS adds .scroll-reveal to hide elements,
   then .revealed brings them back. No JS = content stays visible. */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid .bento-card:first-child { grid-column: 1 / -1; }
  .bento-card--featured { grid-template-columns: 1fr; gap: 24px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:nth-child(4n))::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .hero .container { gap: 40px; }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .site-header {
    width: min(calc(100% - 24px), var(--max-width));
    top: 12px; margin-top: 12px; padding: 12px 18px;
  }
  .container { 
    width: min(calc(100% - 24px), var(--max-width));
    max-width: 100%;
  }
  .hero {
    min-height: auto; 
    padding: 100px 0 72px;
    overflow-x: hidden;
  }
  .hero .container { 
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-visual {
    display: none;
  }
  /* Ensure marquee doesn't cause overflow */
  .marquee-strip {
    max-width: 100vw;
  }
  .marquee-track {
    will-change: transform;
  }
  .bento-grid { 
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .bento-grid .bento-card:first-child { grid-column: auto; }
  .bento-card {
    max-width: 100%;
    word-wrap: break-word;
  }
  .bento-card--featured { 
    grid-template-columns: 1fr; 
    padding: 32px 26px;
    max-width: 100%;
  }
  .stats-row {
    grid-template-columns: 1fr; gap: 0;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }
  .stat-item {
    border-radius: 0 !important;
    padding: 28px 16px;
    max-width: 100%;
    word-wrap: break-word;
  }
  .stat-item + .stat-item { border-top: 1px solid var(--border-dark); }
  .stat-item:not(:last-child)::after { display: none; }
  .values-grid { 
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .value-block {
    max-width: 100%;
    word-wrap: break-word;
  }
  .process-steps { 
    grid-template-columns: 1fr; gap: 28px;
    max-width: 100%;
  }
  .process-step {
    padding-top: 48px;
    max-width: 100%;
    word-wrap: break-word;
  }
  .contact-layout { 
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .contact-info-block {
    max-width: 100%;
    word-wrap: break-word;
  }
  .lead-form { 
    padding: 28px 22px;
    max-width: 100%;
  }
  .lead-form input,
  .lead-form textarea {
    max-width: 100%;
  }
  .service-row {
    grid-template-columns: 1fr; gap: 10px;
    padding: 32px 0;
    max-width: 100%;
    word-wrap: break-word;
  }
  .service-row::before { left: 0; right: 0; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
  .service-row .service-num { font-size: 1.25rem; }
  .service-row h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .footer-grid { 
    grid-template-columns: 1fr; gap: 28px;
    max-width: 100%;
  }
  .footer-brand { 
    grid-column: auto;
    max-width: 100%;
    word-wrap: break-word;
  }
  .footer-bottom { 
    flex-direction: column; align-items: flex-start; gap: 10px;
    max-width: 100%;
    word-wrap: break-word;
  }
  .cta-banner { padding: clamp(48px, 8vw, 64px) clamp(24px, 5vw, 36px); border-radius: var(--radius-lg); }
  .section { padding: clamp(48px, 7vw, 76px) 0; }
  .btn-group { margin-top: 32px; gap: 10px; }
  .btn-primary, .btn-secondary { padding: 14px 28px; font-size: 0.83rem; }
  .lead-form { padding: 28px 22px; }
  .page-header { 
    padding: clamp(48px, 8vw, 80px) 0 clamp(20px, 4vw, 36px);
    max-width: 100%;
  }
  .page-header h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .marquee-track span { font-size: 0.95rem; padding: 0 20px; }
  .marquee-track span::after { margin-left: 36px; }

  /* Blog listing - single column on mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .blog-card {
    padding: 28px 24px;
    max-width: 100%;
    word-wrap: break-word;
  }
  .blog-card-title {
    font-size: 1.05rem;
  }

  /* Blog article - mobile adjustments */
  .article-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .article-body {
    padding: 36px 0;
    max-width: 100%;
  }
  .article-body p {
    font-size: 0.98rem;
  }
  .article-lead {
    font-size: 1.05rem !important;
  }
  .article-body h2 {
    font-size: 1.25rem;
    margin-top: 36px;
  }
  .article-cta {
    padding: 28px 22px;
    margin-top: 40px;
  }
  .article-cta h3 {
    font-size: 1.1rem;
  }

  /* FAQ mobile */
  .faq-question {
    font-size: 0.93rem;
    padding: 20px 0;
  }
  .faq-answer p {
    font-size: 0.88rem;
  }
}

/* ==========================================
   BLOG LISTING PAGE
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(20, 18, 16, 0.08);
  border-color: rgba(196, 75, 43, 0.12);
}
.blog-card:hover::before {
  transform: scaleX(1);
}
.blog-card-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.blog-card-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  align-self: flex-start;
}
.blog-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  transition: color 0.2s;
}
.blog-card-title a {
  color: var(--text);
  transition: color 0.2s;
}
.blog-card-title a:hover {
  color: var(--accent-deep);
}
.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.meta-sep { opacity: 0.5; }
.blog-card-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card-link:hover {
  color: var(--accent-deep);
  transform: translateX(3px);
}

/* Blog stagger for scroll reveal */
.blog-grid .blog-card:nth-child(1) { transition-delay: 0s; }
.blog-grid .blog-card:nth-child(2) { transition-delay: 0.1s; }
.blog-grid .blog-card:nth-child(3) { transition-delay: 0.2s; }
.blog-grid .blog-card:nth-child(4) { transition-delay: 0.3s; }
.blog-grid .blog-card:nth-child(5) { transition-delay: 0.4s; }
.blog-grid .blog-card:nth-child(6) { transition-delay: 0.5s; }
.blog-grid .blog-card:nth-child(7) { transition-delay: 0.6s; }

/* ==========================================
   BLOG ARTICLE (single post)
   ========================================== */
.blog-article {
  background: var(--bg);
}
.blog-article .page-header,
.blog-article .container:first-child {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(32px, 5vw, 64px);
}
.blog-back-link {
  margin-bottom: 28px;
}
.blog-back-link a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted-light);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-back-link a:hover {
  color: white;
}
.article-header {
  max-width: 720px;
}
.article-header .eyebrow {
  color: var(--accent-bright);
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 20px;
}
.article-title em {
  color: var(--accent-bright);
  font-style: italic;
}
.article-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 0;
}
.article-body p {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 22px;
}
.article-body p:last-child { margin-bottom: 0; }
.article-lead {
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  color: var(--text) !important;
  font-weight: 500;
}
.article-body h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 22px;
}
.article-body ul li {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body strong {
  color: var(--text);
  font-weight: 700;
}

/* Article CTA block */
.article-cta {
  margin-top: 56px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.article-cta p {
  color: var(--text-muted-light) !important;
  max-width: 480px;
  margin: 0 auto 28px !important;
  font-size: 0.95rem !important;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-list {
  max-width: 700px;
  display: grid;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  transition: color 0.25s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] .faq-question::after {
  content: "\2212";
}
.faq-item[open] .faq-question {
  color: var(--accent-deep);
}
.faq-answer {
  padding: 0 0 24px;
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-up, .reveal-scale, .reveal-fade,
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
