:root {
  --ivory: #F7F3EA;
  --ivory-deep: #EFE9DB;
  --charcoal: #16150F;
  --charcoal-soft: #35332D;
  --charcoal-mid: #211F1A;
  --muted: #6B665A;
  --emerald: #0F3D2E;
  --emerald-light: #16583F;
  --emerald-glow: #1C7A56;
  --border: #E4DDCE;
  --border-dark: rgba(247, 243, 234, 0.14);

  --font-display: "Fraunces", "Didot", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;

  --max-width: 1240px;
  --max-width-narrow: 760px;

  --duration: 240ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 var(--space-3);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-weight: 600; }
h2 { font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--space-3); color: var(--charcoal-soft); }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  position: relative;
}
@media (min-width: 768px) {
  .wrap { padding: 0 var(--space-5); }
}
.narrow { max-width: var(--max-width-narrow); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--emerald);
  color: var(--ivory);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--emerald); opacity: 0; transition: opacity 200ms; }
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(28, 27, 24, 0.35);
  opacity: 0;
  transition: opacity 200ms, width 250ms var(--ease), height 250ms var(--ease), border-color 250ms;
}
.cursor-ring.on-dark { border-color: rgba(247, 243, 234, 0.5); }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hovering { width: 56px; height: 56px; border-color: var(--emerald); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 2px;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
  min-height: 44px;
  position: relative;
}
.btn-primary { background: var(--emerald); color: var(--ivory); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--emerald-light); }
.btn-on-dark { background: var(--ivory); color: var(--charcoal); }
.btn-on-dark:hover, .btn-on-dark:focus-visible { background: #fff; }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn-lg { padding: 19px 38px; font-size: 1rem; }
.btn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.btn-arrow { transition: transform var(--duration) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.magnetic { display: inline-block; }

/* Brand */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.brand-footer { justify-content: center; }
.brand-footer .brand-logo { height: 96px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: var(--space-2) 0;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), padding var(--duration) var(--ease);
  color: var(--ivory);
  border-bottom: 1px solid transparent;
}
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(10px);
  color: var(--charcoal);
  border-color: var(--border);
  padding: 10px 0;
}
.site-header.scrolled .brand-word { opacity: 0.55; }
.site-header:not(.scrolled) .btn-primary { background: var(--ivory); color: var(--charcoal); }
.site-header:not(.scrolled) .btn-primary:hover { background: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Marquee */
.marquee-band {
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-3) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  gap: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  white-space: nowrap;
  padding: 0 var(--space-4);
  opacity: 0.85;
}
.marquee-track span::after { content: "—"; margin-left: var(--space-4); opacity: 0.4; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* HERO */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: var(--space-6);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}
.glow-1 { width: 620px; height: 620px; background: radial-gradient(circle, var(--emerald-glow), transparent 70%); top: -160px; right: -120px; animation: float1 22s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 50px); } }
@media (prefers-reduced-motion: reduce) { .glow-1 { animation: none; } }

.water-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }

.hero-inner { position: relative; z-index: 1; }
.hero .kicker { color: #9FD6BE; }
.hero-headline {
  font-size: clamp(2.75rem, 7vw, 6.4rem);
  line-height: 0.98;
  margin: var(--space-3) 0 var(--space-5);
  max-width: 16ch;
  color: var(--ivory);
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line span { display: block; transform: translateY(110%); transition: transform 900ms var(--ease); }
.hero-headline .line:nth-child(1) span { transition-delay: 80ms; }
.hero-headline .line:nth-child(2) span { transition-delay: 200ms; }
.hero-headline .line:nth-child(3) span { transition-delay: 320ms; }
.hero-headline .line.in-view span { transform: translateY(0); }
.hero-headline em { font-style: italic; color: #9FD6BE; }
@media (prefers-reduced-motion: reduce) {
  .hero-headline .line span { transition: none; transform: none; }
}

.hero-lower { display: grid; gap: var(--space-5); align-items: end; }
@media (min-width: 900px) {
  .hero-lower { grid-template-columns: 1.3fr 1fr; }
}
.lede { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem); color: rgba(247, 243, 234, 0.72); max-width: 520px; margin-bottom: var(--space-4); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.fine-print { font-size: 0.85rem; color: rgba(247, 243, 234, 0.5); margin: 0; }

.hero-stats { display: flex; gap: var(--space-5); border-top: 1px solid var(--border-dark); padding-top: var(--space-3); }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700; }
.hero-stat .label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 243, 234, 0.5); max-width: 14ch; }

