/* =========================================================
   NEURO BYTES — Design System v4
   Trust Navy · Circuit Teal · Ink · Mist · White
   Editorial register on a clean light canvas
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,ital,wght@9..144,0,300..700;9..144,1,300..700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ====== Brand palette ====== */
  --c-navy:    #0C447C;   /* Trust Navy — primary brand */
  --c-teal:    #1D9E75;   /* Circuit Teal — accent / CTA */
  --c-teal-soft: #2BBD8C; /* lighter teal for hover/glow */
  --c-blue:    #378ADD;   /* Signal Blue — links / hover */
  --c-ink:     #042C53;   /* Ink — headings / dark sections */
  --c-slate:   #5F5E5A;   /* Slate — body text */
  --c-mist:    #F4F6F9;   /* Mist — section / card surfaces */
  --c-white:   #FFFFFF;   /* base canvas */

  /* ====== Internal aliases (used throughout the system) ====== */
  --c-base:        var(--c-white);
  --c-base-deeper: var(--c-ink);
  --c-base-lift:   var(--c-mist);
  --c-base-glow:   #E8EEF6;
  --c-purple:      var(--c-navy);
  --c-purple-glow: var(--c-blue);

  --c-text:        var(--c-ink);
  --c-text-muted:  var(--c-slate);
  --c-text-dim:    #8A8985;
  --c-text-faint:  #B8B7B3;

  /* Accent — used in places previously called "yellow" */
  --c-yellow:      var(--c-teal);
  --c-yellow-glow: var(--c-teal-soft);

  --c-line:        rgba(4, 44, 83, 0.10);
  --c-line-strong: rgba(4, 44, 83, 0.18);

  /* Type */
  --ff-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-serif: 'Fraunces', 'Times New Roman', serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --maxw: 1320px;
  --maxw-narrow: 920px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(80px, 11vw, 160px);
  --radius: 6px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--c-white); }

/* Touch tuning */
.btn, .nav-link, .nav-cta, .nav-toggle, .faq-q, button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-white);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle ambient — just enough to add depth without competing */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 5% -5%, rgba(55, 138, 221, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(29, 158, 117, 0.04) 0%, transparent 55%);
}

main, footer, nav { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--c-teal); color: var(--c-white); }

/* ====== Type ====== */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-teal);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "◆";
  font-size: 8px;
  color: var(--c-teal);
}

.index-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  text-transform: uppercase;
}

h1, .h1 {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8vw, 124px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
h2, .h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.032em;
  color: var(--c-ink);
}
h3, .h3 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--c-ink);
}
h4, .h4 {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  text-transform: uppercase;
}
p { color: var(--c-slate); }
.lead {
  font-family: var(--ff-body);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-slate);
  max-width: 60ch;
  letter-spacing: -0.005em;
}

/* Italic serif accent */
.italic-serif {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Universal accent — Circuit Teal on light, brighter on dark */
.accent {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-teal);
  letter-spacing: -0.015em;
}

.sym-y { color: var(--c-teal); }
.sym-p { color: var(--c-blue); }

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--pad-y) 0; position: relative; }

.section-rule {
  height: 1px;
  background: var(--c-line);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--c-teal);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-navy);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(12, 68, 124, 0.4);
}
.btn-secondary {
  border-color: var(--c-line-strong);
  color: var(--c-ink);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
  transform: translateY(-3px);
}
.btn-ghost {
  color: var(--c-teal);
  padding: 14px 0;
  border-radius: 0;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.btn-ghost::after {
  content: "→";
  transition: transform 0.4s var(--ease);
  display: inline-block;
}
.btn-ghost:hover { color: var(--c-navy); border-bottom-color: var(--c-navy); }
.btn-ghost:hover::after { transform: translateX(8px); }

/* ====== Navbar ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.nav-brand img {
  height: 32px;
  width: auto;
  /* Default: tint logo to Ink so it's visible on white backgrounds */
  filter: brightness(0) saturate(100%) invert(12%) sepia(89%) saturate(1837%) hue-rotate(199deg) brightness(96%) contrast(106%);
  transition: filter 0.4s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-slate);
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  position: relative;
}
.nav-link:hover { color: var(--c-ink); }
.nav-link.active {
  color: var(--c-teal);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 10px var(--c-teal);
}
.nav-cta {
  margin-left: 16px;
  padding: 12px 22px;
  background: var(--c-teal);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(12, 68, 124, 0.4);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Only when nav sits over a DARK hero (home page) AND not yet scrolled — flip to light */
.nav--over-dark:not(.scrolled) .nav-brand,
.nav--over-dark:not(.scrolled) .nav-link {
  color: var(--c-white);
}
.nav--over-dark:not(.scrolled) .nav-brand img { filter: brightness(0) invert(1); }
.nav--over-dark:not(.scrolled) .nav-link:hover { color: var(--c-teal-soft); }
.nav--over-dark:not(.scrolled) .nav-link.active { color: var(--c-teal-soft); }
.nav--over-dark:not(.scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--c-white);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--pad-x) 24px;
    gap: 0;
  }
  .nav.open .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    color: var(--c-ink) !important;
  }
  .nav.open .nav-link.active::after { display: none; }
  .nav.open .nav-link.active { color: var(--c-teal) !important; }
  .nav.open .nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; display: inline-flex; align-self: flex-start; }
}

