/* Maybe LLC — maybellc.com */

/* Self-hosted fonts (SIL OFL 1.1 — see /assets/fonts/OFL.txt).
   Latin subset, woff2 only. Archivo ships as one variable file
   covering the 500–700 weights this page uses. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fragment-mono-latin.woff2") format("woff2");
}

:root {
  /* type families */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* garage (dark shell) */
  --garage-950: #07090f;
  --garage-940: #0b0f1a;
  --garage-900: #111827;

  /* torque (brand blue) */
  --torque-500: #2563eb;
  --torque-400: #60a5fa;

  /* status accents */
  --signal-400: #f59e0b;
  --fault-500: #ef4444;
  --clear-500: #22c55e;

  /* panel (text hierarchy, on dark) */
  --panel-300: #cbd5e1;
  --panel-400: #94a3b8;
  --panel-500: #64748b;

  --border-on-dark: rgba(255, 255, 255, 0.08);
  --radius-card: 12px;
  --radius-chip: 9999px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--garage-940);
  color: var(--panel-300);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--torque-400);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus-visible {
  left: var(--space-2);
  top: var(--space-2);
  z-index: 100;
  background: var(--torque-500);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
}

/* ===== nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: 64px;
  padding: 0 var(--space-3);
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-on-dark);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.site-nav__brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--panel-400);
  padding: 12px 12px;
  border-radius: 5px;
  transition: color 150ms, background 150ms;
}
.site-nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ===== hero ===== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 380px at 84% 6%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(560px 340px at 6% 98%, rgba(217, 119, 6, 0.1), transparent 70%),
    var(--garage-940);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 42% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 42% 42%, #000 0%, transparent 72%);
}

/* The live canvas scene (main.js) replaces the static CSS grid when it
   boots; without JS the ::before grid above is the fallback. */
.hero--live::before {
  display: none;
}
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

.hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--panel-300);
  margin: 0;
  max-width: 680px;
}

.hero__cta {
  margin-top: var(--space-3);
}

/* ===== section shell ===== */

.section {
  padding: var(--space-5) var(--space-3);
}
.section--alt {
  background: var(--garage-950);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--torque-400);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

/* ===== ventures ===== */

.ventures__list {
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.venture {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-on-dark);
}
.ventures__list > li:last-child .venture {
  border-bottom: none;
}

.venture__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-2);
}

.venture__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--panel-400);
}
.venture--featured .venture__index {
  color: var(--torque-400);
}

.venture__rule {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.venture__category {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--panel-400);
}

.venture__flag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--torque-400);
  padding: 3px 9px;
  border-radius: var(--radius-chip);
  background: rgba(37, 99, 235, 0.16);
}

.venture__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-2);
}
.venture__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.venture__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.venture__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--panel-300);
  margin: 0 0 var(--space-2);
  max-width: 520px;
}

.venture__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-3);
  padding: 0;
}
.venture__tags li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--panel-300);
  padding: 5px 11px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.05);
}
.venture--featured .venture__tags li:first-child {
  color: var(--torque-400);
  background: rgba(37, 99, 235, 0.14);
}

.venture__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: color 150ms;
}
.venture__link:hover {
  color: var(--torque-400);
}
.venture__link svg {
  flex-shrink: 0;
}

.venture__preview {
  position: relative;
  /* Depth stage for the 3D tilt main.js applies to the frame. */
  perspective: 1100px;
}

.venture__frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--garage-900);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
}

/* Glare streak that slides across the frame glass while tilting.
   Driven by --glare-x / --glare-o from main.js; inert without JS. */
.venture__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.09) 50%,
    transparent 58%
  );
  transform: translateX(var(--glare-x, -120%));
  opacity: var(--glare-o, 0);
}

/* Diagnostic corner brackets main.js draws onto each frame when it
   powers on. Injected by JS only — absent without it. */
.frame-bracket {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid var(--torque-400);
  opacity: 0.55;
  pointer-events: none;
}
.frame-bracket--tl {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
.frame-bracket--tr {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}
.frame-bracket--bl {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}
.frame-bracket--br {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* CRT scanline overlay main.js injects during a frame's power-on. */
.crt-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.32) 2px 4px
  );
}

.venture__browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--garage-900);
  border-bottom: 1px solid var(--border-on-dark);
}

