/* ==============================================
   MISCHIEF VC
   Bebas Neue (display) · GT Pressura Mono (labels/body) · Geist (descriptions)
   Palette: #3f73d9 blue / #080708 dark / #ffd24b yellow / #fefff4 cream
   ============================================== */

/* --- Self-hosted fonts --- */
@font-face {
  font-family: 'FAIRE Print Sans';
  src: url('assets/fonts/FAIRE-PrintSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FAIRE Print Sans';
  src: url('assets/fonts/FAIRE-PrintSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FAIRE Print Sans';
  src: url('assets/fonts/FAIRE-PrintSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Founders Hand';
  src: url('assets/fonts/FoundersHandRegular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Pressura Mono';
  src: url('assets/fonts/GT Pressura/GT-Pressura-Mono-Regular.woff2') format('woff2'),
       url('assets/fonts/GT Pressura/GT-Pressura-Mono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist/static/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist/static/Geist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/Geist_Mono/static/GeistMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/Geist_Mono/static/GeistMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue:        #3f73d9;
  --footer-blue: #3662dc;
  --dark:        #080708;
  --cream:       #fefff4;
  --yellow:      #ffd24b;
  --text-dark:   #080708;

  --font-display:    'FAIRE Print Sans', sans-serif;
  --font-hand:       'Founders Hand', cursive;
  --font-mono:       'GT Pressura Mono', monospace;
  --font-mono-geist: 'Geist Mono', monospace;
  --font-body:       'Geist', system-ui, sans-serif;

  --page-max: 1440px;
  --page-px: clamp(1.5rem, 11.25vw, 162px);      /* 162px — investments block */
  --edge-px: clamp(1.5rem, 3.33vw, 48px);        /* 48px  — partners / testimonials */
  --section-gap: clamp(64px, 8.3vw, 120px);      /* gap between sections */
  --block-pad: clamp(64px, 8.9vw, 128px);        /* internal pad of dark block */
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-mono); cursor: pointer; border: none; background: none; }
input { font-family: var(--font-mono); }
ul { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  background: var(--blue);
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-illustration {
  width: clamp(280px, 30vw, 425px);
  height: auto;
  mix-blend-mode: multiply;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* ==============================================
   ABOUT
   ============================================== */
.about {
  padding: var(--section-gap) var(--page-px) 0;
  background: #fff;
}

.about-inner {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.about-text {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: rgba(8,7,8,0.8);
  width: 100%;
}
.about-text p + p { margin-top: 1.4em; }

.about-mark {
  height: 60px;
}
.about-mark img {
  height: 100%;
  width: auto;
}

/* ==============================================
   INVESTMENTS
   ============================================== */
.investments {
  background: var(--dark);
  margin-top: var(--section-gap);
  padding: var(--block-pad) var(--page-px);
}

.investments-inner {
  max-width: calc(var(--page-max) - var(--page-px) * 2);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.investments-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.investments-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.filter-tab {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: all 0.12s;
}
.filter-tab:hover { color: #fff; }
.filter-tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.filter-tab:focus-visible { outline: 1px solid rgba(255,255,255,0.4); outline-offset: 2px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  flex-shrink: 0;
}
.search-icon { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.search-input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.75rem;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  width: 220px;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }

/* Table */
.table-wrap { width: 100%; }

.table-head {
  display: flex;
  align-items: center;
  height: 66px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 12px 24px;
}
.th-logo  { width: 200px; flex-shrink: 0; }
.th-sector { width: 288px; flex-shrink: 0; }
.th-desc  { flex: 1; }

/* Company rows */
.company-row {
  display: flex;
  align-items: center;
  height: 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: background 0.1s;
}
.company-row:hover { background: rgba(255,255,255,0.02); }

.cell-logo {
  width: 200px;
  flex-shrink: 0;
  padding: 24px;
  display: flex;
  align-items: center;
}
.co-logo-img {
  max-width: 140px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.co-logo-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  color: #fff;
}

.cell-sectors {
  width: 288px;
  flex-shrink: 0;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-content: center;
}
.sector-tag {
  display: inline-block;
  padding: 8px;
  background: rgba(255,255,255,0.15);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

.cell-desc {
  flex: 1;
  min-width: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.co-desc {
  width: 440px;
  max-width: 440px;
  flex: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(254,255,244,0.7);
}
.visit-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  color: #fff;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.visit-link:hover { opacity: 0.6; }
.visit-link svg { flex-shrink: 0; }

.state-row {
  padding: 4rem 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.table-foot {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}
.load-more-btn {
  border: 1px solid #fff;
  padding: 8px 12px;
  font-family: var(--font-mono-geist);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.15s, color 0.15s;
}
.load-more-btn:hover {
  background: #fff;
  color: var(--dark);
}

/* ==============================================
   OUR PARTNERS
   ============================================== */
.partners {
  background: #fff;
  padding: var(--section-gap) var(--edge-px) 0;
}

.partners-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.partners-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.014em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-align: center;
}
.partners-title .hand {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: -0.07em;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.partner-photo {
  position: relative;
  aspect-ratio: 392 / 537;
  overflow: hidden;
  background: #e8e8e8;
}
.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partner-photo.empty { background: #ddd; }

/* Hover overlay */
.partner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.partner-photo:hover .partner-overlay,
.partner-photo:focus-within .partner-overlay { opacity: 1; }

.partner-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}
.partner-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.partner-bio-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.partner-bio {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0.9;
  color: var(--cream);
}
.partner-linkedin {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #fff;
  transition: opacity 0.15s;
}
.partner-linkedin:hover { opacity: 0.7; }
.partner-linkedin svg { display: block; width: 100%; height: 100%; }

/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials {
  background: #fff;
  padding: var(--section-gap) var(--edge-px) 0;
}

.testimonials-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  height: 502px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid var(--text-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.testimonial-card:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.testimonial-doodle {
  position: absolute;
  top: -16px;
  right: -18px;
  width: 300px;
  max-width: 68%;
  height: auto;
  pointer-events: none;
  transform-origin: top right;
  transform: rotate(-15.7deg) translate(46px, -34px) scale(0.92);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-card:hover .testimonial-doodle {
  opacity: 1;
  transform: rotate(-15.7deg) translate(0, 0) scale(1);
}

.testimonial-logo {
  height: 32px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.testimonial-body { position: relative; z-index: 1; }
.testimonial-logo img {
  max-height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.testimonial-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonial-quote {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: rgba(8, 7, 8, 0.8);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.author-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 500;
}
.author-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(8,7,8,0.7);
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--footer-blue);
  margin-top: var(--section-gap);
  padding-top: var(--block-pad);
  overflow: hidden;
}

.footer-wordmark {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 48px;
  user-select: none;
}
.footer-wordmark-inner { position: relative; }
.footer-mark {
  display: block;
  width: 100%;
  height: auto;
}

/* Lightning bolt overlaid on the wordmark */
.footer-lightning {
  position: absolute;
  left: 61%;
  top: 52%;
  width: 18%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-11.67deg);
  transform-origin: center;
  pointer-events: none;
}
/* Strike-in when the footer scrolls into view (JS-gated) */
.js-anim .footer-lightning { opacity: 0; }
.js-anim .footer.in-view .footer-lightning {
  animation: lightning-strike 0.75s ease-out both;
}
@keyframes lightning-strike {
  0%   { opacity: 0;   clip-path: inset(0 0 100% 0); }
  35%  { opacity: 1;   clip-path: inset(0 0 0 0); }
  46%  { opacity: 0.15; }
  60%  { opacity: 1; }
  73%  { opacity: 0.4; }
  100% { opacity: 1;   clip-path: inset(0 0 0 0); }
}

.footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px 48px 40px;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav-cols {
  display: flex;
  gap: 86px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-nav-col a {
  font-family: var(--font-mono-geist);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  transition: opacity 0.15s;
}
.footer-nav-col a:hover { opacity: 0.6; }

.footer-copy {
  font-family: var(--font-mono-geist);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-inner { grid-template-columns: 1fr; }
  .testimonial-card { height: auto; min-height: 360px; }
  .footer-nav-cols { gap: 3rem; }
}

@media (max-width: 768px) {
  .hero { height: 560px; }

  .table-head { display: none; }
  .cell-sectors { display: none; }
  .company-row { height: auto; padding: 1rem 0; }
  .cell-logo { width: 160px; }
  .co-desc { width: auto; max-width: none; font-size: 0.8rem; }
  .visit-link span { display: none; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-inner { grid-template-columns: 1fr; }
  .footer-nav-cols { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom { padding: 24px; }
  .search-box { display: none; }
  .filter-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js-anim .footer-lightning { opacity: 1; }
  .js-anim .footer.in-view .footer-lightning { animation: none; }
}
