/* ====================================
   SPICE CAPITAL — SHARED STYLES
   ==================================== */

:root {
  --max-grid-width: 750px;
  --scale-factor: calc(min(100vw, var(--max-grid-width)) / 375);
  --text-scale-factor: calc(min(100vw, var(--max-grid-width)) / 375);
  --color-orange:   #E74D2E;
  --color-orange2:  #FF3C00;
  --color-orange3:  #E46F4C;
  --color-orange4:  #FF9738;
  --color-blue:     #0195FF;
  --color-blue2:    #7890F6;
  --color-blue3:    #1674FF;
  --color-green:    #06C055;
  --color-yellow:   #FFD429;
}

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

html { height: 100%; background: #000; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  background: #fff;
  font-family: var(--spice-font, 'Space Mono', monospace);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a, a:visited { color: inherit; text-decoration: none; }

/* ====================================
   NAVIGATION
   ==================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}

.hamburger {
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  z-index: 510;
  background: none;
  border: none;
  padding: 0;
}
.hamburger:focus-visible {
  outline: 1px solid #000;
  outline-offset: 6px;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  list-style: none;
  display: flex;
  overflow-x: auto;
  margin: 0;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0s 0.2s;
  mask-image: linear-gradient(to right, transparent 0%, transparent 10px, black 30px, black calc(100% - 35px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 10px, black 30px, black calc(100% - 35px), transparent 100%);
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links > li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-links.visible {
  pointer-events: all;
  opacity: 1;
  transition: none;
}
.nav-links.visible > li {
  opacity: 1;
  transform: translateX(0);
}
.nav-links li {
  color: #000;
  margin: 0 16px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links li a {
  color: inherit;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}
.nav-links li a.active { text-decoration: underline; }
.nav-links li a:hover,
.nav-links li a:focus-visible {
  text-decoration: underline;
}
.nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-links li:nth-child(2) { transition-delay: 0.15s; }
.nav-links li:nth-child(3) { transition-delay: 0.2s; }
.nav-links li:nth-child(4) { transition-delay: 0.25s; }
.nav-links li:nth-child(5) { transition-delay: 0.3s; }
.nav-links li:nth-child(6) { transition-delay: 0.35s; }
.nav-links li:nth-child(7) { transition-delay: 0.4s; }

@media (max-width: 760px) {
  .nav {
    justify-content: flex-end;
  }

  .hamburger {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 1;
    position: absolute;
    top: 62px;
    right: 24px;
    left: auto;
    display: grid;
    grid-auto-flow: row;
    justify-items: end;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 88px);
    margin: 0;
    padding: 10px 0 12px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    z-index: 520;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .nav-links li {
    margin: 0;
    font-size: 15px;
  }
}

/* ====================================
   PAGE WRAPPER
   ==================================== */
.page-content {
  width: 100%;
  min-height: 100vh;
  padding-top: 60px;
  background: #fff;
}

/* ====================================
   HOME GRID
   ==================================== */
.home-grid-wrap {
  width: calc(var(--scale-factor) * 375);
  margin: 0 auto;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(10, calc(var(--scale-factor) * 125));
  width: 100%;
  position: relative;
}
.home-grid > .cell {
  overflow: hidden;
  position: relative;
}
.cell-center { display: flex; align-items: center; justify-content: center; }
.cell-top    { display: flex; align-items: flex-start; justify-content: center; }

/* GIF images */
.gif-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Blob clip on GIF 1 */
.blob-clip {
  clip-path: url(#blobClip);
}

/* SPICE CAPITAL title */
.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: calc(var(--text-scale-factor) * 45.28);
  color: var(--color-orange);
  text-align: center;
  line-height: 1.2;
  padding: 8px;
  width: 100%;
}

/* Nav link cells */
.nav-cell-text {
  font-family: 'Space Mono', monospace;
  line-height: 1.2;
  text-align: center;
  padding: calc(var(--scale-factor) * 8);
}

/* INVEST vertical */
.invest-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: calc(var(--scale-factor) * 8);
}
.invest-wrap p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: calc(var(--text-scale-factor) * 16);
  color: var(--color-green);
  font-style: normal;
  line-height: 1.2;
  margin: calc(var(--text-scale-factor) * 0.8) 0;
}

/* Social icon cells */
.icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.icon-cell a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.social-icon {
  max-width: 44px;
  max-height: 44px;
  width: 60%;
  height: 60%;
}

/* SEO hidden text */
.seo-text { color: #fff; font-size: 10px; }

/* ====================================
   PORTFOLIO PAGE
   ==================================== */
.portfolio-wrap {
  max-width: 92vw;
  margin: 0 auto;
  padding: 24px 0 60px;
  font-family: 'Space Mono', monospace;
}
.portfolio-title {
  text-align: center;
  font-size: calc(var(--text-scale-factor) * 15);
  margin-bottom: 24px;
}
.portfolio-active-label {
  font-size: calc(var(--text-scale-factor) * 12);
  margin-bottom: 12px;
  padding-left: 4px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid #eee;
}
.portfolio-header {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: calc(var(--text-scale-factor) * 8.65);
  padding: 8px;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}
.portfolio-cell {
  font-family: 'Space Mono', monospace;
  font-size: calc(var(--text-scale-factor) * 8.65);
  padding: 8px;
  vertical-align: top;
  line-height: 1.6;
}
.portfolio-cell a {
  text-decoration: underline;
  color: #000;
  display: block;
  padding: 2px 0;
}
.portfolio-cell a:hover { opacity: 0.6; }
.exits-label {
  font-family: 'Space Mono', monospace;
  font-style: italic;
  font-size: calc(var(--text-scale-factor) * 12.65);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 4px;
}
.exits-list {
  font-family: 'Space Mono', monospace;
  font-size: calc(var(--text-scale-factor) * 8.65);
  padding-left: 4px;
}
.exits-list a {
  display: block;
  text-decoration: underline;
  color: #000;
  padding: 4px 0;
  line-height: 1.4;
}
.exits-list a:hover { opacity: 0.6; }

/* Mobile portfolio: stack cols */
@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-header:nth-child(n+3) { display: none; }
}

