/* ==========================================================================
   Funnele — design system
   Colors: white #FFFFFF · red #E43525 · ink #171717 · gray #5B5B5B · tint #FDECEA
   Type:   Space Grotesk (headings) · Public Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --white: #ffffff;
  --red: #e43525;
  --red-dark: #c22a1c;
  --ink: #171717;
  --gray: #5b5b5b;
  --tint: #fdecea;
  --line: #ececec;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
  --container: 1160px;
  --shadow-lift: 0 18px 40px -18px rgba(23, 23, 23, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.icon { width: 24px; height: 24px; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.eyebrow a.crumb { color: inherit; }

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 600; margin-bottom: 16px; }
.section-title-sm { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 600; margin-bottom: 14px; }
.section-text { color: var(--gray); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .section-text { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.2s, color 0.2s, border-color 0.2s;
  min-height: 44px;
  will-change: transform;
}
.btn .icon { width: 19px; height: 19px; transition: transform 0.25s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 12px 26px -10px rgba(228, 53, 37, 0.55); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-light { background: var(--white); color: var(--red); }
.btn-light:hover { box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.35); }

.btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand-logo { height: 30px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; }

.nav-link {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  color: var(--ink); text-decoration: none !important;
  transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: var(--red); background: var(--tint); }
.nav-link.is-active { color: var(--red); }

.nav-cta-item { margin-left: 10px; }
.nav-cta { padding: 11px 22px; font-size: 0.95rem; }

/* Dropdowns (Services / Resources) — click-toggled everywhere, hover-assisted
   on fine pointers only, so touch devices never depend on hover. */
.nav-item-drop { position: relative; }

.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.nav-caret { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.nav-item-drop.is-open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 340px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(23, 23, 23, 0.28);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  z-index: 110;
}
.nav-item-drop.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-link {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none !important;
  transition: background-color 0.15s;
}
.nav-drop-link:hover { background: var(--tint); }
.nav-drop-link .icon { width: 26px; height: 26px; color: var(--red); flex: none; }
.nav-drop-link span { display: flex; flex-direction: column; line-height: 1.3; }
.nav-drop-link strong { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.nav-drop-link small { color: var(--gray); font-size: 0.82rem; }
.nav-drop-link.is-active strong { color: var(--red); }
.nav-drop-all { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: none; border: 0; cursor: pointer; border-radius: 10px;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(23, 23, 23, 0.45);
  opacity: 0; transition: opacity 0.25s;
}
.nav-scrim.is-visible { opacity: 1; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed; top: 76px; right: 0; z-index: 95;
    width: min(360px, 88vw); height: calc(100dvh - 76px);
    background: var(--white); border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.32s var(--ease-out);
    overflow-y: auto; padding: 28px 24px;
    box-shadow: -24px 0 48px -24px rgba(23, 23, 23, 0.25);
  }
  .site-nav.is-open { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; padding: 14px 12px; font-size: 1.15rem; }
  .nav-cta-item { margin: 18px 0 0; }
  .nav-cta { width: 100%; justify-content: center; padding: 15px 22px; font-size: 1.05rem; }

  /* In the slide-in panel, dropdowns become always-visible groups —
     no nested toggling to break on touch. */
  .nav-drop-btn { width: 100%; justify-content: space-between; pointer-events: none; }
  .nav-caret { display: none; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; border: 0; box-shadow: none; border-radius: 0;
    padding: 0 0 6px 10px;
  }
  .nav-drop-link { padding: 10px 12px; }
  .nav-drop-all { border-bottom: 0; margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 70% 10%, rgba(228, 53, 37, 0.07), transparent 65%),
    var(--white);
}

.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
.hero-fallback {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 640px); height: auto; opacity: 0.9;
}
.hero-canvas.has-webgl .hero-fallback { display: none; }

.hero-inner { position: relative; z-index: 1; max-width: var(--container); width: 100%; padding-top: 60px; padding-bottom: 80px; }

.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 700; letter-spacing: -0.025em;
  max-width: 13ch; margin-bottom: 22px;
}
.hero-title .hero-word { display: inline-block; }

.hero-sub { color: var(--gray); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(23, 23, 23, 0.25); border-radius: 14px;
  z-index: 1;
}
.hero-scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--red); transform: translateX(-50%);
  animation: scroll-hint 1.8s var(--ease-out) infinite;
}
@keyframes scroll-hint {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero-fallback { opacity: 0.35; right: -30%; width: 90vw; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 96px 0; }
.section-slim { padding: 44px 0; }
.section-tint {
  background:
    radial-gradient(rgba(228, 53, 37, 0.055) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--tint) 0%, #fff7f6 100%);
}

.section-head-split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  max-width: none;
}

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 26px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink);
}
.trust-item .icon { color: var(--red); }
@media (max-width: 1024px) { .trust-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-inner { grid-template-columns: 1fr; gap: 12px; } }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .feature-grid, .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid, .feature-grid-4 { grid-template-columns: 1fr; } }

