/* ============================================================
   Real Signal — homepage styles
   Brand tokens, type, layout, components, animations.
   ============================================================ */

:root {
  --navy: #0B2D45;
  --navy-08: rgba(11, 45, 69, 0.08);
  --navy-18: rgba(11, 45, 69, 0.18);
  --navy-55: rgba(11, 45, 69, 0.55);
  --navy-60: rgba(11, 45, 69, 0.60);
  --ink: #0B0B0B;
  --bg: #FAFAF7;
  --card: #ffffff;
  --lime: #D7F75B;
  --lime-hover: #C9EA3F;
  --mint: #AFF8C8;
  --sky: #B5D0E8;
  --lavender: #D8C8F2;

  /* Astoria first; falls back to Fraunces (Google Fonts) if Astoria isn't loaded.
     Drop your Adobe Fonts (or other) Astoria import in <head> and it overrides automatically. */
  --serif: 'Astoria', 'astoria', 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 820px;
  --pad-x: 40px;
  --pad-x-mobile: 24px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-weight: 500; color: var(--navy); }
::selection { background: var(--lime); color: var(--navy); }

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

@media (max-width: 768px) {
  /* Respect iOS safe-area insets (notch/edge) while keeping a 24px minimum gutter. */
  .container {
    padding-left: max(var(--pad-x-mobile), env(safe-area-inset-left));
    padding-right: max(var(--pad-x-mobile), env(safe-area-inset-right));
  }
  body { font-size: 16px; }
}

/* ---------- Logo — official Real Signal "Arrow" lockup (SVG) ---------- */
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.footer-logo { height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.80);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.site-header.scrolled { border-bottom-color: var(--navy-08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em;
}
.logo-word { line-height: 1; }

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 15px; color: var(--navy);
  opacity: 0.65;
  transition: opacity 200ms ease;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .site-nav a { font-size: 13px; }
  .logo { font-size: 19px; }
}

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px 4px;
  margin: -8px -4px;
  cursor: pointer;
  color: var(--navy);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bar {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  display: block;
  transition: transform 280ms cubic-bezier(.2,.7,.3,1), opacity 220ms ease;
}
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(250, 250, 247, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--navy-08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(.2,.7,.3,1), opacity 260ms ease;
    align-items: stretch;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    font-size: 18px;
    width: 100%;
    padding: 14px 24px;
    opacity: 0.7;
  }
  .site-nav a.active {
    opacity: 1;
    color: var(--navy);
    font-weight: 500;
  }
  .site-nav a.active::after { display: none; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy-55);
  margin-bottom: 56px;
}

/* ---------- Hero ---------- */
.hero { padding: 140px 0 120px; }
.hero-headline {
  font-size: clamp(48px, 7.2vw, 92px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 56px;
  max-width: 1100px;
}
.hero-headline .muted { color: rgba(11, 45, 69, 0.42); display: block; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding: 80px 0 80px; }
  /* Scale headline down so the longest word ("implementation") fits within container gutters on iPhone. */
  .hero-headline {
    font-size: clamp(36px, 10vw, 56px);
    margin-bottom: 40px;
  }
}

/* ---------- Hero with video ---------- */
.hero-video {
  position: relative;
  padding: 0;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video .hero-bg { position: absolute; inset: 0; }
.hero-video .hero-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Warm B&W: full desaturation, slight contrast lift, subtle warmth via sepia */
  filter: grayscale(100%) contrast(1.06) brightness(0.96) sepia(0.06);
  transition: opacity 1200ms ease;
  transform: scale(1);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-video .hero-vid-b { opacity: 0; }
.hero-video .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,45,69,0.55) 0%, rgba(11,45,69,0.72) 100%);
}
.hero-video .hero-content {
  position: relative; z-index: 2;
  /* Use padding-block so .container's horizontal padding is preserved. */
  padding-top: 200px;
  padding-bottom: 110px;
  width: 100%;
}
.hero-video .hero-headline { color: var(--bg); }
.hero-video .hero-headline .muted { color: rgba(250, 250, 247, 0.55); display: block; }
.hero-video .btn-secondary {
  color: var(--bg);
  border-color: rgba(250, 250, 247, 0.7);
}
.hero-video .btn-secondary:hover {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video .hero-vid { animation: none; }
}
@media (max-width: 768px) {
  .hero-video { min-height: 72vh; }
  .hero-video .hero-content { padding-top: 100px; padding-bottom: 80px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.005em;
  transition:
    transform 280ms var(--ease),
    background-color 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    box-shadow 280ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(11, 45, 69, 0.04);
}
.btn-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -8px rgba(11, 45, 69, 0.22);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ---------- Services ---------- */
.services { padding: 40px 0 140px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 28px 32px;
  background: var(--card);
  border: 1px solid var(--navy-08);
  border-radius: 14px;
  transition: transform 380ms var(--ease), border-color 380ms ease, box-shadow 380ms var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-18);
  box-shadow: 0 26px 50px -22px rgba(11, 45, 69, 0.16);
}
.service-name {
  font-size: 26px;
  margin-bottom: 2px;
}
.service-subtitle {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--navy-55);
  margin-bottom: 22px;
}
.service-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }
}

