/* ==========================================================================
   Influealth — Design tokens
   Forest green + cream from the real wordmark; brass is the one accent,
   Space Mono carries the "ledger" motif (Influ-WEALTH) through stats & proof.
   ========================================================================== */

:root {
  --ink: #1c2e1c;
  --forest: #2e4e2e;
  --forest-deep: #1c301c;
  --forest-mid: #24401f;
  --cream: #fffbed;
  --sand: #f3eedd;
  --sand-deep: #e9e1c9;
  --brass: #c08a3e;
  --brass-light: #e9c88f;
  --brass-deep: #8f6526;
  --line: rgba(28, 46, 28, 0.13);
  --line-on-dark: rgba(255, 251, 237, 0.18);

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Consolas", monospace;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#work, #process, #testimonials, #contact { scroll-margin-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--brass);
}
section.on-dark .eyebrow,
.on-dark .eyebrow { color: var(--brass-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--forest); transform: translateY(-2px); }
.on-dark .btn-ghost { border-color: var(--line-on-dark); color: var(--cream); }
.on-dark .btn-ghost:hover { border-color: var(--brass-light); }
.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: var(--brass-light); transform: translateY(-2px); }

/* ---------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 237, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(28, 46, 28, 0.4);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 0.2rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------ hero ---------------------------------- */

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(46,78,46,0.10) 0%, rgba(46,78,46,0) 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  position: relative;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 16ch;
  color: var(--ink);
}
.hero .lede {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--forest);
  margin-top: 1.1rem;
  display: block;
}
.rotator-fade {
  display: inline-block;
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(0) scale(1);
}
.rotator-fade.is-fading {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(6px) scale(0.99);
}
@media (prefers-reduced-motion: reduce) {
  .rotator-fade { transition: none; }
}
.hero .body-copy {
  max-width: 46ch;
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: rgba(28, 46, 28, 0.78);
}
.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}
.pill-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.65em 1em;
  border-radius: 14px;
  max-width: 320px;
  line-height: 1.4;
}
.pill-badge .dot { margin-top: 0.45em; }
.pill-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.hero-stats {
  margin-top: 2.6rem;
  display: flex;
  gap: clamp(2.2rem, 5vw, 3.6rem);
  flex-wrap: wrap;
}
.hero-stats--pair > div {
  padding-left: clamp(1.6rem, 3.4vw, 2.6rem);
  border-left: 1px solid var(--line);
}
.hero-stats--pair > div:first-child {
  padding-left: 0;
  border-left: none;
}
.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(28,46,28,0.62);
  margin-top: 0.5rem;
  max-width: 14ch;
}

/* ----------------------------- performance ledger --------------------------- */

.ledger {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--ink);
  padding: 3rem 0 2.6rem;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,251,237,0.1);
  border-bottom: 1px solid rgba(255,251,237,0.1);
}
.ledger-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  white-space: nowrap;
}
.ledger-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #7fbf6a; margin-right: 0.7em; animation: pulse 1.8s ease-in-out infinite; }

.marquee-track {
  display: flex;
  width: max-content;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.ledger.is-dragging .marquee-track { cursor: grabbing; }
.marquee-track img {
  height: 180px;
  width: auto;
  border-radius: 12px;
  margin-right: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(255,251,237,0.1);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.5);
  -webkit-user-drag: none;
  pointer-events: none;
}
@media (max-width: 720px) {
  .marquee-track img { height: 120px; }
}

/* --------------------------------- trusted-by -------------------------------- */

.trusted {
  padding: clamp(3.25rem, 6.5vw, 5.5rem) 0 clamp(5rem, 10vw, 8.5rem);
  text-align: center;
}

.trust-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: rgba(28, 46, 28, 0.8);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5em;
  flex-wrap: wrap;
  margin: 0 auto;
}
.trust-heading .inline-logo {
  height: 1em;
  width: auto;
  display: inline-block;
  transform: translateY(0);
}

