/* ============================================================
   Games & Theory prototype website
   Tokens per Brand Style Guide Sections 2, 5, 6 and the website
   sitemap spec v0.7 (dark mode is the site default, owner
   decision 2026-08-21).
   Self-contained: no external fonts, no CDN, no remote requests.
   ============================================================ */

:root {
  /* Brand hues (authoritative, Brand Style Guide 2.1) */
  --cu-gold: #CFB87C;
  --fog-blue: #A6B0C4;
  --rust: #B05D36;

  /* Functional neutrals */
  --ink: #000000;
  --paper: #FFFFFF;
  --slate: #4A5568;
  --mist: #718096;

  /* Dark-mode ground (sitemap spec v0.6/v0.7) */
  --bg: #0B0D12;
  --panel: #12151C;
  --panel-2: #171B24;
  --hairline: #232833;
  --body-text: #C9CDD6;

  /* Motion constants (Brand Style Guide 6.1) */
  --t-hover: 150ms;
  --t-micro: 200ms;
  --t-standard: 400ms;
  --t-emphasis: 600ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --font-brand: "Century Gothic Pro", "Century Gothic", CenturyGothic, Questrial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  /* 8pt baseline grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--font-brand);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Prototype banner (every page) ---------- */
.proto-banner {
  background: var(--rust);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px var(--s2);
}

/* ---------- Header and navigation ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: rgba(11, 13, 18, 0.94);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s2) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: var(--s3); flex-wrap: wrap; }
.site-nav a {
  color: var(--body-text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.site-nav a:hover { color: var(--paper); border-bottom-color: var(--fog-blue); }
.site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--cu-gold); }

/* ---------- Layout ---------- */
main { display: block; }
.band { padding: var(--s6) var(--s4); }
.band--tight { padding-top: var(--s4); padding-bottom: var(--s4); }
.band--panel { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap--narrow { max-width: 760px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--paper); font-weight: 700; line-height: 1.2; }
h1 { font-size: 40px; letter-spacing: -0.01em; }
h2 { font-size: 27px; margin-bottom: var(--s2); }
h3 { font-size: 19px; font-weight: 700; margin-bottom: var(--s1); }
.eyebrow {
  color: var(--fog-blue);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.lede { font-size: 18px; max-width: 68ch; }
.lede-block { margin-top: var(--s3); }
p + p { margin-top: var(--s2); }
.stack > * + * { margin-top: var(--s2); }
.note { color: var(--mist); font-size: 12.5px; line-height: 1.55; }
.cite { color: var(--mist); font-size: 13px; }
strong { color: var(--paper); font-weight: 700; }
a { color: var(--fog-blue); }
a:hover { color: var(--paper); }

.rule { border: none; border-top: 1px solid var(--hairline); margin: var(--s5) 0; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.btn, button.btn {
  font-family: var(--font-brand);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border: 1px solid var(--body-text);
  background: transparent;
  color: var(--body-text);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out),
              border-color var(--t-hover) var(--ease-out);
}
.btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--primary { border-color: var(--cu-gold); color: var(--cu-gold); }
.btn--primary:hover { background: var(--cu-gold); border-color: var(--cu-gold); color: var(--ink); }
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn[aria-pressed="true"], .btn.is-active { background: var(--fog-blue); border-color: var(--fog-blue); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cu-gold); outline-offset: 3px; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: var(--s3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: var(--s3);
}
.card--flat { background: transparent; }
.card h3 { color: var(--cu-gold); }

.facts { list-style: none; }
.facts li {
  padding: var(--s1) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.facts li:last-child { border-bottom: none; }

/* Capability list: label and body separated by layout, not punctuation */
.caps { list-style: none; }
.caps li { padding: var(--s2) 0; border-bottom: 1px solid var(--hairline); }
.caps li:last-child { border-bottom: none; }
.caps .cap-label { display: block; color: var(--cu-gold); font-weight: 700; }
.caps .cap-body { display: block; color: var(--body-text); font-size: 15px; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--hairline);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  color: var(--fog-blue);
  font-size: 15px;
  padding-top: 2px;
}
.steps li:last-child { border-bottom: none; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: var(--s2); border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--fog-blue); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
td.price { font-family: var(--font-mono); color: var(--cu-gold); white-space: nowrap; }
.table-caption { caption-side: bottom; text-align: left; color: var(--mist); font-size: 12.5px; padding-top: var(--s2); }

/* Pricing: the compounding visual sits beside the retainer tiers */
.pricing-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s4); align-items: start; }
.pricing-split .viz { margin-top: 0; }
@media (max-width: 900px) {
  .pricing-split { grid-template-columns: 1fr; }
}

