/* ─────────────────────────────────────────────────────────────
   Tulq — Two Currents, One Water
   A landing page for a 24/7 culturally competent nurse advice line.
   Built around the confluence of the Tolt & Snoqualmie rivers.
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── Palette: midnight Pacific Northwest river at first light ── */
  --basalt:        #1c2628;
  --basalt-soft:   #232f31;
  --basalt-lift:   #2a3739;
  --cedar:         #3a5a4a;
  --river-tolt:    #a8c8c4;
  --river-snoq:    #6b8a96;
  --fog:           #e8e4d8;
  --cream:         #f5f1ea;
  --cream-card:    #fbf8f2;
  --ink:           #1f2a2a;
  --ink-soft:      #4a5555;
  --ink-mute:      #8a9292;
  --rule:          #e6dfd3;
  --rule-soft:     #eee7da;
  --rule-dark:     rgba(232, 228, 216, 0.14);
  --rule-dark-soft:rgba(232, 228, 216, 0.08);
  --teal-deep:     #0f5f53;
  --amber:         #d98a4a;
  --amber-soft:    rgba(217, 138, 74, 0.16);

  /* ── Type ── */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ── Shadows (warm, ink-based) ── */
  --shadow-sm: 0 1px 0 rgba(31,42,42,.04), 0 1px 2px rgba(31,42,42,.04);
  --shadow-md: 0 1px 0 rgba(31,42,42,.04), 0 8px 24px -10px rgba(31,42,42,.22);
  --shadow-lg: 0 1px 0 rgba(31,42,42,.04), 0 30px 60px -30px rgba(31,42,42,.38);

  --max:        1180px;
  --max-prose:  760px;

  /* Easing tokens used across reveals & magnetic motion */
  --ease-out-soft: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--basalt); }

/* ─────────────────────────────────────────────────────────────
   Scroll progress hairline (NEXT-LEVEL detail)
   ───────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  pointer-events: none;
}
.scroll-progress::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--river-tolt), var(--fog) 55%, var(--amber));
  transition: width .12s linear;
  box-shadow: 0 0 18px rgba(217,138,74,.35);
}

/* ─────────────────────────────────────────────────────────────
   Reusable atoms
   ───────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(217,138,74,0.18);
  animation: breath 4s ease-in-out infinite;
}
.eyebrow-dark { color: var(--river-tolt); }
.eyebrow-light { color: var(--teal-deep); }

@keyframes breath {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217,138,74,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(217,138,74,0.04); }
}

/* Entrance reveal: content is visible by default. JS that supports
   IntersectionObserver upgrades to a staggered rise; without JS the
   page renders fully visible. */
