/* ============================================================
   BUILD VENTURES — curated, minimal venture capital
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --ink:       #f3f1ec;
  --ink-dim:   #86868c;
  --ink-faint: #55555b;
  --line:      rgba(243,241,236,0.11);
  --line-soft: rgba(243,241,236,0.06);
  --accent:    #ff5b2e;
  --sans: "Satoshi", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
  --pad: clamp(22px, 6vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
/* content sits above the fixed page-flow gradient */
main, .footer { position: relative; z-index: 1; }

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); width: 100%; }

/* ============================================================
   INTRO ANIMATION (plays once on load, lifts to reveal the site)
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform .9s var(--ease);
}
.intro.done { transform: translateY(-100%); }
.intro-lockup { display: flex; align-items: center; gap: 16px; }
/* warm flow behind the intro */
.intro-flow { position: absolute; inset: 0; z-index: 0; overflow: hidden; filter: blur(90px); opacity: 0.55; }
.intro-flow span { position: absolute; border-radius: 50%; }
.intro-flow span:nth-child(1) { width: 55vw; height: 55vw; left: -12%; top: -16%;
  background: radial-gradient(circle, rgba(255,91,46,0.8), transparent 62%); animation: blobA 19s ease-in-out infinite; }
.intro-flow span:nth-child(2) { width: 48vw; height: 48vw; right: -12%; bottom: -16%;
  background: radial-gradient(circle, rgba(255,150,80,0.62), transparent 62%); animation: blobB 24s ease-in-out infinite; }
.intro-lockup { position: relative; z-index: 1; }