/* ====== Hero — Home (DARK INK section) ====== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 200px 0 120px;
  background-color: #042C53;            /* HARD fallback — never goes white */
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(55, 138, 221, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(29, 158, 117, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #042C53 0%, #051F3C 100%);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* Animated gradient layer — pure CSS, no JS needed */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 35% 35% at 30% 30%, rgba(55, 138, 221, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(29, 158, 117, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 80% 20%, rgba(43, 189, 140, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: hero-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(3%, -2%) scale(1.08) rotate(2deg); }
  100% { transform: translate(-2%, 3%) scale(1.04) rotate(-1.5deg); }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;      /* Explicit CSS width — prevents canvas.width attribute from   */
  height: 100%;     /* driving a ResizeObserver feedback loop that blows up the     */
  z-index: 1;       /* canvas to 76800×38400 px and causes a GPU allocation failure */
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}

.hero-index {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-index .rule {
  flex: 1;
  height: 1px;
  background: var(--c-line);
  max-width: 240px;
}
.hero-index .dot { color: var(--c-teal); }

/* On dark hero, hero-index flips to light */
.hero .hero-index { color: rgba(255, 255, 255, 0.6); }
.hero .hero-index .rule { background: rgba(255, 255, 255, 0.2); }
.hero .hero-index .dot { color: var(--c-teal-soft); }

.hero h1 {
  color: var(--c-white);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
  font-weight: 500;
  max-width: 14ch;
  letter-spacing: -0.045em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 50ch;
  margin-top: 40px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
}
.hero-cta-row {
  margin-top: 56px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero .btn-primary { background: var(--c-teal); color: var(--c-white); }
.hero .btn-primary:hover { background: var(--c-teal-soft); box-shadow: 0 16px 40px -10px rgba(29, 158, 117, 0.55); }
.hero .btn-secondary { color: var(--c-white); border-color: rgba(255, 255, 255, 0.25); }
.hero .btn-secondary:hover { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }

.hero-meta-row {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
}
.hero-meta-row .live { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta-row .live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-teal-soft);
  box-shadow: 0 0 14px var(--c-teal-soft);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ====== Hero — Inner pages (LIGHT) ====== */
.hero-inner-page {
  padding: 200px 0 100px;
  position: relative;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}
.hero-inner-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(55, 138, 221, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner-page > * { position: relative; z-index: 1; }
.hero-inner-page .hero-index { margin-bottom: 48px; color: var(--c-text-dim); }
.hero-inner-page .hero-index .rule { background: var(--c-line); }
.hero-inner-page .hero-index .dot { color: var(--c-teal); }
.hero-inner-page h1 {
  font-size: clamp(50px, 8vw, 112px);
  line-height: 0.95;
  max-width: 16ch;
  color: var(--c-ink);
}
.hero-inner-page .lead { margin-top: 32px; max-width: 60ch; color: var(--c-slate); }

/* ====== Word marquee ====== */
.word-marquee {
  overflow: hidden;
  padding: 56px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-mist);
  position: relative;
}
.word-marquee-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  width: max-content;
  align-items: center;
}
.word-marquee-item {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 88px);
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.word-marquee-item .accent {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--c-teal);
  font-weight: 400;
}
.word-marquee-item .sym {
  color: var(--c-teal);
  font-style: normal;
  font-family: var(--ff-display);
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====== Section heading ====== */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 88px;
  max-width: 880px;
}
.section-head h2 { max-width: 18ch; }

.section-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.section-meta .rule {
  flex: 1;
  height: 1px;
  background: var(--c-line);
  max-width: 280px;
}
.section-meta .dot { color: var(--c-teal); }

/* ====== Three column grid ====== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.grid-3-item {
  padding: 64px 40px;
  position: relative;
  transition: background 0.5s ease;
  border-right: 1px solid var(--c-line);
  background: var(--c-white);
}
.grid-3-item:last-child { border-right: 0; }
.grid-3-item:hover { background: var(--c-mist); }
.grid-3-item .num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--c-teal);
  display: block;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.grid-3-item h3 { margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 28px); color: var(--c-ink); }
.grid-3-item p { font-size: 15px; line-height: 1.65; color: var(--c-slate); }

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3-item { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .grid-3-item:last-child { border-bottom: 0; }
}

/* ====== Spotlight / pull quote ====== */
.spotlight {
  text-align: left;
  padding: 80px 0 32px;
  max-width: 28ch;
}
.spotlight p {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  color: var(--c-ink);
  font-weight: 300;
  letter-spacing: -0.025em;
}
.spotlight p .accent { color: var(--c-teal); }

/* ====== Services grid ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}
.service-card {
  padding: 48px 36px;
  background: var(--c-white);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(55, 138, 221, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.service-card:hover { background: var(--c-mist); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card h3 { margin-bottom: 14px; font-size: 26px; color: var(--c-ink); }
.service-card p { font-size: 14.5px; line-height: 1.7; color: var(--c-slate); }
.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(29, 158, 117, 0.1);
  border: 1px solid rgba(29, 158, 117, 0.25);
  color: var(--c-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: all 0.5s ease;
}
.service-card:hover .icon-wrap {
  background: var(--c-teal);
  color: var(--c-white);
  transform: rotate(-6deg) scale(1.05);
}
.service-card .icon-wrap svg { width: 22px; height: 22px; }

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

/* ====== Pricing ====== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.price-card {
  background: var(--c-white);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.5s var(--ease);
}
.price-card:hover { background: var(--c-mist); }
.price-card.featured {
  background: var(--c-ink);
  color: var(--c-white);
}
.price-card.featured h3, .price-card.featured h4 { color: var(--c-white); }
.price-card.featured p, .price-card.featured .price-best-for { color: rgba(255, 255, 255, 0.7); }
.price-card.featured .price-amount { color: var(--c-teal-soft); }
.price-card.featured .price-per { color: rgba(255, 255, 255, 0.55); }
.price-card.featured .price { border-color: rgba(255, 255, 255, 0.18); }
.price-card.featured .price-features li { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.12); }
.price-card.featured .price-meta { color: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.18); }
.price-card.featured .price-meta strong { color: var(--c-white); }

.price-badge {
  position: absolute;
  top: 28px;
  right: 32px;
  background: var(--c-teal);
  color: var(--c-white);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.price-card h3 { font-family: var(--ff-display); font-size: 28px; font-weight: 600; letter-spacing: -0.015em; color: var(--c-ink); }
.price-card .price-best-for {
  font-size: 13.5px;
  color: var(--c-text-dim);
  margin-top: 10px;
  margin-bottom: 36px;
  min-height: 60px;
  line-height: 1.55;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}
.price-amount {
  font-family: var(--ff-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  line-height: 1;
}
.price-per { font-size: 13px; color: var(--c-text-dim); font-weight: 500; }
.price-features {
  flex: 1;
  margin-bottom: 32px;
}
.price-features li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--c-line);
  position: relative;
  font-size: 14px;
  color: var(--c-slate);
  line-height: 1.55;
}
.price-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--c-teal);
  font-weight: 600;
}
.price-features li:last-child { border-bottom: 0; }
.price-meta {
  font-size: 12px;
  color: var(--c-text-dim);
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}
.price-meta strong { color: var(--c-ink); font-weight: 600; }
.price-card .btn {
  width: 100%;
  justify-content: center;
}
.price-card .btn-secondary { color: var(--c-ink); border-color: var(--c-line-strong); }
.price-card.featured .btn-primary { background: var(--c-teal); color: var(--c-white); border-color: var(--c-teal); }
.price-card.featured .btn-primary:hover { background: var(--c-teal-soft); }

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

/* ====== Partnership ====== */
.partnership {
  padding: var(--pad-y) 0;
  position: relative;
  overflow: hidden;
  background: var(--c-mist);
}
.partnership-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
@media (max-width: 880px) {
  .partnership-inner { grid-template-columns: 1fr; gap: 48px; }
}

.partnership-quote {
  border-left: 2px solid var(--c-teal);
  padding: 12px 0 12px 36px;
}
.partnership-quote blockquote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--c-ink);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.partnership-quote cite {
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.partner-logo-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  transition: all 0.4s ease;
}
.partner-logo-card:hover { border-color: var(--c-line-strong); box-shadow: 0 12px 32px -16px rgba(4, 44, 83, 0.15); }
.partner-logo-card small {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 8px;
  font-weight: 500;
}
.partner-x {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 36px;
  color: var(--c-teal);
  font-weight: 300;
}

