/* Lambert Digital Ventures — one stylesheet for every page.
   Minimal by intent: a single column, two typefaces, one accent. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #16161a;
  --muted: #62626b;
  --line: #e2dfd8;
  --accent: #1f3d5c;
  --focus: #4a7fb5;
  --lattice: 22, 22, 26;      /* rgb triplet for the ambient canvas */
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --surface: #17171a;
    --ink: #eeece7;
    --muted: #9a9aa2;
    --line: #2a2a2f;
    --accent: #a9c6e2;
    --focus: #7fa9d4;
    --lattice: 238, 236, 231;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Ambient lattice: behind everything, faint, pointer-aware. */
#lattice {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#lattice.on { opacity: 1; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 37rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

header { margin-bottom: 4rem; }
.mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 5.5vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
h2 {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.1rem;
}
p { margin: 0 0 1.15rem; }
.muted { color: var(--muted); }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }

/* Staggered reveal once the opening finishes. Scoped to .js so a page
   without script (or before it runs) is never left invisible. */
.js .reveal > * { opacity: 0; transform: translateY(8px); }
.js .revealed .reveal > * {
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.js .revealed .reveal > :nth-child(1) { animation-delay: .05s }
.js .revealed .reveal > :nth-child(2) { animation-delay: .15s }
.js .revealed .reveal > :nth-child(3) { animation-delay: .25s }
.js .revealed .reveal > :nth-child(4) { animation-delay: .35s }
.js .revealed .reveal > :nth-child(5) { animation-delay: .45s }
.js .revealed .reveal > :nth-child(n+6) { animation-delay: .55s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* The status line under the eyebrow: a quiet monospace readout. */
.readout {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}
.readout .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--muted);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0 } }

/* Work list */
.work { list-style: none; margin: 0; padding: 0; }
.work li { border-top: 1px solid var(--line); }
.work li:last-child { border-bottom: 1px solid var(--line); }
.work a.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  text-decoration: none;
}
.work a.item:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.work .name { font-family: var(--serif); font-size: 1.15rem; }
.work .tag { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.work .pill {
  grid-column: 2; grid-row: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.work .pill.live { color: var(--accent); border-color: var(--accent); }

/* Product page */
.highlights { padding-left: 1.1rem; margin: 0 0 1.5rem; }
.highlights li { margin-bottom: 0.4rem; }
.cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
}
.cta:hover { opacity: 0.86; }
.meta { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }
.crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }

/* Form */
form { margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}
button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
}
button:hover { opacity: 0.86; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
footer p { margin: 0; }
/* The dot between "LLC" and the year is the door to the game. */
.egg {
  all: unset;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.2rem;
  border-radius: 4px;
  transition: color .3s, transform .3s;
}
.egg:hover, .egg:focus-visible { color: var(--accent); transform: scale(1.4); }

/* ---- Opening scene ---------------------------------------------------- */
#opening {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #0b0b0e;
  color: #eeece7;
  place-items: center;
  overflow: hidden;
  transition: opacity 1.1s ease;
}
.js #opening { display: grid; }
#opening.fade { opacity: 0; pointer-events: none; }
#opening canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#opening .title {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  transition: opacity 1s ease;
}
#opening .title.show { opacity: 1; }
#opening .title .word {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  letter-spacing: 0.02em;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}
#opening .title.show .word { animation: wipe 1.4s cubic-bezier(.65,0,.2,1) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
#opening .title .rule {
  width: 0; height: 1px; margin: 0.9rem auto 0.8rem;
  background: rgba(238,236,231,.5);
}
#opening .title.show .rule { animation: rule 1.2s .5s cubic-bezier(.65,0,.2,1) forwards; }
@keyframes rule { to { width: 6rem; } }
#opening .title .line {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238,236,231,.6);
  min-height: 1.2em;
}
#opening .skip {
  position: absolute;
  right: 1.25rem; bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238,236,231,.45);
  background: none; border: 0; padding: .4rem .6rem; cursor: pointer;
  opacity: 0; transition: opacity .6s;
}
#opening .skip.show { opacity: 1; }
#opening .skip:hover { color: rgba(238,236,231,.9); }

/* ---- Game ------------------------------------------------------------- */
#game {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11,11,14,.96);
  color: #eeece7;
  display: none;
  place-items: center;
}
#game.open { display: grid; }
#game canvas { display: block; max-width: 100vw; max-height: 100vh; touch-action: none; outline: none; }
#game .close {
  position: absolute; right: 1rem; top: 0.8rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(238,236,231,.55); background: none; border: 0; padding: .4rem .6rem; cursor: pointer;
}
#game .close:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal > * { opacity: 1; transform: none; }
  .js .revealed .reveal > * { animation: none; }
  #opening .title.show .word, #opening .title.show .rule { animation-duration: .01s; animation-delay: 0s; }
  #lattice { transition: none; }
  .readout .cursor { animation: none; }
}