.venture__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.venture__dot--fault {
  background: var(--fault-500);
}
.venture__dot--signal {
  background: var(--signal-400);
}
.venture__dot--clear {
  background: var(--clear-500);
}

.venture__url {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--panel-400);
  margin-left: 10px;
}

.venture__frame img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.venture__badge {
  display: none;
}


.venture__verified-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--panel-400);
}

/* ===== about ===== */

.about__intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

.about__pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  max-width: 960px;
  margin: var(--space-4) auto 0;
  padding: 0;
}

.about__pillar {
  padding: var(--space-3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-on-dark);
}

.about__pillar-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--torque-400);
  margin-bottom: 12px;
}

.about__pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin: 0 0 8px;
}

.about__pillar p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--panel-400);
  margin: 0;
}

/* ===== footer ===== */

.site-footer {
  background: var(--garage-950);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-on-dark);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: var(--space-2);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.site-footer__brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--panel-400);
  margin: 0;
  max-width: 300px;
}

.site-footer__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--panel-400);
  margin-bottom: 14px;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.site-footer__links a {
  font-size: 13px;
  color: var(--panel-300);
}
.site-footer__links a:hover {
  color: #fff;
}

.site-footer__contact a {
  font-size: 13px;
  color: var(--panel-300);
}
.site-footer__contact a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding-top: var(--space-3);
}

.site-footer__copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--panel-400);
}

.site-footer__veteran {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer__veteran-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--panel-400);
}

.site-footer__badges {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-footer__badges img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.82;
}
.site-footer__badge-divider {
  width: 1px;
  height: 30px;
  background: var(--border-on-dark);
}

/* ===== overdrive chrome (all elements below are injected by main.js;
   the no-JS page never renders them) ===== */

/* Terminal boot takeover: a once-per-session diagnostic self-test that
   types out, then wipes up to reveal the page. */
.boot {
  position: fixed;
  inset: 0;
  z-index: 90; /* nav 50 < hud 60 < boot 90 < skip-link 100 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--garage-950);
}

.boot__log {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--panel-300);
  min-width: min(430px, 84vw);
}

.boot__line {
  white-space: pre;
  min-height: 2em;
}

.boot__head {
  color: var(--torque-400);
}

.boot__ok {
  color: var(--clear-500);
}

.boot__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--torque-400);
  animation: boot-blink 800ms steps(1) infinite;
}

@keyframes boot-blink {
  50% {
    opacity: 0;
  }
}

/* Duration must match WIPE_MS in main.js — the overlay is removed from the
   DOM on the same clock. */
.boot--out {
  animation: boot-out 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes boot-out {
  to {
    clip-path: inset(0 0 100% 0);
  }
}

/* HUD scan rail: fixed right-edge scroll telemetry (section + percent). */
.hud {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hud__track {
  position: relative;
  width: 2px;
  height: 150px;
  background: rgba(255, 255, 255, 0.12);
}

.hud__thumb {
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 26px;
  background: var(--torque-400);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}

.hud__label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-400);
}

@media (min-width: 900px) {
  .hud {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== 404 ===== */

.not-found {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}
.not-found a {
  color: var(--torque-400);
}

/* ===== breakpoints (mobile-first) ===== */

@media (min-width: 640px) {
  .hero__title {
    font-size: 44px;
  }
  .section__title {
    font-size: 34px;
  }
  .about__pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .site-nav {
    padding: 0 var(--space-4);
  }
  .hero__inner {
    padding: 120px var(--space-4) 108px;
  }
  .hero__title {
    font-size: 56px;
  }
  .section {
    padding: var(--space-6) var(--space-4);
  }
  .section__title {
    font-size: 40px;
  }
  .about__statement {
    font-size: 28px;
  }

  .venture {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6) 0;
  }
  .venture > .venture__content {
    flex: 1 1 0;
    min-width: 0;
  }
  .venture > .venture__preview {
    flex: 1 1 0;
    min-width: 0;
    max-width: 600px;
  }
  .venture--reversed {
    flex-direction: row-reverse;
  }
  .venture__frame img {
    height: 380px;
  }
  .venture__badge {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: -18px;
    bottom: -18px;
    padding: 12px 16px;
    border-radius: var(--radius-card);
    background: rgba(11, 15, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
  }
  .venture__verified-inline {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
