/* Home Services Hub site stylesheet
   Brand tokens from HomeServicesHubDesign.md
   Forest + Rust on Cream. 70 / 20 / 10. */

:root {
  --forest: #1F3A2E;
  --forest-dark: #142318;
  --forest-mid: #2F5A45;
  --moss: #788E6E;
  --cream: #F4EFE6;
  --cream-dark: #E8E0D0;
  --bone: #FAF7F1;
  --ink: #1A1A18;
  --charcoal: #3A3A36;
  --rust: #B0532A;
  --rust-deep: #7E3914;
  --rule: #D4CCBC;

  --font-display: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchor scroll offset so the sticky header doesn't cover the top of a linked section */
section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1500px) {
  .wrap { max-width: 1380px; padding-inline: 32px; }
}

@media (min-width: 1800px) {
  .wrap { max-width: 1480px; padding-inline: 40px; }
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--forest);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--forest-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand svg { display: block; }

.brand-mark { width: 40px; height: 34px; }

.brand-words {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 18px;
  white-space: nowrap;
}

.brand-words .accent { color: var(--rust); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--cream); border-bottom-color: var(--rust); text-decoration: none; }
.nav-links a.is-active { border-bottom-color: var(--rust); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--moss);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--forest-dark);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--forest-mid);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding-block: 12px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  padding: 14px 22px;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  text-decoration: none;
  border-radius: 0;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--rust); color: var(--cream); }
.btn-primary:hover { background: var(--rust-deep); color: var(--cream); }

.btn-secondary { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-secondary:hover { background: var(--cream); color: var(--forest); }

.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--forest-dark); color: var(--cream); }

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

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 14px;
  display: block;
}

.eyebrow.on-forest { color: var(--rust); }

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

h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18px; }

.on-forest h1, .on-forest h2, .on-forest h3 { color: var(--cream); }

p { margin: 0 0 14px; color: var(--charcoal); }
.on-forest p { color: var(--cream); opacity: 0.92; }

.lede { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 60ch; }
.on-forest .lede { color: var(--cream); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

section { padding-block: 80px; }

.section-forest {
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.section-forest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,239,230,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.section-forest > * { position: relative; z-index: 1; }

.section-cream { background: var(--cream); }
.section-bone { background: var(--bone); }

.section-head { margin-bottom: 48px; max-width: 760px; }

/* ---------- Hero ---------- */

.hero {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(80px, 14vw, 160px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,239,230,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(48px, 8vw, 96px);
  margin-bottom: 22px;
  line-height: 0.95;
}

.hero h1 .accent { color: var(--rust); }

.hero .lede { color: var(--cream); opacity: 0.92; font-size: clamp(18px, 1.5vw, 21px); margin-bottom: 32px; }

.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }

.cta-block { display: flex; flex-direction: column; gap: 8px; }

.cta-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  opacity: 0.95;
}

.cta-tag.on-forest { color: var(--cream); opacity: 0.7; }

.hero-photo {
  border: 8px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta .dot { width: 6px; height: 6px; background: var(--rust); border-radius: 50%; display: inline-block; }

/* ---------- Hubs / Feature grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.feature {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature .num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.14em;
}

.feature h3 { font-size: 24px; color: var(--forest); margin: 0; }
.feature p { color: var(--charcoal); margin: 0; font-size: 16px; }

.feature.on-forest {
  background: var(--forest-mid);
  border-color: var(--moss);
  color: var(--cream);
}
.feature.on-forest h3 { color: var(--cream); }
.feature.on-forest p { color: var(--cream); opacity: 0.92; }

/* ---------- Member cards ---------- */

.members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--cream);
}

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

.member {
  padding: 26px 24px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member:nth-child(2n) { border-right: none; }
.member:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 720px) {
  .member { border-right: none; }
  .member:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .member:last-child { border-bottom: none; }
}