.rise { opacity: 1; transform: translateY(0); }
.js-reveal .rise {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .45s var(--ease-out-soft),
    transform .45s var(--ease-out-soft);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.js-reveal .rise.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rise, .js-reveal .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .eyebrow .dot { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   Nav — translucent over the hero, then a hairline rule below
   ───────────────────────────────────────────────────────────── */

.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.2s var(--ease-out-soft), border-color 0.2s var(--ease-out-soft), backdrop-filter 0.2s var(--ease-out-soft);
}
.nav-wrap[data-mode="dark"] {
  background: rgba(28,38,40,0.0);
  border-bottom: 1px solid transparent;
}
.nav-wrap[data-mode="dark"].scrolled {
  background: rgba(28,38,40,0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule-dark-soft);
}
.nav-wrap[data-mode="light"] {
  background: rgba(245,241,234,0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 24px;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out-soft);
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--cedar), var(--basalt));
  color: var(--fog);
  font-family: var(--serif);
  font-size: 17px; font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px -6px rgba(15,95,83,.6);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  /* a tiny "current" line inside the mark */
  content: "";
  position: absolute; left: 6px; right: 6px; top: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--river-tolt), var(--fog), var(--river-snoq), transparent);
  opacity: 0.85;
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-wrap[data-mode="dark"] .brand { color: var(--fog); }
.nav-wrap[data-mode="dark"] .nav-links a { color: rgba(232,228,216,0.7); }
.nav-wrap[data-mode="dark"] .nav-links a:hover { color: var(--fog); background: rgba(232,228,216,0.08); }
.nav-wrap[data-mode="light"] .brand { color: var(--ink); }
.nav-wrap[data-mode="light"] .nav-links a { color: var(--ink-soft); }
.nav-wrap[data-mode="light"] .nav-links a:hover { color: var(--ink); background: rgba(31,42,42,0.05); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 16px 12px 20px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 12px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.nav-wrap[data-mode="dark"] .nav-cta {
  background: var(--fog); color: var(--basalt);
}
.nav-wrap[data-mode="dark"] .nav-cta:hover { transform: translateY(-1px); background: var(--amber); color: var(--basalt); }
.nav-wrap[data-mode="light"] .nav-cta {
  background: var(--basalt); color: var(--fog);
}
.nav-wrap[data-mode="light"] .nav-cta:hover { transform: translateY(-1px); background: var(--cedar); }
.nav-cta .dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(217,138,74,0.25);
  animation: breath 4s ease-in-out infinite;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Hero — full-bleed basalt with two-rivers canvas
   ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--basalt);
  color: var(--fog);
  overflow: hidden;
  display: flex; align-items: stretch;
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  filter: blur(0.6px);
}
.hero::before {
  /* very subtle vignette — keeps copy legible */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(28,38,40,0.55), transparent 60%),
    linear-gradient(180deg, rgba(28,38,40,0.4) 0%, transparent 25%, transparent 70%, rgba(28,38,40,0.6) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero::after {
  /* subtle noise grain — keeps the basalt from looking digital */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* NEXT-LEVEL: cursor-tracked glow that follows pointer in the hero */
.hero-glow {
  position: absolute;
  left: var(--gx, 50%); top: var(--gy, 50%);
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,138,74,0.18), rgba(168,200,196,0.08) 40%, transparent 70%);
  filter: blur(40px);
  opacity: var(--gO, 0);
  transition: opacity .3s var(--ease-out-soft);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

/* ─────────────────────────────────────────────────────────────
   Hero photo — foggy coniferous forest, right-side atmosphere
   z-index 1: above canvas, below vignette (::before z-index 2)
   ───────────────────────────────────────────────────────────── */
.hero-photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  object-fit: cover;
}
.hero-photo--forest {
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 120px 32px 120px;
  display: grid;
  grid-template-columns: minmax(0, 880px) 1fr;
  align-items: center;
}

.hero-copy { max-width: 820px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8.4vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 32px 0 36px;
  color: var(--fog);
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
  display: block;
}

.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.4;
  color: rgba(232, 228, 216, 0.86);
  margin: 0 0 44px;
  max-width: 580px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 20px 16px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s var(--ease-out-soft), background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: var(--fog); color: var(--basalt);
  box-shadow: 0 8px 28px -10px rgba(232, 228, 216, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); background: #fff; }
.btn-primary .orb {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--basalt);
  color: var(--fog);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease-out-soft), background 0.15s;
}
.btn-primary:hover .orb { transform: translateX(3px); background: var(--amber); color: var(--basalt); }

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border: 1px dashed rgba(232,228,216,0.4);
  padding: 16px 26px;
}
.btn-ghost:hover { border-color: var(--fog); background: rgba(232,228,216,0.06); }
.btn-ghost svg { transition: transform 0.2s var(--ease-out-soft); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* Call soon button */
.btn-call-soon { position: relative; gap: 6px; border: none; cursor: pointer; }
.btn-call-phone { display: flex; align-items: center; }
.btn-call-coming {
  display: inline-block;
  font-size: 0.65em;
  font-style: normal;
  opacity: 0.7;
  vertical-align: middle;
  margin-left: 2px;
}
.btn-call-coming em { font-style: italic; }

/* Ring-out animation on click */
@keyframes call-ring {
  0%   { transform: scale(1) rotate(0deg); }
  15%  { transform: scale(1.15) rotate(-12deg); }
  30%  { transform: scale(1.1) rotate(10deg); }
  45%  { transform: scale(1.12) rotate(-8deg); }
  60%  { transform: scale(1.08) rotate(6deg); }
  75%  { transform: scale(1.04) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes coming-soon-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  40%  { opacity: 1;   transform: scale(1.18); color: var(--amber); }
  100% { opacity: 0.7; transform: scale(1); }
}
.btn-call-soon.is-ringing .btn-call-phone {
  animation: call-ring 0.55s var(--ease-out-soft);
}
.btn-call-soon.is-ringing .btn-call-coming {
  animation: coming-soon-pulse 0.6s ease forwards;
}

/* Light-section variants */
.btn-dark { background: var(--basalt); color: var(--fog); }
.btn-dark:hover { transform: translateY(-2px); background: var(--cedar); }
.btn-dark .orb { background: var(--fog); color: var(--basalt); }
.btn-dark:hover .orb { transform: translateX(3px); background: var(--amber); }

/* Hero edge furniture */
.hero-status {
  position: absolute; left: 32px; bottom: 36px; z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.7);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(217,138,74,0.22);
  animation: breath 4s ease-in-out infinite;
}

.hero-scroll {
  position: absolute; right: 32px; bottom: 36px; z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.55);
  display: inline-flex; align-items: center; gap: 10px;
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(4px); opacity: 0.95; }
}

