/* Hub minimal AF â€” milky lake Â· 2Ã—2 cards + footer only Â· explore / no deploy */
:root {
  --paper: #f4f2ec;
  --ink: #080a08;
  --ink-soft: #3a3f3a;
  --ink-mute: #6b716b;
  --task: #1cc825;
  --graphic: #ff4818;
  --ascii: #f2e600;
  --lan: #203bf5;
  --r: 12px;
  --max: 920px;
  --neo-out:
    9px 9px 20px rgba(180, 174, 160, 0.45),
    -8px -8px 18px rgba(255, 255, 255, 0.95);
  --neo-out-sm:
    4px 4px 10px rgba(180, 174, 160, 0.4),
    -4px -4px 10px rgba(255, 255, 255, 0.9);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.hub {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}

.lake {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, #ffffff 0%, transparent 55%),
    radial-gradient(90% 70% at 85% 20%, #f0eee6 0%, transparent 50%),
    radial-gradient(70% 60% at 50% 90%, #e8e4d8 0%, transparent 55%),
    linear-gradient(165deg, #faf9f6 0%, #f3f0e8 45%, #ece8de 100%);
}
.lake-wash,
.lake-mist {
  position: absolute;
  inset: -20%;
  opacity: 0.55;
}
.lake-wash {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.85) 0%, transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(230,226,214,0.7) 0%, transparent 45%);
  animation: none;
}
.lake-mist {
  background:
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(255,255,255,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 25% 75%, rgba(236,232,220,0.55) 0%, transparent 55%);
  animation: none;
}
.tap {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 35%, transparent 68%);
  opacity: 0;
  transform: scale(0.35);
  animation: none; opacity: 0;
}
.tap.t1 { top: 18%; left: 12%; }
.tap.t2 { top: 42%; right: 14%; width: 180px; height: 180px; animation-delay: 3.2s; }
.tap.t3 { bottom: 22%; left: 38%; width: 120px; height: 120px; animation-delay: 6.4s; }
.tap.t4 { top: 68%; left: 8%; width: 160px; height: 160px; animation-delay: 8.8s; }

@keyframes lake-drift {
  0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50%  { transform: translate3d(1.2%, 0.8%, 0) scale(1.03); }
  100% { transform: translate3d(0.6%, -0.6%, 0) scale(1.02); }
}
@keyframes tap-ripple {
  0%   { opacity: 0; transform: scale(0.3); }
  8%   { opacity: 0.55; }
  35%  { opacity: 0.2; transform: scale(1.35); }
  60%, 100% { opacity: 0; transform: scale(1.7); }
}

.hub-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.neo-raised {
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(244,242,236,0.88));
  border-radius: var(--r);
  box-shadow: var(--neo-out);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.lake-surface {
  animation: none;
  }
@keyframes surface-breathe {
  0%, 100% {
    box-shadow:
      9px 9px 20px rgba(180, 174, 160, 0.42),
      -8px -8px 18px rgba(255, 255, 255, 0.92);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      11px 12px 24px rgba(180, 174, 160, 0.5),
      -9px -9px 20px rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
  }
}

.runners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.runner-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 16px 16px 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.runner-card:hover {
  transform: translateY(-2px);
  box-shadow:
    12px 14px 28px rgba(180, 174, 160, 0.55),
    -10px -10px 22px rgba(255, 255, 255, 1);
  animation: none;
}
.runner-card .accent {
  align-self: stretch;
  width: 4px;
  border-radius: 2px;
  background: var(--ink);
}
.runner-card[data-runner="task"] .accent { background: var(--task); }
.runner-card[data-runner="graphic"] .accent { background: var(--graphic); }
.runner-card[data-runner="ascii"] .accent { background: var(--ascii); }
.runner-card[data-runner="lan"] .accent { background: var(--lan); }

.stamp {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(8, 10, 8, 0.16);
}

.body .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.num {
  font: 700 11px/1 var(--mono);
  color: var(--ink-mute);
}
.chip {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--neo-out-sm);
  white-space: nowrap;
}
.body h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.one-liner {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 36ch;
}
.neo-cta {
  display: inline-block;
  padding: 8px 12px;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--neo-out-sm);
}

.hub-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-mute);
}
.hub-footer a { color: var(--ink-soft); text-decoration: none; }
.hub-footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .runners { grid-template-columns: 1fr; }
  .hub-shell { padding: 28px 14px 24px; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lake-wash, .lake-mist, .tap, .lake-surface {
    animation: none !important;
  }
  .tap { display: none; }
  .runner-card:hover { transform: none; }
}