/* ---- logo ribbon ---- */
.logo-ribbon {
  margin-top: 2.8rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-ribbon-track {
  display: flex;
  align-items: center;
  width: max-content;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.logo-ribbon.is-dragging .logo-ribbon-track { cursor: grabbing; }
.logo-ribbon-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 2.6rem;
  border-right: 1px solid var(--line);
}
.logo-ribbon-item img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.25s ease, transform 0.25s ease;
  -webkit-user-drag: none;
  pointer-events: none;
}
.logo-ribbon-item:hover img { filter: grayscale(0) opacity(1); transform: scale(1.08); }

/* ------------------------------------ section shell -------------------------------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.on-dark { background: var(--forest); color: var(--cream); }
.section.on-sand { background: var(--sand); }
.section-head { max-width: 640px; }

.value-prop { position: relative; }
.value-prop-grid {
  position: relative;
  z-index: 1;
}
.section-head h2 { margin-top: 0.2rem; }
.section-head .sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgba(28,46,28,0.72);
  max-width: 56ch;
}
.on-dark .section-head .sub { color: rgba(255,251,237,0.78); }

/* --------------------------------- value props ------------------------------- */

.pillars {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
  overflow: hidden;
}
.pillar {
  background: var(--forest);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pillar-mark {
  display: block;
  width: 1.6em;
  height: 3px;
  border-radius: 2px;
  background: var(--brass);
}
.pillar h3 { color: var(--cream); }
.pillar p { color: rgba(255,251,237,0.72); font-size: 0.94rem; }

/* ------------------------------------ process --------------------------------- */

.process-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--brass-deep);
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: rgba(28,46,28,0.72); max-width: 58ch; }


/* ---------------------------------- testimonials ------------------------------ */

.testi-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 20px 40px -32px rgba(28, 46, 28, 0.35);
}
.testi-card .quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  color: var(--brass);
  line-height: 1;
}
.testi-card blockquote {
  margin: 0;
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
}

/* ------------------------------------ wave divider ------------------------------ */

.wave-divider {
  overflow: hidden;
  line-height: 0;
  background: var(--cream);
  padding: 1.2rem 0;
}
.wave-track {
  display: block;
  width: 200%;
  height: 34px;
  color: var(--forest);
  animation: wave-scroll 14s linear infinite;
}
@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-track { animation: none; }
}

/* ------------------------------------ stats band ------------------------------- */

.stats-band {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 5.5rem) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-row--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.stats-row--pair > div {
  border-left: 1px solid var(--line-on-dark);
}
.stats-row--pair > div:first-child { border-left: none; }
.stats-row .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brass-light);
}
.stats-row--pair .num {
  font-size: clamp(3rem, 6vw, 4.4rem);
}
.stats-row .label {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: rgba(255,251,237,0.72);
}
.stats-row--pair .label {
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* ------------------------------------ contact --------------------------------- */

.contact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
}
.contact-form {
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.5rem; }
.field[hidden] { display: none; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,251,237,0.06);
  border: 1px solid var(--line-on-dark);
  border-radius: 10px;
  padding: 0.85em 1em;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.field select { color-scheme: dark; }
.field select option {
  color: var(--ink);
  background: var(--cream);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,251,237,0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255,251,237,0.1);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: #9fd48a; }
.form-status[data-state="error"] { color: #e2a06a; }

.contact-side { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-card {
  border: 1px solid var(--line-on-dark);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.6rem;
  display: block;
}
.contact-card a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}
.contact-card a:hover { color: var(--brass-light); }

/* ------------------------------------- footer --------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,251,237,0.75);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-top img { height: 26px; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; color: rgba(255,251,237,0.75); }
.footer-nav a:hover { color: var(--brass-light); }
.footer-bottom {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,251,237,0.5);
}

/* ------------------------------------ reveal --------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- responsive -------------------------------- */

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem var(--pad) 2rem;
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
  }
  .pillars { grid-template-columns: 1fr; }
  .logo-ribbon-item { padding: 0 1.6rem; height: 28px; }
  .process-step { grid-template-columns: 50px 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
