/* ==========================================================================
   NexBido Labs — venture studio site
   Recreated from the Claude Design "NexBido Labs" prototype.
   ========================================================================== */

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text2);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background .4s ease, color .4s ease;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font-family: inherit; }
::selection { background: #5f6067; color: #fff; }

/* ---- Design tokens ---- */
:root {
  --bg: #f3f1ea;
  --bg2: #ece7db;
  --surface: #faf8f2;
  --nav-bg: rgba(243, 241, 234, 0.82);
  --text: #141310;
  --text2: #45423b;
  --text3: #78746a;
  --line: #141310;
  --line2: #dbd6c9;
  --shadow: rgba(20, 19, 15, 0.10);
  --mark-top: #656565;
  --mark-bottom: #231f20;
  --logo-word: #231f20;
  --logo-labs: #797a7e;
  /* graphite accent — light */
  --accent: #4d4e57;
  --accent-soft: rgba(77, 78, 87, 0.10);
  --accent-ink: #ffffff;
}
[data-mode="dark"] {
  --bg: #0b0b0d;
  --bg2: #0f0f12;
  --surface: #141317;
  --nav-bg: rgba(11, 11, 13, 0.82);
  --text: #f6f5f1;
  --text2: #a8a69e;
  --text3: #6f6c63;
  --line: rgba(246, 245, 241, 0.85);
  --line2: rgba(246, 245, 241, 0.10);
  --shadow: rgba(0, 0, 0, 0.5);
  --mark-top: #f5f5f5;
  --mark-bottom: #656565;
  --logo-word: #ffffff;
  --logo-labs: #797a7e;
  /* graphite accent — dark */
  --accent: #b3b4bc;
  --accent-soft: rgba(179, 180, 188, 0.14);
  --accent-ink: #131417;
}

/* ---- Shared layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
}
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  scroll-margin-top: 90px;
}
.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--line2);
}

/* Section eyebrow (number + label) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.eyebrow-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
}
.eyebrow-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
}
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--text);
}
.accent { color: var(--accent); }

/* Reveal-on-scroll base state (JS adds .is-visible) */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1),
              transform .8s cubic-bezier(.4, 0, .2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
  transition: height .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  height: 62px;
  box-shadow: 0 6px 24px -12px var(--shadow);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  height: 28px;
  width: auto;
  display: block;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.brand-word {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.15px;
  color: var(--logo-word);
  line-height: 1;
}
.brand-labs {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 7px;
  letter-spacing: 6px;
  color: var(--logo-labs);
  margin-top: 3px;
  white-space: nowrap;
  display: inline-block;
  align-self: flex-end;
  margin-right: -5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--text2);
  transition: color .2s;
}
.nav-link:hover { color: var(--accent); }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.nav-mobile { display: none; align-items: center; gap: 10px; }
.icon-btn--lg { width: 38px; height: 38px; font-size: 14px; }
.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

/* Mobile dropdown menu */
.mobile-menu {
  position: fixed;
  top: 76px; left: 0; right: 0;
  z-index: 999;
  background: var(--bg);
  border-bottom: 1px solid var(--line2);
  padding: 20px clamp(20px, 4vw, 40px) 30px;
  display: none;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--line2);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(76px + clamp(36px, 6vw, 64px)) 0 clamp(20px, 3vw, 32px);
}
.hero-mark {
  position: absolute;
  right: -2%;
  top: 16%;
  height: 78%;
  width: auto;
  pointer-events: none;
  z-index: 0;
}
/* Translucent wash over the mark — mutes it toward the background colour
   without touching its fill, and sits below the content (z-index 2). */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  opacity: 0.4;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 40px);
}
.hero-eyebrow { margin-bottom: 26px; }
.hero-eyebrow .eyebrow-num { letter-spacing: 2px; }
.hero-eyebrow .eyebrow-label { letter-spacing: 2.5px; }
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.7rem, 7.4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -2.5px;
  color: var(--text);
  margin: 0 0 28px;
  max-width: 15ch;
}
.hero-lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--text2);
  max-width: 58ch;
  margin: 0 0 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 15px 26px;
  transition: transform .2s, filter .2s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: gap .2s;
}
.btn-text:hover { gap: 12px; }

.hero-foot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
}
.hero-foot-row {
  border-top: 1px solid var(--line2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
}

/* ==========================================================================
   Ventures (01)
   ========================================================================== */
.ventures-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.0;
  max-width: 20ch;
}
.ventures-list { border-bottom: 1px solid var(--line2); }
.venture {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px 22px;
  align-items: start;
  padding: clamp(22px, 3vw, 30px) 6px;
  border-top: 1px solid var(--line2);
  transition: background .25s ease;
}
.venture:hover { background: var(--accent-soft); }
.venture-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  padding-top: 6px;
}
.venture-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.venture-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.5px;
  color: var(--text);
}
.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
}
.badge--soon {
  color: var(--accent-ink);
  background: var(--accent);
}
.badge--research {
  color: var(--text3);
  border: 1px solid var(--line2);
}
.venture-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin: 10px 0 7px;
}
.venture-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
  max-width: 56ch;
}
.ventures-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 20px;
}