/* === hub-footer + legal (pepper) === */
.hub-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  padding: 0.35rem 0.15rem 0.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hub-footer .foot-left { justify-self: start; margin: 0; }
.hub-footer .foot-mid { justify-self: center; margin: 0; }
.hub-footer .foot-right { justify-self: end; margin: 0; }

.hub-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.hub-footer a:hover { color: var(--ink); }

.foot-github {
  opacity: 0.72;
  font-weight: 500;
}
.foot-github:hover { opacity: 1; }

.legal-toggle.neo-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  box-shadow:
    4px 4px 10px rgba(180, 174, 160, 0.45),
    -3px -3px 8px rgba(255, 255, 255, 0.95);
}
.legal-toggle.neo-cta:hover {
  color: var(--ink);
}
.legal-toggle.neo-cta[aria-expanded="true"] {
  box-shadow:
    inset 3px 3px 7px rgba(180, 174, 160, 0.45),
    inset -2px -2px 6px rgba(255, 255, 255, 0.95);
}

.legal-dropup {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 2rem));
  max-height: min(70vh, 560px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow:
    10px 14px 28px rgba(180, 174, 160, 0.45),
    -8px -8px 20px rgba(255, 255, 255, 0.95);
}
.legal-dropup[hidden] { display: none !important; }

.legal-dropup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.legal-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.legal-dropup-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
}
.legal-close.neo-cta {
  border: 0;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    3px 3px 8px rgba(180, 174, 160, 0.45),
    -2px -2px 6px rgba(255, 255, 255, 0.95);
}
.legal-close.neo-cta:hover {
  box-shadow:
    inset 2px 2px 5px rgba(180, 174, 160, 0.45),
    inset -2px -2px 5px rgba(255, 255, 255, 0.95);
}

.legal-dropup-scroll {
  overflow: auto;
  padding-right: 0.25rem;
}
.legal-lead,
.legal-assent {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.legal-summary-grid section {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 88%, rgba(180, 174, 160, 0.45));
  box-shadow:
    inset 2px 2px 5px rgba(180, 174, 160, 0.45),
    inset -2px -2px 5px rgba(255, 255, 255, 0.95);
}
.legal-summary-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-summary-grid p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.legal-links a.neo-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    3px 3px 8px rgba(180, 174, 160, 0.45),
    -2px -2px 6px rgba(255, 255, 255, 0.95);
}
.legal-links a.neo-cta:hover {
  box-shadow:
    inset 2px 2px 5px rgba(180, 174, 160, 0.45),
    inset -2px -2px 5px rgba(255, 255, 255, 0.95);
}

body.legal-open .hub-footer { opacity: 0.55; }

@media (max-width: 720px) {
  .hub-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hub-footer .foot-left,
  .hub-footer .foot-mid,
  .hub-footer .foot-right { justify-self: center; }
  .legal-summary-grid { grid-template-columns: 1fr; }
  .legal-dropup { bottom: 0.75rem; max-height: min(78vh, 640px); }
}


/* === choose prompt + why (pepper) === */
/* Doom: opacity/transform only · soft rail · no boxed neo panel · no blur */
.hub-stage {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px 20px;
  align-items: stretch;
}

.choose-prompt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 18px 4px 18px 0;
  border: 0;
  outline: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.choose-prompt:focus-visible {
  outline: 2px solid rgba(8, 10, 8, 0.25);
  outline-offset: 4px;
}
.choose-prompt:hover,
.choose-prompt.is-primed {
  background: transparent;
  box-shadow: none;
}
.choose-prompt.is-primed .choose-cycle {
  opacity: 0.92;
}

