/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --linen: #F5F1EB;
  --linen-dark: #EDE8DF;
  --ink: #181714;
  --ink-soft: #3D3A35;
  --sage: #4A5C4A;
  --sage-light: #7A9478;
  --sand: #C4B49A;
  --sand-light: #DDD0BB;
  --forest: #1F2D1F;
  --white: #FDFCFA;
  --alert: #8B4513;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--linen);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Flash Messages ──────────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}
.flash {
  padding: 0.875rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  animation: flash-in 0.3s ease;
}
.flash--success { background: #e8ede8; color: var(--sage); border-left: 3px solid var(--sage); }
.flash--error   { background: #f8e8e0; color: var(--alert); border-left: 3px solid var(--alert); }
.flash--warning { background: #fdf3e3; color: #7a5000; border-left: 3px solid var(--sand); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Navigation Dots ─────────────────────────────────────────────────────── */
.nav-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253, 252, 250, 0.3);
  border: 1px solid rgba(253, 252, 250, 0.5);
  display: block;
  transition: background 0.25s, transform 0.25s;
  text-indent: -9999px;
  overflow: hidden;
}
.nav-dot:hover,
.nav-dot.active {
  background: rgba(253, 252, 250, 0.9);
  transform: scale(1.3);
}
/* Invert dots on light sections */
.section-thesis .nav-dots .nav-dot,
.section-team .nav-dots .nav-dot,
.section-platform .nav-dots .nav-dot { background: rgba(24,23,20,0.25); border-color: rgba(24,23,20,0.3); }

/* ─── Sections — shared ───────────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

/* ─── Section 1: Hero ─────────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  background: var(--forest);
  background: radial-gradient(ellipse at 30% 40%, #2a3d2a 0%, var(--forest) 50%, var(--ink) 100%);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.noise-filter { position: absolute; width: 0; height: 0; }

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 2.5rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(253, 252, 250, 0.65);
  max-width: 560px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

.hero-chevron {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 252, 250, 0.4);
  text-decoration: none;
  animation: chevron-pulse 2.5s ease-in-out infinite;
  z-index: 1;
}
.hero-chevron:hover { color: rgba(253, 252, 250, 0.8); }
@keyframes chevron-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.7; }
}

/* ─── Section 2: Thesis ───────────────────────────────────────────────────── */
.section-thesis {
  background: var(--linen);
}

.thesis-eyebrow,
.exp-eyebrow,
.platform-eyebrow,
.team-eyebrow,
.opp-eyebrow,
.contact-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2rem;
}

.thesis-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 4.5rem;
  quotes: none;
  border: none;
}

.thesis-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-shape { display: block; }

.pillar-triangle {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 31px solid var(--sage-light);
}

.pillar-square {
  width: 28px;
  height: 28px;
  background: var(--sand);
  transform: none;
}

.pillar-diamond {
  width: 26px;
  height: 26px;
  background: var(--sage);
  transform: rotate(45deg);
}

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ─── Section 3: Experience ───────────────────────────────────────────────── */
.section-experience {
  background: var(--forest);
  color: var(--white);
}
.section-experience .exp-eyebrow { color: var(--sage-light); }

.exp-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.exp-card {
  border-top: 1px solid rgba(253, 252, 250, 0.12);
  padding-top: 2rem;
}

.exp-card-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--sage-light);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.exp-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.exp-card-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(253, 252, 250, 0.65);
}

/* ─── Section 4: Platform ─────────────────────────────────────────────────── */
.section-platform {
  background: var(--linen-dark);
}

.platform-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.platform-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 4rem;
}

.platform-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 4rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.platform-step {
  flex: 1;
  min-width: 180px;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-top: 3px solid var(--sage);
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sage-light);
  margin-bottom: 0.75rem;
}

.step-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.platform-arrow {
  padding: 2rem 0.75rem;
  color: var(--sand);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1.5rem;
}

.platform-spinouts {
  border-top: 1px solid var(--sand-light);
  padding-top: 2.5rem;
}

.spinout-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.spinouts { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.spinout-chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--sand-light);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ─── Section 5: Team ─────────────────────────────────────────────────────── */
.section-team {
  background: var(--white);
}

.team-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink);
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.founder-card {
  padding: 2.5rem;
  border: 1px solid var(--linen-dark);
  background: var(--linen);
}

.founder-initials-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.founder-initials-link:hover .founder-initials {
  opacity: 0.7;
  cursor: pointer;
}