/* Tiny meta line bottom-center: "TULTXʷ · WHERE THE WATERS MEET" */
.hero-meta {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  z-index: 5;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(232,228,216,0.55);
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh; /* excludes browser UI chrome on mobile */
  }
  /* Split layout: text on the left, person visible on the right */
  .hero-inner {
    padding: 110px 32px 80px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero-meta { display: none; }
  .hero-status {
    left: 0; right: 0; bottom: 44px;
    display: flex; justify-content: center;
  }
  .hero-scroll {
    left: 0; right: 0; bottom: 20px;
    display: flex; justify-content: center;
  }
  /* Full-width image, high opacity, anchored right so the person fills the right column */
  .hero-photo--forest {
    opacity: 0.9;
    mix-blend-mode: normal;
    object-position: right center;
  }
  /* Horizontal gradient: opaque dark on the left (text), clear on the right (person) */
  .hero::before {
    background:
      linear-gradient(to right, rgba(28,38,40,1) 0%, rgba(28,38,40,0.92) 40%, rgba(28,38,40,0.18) 62%, rgba(28,38,40,0) 100%),
      linear-gradient(180deg, rgba(28,38,40,0.45) 0%, transparent 14%, transparent 86%, rgba(28,38,40,0.55) 100%);
  }
}
@media (max-width: 540px) {
  /* Single column on phones: text takes full width, image shows in bg */
  .hero-inner {
    padding: 150px 20px 64px;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero h1 { margin: 20px 0 24px; }
  .hero-lede { font-size: 19px; margin: 0 0 32px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { justify-content: center; }
  .hero-scroll { font-size: 10px; }
  /* On phones keep person visible on the right of the background */
  .hero-photo--forest {
    opacity: 0.65;
    mix-blend-mode: normal;
    object-position: right center;
  }
  .hero::before {
    background:
      linear-gradient(to right, rgba(28,38,40,0.98) 0%, rgba(28,38,40,0.82) 50%, rgba(28,38,40,0.3) 75%, rgba(28,38,40,0.1) 100%),
      linear-gradient(180deg, rgba(28,38,40,0.6) 0%, transparent 20%, transparent 80%, rgba(28,38,40,0.7) 100%);
  }
}

/* ─────────────────────────────────────────────────────────────
   Scene photos — atmospheric imagery scattered through sections
   Dark-section photos use luminosity blend to stay in palette.
   ───────────────────────────────────────────────────────────── */
.scene-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.scene-photo img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* River photo — full-bleed across section */
.scene-photo--river {
  opacity: 0;
  animation: scenePhotoFade 0.6s 0.15s var(--ease-out-soft) forwards;
}
.scene-photo--river img {
  mix-blend-mode: luminosity;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Totem — full-bleed, portrait anchored right */
.scene-photo--totem {
  opacity: 0;
  animation: scenePhotoFade 0.6s 0.1s var(--ease-out-soft) forwards;
}
.scene-photo--totem img {
  object-position: right center;
  mix-blend-mode: luminosity;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
}

/* Pine trees — full-bleed across section */
.scene-photo--pines {
  opacity: 0;
  animation: scenePhotoFade 0.6s 0.1s var(--ease-out-soft) forwards;
}
.scene-photo--pines img {
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.17;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 92%, transparent 100%);
}

/* Bio / leadership — very subtle grayscale wash */
.scene-photo--bio {
  opacity: 0;
  animation: scenePhotoFade 1.2s 0.6s ease forwards;
}
.scene-photo--bio img {
  object-position: center 30%;
  mix-blend-mode: luminosity;
  filter: grayscale(100%) contrast(0.85) brightness(1.05);
  opacity: 0.08;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Why Tulq — headdress portrait, very subtle wash on cream */
.scene-photo--why {
  opacity: 0;
  animation: scenePhotoFade 1.2s 0.4s ease forwards;
}
.scene-photo--why img {
  object-position: center top;
  mix-blend-mode: luminosity;
  filter: grayscale(60%) contrast(0.9) brightness(1.05);
  opacity: 0.12;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%);
}

/* Contact / footer moody river — full-bleed */
.scene-photo--contact {
  opacity: 0;
  animation: scenePhotoFade 0.6s 0.1s var(--ease-out-soft) forwards;
}
.scene-photo--contact img {
  object-position: center 40%;
  mix-blend-mode: luminosity;
  opacity: 0.2;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%);
}

@keyframes scenePhotoFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 900px) {
  .scene-photo--river img   { opacity: 0.13; }
  .scene-photo--totem img   { opacity: 0.11; }
  .scene-photo--pines img   { opacity: 0.10; }
  .scene-photo--bio img     { opacity: 0.05; }
  .scene-photo--why img     { opacity: 0.08; }
  .scene-photo--contact img { opacity: 0.12; }
}

