/* =============================================================
   WE ARE DESTINY 3
   An unofficial community concept project.
   ============================================================= */

:root {
  /* --- surface ------------------------------------------------ */
  --void:      #03070D;   /* page ground */
  --deep:      #081019;   /* secondary background */
  --panel:     #0A121B;   /* card surface */
  --panel-hi:  #0D151F;   /* elevated surface */
  --line:      rgba(255, 255, 255, 0.08);
  --line-hi:   rgba(255, 255, 255, 0.13);
  --line-violet: rgba(178, 95, 255, 0.50);

  /* --- ink ---------------------------------------------------- */
  --bone:      #F4F3F0;
  --bone-dim:  #B4B7C0;
  --bone-faint:#737B87;

  /* --- signal ------------------------------------------------- */
  --light:     #A963FF;
  --light-hot: #9B6CFF;
  --light-deep:#3F286F;
  --gold:      #D69653;
  --green:     #47C894;

  /* --- concept type hues (badges, editorial washes, glyphs) ---- */
  --t-vision:    #A963FF;
  --t-design:    #A963FF;
  --t-world:     #6CAEFF;
  --t-lore:      #63A978;
  --t-visual:    #C079FF;
  --t-prototype: #D69653;
  --t-systems:   #6CAEFF;

  /* --- glass -------------------------------------------------- */
  --glass-fill:  rgba(6, 11, 18, 0.74);
  --glass-blur:  22px;
  --glass-sat:   118%;
  --glass-edge:  rgba(255, 255, 255, 0.08);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* --- geometry ----------------------------------------------- */
  border-radius: var(--r-lg);
  --gap: clamp(10px, 1.3vw, 18px);
  --pad: clamp(20px, 5vw, 76px);
  --measure: 62ch;

  /* --- type --------------------------------------------------- */
  --display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --body:    "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* A class that sets `display` beats the hidden attribute's UA rule, which
   silently breaks every JS toggle. Settle it once, globally. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: clamp(15px, 0.55vw + 13px, 17px);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: var(--light); text-decoration: none; }
a:hover { color: var(--light-hot); }

:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
::selection { background: var(--light); color: var(--void); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--light); color: var(--void);
  padding: 12px 20px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* =============================================================
   SITE CHROME AND PRIMITIVES
   One header, one button, one label style — used by every page.
   ============================================================= */

:root {
  /* Page gutter — the shared header aligns to it on every page. */
  --page-pad: clamp(20px, 5.4vw, 70px);
  --rail: 1px solid var(--line);
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 6px;
  --header-h: 64px;
}

/* Fixed header, so every page except the landing needs the offset.
   The landing puts its hero artwork behind the glass instead. */
body { padding-top: var(--header-h); }
body.landing { padding-top: 0; }

/* -------------------------------------------------------------
   Shared primitives
   ------------------------------------------------------------- */

.i { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 11px; height: 11px; }
.i-lg { width: 17px; height: 17px; }
.i-fill { fill: currentColor; stroke: none; }

/* Uppercase tracked micro-label — the workhorse UI type */
.label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bone);
}
.section-label .i { color: var(--light); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bone-faint);
  transition: color .18s var(--ease);
}
.link-more:hover { color: var(--light-hot); }

/* -------------------------------------------------------------
   Frosted glass header — floats over continuous hero artwork
   ------------------------------------------------------------- */

.gheader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--page-pad);

  /* Layered optical glass: translucent navy fill, blur, faint violet
     tint, top highlight, thin bottom edge. The artwork below stays
     faintly readable through it. */
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0) 42%),
    linear-gradient(90deg, rgba(94,40,160,.14), rgba(94,40,160,0) 55%),
    var(--glass-fill);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--glass-inner);
}
/* Bottom edge drawn separately so it can carry a violet centre */
.gheader::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.05), rgba(178,95,255,.26) 38%, rgba(255,255,255,.07));
}
/* Fine grain keeps the blur from reading as a plastic sheet */
.gheader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 172px;
  color: var(--bone);
  position: relative;
}
.brand:hover { color: var(--bone); }
.brand-glyph { width: 26px; height: 26px; color: var(--light); }
.brand-type { display: block; line-height: 1; }
.brand-sub {
  display: block;
  font-family: var(--display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .30em;
  color: var(--bone-dim);
  margin-bottom: 3px;
}
.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  font-stretch: 96%;
  letter-spacing: .012em;
  color: var(--bone);
}
.brand-name em { font-style: normal; color: var(--light); }

/* Landing-only header marks — home.css turns these on. */
.brand-tri, .gdot { display: none; }

.gnav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
  margin-left: auto;
  position: relative;
}
.gnav a {
  position: relative;
  padding: 6px 0;
  color: var(--bone-dim);
  transition: color .18s var(--ease);
}
.gnav a:hover { color: var(--bone); }
.gnav a[aria-current="page"] { color: var(--bone); }
.gnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--light);
  box-shadow: 0 0 9px 1px rgba(169, 99, 255, .55);
}

.gnav-sep {
  width: 1px;
  height: 20px;
  background: var(--line-hi);
  flex: 0 0 auto;
}

.gnav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone-dim);
}
.gnav-github:hover { color: var(--bone); }

/* --- buttons ------------------------------------------------- */

