/* ============================================================
   MLB4 — Make Life Better
   Public site design system
   ============================================================ */

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

:root {
  /* canvas */
  --ink:        #08090B;
  --ink-2:      #0D0F13;
  --panel:      #101318;
  --panel-2:    #151920;
  --line:       rgba(255,255,255,0.085);
  --line-2:     rgba(255,255,255,0.16);

  /* type */
  --fg:         #EDEEF0;
  --fg-2:       #A8ADB6;
  --fg-3:       #6E747E;

  /* accents */
  --acid:       #C9F24D;
  --acid-dim:   rgba(201,242,77,0.14);
  --blue:       #7C9CFF;
  --blue-dim:   rgba(124,156,255,0.14);

  /* system */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --maxw: 1180px;

  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--acid); opacity: .6;
}
.eyebrow.plain::before { display: none; }
.eyebrow.muted { color: var(--fg-3); }
.eyebrow.muted::before { background: var(--fg-3); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }

.display {
  font-size: clamp(42px, 7.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.section-title { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.03em; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-2); max-width: 62ch; line-height: 1.62; }

.acid { color: var(--acid); }
.dim  { color: var(--fg-3); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,9,11,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
/* No logomark, by choice. The wordmark carries it; a lime full stop is the
   only ornament. Nothing to render badly at favicon size. */
.brand { font-size: 19px; }
.brand-dot { color: var(--acid); }
.brand small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--fg-3); text-transform: uppercase; font-weight: 400; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--fg-2); transition: color .16s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--acid); color: #08090B; font-weight: 600; }
.btn-primary:hover { background: #d6ff63; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg-3); background: rgba(255,255,255,0.03); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ---------- layout ---------- */
section { position: relative; }
.pad { padding: 108px 0; }
.pad-sm { padding: 72px 0; }
.rule { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lede { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { padding: 108px 0 92px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 20%, transparent 75%);
  opacity: .8;
}
.hero-inner { max-width: 900px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero .display { margin-bottom: 26px; }
.hero .lede { font-size: clamp(17px, 1.8vw, 20px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-meta div { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: .04em; }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--fg); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }

/* ---------- philosophy ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pillar { background: var(--ink-2); padding: 40px 34px 44px; transition: background .2s; }
.pillar:hover { background: var(--panel); }
.pillar-num { font-family: var(--font-mono); font-size: 11px; color: var(--acid); letter-spacing: .16em; margin-bottom: 26px; }
.pillar h3 { font-size: 25px; margin-bottom: 14px; }
.pillar p { color: var(--fg-2); font-size: 15px; line-height: 1.66; }
.pillar p + p { margin-top: 12px; }

.creed { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.creed div { background: var(--ink-2); padding: 26px 30px; }
.creed h4 { font-size: 14px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .05em; color: var(--fg); margin-bottom: 8px; }
.creed h4 span { color: var(--acid); }
.creed p { font-size: 14.5px; color: var(--fg-2); }

/* ---------- portfolio ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--fg-2); background: transparent; cursor: pointer; transition: all .16s;
}
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip.active { background: var(--acid); border-color: var(--acid); color: #08090B; font-weight: 600; }

.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

.co-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.co-card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.co-media { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border-bottom: 1px solid var(--line); }
.co-media iframe, .co-media video { width: 100%; height: 100%; border: 0; display: block; }
.co-media .co-media-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: 10px;
  color: var(--fg-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.co-media a.co-media-link { display: grid; place-items: center; width: 100%; height: 100%; }
.co-media a.co-media-link:hover { background: rgba(201,242,77,0.04); color: var(--acid); }

.co-body { padding: 24px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.co-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.co-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.co-stage { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.co-detail { font-size: 14.5px; color: var(--fg-2); line-height: 1.62; }

.co-why { margin-top: 18px; padding: 14px 16px; background: var(--acid-dim); border-left: 2px solid var(--acid); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.co-why span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--acid); margin-bottom: 6px; }
.co-why p { font-size: 14px; color: var(--fg); line-height: 1.6; }

.co-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 8px; }
.co-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); background: rgba(255,255,255,0.04); border-radius: 4px; padding: 4px 8px; }

.icon-link {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--fg-2); transition: all .16s;
}
.icon-link:hover { color: var(--acid); border-color: var(--acid); background: var(--acid-dim); }
.icon-link svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- mentors ---------- */
.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mentor-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.mentor-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.avatar {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, var(--acid-dim), var(--blue-dim));
  border: 1px solid var(--line-2);
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg); letter-spacing: -0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mentor-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.mentor-role { font-family: var(--font-mono); font-size: 11.5px; color: var(--acid); letter-spacing: .04em; margin-top: 5px; }
.mentor-bio { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin-top: 14px; }
.mentor-help { margin-top: 14px; font-size: 13.5px; color: var(--fg-3); }
.mentor-help b { color: var(--fg-2); font-weight: 500; }
.mentor-foot { margin-top: auto; padding-top: 20px; display: flex; gap: 8px; }

/* ---------- cta ---------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(201,242,77,0.10), transparent 55%),
    var(--ink-2);
  padding: 68px 56px;
}
.cta-band .section-title { max-width: 16ch; margin-bottom: 20px; }
.cta-band .lede { max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-tag { color: var(--fg-3); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--fg-2); padding: 5px 0; transition: color .16s; }
.footer-col a:hover { color: var(--acid); }
.footer-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: .04em; }

/* ---------- forms ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 9px; }
.field label .req { color: var(--acid); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--font-body);
  background: var(--ink); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--acid); box-shadow: 0 0 0 3px var(--acid-dim);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 8l3-3.5' stroke='%236E747E' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12.5px; color: var(--fg-3); margin-top: 7px; }

.dropzone {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 38px 24px; text-align: center; cursor: pointer;
  background: var(--ink); transition: all .18s;
}
.dropzone:hover, .dropzone.over { border-color: var(--acid); background: var(--acid-dim); }
.dropzone-icon { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--acid); text-transform: uppercase; margin-bottom: 10px; }
.dropzone p { font-size: 15px; color: var(--fg-2); }
.dropzone small { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 6px; }
.file-chip { display: none; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--acid); }

.alert { display: none; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 22px; }
.alert-error { background: rgba(245,101,101,0.12); border: 1px solid rgba(245,101,101,0.4); color: #ffb4b4; }
.panel-success { display: none; text-align: center; padding: 20px 0; }
.panel-success h2 { font-size: 30px; margin-bottom: 14px; }
.panel-success p { color: var(--fg-2); max-width: 44ch; margin: 0 auto; }
.check { width: 54px; height: 54px; border-radius: 50%; background: var(--acid-dim); border: 1px solid var(--acid); color: var(--acid); display: grid; place-items: center; margin: 0 auto 22px; font-size: 24px; }

.back-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--fg-3); display: inline-block; margin-bottom: 30px; transition: color .16s; }
.back-link:hover { color: var(--acid); }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 56px 30px; text-align: center; color: var(--fg-3);
}
.empty code { font-family: var(--font-mono); font-size: 13px; color: var(--acid); background: var(--acid-dim); padding: 2px 7px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .creed { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 28px 20px; }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .pad { padding: 76px 0; }
  .cta-band { padding: 44px 28px; }
  .form-card { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .hero-meta { gap: 28px; }
}

/* exited companies */
.co-stage.exit {
  color: var(--blue);
  border-color: rgba(124,156,255,0.42);
  background: var(--blue-dim);
}

/* unapproved "why" copy — visible on localhost only */
.co-why.draft {
  background: rgba(240,180,94,0.10);
  border-left-color: #F0B45E;
}
.co-why.draft span { color: #F0B45E; }

/* ---------- portfolio tiers ---------- */
.tier-head { margin: 8px 0 26px; padding-top: 40px; border-top: 1px solid var(--line); }
.tier-head:first-of-type { padding-top: 0; border-top: 0; }
.tier-head h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px;
}
.tier-head p { font-size: 14.5px; color: var(--fg-3); max-width: 66ch; line-height: 1.6; }

.compact-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; margin-top: 4px; }
.co-card.compact { background: transparent; }
.co-card.compact:hover { background: var(--ink-2); transform: none; }
.co-card.compact .co-body { padding: 18px 18px 16px; }
.co-card.compact .co-name { font-size: 17px; }
.co-card.compact .co-top { margin-bottom: 0; }
.co-card.compact .co-foot { padding-top: 16px; }
.co-card.compact .icon-link { width: 28px; height: 28px; border-radius: 7px; }
.co-card.compact .icon-link svg { width: 13px; height: 13px; }

/* ---------- contact ---------- */
.footer-contact { margin-top: 18px; font-size: 14px; color: var(--fg-3); line-height: 1.85; }
.footer-contact a { color: var(--fg-2); border-bottom: 1px solid var(--line-2); transition: color .16s, border-color .16s; }
.footer-contact a:hover { color: var(--acid); border-color: var(--acid); }
.footer-bot a { color: var(--fg-3); transition: color .16s; }
.footer-bot a:hover { color: var(--acid); }