/* ====== Case studies ====== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.case-card {
  background: var(--c-white);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.case-card:hover { background: var(--c-mist); }
.case-card .case-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--c-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 28px;
  font-weight: 500;
}
.case-card h3 { font-size: 32px; margin-bottom: 12px; letter-spacing: -0.022em; color: var(--c-ink); }
.case-card .case-meta { font-size: 13px; color: var(--c-text-dim); margin-bottom: 40px; font-family: var(--ff-mono); letter-spacing: 0.04em; }
.case-card .case-metrics { display: grid; gap: 16px; margin-bottom: 40px; }
.case-card .case-metric {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}
.case-card .case-metric strong {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-teal);
  letter-spacing: -0.035em;
  min-width: 110px;
  line-height: 1;
}
.case-card .case-metric span { font-size: 13.5px; color: var(--c-slate); line-height: 1.45; }

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

/* ====== Audit / form section (DARK INK) ====== */
.audit {
  padding: var(--pad-y) 0;
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-white);
}
.audit::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.audit::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(55, 138, 221, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.audit > .container { position: relative; z-index: 1; }
.audit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.audit h2 { color: var(--c-white); }
.audit p { color: rgba(255, 255, 255, 0.78); }
.audit .section-meta { color: rgba(255, 255, 255, 0.6); }
.audit .section-meta .rule { background: rgba(255, 255, 255, 0.2); }
.audit .section-meta .dot { color: var(--c-teal-soft); }
.audit .accent { color: var(--c-teal-soft); }
.audit .audit-features { margin-top: 40px; }
.audit .audit-features li {
  padding: 18px 0 18px 32px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}
.audit .audit-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--c-teal-soft);
  font-weight: 600;
}
.audit-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.audit-form h3 { color: var(--c-white); font-size: 26px; margin-bottom: 10px; letter-spacing: -0.02em; }
.audit-form .form-sub { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin-bottom: 36px; font-family: var(--ff-mono); letter-spacing: 0.02em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; display: block; }
.form-field > label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal-soft);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-field input, .form-field select {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 14.5px;
  transition: all 0.3s ease;
}
.form-field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-field input:focus, .form-field select:focus {
  outline: 0;
  border-color: var(--c-teal-soft);
  background: rgba(29, 158, 117, 0.08);
}
.form-field select { appearance: none; cursor: pointer; }
.audit-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 20px;
  font-size: 15px;
  margin-top: 12px;
  font-weight: 700;
  background: var(--c-teal);
  color: var(--c-white);
}
.audit-form .btn-primary:hover { background: var(--c-teal-soft); }
.form-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .audit-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .audit-form { padding: 36px 28px; }
}