.b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 43px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: filter .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.b-primary {
  color: #FFFFFF;
  border-color: rgba(198,130,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    linear-gradient(120deg, #8F44F0, #A963FF 58%, #7A38D8);
  box-shadow:
    0 0 20px -4px rgba(169,99,255,.60),
    inset 0 1px 0 rgba(255,255,255,.24);
}
.b-primary:hover { filter: brightness(1.11); color: #fff; }
.b-primary:active { filter: brightness(.94); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }

.b-ghost {
  color: var(--bone);
  border-color: var(--line-violet);
  background: rgba(10, 8, 26, .46);
  backdrop-filter: blur(9px);
}
.b-ghost:hover { background: rgba(24, 14, 48, .62); border-color: rgba(198,130,255,.72); color: var(--bone); }


/* =============================================================
   Per-page navigation state
   ============================================================= */

.gheader[data-nav="gallery"]   [data-nav-id="gallery"],
.gheader[data-nav="concepts"]  [data-nav-id="concepts"],
.gheader[data-nav="questions"] [data-nav-id="questions"],
.gheader[data-nav="contribute"] [data-nav-id="contribute"],
.gheader[data-nav="about"]     [data-nav-id="about"] { color: var(--bone); }

.gheader[data-nav="gallery"]   [data-nav-id="gallery"]::after,
.gheader[data-nav="concepts"]  [data-nav-id="concepts"]::after,
.gheader[data-nav="questions"] [data-nav-id="questions"]::after,
.gheader[data-nav="contribute"] [data-nav-id="contribute"]::after,
.gheader[data-nav="about"]     [data-nav-id="about"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--light);
  box-shadow: 0 0 9px 1px rgba(169, 99, 255, .55);
}

/* =============================================================
   Shared parts
   ============================================================= */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 0;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Diamond marker — structural, marks a section start */
.mark {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--light);
  margin-right: 10px;
  vertical-align: 1px;
  box-shadow: 0 0 8px 1px rgba(169,99,255,.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 43px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: filter .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease);
}
.btn-primary {
  color: #FFFFFF;
  border-color: rgba(198,130,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    linear-gradient(120deg, #8F44F0, #A963FF 58%, #7A38D8);
  box-shadow: 0 0 20px -4px rgba(169,99,255,.60), inset 0 1px 0 rgba(255,255,255,.24);
}
.btn-primary:hover { filter: brightness(1.11); color: #fff; }
.btn-ghost {
  color: var(--bone);
  border-color: var(--line-violet);
  background: rgba(10, 8, 26, .46);
}
.btn-ghost:hover { background: rgba(24, 14, 48, .62); border-color: rgba(198,130,255,.72); color: var(--bone); }

/* Status — how settled a concept is. Reads as a progression:
   outline, then solid bone, then lit. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--r-lg);
  border-radius: var(--r-sm);
}
.status::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); }
.status-exploring { color: var(--bone-dim); box-shadow: inset 0 0 0 1px var(--line-hi); }
.status-exploring::before { background: var(--bone-faint); }
.status-direction { color: var(--void); background: var(--bone-dim); }
.status-direction::before { background: var(--void); }
.status-refined { color: var(--void); background: var(--light); }
.status-refined::before { background: var(--void); }

/* =============================================================
   Masthead
   ============================================================= */

.hero {
  position: relative;
  min-height: min(78svh, 720px);
  padding: clamp(28px, 6vh, 56px) var(--pad) clamp(36px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* The Traveler, as geometry. Drifts behind the type. */
.traveler {
  position: absolute;
  top: 50%; right: -14vw;
  width: min(112vh, 92vw);
  aspect-ratio: 1;
  translate: 0 -50%;
  color: var(--line-hi);
  opacity: .5;
  pointer-events: none;
  animation: drift 140s linear infinite;
}
.traveler .glow { color: var(--light); opacity: .5; }
@keyframes drift { to { rotate: 360deg; } }

.hero-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  align-items: baseline;
}

.hero-body { position: relative; margin-top: auto; }

.masthead-sub {
  font-family: var(--display);
  font-size: clamp(1.15rem, 4.4vw, 4.2rem);
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--bone-dim);
  margin: 0 0 clamp(6px, 1vw, 16px);
  text-indent: .2em;
}

.masthead {
  font-family: var(--display);
  font-size: clamp(2.7rem, 11.4vw, 11rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.025em;
  line-height: .84;
  margin: 0;
  color: var(--bone);
}
.masthead em { font-style: normal; color: var(--light); }

.lede {
  max-width: 40ch;
  margin: clamp(22px, 3vw, 36px) 0 0;
  font-size: clamp(1.02rem, 1.1vw + .8rem, 1.42rem);
  line-height: 1.45;
  color: var(--bone-dim);
  font-weight: 300;
}
.lede strong { color: var(--bone); font-weight: 500; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.reveal { opacity: 0; translate: 0 18px; }
.reveal.is-in {
  opacity: 1; translate: 0;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =============================================================
   Filters
   ============================================================= */

.filters {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters:empty { display: none; }

.chip {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: transparent;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  border-radius: var(--r-md);
}
.chip:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-hi); }
.chip[aria-pressed="true"] { color: var(--void); background: var(--light); box-shadow: none; }
.chip .count { margin-left: 8px; opacity: .5; font-size: 10px; }

/* =============================================================
   Board — one card per concept, never per generation
   ============================================================= */

.board { padding: clamp(30px, 5vw, 66px) var(--pad); }

.grid {
  columns: 3 340px;
  column-gap: var(--gap);
}
@media (max-width: 640px) { .grid { columns: 1; } }
/* A state message is prose, not gallery items — it must not get poured
   into the masonry columns. */
.grid.is-empty { columns: 1; }

.card {
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--gap);
  padding: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  transition: background .4s var(--ease), translate .4s var(--ease);
  color: inherit;
}
.card:hover, .card:focus-visible { background: var(--light); translate: 0 -4px; color: inherit; }
.card[hidden] { display: none; }

.card-inner { background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }

.card-media { position: relative; background: var(--deep); overflow: hidden; }
.card-media img { width: 100%; height: auto; transition: scale .8s var(--ease); }
.card:hover .card-media img { scale: 1.035; }

.card-flag {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone);
  background: color-mix(in srgb, var(--void) 78%, transparent);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
}
.card-flag::before { content: ""; width: 6px; height: 6px; background: var(--dark); transform: rotate(45deg); }

.card-text-body { padding: 18px 18px 20px; }

.card-cats {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0 0 8px;
}

.card-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -.005em;
  line-height: 1.2;
  margin: 0;
  color: var(--bone);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px 0 0;
  font-size: .84rem;
  color: var(--bone-faint);
}
.card-by { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.card-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* =============================================================
   Open briefs
   ============================================================= */

.section {
  padding: clamp(30px, 5vw, 66px) var(--pad);
}
.section-tight { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0;
}

.section-note { margin: 0; max-width: 44ch; color: var(--bone-dim); font-size: .95rem; }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--gap);
}

.brief {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 196px;
  padding: 22px;
  background: var(--panel);
  border-radius: var(--r-lg);
  transition: background .35s var(--ease);
}
.brief:hover { background: var(--panel-hi); }

.brief q {
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.24;
  letter-spacing: -.01em;
  color: var(--bone);
  quotes: none;
}

.brief footer {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.brief:hover footer { color: var(--light); }

/* =============================================================
   Concept page
   ============================================================= */

.concept { padding: 0 var(--pad) clamp(50px, 8vw, 110px); }

.concept-head {
  padding: clamp(30px, 5vw, 62px) 0 clamp(24px, 3vw, 38px);
  max-width: 1400px;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.concept-title {
  font-family: var(--display);
  font-size: clamp(2rem, 6.2vw, 5.2rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -.03em;
  line-height: .92;
  margin: 0;
  text-transform: uppercase;
}

.concept-by {
  margin: 18px 0 0;
  color: var(--bone-dim);
  font-size: .98rem;
}
.concept-by a { font-weight: 500; }

/* Hero media — the selected direction, given the room it deserves */
.hero-media {
  padding: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  border-radius: var(--r-lg);
}
.hero-media > * {
  display: block;
  width: 100%;
  background: var(--deep);
  border-radius: var(--r-lg);
}
.hero-media img, .hero-media video { max-height: 78svh; object-fit: contain; }

.hero-caption {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* The idea + sidebar */
.idea {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 820px) { .idea { grid-template-columns: 1fr; } }

.idea-body {
  max-width: 58ch;
  font-size: clamp(1.02rem, .7vw + .85rem, 1.28rem);
  line-height: 1.55;
  color: var(--bone);
  font-weight: 300;
  margin: 0;
}

.side-block { margin-bottom: 26px; }
.side-block h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tools { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.tools li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 7px 11px;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-lg);
  border-radius: var(--r-sm);
}

.side-links { display: flex; flex-direction: column; gap: 8px; }
.side-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.side-links a:hover { color: var(--light); }

/* Key takeaways — the argument, stated as claims */
.takeaways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
  counter-reset: takeaway;
}
.takeaways li {
  position: relative;
  padding: 22px 22px 22px 26px;
  background: var(--panel);
  border-radius: var(--r-lg);
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.28;
  letter-spacing: -.008em;
  color: var(--bone);
}
.takeaways li::before {
  content: "";
  position: absolute;
  left: 22px; top: 30px;
  width: 7px; height: 7px;
  background: var(--light);
  transform: rotate(45deg);
}
.takeaways li { padding-left: 46px; }

/* Selected moments — the 2 seconds from each generation that matter */
.moments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
}

.moment {
  display: block;
  width: 100%;
  padding: 1px;
  border: 0;
  text-align: left;
  cursor: pointer;
  background: var(--line);
  border-radius: var(--r-lg);
  font: inherit;
  color: inherit;
  transition: background .35s var(--ease), translate .35s var(--ease);
}
.moment:hover, .moment:focus-visible { background: var(--light); translate: 0 -3px; }

/* A button may only contain phrasing content, so the moment card is built
   from spans and given block layout here. */
.moment-inner, .moment-media, .moment-text, .moment-label, .moment-from { display: block; }

.moment-inner { background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.moment-media { position: relative; background: var(--deep); aspect-ratio: 16 / 9; }
.moment-media img { width: 100%; height: 100%; object-fit: cover; }

.moment-time {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--bone);
  background: color-mix(in srgb, var(--void) 80%, transparent);
  backdrop-filter: blur(6px);
  padding: 5px 8px;
}

.moment-text { padding: 14px 16px 16px; }
.moment-label {
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 600;
  font-stretch: 110%;
  line-height: 1.25;
  margin: 0;
  color: var(--bone);
}
.moment-from {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Directions — optional grouping above the explorations */
.direction { margin-bottom: clamp(30px, 4vw, 52px); }
.direction:last-child { margin-bottom: 0; }

.direction-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 20px;
}
.direction-name {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--bone);
}
.direction-note { margin: 0; color: var(--bone-dim); font-size: .92rem; max-width: 52ch; }

/* Explorations — evidence under the idea, not entries of their own */
.explorations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
}

.exp { padding: 1px; background: var(--line); border-radius: var(--r-lg); }

.exp-inner {
  background: var(--panel);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.exp-media {
  position: relative;
  background: var(--deep);
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}
.exp-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.exp-media:hover img { scale: 1.04; }

.exp-index {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--bone);
  background: color-mix(in srgb, var(--void) 80%, transparent);
  backdrop-filter: blur(6px);
  padding: 5px 9px;
}

.exp-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.exp-focus {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 110%;
  line-height: 1.25;
  margin: 0;
  color: var(--bone);
}

.verdict { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.verdict li {
  display: flex;
  gap: 10px;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--bone-dim);
}
.verdict li::before {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.55;
}
.verdict .keep::before { content: "\2713"; color: var(--light); }
.verdict .drop::before { content: "\2715"; color: var(--bone-faint); }
.verdict .drop { color: var(--bone-faint); }

.exp-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* =============================================================
   Prose pages — about, contribute
   ============================================================= */

.page { padding: clamp(30px, 5vw, 70px) var(--pad) clamp(50px, 8vw, 110px); }

.page-head { max-width: 1400px; margin-bottom: clamp(30px, 4vw, 54px); }

.page-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 7vw, 5.6rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -.03em;
  line-height: .92;
  margin: 16px 0 0;
  text-transform: uppercase;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: var(--bone-dim); }