.feature-card, .hybrid-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s;
}
.feature-card:hover, .hybrid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.feature-card h3, .hybrid-card h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.feature-card p, .hybrid-card p { color: var(--gray); font-size: 0.98rem; }

.feature-icon, .service-icon { width: 42px; height: 42px; color: var(--red); }

.hybrid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .hybrid-grid { grid-template-columns: 1fr; } }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; color: var(--ink); text-decoration: none !important;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.service-card h3 { font-size: 1.35rem; margin-top: 8px; }
.service-card p { color: var(--gray); font-size: 0.98rem; flex-grow: 1; }
.service-card-cta { background: var(--ink); border-color: var(--ink); color: var(--white); }
.service-card-cta p { color: rgba(255, 255, 255, 0.75); }
.service-card-cta .service-icon { color: var(--white); }
.service-card-cta .card-link { color: var(--white); }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); margin-top: 6px;
}
.card-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.service-card:hover .card-link .icon, .case-card:hover .card-link .icon { transform: translateX(4px); }

/* Steps row */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; counter-reset: step; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr; } }
.step-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--white);
}
.step-card h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step-card p { color: var(--gray); font-size: 0.98rem; }
.step-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--red); letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 92px 0 64px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 420'%3E%3Cg fill='none' stroke='%23E43525' stroke-opacity='.16' stroke-width='1.5'%3E%3Cellipse cx='260' cy='70' rx='210' ry='48'/%3E%3Cellipse cx='260' cy='150' rx='150' ry='34'/%3E%3Cellipse cx='260' cy='220' rx='95' ry='22'/%3E%3Cellipse cx='260' cy='280' rx='48' ry='12'/%3E%3C/g%3E%3Cg fill='%23E43525'%3E%3Ccircle cx='50' cy='70' r='4' opacity='.45'/%3E%3Ccircle cx='470' cy='70' r='4' opacity='.45'/%3E%3Ccircle cx='110' cy='150' r='3.5' opacity='.4'/%3E%3Ccircle cx='410' cy='150' r='3.5' opacity='.4'/%3E%3Ccircle cx='165' cy='220' r='3' opacity='.35'/%3E%3Ccircle cx='355' cy='220' r='3' opacity='.35'/%3E%3Ccircle cx='260' cy='332' r='6' opacity='.55'/%3E%3C/g%3E%3Cpath d='M260 292v34' stroke='%23E43525' stroke-opacity='.3' stroke-width='2' stroke-dasharray='2 6'/%3E%3C/svg%3E") no-repeat right -60px top 20px / 480px auto,
    radial-gradient(800px 380px at 85% 0%, rgba(228, 53, 37, 0.08), transparent 60%),
    var(--white);
}
@media (max-width: 900px) {
  .page-hero { background-size: 0 0, 800px 380px, auto; }
}
.page-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: 18px; }
.page-sub { color: var(--gray); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 56ch; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 6px; }
.chip {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em;
  background: var(--tint); color: var(--red-dark);
  border: 1px solid rgba(228, 53, 37, 0.18);
  padding: 8px 16px; border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Roadmap (scroll-driven)
   -------------------------------------------------------------------------- */

.roadmap { list-style: none; position: relative; max-width: 780px; }
.roadmap::before {
  content: ''; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--red) var(--roadmap-progress, 0%), rgba(228, 53, 37, 0.15) var(--roadmap-progress, 0%));
}
.roadmap-step { display: flex; gap: 26px; padding: 26px 0; position: relative; }
.roadmap-marker {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); border: 2px solid rgba(228, 53, 37, 0.25);
  display: grid; place-items: center; position: relative; z-index: 1;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.roadmap-icon { width: 28px; height: 28px; color: var(--red); }
.roadmap-icon path, .roadmap-icon circle, .roadmap-icon rect, .roadmap-icon ellipse { transition: stroke-dashoffset 1s var(--ease-out); }
.roadmap-step.is-active .roadmap-marker { border-color: var(--red); box-shadow: 0 0 0 6px rgba(228, 53, 37, 0.12); }
.roadmap-body h3 { font-size: 1.25rem; margin: 4px 0 6px; }
.roadmap-body p { color: var(--gray); max-width: 56ch; }

@media (max-width: 620px) {
  .roadmap::before { left: 23px; }
  .roadmap-marker { width: 48px; height: 48px; }
  .roadmap-icon { width: 22px; height: 22px; }
  .roadmap-step { gap: 18px; }
}

/* --------------------------------------------------------------------------
   Case study cards & metrics
   -------------------------------------------------------------------------- */

.case-grid, .resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .case-grid, .resource-grid { grid-template-columns: 1fr; } }

.case-card, .resource-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  background: var(--white); color: var(--ink); text-decoration: none !important;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s;
}
.case-card:hover, .resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.case-title, .resource-card h3 { font-size: 1.3rem; }
.case-excerpt, .resource-excerpt { color: var(--gray); font-size: 0.98rem; flex-grow: 1; }
.case-link, .resource-card .card-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.case-link .icon { width: 16px; height: 16px; }

