/* ==========================================================================
   E2 Partners LLC — Minimal white editorial
   ========================================================================== */

:root {
  --bg: #f5f4f1;
  --bg-white: #fff;
  --text: #1a1a1a;
  --text-muted: #7a7670;
  --text-dim: #b5b0a9;
  --border: #e5e3de;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --space-4xl: 8rem;
  --max-width: 52rem;
  --header-height: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-xl);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header.is-scrolled {
  background: rgba(245, 244, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Home page header over video: white text */
.page-home .header .logo,
.page-home .header .nav-link {
  color: rgba(255,255,255,0.8);
  transition: color 0.4s ease;
}
.page-home .header .nav-link:hover,
.page-home .header .nav-link.is-active {
  color: #fff;
}
.page-home .header.is-scrolled .logo,
.page-home .header.is-scrolled .nav-link {
  color: var(--text-muted);
}
.page-home .header.is-scrolled .nav-link.is-active,
.page-home .header.is-scrolled .logo {
  color: var(--text);
}

.logo {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.6; }

.nav { display: flex; align-items: center; gap: var(--space-xl); }

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--text); }

/* ==========================================================================
   Home — Full-screen background video
   ========================================================================== */

.hero-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 115%; min-height: 115%;
  width: auto; height: auto;
  transform: translate(-50%, -50%) scale(0.88);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
}

.hero-video-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-line {
  display: block;
}

/* Home footer over video */
.footer--home {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  z-index: 2;
}
.footer--home .footer-legal {
  color: rgba(255,255,255,0.35);
}
.footer--home .footer-legal:hover {
  color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Ventures — Compact card grid with collapsible detail
   ========================================================================== */

.page-ventures {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-ventures main {
  flex: 1;
}

.ventures-page {
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
}

.ventures-about {
  margin: 0 0 var(--space-lg);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ventures-grid-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 36rem) {
  .ventures-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

.v-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-sm) var(--space-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.v-card:hover {
  border-color: var(--text-dim);
}

.v-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.v-card-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.v-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-badge--soon {
  color: var(--text-dim);
  border-color: var(--text-dim);
}

.v-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-card--soon .v-name {
  color: var(--text-dim);
  font-weight: 500;
}

.v-placeholder {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Toggle (+/−) */
.v-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.v-toggle:hover {
  border-color: var(--text-muted);
  background: var(--bg);
}

.v-toggle-icon {
  position: relative;
  width: 8px;
  height: 8px;
}

.v-toggle-icon::before,
.v-toggle-icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.v-toggle-icon::before {
  top: 50%; left: 0;
  width: 8px; height: 1px;
  transform: translateY(-50%);
}

.v-toggle-icon::after {
  top: 0; left: 50%;
  width: 1px; height: 8px;
  transform: translateX(-50%);
}

.v-toggle[aria-expanded="true"] .v-toggle-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.v-card--soon .v-toggle-icon::before,
.v-card--soon .v-toggle-icon::after {
  background: var(--text-dim);
}

/* Collapsible detail */
.v-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
}

.v-detail.is-open {
  max-height: 12rem;
  opacity: 1;
  padding-top: var(--space-sm);
}

.v-detail p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact — Ultra-minimal (Imaginary style, no brand name)
   ========================================================================== */

.page-contact { background: var(--bg); }

.contact-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.contact-center {
  max-width: 24rem;
}

.contact-label {
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-email {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-dim);
  transition: text-decoration-color 0.3s ease;
}

.contact-email:hover {
  text-decoration-color: var(--text);
}

.header--contact .logo,
.header--contact .nav-link { color: var(--text-muted); }
.header--contact .nav-link.is-active { color: var(--text); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0.5rem var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.footer-copy { margin: 0; }

.footer-legal { color: var(--text-dim); transition: color 0.3s ease; }
.footer-legal:hover { color: var(--text); }

/* ==========================================================================
   Utility & reduced motion
   ========================================================================== */

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
