/* ========================================================================
   DEPLOY PATH: /css/home-scroll.25f6c618.css
   Tepuy Solutions — Home page scroll reveal animation styles
   Version: 2026-03-31 (headers added)
   Notes: Only load on home page.
   ======================================================================== */

/* Palette redesign (2026-08): these were a dark-hero token set (near-black
   bg, near-white text at various opacities). Homepage sections now sit on
   --bone like the rest of the site, so the same token names are kept
   (call sites elsewhere in this file are unchanged) but repointed to
   light-ground equivalents. */
:root {
  --ts-bg: var(--bone);
  --ts-bg2: color-mix(in srgb, var(--sky) 14%, var(--bone));
  --ts-ink: var(--text);
  --ts-muted: color-mix(in srgb, var(--text) 68%, transparent);
  --ts-card: #ffffff;
  --ts-border: color-mix(in srgb, var(--text) 10%, transparent);
}

/* Smooth scroll to anchors */
html { scroll-behavior: smooth; }

/* =========================================================
   1) HOME page continuous surface (kills white/grey gaps)
   ========================================================= */
body.home {
  /* Was a near-black --ink gradient acting as a gap-filler behind
     opaque dark sections. Those sections are now light (--bone-based),
     so this is just the page's own --bone base with the same soft
     clay glow kept for continuity. */
  background:
    radial-gradient(1200px 700px at 50% 0%,
      color-mix(in srgb, var(--clay) 6%, transparent), transparent 55%),
    var(--bone);
  color: var(--ts-ink);
}

/* Subtle global texture layer (Apple-like continuity) */
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Fleck lines were white for a dark base; darkened to stay visible
     (and stay subtle) against --bone. */
  background:
    radial-gradient(1200px 900px at 50% -10%, color-mix(in srgb, var(--clay) 5%, transparent), transparent 55%),
    repeating-linear-gradient(
      90deg,
      rgba(11,31,22,0.025) 0px,
      rgba(11,31,22,0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: .35;
  mix-blend-mode: normal;
  z-index: 0;
}

/* Ensure sections sit above the fixed texture layer */
body.home .hero-tepuy,
body.home .parallax-lines,
body.home .mission,
body.home .strip,
body.home .live-reel,
body.home .ts-footer {
  position: relative;
  z-index: 1;
}
/* Stop global home overlay from darkening the reel */
body.home .live-reel {
  isolation: isolate;
}


/* =========================================================
   2) Shared section rhythm
   ========================================================= */
.ts-section {
  padding: clamp(56px, 6vw, 96px) 1rem;
}

/* Soft divider between sections */
.ts-divider {
  height: 1px;
  width: min(1120px, calc(100% - 48px));
  margin: -8px auto;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--clay) 25%, transparent), transparent);
  opacity: .55;
  transform: translateY(-1px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--clay) 10%, transparent);
}

/* =========================================================
   3) Parallax transition strip (must be painted + positioned)
   ========================================================= */
body.home .parallax-lines {
  position: relative; /* REQUIRED so ::before anchors correctly */
  /* Was a near-black navy gradient. A soft --sky-into-bone wash reads as
     the same "transition band" beat but keeps it light. */
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 20%, var(--bone)) 0%, var(--bone) 100%);
}

body.home .parallax-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 120px at 50% 50%, color-mix(in srgb, var(--clay) 6%, transparent), transparent 70%);
  pointer-events: none;
}

body.home .parallax-lines .line {
  height: 2px;
  width: min(900px, 90%);
  margin: 14px auto;
  background: linear-gradient(90deg, transparent, var(--clay), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transition: transform 1.4s cubic-bezier(.22,1,.36,1), opacity 1.2s ease;
  /* Was rgba(0,255,174,.55) — well above the 0.15-0.2 glow cap for the
     heavier clay accent; capped to .18 rather than a straight color swap. */
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--clay) 18%, transparent);
}

body.home .parallax-lines.in-view .line {
  transform: scaleX(1);
  opacity: 1;
}

body.home .parallax-lines.in-view .line:nth-child(2) { transition-delay: .15s; }
body.home .parallax-lines.in-view .line:nth-child(3) { transition-delay: .30s; }




/* =========================================================
   4) Mission surface (lighter than hero, different from strip)
   ========================================================= */
body.home .mission {
  position: relative; /* anchors the ::before texture below */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  text-align: center;
  /* Was a near-black moss-to-ink-to-clay duotone. --bone base with the
     same clay glow kept, plus a touch of moss so the section still
     reads distinct from the hero above it. */
  background:
    radial-gradient(900px 420px at 50% 10%, color-mix(in srgb, var(--clay) 9%, transparent), transparent 60%),
    color-mix(in srgb, var(--moss) 5%, var(--bone));
  color: var(--text);
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

/* Same micro cross-pattern texture as the hero, recolored for --bone. */
body.home .mission::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b1f16' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

body.home .mission > * {
  position: relative;
  z-index: 1;
}

body.home .mission.ts-section {
  padding-top: clamp(44px, 5vw, 80px);
}

body.home .mission h2 {
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3vw, 40px);
}