/* ==========================================================================
   Structure (02)
   ========================================================================== */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.structure-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 22px;
  max-width: 18ch;
}
.prose {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text2);
  max-width: 52ch;
}
.prose + .prose { margin-top: 16px; }
.structure-grid .prose:first-of-type { margin-bottom: 16px; }
.figure {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 18px 14px;
  position: relative;
}
.figure-label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text3);
}
.figure svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 18px;
}

/* ==========================================================================
   Approach (03)
   ========================================================================== */
.approach-title { max-width: 16ch; }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.approach-cell {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 30px) clamp(34px, 4vw, 48px);
  border-bottom: 1px solid var(--line2);
}
/* Three columns with vertical dividers only once there's room; stacked cells
   below the breakpoint use horizontal dividers alone (no stray left borders). */
@media (min-width: 760px) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
  .approach-cell + .approach-cell { border-left: 1px solid var(--line2); }
}
.approach-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
}
.approach-title-sm {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text);
  margin: 20px 0 12px;
  letter-spacing: -0.5px;
}
.approach-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}

/* ==========================================================================
   Work (04)
   ========================================================================== */
.work-title { max-width: 18ch; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.work-card {
  border: 1px solid var(--line2);
  background: var(--surface);
  overflow: hidden;
}
.work-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg2);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-body { padding: 16px 18px 20px; }
.work-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
}
.work-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 8px;
}

/* ==========================================================================
   Statement
   ========================================================================== */
.statement {
  padding: clamp(80px, 12vw, 150px) 0;
  text-align: center;
}
.statement-inner { max-width: 900px; }
.statement-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--text);
  margin-top: 24px;
}

/* ==========================================================================
   Contact (05)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.contact-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 22px;
  max-width: 16ch;
}
.contact-lead {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text2);
  max-width: 46ch;
  margin-bottom: 32px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
  transition: gap .2s;
}
.contact-link:hover { gap: 14px; }
.contact-link i { color: var(--accent); }
.contact-meta {
  margin-top: 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.meta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.meta-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
}

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--line2);
  padding: clamp(24px, 4vw, 36px);
}
.field { margin-bottom: 20px; }
.field--message { margin-bottom: 24px; }
.field-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s;
}
.select { cursor: pointer; }
.textarea { resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
#turnstile-widget { margin-bottom: 20px; }
#turnstile-widget:empty { display: none; } /* collapse the gap until Turnstile is configured */
.submit {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 15px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, color .2s;
}
.submit:hover { background: var(--accent); color: var(--accent-ink); }
.submit:disabled { cursor: default; opacity: .8; }
.form-status {
  margin-top: 18px;
  padding: 13px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.5;
}
.form-status--ok {
  background: rgba(15, 157, 88, 0.12);
  border: 1px solid rgba(15, 157, 88, 0.35);
  color: #0f9d58;
}
.form-status--err {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #dc2626;
}
[hidden] { display: none !important; }
/* Honeypot — off-screen rather than display:none so bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line2);
  padding: clamp(56px, 7vw, 80px) 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: clamp(40px, 6vw, 56px);
}
.footer-brand { max-width: 320px; }
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}
.footer-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 18px;
}
.socials { display: flex; gap: 12px; }
.social {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 15px;
  transition: all .2s;
}
.social:hover { color: var(--accent); border-color: var(--accent); }
.footer-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text2);
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }
/* Ventures aren't live yet — shown as muted, non-interactive labels. */
.footer-item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text3);
}
.footer-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--text3);
  margin-top: 14px;
}
.footer-bottom {
  border-top: 1px solid var(--line2);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text3);
}
.legal { display: flex; gap: 24px; }
.legal a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  transition: color .2s;
}
.legal a:hover { color: var(--accent); }

/* ==========================================================================
   Side nav (desktop)
   ========================================================================== */
.sidenav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-end;
}
.dot {
  display: block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--line2);
  opacity: 0.6;
  transition: all .3s;
}
.dot.is-active {
  width: 26px;
  background: var(--accent);
  opacity: 1;
}

/* ==========================================================================
   Responsive — mobile breakpoint mirrors the design's 880px threshold
   ========================================================================== */
@media (max-width: 879px) {
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .sidenav { display: none; }
}

/* On phones the mark overlaps more text, so shrink it a little and mute it
   a touch more than the desktop scrim (which stays at 0.4). */
@media (max-width: 700px) {
  .hero-mark { height: 62%; }
  .hero-scrim { opacity: 0.52; }
}
