/* Epoch Studio — getepochstudio.com
   ==========================================================================
   Palette lifted from the application itself (app/globals.css): near-black canvas,
   electric cyan, magenta, violet, lime. The site should look like the thing it sells.

   Self-contained by requirement: no web fonts, no CDN, no analytics. The only script
   is our own, same-origin. The site's whole claim is that it phones nobody.
   ========================================================================== */

:root {
  --canvas:   #0a0a0a;
  --surface:  #111113;
  --raised:   #18181b;
  --border:   #27272a;
  --border-2: #3f3f46;

  --text:     #ededed;
  --muted:    #c4c4cc;
  --faint:    #8b8b96;

  --cyan:     #33dcf2;
  --cyan-deep:#0fb6d0;
  --magenta:  #ff45b0;
  --violet:   #9b7bff;
  --amber:    #ffb64a;
  --lime:     #57f5a9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --col: 42rem;
}

/* The identity is a lit screen in a dark room. It commits to one world on purpose —
   but the reading pages still answer the viewer's theme, because a privacy policy
   should be comfortable to actually read. */
:root[data-theme="light"] .doc,
:root[data-theme="light"] footer.site { --canvas:#f7f5f0; --surface:#fffefb; --raised:#efece4;
  --border:#ddd8cc; --text:#16181c; --muted:#484c52; --faint:#6f747c; --cyan:#0a7f93; --violet:#5b3fd0; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .doc,
  :root:not([data-theme="dark"]) footer.site { --canvas:#f7f5f0; --surface:#fffefb; --raised:#efece4;
    --border:#ddd8cc; --text:#16181c; --muted:#484c52; --faint:#6f747c; --cyan:#0a7f93; --violet:#5b3fd0; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ── header ──────────────────────────────────────────────────────────────── */
header.site { position: relative; z-index: 3; border-bottom: 1px solid var(--border); background: rgba(10,10,10,.72); backdrop-filter: blur(8px); }
header.site .inner { max-width: var(--col); margin: 0 auto; padding: .9rem 1.4rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-family: var(--mono); font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand em { font-style: normal; color: var(--cyan); }
header.site nav { margin-left: auto; display: flex; gap: 1.2rem; }
header.site nav a { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-decoration: none; }
header.site nav a:hover { color: var(--cyan); }

/* ── one message per screen, everything else is space ────────────────────── */
.screen { min-height: 100svh; display: grid; place-items: center; position: relative; padding: 6rem 0; }
.screen .wrap { text-align: center; }
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 6.5rem); line-height: .96; letter-spacing: -.035em;
  margin: 0; text-wrap: balance;
}
.big { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 8vw, 4.4rem); line-height: 1; letter-spacing: -.03em; margin: 0; }
.whisper { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--faint); margin: 1.6rem 0 0; }
.whisper.mt { margin-top: 1.6rem; }
.tiny { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: #5d5d68; margin: 2.4rem 0 0; }

.open::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 40% at 20% 22%, rgba(51,220,242,.13), transparent 70%),
    radial-gradient(42% 38% at 82% 30%, rgba(255,69,176,.11), transparent 70%);
}
.cue { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .28em; text-transform: uppercase;
  color: #4e4e58; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cue span { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); }

.cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 1.5rem; }
.skip { position: absolute; bottom: 2.2rem; right: 1.4rem; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .12em; color: var(--faint); text-decoration: none; border: 1px solid var(--border-2);
  border-radius: 999px; padding: .38rem .8rem; }
.skip:hover, .skip:focus-visible { color: var(--text); border-color: var(--cyan); }

.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rise.seen { opacity: 1; transform: none; }

/* ── the reading: a tall track with a pinned stage ───────────────────────── */
.rail { position: relative; height: 420vh; }
.pinned { position: sticky; top: 0; height: 100svh; display: grid; align-content: center;
  grid-template-columns: 1fr; gap: 2rem; padding: 0 1.4rem; overflow: hidden; }
@media (min-width: 860px) { .pinned { grid-template-columns: 1.35fr .65fr; align-items: center; max-width: 62rem; margin: 0 auto; } }

.reader { position: relative; height: 58svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
          mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
.meter { position: absolute; top: 0; left: 0; z-index: 2; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.stream { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  gap: 1.15rem; will-change: transform; }
.sl { font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.45;
  color: var(--muted); margin: 0; transition: opacity .25s, color .25s; }
.sl.live { color: var(--text); }
.sl mark { background: none; color: var(--cyan); }
.sl.live mark { color: var(--cyan); text-shadow: 0 0 18px rgba(51,220,242,.5); }

.pinsWrap { min-height: 9rem; }
.pins { display: flex; flex-wrap: wrap; gap: .45rem; align-content: flex-start; }
.pins > span { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; padding: .3rem .6rem;
  border: 1px solid var(--border-2); border-radius: 999px; opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .45s, transform .45s; }
.pins > span.in { opacity: 1; transform: none; }
.chip-p { color: var(--magenta); border-color: rgba(255,69,176,.4) !important; }
.chip-l { color: var(--violet);  border-color: rgba(155,123,255,.4) !important; }
.chip-t { color: var(--lime);    border-color: rgba(87,245,169,.4) !important; }
.found { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--faint); margin-top: 1rem; }

/* ── the ask ─────────────────────────────────────────────────────────────── */
.ask-screen .wrap { max-width: 40rem; }
.ask { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 80px -40px #000; text-align: left; }
.ask-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
  border-bottom: 1px solid var(--border); background: var(--canvas);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--faint); }