.member-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.member-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.member-suite {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  white-space: nowrap;
}

.member-owner {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.member-desc {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 12px;
}

.member-contact {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.member-contact a { color: var(--rust); }

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

.form-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 36px;
}

@media (max-width: 600px) {
  .form-card { padding: 24px; }
}

.form-card h2 { color: var(--forest); margin-bottom: 8px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

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

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
select,
textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 120ms ease, background 120ms ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--forest);
  background: #fff;
}

textarea { min-height: 130px; resize: vertical; }

.form-actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ---------- Stat row + Strength In Numbers CTA ---------- */

.strength-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.strength-cta-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--moss);
  background: var(--forest-mid);
}

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

.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--moss);
  text-align: left;
}

.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--moss); }
  .stat:last-child { border-bottom: none; }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- Founder cards ---------- */

.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

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

.founder {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founder-head { display: flex; align-items: center; gap: 16px; }

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.avatar.rust { background: var(--rust); }

.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--forest);
  line-height: 1;
  margin: 0;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 6px;
}

.founder-rule {
  height: 3px;
  width: 56px;
  background: var(--rust);
  margin: 4px 0 0;
}

.founder-rule.green { background: var(--forest); }

.founder h4 { color: var(--forest); margin-bottom: 4px; font-size: 18px; }
.founder.accent h4 { color: var(--rust); }

.founder p { color: var(--charcoal); }

.founder-contact {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: auto;
}

.founder-contact a { color: var(--rust); }

/* ---------- Lists ---------- */

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--charcoal); }
.check-list li::before {
  content: "✓";
  color: var(--rust);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.on-forest .check-list li { color: var(--cream); }

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

.cta-band {
  background: var(--rust);
  color: var(--cream);
  padding-block: 56px;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); margin: 0; font-size: clamp(28px, 3vw, 40px); }
.cta-band .btn { background: var(--cream); color: var(--rust); }
.cta-band .btn:hover { background: var(--bone); color: var(--rust-deep); }

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