/* ---------- Visualization frames ---------- */
.viz { margin: var(--s4) 0 0; }
.viz canvas { display: block; width: 100%; height: auto; }
.viz-caption { margin-top: var(--s2); color: var(--mist); font-size: 12.5px; max-width: 76ch; }
.viz--ring { margin-top: 0; }
.viz--ring canvas { width: 260px; max-width: 100%; margin: 0 auto; }
.viz-caption .certified { color: var(--body-text); }
.controls { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; margin: var(--s3) 0 var(--s2); }
.readout { font-size: 14px; color: var(--mist); }
.readout strong { color: var(--paper); }
.readout .hit { color: var(--rust); font-weight: 700; }
.slider-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.slider-row label { font-size: 13px; color: var(--mist); }
input[type="range"] { accent-color: var(--fog-blue); width: 170px; vertical-align: middle; }
.detect { font-size: 15px; margin-top: var(--s1); }
.detect .pct { color: var(--cu-gold); font-weight: 700; font-size: 22px; }

/* ---------- Hero (Home) ---------- */
.hero { padding-top: var(--s5); }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: var(--s3); }
.hero-canvas-wrap { margin-top: var(--s4); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-emphasis) var(--ease-out), transform var(--t-emphasis) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Concept 8: question to verdict ---------- */
.qv-question {
  border: 1px solid var(--cu-gold);
  color: var(--paper);
  padding: var(--s2) var(--s3);
  max-width: 46ch;
  font-size: 16px;
}
.qv-subhead { margin-top: var(--s3); margin-bottom: 0; }
.qv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s2); }
.qv-card { border: 1px solid var(--hairline); background: var(--panel-2); padding: var(--s2); }
.qv-card .qv-tag { font-family: var(--font-mono); font-size: 11px; color: var(--fog-blue); letter-spacing: 0.1em; }
.qv-card .qv-text { font-size: 14px; margin-top: var(--s1); min-height: 3.2em; }
.qv-bar { height: 3px; background: var(--hairline); margin-top: var(--s2); }
.qv-bar i { display: block; height: 3px; width: 0; background: var(--fog-blue); transition: width 1200ms var(--ease-out); }
.qv-verdict {
  margin-top: var(--s2); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent; padding: 4px 8px; display: inline-block;
  opacity: 0; transition: opacity var(--t-standard) var(--ease-out);
}
.qv-verdict.is-stamped { opacity: 1; }
.qv-verdict.v-supported { color: var(--cu-gold); border-color: var(--cu-gold); }
.qv-verdict.v-failed { color: var(--rust); border-color: var(--rust); }
.qv-verdict.v-unmet { color: var(--mist); border-color: var(--mist); }

/* ---------- Concept 12: dual recorder ---------- */
.recorder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.recorder-col h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-blue); margin-bottom: var(--s1); }
.rec-row {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px var(--s1);
  border-left: 2px solid var(--hairline);
  color: var(--mist);
  cursor: default;
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.rec-row.is-lit { background: var(--panel-2); color: var(--paper); border-left-color: var(--cu-gold); }
.recorder-col--talk .rec-row { font-family: var(--font-brand); font-size: 13.5px; }

/* ---------- Concept 16: retrieval moment ---------- */
.retrieval-answer {
  border: 1px solid var(--hairline);
  background: var(--panel-2);
  padding: var(--s2) var(--s3);
  margin-top: var(--s3);
  min-height: 128px;
}
.retrieval-answer .ra-head { color: var(--paper); font-size: 15px; }
.retrieval-answer .ra-count { color: var(--cu-gold); font-family: var(--font-mono); font-size: 13px; margin-top: var(--s1); }
.retrieval-answer .ra-prov { font-family: var(--font-mono); font-size: 12px; color: var(--mist); margin-top: 5px; }
.retrieval-answer .ra-empty { color: var(--mist); font-size: 14px; }

/* ---------- Concept 10: decision replay ---------- */
.replay-options { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }

/* ---------- About: flat partner strip (no frames, owner direction) ---------- */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s5) var(--s7);
  margin-top: var(--s4);
}
.partner-mark { max-width: 360px; }
/* Uniform visible cap height. The three lockups have very different
   proportions (a wide single-line wordmark, a two-line lockup, a wordmark with
   a device), so the image box height is tuned per mark to make the letterforms
   read at the same size rather than the boxes. */
.partner-mark > img { width: auto; max-width: 100%; display: block; }
.partner-mark--cu > img { height: 30px; }
.partner-mark--vp > img { height: 50px; }
/* The OEDIT mark is published for light backgrounds only, so it alone sits on
   a minimal white chip sized snug to the mark. */
.pt-chip {
  display: inline-block;
  background: var(--paper);
  border-radius: 5px;
  padding: 5px 9px;
  line-height: 0;
}
.pt-chip img { height: 38px; width: auto; max-width: 100%; display: block; }
.pt-caption { color: var(--mist); font-size: 12px; margin-top: var(--s2); }

/* ---------- Team ---------- */
.person { border-top: 1px solid var(--hairline); padding: var(--s3) 0; }
.person .role { color: var(--cu-gold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.person h3 { margin-bottom: 2px; }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--hairline); background: var(--panel); padding: var(--s3); }
.contact-card .name { color: var(--paper); font-weight: 700; }

