/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 24px) 0 clamp(150px, 26svh, 240px);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { position: relative; text-align: center; }
.hero-title { margin-inline: auto; max-width: 12ch; position: relative; }
.hero-title::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(90, 110, 255, 0.22), transparent);
}
.hero-title .line-mask:nth-child(1) > span { --d: 0.15s; }
.hero-title .line-mask:nth-child(2) > span { --d: 0.32s; padding-right: 0.06em; }
.hero .eyebrow.rise { --d: 0.05s; }
.hero-lead {
  margin: 28px auto 0;
  max-width: 34ch;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--text-2);
  --d: 0.6s;
}
.hero-cta { margin-top: 40px; --d: 0.78s; }
.hero-cta .btn { min-width: 200px; }

/* ---- Cinematic sky: stars, aurora, rising planet ---- */
.hero { background: radial-gradient(140% 90% at 50% 0%, #0b1030 0%, #060a1d 45%, #03050d 100%); }
.hero::after {
  /* fade into page */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 0;
  pointer-events: none;
}
.hero-inner { z-index: 2; }
.hero .scroll-cue { z-index: 3; }
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}
.a1 {
  width: 90vmax; height: 50vmax; left: -30vmax; top: -18vmax;
  background: radial-gradient(closest-side, rgba(88, 101, 242, 0.42), transparent);
  animation: aur1 22s ease-in-out infinite alternate;
}
.a2 {
  width: 80vmax; height: 46vmax; right: -30vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.22), transparent);
  animation: aur2 26s ease-in-out infinite alternate;
}
.a3 {
  width: 70vmax; height: 40vmax; left: 15vmax; top: 8vmax;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.18), transparent);
  animation: aur1 30s ease-in-out infinite alternate-reverse;
}
@keyframes aur1 { to { transform: translate(10vmax, 6vmax) scale(1.15); } }
@keyframes aur2 { to { transform: translate(-12vmax, 8vmax) scale(1.1); } }

.globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.sunrise {
  position: absolute;
  left: var(--sun-x, 50%);
  top: var(--sun-y, 70%);
  width: 70vmax;
  height: 24vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 250, 235, 1) 0%, rgba(255, 220, 150, 0.8) 12%, rgba(255, 170, 70, 0.4) 32%, rgba(228, 87, 46, 0.12) 60%, transparent 100%);
  mix-blend-mode: screen;
  animation: breathe 7s ease-in-out infinite alternate;
}
.sunrise::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 160vmax; height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 220, 170, 0) 15%, rgba(255, 236, 205, 0.85) 50%, rgba(255, 220, 170, 0) 85%, transparent);
}
.sunrise::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10vmax; height: 10vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 240, 210, 0.4) 40%, transparent);
}
@keyframes breathe { from { opacity: 0.85; transform: translate(-50%, -50%) scale(0.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }

.shine {
  background: linear-gradient(100deg, #ffd27a 0%, #fff4dc 22%, #f4a623 44%, #ffe6b0 60%, #e4572e 82%, #ffd27a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: line-up 1.2s var(--ease) forwards, shine 7s linear 1.4s infinite;
  padding-right: 0.06em;
}
@keyframes shine { to { background-position: -220% 0; } }
.hero-title { font-size: clamp(3.1rem, 13vw, 6.6rem); }
.hero .eyebrow { color: #ffd9a0; }


.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%);
  width: 30px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  display: flex;
  justify-content: center;
  padding-top: 9px;
}
.scroll-cue span {
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: var(--gold);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ventures ---------- */
.ventures { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }

/* Kinetic type band */
.kinetic { display: grid; gap: 4px; margin-bottom: clamp(48px, 7vw, 96px); }
.k-row { overflow: hidden; white-space: nowrap; }
.k-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding-right: clamp(18px, 3vw, 40px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: k-left 38s linear infinite;
}
.k-row .k-track { min-width: max-content; }
.k-solid .k-track span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.k-outline .k-track { animation-name: k-right; animation-duration: 46s; font-style: italic; }
.k-outline .k-track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28); }
.k-track i { font-style: normal; font-size: 0.45em; color: var(--gold); }
@keyframes k-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes k-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.venture-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }

/* Portal cards: orbiting light border */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.portal {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  padding: 1px;
  background: conic-gradient(from var(--ang), rgba(255, 255, 255, 0.06) 0deg, rgba(255, 255, 255, 0.06) 250deg, rgba(255, 210, 122, 0.9) 300deg, rgba(228, 87, 46, 0.9) 330deg, rgba(255, 255, 255, 0.06) 360deg);
  animation: orbit 6s linear infinite;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  transition: translate 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.venture-tech.portal { animation-delay: -3s; }
@keyframes orbit { to { --ang: 360deg; } }
.portal::before {
  /* inner surface */
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--r-xl) - 1px);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(244, 166, 35, 0.14), transparent 55%),
    linear-gradient(180deg, #0d1528, #070c18);
}
.venture-tech.portal::before {
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(110, 130, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #0c1430, #070c18);
}
.portal:hover { translate: 0 -6px; box-shadow: 0 50px 120px -40px rgba(244, 166, 35, 0.35); }
.ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.2em;
  z-index: -1;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

/* Visual stage */
.v-visual {
  position: relative;
  margin: clamp(14px, 2vw, 20px);
  margin-bottom: 0;
  height: clamp(220px, 26vw, 300px);
  border-radius: calc(var(--r-xl) - 12px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25));
}
.v-emoji {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  font-size: 22px;
  background: rgba(5, 9, 17, 0.6);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.v-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3.4vw, 40px); }