/* ====== Founder note ====== */
.founder-note {
  padding: var(--pad-y) 0;
  background: var(--c-mist);
  position: relative;
}
.founder-note-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.founder-note h2 { margin: 16px 0 48px; max-width: 18ch; }
.founder-note p {
  font-family: var(--ff-display);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--c-slate);
  margin-bottom: 24px;
  font-weight: 300;
  max-width: 62ch;
  letter-spacing: -0.01em;
}
.founder-note p:first-of-type::first-letter {
  font-family: var(--ff-serif);
  font-size: 4em;
  font-weight: 500;
  float: left;
  line-height: 0.88;
  margin: 8px 14px 0 0;
  color: var(--c-teal);
}
.founder-sig {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-teal);
  letter-spacing: -0.015em;
}
.founder-sig small {
  display: block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--c-text-dim);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ====== What we don't do ====== */
.dont-do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin-top: 56px;
}
.dont-do-card { padding: 48px 36px; background: var(--c-white); transition: background 0.4s ease; }
.dont-do-card:hover { background: var(--c-mist); }
.dont-do-card .x-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  color: var(--c-teal);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 28px;
}
.dont-do-card h3 { font-size: 24px; margin-bottom: 16px; line-height: 1.22; }
.dont-do-card p { font-size: 14.5px; line-height: 1.7; }