.ask-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); flex: none; }
.ask-log { padding: 1.15rem; min-height: 10.5rem; display: flex; flex-direction: column; gap: .5rem; }
.ln { font-family: var(--serif); font-size: 1.04rem; line-height: 1.45; margin: 0; }
.ln.q { font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--magenta); }
.ln.a { color: var(--text); }
.ln.warn { color: var(--amber); }
.ln.refuse { color: var(--amber); font-size: 1.15rem; }
.ln.thinking { font-family: var(--mono); font-size: .7rem; color: var(--faint); letter-spacing: .1em; }
.ln.thinking::after { content: "..."; }
.ln.cite { font-family: var(--mono); font-size: .66rem; color: var(--cyan); opacity: 0; transition: opacity .4s; margin-top: .25rem; }
.ln.cite.in { opacity: .85; }
.ask-row { display: flex; flex-wrap: wrap; gap: .45rem; padding: .9rem 1.15rem 1.05rem;
  border-top: 1px solid var(--border); background: var(--canvas); }
.ask-row button { font-family: var(--mono); font-size: .7rem; color: var(--muted); background: transparent;
  border: 1px solid var(--border-2); border-radius: 999px; padding: .42rem .8rem; cursor: pointer; transition: all .18s; }
.ask-row button:hover { color: var(--text); border-color: var(--cyan); }
.ask-row button.on { color: var(--canvas); background: var(--cyan); border-color: var(--cyan); }
.ask-row button.danger.on { background: var(--amber); border-color: var(--amber); }
.ask-row button[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ── long-form pages ─────────────────────────────────────────────────────── */
.doc { background: var(--canvas); color: var(--text); font-family: var(--serif); font-size: 17px; line-height: 1.62; padding: 2.6rem 1.4rem 4rem; }
.doc > * { max-width: var(--col); margin-left: auto; margin-right: auto; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); max-width: var(--col); }
.doc h2 { font-family: var(--serif); font-size: 1.16rem; margin: 2.6rem auto .7rem; display: flex; align-items: baseline; gap: .7rem; }
.doc h2 .s { font-family: var(--mono); font-size: .68rem; color: var(--cyan); flex: none; padding-top: .16rem; letter-spacing: .06em; }
.doc p, .doc ul { color: var(--muted); }
.doc .meta { font-family: var(--mono); font-size: .72rem; color: var(--faint); line-height: 1.75; margin-bottom: 1.8rem; }
.doc ul { padding-left: 1.15rem; } .doc li { margin-bottom: .5rem; }
.promise { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--cyan); border-radius: 3px; padding: 1.2rem 1.3rem; margin: 1.8rem auto; }
.promise p { margin: 0; color: var(--text); } .promise p + p { margin-top: .75rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 1.4rem 1.3rem; margin: 1.9rem auto; }
.feature > h2 { margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.6rem auto; }
.scroll { overflow-x: auto; margin: 1.1rem auto; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .9rem; font-family: var(--sans); }
th, td { text-align: left; padding: .62rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
th { font-family: var(--mono); font-size: .66rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
td strong { color: var(--text); }
code { font-family: var(--mono); font-size: .88em; background: var(--raised); border: 1px solid var(--border); border-radius: 2px; padding: .05em .35em; }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--border); background: var(--surface); }
footer.site .inner { max-width: var(--col); margin: 0 auto; padding: 1.7rem 1.4rem 3rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--faint); line-height: 1.95; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  .stage { height: 66vh; min-height: 400px; }
  .readout { top: .8rem; font-size: .72rem; }
}

/* ── reduced motion: a real alternate presentation, not a faster animation ──
   Codex's adverse (2026-08-11) caught this: the JS read the preference and only
   skipped typing delays, while the scroll transform, the reveals and a 420vh rail
   all survived. A guard that reads like it protects something and does not is the
   exact defect this project spent the week removing.

   Under reduce, the reading section stops being a scroll performance: the rail
   collapses to a normal block, the prose sits still and fully legible, and the
   extracted entities are simply present. Same information, no motion. */
@media (prefers-reduced-motion: reduce) {
  .rail { height: auto; }
  .pinned { position: static; height: auto; padding: 4rem 1.4rem; }
  .reader { height: auto; -webkit-mask-image: none; mask-image: none; }
  .stream { position: static; transform: none !important; gap: 1rem; }
  .sl { opacity: 1 !important; color: var(--text); }
  .sl mark { text-shadow: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .pins > span { opacity: 1; transform: none; transition: none; }
  .ln.cite { opacity: .85; transition: none; }
  .ask-row button { transition: none; }
  .cue { display: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