/* ─────────────────────────────────────────────────────────────
   Premise — single line of mercy
   ───────────────────────────────────────────────────────────── */

.premise {
  background: var(--cream);
  min-height: 52vh;
  display: grid; place-items: center;
  padding: 88px 32px;
  position: relative;
}
.premise-inner {
  max-width: 1040px;
  text-align: center;
}
.premise-eyebrow-top {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 60px;
  display: flex; align-items: center; gap: 16px; justify-content: center;
}
.premise-eyebrow-top::before,
.premise-eyebrow-top::after {
  content: ""; height: 1px; width: 60px;
  background: var(--rule);
}
.premise h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 60px;
  text-wrap: balance;
}
.premise h2 em { font-style: italic; color: var(--teal-deep); }
.premise-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Petroglyph variant — subtle image behind cream wash ── */
.premise--petroglyph {
  background: var(--cream);
  min-height: 60vh;
}
.premise--petroglyph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(245, 241, 234, 0.82) 0%,
      rgba(245, 241, 234, 0.62) 40%,
      rgba(245, 241, 234, 0.62) 60%,
      rgba(245, 241, 234, 0.82) 100%
    );
  pointer-events: none;
}
.premise--petroglyph .premise-inner {
  position: relative;
  z-index: 2;
}
.scene-photo--petroglyph {
  opacity: 0;
  animation: scenePhotoFade 1s 0.1s var(--ease-out-soft) forwards;
}
.scene-photo--petroglyph img {
  object-position: center 35%;
  mix-blend-mode: multiply;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* ─────────────────────────────────────────────────────────────
   How it works — three steps, river-line connector
   ───────────────────────────────────────────────────────────── */

.section {
  padding: 108px 0;
  position: relative;
}
.section-cream { background: var(--cream); }
#leadership,
#why { overflow: hidden; }
#leadership > .container,
#why > .container { position: relative; z-index: 1; }
.section-dark  {
  background: var(--basalt); color: var(--fog);
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 12% 30%, rgba(58,90,74,0.45), transparent 60%),
    radial-gradient(ellipse 50% 60% at 88% 78%, rgba(217,138,74,0.10), transparent 60%);
  pointer-events: none;
}
.section-dark::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: 80px; max-width: none; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 24px 0 24px;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--teal-deep); }
.section-dark .section-head h2 em { color: var(--amber); }
.section-head p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}
.section-dark .section-head p { color: rgba(232,228,216,0.72); }

/* river-line connector */
.river-line {
  position: relative;
  z-index: 1;
  margin: 0 auto 56px;
  max-width: var(--max);
  padding: 0 32px;
  height: 60px;
}
.river-line svg { width: 100%; height: 100%; display: block; }
.river-line .path-snoq {
  fill: none; stroke: var(--river-snoq); stroke-width: 1; stroke-dasharray: 4 6;
  opacity: 0.55;
}
.river-line .path-tolt {
  fill: none; stroke: var(--river-tolt); stroke-width: 1; stroke-dasharray: 6 8;
  opacity: 0.7;
}
/* NEXT-LEVEL: gently drift the dashes so the connector feels alive */
@keyframes river-drift-a { to { stroke-dashoffset: -200; } }
@keyframes river-drift-b { to { stroke-dashoffset:  200; } }
.river-line .path-tolt { animation: river-drift-a 14s linear infinite; }
.river-line .path-snoq { animation: river-drift-b 18s linear infinite; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.step {
  background: var(--cream-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px 34px 40px;
  position: relative;
  transition: transform 0.22s var(--ease-out-soft), box-shadow 0.22s, border-color 0.18s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(58,90,74,0.3); }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.step-num::after { content: ""; flex: 1; max-width: 80px; height: 1px; background: var(--rule); }
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.step h3 em { font-style: italic; color: var(--teal-deep); }
.step p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.step-mark {
  position: absolute; top: 28px; right: 30px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-mute);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.step:hover .step-mark { background: var(--cedar); color: var(--fog); border-color: var(--cedar); transform: translateX(2px); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .river-line { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Leadership — two editorial cards
   ───────────────────────────────────────────────────────────── */

.leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.leader {
  background: var(--cream-card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 48px 44px 44px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s var(--ease-out-soft), box-shadow 0.24s, border-color 0.2s;
}
.leader:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(58,90,74,0.32); }
.leader::before {
  content: ""; position: absolute; top: 0; left: 44px; width: 72px; height: 3px;
  background: linear-gradient(90deg, var(--amber), rgba(217,138,74,0));
  border-radius: 0 0 3px 3px;
}
.leader-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.leader-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--cream);
  box-shadow:
    0 0 0 1px rgba(58,90,74,0.12),
    0 12px 32px -10px rgba(31,42,42,0.45);
  background: var(--cedar);
  flex-shrink: 0;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-photo--suit img { object-position: center 15%; }
.leader-eye {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 7px;
}
.leader h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.leader-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-deep);
  line-height: 1.45;
}
.leader-bio {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  text-wrap: pretty;
}
.leader--clean .leader-bio {
  font-size: 16.5px;
  line-height: 1.72;
}
.leader-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 28px 0 24px;
}
.leader-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.leader-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.leader-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  align-items: baseline;
}
.leader-row-key {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-size: 10.5px;
}
.leader-row-val { color: var(--ink); }
.leader-row-val a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.leader-row-val a:hover { border-bottom-color: var(--ink); }