@media (max-width: 880px) {
  .dont-do-grid { grid-template-columns: 1fr; }
}

/* ====== FAQ ====== */
.faq-list { margin-top: 48px; max-width: 940px; }
.faq-item {
  border-top: 1px solid var(--c-line);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 32px 0;
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 500;
  color: var(--c-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}
.faq-q:hover { color: var(--c-teal); }
.faq-q-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--c-teal);
  transition: all 0.4s ease;
}
.faq-item.open .faq-q { color: var(--c-teal); }
.faq-item.open .faq-q-toggle {
  background: var(--c-teal);
  color: var(--c-white);
  border-color: var(--c-teal);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.faq-a-inner {
  padding: 0 0 32px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-slate);
  max-width: 75ch;
}
.faq-item.open .faq-a { max-height: 440px; }

/* ====== Final CTA ====== */
.final-cta {
  padding: var(--pad-y) 0;
  text-align: center;
  border-top: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
  background: var(--c-mist);
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(55, 138, 221, 0.1) 0%, transparent 65%);
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  max-width: 18ch;
  margin: 0 auto 24px;
  font-size: clamp(40px, 6vw, 80px);
}
.final-cta p { margin: 0 auto 40px; max-width: 50ch; font-size: 17px; }

/* ====== Footer (DARK INK) ====== */
.footer {
  background: var(--c-ink);
  color: var(--c-white);
  padding: 96px 0 36px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-line);
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(55, 138, 221, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(29, 158, 117, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 72px;
}
.footer h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-teal-soft);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.footer-brand img { height: 36px; filter: brightness(0) invert(1) !important; }
.footer-tagline { font-size: 14.5px; color: rgba(255, 255, 255, 0.7); max-width: 36ch; line-height: 1.7; }
.footer-links li { margin-bottom: 14px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--c-teal-soft); }
.footer-contact a, .footer-contact span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
  line-height: 1.55;
  transition: color 0.25s ease;
}
.footer-contact a:hover { color: var(--c-teal-soft); }
.footer-bottom {
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ====== Article list (AEO Lab) ====== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.article-card {
  border-top: 1px solid var(--c-line);
  padding-top: 32px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.article-card:hover { border-top-color: var(--c-teal); }
.article-card .article-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 20px;
  display: block;
  font-weight: 500;
}
.article-card h3 {
  font-size: 24px;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--c-ink);
}
.article-card h3 a { transition: color 0.25s ease; }
.article-card:hover h3 a { color: var(--c-teal); }
.article-card p { font-size: 14.5px; color: var(--c-slate); margin-bottom: 24px; line-height: 1.6; }
.article-card .article-meta {
  font-size: 11px;
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
  font-family: var(--ff-mono);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .article-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-card { padding-top: 28px; }
}