/* ---------- Audience ---------- */
.audience { padding: 100px 0 60px; }
.audience-body {
  font-size: 22px;
  line-height: 1.55;
  color: var(--navy);
}
@media (max-width: 768px) {
  .audience { padding: 60px 0 40px; }
  .audience-body { font-size: 19px; }
}

/* ---------- Pull quote ---------- */
.pullquote {
  padding: 80px 0 140px;
  text-align: center;
}
.pullquote blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--navy);
}
@media (max-width: 768px) {
  .pullquote { padding: 60px 0 80px; }
}

/* ---------- Fit / CTA ---------- */
.fit-cta {
  padding: 100px 0 160px;
  text-align: center;
  position: relative;
}
.fit-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--navy-18);
}
.fit-line {
  font-size: 15px;
  color: var(--navy-60);
  margin-bottom: 24px;
  letter-spacing: 0.005em;
}
.fit-headline {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 44px;
}
@media (max-width: 768px) {
  .fit-cta { padding: 60px 0 100px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--navy-08);
  padding: 32px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 17px;
}
.footer-meta {
  display: flex; gap: 24px;
  font-size: 13px;
  color: var(--navy-60);
  flex-wrap: wrap;
}
.footer-meta a { transition: color 200ms ease; }
.footer-meta a:hover { color: var(--navy); }

/* Footer social icons */
.footer-social { display: inline-flex; gap: 14px; align-items: center; margin-left: 6px; }
.footer-social a {
  width: 22px; height: 22px;
  color: var(--navy); opacity: 0.55;
  transition: opacity 200ms ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 18px; height: 18px; display: block; }

/* ---------- Approach — modularity callout ---------- */
.approach-callout {
  background: var(--card);
  border: 1px solid var(--navy-08);
  border-radius: 14px;
  padding: 36px 44px;
  margin: 8px 0 56px;
  text-align: center;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.approach-callout h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0 0 12px;
}
.approach-callout p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-60);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- Founder page headline ---------- */
.founder-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 940px;
  margin: 18px 0 0;
}

/* ---------- Home: founding principles (full-width section) ---------- */
.home-principles {
  padding: 100px 0;
  border-top: 1px solid var(--navy-08);
}
.home-principles .principles-grid { margin-top: 36px; }
.home-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 56px;
}

/* ============================================================
   Animations — subtle, editorial. Respects prefers-reduced-motion.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

/* ============================================================
   Who We Are page
   ============================================================ */

.page-intro { padding: 120px 0 40px; }
.page-intro .container { position: relative; }
@media (max-width: 768px) { .page-intro { padding: 64px 0 24px; } }

.who-headline {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-top: 24px;
}
.who-headline .line-muted { color: rgba(11, 45, 69, 0.42); }

/* Founder — side-by-side photo + bio */
.founder { padding: 60px 0 100px; }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: 72px;
  align-items: start;
}
.founder-photo {
  position: sticky;
  top: 110px;
}
.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 26%;   /* keeps face as focal point */
  border-radius: 14px;
  display: block;
  background: #e9ebf2;
}
.founder-photo .photo-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--navy-55);
  letter-spacing: 0.02em;
}
.founder-photo .photo-caption strong {
  color: var(--navy);
  font-weight: 600;
}

.founder-bio p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 22px;
}
.founder-bio p:first-child {
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
}
.founder-bio p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-photo { position: static; max-width: 460px; }
  .founder-bio p:first-child { font-size: 20px; }
}

/* Founding principles */
.principles {
  padding: 100px 0 140px;
  border-top: 1px solid var(--navy-08);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
  margin-top: 48px;
}
.principle { }
.principle h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 12px;
}
.principle .principle-num {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy-45, rgba(11,45,69,0.45));
  margin-bottom: 14px;
}
.principle p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.85;
}
@media (max-width: 700px) {
  .principles { padding: 64px 0 90px; }
  .principles-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   What We Do page
   ============================================================ */
.wwd-intro { padding: 120px 0 20px; }
.wwd-intro .container { position: relative; }
@media (max-width: 768px) { .wwd-intro { padding: 64px 0 12px; } }

.wwd-statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 24px 0 28px;
  max-width: 940px;
}
.wwd-substatement {
  font-size: 18px;
  line-height: 1.55;
  color: var(--navy-60);
  max-width: 640px;
}