.prose strong { color: var(--bone); font-weight: 500; }

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--bone);
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: .01em;
  color: var(--bone);
  margin-top: 1.8em;
}

.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li + li { margin-top: .5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 6px; height: 6px;
  background: var(--light);
  transform: rotate(45deg);
}

.prose pre {
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.65;
  color: var(--bone-dim);
  background: var(--panel);
  padding: 20px;
  overflow-x: auto;
  border-radius: var(--r-lg);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
  vertical-align: top;
}
.prose th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.table-scroll { overflow-x: auto; }

/* =============================================================
   Manifesto band
   ============================================================= */

.band {
  padding: clamp(46px, 8vw, 110px) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--deep);
}

.band-grid {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.band h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: .01em;
  margin: 0 0 10px;
  color: var(--bone);
}
.band p { margin: 0; color: var(--bone-dim); font-size: .95rem; }

.band-lead {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 700;
  font-stretch: 120%;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0 0 clamp(30px, 4vw, 54px);
  max-width: 18ch;
}
.band-lead em { font-style: normal; color: var(--light); }

/* =============================================================
   Lightbox
   ============================================================= */

.lb {
  width: min(1400px, 94vw);
  max-width: none;
  height: min(88svh, 900px);
  max-height: none;
  padding: 1px;
  border: 0;
  background: var(--line-hi);
  color: var(--bone);
  border-radius: var(--r-lg);
  border-radius: var(--r-lg);
}
.lb::backdrop {
  background: color-mix(in srgb, #000 84%, transparent);
  backdrop-filter: blur(12px);
}

.lb-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  background: var(--panel);
  border-radius: var(--r-lg);
}
@media (max-width: 900px) {
  .lb { width: 100vw; height: 100svh; clip-path: none; padding: 0; }
  .lb-layout { clip-path: none; }
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--deep);
  overflow: hidden;
  min-height: 0;
}
.lb-stage img, .lb-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}