/* ====== Featured resource (DARK INK card) ====== */
.featured-resource {
  background: var(--c-ink);
  border: 1px solid var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.featured-resource::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.featured-resource::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(55, 138, 221, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.featured-resource > * { position: relative; z-index: 1; }
.featured-resource .eyebrow { color: var(--c-teal-soft); }
.featured-resource .eyebrow::before { color: var(--c-teal-soft); }
.featured-resource h2 { color: var(--c-white); font-size: clamp(32px, 4vw, 52px); margin: 20px 0 24px; line-height: 1; }
.featured-resource h2 .accent { color: var(--c-teal-soft); }
.featured-resource p { color: rgba(255, 255, 255, 0.8); font-size: 16px; line-height: 1.7; }
.featured-resource .btn-primary { margin-top: 32px; background: var(--c-teal); color: var(--c-white); }
.featured-resource .btn-primary:hover { background: var(--c-teal-soft); }

.featured-side {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.featured-side h4 { color: var(--c-teal-soft); margin-bottom: 20px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; font-family: var(--ff-mono); }
.featured-side ul li {
  font-size: 15px;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  line-height: 1.55;
}
.featured-side ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--c-teal-soft);
}
.featured-side ul li:last-child { border-bottom: 0; }

@media (max-width: 880px) {
  .featured-resource { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
}

/* ====== About — founder section ====== */
.founder-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 72px;
}
.founder-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-ink) 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.32) 0%, transparent 70%);
}
.founder-photo-placeholder {
  font-family: var(--ff-display);
  font-size: 160px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  letter-spacing: -0.05em;
  position: relative;
}
.founder-bio h3 { font-size: 36px; margin-bottom: 8px; letter-spacing: -0.025em; font-weight: 600; }
.founder-bio .title { color: var(--c-teal); font-size: 11px; margin-bottom: 36px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--ff-mono); }
.founder-bio p { margin-bottom: 20px; line-height: 1.75; font-size: 16px; color: var(--c-slate); }
.founder-bio .socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.founder-bio .socials a {
  padding: 11px 22px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--c-ink);
  font-weight: 500;
  transition: all 0.3s ease;
}
.founder-bio .socials a:hover {
  border-color: var(--c-teal);
  background: var(--c-teal);
  color: var(--c-white);
}