/* ---------- Sign-off ---------- */
.signoff {
  text-align: center;
  color: var(--paper);
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: var(--s5) var(--s4) var(--s3);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--panel);
  padding: var(--s6) var(--s4) var(--s4);
  font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--s5); max-width: var(--maxw); margin: 0 auto; }
.site-footer h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-blue); margin-bottom: var(--s2); }
.site-footer h4 ~ h4 { margin-top: var(--s3); }
.site-footer p + p { margin-top: var(--s1); }
.footer-icon { height: 44px; width: auto; display: block; margin-bottom: var(--s2); }
.footer-base {
  max-width: var(--maxw);
  margin: var(--s5) auto 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
  color: var(--mist);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}
.placeholder-note { color: var(--mist); font-style: normal; border-left: 2px solid var(--slate); padding-left: var(--s2); }

/* ---------- Citations, Sources blocks, References page ---------- */
.cite-marker {
  font-size: 11px;
  color: var(--fog-blue);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 3px;
  vertical-align: 1px;
  border-bottom: 1px dotted var(--slate);
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.cite-marker:hover { color: var(--cu-gold); border-bottom-color: var(--cu-gold); }
.sources { border-top: 1px solid var(--hairline); padding-top: var(--s2); }
.sources > summary {
  cursor: pointer;
  color: var(--fog-blue);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s1);
}
.sources > summary::-webkit-details-marker { display: none; }
.sources > summary::before { content: "+"; font-family: var(--font-mono); color: var(--mist); }
.sources[open] > summary::before { content: "\2212"; }
.source-list { margin: var(--s2) 0 0 var(--s3); color: var(--body-text); font-size: 13.5px; }
.source-list li { padding: var(--s1) 0; }
.source-list li:target { color: var(--paper); border-left: 2px solid var(--cu-gold); padding-left: var(--s2); margin-left: calc(var(--s2) * -1); }
.source-list--full { font-size: 15px; }

/* ---------- Engagement affordances for interactives ---------- */
.viz--interactive { position: relative; }
.try-chip {
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid var(--cu-gold);
  color: var(--cu-gold);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 9px;
  pointer-events: none;
}
@keyframes gt-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 176, 196, 0); }
  50% { box-shadow: 0 0 0 5px rgba(166, 176, 196, 0.20); }
}
.btn.is-breathing { animation: gt-breathe 2400ms var(--ease-in-out) infinite; }
@keyframes gt-emphasis {
  from { box-shadow: 0 0 0 0 rgba(207, 184, 124, 0.55); }
  to { box-shadow: 0 0 0 10px rgba(207, 184, 124, 0); }
}
.btn.is-emphasis { animation: gt-emphasis var(--t-emphasis) var(--ease-out) 1; }

/* ---------- About: ladder split and partner logo tiles ---------- */
.ladder-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.ladder-split .viz { margin-top: 0; }

.footer-utility { margin-top: var(--s1); }
.footer-utility a { color: var(--mist); }
.footer-utility a:hover { color: var(--paper); }

/* ---------- Legal utility pages ---------- */
.effective-date { color: var(--mist); font-size: 14px; margin-bottom: var(--s3); }
.draft-notice {
  border: 1px solid var(--rust);
  color: var(--rust);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s2);
  margin-top: var(--s3);
}
.legal { margin-top: var(--s4); }
.legal p { font-size: 15.5px; max-width: 76ch; }
.legal strong { color: var(--cu-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .qv-cards, .recorder, .footer-grid, .ladder-split { grid-template-columns: 1fr; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .band { padding: var(--s5) var(--s3); }
  .site-header .inner { padding: var(--s2) var(--s3); }
  .site-footer { padding: var(--s5) var(--s3) var(--s3); }
}
@media (max-width: 640px) {
  /* Nav collapses onto its own row beneath the wordmark. */
  .site-header .inner { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .brand img { height: 28px; }
  .site-nav { width: 100%; gap: var(--s2) var(--s3); }
  .site-nav a { font-size: 13px; }
  .partner-strip { gap: var(--s4); }
  .partner-mark { max-width: 100%; }
  /* The chip would otherwise sit on top of the controls row. */
  .try-chip { position: static; display: inline-block; margin-bottom: var(--s2); }
  .signoff { font-size: 17px; }
  h1 { font-size: 26px; }
  .lede { font-size: 16px; }
  .controls { gap: var(--s1); }
  .btn--small { padding: 9px 12px; }
}

/* ---------- Reduced motion: static final states everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  .qv-bar i { width: 100% !important; }
  .qv-verdict { opacity: 1; }
  .btn.is-breathing, .btn.is-emphasis { animation: none !important; }
  .btn.is-breathing { box-shadow: 0 0 0 2px rgba(166, 176, 196, 0.28); }
}