.lb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 18px clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}
.lb-bar h2 {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: .005em;
  margin: 0;
  color: var(--bone);
}
.lb-bar p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.lb-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--void) 70%, transparent);
  backdrop-filter: blur(8px);
  color: var(--bone);
  border: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lb-close:hover { background: var(--light); color: var(--void); }

/* =============================================================
   Empty state
   ============================================================= */

.state { padding: clamp(40px, 6vw, 80px) 0; max-width: var(--measure); }
.state h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 14px 0;
}
.state p { color: var(--bone-dim); margin: 0 0 26px; }

/* =============================================================
   Footer
   ============================================================= */

.foot {
  padding: clamp(40px, 6vw, 80px) var(--pad);
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
  border-top: 1px solid var(--line);
}
.foot p { margin: 0 0 12px; color: var(--bone-faint); font-size: .86rem; max-width: 52ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.foot nav a:hover { color: var(--light); }

.disclaimer { color: var(--bone-faint); font-size: .8rem; line-height: 1.6; }

/* =============================================================
   Motion preferences
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; translate: none; }
  .traveler { animation: none; }
}

/* =============================================================
   Concept types
   A label, not a silo. The hue is used only for the glyph and
   the editorial wash, so the palette stays disciplined.
   ============================================================= */

.type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 12px;
  color: var(--hue, var(--light));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue, var(--light)) 45%, transparent);
  background: color-mix(in srgb, var(--hue, var(--light)) 10%, transparent);
  border-radius: var(--r-lg);
  border-radius: var(--r-sm);
}

.type-vision    { --hue: var(--t-vision); }
.type-design    { --hue: var(--t-design); }
.type-world     { --hue: var(--t-world); }
.type-lore      { --hue: var(--t-lore); }
.type-visual    { --hue: var(--t-visual); }
.type-prototype { --hue: var(--t-prototype); }
.type-question  { --hue: var(--gold); }

.glyph { width: 13px; height: 13px; fill: currentColor; flex: 0 0 auto; }
.type-glyph { width: 12px; height: 12px; fill: currentColor; }