.choose-cycle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 4.5em; /* lock tallest cycle — Doom */
  height: 4.5em;
  overflow: visible;
  padding-left: 14px;
  border-left: 2px solid rgba(8, 10, 8, 0.55);
  contain: layout style;
}
.choose-line {
  position: absolute;
  left: 14px;
  right: 0;
  top: 0;
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.choose-line.is-out {
  opacity: 0;
  transform: translateY(-4px);
}
.silk-wave {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 42%,
    transparent 76%
  );
  transform: translate3d(-30%, 0, 0);
  contain: strict;
}
.silk-wave.is-playing {
  animation: silk-sweep 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes silk-sweep {
  0% { opacity: 0; transform: translate3d(-35%, 0, 0); }
  30% { opacity: 0.55; }
  100% { opacity: 0; transform: translate3d(35%, 0, 0); }
}

.why-panel {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 18px;
  contain: layout paint;
}
.why-panel[hidden] { display: none !important; }
.why-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.why-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.why-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.why-close.neo-cta {
  border: 0;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  box-shadow: var(--neo-out-sm);
}
.why-lead {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 68ch;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.why-grid article {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
  box-shadow: var(--neo-out-sm);
  border-left: 3px solid var(--ink);
}
.why-grid article[data-runner="task"] { border-left-color: var(--task); }
.why-grid article[data-runner="graphic"] { border-left-color: var(--graphic); }
.why-grid article[data-runner="ascii"] { border-left-color: var(--ascii); }
.why-grid article[data-runner="lan"] { border-left-color: var(--lan); }
.why-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.why-grid p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.runner-card {
  contain: layout paint;
  transition: transform 0.15s ease;
}
.neo-raised {
  background: #f7f5ef;
}

@media (max-width: 820px) {
  .hub-stage { grid-template-columns: 1fr; }
  .choose-prompt {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
  }
  .choose-cycle { height: 2.6em; min-height: 2.6em; flex: 1; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .choose-line {
    transition: none !important;
    transform: none !important;
  }
  .silk-wave.is-playing { animation: none !important; opacity: 0; }
  .runner-card { transition: none !important; }
}

/* choose pulse + motivation */
.choose-prompt {
  animation: choose-pulse 3.2s ease-in-out infinite;
}
@keyframes choose-pulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
.choose-cycle {
  /* soft glow pulse on the rail text */
  animation: choose-rail-glow 3.2s ease-in-out infinite;
}
@keyframes choose-rail-glow {
  0%, 100% { filter: none; }
  50% { filter: none; }
}
.choose-line {
  text-shadow: 0 0 0 transparent;
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 480ms ease;
}
.choose-prompt:not(.is-out) .choose-line {
  animation: choose-text-pulse 3.2s ease-in-out infinite;
}
@keyframes choose-text-pulse {
  0%, 100% { opacity: 0.82; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .choose-prompt,
  .choose-cycle,
  .choose-prompt .choose-line {
    animation: none !important;
  }
}
.why-motivation {
  margin: 0 0 0.95rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
  box-shadow: var(--neo-out-sm);
  border-left: 3px solid var(--task);
}
.why-motivation h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.why-motivation p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---- Hub folds (Doom 2026-09-18) — quieter than cards ---- */
.hub-folds {
  max-width: var(--hub-card-max, 920px);
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-fold {
  border: 0;
  background: transparent;
}

.hub-fold__sum {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 40px;
  padding: 10px 4px;
  cursor: pointer;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #080a08);
  font: 600 14px/1.3 var(--font, system-ui, sans-serif);
  box-shadow: none;
}
.hub-fold__sum::-webkit-details-marker { display: none; }
.hub-fold__sum::marker { content: ""; }

.hub-fold__sum:hover {
  background: rgba(8, 10, 8, 0.04);
}
.hub-fold__sum:focus-visible {
  outline: 2px solid rgba(8, 10, 8, 0.35);
  outline-offset: 2px;
}

.hub-fold__chev {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 0.35em;
  border-right: 1.5px solid rgba(8, 10, 8, 0.55);
  border-bottom: 1.5px solid rgba(8, 10, 8, 0.55);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}
.hub-fold[open] .hub-fold__chev {
  transform: rotate(45deg);
}

.hub-fold__label {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hub-fold__hint {
  margin-left: auto;
  font: 500 12px/1.2 var(--mono, ui-monospace, monospace);
  color: var(--ink-mute, #6b716b);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.hub-fold__body {
  padding: 8px 4px 18px 22px;
  color: var(--ink-soft, #3a3f3a);
  font-size: 14px;
  line-height: 1.45;
}

.hub-fold__body .ticks {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.hub-fold__body .ticks i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(8, 10, 8, 0.16);
}

.hub-fold__body h2 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink, #080a08);
}
.hub-fold__body > p {
  margin: 0 0 12px;
}

.hub-fold__body .why-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 720px) {
  .hub-fold__body .why-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
.hub-fold__body .why-grid article {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
}
.hub-fold__body .why-grid h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--ink, #080a08);
}
.hub-fold__body .why-grid p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.hub-fold__body .list-row { min-height: 64px; }
.hub-fold__body .list-note,
.hub-fold__body .fold-coffee {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--ink-mute, #6b716b);
}
.coffee-link { color: inherit; text-underline-offset: 2px; }

/* neutralize leftover .fold pill classes if any remain in markup */
.fold.neo-raised,
.fold.lake-surface,
.list-strip.neo-raised {
  background: transparent !important;
  box-shadow: none !important;
}