.scroll-cue {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.5);
}
@media (min-width: 768px) { .scroll-cue { right: var(--space-5); } }
.scroll-cue span { width: 1px; height: 34px; background: rgba(247, 243, 234, 0.35); position: relative; overflow: hidden; }
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -100%; } 50% { top: 100%; } 50.01% { top: -100%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span::after { animation: none; top: 100%; } }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

/* Stat band (replaces old proof strip) */
.stat-band { padding: var(--space-7) 0; }
.stat-band-inner {
  display: grid;
  gap: var(--space-5);
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .stat-band-inner { grid-template-columns: repeat(3, 1fr); }
}
.stat-item { padding-top: var(--space-4); }
.stat-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}
.stat-item .desc { font-size: 0.95rem; color: var(--muted); max-width: 30ch; }

/* Pain */
.pain { padding: var(--space-7) 0; position: relative; }
.pain-mark {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  color: var(--ivory-deep);
  position: absolute;
  top: -1.2rem;
  left: 0;
  z-index: 0;
  user-select: none;
}
.pain .wrap.narrow { position: relative; z-index: 1; }
.pain-list { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pain-list li { position: relative; padding-left: 28px; font-size: 1.1rem; color: var(--charcoal-soft); }
.pain-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.pain-resolve { font-size: 1.15rem; color: var(--charcoal); font-weight: 500; border-left: 2px solid var(--emerald); padding-left: var(--space-3); margin-top: var(--space-5); }

/* Editorial values list */
.values { padding: var(--space-7) 0; background: var(--ivory-deep); }
.section-heading { margin-bottom: var(--space-6); max-width: 20ch; }
.value-list { border-top: 1px solid var(--border); }
.value-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left 300ms var(--ease);
}
@media (min-width: 768px) {
  .value-row {
    display: grid;
    grid-template-columns: 90px 1.1fr 1.4fr;
    gap: var(--space-3);
    align-items: center;
  }
}
.value-row:hover { padding-left: var(--space-2); }
.value-row .idx {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 300ms;
}
.value-row:hover .idx { color: var(--emerald); }
.value-row h3 { margin: 0; font-size: clamp(1.3rem, 1.6vw, 1.75rem); }
.value-row p { margin: 0; font-size: 0.98rem; max-width: 46ch; width: 100%; }

/* Media reveal wrapper */
.media-reveal { overflow: hidden; position: relative; }
.media-reveal img { transform: scale(1.15); transition: transform 1100ms var(--ease); }
.media-reveal.in-view img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .media-reveal img { transform: none; } }

/* Why section */
.why { padding: var(--space-7) 0; background: var(--ivory-deep); }
.why-inner { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .why-inner { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); } }
.why-copy p { font-size: 1.05rem; }
.why-honest {
  background: var(--ivory);
  border-left: 2px solid var(--emerald);
  padding: var(--space-4);
  font-size: 0.98rem;
}
.why-honest strong { color: var(--charcoal); }

/* Case study */
.case-study { padding: var(--space-7) 0; }
.case-inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .case-inner { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.case-note { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-4); }
.case-media img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.case-caveat {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  margin-top: var(--space-4);
}