.sep { color: var(--bone-faint); margin: 0 2px; }

/* =============================================================
   Hero additions
   ============================================================= */

.hero-question {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--bone);
  margin: clamp(20px, 2.6vw, 32px) 0 10px;
}

.hero-flag {
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Real numbers only. A static site cannot know engagement, so it
   does not pretend to. */
.stats {
  position: absolute;
  top: 50%; right: var(--pad);
  translate: 0 -50%;
  display: grid;
  gap: 2px;
  padding: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  border-radius: var(--r-lg);
}
@media (max-width: 1100px) {
  .stats {
    position: static; translate: none;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: clamp(28px, 4vw, 44px);
  }
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 18px 20px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: blur(10px);
  min-width: 200px;
}
.stat-glyph { width: 22px; height: 22px; fill: var(--light); flex: 0 0 auto; opacity: .8; }
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1;
  color: var(--bone);
}
.stat-label {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.chip-type { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--light) 35%, transparent); }

/* =============================================================
   Editorial cards
   A written concept is not a missing thumbnail. It gets its own
   face: oversized type, its type glyph, and a hue wash.
   ============================================================= */

.editorial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  padding: 26px 24px 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--hue, var(--light)) 26%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--hue, var(--light)) 9%, transparent), transparent 70%),
    var(--deep);
}
.card[data-type="vision"]    .editorial { --hue: var(--t-vision); }
.card[data-type="design"]    .editorial { --hue: var(--t-design); }
.card[data-type="world"]     .editorial { --hue: var(--t-world); }
.card[data-type="lore"]      .editorial { --hue: var(--t-lore); }
.card[data-type="visual"]    .editorial { --hue: var(--t-visual); }
.card[data-type="prototype"] .editorial { --hue: var(--t-prototype); }

.editorial-glyph {
  width: 30px; height: 30px;
  fill: var(--hue, var(--light));
  opacity: .85;
}

.editorial-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--hue, var(--light));
}

.editorial-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.028em;
  line-height: .98;
  text-transform: uppercase;
  color: var(--bone);
}

.editorial-quote {
  margin: 0;
  font-size: .96rem;
  line-height: 1.45;
  color: var(--bone-dim);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* A text card's own title would repeat the editorial face. */
.card-text .card-title { display: none; }

.card-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0 0 8px;
}

.card-summary {
  margin: 10px 0 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--bone-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-featured {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--gap);
}
/* Grid rows stretch, so the card has to fill its cell or it leaves a
   dead band under the meta row. */
.grid-featured .card { height: 100%; }
.grid-featured .card-inner { height: 100%; display: flex; flex-direction: column; }
.grid-featured .editorial,
.grid-featured .card-media { flex: 1 1 auto; }
.grid-featured .card-media img { height: 100%; object-fit: cover; }
.grid-featured .card-text-body { flex: 0 0 auto; }

/* Separates the category run from the type run in the filter bar —
   "Lore" exists as both, and two identical chips read as a bug. */
.chip-divider {
  flex: 0 0 auto;
  align-self: center;
  padding: 0 4px 0 12px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.chip-glyph { width: 11px; height: 11px; fill: currentColor; margin-right: 7px; vertical-align: -1px; }
.card-featured .editorial { min-height: 340px; }
.card-featured .editorial-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }

/* =============================================================
   Concept head additions
   ============================================================= */

.concept-lede {
  max-width: 46ch;
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-size: clamp(1.06rem, .9vw + .85rem, 1.5rem);
  line-height: 1.42;
  font-weight: 300;
  color: var(--bone-dim);
}

.answering {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Meta strip — tools and links, horizontal rather than a sidebar,
   so the body keeps the full measure. */
.rail {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  padding: 26px 0;
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rail-block { min-width: 180px; }
.rail-block h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 0 0 12px;
}
.rail-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rail-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.rail-links a:hover { color: var(--light); }
.rail-note { margin: 0; color: var(--bone-dim); font-size: .9rem; max-width: 40ch; }

/* =============================================================
   Body blocks — the argument itself
   ============================================================= */

.prose-body { max-width: var(--measure); }
.prose-body p {
  margin: 0 0 1.1em;
  font-size: clamp(1.02rem, .6vw + .88rem, 1.22rem);
  line-height: 1.62;
  color: var(--bone-dim);
}
.prose-body p:last-child { margin-bottom: 0; }

.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
}
.claims li {
  position: relative;
  padding: 20px 22px 20px 44px;
  background: var(--panel);
  border-radius: var(--r-lg);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--bone);
}
.claims li::before {
  content: "";
  position: absolute;
  left: 22px; top: 27px;
  width: 6px; height: 6px;
  background: var(--light);
  transform: rotate(45deg);
}

/* Flow — an ordered sequence, arrows between steps.
   The li stays unclipped so its connector can sit outside the step box;
   a clip-path on the li would cut the arrow off. */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46ch;
}
.flow li { position: relative; }
.flow li span {
  display: block;
  padding: 16px 22px;
  background: var(--panel);
  border-radius: var(--r-lg);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  font-stretch: 108%;
  color: var(--bone);
  border-radius: var(--r-md);
}
.flow li + li { margin-top: 36px; }
.flow li + li::before {
  content: "";
  position: absolute;
  left: 28px; top: -30px;
  width: 1px; height: 22px;
  background: linear-gradient(var(--line-hi), var(--light));
}
.flow li + li::after {
  content: "";
  position: absolute;
  left: 24.5px; top: -10px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--light);
}