.v-body .eyebrow { margin-bottom: 12px; }
.v-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; margin-bottom: 14px; }
.v-body p { max-width: 52ch; font-size: 1.04rem; }
.venture-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }
.venture-actions .btn { white-space: normal; text-align: center; line-height: 1.25; }

/* Money visual */
.money-visual { background-color: rgba(244, 166, 35, 0.03); }
.mv-chart { position: absolute; left: 4%; right: 4%; bottom: 0; width: 92%; height: 78%; }
.mv-bars rect { transform-box: fill-box; transform-origin: 50% 100%; }
.mv-line { filter: drop-shadow(0 0 6px rgba(255, 210, 122, 0.8)); }
.mv-dot { filter: drop-shadow(0 0 8px #ffd27a); }
.mv-logo {
  position: absolute;
  left: 18px; top: 18px;
  z-index: 2;
  width: clamp(84px, 9vw, 116px);
  padding: 4px;
  border-radius: 22px;
  background: var(--grad);
  box-shadow: 0 20px 50px -18px rgba(244, 166, 35, 0.8);
  transform: rotate(-5deg);
  animation: logo-float 7s ease-in-out infinite;
}
.mv-logo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
@keyframes logo-float { 50% { transform: rotate(-2deg) translateY(-8px); } }
.spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff4dc;
  box-shadow: 0 0 12px 3px rgba(255, 210, 122, 0.8);
  opacity: 0;
  animation: sparkle 3.6s ease-in-out infinite;
}
.s1 { left: 62%; top: 22%; }
.s2 { left: 80%; top: 46%; animation-delay: 1.2s; }
.s3 { left: 44%; top: 38%; animation-delay: 2.4s; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }

/* Tech visual */
.tech-visual { background-color: rgba(76, 100, 240, 0.04); }
.mini-globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-labels {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  background: rgba(5, 9, 17, 0.65);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tv-line { width: 34px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Proceeds band */
.proceeds-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(22px, 3.4vw, 34px) clamp(20px, 4vw, 48px);
  border-radius: 999px;
  border: 1px solid rgba(244, 166, 35, 0.35);
  background: linear-gradient(90deg, rgba(244, 166, 35, 0.08), rgba(228, 87, 46, 0.12), rgba(244, 166, 35, 0.08));
  text-align: center;
}
.proceeds-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 205, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 5s var(--ease) infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.pb-heart {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.6);
  animation: heartbeat 1.8s ease-in-out infinite;
}
.pb-heart svg { width: 22px; height: 22px; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.5); }
  15% { transform: scale(1.14); }
  30% { transform: scale(1); box-shadow: 0 0 0 14px rgba(228, 87, 46, 0); }
  45% { transform: scale(1.1); }
}
.pb-text { font-size: clamp(1.15rem, 2.6vw, 1.8rem); font-weight: 650; line-height: 1.3; }
.pb-text a { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; border-bottom: 1px solid rgba(244, 166, 35, 0.6); }

