/* LBP.DEV, LLC — holding-company landing page.
   Theme ported from the lbp.dev retro CRT landing (chat PR #1):
   charcoal shell, mint phosphor, scanlines, Departure Mono display. */

@font-face {
  font-family: "Departure Mono";
  src: url("assets/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the brand kit palette — branding/social/templates */
  --bg-edge: #3a3a3b;
  --bg-mid: #4d4d4d;
  --bg-glow: #727374;
  --mint: #9cf5e4;
  --mint-hi: #dcf5f6;
  --crt-blue: #2493c4;
  --cream: #d9ceb7;
  --label: #c6c8cc;
  --screen: #101614; /* monitor glass, sampled from the mark */

  --ink-on-mint: #1c2a27;
  --line: rgba(198, 200, 204, 0.18);
  --screen-line: rgba(156, 245, 228, 0.14);

  --display: "Departure Mono", "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg-edge);
}

body {
  margin: 0;
  font-family: var(--mono);
  background:
    radial-gradient(
      1100px 720px at 68% -12%,
      rgba(114, 115, 116, 0.32),
      transparent 62%
    ),
    var(--bg-edge);
  color: var(--cream);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* the whole page sits behind CRT glass: fixed vignette + faint scanlines.
   pointer-events off, ~3% effective darkness — decoration, never a veil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    130% 130% at 50% 38%,
    transparent 62%,
    rgba(0, 0, 0, 0.26) 100%
  );
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.38) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.08;
}

a {
  color: inherit;
}

::selection {
  background: var(--mint);
  color: var(--ink-on-mint);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ---- nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--mint);
  text-decoration: none;
}
.nav-mark {
  height: 30px;
  width: auto;
  image-rendering: pixelated;
}
.wordmark .dot {
  color: var(--crt-blue);
}
.nav-email {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--label);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.nav-email:hover {
  color: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 20px rgba(156, 245, 228, 0.22);
}

/* ---- hero ---- */
.hero {
  padding-block: clamp(40px, 7vw, 80px) clamp(36px, 5vw, 56px);
}
.eyebrow {
  display: flex;
  align-items: center;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--label);
}
.eyebrow .slash {
  color: var(--crt-blue);
  font-weight: 600;
}
.hero-h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--cream);
}
/* unbreakable phrase units — the only legal break is between them,
   so the headline is one line when it fits, else exactly 2+2 words */
.h1-unit {
  white-space: nowrap;
}
.hero-h1 .mint {
  color: var(--mint);
  text-shadow: 0 0 22px rgba(156, 245, 228, 0.35);
}
.cursor-block {
  display: inline-block;
  width: 0.5em;
  height: 0.82em;
  margin-left: 0.12em;
  vertical-align: baseline;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(156, 245, 228, 0.55);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.hero-sub {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--label);
}

/* ---- the projects panel: the index, on actual glass ---- */
.ventures {
  position: relative;
  background: var(--screen);
  border: 1px solid var(--screen-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 46px rgba(36, 147, 196, 0.16),
    inset 0 0 70px rgba(36, 147, 196, 0.07);
}
.ventures::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.14;
}
.v-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(156, 245, 228, 0.1);
  background: rgba(156, 245, 228, 0.04);
}
.v-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--label);
}
.v-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(198, 200, 204, 0.6);
}
.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(156, 245, 228, 0.7);
  animation: live-pulse 2.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.v-body {
  padding: 14px 16px 12px;
}
.v-prompt {
  margin: 0;
  padding-inline: 8px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--cream);
}
.v-dollar {
  color: var(--crt-blue);
  font-weight: 600;
}
.v-typing-cursor {
  margin-left: 3px;
}
.v-idle {
  margin-top: 8px;
}
.js-hide {
  visibility: hidden;
}

.v-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.venture {
  display: block;
  padding: 11px 8px;
  text-decoration: none;
  border-radius: 3px;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}