/* Timeline — a rail with nodes, for lore chronology */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  max-width: 46ch;
  border-left: 1px solid var(--line-hi);
}
.timeline li {
  position: relative;
  padding: 12px 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  font-stretch: 108%;
  letter-spacing: .01em;
  color: var(--bone-dim);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 20px;
  width: 7px; height: 7px;
  background: var(--void);
  box-shadow: 0 0 0 1px var(--line-hi);
  transform: rotate(45deg);
}
.timeline li:last-child { color: var(--bone); }
.timeline li:last-child::before { background: var(--light); box-shadow: none; }

.pull {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.03em;
  line-height: 1.02;
  color: var(--bone);
}
.pull cite {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* =============================================================
   Connections — structured citation, not pasted URLs
   ============================================================= */

.rel-group { margin-bottom: clamp(28px, 3.5vw, 46px); }
.rel-group:last-child { margin-bottom: 0; }

.rel-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0 0 16px;
}
.rel-count {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--bone-faint);
}

.refs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: var(--gap);
}

.ref {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ref-link { display: flex; gap: 16px; padding: 16px; color: inherit; align-items: center; }
.ref-link:hover { background: var(--panel-hi); color: inherit; }

.ref-face {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  background: var(--deep);
  overflow: hidden;
  border-radius: var(--r-lg);
  border-radius: var(--r-md);
}
.ref-face img { width: 100%; height: 100%; object-fit: cover; }
.ref-glyph { width: 26px; height: 26px; fill: var(--light); opacity: .8; }

.ref-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ref-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.ref-title {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  font-stretch: 110%;
  line-height: 1.2;
  color: var(--bone);
}
.ref-by { font-size: .84rem; color: var(--bone-faint); }

.ref-note {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--bone-dim);
  font-style: italic;
}
.ref-note-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* A citation that points at seconds inside someone else's exploration.
   Attribution is rendered from the graph, never typed by hand. */
.mediarefs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

.mediaref { margin: 0; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }

.mediaref-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--deep);
  cursor: pointer;
}
.mediaref-stage img { width: 100%; height: 100%; object-fit: cover; }
.mediaref-stage:hover img { opacity: .85; }

.mediaref-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-left: 18px solid var(--bone);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.6));
}
.mediaref-stage:hover .mediaref-play { border-left-color: var(--light-hot); }

.mediaref-time {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--bone);
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(6px);
  padding: 5px 8px;
}

.mediaref figcaption { padding: 14px 16px 16px; }
.mediaref-note {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 600;
  font-stretch: 110%;
  line-height: 1.25;
  color: var(--bone);
}
.mediaref-attr {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--bone-faint);
}

/* Reverse edges — derived, never maintained by hand */
.backrefs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.backrefs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 18px;
  background: var(--panel);
}
.backrefs li:hover { background: var(--panel-hi); }
.backrefs li a {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 110%;
  color: var(--bone);
}
.backrefs li a:hover { color: var(--light); }
.backref-by { font-size: .84rem; color: var(--bone-faint); }
.backref-detail {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-left: auto;
}

/* =============================================================
   Open questions
   ============================================================= */

.question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
}

.question-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 210px;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--r-lg);
  color: inherit;
  transition: background .35s var(--ease), translate .35s var(--ease);
}
.question-card:hover { background: var(--panel-hi); translate: 0 -3px; color: inherit; }

.question-card q {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.22;
  letter-spacing: -.012em;
  color: var(--bone);
  quotes: none;
}

.question-card footer {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.question-card:hover footer { color: var(--light); }

.question-head { max-width: 24ch; }
.question-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.4vw, 4.4rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.03em;
  line-height: .98;
  margin: 0;
  color: var(--bone);
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(20px, 3vw, 34px) 0;
}

/* =============================================================
   Publish form
   ============================================================= */

.publish .lede { max-width: 52ch; margin-top: 22px; }

.auth { max-width: 620px; }
.auth-card { padding: clamp(26px, 3vw, 40px); background: var(--panel); border-radius: var(--r-lg); border: 1px solid var(--line); }
.auth-title {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.auth-card p { color: var(--bone-dim); margin: 0 0 22px; font-size: .95rem; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-note { margin: 24px 0 0 !important; font-size: .86rem !important; color: var(--bone-faint) !important; }

.who {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: clamp(28px, 4vw, 46px);
  background: var(--panel);
  border-radius: var(--r-lg);
}
.who-avatar {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  background: var(--line-hi) center / cover no-repeat;
  border-radius: var(--r-lg);
  border-radius: var(--r-md);
}
.who-name { margin: 0; font-weight: 500; color: var(--bone); }
.who-sub { margin: 3px 0 0; font-size: .84rem; color: var(--bone-faint); }
.who-sub strong { color: var(--light); font-weight: 500; }
.who .btn { margin-left: auto; }

.fs {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 clamp(30px, 4vw, 52px);
  padding: clamp(26px, 3vw, 38px) 0 0;
}
.fs-legend {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.022em;
  line-height: 1;
  padding: 0;
  color: var(--bone);
}
.fs-note { max-width: 60ch; margin: 16px 0 0; color: var(--bone-dim); font-size: .95rem; }

.field { margin-top: clamp(20px, 2.4vw, 30px); max-width: 620px; }
.field-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 24px;
  max-width: 620px;
}

.field label, .field .label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 8px;
}
.field .opt, .field .hint {
  font-family: var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone-faint);
}
.field .opt { font-size: .8rem; font-weight: 300; }
.field .hint { margin: 0 0 10px; font-size: .86rem; line-height: 1.45; }