@media (max-width: 900px) {
  .leaders { grid-template-columns: 1fr; gap: 20px; }
  .leader { padding: 36px 30px 32px; }
  .leader-head { grid-template-columns: 100px 1fr; gap: 20px; }
  .leader-photo { width: 100px; height: 100px; }
}

/* ─────────────────────────────────────────────────────────────
   Who we serve — 4 cards
   ───────────────────────────────────────────────────────────── */

.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
}
.serve-card {
  background: var(--cream-card);
  padding: 38px 30px 36px;
  display: flex; flex-direction: column;
  transition: background 0.18s, transform 0.22s var(--ease-out-soft);
  position: relative;
  min-height: 320px;
}
.serve-card:hover { background: #fff; }
.serve-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 400;
  color: var(--river-snoq);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  transition: color 0.18s;
}
.serve-card:hover .serve-num { color: var(--teal-deep); }
.serve-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.serve-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.serve-card-tag {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
}
.serve-card-tag::before { content: ""; width: 12px; height: 1px; background: var(--ink-mute); }

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

/* ─────────────────────────────────────────────────────────────
   Why Tulq — three pillars, dark
   ───────────────────────────────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  border-radius: 22px;
  overflow: hidden;
}
.pillar {
  background: var(--basalt);
  padding: 44px 36px 46px;
  position: relative;
  transition: background 0.18s;
}
.pillar:hover { background: var(--basalt-soft); }
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.pillar-num::after { content: ""; width: 24px; height: 1px; background: var(--amber); }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  color: var(--fog);
}
.pillar h3 em { font-style: italic; color: var(--amber); }
.pillar p {
  color: rgba(232,228,216,0.72);
  font-size: 15.5px;
  line-height: 1.62;
  margin: 0;
  text-wrap: pretty;
}
.pillar-source {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule-dark);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168,200,196,0.7);
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Numbers — data block, dark
   ───────────────────────────────────────────────────────────── */

.numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px dashed var(--rule-dark);
  border-bottom: 1px dashed var(--rule-dark);
}
.number {
  padding: 56px 24px 56px;
  border-right: 1px dashed var(--rule-dark);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.number:last-child { border-right: 0; }
.number-value {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fog);
}
.number-value sup {
  font-size: 0.4em;
  vertical-align: super;
  font-style: normal;
  color: var(--amber);
  font-family: var(--mono);
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.number-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(232,228,216,0.72);
  margin-top: 8px;
}
.number-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168,200,196,0.65);
}
.numbers-source {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.45);
  margin-top: 32px;
}
@media (max-width: 1000px) {
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .number:nth-child(3) { border-right: 0; }
  .number:nth-child(-n+3) { border-bottom: 1px dashed var(--rule-dark); }
}
@media (max-width: 600px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .number { border-right: 1px dashed var(--rule-dark); border-bottom: 1px dashed var(--rule-dark); padding: 36px 20px; }
  .number:nth-child(2n) { border-right: 0; }
}

/* ─────────────────────────────────────────────────────────────
   Story strip
   ───────────────────────────────────────────────────────────── */