/* Reveal choreography inside cards */
@media (prefers-reduced-motion: no-preference) {
  .js .venture:not(.in) .mv-bars rect { transform: scaleY(0); }
  .js .venture .mv-bars rect { transition: transform 1.2s var(--ease); }
  .js .venture.in .mv-bars rect:nth-child(1) { transition-delay: 0.2s; }
  .js .venture.in .mv-bars rect:nth-child(2) { transition-delay: 0.3s; }
  .js .venture.in .mv-bars rect:nth-child(3) { transition-delay: 0.4s; }
  .js .venture.in .mv-bars rect:nth-child(4) { transition-delay: 0.5s; }
  .js .venture.in .mv-bars rect:nth-child(5) { transition-delay: 0.6s; }
  .js .venture.in .mv-bars rect:nth-child(6) { transition-delay: 0.7s; }
  .js .venture.in .mv-bars rect:nth-child(7) { transition-delay: 0.8s; }
  .js .mv-line { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2s var(--ease) 0.9s; }
  .js .venture.in .mv-line { stroke-dashoffset: 0; }
  .js .mv-dot { opacity: 0; transition: opacity 0.6s 2.6s; }
  .js .venture.in .mv-dot { opacity: 1; animation: dot-pulse 2s ease-in-out 3s infinite; }
  @keyframes dot-pulse { 50% { r: 9; } }
}
@media (prefers-reduced-motion: reduce) {
  .portal { animation: none; }
  .k-track { animation: none; }
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 30%, transparent);
}
.contact-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
.info-list { display: grid; gap: 12px; }
.info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
a.info-item:hover { border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.06); transform: translateX(4px); }
.info-ico {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--gold-2);
}
.info-ico svg { width: 22px; height: 22px; }
.info-item small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.info-item strong { display: block; font-weight: 600; font-size: 1.04rem; line-height: 1.45; word-break: break-word; }
.form-card {
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

/* ---------- Newsletter ---------- */
.nl-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(44px, 7vw, 88px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(160deg, rgba(244, 166, 35, 0.12), rgba(10, 19, 36, 0.6) 45%, rgba(228, 87, 46, 0.12));
}
.nl-card .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.nl-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 166, 35, 0.3), transparent 68%);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 900px) {
  .venture-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .contact-intro { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 380px) {
  .hero-cta .btn { min-width: 0; width: 100%; }
}

/* ==========================================================================
   Cinematic opening sequence (≈2s, non-blocking, motion-safe)
   ========================================================================== */
.letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  z-index: 4;
  background: #000;
  pointer-events: none;
}
.lb-top { top: 0; }
.lb-bottom { bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js .letterbox { animation: lb-open 1.5s cubic-bezier(0.77, 0, 0.18, 1) 0.15s backwards; }
  @keyframes lb-open { 0% { height: 50%; } 55% { height: 9%; } 100% { height: 0; } }

  .js .sky { animation: dolly 3.2s cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: 50% 80%; }
  @keyframes dolly { from { transform: scale(1.18); filter: brightness(0.4) saturate(1.3); } to { transform: none; filter: none; } }

  .js .sunrise { animation: flare 2.6s var(--ease) 0.5s both, breathe 7s ease-in-out 3.1s infinite alternate; }
  @keyframes flare {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    45% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
    100% { opacity: 0.92; transform: translate(-50%, -50%) scale(1); }
  }

  .js .hero-title .line-mask > span { animation: line-up 1.2s var(--ease) forwards, focus-pull 1.6s var(--ease) forwards; animation-delay: var(--d, 0s), var(--d, 0s); }
  .js .hero-title .shine { animation: line-up 1.2s var(--ease) forwards, focus-pull 1.6s var(--ease) forwards, shine 7s linear 2.6s infinite; animation-delay: var(--d, 0s), var(--d, 0s), 2.6s; }
  @keyframes focus-pull { from { filter: blur(14px); letter-spacing: 0.06em; } to { filter: blur(0); letter-spacing: -0.02em; } }

  .js .hero-title .line-mask:nth-child(1) > span { --d: 0.7s; }
  .js .hero-title .line-mask:nth-child(2) > span { --d: 0.9s; }
  .js .hero .eyebrow.rise { --d: 0.6s; }
  .js .hero-lead { --d: 1.25s; }
  .js .hero-cta { --d: 1.4s; }

}

/* ---------- Globe composition: desktop split layout ---------- */
.sunrise { width: 46vmax; height: 18vmax; }
.sunrise::before { width: 70vmax; }
@media (min-width: 1024px) {
  .hero { place-items: center start; padding-bottom: 80px; }
  .hero-inner { text-align: left; }
  .hero-inner > * { max-width: 600px; margin-left: 0; }
  .hero-title { margin-inline: 0; font-size: clamp(3.6rem, 6.4vw, 6.4rem); }
  .hero-title::before { inset: -20% -20% -20% -30%; }
  .hero-lead { margin-left: 0; }
  .hero .row.center { justify-content: flex-start; }
  .hero .eyebrow::after { display: none; }
  .scroll-cue { left: max(calc((100vw - var(--wrap)) / 2 + 32px), 32px); transform: none; }
}
@media (max-width: 1023px) {
  .hero { padding-bottom: clamp(240px, 42svh, 380px); place-items: start center; }
  .scroll-cue { display: none; }
}
@media (max-width: 639px) {
  .proceeds-band { border-radius: 28px; flex-direction: column; gap: 12px; }
}

/* ---------- Manifesto (scroll-scrubbed) ---------- */
.manifesto {
  position: relative;
  padding: clamp(96px, 16vw, 200px) 0 clamp(40px, 6vw, 80px);
  text-align: center;
}
.manifesto::before {
  content: "";
  position: absolute;
  left: 50%; top: 40%;
  width: min(900px, 90vw); height: 360px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(244, 166, 35, 0.12), transparent);
  pointer-events: none;
}
.manifesto-text {
  position: relative;
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
}
.manifesto-sub {
  position: relative;
  max-width: 34ch;
  margin: clamp(24px, 4vw, 40px) auto 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--gold-2);
}
.manifesto .scrub .sw.lit { text-shadow: 0 0 40px rgba(244, 166, 35, 0.25); }