.site-footer {
  background: var(--forest-dark);
  color: var(--cream);
  padding-block: 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

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

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-words { color: var(--cream); }

.footer h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer p, .footer a { color: var(--cream); opacity: 0.88; }
.footer a:hover { color: var(--rust); text-decoration: none; opacity: 1; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.footer-bar {
  border-top: 1px solid var(--forest-mid);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- Page header banner ---------- */

.page-header {
  background: var(--forest);
  color: var(--cream);
  padding-block: 80px 64px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,239,230,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: var(--cream); font-size: clamp(40px, 6vw, 72px); margin-bottom: 12px; }
.page-header .lede { color: var(--cream); opacity: 0.92; }

/* ---------- Inline two-col content ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .img-wrap {
  border: 6px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,0.4);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rust);
  color: var(--cream);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Idea 1: Scroll reveal + stat count-up
   Elements with .reveal start hidden and slide up when in view.
   .stat-num[data-count] is animated by JS in each page footer.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a revealed grid */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 60ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 140ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 220ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 380ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 460ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 540ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 620ms; opacity: 1; transform: translateY(0); }

/* Stat number gets a small glow flash when it finishes counting */
.stat-num.is-done {
  animation: statPop 420ms ease-out;
}
@keyframes statPop {
  0%   { text-shadow: 0 0 0 rgba(176,83,42,0); }
  50%  { text-shadow: 0 0 18px rgba(176,83,42,0.55); }
  100% { text-shadow: 0 0 0 rgba(176,83,42,0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .stat-num.is-done { animation: none; }
}

/* ============================================================
   Idea 3: CTA + brand micro-interactions
   ============================================================ */

/* Primary button: lift + rust glow on hover */
.btn {
  position: relative;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 180ms ease,
    box-shadow 220ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(176,83,42,0.65),
              0 0 0 1px rgba(176,83,42,0.2);
  outline: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(244,239,230,0.55);
  outline: none;
}

.btn-dark:hover,
.btn-dark:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(31,58,46,0.5);
  outline: none;
}

.btn:active { transform: translateY(0); }

/* Brand mark: rust circle scales up on hover/focus to signal the click */
.brand-mark circle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 220ms ease-out, filter 220ms ease-out;
}
.brand:hover .brand-mark circle,
.brand:focus-visible .brand-mark circle,
.brand:active .brand-mark circle {
  transform: scale(1.35);
  filter: drop-shadow(0 0 6px rgba(176,83,42,0.55));
}

/* On hover/focus the full wordmark reads as a single rust-colored link */
.brand:hover .brand-words,
.brand:focus-visible .brand-words,
.brand:hover .brand-words .accent,
.brand:focus-visible .brand-words .accent {
  color: var(--rust);
  text-shadow: 0 0 12px rgba(176,83,42,0.4);
}

/* Nav links: rust accents to match the "Hub" wordmark */
.nav-links a {
  position: relative;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav-links a.is-active {
  color: var(--rust);
}
.nav-links a.is-active:hover {
  color: var(--rust);
}
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--rust);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* Inline body links get an animated underline that draws left to right.
   Scoped to prose contexts so nav and buttons are untouched. */
.lede a,
p a,
.member-contact a,
.footer p a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: background-size 260ms ease, color 160ms ease;
}
.lede a:hover,
p a:hover,
.member-contact a:hover,
.footer p a:hover {
  background-size: 100% 1.5px;
  text-decoration: none;
}

/* Feature cards lift slightly on hover for a touch of life */
.feature {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(31,58,46,0.35);
  border-color: var(--rust);
}
.feature.on-forest:hover {
  box-shadow: 0 18px 36px -22px rgba(0,0,0,0.55);
  border-color: var(--rust);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .feature { transition: none !important; }
  .btn:hover, .btn:focus-visible,
  .feature:hover { transform: none !important; box-shadow: none !important; }
  .brand-mark circle { transition: none !important; }
}

/* ============================================================
   Idea 4: Member ticker + service area proof bar
   ============================================================ */

.proof-bar {
  background: var(--bone);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 36px;
  overflow: hidden;
}

.proof-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-inline: 24px;
  max-width: 1280px;
  margin-inline: auto;
}

.proof-bar-label {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--forest);
}
.proof-bar-label .accent { color: var(--rust); }

.proof-bar-service {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.proof-bar-service strong { color: var(--forest); font-weight: 700; }

.ticker {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  animation: tickerScroll 48s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  padding: 12px 36px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
  font-family: var(--font-body);
  color: var(--forest);
  text-decoration: none;
  transition: color 160ms ease;
}
.ticker-item:hover { color: var(--rust); text-decoration: none; }

.ticker-item .ticker-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item .ticker-trade {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
}

.ticker-item .ticker-suite {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  white-space: nowrap;
}

/* Mobile: replace the marquee with a clean stacked list.
   A scrolling marquee is fragile on small screens, so we show
   each member as a tidy row instead. Cloned items (added by JS
   to make the marquee loop) are hidden here. */
@media (max-width: 720px) {
  .proof-bar { padding-block: 28px; overflow: visible; }
  .proof-bar-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .ticker {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .ticker-track {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    animation: none;
    border-top: 1px solid var(--rule);
  }
  .ticker-item {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 14px 24px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    white-space: normal;
  }
  .ticker-item .ticker-name {
    font-size: 18px;
    flex: 1 1 auto;
    order: 2;
    white-space: normal;
  }
  .ticker-item .ticker-suite {
    order: 1;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .ticker-item .ticker-trade {
    order: 3;
    flex: 1 1 100%;
    font-size: 12px;
    white-space: normal;
  }
  /* Hide the JS-cloned duplicates so we don't show every member twice */
  .ticker-item[aria-hidden="true"] {
    display: none;
  }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
