/* =====================================================
   RAUMED — HOME v2 (loaded only on index.html)
   Editorial light theme · big type · motion layer
   ===================================================== */

:root {
  --serif: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { overflow-x: clip; }

.home section { padding: 120px 0; }
.home section.tight { padding: 72px 0; }

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff4d6a);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 300;
  pointer-events: none;
}

/* ---------- Nav polish ---------- */
.home .nav { transition: box-shadow 0.3s ease; }
.home .nav.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.07); }

/* ---------- HERO ---------- */
.home .hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 80px 0 110px;
  position: relative;
}
.home .hero > .container { position: relative; z-index: 2; width: 100%; }

#heroNet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% 8%, rgba(200,16,46,0.06), transparent 65%),
    radial-gradient(700px 520px at 88% 90%, rgba(200,16,46,0.05), transparent 60%),
    radial-gradient(rgba(10,10,10,0.05) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

.home .hero-grid {
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
}

.home .eyebrow { margin-bottom: 26px; }

.home .h-display {
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.home .h-display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.home .h2 em,
.home .cta-band h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.home .lead { font-size: 20px; }

.home .hero-meta { gap: 44px; }
.home .meta-item .num { font-size: 38px; font-weight: 800; }

/* Pill buttons */
.home .btn {
  border-radius: 999px;
  padding: 15px 26px;
  transition: all 0.25s var(--ease-out);
}
.home .btn-red { box-shadow: 0 10px 24px rgba(200,16,46,0.28); }
.home .btn-red:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200,16,46,0.36); }
.home .btn-ghost:hover { transform: translateY(-2px); }

/* Hero art / video panel */
.hero-art-wrap { position: relative; will-change: transform; }
.home .hero-art {
  aspect-ratio: 4/5;
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.22);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Floating glass chips over the video */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  color: var(--ink);
  animation: chipFloat 6s ease-in-out infinite;
}
.chip .chip-v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.chip .chip-v em { font-style: normal; color: var(--red); }
.chip .chip-l { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.chip-1 { top: 26px; left: -34px; }
.chip-2 { bottom: 76px; right: -28px; animation-delay: 1.6s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--red), transparent);
  animation: cueDrop 1.8s var(--ease-out) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Hero load-in animation ---------- */
.js .a-up {
  opacity: 0;
  transform: translateY(34px);
  animation: aUp 1.1s var(--ease-out) forwards;
}
.js .a-up.d1 { animation-delay: 0.08s; }
.js .a-up.d2 { animation-delay: 0.18s; }
.js .a-up.d3 { animation-delay: 0.28s; }
.js .a-up.d4 { animation-delay: 0.38s; }
@keyframes aUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Section headers (bigger) ---------- */
.home .section-head { margin-bottom: 64px; }
.home .h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.home .section-intro { font-size: 18px; }

/* ---------- Giant scrolling text band ---------- */
.txt-marquee {
  padding: 84px 0 !important;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.tm-row {
  white-space: nowrap;
  line-height: 1.06;
}
.tm-track {
  display: inline-flex;
  align-items: baseline;
  gap: 48px;
  will-change: transform;
  font-size: clamp(56px, 8.5vw, 120px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.tm-track .tm-o {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10,10,10,0.22);
}
.tm-track .tm-s {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.tm-track .tm-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  align-self: center;
  flex: 0 0 auto;
}
.tm-row + .tm-row { margin-top: 8px; }

/* ---------- Focus areas: dark sweep hover ---------- */
.home .area {
  overflow: hidden;
  min-height: 220px;
  cursor: default;
}
.home .area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.home .area:hover::before { transform: translateY(0); }
.home .area > * { position: relative; z-index: 1; }
.home .area .area-num,
.home .area .area-title,
.home .area .area-desc { transition: color 0.35s ease; }
.home .area:hover .area-num { color: var(--red); }
.home .area:hover .area-title { color: #fff; }
.home .area:hover .area-desc { color: rgba(255,255,255,0.65); }
.home .area.area-dark::before { background: var(--red); }
.home .area.area-dark:hover .area-num { color: #fff; }

/* ---------- Cards: tilt + lift ---------- */
.home .card {
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transform-style: preserve-3d;
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.home .card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.home .card:hover {
  border-color: var(--line);
  box-shadow: 0 30px 60px rgba(0,0,0,0.10);
}
.home .card:hover::after { transform: scaleX(1); }

/* ---------- Features ---------- */
.home .feature {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 0 0 14px 14px;
  padding: 26px 24px 28px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.home .feature.red { border-top-color: var(--red); }
.home .feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

/* ---------- Stats band ---------- */
.home .stats-band {
  position: relative;
  overflow: hidden;
}
.home .stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 380px at 85% 15%, rgba(200,16,46,0.22), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 44px);
  pointer-events: none;
}
.home .stats-band .container { position: relative; }
.home .stats-band .stats,
.home .stats-band .stat { border-color: rgba(255,255,255,0.14); }
.home .stats-band .stat .v { color: #fff; font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; }
.home .stats-band .stat .l { color: rgba(255,255,255,0.6); }
.home .stats-band .eyebrow { color: var(--red); }

/* ---------- CTA band ---------- */
.home .cta-band {
  border-radius: 24px;
  padding: 72px;
}
.home .cta-band::before {
  right: -140px; top: -140px;
  width: 420px; height: 420px;
  opacity: 0.25;
  filter: blur(40px);
  animation: ctaGlow 7s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { transform: scale(1) translate(0,0); opacity: 0.22; }
  50% { transform: scale(1.25) translate(-30px, 30px); opacity: 0.34; }
}
.home .cta-band h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; }

/* ---------- Partners band ---------- */
.home .partners { padding: 52px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chip-1 { left: 10px; }
  .chip-2 { right: 10px; }
}
@media (max-width: 1000px) {
  .home .hero { min-height: 0; padding: 72px 0 90px; }
  .home .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .home .hero-art { aspect-ratio: 16/10; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .home section { padding: 76px 0; }
  .home .h-display { font-size: clamp(40px, 11vw, 56px); }
  .txt-marquee { padding: 56px 0 !important; }
  .home .cta-band { padding: 44px 28px; }
  .chip { padding: 9px 12px; }
  .chip .chip-v { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .a-up { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .chip, .scroll-cue::after, .home .cta-band::before { animation: none; }
  .progress-bar { display: none; }
}

/* ============================================================
   HOME — repositioning tweaks (2026)
   ============================================================ */
.home .exp-band { padding: 56px 0; }
.home .paths-band { padding: 96px 0 0; }
.home .problem-band { padding: 120px 0; }
.home .layer:hover { background: var(--bg-alt); }
.home .flow-node { transition: transform 0.25s ease; }
.home .flow-node:hover { transform: translateY(-2px); }
.home .equation { box-shadow: 0 18px 44px rgba(0,0,0,0.05); }
.home .founder-result { box-shadow: 0 20px 50px rgba(0,0,0,0.16); }
.home .cta-bridge h2 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -0.035em; line-height: 1.03; }

@media (max-width: 1000px) {
  .home .paths-band { padding-top: 76px; }
  .home .problem-band { padding: 88px 0; }
}
@media (max-width: 640px) {
  .home .exp-band { padding: 44px 0; }
}

@media (max-width: 640px) {
  /* keep hero chips off the video caption */
  .chip-2 { bottom: auto; top: 104px; right: 10px; }
}
