/* ==========================================================================
   Wh4m — SEO Consultancy
   Design: split dark/light editorial, gold primary, evidence-led
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAF8F4;
  --ink: #1A1610;
  --ink-soft: #4A4236;
  --accent: #B8924A;
  --accent-dark: #8A6B33;
  --gold: #B8924A;
  --gold-light: #F0C055;
  --gold-dark: #8A6B33;
  --line: #E8E2D8;
  --dark: #0D0A06;
  --dark-2: #13100A;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-text: #F0EDE6;
  --dark-text-soft: #A89880;
  --gold-bright: #F0C055;
  --hero-glow-a: rgba(240, 192, 85, 0.13);
  --hero-glow-b: rgba(184, 146, 74, 0.09);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-width: 1100px;
  --radius: 4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.25rem; }

/* Typography */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

/* Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--dark);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.section-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-intro { max-width: 44rem; margin-top: 1rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 6, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--dark-line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

/* Wordmark */
.wordmark {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wordmark .wh4m-four { color: var(--gold-bright); }

/* Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}
.site-nav a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  padding-bottom: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark-text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 146, 74, 0.3);
}
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--dark); }
.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.text-link { font-weight: 600; }

/* ── Dark sections ───────────────────────────────────────────── */
.section-dark {
  background:
    radial-gradient(900px 500px at 15% -10%, var(--hero-glow-a), transparent 60%),
    radial-gradient(700px 400px at 95% 110%, var(--hero-glow-b), transparent 60%),
    var(--dark);
  color: var(--dark-text);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--dark-text); }
.section-dark p { color: var(--dark-text-soft); }
.section-dark .section-kicker { color: var(--gold-bright); }
.section-dark a:not(.btn) { color: var(--gold-bright); }
.section-dark a:not(.btn):hover { color: var(--gold-light); }
.section-dark .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
.section-dark .btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(240, 192, 85, 0.35);
}
.section-dark .data-note {
  border-color: var(--dark-line);
  color: var(--dark-text-soft);
}

/* ── Hero — Wh4m brand moment ────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  background:
    radial-gradient(900px 500px at 15% -10%, var(--hero-glow-a), transparent 60%),
    radial-gradient(700px 400px at 95% 110%, var(--hero-glow-b), transparent 60%),
    var(--dark);
  color: var(--dark-text);
}

/* Animated grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 146, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 146, 74, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: hero-grid-drift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes hero-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

/* Gold pulse */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(240, 192, 85, 0.07), transparent 70%);
  animation: hero-pulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes hero-pulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

.hero .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: var(--dark-text); }
.hero p { color: var(--dark-text-soft); }
.hero .section-kicker { color: var(--gold-bright); }
.hero a:not(.btn) { color: var(--gold-bright); }
.hero a:not(.btn):hover { color: var(--gold-light); }
.hero .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
.hero .btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(240, 192, 85, 0.35);
}
.hero .data-note { border-color: var(--dark-line); color: var(--dark-text-soft); }