.story {
  position: relative;
  background: var(--basalt);
  color: var(--fog);
  padding: 108px 32px;
  overflow: hidden;
}
.story::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(217,138,74,0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(58,90,74,0.4), transparent 60%);
  pointer-events: none;
}
.story::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.story-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.story-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(80px, 16vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--amber);
  position: relative;
}
.story-glyph small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.55);
  margin-top: 24px;
}
.story-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  color: var(--fog);
}
.story-body h2 em { font-style: italic; color: var(--amber); }
.story-body p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(232,228,216,0.78);
  margin: 0 0 22px;
  max-width: 600px;
  text-wrap: pretty;
}
.story-body p em { color: var(--fog); font-style: italic; }
.story-body .story-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--river-tolt);
  border-left: 1px solid var(--amber);
  padding: 4px 0 4px 22px;
  margin: 32px 0 32px;
  max-width: 540px;
}
.story-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232,228,216,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.story-link:hover { color: var(--amber); border-bottom-color: var(--amber); }
.story-link svg { transition: transform 0.3s var(--ease-out-soft); }
.story-link:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; gap: 32px; }
  .story-glyph { font-size: 110px; }
}

/* ─────────────────────────────────────────────────────────────
   Contact / footer
   ───────────────────────────────────────────────────────────── */

.contact { background: var(--cream); padding: 108px 0 80px; }
.contact-head { text-align: center; margin-bottom: 60px; max-width: 720px; margin-left: auto; margin-right: auto; }
.contact-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 24px 0 24px;
}
.contact-head h2 em { font-style: italic; color: var(--teal-deep); }
.contact-head p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 540px;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--cream-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.22s var(--ease-out-soft), box-shadow 0.22s, border-color 0.18s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(58,90,74,0.28); }
.contact-card .leader-eye { margin-bottom: 10px; }
.contact-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.contact-card .leader-title { font-size: 13px; margin-bottom: 24px; display: block; }
.contact-list {
  display: grid; gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
}
.contact-list .leader-row { font-size: 13px; }

/* ── Contact section two-column split ──────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: stretch;
}

.contact-reach {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-reach-person {
  flex: 1;
  background: rgba(232,228,216,0.04);
  border: 1px solid var(--rule-dark);
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.22s, background 0.22s;
}
.contact-reach-person:hover {
  border-color: rgba(168,200,196,0.25);
  background: rgba(232,228,216,0.06);
}

.contact-reach-role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168,200,196,0.65);
  margin-bottom: 8px;
}
.contact-reach-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fog);
  margin-bottom: 8px;
}
.contact-reach-email {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--river-tolt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  width: fit-content;
  transition: border-color 0.2s;
}
.contact-reach-email:hover { border-bottom-color: rgba(168,200,196,0.45); }

@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-reach { flex-direction: row; }
  .contact-reach-person { flex: 1; }
}
@media (max-width: 560px) {
  .contact-reach { flex-direction: column; }
}

.cap {
  background: var(--basalt);
  color: var(--fog);
  border-radius: 22px;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 50%, rgba(217,138,74,0.18), transparent 60%);
  pointer-events: none;
}
.cap > * { position: relative; z-index: 1; }
.cap-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.cap h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--fog);
}
.cap h4 em { font-style: italic; color: var(--river-tolt); }
.cap p {
  margin: 0;
  color: rgba(232,228,216,0.72);
  font-size: 15px;
  line-height: 1.55;
  max-width: 480px;
}
.btn-amber {
  background: var(--amber); color: var(--basalt);
  padding: 16px 22px 16px 26px;
}
.btn-amber:hover { transform: translateY(-2px); background: #f0a261; }
.btn-amber .orb { background: var(--basalt); color: var(--amber); }
.btn-amber:hover .orb { transform: translateX(3px); background: var(--fog); color: var(--basalt); }
@media (max-width: 800px) {
  .cap { padding: 32px 28px; }
}

/* ── Contact form ──────────────────────────────────────────── */
.cf-wrap {
  background: var(--basalt-soft);
  border: 1px solid var(--rule-dark);
  border-radius: 22px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.cf-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 95% 10%, rgba(217,138,74,0.13), transparent 55%);
}
.cf-wrap > * { position: relative; z-index: 1; }
.cf-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.cf-header .cap-eye { margin-bottom: 0; }
.cf-byline {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: rgba(232,228,216,0.38); text-transform: uppercase; margin: 0;
}
.cf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px;
  margin-bottom: 16px;
}
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cf-grid .cf-field { margin-bottom: 0; }
.cf-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(232,228,216,0.5);
}
.cf-opt { font-size: 10px; opacity: 0.7; text-transform: none; letter-spacing: 0; }
.cf-input {
  background: rgba(28,38,40,0.7);
  border: 1px solid rgba(232,228,216,0.12);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--fog);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.cf-input::placeholder { color: rgba(232,228,216,0.22); }