/* "BV" fills with a gooey orange liquid (clipped to the letters), then hands off */
.intro-bv {
  width: clamp(190px, 36vw, 440px); height: auto; display: block; overflow: visible;
  opacity: 0; animation: bvIn .6s var(--ease) .1s forwards;
  filter: drop-shadow(0 0 20px rgba(255,91,46,0.28));
}
@keyframes bvIn { to { opacity: 1; } }
.bv-outline { fill: rgba(243,241,236,0.06); stroke: rgba(243,241,236,0.4); stroke-width: 1; }
.liquid-rise { transform: translateY(165px); animation: rise 5s cubic-bezier(.35,.05,.5,.95) .2s forwards; }
@keyframes rise { to { transform: translateY(-42px); } }
.liquid-slosh { transform-box: view-box; animation: slosh 2.2s ease-in-out infinite; }
@keyframes slosh { 0%,100% { transform: translateX(-11px); } 50% { transform: translateX(11px); } }
.wave, .wave2 { transform-box: view-box; animation: flow 1.3s linear infinite; }
@keyframes flow { to { transform: translateX(160px); } }
.gloss { transform-box: view-box; animation: glossShimmer 2.6s ease-in-out infinite; }
@keyframes glossShimmer { 0%,100% { opacity: .9; } 50% { opacity: .5; } }
.blob { transform-box: fill-box; transform-origin: center; }
.blobA { animation: bob 1.3s ease-in-out infinite; }
.blobB { animation: bob 1.75s ease-in-out .35s infinite; }
@keyframes bob { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(-8px); } }
.bubble { transform-box: fill-box; opacity: 0; }
.bA { animation: bubbleUp 2.4s ease-in .9s infinite; }
.bB { animation: bubbleUp 2.9s ease-in 1.5s infinite; }
.bC { animation: bubbleUp 2.1s ease-in 1.2s infinite; }
.bD { animation: bubbleUp 3.2s ease-in 1.9s infinite; }
@keyframes bubbleUp {
  0% { transform: translateY(28px); opacity: 0; }
  25% { opacity: .35; }
  90% { opacity: .1; }
  100% { transform: translateY(-74px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .liquid-rise { transform: translateY(-42px); animation: none; }
  .wave, .blob, .bubble { animation: none; }
}
/* on exit, the whole lockup rushes forward as the panel lifts away */
.intro.done .intro-lockup {
  transform: scale(1.6); opacity: 0;
  transition: transform .85s var(--ease), opacity .55s ease;
}
@keyframes rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .logo-mark .sq1, .logo-mark .sq2, .logo-mark .sq3, .logo-mark .core { animation: none; }
  .hero-title .ln-i { transform: none; }
  .blob, .intro-flow span { animation: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 15px var(--pad);
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 25px; height: 25px; display: inline-block; transition: transform .45s var(--ease); }
.logo-mark .mark { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 5px rgba(255,105,50,0.45)); }
.mark .sq, .mark .core { transform-box: fill-box; transform-origin: center; }
.logo-mark .sq1 { animation: spinCW 20s linear infinite; }
.logo-mark .sq2 { animation: spinCCW 14s linear infinite; }
.logo-mark .sq3 { animation: spinCW 9s linear infinite; }
.logo-mark .core { animation: corePulse 3.2s ease-in-out infinite; }
@keyframes spinCW { to { transform: rotate(90deg); } }
@keyframes spinCCW { to { transform: rotate(-90deg); } }
@keyframes corePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.7); } }
.logo:hover .logo-mark { transform: scale(1.14) rotate(8deg); }
.logo:hover .logo-mark .sq1 { animation-duration: 5s; }
.logo:hover .logo-mark .sq2 { animation-duration: 3.5s; }
.logo:hover .logo-mark .sq3 { animation-duration: 2.2s; }
.logo-word { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14.5px; color: var(--ink-dim); position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--pad);
  transform: translateY(-100%); transition: transform .55s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: clamp(34px, 9vw, 52px); font-weight: 500; letter-spacing: -0.03em;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 160px 0 90px;
  scroll-snap-align: start;
}
/* ---- slide scroll cue ---- */
.scroll-cue { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); z-index: 3; }
.scroll-cue span {
  display: block; width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-dim); border-bottom: 1.5px solid var(--ink-dim);
  transform: rotate(45deg); animation: cueBounce 1.8s ease-in-out infinite;
}
@keyframes cueBounce {
  0%,100% { transform: rotate(45deg) translate(0,0); opacity: .45; }
  50%     { transform: rotate(45deg) translate(3px,3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }
/* V7-style flowing warm gradient — FIXED behind the whole page for consistency */
.page-flow {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; filter: blur(80px); pointer-events: none;
  /* full-coverage soft warm base so no area is ever pure black — kept subtle/dark */
  background:
    radial-gradient(95% 85% at 10% 0%, rgba(255,91,46,0.15), transparent 72%),
    radial-gradient(90% 80% at 94% 12%, rgba(255,138,72,0.09), transparent 72%),
    radial-gradient(100% 95% at 18% 100%, rgba(255,118,54,0.11), transparent 74%),
    radial-gradient(85% 85% at 100% 96%, rgba(255,100,110,0.07), transparent 72%),
    radial-gradient(150% 130% at 50% 52%, rgba(18,10,6,0.6), transparent 88%);
}
.pf { position: absolute; border-radius: 50%; will-change: transform; }
.pf1 { width: 60vw; height: 60vw; left: -10%; top: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(255,91,46,0.22), rgba(255,91,46,0) 64%);
  animation: blobA 24s ease-in-out infinite; }
.pf2 { width: 54vw; height: 54vw; right: -12%; top: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(255,140,77,0.14), rgba(255,140,77,0) 64%);
  animation: blobB 29s ease-in-out infinite; }
.pf3 { width: 70vw; height: 70vw; left: 4%; bottom: -26%;
  background: radial-gradient(circle at 50% 50%, rgba(255,120,60,0.14), rgba(255,120,60,0) 62%);
  animation: blobC 33s ease-in-out infinite; }
.pf4 { width: 52vw; height: 52vw; right: -8%; bottom: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(255,105,120,0.1), rgba(255,105,120,0) 64%);
  animation: blobA 27s ease-in-out infinite reverse; }