/* Hero wordmark (large display element) */
.hero-wordmark {
  font-family: var(--mono);
  font-size: clamp(3.8rem, 11vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--dark-text);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-wordmark.is-revealed { opacity: 1; transform: none; }
.hero-wordmark .wh4m-four {
  color: var(--gold-bright);
  display: inline-block;
  text-shadow: 0 0 18px rgba(240, 192, 85, 0.35);
  animation: wh4m-glow 3.2s ease-in-out infinite;
}

/* Permanent gentle glow on the 4 */
@keyframes wh4m-glow {
  0%, 100% { text-shadow: 0 0 14px rgba(240, 192, 85, 0.30); }
  50%      { text-shadow: 0 0 30px rgba(240, 192, 85, 0.60); }
}

/* Stronger, punchy flash — fired on load and repeated by JS */
@keyframes wh4m-flash {
  0%   { transform: scale(1) rotate(0); text-shadow: 0 0 14px rgba(240, 192, 85, 0.3); }
  22%  { transform: scale(1.16) rotate(-2.5deg); color: #FFF1CC;
         text-shadow: 0 0 55px rgba(240, 192, 85, 1), 0 0 110px rgba(240, 192, 85, 0.6); }
  55%  { transform: scale(0.99) rotate(0); }
  100% { transform: scale(1); text-shadow: 0 0 18px rgba(240, 192, 85, 0.4); }
}
.hero-wordmark .wh4m-four.flash {
  animation: wh4m-flash 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.wordmark .wh4m-four { text-shadow: 0 0 10px rgba(240, 192, 85, 0.45); }

/* Hero sub-element stagger */
.hero-kicker, .hero h1, .hero .sub, .hero-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-kicker.is-revealed,
.hero h1.is-revealed,
.hero .sub.is-revealed,
.hero-actions.is-revealed { opacity: 1; transform: none; }

.hero .sub { max-width: 38rem; margin-top: 1.25rem; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }

/* ── Evidence stat blocks ────────────────────────────────────── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
}
.exhibit { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.section-dark .exhibit, .hero .exhibit { border-top-color: var(--gold); }
.exhibit .fig {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.exhibit .num {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.section-dark .exhibit .fig { color: var(--gold-light); }
.section-dark .exhibit .num { color: var(--gold-bright); }
.section-dark .exhibit .label { color: var(--dark-text); }
.section-dark .exhibit .source { color: var(--dark-text-soft); }
.exhibit .label { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.7rem; }
.exhibit .source { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* Shimmer on counted numbers */
@keyframes gold-shimmer {
  0%   { color: var(--gold-bright); }
  50%  { color: var(--gold-light); text-shadow: 0 0 18px rgba(240, 192, 85, 0.5); }
  100% { color: var(--gold-bright); }
}
.num.shimmer { animation: gold-shimmer 0.9s ease forwards; }

/* ── Cards ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(26, 22, 16, 0.09);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; }
.card .text-link { display: inline-block; margin-top: 0.9rem; font-size: 0.92rem; }

/* ── Points list ─────────────────────────────────────────────── */
.points { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.5rem; }
.points li { padding-left: 2.2rem; position: relative; max-width: 40rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.2rem;
  height: 2px;
  background: var(--gold);
}
.points li strong { display: block; margin-bottom: 0.15rem; }

/* ── Brand strip ─────────────────────────────────────────────── */
.brand-strip ul {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.25rem;
}
.brand-strip li {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(240, 192, 85, 0.13), transparent 60%),
    radial-gradient(600px 350px at 5% 120%, rgba(184, 146, 74, 0.09), transparent 60%),
    var(--dark);
  color: var(--dark-text);
}
.cta-band h2 { color: var(--dark-text); }
.cta-band p { color: var(--dark-text-soft); max-width: 38rem; }
.cta-band .btn {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  margin-top: 1.75rem;
}
.cta-band .btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(240, 192, 85, 0.35);
}