.field input[type="text"], .field input:not([type]), .field input[type="number"],
.field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--bone);
  background: var(--panel);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 13px 15px;
  border-radius: var(--r-lg);
  border-radius: var(--r-md);
  transition: box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--light);
}
.field input[type="file"] {
  width: 100%;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--bone-dim);
  padding: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--deep);
}
.field select { appearance: none; cursor: pointer; }

.count { margin: 8px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--bone-faint); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  padding: 9px 14px;
  cursor: pointer;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-lg);
  border-radius: var(--r-sm);
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
  color: var(--bone-dim) !important;
}
.check:has(input:checked) { color: var(--void) !important; background: var(--light); box-shadow: none; }
.check input { accent-color: var(--void); }

.field.checkbox label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--body);
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone-dim);
  line-height: 1.5;
}
.field.checkbox input { accent-color: var(--light); margin-top: 3px; flex: 0 0 auto; }

.repeat { display: flex; flex-direction: column; gap: var(--gap); margin-top: clamp(20px, 2.4vw, 30px); }
.repeat-add { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--gap); }

.row {
  position: relative;
  padding: 22px 60px 26px 24px;
  background: var(--panel);
  border-radius: var(--r-lg);
}
.row .field:first-of-type { margin-top: 14px; }
.row-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--light);
}
.row-remove {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--bone-faint);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .25s var(--ease), box-shadow .25s var(--ease);
}
.row-remove:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-hi); }

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: clamp(10px, 2vw, 20px);
}

.problems {
  margin-top: 24px;
  padding: 20px 24px;
  max-width: 720px;
  background: color-mix(in srgb, #FF5C7A 12%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #FF5C7A 40%, transparent);
  border-radius: var(--r-lg);
}
.problems-title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #FF95A9;
}
.problems ul { margin: 0; padding-left: 18px; }
.problems li { color: var(--bone-dim); font-size: .92rem; line-height: 1.5; }
.problems li + li { margin-top: 6px; }

.preview {
  margin-top: 24px;
  max-width: 820px;
  max-height: 460px;
  overflow: auto;
  padding: 20px;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.6;
  color: var(--bone-dim);
  background: var(--deep);
  border-radius: var(--r-lg);
}

.result {
  margin-top: 30px;
  max-width: 620px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--panel);
  border-radius: var(--r-lg);
  border-radius: var(--r-lg);
}
.result h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 14px 0;
}
.result p { color: var(--bone-dim); margin: 0 0 22px; font-size: .95rem; }

/* Marks a field the form will not submit without. */
.req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--light) 34%, transparent);
  background: color-mix(in srgb, var(--light) 12%, transparent);
  color: var(--light-hot);
  font-family: var(--display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.field .label-text {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 8px;
}
.field.checkbox .req { margin-left: 4px; }

/* Credit name. Not a link — a concept is credited to a name the person chose,
   which points at no account anywhere. */
.by { color: var(--light); font-weight: 500; }

/* =============================================================
   Global header — search, notifications, account
   ============================================================= */

.gheader { height: var(--header-h); gap: clamp(16px, 2vw, 34px); }
.brand { min-width: 148px; gap: 9px; }
.brand-glyph { width: 24px; height: 24px; color: var(--bone); }
.brand-name { font-size: 16px; letter-spacing: .01em; }
.brand-name em { color: var(--light-hot); }
.brand-sub { font-size: 8px; letter-spacing: .32em; }

.gnav { margin-left: 0; gap: clamp(14px, 2vw, 32px); font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.gtools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; }

.gsearch {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 255px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 14, 22, .72);
  color: var(--bone-faint);
}
.gsearch:focus-within { border-color: var(--line-violet); }
.gsearch input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.gsearch input::placeholder { color: var(--bone-faint); }
.gsearch kbd {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--display);
  font-size: 10px;
  color: var(--bone-faint);
}
@media (max-width: 1180px) { .gsearch { width: 180px; } }
@media (max-width: 980px) { .gsearch { display: none; } }

.gicon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 0; border-radius: var(--r-md);
  background: none; cursor: pointer;
  color: var(--bone-dim);
}
.gicon:hover { color: var(--bone); background: rgba(255,255,255,.05); }

.gtools-sep { width: 1px; height: 22px; background: var(--line-hi); }

.guser {
  display: flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--bone-faint);
}
.guser:hover { color: var(--bone-dim); }
.guser-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: linear-gradient(150deg, #3F286F, #16112B);
}

/* Per-page nav state for the expanded item set */
.gheader[data-nav="explore"]    [data-nav-id="explore"],
.gheader[data-nav="concepts"]   [data-nav-id="concepts"],
.gheader[data-nav="demos"]      [data-nav-id="demos"],
.gheader[data-nav="questions"]  [data-nav-id="questions"],
.gheader[data-nav="directions"] [data-nav-id="directions"],
.gheader[data-nav="about"]      [data-nav-id="about"] { color: var(--bone); }

.gheader[data-nav="explore"]    [data-nav-id="explore"]::after,
.gheader[data-nav="concepts"]   [data-nav-id="concepts"]::after,
.gheader[data-nav="demos"]      [data-nav-id="demos"]::after,
.gheader[data-nav="questions"]  [data-nav-id="questions"]::after,
.gheader[data-nav="directions"] [data-nav-id="directions"]::after,
.gheader[data-nav="about"]      [data-nav-id="about"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--light-hot);
}