@keyframes blobA { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(12%,9%) scale(1.16); } 66% { transform: translate(-7%,14%) scale(.94); } }
@keyframes blobB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14%,11%) scale(1.22); } }
@keyframes blobC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(10%,-13%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .pf { animation: none; } }
.hero .wrap { position: relative; z-index: 2; }
/* Genius-style centered deck slides */
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-links { justify-content: center; }
.belief .wrap { text-align: center; }
/* Genius-style spotlight: quote is dim, brightens under the cursor */
.belief-text {
  margin-left: auto; margin-right: auto;
  --mx: 50%; --my: 42%;
  background-image: radial-gradient(300px circle at var(--mx) var(--my),
    rgba(243,241,236,1) 0%, rgba(243,241,236,0.9) 16%, rgba(243,241,236,0.3) 64%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  transition: none;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .belief-text { background-image: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
}
/* always-bright, glowing highlighted word */
.belief-text .lit {
  color: #ff5b2e; -webkit-text-fill-color: #ff5b2e;
  text-shadow: 0 0 14px rgba(255,91,46,0.75), 0 0 34px rgba(255,91,46,0.45);
  animation: litGlow 2.8s ease-in-out infinite;
}
@keyframes litGlow {
  0%,100% { text-shadow: 0 0 12px rgba(255,91,46,0.6), 0 0 30px rgba(255,91,46,0.32); }
  50%     { text-shadow: 0 0 22px rgba(255,91,46,0.95), 0 0 50px rgba(255,91,46,0.55); }
}
@media (prefers-reduced-motion: reduce) { .belief-text .lit { animation: none; } }
.hero .wrap::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -25%;
  background: radial-gradient(58% 60% at 32% 48%, rgba(10,10,11,0.45), transparent 72%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 8.6vw, 128px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .ln-i { display: inline-block; transform: translateY(112%); }
.hero-title .accent { color: var(--accent); }
body.intro-done .hero-title .ln:nth-child(1) .ln-i { animation: rise 1.05s var(--ease) 0.05s forwards; }
body.intro-done .hero-title .ln:nth-child(2) .ln-i { animation: rise 1.05s var(--ease) 0.18s forwards; }
body.intro-done .hero-title .ln:nth-child(3) .ln-i { animation: rise 1.05s var(--ease) 0.31s forwards; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub {
  max-width: 600px; font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink); line-height: 1.6; margin-bottom: 44px;
}
.hero-links { display: flex; gap: 30px; flex-wrap: wrap; }

.textlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: border-color .35s var(--ease), color .35s;
}
.textlink span { transition: transform .35s var(--ease); }
.textlink:hover { border-color: var(--ink); }
.textlink:hover span { transform: translateX(5px); }
.textlink.dim { color: var(--ink-dim); }
.textlink.dim:hover { color: var(--ink); }

/* ============================================================
   THESIS
   ============================================================ */
.belief {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 100px;
  scroll-snap-align: start;
}
.belief-label {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 40px;
}
.belief-text {
  font-family: var(--serif);
  font-size: clamp(25px, 3.5vw, 50px); font-weight: 400;
  line-height: 1.24; letter-spacing: -0.01em; max-width: 940px;
}

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles { padding: clamp(30px,6vh,60px) 0 clamp(80px,12vh,140px); }
.principles .wrap { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; }
.principle { border-top: 1px solid var(--line); padding-top: 26px; }
.principle-no { font-size: 13px; color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 60px; }
.principle h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.principle p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; max-width: 34ch; }

/* ============================================================
   PORTFOLIO — logo wall
   ============================================================ */
.companies { padding: clamp(80px,12vh,140px) 0; border-top: 1px solid var(--line-soft); }
.logo-wall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: 960px; margin-top: 20px;
}
.logo-item .phrasso-logo { max-width: 100%; max-height: 34px; width: auto; }
.logo-item {
  display: flex; align-items: center; justify-content: center;
  min-height: 140px; padding: 20px; color: var(--ink);
  opacity: 0.9; transition: opacity .35s var(--ease);
}
.logo-item:hover { opacity: 1; }
.logo-item img { max-width: 80%; max-height: 66px; object-fit: contain; }
.logo-item img.missing { display: none; }
.logo-item img.missing + .logo-svg { display: inline-flex; }
.logo-item img:not(.missing) + .logo-svg { display: none; }
.logo-svg { display: inline-flex; align-items: center; gap: 12px; }
/* OuterJoyn */
.oj-mark { width: 42px; height: 42px; }
.oj-word { font-size: 27px; font-weight: 700; letter-spacing: 0.02em; }
/* Nexor */
.logo-svg.nexor { gap: 3px; }
.nx-word { font-size: 34px; font-weight: 500; letter-spacing: -0.01em; }
.nx-word sup { font-size: 11px; }
.nx-wave { width: 50px; height: 30px; margin: 0 2px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { padding: clamp(80px,12vh,140px) 0; border-top: 1px solid var(--line-soft); }
.partner-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px;
  max-width: 860px; margin-top: 20px;
}
.partner-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(150deg, #b8a494, #8f7d6e);
}
.partner-photo::after {
  content: attr(data-initials);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(48px, 7vw, 84px); font-weight: 600; letter-spacing: -0.03em;
  color: rgba(255,255,255,0.82);
}
.partner-photo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  display: block;
}
.partner-photo img.missing { display: none; }
.partner-info { margin-top: 20px; }
.partner-info h3 { font-size: clamp(20px,2vw,26px); font-weight: 600; letter-spacing: -0.02em; }
.partner-role { color: var(--ink-dim); font-size: 15px; margin-top: 4px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(90px,14vh,170px) 0; border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 96px); align-items: start; }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(38px,5vw,72px); font-weight: 500; letter-spacing: -0.015em;
  line-height: 1.02; margin: 10px 0 22px;
}
.contact-sub { color: var(--ink-dim); font-size: clamp(16px,1.6vw,19px); max-width: 420px; }
.contact-direct { color: var(--ink-dim); font-size: 15px; line-height: 1.95; margin-top: 40px; }
.contact-direct a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact-direct a:hover { border-color: var(--ink); }