/* Proof chart */
.proof-chart { background: var(--charcoal); padding: var(--space-4); aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; }
.proof-chart svg { width: 100%; height: auto; overflow: visible; }
.proof-chart .chart-line {
  fill: none;
  stroke: #9FD6BE;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1600ms var(--ease);
}
.media-reveal.in-view .chart-line { stroke-dashoffset: 0; }
.proof-chart .chart-dot { fill: #9FD6BE; opacity: 0; transition: opacity 300ms var(--ease) 1500ms; }
.media-reveal.in-view .chart-dot { opacity: 1; }
.proof-chart .chart-label { fill: rgba(247, 243, 234, 0.55); font-family: var(--font-body); font-size: 11px; }
.proof-chart .chart-figure { fill: var(--ivory); font-family: var(--font-display); font-weight: 700; font-size: 22px; }
@media (prefers-reduced-motion: reduce) {
  .proof-chart .chart-line { transition: none; stroke-dashoffset: 0; }
  .proof-chart .chart-dot { transition: none; opacity: 1; }
}

/* FAQ */
.faq { padding: var(--space-7) 0; }
.faq-list { border-top: 1px solid var(--border); margin-top: var(--space-5); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--emerald);
  flex-shrink: 0;
  transition: transform 240ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--space-3); font-size: 1rem; max-width: 62ch; }

/* Story */
.story { padding: var(--space-7) 0; background: var(--charcoal); color: var(--ivory); }
.story .kicker { color: #9FD6BE; }
.story h2 { color: var(--ivory); }
.story h3 { color: var(--ivory); margin-top: var(--space-5); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); font-weight: 600; }
.story p { color: rgba(247, 243, 234, 0.72); }
.story-inner { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .story-inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.story-media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.method-steps { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.method-steps li { display: flex; gap: var(--space-3); align-items: baseline; }
.step-index { font-family: var(--font-display); color: #9FD6BE; font-size: 1rem; font-weight: 700; flex-shrink: 0; }
.method-steps strong { display: block; color: var(--ivory); margin-bottom: 4px; }
.method-steps p { font-size: 0.9rem; margin: 0; }

/* Partnership banner */
.partnership { position: relative; }
.partnership-media { position: relative; overflow: hidden; aspect-ratio: 21 / 8; }
.partnership-media img { width: 100%; height: 100%; object-fit: cover; }
.partnership-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(22, 21, 15, 0.75), transparent 60%);
}
@media (min-width: 768px) { .partnership-caption { padding: var(--space-4) var(--space-5); } }
.partnership-caption p {
  color: var(--ivory);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  max-width: 34ch;
  margin: 0;
}

/* Final CTA */
.final-cta {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
  padding: var(--space-8) 0;
  text-align: center;
}
.final-cta h2 { color: var(--ivory); max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-bullets { list-style: none; padding: 0; margin: var(--space-4) auto; display: flex; flex-direction: column; gap: var(--space-1); color: rgba(247, 243, 234, 0.72); font-size: 0.95rem; max-width: 480px; }
.final-proof { font-size: 1.05rem; color: var(--ivory); font-weight: 500; margin-bottom: var(--space-4); max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-bottom: var(--space-2); }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(247, 243, 234, 0.7); padding: var(--space-6) 0 var(--space-5); text-align: center; position: relative; overflow: hidden; }
.footer-bg-word {
  position: absolute;
  bottom: -6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 18rem);
  color: rgba(247, 243, 234, 0.035);
  white-space: nowrap;
  letter-spacing: -0.02em;
  z-index: 0;
  user-select: none;
}
.footer-inner { position: relative; z-index: 1; }
.site-footer .brand-word { color: rgba(247, 243, 234, 0.55); }
.site-footer .brand-mark { color: var(--ivory); }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--ivory); margin: var(--space-3) 0; }
.footer-links { display: flex; justify-content: center; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
.footer-links a { border-bottom: 1px solid rgba(247, 243, 234, 0.3); padding-bottom: 2px; }
.footer-links a:hover { border-color: var(--ivory); }
.footer-copy { font-size: 0.8rem; margin: 0; color: rgba(247, 243, 234, 0.4); }

/* Count target initial state for JS hook */
[data-count] { font-variant-numeric: tabular-nums; }