.founder-initials {
  margin-bottom: 0;
  width: 56px;
  height: 56px;
  background: var(--forest);
  color: var(--sand-light);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.founder-role {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.5rem;
}

.founder-bio {
  list-style: none;
  padding: 0;
}
.founder-bio li {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.625rem;
}
.founder-bio li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sand);
  font-size: 0.75rem;
}

.team-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  quotes: none;
  padding: 2.5rem 0;
  border-top: 1px solid var(--sand-light);
  border-bottom: 1px solid var(--sand-light);
}

/* ─── Section 6: Opportunity ──────────────────────────────────────────────── */
.section-opportunity {
  background: var(--linen);
}

.opp-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink);
  margin-bottom: 3rem;
}

.opp-table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

.opp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}
.opp-table tr {
  border-bottom: 1px solid var(--sand-light);
}
.opp-table tr:first-child { border-top: 1px solid var(--sand-light); }
.opp-table td { padding: 1.25rem 1rem; vertical-align: top; }

.opp-metric {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  width: 220px;
  white-space: nowrap;
}
.opp-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--forest);
  width: 240px;
}
.opp-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.opp-docs { margin-top: 2rem; }
.opp-docs-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}
.opp-docs-list { list-style: none; }
.opp-doc-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand-light);
}
.opp-doc-icon { color: var(--sage); font-size: 0.85rem; }
.opp-doc-name { font-size: 0.9rem; color: var(--ink-soft); }
.opp-doc-note { font-size: 0.78rem; color: var(--sand); margin-left: auto; }

.opp-logout { margin-top: 2rem; }
.opp-logout-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--sand);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.opp-logout-link:hover { color: var(--ink-soft); }

.opp-partner-link { margin-top: 1.5rem; }
.opp-partner-btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--sage);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--sage-light);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.opp-partner-btn:hover { opacity: 0.65; }

/* Gated state */
.opp-gate {
  position: relative;
  border: 1px solid var(--sand-light);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opp-gate-blur {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--linen-dark),
    var(--linen-dark) 1px,
    transparent 1px,
    transparent 24px
  );
  opacity: 0.5;
}
.opp-gate-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--sand-light);
  max-width: 360px;
}
.opp-gate-icon {
  color: var(--sand);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}
.opp-gate-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.opp-gate-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--forest);
  color: var(--linen);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.opp-gate-btn:hover { background: var(--sage); }

/* ─── Section 7: Contact ──────────────────────────────────────────────────── */
.section-contact {
  background: var(--forest);
  color: var(--white);
}
.section-contact .contact-eyebrow { color: var(--sage-light); }

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(253, 252, 250, 0.6);
  max-width: 480px;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 540px;
}

.contact-field { margin-bottom: 1.5rem; }

.contact-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253, 252, 250, 0.5);
  margin-bottom: 0.5rem;
}
.optional {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: rgba(253, 252, 250, 0.3);
  text-transform: none;
}

.contact-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(253, 252, 250, 0.06);
  border: 1px solid rgba(253, 252, 250, 0.15);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-input::placeholder { color: rgba(253, 252, 250, 0.25); }
.contact-input:focus { border-color: var(--sage-light); }
.contact-textarea { min-height: 120px; }

.contact-btn {
  padding: 0.875rem 2.5rem;
  background: var(--sage);
  color: var(--white);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-btn:hover { background: var(--sage-light); }

.contact-feedback {
  margin-top: 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  min-height: 1.5rem;
}
.contact-feedback.success { color: var(--sage-light); }
.contact-feedback.error   { color: #e88a6a; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--ink-soft);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--sand);
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(253, 252, 250, 0.25);
  letter-spacing: 0.05em;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(253, 252, 250, 0.3);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--sand); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .thesis-pillars,
  .exp-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .founders-grid { grid-template-columns: 1fr; }

  .platform-steps { flex-direction: column; }
  .platform-arrow { display: none; }
  .platform-step { min-width: 100%; }

  .opp-table td { display: block; width: 100%; }
  .opp-metric { padding-bottom: 0.25rem; }
  .opp-value  { padding-top: 0; }
  .opp-note   { padding-top: 0; padding-bottom: 1rem; }

  .nav-dots { display: none; }

  .container { padding: 3.5rem 1.5rem; }

  .hero-sub br { display: none; }
  .contact-headline br { display: none; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.75rem; }
  .contact-headline { font-size: 1.75rem; }
}

/* ─── Print ───────────────────────────────────────────────────────────────── */
@media print {
  .nav-dots, .hero-chevron, .site-footer { display: none; }
  .section { min-height: auto; page-break-inside: avoid; }
  .section-hero {
    background: white !important;
    color: black !important;
    print-color-adjust: economy;
  }
}