/* =============================================================
   Contribute — claiming a handle, and previewing the result
   ============================================================= */

/* The form column is capped at 620px; without this it hangs off the left
   edge of a wide page instead of sitting under its own heading. */
.page > #auth-in,
.page > .auth { max-width: 760px; margin-inline: auto; }
#auth-in .field, #auth-in .field-pair { max-width: none; }

.who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.who > div { flex: 1 1 auto; min-width: 0; }
.who-sub {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.who-name { margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--bone); }

.claim {
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-violet);
  border-radius: var(--r-lg);
  background: rgba(24, 14, 48, .34);
}
.claim-title { margin: 0 0 10px; font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.claim-note { margin: 0 0 18px; font-size: .9rem; line-height: 1.5; color: var(--bone-dim); max-width: 56ch; }
.claim-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.claim-at { font-family: var(--mono); font-size: 1.1rem; color: var(--bone-faint); }
.claim-row input {
  flex: 1 1 220px;
  min-width: 0;
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-md);
  background: rgba(6, 10, 18, .7);
  color: var(--bone);
  font: inherit;
}
.claim-row input:focus { outline: none; border-color: var(--light); }
.claim-msg { margin: 12px 0 0; min-height: 1.2em; font-size: .86rem; color: var(--bone-faint); }
.claim-msg[data-kind="ok"] { color: var(--green); }
.claim-msg[data-kind="bad"] { color: #E4737A; }

.claim-set {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-size: .9rem;
  color: var(--bone-dim);
}
.claim-set strong { color: var(--bone); }

/* Nothing can be posted anonymously, so the form waits for a handle. */
.is-locked { opacity: .38; pointer-events: none; }

.preview { margin-top: clamp(24px, 3vw, 34px); }
.preview-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.preview-stage {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #090A0F;
}
.preview-stage:empty::after { content: "Nothing to show yet."; color: var(--bone-faint); }


/* --- rich text editor ----------------------------------------------------- */

.editor {
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  background: rgba(6, 10, 18, .7);
  overflow: hidden;
}
.ed-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.ed-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: none;
  color: var(--bone-dim);
  font-family: var(--body);
  font-size: 13px;
  cursor: pointer;
}
.ed-btn:hover { background: rgba(255, 255, 255, .07); color: var(--bone); }
.ed-btn:active { background: rgba(255, 255, 255, .12); }

.ed-surface {
  min-height: 320px;
  max-height: 70vh;
  overflow-y: auto;
  padding: clamp(16px, 2vw, 26px);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bone);
}
.ed-surface:focus { outline: none; }
.ed-surface:focus-visible { outline: 2px solid var(--light); outline-offset: -2px; }
.ed-surface > :first-child { margin-top: 0; }
.ed-surface p:empty::before { content: ""; display: inline-block; }
.ed-note { margin: 0; padding: 0 12px 10px; font-size: .82rem; color: var(--bone-faint); }

/* The editing surface and the finished article share one set of rules, so
   what is typed is already shaped like what gets published. */
.ed-surface, .prose { word-break: break-word; }
.ed-surface h2, .prose h2 { margin: 1.4em 0 .5em; font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.ed-surface h3, .prose h3 { margin: 1.3em 0 .4em; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.ed-surface p, .prose p { margin: 0 0 1em; }
.ed-surface ul, .ed-surface ol, .prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.ed-surface li, .prose li { margin-bottom: .35em; }
.ed-surface blockquote, .prose blockquote {
  margin: 1.2em 0;
  padding-left: 16px;
  border-left: 2px solid var(--light);
  color: var(--bone);
}
.ed-surface a, .prose a { color: var(--light); text-decoration: underline; }
.ed-surface figure, .prose figure { margin: 1.4em 0; }
.ed-surface img, .prose img { width: 100%; height: auto; border-radius: var(--r-lg); }
.ed-surface figcaption, .prose figcaption {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--bone-faint);
}
.ed-surface hr, .prose hr { margin: 1.6em 0; border: 0; border-top: 1px solid var(--line); }


/* --- concept picker ------------------------------------------------------- */

.picker { position: relative; }
.picker-input {
  width: 100%;
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-md);
  background: rgba(6, 10, 18, .7);
  color: var(--bone);
  font: inherit;
}
.picker-input:focus { outline: none; border-color: var(--light); }
.picker-input:disabled { opacity: .5; cursor: not-allowed; }

.picker-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  background: var(--panel-hi);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .8);
}
.picker-hit {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  text-align: left;
  cursor: pointer;
}
.picker-hit:hover,
.picker-hit[aria-selected="true"] { background: rgba(169, 99, 255, .16); }
.picker-hit-title { display: block; font-size: .95rem; color: var(--bone); }
.picker-hit-meta {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--bone-faint);
}
.picker-none { margin: 0; padding: 10px 11px; font-size: .86rem; color: var(--bone-faint); }

.picker-chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-violet);
  border-radius: var(--r-md);
  background: rgba(24, 14, 48, .4);
}
.picker-chosen-body { flex: 1 1 auto; min-width: 0; }
.picker-chosen-title { display: block; font-size: .95rem; color: var(--bone); text-decoration: underline; }
.picker-clear {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-sm);
  background: none;
  color: var(--bone-dim);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.picker-clear:hover { color: var(--bone); border-color: var(--light); }