/* ── Services ────────────────────────────────────────────────── */
.service { border-top: 1px solid var(--line); padding-block: 2.75rem; }
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem 3rem; }
.service h2 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); }
.service .included { margin-top: 1.25rem; }
.included h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.included ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.included li { padding-left: 1.3rem; position: relative; font-size: 0.97rem; color: var(--ink-soft); }
.included li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ── Case studies ────────────────────────────────────────────── */
.study { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.study-narrative { min-width: 0; }
.study-visuals { min-width: 0; }
@media (max-width: 800px) {
  .study-grid { grid-template-columns: 1fr; }
}
.study-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.study h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 1.75rem 0 0.5rem;
}
.study p, .study ul { max-width: none; }
.study .takeaway {
  margin-top: 1.75rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  font-weight: 500;
  color: var(--ink);
  max-width: 44rem;
}
.study .text-link { display: inline-block; margin-top: 1.25rem; }
.study .evidence-grid { margin-block: 1.5rem 0; }
.data-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  max-width: 44rem;
  margin-top: 1.5rem;
}
.study-index { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.study-index a { font-family: var(--mono); font-size: 0.88rem; }

/* ── About ───────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.headshot-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  background: var(--bg);
}
.hero .headshot-frame { border-color: var(--dark-line); background: var(--dark-2); }
.hero .headshot-frame figcaption { color: var(--dark-text-soft); }
.headshot-frame img { border-radius: 2px; background: var(--bg-alt); width: 100%; }
.headshot-frame figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 0.6rem 0.2rem 0.1rem;
}
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.toolkit-grid h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.toolkit-grid ul { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.toolkit-grid li { font-size: 0.95rem; color: var(--ink-soft); }
.certs { margin-top: 2rem; }
.certs ul { margin-top: 0.75rem; display: grid; gap: 0.35rem; }
.certs li { color: var(--ink-soft); font-size: 0.97rem; }

/* ── Contact form ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: start; }
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.form-field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.form-field input, .form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: #A03A2B; }
.form-error { display: none; color: #A03A2B; font-size: 0.88rem; margin-top: 0.35rem; font-weight: 500; }
.form-error.is-visible { display: block; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-success { display: none; background: var(--bg-alt); border: 1px solid var(--accent); border-radius: var(--radius); padding: 2rem; }
.form-success.is-visible { display: block; }
.form-success h2 { color: var(--accent); margin-bottom: 0.5rem; }
.contact-aside { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.contact-aside h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.contact-aside p { font-size: 0.97rem; margin-bottom: 1rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 2.75rem;
  font-size: 0.92rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { color: var(--ink-soft); }
.footer-lighthouse { font-family: var(--mono); font-size: 0.78rem; margin-top: 1.5rem; color: var(--ink-soft); }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease var(--reveal-delay, 0s), transform 0.4s ease var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s ease var(--reveal-delay, 0s), transform 0.38s ease var(--reveal-delay, 0s);
}
.stagger.is-visible > * { opacity: 1; transform: none; }

/* ── Hero two-column layout + feature card ───────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-feature {
  position: relative;
  border: 1px solid rgba(240, 192, 85, 0.22);
  border-radius: 12px;
  padding: 1.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: 0 0 70px rgba(240, 192, 85, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-feature.is-revealed { opacity: 1; transform: none; }
.hero-feature .fig {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.hero-feature .num {
  font-family: var(--mono);
  font-size: clamp(2.8rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(240, 192, 85, 0.35);
}
.hero-feature .num .trend { font-size: 0.62em; vertical-align: 0.12em; margin-right: 0.12em; }
.hero-feature .label { color: var(--dark-text-soft); font-size: 0.95rem; margin-top: 0.6rem; }
.hero-feature .source-note { color: var(--dark-text-soft); font-family: var(--mono); font-size: 0.68rem; margin-top: 0.85rem; opacity: 0.7; }
.hero-feature-hook {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--dark-text);
  line-height: 1.3;
  margin-bottom: 1.1rem;
}
.hero-feature-hook em { color: var(--gold-light); font-style: normal; }

/* Animated bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 130px;
  margin-bottom: 1.5rem;
}
.bar-chart .bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 4px 4px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  box-shadow: 0 0 18px rgba(240, 192, 85, 0.25);
}
.hero-feature.is-revealed .bar-chart .bar { animation: bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.bar-chart .bar:nth-child(1) { animation-delay: 0.05s; }
.bar-chart .bar:nth-child(2) { animation-delay: 0.14s; }
.bar-chart .bar:nth-child(3) { animation-delay: 0.23s; }
.bar-chart .bar:nth-child(4) { animation-delay: 0.32s; }
.bar-chart .bar:nth-child(5) { animation-delay: 0.41s; }
@keyframes bar-grow { to { transform: scaleY(1); } }

/* ── Metric visuals: meter bar + trend arrow ─────────────────── */
.exhibit .meter {
  height: 5px;
  border-radius: 4px;
  background: rgba(184, 146, 74, 0.18);
  margin-top: 1.1rem;
  overflow: hidden;
}
.section-dark .exhibit .meter, .hero .exhibit .meter { background: rgba(240, 192, 85, 0.16); }
.exhibit .meter > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.exhibit .meter.is-filled > i { width: 100%; }
.exhibit .trend { color: var(--gold-bright); font-size: 0.72em; margin-right: 0.18em; vertical-align: 0.14em; }
.section-dark .exhibit .trend, .hero .exhibit .trend { color: var(--gold-bright); }

/* ── Typography lifts ────────────────────────────────────────── */
.hl {
  background: linear-gradient(transparent 60%, rgba(240, 192, 85, 0.42) 60%, rgba(240, 192, 85, 0.42) 92%, transparent 92%);
  padding: 0 0.06em;
}
.section-dark .hl, .hero .hl {
  background: linear-gradient(transparent 60%, rgba(240, 192, 85, 0.32) 60%, rgba(240, 192, 85, 0.32) 92%, transparent 92%);
}
.section-intro { font-size: 1.14rem; line-height: 1.6; color: var(--ink); }
.section-dark .section-intro, .hero .section-intro { color: var(--dark-text); }

/* Brand strip as chips */
.brand-strip li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.brand-strip li:hover { border-color: var(--gold); color: var(--ink); }

/* Takeaway as a labelled pull quote */
.study .takeaway { font-size: 1.08rem; line-height: 1.55; }
.study .takeaway::before {
  content: "Takeaway";
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

/* ── Per-study charts ────────────────────────────────────────── */
.study-chart { margin: 0.25rem 0 1.75rem; max-width: 380px; }
.chart-cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

/* Rising trajectory bars */
.growth-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 120px; }
.growth-chart .gb {
  flex: 1;
  height: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 16px rgba(240, 192, 85, 0.22);
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.study.is-visible .growth-chart .gb { height: var(--h); }
.growth-chart .gb:nth-child(2) { transition-delay: 0.08s; }
.growth-chart .gb:nth-child(3) { transition-delay: 0.16s; }
.growth-chart .gb:nth-child(4) { transition-delay: 0.24s; }
.growth-chart .gb:nth-child(5) { transition-delay: 0.32s; }

/* Before / after comparison */
.compare-chart { display: flex; gap: 1.75rem; align-items: flex-end; height: 150px; }
.cc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.cc-val {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.cc-bar {
  width: 100%;
  height: 0;
  border-radius: 5px 5px 0 0;
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.cc-bar.before { background: rgba(184, 146, 74, 0.30); }
.cc-bar.after {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 20px rgba(240, 192, 85, 0.28);
}
.study.is-visible .cc-bar { height: var(--h); }
.cc-lab {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-top: 0.65rem;
}

/* ── Logo wall (styled name tiles, swap-ready for real assets) ── */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 76px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-tile:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(26, 22, 16, 0.08);
}
.logo-tile img { max-height: 38px; width: auto; }

/* ── Brand icons (favicon-style SVG monograms) ─────────────── */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-icon svg { display: block; width: 42px; height: 42px; }
.study-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.study-header h2 { margin: 0; }

/* logo-tile with icon */
.logo-tile {
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.75rem 0.9rem;
}
.logo-tile .lt-icon { display: flex; align-items: center; justify-content: center; }
.logo-tile .lt-name { font-size: 0.72rem; text-align: center; line-height: 1.3; }

/* ── GEO / LLM visibility ───────────────────────────────────── */
.geo-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.8rem;
  border: 1px solid rgba(240, 192, 85, 0.35);
  border-radius: 20px;
  color: var(--gold-light);
  background: rgba(240, 192, 85, 0.07);
}
.geo-badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 5px var(--gold-bright);
}
.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
.geo-visual {
  background: linear-gradient(160deg, var(--dark-2) 0%, rgba(13,10,6,0.97) 100%);
  border: 1px solid rgba(240, 192, 85, 0.18);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 0 50px rgba(240, 192, 85, 0.06);
}
.geo-visual-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
}
.geo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.geo-row:last-child { border-bottom: 0; }
.geo-row-name { color: var(--dark-text); font-size: 0.88rem; font-weight: 500; }
.geo-row-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.geo-row-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  margin-top: 0.25rem;
  box-shadow: 0 0 7px rgba(240,192,85,0.4);
}
@media (max-width: 820px) {
  .geo-grid { grid-template-columns: 1fr; }
}

