/* Big Picture Thinking front page only.
   Loaded after /styles.css and scoped to body.front, so the audition
   sub-pages never see any of this. Palette is the shared one:
   black #0a0a0a, white #f4f4f4, grey #8c8c8c, gold #e8b859. */

:root {
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body.front { overflow-x: hidden; }

/* top bar sits over the hero, no hairline */
body.front .top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  border-bottom: 0; min-height: 72px;
}
body.front .top .wrap { display: flex; align-items: center; width: 100%; }
body.front .top .spacer { flex: 1; }
body.front .top .sig {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted); border: 0;
}
body.front .top .sig i { font-style: normal; color: var(--gold); }

/* hero */
.front-hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.front-hero .net {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none; display: block;
}
.front-hero .net-static { opacity: 0.6; }
.js .front-hero .net-static { display: none; }
.js .front-hero canvas.net { display: block; }
.front-hero canvas.net { display: none; }

/* soft floor so the hero settles into the page below */
.front-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, rgba(10,10,10,0), var(--bg));
  z-index: 1; pointer-events: none;
}

.front-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 72px; }

.front-hero .index {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 22px;
}

.front-hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(2.9rem, 9.4vw, 7.2rem);
  line-height: 0.98;
  text-wrap: balance;
  max-width: 11ch;
}
/* the full stop is a gold node; front.js uses it as the hub of the network */
.front-hero h1 .hub {
  display: inline-block; vertical-align: baseline;
  width: 0.16em; height: 0.16em; margin-left: 0.08em;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0.35em rgba(232,184,89,0.45);
}

.front-hero .lede {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  max-width: 40ch;
  line-height: 1.5;
}
.front-hero .lede b { color: var(--fg); font-weight: 500; }

.front-hero .cta {
  margin: 36px 0 0; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
}
.front-hero .cta a { border: 0; color: var(--fg); }
.front-hero .cta a::before { content: "> "; color: var(--gold); }
.front-hero .cta a:hover { color: var(--gold); }

/* live readout from the canvas, bottom left of the hero */
.front-hero .readout {
  position: absolute; left: max(24px, calc((100% - 860px) / 2 + 24px)); bottom: 28px; z-index: 2;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--muted); display: flex; gap: 18px; margin: 0;
}
.front-hero .readout span::before { content: attr(data-k) " "; opacity: 0.55; }
.front-hero .readout span { font-variant-numeric: tabular-nums; }

/* scroll cue: a single hairline that breathes */
.front-hero .cue {
  position: absolute; right: max(24px, calc((100% - 860px) / 2 + 24px)); bottom: 28px; z-index: 2;
  width: 1px; height: 44px; background: var(--muted); opacity: 0.6;
  transform-origin: top; animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.25; }
  50%      { transform: scaleY(1);    opacity: 0.7; }
}

/* entrance */
.js .front-hero .wrap > * { opacity: 0; transform: translateY(10px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .front-hero .index { animation-delay: 0.05s; }
.js .front-hero h1    { animation-delay: 0.15s; }
.js .front-hero .lede { animation-delay: 0.3s; }
.js .front-hero .cta  { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* apps: a ledger, easy to add rows to */
body.front section.front-apps { padding: 72px 0 80px; border-top: 1px solid var(--hair); }
.front-apps .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 10px;
}
.front-apps .eyebrow { margin: 0; }
.front-apps .count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }

.front-apps .ledger { list-style: none; margin: 0; padding: 0; }
.front-apps .ledger li { border-top: 1px solid var(--hair); }
.front-apps .ledger li:last-child { border-bottom: 1px solid var(--hair); }
.front-apps .ledger a.row {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 20px;
  padding: 26px 4px; border: 0;
}
.front-apps .ledger .no { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; }
.front-apps .ledger .no::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); margin-right: 10px; vertical-align: middle; transition: background .2s ease, box-shadow .2s ease;
}
.front-apps .ledger a.row:hover .no::before { background: var(--gold); box-shadow: 0 0 8px rgba(232,184,89,0.6); }
.front-apps .ledger .name { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; transition: color .2s ease; }
.front-apps .ledger .desc { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.front-apps .ledger a.row:hover .name { color: var(--gold); }
.front-apps .ledger .tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.front-apps .ledger a.row:hover .tag { border-color: rgba(232,184,89,0.5); color: var(--fg); }

/* footer */
body.front footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.front footer .mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }

@media (max-width: 640px) {
  .front-hero .wrap { padding-top: 96px; padding-bottom: 96px; }
  .front-hero .readout { bottom: 20px; left: 24px; gap: 12px; }
  .front-hero .cue { display: none; }
  .front-apps .ledger a.row { grid-template-columns: 1fr; gap: 10px; }
  .front-apps .ledger .tag { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .front-hero .cue { animation: none; transform: scaleY(1); opacity: 0.4; }
  .js .front-hero .wrap > * { animation: none; opacity: 1; transform: none; }
  .front-hero h1 .hub { box-shadow: none; }
  body.front a, body.front .ledger .no::before { transition: none; }
}