/* ====================================
   THESIS PAGE
   ==================================== */
.thesis-wrap {
  max-width: min(92vw, 600px);
  margin: 0 auto;
  padding: 32px 16px 80px;
  font-family: 'Space Mono', monospace;
}
.thesis-eyebrow {
  font-size: calc(var(--text-scale-factor) * 12);
  font-style: italic;
  color: #888;
  margin-bottom: 32px;
}
.thesis-hero {
  font-size: calc(var(--text-scale-factor) * 38);
  font-weight: 700;
  color: var(--color-orange);
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  margin-bottom: 24px;
}
.thesis-gp {
  font-size: calc(var(--text-scale-factor) * 12);
  color: #888;
  margin-bottom: 8px;
}
.thesis-gp-name {
  font-size: calc(var(--text-scale-factor) * 18);
  font-weight: 700;
  margin-bottom: 32px;
}
.thesis-body p {
  font-size: calc(var(--text-scale-factor) * 13);
  line-height: 1.7;
  margin-bottom: 16px;
}
.thesis-stage {
  margin-top: 32px;
  font-size: calc(var(--text-scale-factor) * 12);
  line-height: 1.8;
  border-top: 1px solid #000;
  padding-top: 16px;
}
.thesis-sectors h3 {
  font-size: calc(var(--text-scale-factor) * 14);
  margin-top: 24px;
  margin-bottom: 12px;
  text-decoration: underline;
}
.thesis-sectors ul {
  list-style: none;
  font-size: calc(var(--text-scale-factor) * 12);
  line-height: 1.8;
}
.thesis-sectors ul li::before { content: "→ "; }
.thesis-sectors ul li span { font-style: italic; color: #888; }
.thesis-cta {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.thesis-cta a {
  font-size: calc(var(--text-scale-factor) * 14);
  font-weight: 700;
  text-decoration: underline;
  color: var(--color-blue);
}
.thesis-cta a:hover { opacity: 0.7; }

/* ====================================
   FOUNDERS PAGE
   ==================================== */
.founders-wrap {
  max-width: min(92vw, 650px);
  margin: 0 auto;
  padding: 32px 16px 80px;
  font-family: 'Space Mono', monospace;
}
.founders-h1 {
  font-size: calc(var(--text-scale-factor) * 32);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--color-orange4);
  margin-bottom: 8px;
}
.founders-subtitle {
  font-size: calc(var(--text-scale-factor) * 14);
  font-style: italic;
  margin-bottom: 40px;
  color: #555;
}
.testimonial {
  margin-bottom: 40px;
  border-left: 3px solid var(--color-orange);
  padding-left: 16px;
}
.testimonial blockquote {
  font-size: calc(var(--text-scale-factor) * 12);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 12px;
  color: #111;
}
.testimonial .attribution {
  font-size: calc(var(--text-scale-factor) * 11);
  font-weight: 700;
  color: #000;
}
.testimonial .attribution span {
  display: block;
  font-weight: 400;
  color: #666;
  font-style: italic;
}

/* ====================================
   FAMILY / MENTIONS PAGE
   ==================================== */
.family-wrap {
  max-width: min(92vw, 680px);
  margin: 0 auto;
  padding: 32px 16px 80px;
  font-family: 'Space Mono', monospace;
}
.mentions-wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.mentions-wrap .family-h1 {
  margin-bottom: var(--spice-title-bottom) !important;
}
.family-h1 {
  font-size: calc(var(--text-scale-factor) * 28);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 40px;
}
.mention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: baseline;
  border-top: 1px solid #d8d8d8;
  padding: 28px 0 0;
  min-height: 76px;
}
.mention-item + .mention-item {
  margin-top: 28px;
}
.mention-item a {
  font-size: calc(var(--text-scale-factor) * 16);
  font-weight: 400;
  text-decoration: none;
  color: #000;
  line-height: 1.35;
  display: block;
  margin-bottom: 0;
}
.mention-item a:hover {
  opacity: 0.6;
  text-decoration: underline;
}
.mention-pub {
  font-size: calc(var(--text-scale-factor) * 12);
  color: #888;
  font-style: normal;
  margin: 0;
  text-align: right;
  line-height: 1.45;
}
.mention-type {
  display: block;
  color: #aaa;
  font-size: calc(var(--text-scale-factor) * 9.5);
  line-height: 1.4;
  margin-top: 4px;
  text-transform: uppercase;
}
.mention-quote {
  font-size: calc(var(--text-scale-factor) * 11);
  color: #444;
  margin-top: 6px;
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 760px) {
  .mentions-wrap .family-h1 {
    margin-bottom: var(--spice-title-bottom) !important;
  }

  .mention-item {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding-top: 22px;
  }

  .mention-pub {
    text-align: left;
  }

  .mention-type {
    display: inline;
    margin-left: 8px;
  }
}

/* ====================================
   BLANK PAGE
   ==================================== */
.blank-wrap {
  width: 100%; height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  color: #ccc;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 428px) {
  .site-title { font-size: calc(var(--text-scale-factor) * 38); }
}