.wwd-services { padding: 64px 0 80px; }
.wwd-service {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) 1.1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--navy-08);
  align-items: start;
}
.wwd-service:last-child { border-bottom: 1px solid var(--navy-08); }
.wwd-num {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy-55);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.wwd-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--navy);
  margin: 0 0 8px;
}
.wwd-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-55);
}
.wwd-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
}
.wwd-service .accent {
  width: 28px; height: 2px; background: var(--lime);
  margin-top: 18px;
  opacity: 0;
  transform: scaleX(0); transform-origin: left;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.wwd-service:hover .accent { opacity: 1; transform: scaleX(1); }

@media (max-width: 820px) {
  .wwd-service { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
}

/* ============================================================
   Brand icons (line icons, navy, single weight)
   ============================================================ */
.svc-icon {
  width: 30px; height: 30px;
  margin-bottom: 22px;
  color: var(--navy);
}
.svc-icon svg { width: 100%; height: 100%; display: block; }

/* Icon + number on one line (What We Do) */
.wwd-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wwd-meta .svc-icon { width: 26px; height: 26px; margin-bottom: 0; }
.wwd-meta .wwd-num { margin-bottom: 0; }

/* ============================================================
   Brand pattern — intersecting circles + axis (signature motif)
   ============================================================ */
.brand-motif {
  position: absolute;
  top: 0; right: 0;
  width: 96px;
  color: var(--navy);
  opacity: 0.16;
  pointer-events: none;
}
.brand-motif svg { width: 100%; height: auto; display: block; }
@media (max-width: 1040px) { .brand-motif { display: none; } }

/* Horizontal intersecting-circles divider */
.pattern-divider {
  color: var(--navy);
  opacity: 0.14;
  margin: 0 auto;
  max-width: 520px;
  padding: 8px 0;
}
.pattern-divider svg { width: 100%; height: auto; display: block; }

/* ============================================================
   What We Do — connected timeline layout
   ============================================================ */
.wwd-timeline { padding: 56px 0 16px; }
.tl-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding-bottom: 52px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail > div { text-align: center; position: relative; }
.tl-rail::before {
  content: "";
  position: absolute;
  top: 8px; bottom: -52px; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--navy-18);
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--navy-55);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 12px;
  /* mask the rail line behind the digits */
  display: inline-block;
  background: var(--bg);
  padding: 4px 10px;
  position: relative;
  z-index: 1;
}
.tl-node {
  position: relative; z-index: 1;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background-color 350ms var(--ease);
}
.tl-node svg { width: 27px; height: 27px; }
.tl-item:hover .tl-node { background: var(--lime); }
.tl-content { padding-top: 2px; }
.tl-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--navy);
  margin: 0 0 4px;
}
.tl-sub {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-55);
  margin-bottom: 14px;
}
.tl-desc { font-size: 17px; line-height: 1.62; color: var(--navy); }
@media (max-width: 720px) {
  .tl-item { grid-template-columns: 48px 1fr; gap: 22px; padding-bottom: 40px; }
  .tl-rail::before { bottom: -40px; }
  .tl-node { width: 46px; height: 46px; }
  .tl-node svg { width: 23px; height: 23px; }
  .tl-desc { font-size: 16px; }
}

/* ============================================================
   Custom dot cursor (mouse/fine-pointer only)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor .btn,
  html.has-custom-cursor .service-card { cursor: none; }

  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    z-index: 99999;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 250ms ease;
  }
  .cursor-dot.ready, .cursor-ring.ready { opacity: 1; }

  .cursor-dot {
    width: 12px; height: 12px;
    background: var(--lime);
    border: 1.5px solid var(--navy);
    box-shadow: 0 0 0 1px rgba(11, 45, 69, 0.10);
    transition: width 200ms var(--ease), height 200ms var(--ease),
                background-color 200ms ease, border-color 200ms ease,
                opacity 250ms ease;
  }
  .cursor-ring {
    width: 40px; height: 40px;
    border: 1px solid var(--lime);
    transition: width 260ms var(--ease), height 260ms var(--ease),
                border-color 260ms ease, background-color 260ms ease, opacity 250ms ease;
  }
  /* Hover over anything clickable — invert to navy for strong feedback */
  .cursor-dot.is-hover {
    background: var(--navy);
    border-color: var(--navy);
    width: 14px; height: 14px;
  }
  .cursor-ring.is-hover {
    width: 56px; height: 56px;
    border-color: var(--navy);
    background: rgba(11, 45, 69, 0.06);
    box-shadow: none;
  }
}

/* ============================================================
   Scroll-fill text — words shift from muted to navy on scroll
   ============================================================ */
.scroll-fill .sf-word {
  color: rgba(11, 45, 69, 0.20);
  transition: color 420ms var(--ease);
}
.scroll-fill .sf-word.lit { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button { cursor: auto !important; }
  .scroll-fill .sf-word { color: var(--navy); }
}