/* Inquiry form — elevated card so it stands out from the page */
.inquiry {
  display: flex; flex-direction: column; gap: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(243,241,236,0.12);
  border-radius: 22px;
  padding: clamp(24px, 2.6vw, 38px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field textarea {
  background: rgba(0,0,0,0.28); border: 1px solid rgba(243,241,236,0.14); border-radius: 11px;
  padding: 15px 16px; color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:hover, .field textarea:hover { border-color: rgba(243,241,236,0.26); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(255,91,46,0.15);
}
.field textarea { resize: vertical; min-height: 118px; }
.field.invalid input, .field.invalid textarea { border-color: #ff7a5c; }
.inquiry-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; border: none; border-radius: 100px;
  padding: 16px 30px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 26px rgba(255,91,46,0.28);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.inquiry-btn:hover { background: #ff7038; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,91,46,0.4); }
.inquiry-btn span { transition: transform .35s var(--ease); }
.inquiry-btn:hover span { transform: translateX(4px); }
.inquiry-note { font-size: 14px; color: var(--ink-dim); min-height: 1.2em; margin-top: -4px; }
.inquiry-note.error { color: #ff7a5c; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 40px 0; border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-dim); font-size: 14.5px; transition: color .3s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-faint); font-size: 14px; }

/* ============================================================
   Reveal (single gentle fade-up)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav-burger span { width: 25px; height: 2px; background: var(--ink); transition: transform .4s var(--ease); }
  .nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .principles .wrap { grid-template-columns: 1fr; gap: 0; }
  .principle { padding: 26px 0; }
  .principle-no { margin-bottom: 22px; }
  .partner-grid { gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 520px) {
  .logo-wall { grid-template-columns: 1fr; gap: 30px; }
  .hero-links { gap: 20px; }
  .field-row { grid-template-columns: 1fr; }
}