/* Hero trust line */
.hero-trust {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--dark-text-soft);
}
.hero-trust b { color: var(--gold-light); font-weight: 600; }

/* ── Blog: listing ───────────────────────────────────────────── */
.post-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26, 22, 16, 0.07);
}
.post-card-date {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.post-card-title { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: 0.5rem; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent-dark); }
.post-card-desc { margin-bottom: 1rem; }

/* ── Blog: single post ───────────────────────────────────────── */
.post { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.post-container { max-width: 720px; }
.post .post-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0.75rem 0 2rem;
}
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}
.prose h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }
.prose a { color: var(--accent-dark); text-underline-offset: 3px; }
.post-cta {
  margin-top: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.post-cta p { margin-bottom: 1rem; color: var(--ink); font-weight: 500; }
.post-back { margin-top: 2rem; }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
  .hero-wordmark, .hero-kicker, .hero h1, .hero .sub, .hero-actions, .hero-feature {
    opacity: 1; transform: none; transition: none;
  }
  .hero-wordmark .wh4m-four { animation: none; }
  .hero-wordmark .wh4m-four.flash, .num.shimmer { animation: none; }
  .bar-chart .bar { transform: none; animation: none; }
  .exhibit .meter > i { transition: none; width: 100%; }
  .growth-chart .gb, .cc-bar { transition: none; height: var(--h); }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; box-shadow: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .service-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; }
  .about-grid .headshot-frame { max-width: 320px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-line);
    padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav a { font-size: 1.05rem; }
}