.case-metrics { display: flex; gap: 26px; flex-wrap: wrap; padding: 16px 0 6px; border-top: 1px dashed var(--line); margin-top: 6px; }
.case-metric { display: flex; flex-direction: column; }
.case-metric-value { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--red); }
.case-metric-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gray); letter-spacing: 0.05em; text-transform: uppercase; }

.metric-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px 30px;
  margin-bottom: 40px;
}
.metric-cell { display: flex; flex-direction: column; gap: 2px; }
.metric-growth { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #ff7a6d; }
.metric-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.metric-range { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); font-family: var(--font-mono); }

/* Card media (chart thumbnails on case/resource cards) */
.card-media {
  margin: -32px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  aspect-ratio: 16 / 7.5; background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: left top;
  transition: transform 0.5s var(--ease-out);
}
.case-card:hover .card-media img, .resource-card:hover .card-media img, .blog-card:hover .blog-card-media img { transform: scale(1.04); }

/* Blog cards (homepage) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); color: var(--ink); text-decoration: none !important;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.blog-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; flex-grow: 1; }
.blog-card-body h3 { font-size: 1.2rem; }
.blog-card-body .resource-excerpt { flex-grow: 1; }

/* Filter pills */
.filter-row { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-pill {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none !important; min-height: 44px; display: inline-flex; align-items: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.filter-pill:hover { border-color: var(--red); color: var(--red); }
.filter-pill.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* --------------------------------------------------------------------------
   Why Funnele
   -------------------------------------------------------------------------- */

.why-block { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
@media (max-width: 820px) { .why-block { grid-template-columns: 1fr; gap: 16px; } }
.why-num { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; color: var(--tint); -webkit-text-stroke: 1.5px var(--red); display: block; line-height: 1; margin-bottom: 10px; }
.why-illus { margin-top: 28px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.illus { width: 100%; }

.check-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.check-list .icon { color: var(--red); margin-top: 3px; width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-hero { padding-bottom: 40px; }
.article-meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gray); }

.article-body { padding-bottom: 40px; }
.article-body h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.article-body h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.article-body p { margin: 0 0 18px; color: #2c2c2c; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body a { text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--red); padding: 6px 0 6px 20px; color: var(--gray); margin: 0 0 18px; }
.article-body img {
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 10px;
  box-shadow: 0 20px 44px -30px rgba(23, 23, 23, 0.25);
  margin: 10px 0 26px;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.95rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--tint); font-family: var(--font-head); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.lead-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: 0 24px 60px -32px rgba(23, 23, 23, 0.18);
}
.form-title { font-size: 1.4rem; margin-bottom: 22px; }

.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; background: var(--white);
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 53, 37, 0.14);
}
.form-note { font-size: 0.85rem; color: var(--gray); margin-top: 14px; text-align: center; }

.form-success {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 34px; text-align: center;
  background: var(--white);
}
.form-success .icon { width: 52px; height: 52px; color: var(--red); margin: 0 auto 16px; }
.form-success h2 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--gray); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(700px 400px at 15% 120%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, var(--red) 0%, #b8271a 100%);
  color: var(--white);
  padding: 84px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.cta-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; max-width: 18ch; margin-bottom: 12px; }
.cta-text { color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */

.empty-state { text-align: center; padding: 40px 0; }
.empty-state .empty-illus { width: 110px; margin: 0 auto 24px; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-state p { color: var(--gray); max-width: 46ch; margin: 0 auto; }
.empty-state .page-title, .empty-state .page-sub { margin-left: auto; margin-right: auto; }
.empty-state .hero-actions { justify-content: center; margin-top: 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.footer-logo { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-tagline { max-width: 40ch; font-size: 0.95rem; margin-bottom: 16px; }
.footer-contact { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.9rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--red); }
.footer-contact a { color: var(--white); }

.footer-heading { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.55);
}
.footer-meta a { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

[data-hero-stagger] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.hero.is-ready [data-hero-stagger] { opacity: 1; transform: none; }
.hero.is-ready [data-hero-stagger]:nth-of-type(1) { transition-delay: 0.05s; }
.hero.is-ready .hero-sub { transition-delay: 0.35s; }
.hero.is-ready .hero-actions { transition-delay: 0.5s; }

.hero-title .hero-word { opacity: 0; transform: translateY(30px) rotate(2deg); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.hero.is-ready .hero-title .hero-word { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion — every animation gets a static fallback
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-hero-stagger], .hero-title .hero-word { opacity: 1 !important; transform: none !important; }
  .hero-scroll-hint { display: none; }
  .roadmap::before { background: rgba(228, 53, 37, 0.35); }
}

/* No-JS: everything visible */
.no-js [data-reveal], .no-js [data-hero-stagger], .no-js .hero-title .hero-word { opacity: 1; transform: none; }
