/* Trinetra landing · black, spacious, one idea per screen.
 * Builds on /assets/site.css (tokens, nav, footer, buttons).
 */

body.landing { background: #000; }
body.landing main { padding-top: 0; }

.wrap { width: min(var(--page), 100%); margin: 0 auto; padding: 0 24px; }

/* ── hero ─────────────────────────────────────────────────────── */

.l-hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-top: -57px; /* slide under the translucent nav */
  padding-top: 57px;
}
.l-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.l-hero::after {
  /* keep the type legible where the rivers run behind it */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.86) 30%, rgba(0, 0, 0, 0.1) 62%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 26%);
}
.l-hero .wrap { padding-bottom: clamp(56px, 9vh, 104px); }
.l-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.l-kicker .pulse {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
}
.l-kicker .pulse::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0;
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.l-title {
  font-size: clamp(3rem, 1.6rem + 5.4vw, 6rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  max-width: 12ch;
  color: var(--ink);
}
.l-title .soft { color: var(--ink-3); }
.l-sub {
  margin-top: 28px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.l-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.l-ticker {
  margin-top: clamp(48px, 8vh, 88px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
  min-height: 46px;
}
.l-ticker .lbl { color: var(--ink-3); flex: none; }
.l-ticker .msg { transition: opacity var(--d-3) var(--ease), transform var(--d-3) var(--ease); }
.l-ticker .msg.out { opacity: 0; transform: translateY(6px); }
.l-ticker .when { margin-left: auto; color: var(--ink-3); flex: none; font-size: 14px; }
@media (max-width: 760px) { .l-ticker .when { display: none; } }

/* ── shared section rhythm ────────────────────────────────────── */

.l-section { padding: clamp(88px, 11vw, 168px) 0 0; }
.l-h2 {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  max-width: 16ch;
}
.l-lede { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

/* ── product shot ─────────────────────────────────────────────── */

.l-shot { margin-top: clamp(48px, 7vw, 88px); position: relative; }
.l-shot::before {
  content: "";
  position: absolute;
  inset: 12% 8% -6% 8%;
  background: radial-gradient(60% 60% at 50% 40%, oklch(0.72 0.15 270 / 0.32), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.l-shot figure {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.1);
  background: var(--surface);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.6), 0 50px 120px -40px oklch(0 0 0 / 0.9);
}
.l-shot img { display: block; width: 100%; height: auto; }
.l-shot figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-3); position: relative; z-index: 1; }

/* ── three ideas ──────────────────────────────────────────────── */

.l-ideas {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 960px) { .l-ideas { grid-template-columns: minmax(0, 1fr); } }
.idea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.idea .viz { height: 210px; margin: -6px -6px 14px; border-radius: 14px; background: #050506; border: 1px solid oklch(1 0 0 / 0.05); overflow: hidden; position: relative; }
.idea .viz svg { width: 100%; height: 100%; display: block; }
.idea h3 { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 600; }
.idea p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.idea .src { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-3); }
.idea a.more { font-size: 15px; font-weight: 550; color: var(--accent-ink); }

/* ── scripts (public safety) ──────────────────────────────────── */

.l-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .l-split { grid-template-columns: minmax(0, 1fr); } }
.scripts { display: flex; flex-direction: column; gap: 6px; }
.scripts .w {
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
  line-height: 1.22;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: var(--font-ui);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.scripts .w:nth-child(2) { color: oklch(0.88 0.004 270); }
.scripts .w:nth-child(3) { color: oklch(0.8 0.006 270); }
.scripts .w:nth-child(4) { color: oklch(0.72 0.008 270); }
.scripts .w:nth-child(5) { color: oklch(0.64 0.01 270); }
.scripts .w:nth-child(6) { color: oklch(0.56 0.012 270); }
.scripts .w small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* ── doctrine ─────────────────────────────────────────────────── */

.l-doctrine .big {
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 560;
  font-variation-settings: "wdth" 104;
  max-width: 14ch;
}
.l-doctrine .big .soft { color: var(--ink-3); }
.l-commit { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
@media (max-width: 860px) { .l-commit { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.l-commit h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 6px; }
.l-commit p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }

/* ── sources marquee ──────────────────────────────────────────── */

.l-sources { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.l-sources .lbl { padding: 22px 0 0; font-size: 14px; color: var(--ink-3); text-align: center; }
.marquee { display: flex; width: max-content; gap: 64px; padding: 22px 0 26px; animation: slide 46s linear infinite; }
.marquee span { font-size: 19px; font-weight: 550; color: var(--ink-2); white-space: nowrap; letter-spacing: -0.005em; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── final call ───────────────────────────────────────────────── */

.l-cta { text-align: center; padding: clamp(110px, 15vw, 210px) 0 0; }
.l-cta .l-h2 { margin: 0 auto; max-width: 14ch; }
.l-cta .l-lede { margin-left: auto; margin-right: auto; }
.l-cta .l-actions { justify-content: center; }

/* ── reveal on scroll (enhances already-visible content) ─────── */

.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 18px 40px; padding: 22px 28px; }
  .reveal.pre { opacity: 1; transform: none; }
  .l-kicker .pulse::after { animation: none; }
}

/* ── witness ledger (idea 3) ──────────────────────────────────── */
.ledger { list-style: none; display: flex; flex-direction: column; gap: 0; padding: 14px 16px; height: 100%; justify-content: center; }
.ledger li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--ink-2); position: relative; }
.ledger li + li::before { content: ""; position: absolute; left: 10px; top: -7px; height: 9px; border-left: 1px solid oklch(0.72 0.15 270 / 0.5); }
.ledger .seq { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: oklch(0.72 0.15 270 / 0.14); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger .act { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ledger code { font-family: var(--font-code); font-size: 11.5px; color: var(--ink-3); background: none; padding: 0; }

.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; }
