/* =========================================================================
   Ember Venture Group · parent company site stylesheet
   Shared design language with Anominal AI, refined for institutional positioning.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0A0E1A;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --bg-primary:    #0A0E1A;
  --bg-secondary:  #0F1424;
  --bg-elevated:   rgba(255, 255, 255, 0.04);
  --bg-footer:     #06090F;

  --text-primary:   rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary:  rgba(255, 255, 255, 0.55);
  --text-quiet:     rgba(255, 255, 255, 0.38);

  --accent:        #F0997B;
  --accent-dark:   #4A1B0C;
  --accent-tint:   rgba(240, 153, 123, 0.08);
  --accent-line:   rgba(240, 153, 123, 0.25);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid:    rgba(255, 255, 255, 0.15);

  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1040px;
  --gutter-mobile: 1.5rem;
  --gutter-desktop: 2.5rem;
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.375rem, 2vw + 0.75rem, 2rem); }
h3 { font-size: clamp(1.125rem, 0.75vw + 0.875rem, 1.25rem); }
p  { color: var(--text-secondary); }

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

em { font-style: italic; color: var(--text-tertiary); }
strong { font-weight: 500; color: var(--text-primary); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 768px) { .container { padding: 0 var(--gutter-desktop); } }

.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
.section-divider { border-top: 0.5px solid var(--border-subtle); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--border-subtle);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--gutter-mobile);
  max-width: var(--max-width); margin: 0 auto;
}
@media (min-width: 768px) { .nav-inner { padding: 1.125rem var(--gutter-desktop); } }
.nav-brand {
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-primary);
  display: inline-flex; align-items: center; gap: 0.625rem;
}
.nav-brand-logo {
  width: 24px; height: 24px;
  object-fit: contain;
  display: block;
}
.nav-links { display: flex; gap: 1.5rem; font-size: 0.8125rem; color: var(--text-tertiary); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }
  .nav-links { gap: 1.125rem; }
}

/* Hero */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 8rem 0 6rem; } }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.35; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow { margin-bottom: 1.25rem; display: block; }
.hero h1 { color: #FFFFFF; margin-bottom: 1.5rem; }
.hero-sub {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1875rem);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

/* Thesis section */
.thesis-content { max-width: 820px; }
.thesis-content p {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.thesis-content p:last-child { margin-bottom: 0; }

/* Ventures */
.ventures-grid {
  display: grid; gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .ventures-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.venture-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.venture-card.active:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.venture-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}
.venture-status::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.venture-status.pipeline { color: var(--text-tertiary); }
.venture-status.pipeline::before { background: var(--text-quiet); }
.venture-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}
.venture-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}
.venture-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.venture-link:hover { text-decoration: underline; }

/* Leadership */
.leadership-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 980px;
}
@media (min-width: 768px) {
  .leadership-layout {
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
  }
}
.leadership-bios {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.leader { display: flex; flex-direction: column; gap: 1rem; }
.leader-portrait {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-tint);
  border: 0.5px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 500; font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.leader-name {
  font-size: 1.0625rem; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.leader-role {
  color: var(--accent);
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.leader-bio {
  font-size: 0.9375rem; line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

/* Entity facts */
.entity-facts {
  display: grid; gap: 0.75rem;
  max-width: 640px;
  margin-top: 2rem;
}
.fact-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 0.5px solid var(--border-subtle);
  font-size: 0.9375rem;
}
.fact-key {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fact-val { color: var(--text-primary); }
@media (max-width: 600px) {
  .fact-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Contact */
.contact-block {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  max-width: 640px;
}
.contact-block p { font-size: 0.9375rem; margin-bottom: 1rem; }
.contact-block a {
  color: var(--accent);
  font-weight: 500;
  transition: text-decoration 0.15s ease;
}
.contact-block a:hover { text-decoration: underline; }
.contact-emails {
  display: grid; gap: 0.75rem;
  margin-top: 1rem;
}
.contact-email {
  display: flex; flex-direction: column; gap: 0.125rem;
}
.contact-email-label {
  font-size: 0.75rem; color: var(--text-tertiary);
  letter-spacing: 0.02em; text-transform: uppercase;
  font-weight: 500;
}
.contact-email-address {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--bg-footer);
  border-top: 0.5px solid var(--border-subtle);
  padding: 2rem 0;
  color: var(--text-quiet);
  font-size: 0.75rem;
  line-height: 1.7;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-quiet); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text-tertiary); }

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Leadership photo (left column, alongside stacked bios) ---------- */
.leadership-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
@media (min-width: 768px) {
  .leadership-photo { position: sticky; top: 5rem; }
}
.leadership-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Anominal AI feature (single operating company, hero-adjacent) ---------- */
.anominal-feature {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 0.5px solid var(--accent-line);
  border-radius: var(--radius-lg);
  max-width: 760px;
}
@media (min-width: 768px) {
  .anominal-feature { padding: 3rem; gap: 1.5rem; }
}
.anominal-feature .venture-status { align-self: flex-start; }
.anominal-feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.anominal-feature-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.anominal-feature h2 {
  font-size: clamp(1.625rem, 1.5vw + 1rem, 2.25rem);
  margin: 0;
  line-height: 1.1;
}
.anominal-feature-desc {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}
.anominal-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.anominal-feature-link:hover {
  background: #5F0484;
  color: #FFFFFF;
  border-color: #E00081;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 0, 129, 0.25);
}
.anominal-feature-link:focus-visible {
  outline: 2px solid #E00081;
  outline-offset: 3px;
}

/* ---------- Anominal logo in venture card ---------- */
.venture-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Hide the separate portrait since photo replaces initials ---------- */
.leader-portrait-hidden { display: none; }