@media (max-width: 880px) {
  .founder-block { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { max-width: 340px; }
}

/* ====== Animations ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.word-reveal { transform-origin: 50% 100%; display: inline-block; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ====== Stats row ====== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  margin: 72px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stat {
  background: var(--c-white);
  padding: 40px 32px;
  text-align: left;
  transition: background 0.4s ease;
}
.stat:hover { background: var(--c-mist); }
.stat-num {
  font-family: var(--ff-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--c-teal);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ====== Utility ====== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* =========================================================
   MOBILE POLISH — narrow-phone refinements (≤640px / ≤480px)
   ========================================================= */

@media (max-width: 640px) {
  :root {
    --pad-y: clamp(56px, 16vw, 96px);
  }

  /* Tighter nav on phones */
  .nav-inner { height: 64px; }
  .nav-brand { font-size: 16px; gap: 10px; }
  .nav-brand img { height: 26px; }
  .nav-toggle { width: 40px; height: 40px; }
  @media (max-width: 880px) {
    .nav.open .nav-links { top: 64px; }
  }

  /* Hero — tighter on phones */
  .hero {
    padding: 120px 0 100px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 64px) !important;
    line-height: 0.96;
    max-width: 100%;
  }
  .hero .lead {
    font-size: 16px;
    margin-top: 24px;
  }
  .hero-cta-row { margin-top: 32px; gap: 10px; width: 100%; }
  .hero-cta-row .btn { flex: 1; justify-content: center; padding: 16px 20px; font-size: 13.5px; }

  /* Hero index editorial row — wrap and trim on phones */
  .hero-index {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10px;
    margin-bottom: 32px;
  }
  .hero-index .rule { display: none; }

  /* Hero bottom meta strip — stack vertically */
  .hero-meta-row {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 56px;
    padding: 0 var(--pad-x);
    font-size: 10px;
  }

  /* Inner page heroes */
  .hero-inner-page { padding: 120px 0 64px; }
  .hero-inner-page h1 { font-size: clamp(36px, 10vw, 56px) !important; }

  /* Section meta editorial row */
  .section-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10px;
    margin-bottom: 28px;
  }
  .section-meta .rule { display: none; }
  .section-head { margin-bottom: 48px; gap: 20px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 40px); }

  /* Word marquee — keep readable but not huge */
  .word-marquee { padding: 36px 0; }
  .word-marquee-item { font-size: clamp(28px, 8vw, 44px); }

  /* Spotlight statements */
  .spotlight p { font-size: clamp(22px, 6.5vw, 32px); }
  .spotlight { padding: 48px 0 24px; }

  /* Service / pricing / case / dont-do cards — tighter padding */
  .service-card,
  .price-card,
  .case-card,
  .dont-do-card { padding: 36px 24px; }

  .price-card h3 { font-size: 24px; }
  .price-amount { font-size: 44px; }
  .price-best-for { min-height: 0; }
  .price-badge { top: 20px; right: 20px; }

  /* Stats row — 2 columns is OK but reduce padding */
  .stat { padding: 28px 20px; }
  .stat-num { font-size: clamp(32px, 9vw, 44px); }

  /* Audit form */
  .audit { padding: 80px 0; }
  .audit-form { padding: 28px 20px; border-radius: 14px; }
  .audit-form h3 { font-size: 22px; }
  .audit-form .btn-primary { padding: 18px; font-size: 14px; }

  /* Case study detail page (inline styles in work.html) */
  .case-detail { padding: 56px 0 !important; }
  .case-detail-inner { gap: 32px !important; }
  .case-cover { padding: 32px 24px !important; aspect-ratio: 5 / 3 !important; }
  .case-cover h3 { font-size: 26px !important; }
  .case-results-grid { grid-template-columns: 1fr !important; }
  .case-result { padding: 22px 18px !important; }
  .case-result strong { font-size: 32px !important; }
  .case-detail-content h2 { font-size: clamp(26px, 7vw, 36px) !important; margin-bottom: 28px !important; }
  .case-block { margin-bottom: 32px !important; }

  /* Partnership */
  .partnership-inner { gap: 32px; }
  .partnership-quote { padding: 8px 0 8px 24px; }
  .partnership-quote blockquote { font-size: 18px; }
  .partner-logos { gap: 14px; margin-top: 28px; }
  .partner-logo-card { padding: 16px 20px; font-size: 15px; }
  .partner-x { font-size: 24px; }

  /* Founder note */
  .founder-note h2 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 32px; }
  .founder-note p { font-size: 16.5px; }
  .founder-note p:first-of-type::first-letter { font-size: 3em; margin: 6px 10px 0 0; }

  /* Founder block (about) */
  .founder-bio h3 { font-size: 28px; }
  .founder-bio p { font-size: 15px; }
  .founder-bio .socials { flex-wrap: wrap; }
  .founder-photo-placeholder { font-size: 96px; }

  /* About thesis list */
  .thesis-item { padding: 28px 0 !important; gap: 12px !important; }
  .thesis-item h3 { font-size: clamp(20px, 5.5vw, 26px) !important; }

  /* About location block (inline styles) */
  .location-block { padding: 36px 24px !important; gap: 28px !important; }
  .location-contact { padding: 24px !important; }

  /* Lab newsletter / featured resource (aeo-lab inline) */
  .lab-newsletter { padding: 28px 22px !important; gap: 22px !important; }
  .lab-newsletter h3 { font-size: 24px !important; }
  .featured-resource { padding: 36px 24px; gap: 28px; }
  .featured-resource h2 { font-size: clamp(26px, 7vw, 36px); }
  .featured-side { padding: 24px; }

  /* Article cards */
  .article-card h3 { font-size: 20px; }

  /* FAQ */
  .faq-q { font-size: clamp(17px, 5vw, 22px); padding: 24px 0; gap: 16px; }
  .faq-q-toggle { width: 32px; height: 32px; font-size: 16px; }
  .faq-a-inner { font-size: 15px; padding-bottom: 24px; }

  /* Final CTA */
  .final-cta h2 { font-size: clamp(32px, 9vw, 52px); }

  /* Footer */
  .footer { padding: 72px 0 28px; }
  .footer-grid { gap: 32px; margin-bottom: 48px; }
  .footer-brand { font-size: 20px; }
  .footer-brand img { height: 30px; }

  /* Filter chips wrap */
  .filter-row { gap: 6px; }
  .filter-chip { padding: 8px 14px; font-size: 12.5px; }
}

/* Very small phones (under 380px) — last-mile breathing room */
@media (max-width: 380px) {
  :root { --pad-x: 18px; }
  .hero h1 { font-size: 36px !important; }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