.cf-input:focus { border-color: rgba(217,138,74,0.7); }
.cf-textarea { resize: vertical; min-height: 110px; }
.cf-check {
  display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; margin: 8px 0 28px;
}
.cf-check input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--amber); cursor: pointer;
}
.cf-check span { font-size: 14px; color: rgba(232,228,216,0.65); line-height: 1.5; }
.cf-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cf-status { font-size: 14px; color: var(--river-tolt); margin: 0; }
.cf-status--error { color: #e07a5f; }
@media (max-width: 800px) {
  .cf-wrap { padding: 32px 24px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-header { flex-direction: column; gap: 6px; }
}

/* Footer base */
.foot {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.foot-brand .brand-mark { width: 32px; height: 32px; font-size: 15px; }
.foot-brand strong {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 17px; letter-spacing: -0.01em;
  text-transform: none;
}
.foot-right { text-align: right; }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; text-align: center; }
  .foot-brand { justify-content: center; }
  .foot-right { text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   Site footer — standalone, stunning
   ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--fog);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 0% 100%, rgba(58,90,74,0.5), transparent 55%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(217,138,74,0.1), transparent 55%);
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }

.site-footer-river {
  height: 44px;
  padding: 0 32px;
  opacity: 0.35;
  border-bottom: 1px solid rgba(232,228,216,0.06);
}
.site-footer-river svg { width: 100%; height: 100%; display: block; }
.site-footer-river .path-tolt {
  fill: none; stroke: var(--river-tolt); stroke-width: 1;
  stroke-dasharray: 6 8; animation: river-drift-a 22s linear infinite;
}
.site-footer-river .path-snoq {
  fill: none; stroke: var(--river-snoq); stroke-width: 1;
  stroke-dasharray: 4 6; animation: river-drift-b 28s linear infinite;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  padding: 72px 0 64px;
  border-bottom: 1px solid rgba(232,228,216,0.08);
}

.site-footer-brand { display: flex; flex-direction: column; gap: 0; }
.site-footer-brand .brand-mark {
  width: 52px; height: 52px; font-size: 24px;
  margin-bottom: 20px;
}
.site-footer-brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fog);
  margin: 0 0 12px;
}
.site-footer-tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.45);
  margin-bottom: 32px;
}
.site-footer-mission {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(232,228,216,0.6);
  max-width: 300px;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 8px;
}
.site-footer-col { display: flex; flex-direction: column; }
.site-footer-col-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.site-footer-col-head::after { content: ""; flex: 1; height: 1px; background: rgba(217,138,74,0.25); }
.site-footer-col a {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  color: rgba(232,228,216,0.6);
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-footer-col a:hover { color: var(--fog); border-bottom-color: rgba(232,228,216,0.15); }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0 36px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.35);
}
.site-footer-legal { display: flex; gap: 32px; align-items: center; }
.site-footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(232,228,216,0.25);
  letter-spacing: 0.02em;
  text-transform: none;
}

@media (max-width: 860px) {
  .site-footer-top { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 48px; }
  .site-footer-nav { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .site-footer-legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 540px) {
  .site-footer-nav { grid-template-columns: 1fr; }
  .site-footer-inner { padding: 0 24px; }
  .site-footer-river { padding: 0 24px; }
}

/* Remove old .foot styles used inside contact — now standalone footer handles this */

/* ─────────────────────────────────────────────────────────────
   Mobile spacing — reduce vertical padding/margins on phones only
   ───────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }

  .premise { padding: 48px 20px; min-height: unset; }
  .premise-eyebrow-top { margin-bottom: 28px; }
  .premise h2 { margin: 0 0 28px; }

  .story { padding: 56px 20px; }

  .contact { padding: 56px 0 40px; }
  .contact-head { margin-bottom: 36px; }
}

/* ─────────────────────────────────────────────────────────────
   Misc helpers
   ───────────────────────────────────────────────────────────── */

.italic-amber { font-style: italic; color: var(--amber); }
.italic-teal  { font-style: italic; color: var(--teal-deep); }
.italic-fog   { font-style: italic; color: var(--fog); }

/* ─────────────────────────────────────────────────────────────
   Dark-section step cards (How it Works now dark)
   ───────────────────────────────────────────────────────────── */

.section-dark .step {
  background: var(--basalt-lift);
  border-color: var(--rule-dark);
  color: var(--fog);
}
.section-dark .step-num { color: var(--river-tolt); }
.section-dark .step-num::after { background: var(--rule-dark); }
.section-dark .step h3 { color: var(--fog); }
.section-dark .step h3 em { color: var(--amber); }
.section-dark .step p { color: rgba(232,228,216,.68); }
.section-dark .step-mark { border-color: var(--rule-dark); color: rgba(168,200,196,0.5); }
.section-dark .step:hover { border-color: rgba(168,200,196,0.28); box-shadow: 0 4px 28px rgba(0,0,0,0.35); }
.section-dark .step:hover .step-mark { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--fog); }