.venture:hover {
  background: rgba(156, 245, 228, 0.05);
  box-shadow: inset 0 0 28px rgba(156, 245, 228, 0.05);
}
/* hidden state for the boot sequence — applied by JS only */
.venture.row-hidden {
  opacity: 0;
  transform: translateY(4px);
}

.v-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.v-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 2px;
  flex: 1;
  min-width: 0;
}
.v-dot {
  flex: none;
  align-self: center;
  width: 7px;
  height: 7px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(156, 245, 228, 0.7);
  animation: live-pulse 2.2s ease-in-out infinite;
}
.v-dot--wip {
  background: var(--crt-blue);
  box-shadow: 0 0 10px rgba(36, 147, 196, 0.7);
  animation: none;
}
.v-dot--client {
  background: var(--label);
  box-shadow: none;
  animation: none;
}
.v-name {
  font-family: var(--display);
  font-size: 17px;
  color: var(--cream);
  transition:
    color 0.15s ease,
    text-shadow 0.15s ease;
}
.venture:hover .v-name {
  color: var(--mint);
  text-shadow: 0 0 16px rgba(156, 245, 228, 0.45);
}
.v-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mint);
}
.v-status::before {
  content: "[";
}
.v-status::after {
  content: "]";
}
.v-status--wip {
  color: var(--crt-blue);
}
.v-status--client {
  color: var(--label);
}
.v-dots {
  flex: 1;
  min-width: 28px;
  border-bottom: 2px dotted rgba(198, 200, 204, 0.3);
  transform: translateY(-5px);
}
.v-domain {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  color: var(--label);
  transition: color 0.15s ease;
}
.venture:hover .v-domain {
  color: var(--mint);
}
.v-arrow {
  display: inline-block;
  color: var(--label);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.venture:hover .v-arrow {
  color: var(--mint);
  transform: translate(2px, -2px);
}
.v-desc {
  display: block;
  margin: 5px 0 0 19px; /* under the name: dot (7px) + gap (12px) */
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--label);
}

/* CRT power-on: the one orchestrated moment, then quiet */
.crt-on {
  animation: crt-on 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes crt-on {
  0% {
    transform: scaleY(0.006) scaleX(0.7);
    filter: brightness(5);
  }
  40% {
    transform: scaleY(0.006) scaleX(1);
    filter: brightness(5);
  }
  100% {
    transform: none;
    filter: none;
  }
}

/* ---- footer ---- */
.foot-section {
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
main {
  padding-bottom: clamp(56px, 8vw, 96px);
}
.foot-art {
  display: block;
  margin: clamp(40px, 6vw, 64px) auto 0;
  width: 200px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 34px rgba(36, 147, 196, 0.28));
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--label);
}
.foot a {
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.foot a:hover {
  color: var(--mint);
  border-color: var(--mint);
}
.foot-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.foot-socials a {
  display: inline-flex;
  border-bottom: none;
  padding-bottom: 0;
  transition:
    color 0.15s ease,
    filter 0.15s ease;
}
.foot-socials a:hover {
  color: var(--mint);
  filter: drop-shadow(0 0 8px rgba(156, 245, 228, 0.5));
}
.foot-socials svg {
  width: 17px;
  height: 17px;
}
.foot-note {
  color: rgba(198, 200, 204, 0.55);
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .v-dots {
    display: none;
  }
  /* steady rhythm: dot+name on line one, status+domain+arrow below it */
  .v-meta {
    flex-basis: 100%;
    margin-left: 19px;
    column-gap: 10px;
  }
  .v-status {
    letter-spacing: 0.1em;
  }
}
@media (max-width: 640px) {
  .foot-art {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .cursor-block {
    animation: none !important;
    opacity: 1;
  }
  [data-typing-cursor] {
    display: none;
  }
  .venture.row-hidden {
    opacity: 1;
    transform: none;
  }
}