body.home .mission p {
  color: var(--ts-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

/* =========================================================
   5) Features strip surface (sky tint, distinct from mission's moss tint)
   ========================================================= */
body.home .strip {
  position: relative; /* anchors the ::before texture below */
  /* Was the same near-black moss-to-ink-to-clay duotone as .mission.
     A --sky tint (instead of .mission's moss tint) keeps this section
     visually distinct while staying on the shared --bone base. */
  background:
    radial-gradient(900px 520px at 50% 0%, color-mix(in srgb, var(--clay) 5%, transparent), transparent 55%),
    color-mix(in srgb, var(--sky) 10%, var(--bone));
  color: var(--ts-ink);

  /* Apple-like “surface edge” */
  border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

/* Same micro cross-pattern texture as the hero, recolored for --bone. */
body.home .strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b1f16' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

body.home .strip > .content-wrapper {
  position: relative;
  z-index: 1;
}



/* Feature cards: was translucent-white "glass" over a dark section;
   now solid white cards on --bone read as raised surfaces instead. */
body.home .feature-card {
  background: var(--ts-card);
  border: 1px solid var(--ts-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11,31,22,.08);
}

body.home .strip .feature-copy h2 {
  letter-spacing: -0.015em;
  color: var(--clay);
}

body.home .strip .feature-copy p {
  color: var(--ts-muted);
}

/* Link contrast */
body.home .strip a.text-link {
  color: var(--text);
  opacity: .85;
}

body.home .strip a.text-link:hover {
  color: var(--clay);
  opacity: 1;
  text-decoration: none;
}

/* Images lift */
body.home .feature-img {
  filter: saturate(1.05) contrast(1.05);
}

/* =========================================================
   6) Scroll reveal (Apple-like)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
  will-change: opacity, transform, filter;
}

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

/* Stagger children slightly */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition: opacity .75s ease, transform .75s ease, filter .75s ease;
}

.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: .00s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
/* =========================================================
   Live reel — thin transitional band (Apple-like)
   ========================================================= */
body.home .live-reel {
  padding: clamp(10px, 1.6vw, 14px) 1rem;

  /* Was the same dark duotone as .mission/.strip, translucent + blurred
     like the navbar. Now a translucent --bone tint so scrolling content
     still shows through, but the band no longer reads as a dark seam
     between two light sections. */
  background: color-mix(in srgb, var(--bone) 80%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);

  border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5);

  position: relative;
  isolation: isolate;

  /* Bug fix: tepuy.css has its own older, unscoped `.live-reel { color:
     white; }` rule (a leftover navy-ticker variant, #1a237e background,
     still used verbatim by nothing else on the site today) that this
     Batch-1 background swap never overrode — nothing here previously set
     `color` at all, so that white text rule kept winning against the new
     light background, making every ticker label unreadable. */
  color: var(--text);
}

/* Ticker item separator border is white in the generic tepuy.css rule
   (invisible on --bone) — same unaddressed-inheritance bug as above. */
body.home .live-reel .ticker-list li {
  border-right-color: color-mix(in srgb, var(--text) 15%, transparent);
}

/* Trend colors (tepuy.css .trend-up/-down/-flat) were tuned for the old
   dark navy ticker background: #4caf50/#f44336/#ff9800 all measure well
   under 4.5:1 on --bone (2.45:1 / 3.25:1 / 1.90:1). Darkened equivalents
   that clear AA while keeping the same green/red/amber meaning. */
body.home .live-reel .trend-up   { color: #166534; }
body.home .live-reel .trend-down { color: #b91c1c; }
body.home .live-reel .trend-flat { color: #92400e; }


/* Subtle specular highlight (premium surface cue) */
body.home .live-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.35),
    transparent 40%
  );
}

/* Same micro cross-pattern texture as the hero, recolored for --bone.
   ::before above is already the specular highlight, so this uses ::after
   instead. */
body.home .live-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b1f16' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body.home .live-reel .ticker {
  position: relative;
  z-index: 1;
}

/* Ticker typography tightening */
body.home .live-reel .ticker {
  line-height: 1.3;
}

body.home .live-reel .ticker-list {
  margin: 0;
  padding: 0;
}

body.home .live-reel .ticker-list li {
  padding: 4px 0;
  font-size: 0.9rem;
}

body.home .live-reel .ticker-list li {
  position: relative;
  padding-right: 28px;
}

body.home .live-reel .ticker-list li:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: 12px;
  color: color-mix(in srgb, var(--text) 35%, transparent);
  font-size: 0.75rem;
}

body.home .live-reel .ticker-list {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

body.home .live-reel .ticker-list li {
  font-size: 0.9rem;
  line-height: 1.3;
  position: relative;
  padding-right: 0;
}

body.home .live-reel .ticker-list li:not(:last-child)::after {
  content: "•";
  margin-left: 16px;
  color: color-mix(in srgb, var(--text) 35%, transparent);
}