/* ─────────────────────────────────────────────────────────────
   Dark-section serve cards (Who We Serve now dark)
   ───────────────────────────────────────────────────────────── */

.section-dark .serve-grid {
  background: var(--rule-dark);
  border-color: var(--rule-dark);
}
.section-dark .serve-card { background: var(--basalt-lift); color: var(--fog); }
.section-dark .serve-card:hover { background: var(--basalt-soft); }
.section-dark .serve-num { color: var(--amber); }
.section-dark .serve-card:hover .serve-num { color: var(--river-tolt); }
.section-dark .serve-card h4 { color: var(--fog); }
.section-dark .serve-card p { color: rgba(232,228,216,.68); }
.section-dark .serve-card-tag { color: rgba(168,200,196,0.65); }
.section-dark .serve-card-tag::before { background: rgba(168,200,196,0.4); }

/* ─────────────────────────────────────────────────────────────
   Light-section pillar cards (Why Tulq now cream)
   ───────────────────────────────────────────────────────────── */

.section-cream .pillars {
  background: var(--rule);
  border-color: var(--rule);
}
.section-cream .pillar {
  background: var(--cream-card);
  color: var(--ink);
  transition: transform 0.4s var(--ease-out-soft), box-shadow 0.4s, background 0.3s;
}
.section-cream .pillar:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.section-cream .pillar-num { color: var(--amber); }
.section-cream .pillar-num::after { background: var(--amber); }
.section-cream .pillar h3 { color: var(--ink); }
.section-cream .pillar h3 em { color: var(--teal-deep); }
.section-cream .pillar p { color: var(--ink-soft); }
.section-cream .pillar-source { border-top-color: var(--rule-soft); color: var(--ink-mute); }

/* ─────────────────────────────────────────────────────────────
   Story: light (fog) variant
   ───────────────────────────────────────────────────────────── */

.story.story-light {
  background: var(--fog);
  color: var(--ink);
}
.story.story-light::before {
  background:
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(217,138,74,0.09), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(58,90,74,0.1), transparent 60%);
}
.story.story-light::after { opacity: 0.04; }
.story.story-light .story-glyph { color: var(--cedar); }
.story.story-light .story-glyph small { color: var(--ink-mute); }
.story.story-light .story-body h2 { color: var(--ink); }
.story.story-light .story-body h2 em { color: var(--teal-deep); }
.story.story-light .story-body p { color: var(--ink-soft); }
.story.story-light .story-body p em { color: var(--teal-deep); }
.story.story-light .story-pull { color: var(--teal-deep); border-left-color: var(--cedar); }
.story.story-light .story-link { color: var(--ink); border-bottom-color: var(--rule); }
.story.story-light .story-link:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.story.story-light .story-link svg path { stroke: currentColor; }

/* Story section background photo (light variant) */
.scene-photo--story {
  opacity: 0;
  animation: scenePhotoFade 1.2s 0.5s ease forwards;
}
.scene-photo--story img {
  object-position: center 30%;
  mix-blend-mode: multiply;
  opacity: 0.11;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* ─────────────────────────────────────────────────────────────
   Contact: dark variant (inherits section-dark atmosphere)
   ───────────────────────────────────────────────────────────── */

.contact.contact-dark { background: var(--basalt); color: var(--fog); position: relative; overflow: hidden; }
.contact.contact-dark .contact-head h2 { color: var(--fog); }
.contact.contact-dark .contact-head h2 em { color: var(--amber); }
.contact.contact-dark .contact-head p { color: rgba(232,228,216,0.72); }
.contact.contact-dark .cap {
  background: var(--basalt-lift);
  border: 1px solid rgba(232,228,216,0.1);
}
.contact.contact-dark .foot { border-top-color: var(--rule-dark); }
.contact.contact-dark .foot-brand { color: var(--fog); }
.contact.contact-dark .foot-right { color: rgba(232,228,216,0.45); }
