/* Evalab — ghost-light black-box theater. Tungsten bulb, velvet, gaff tape, prompt book. */
/* data-redesign="ghostlight-blackbox-20260824" */

:root {
  --paper: #efe4cd;
  --program: #f7efdc;
  --ink: #16120f;
  --mute: #6a5e52;
  --stage: #1a1614;
  --stage-2: #12100e;
  --velvet: #7a1f32;
  --velvet-hot: #9a2840;
  --ghost: #f6c45a;
  --ghost-hot: #ffd978;
  --cue: #5a8cac;
  --cue-2: #a4c1d5;
  --cue-3: #4b7895;
  --gaff: #d4b429;
  --oak: #9a7348;
  --mist: #c9bba6;
  --rule: #d8c9a8;
  --max: 1120px;
  --display: Palatino, "Palatino Linotype", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Trebuchet MS, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(246, 196, 90, 0.35); color: var(--ink); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 1.4px 0.7px at 50% 60%, rgba(22, 18, 15, 0.14) 70%, transparent 72%),
    radial-gradient(ellipse 80% 50% at 8% 0%, rgba(122, 31, 50, 0.07), transparent 55%),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(154, 115, 72, 0.07) 28px 29px);
  background-size: 22px 16px, auto, auto;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background: repeating-conic-gradient(from 12deg at 50% 50%, transparent 0 12deg, rgba(22, 18, 15, 0.5) 12deg 12.4deg);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { margin: 0 0 1rem; font-size: clamp(2.3rem, 5vw, 3.35rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.12rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font-family: inherit; }

a { color: var(--ink); }
a:hover { color: var(--velvet); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--ghost);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 4.5rem)); margin: 0 auto; position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 80; background: var(--program); padding: 0.4rem 0.7rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, #221c18 0%, var(--stage) 55%, var(--stage-2) 100%);
  border-bottom: 3px solid var(--gaff);
  box-shadow: 0 12px 28px rgba(18, 16, 14, 0.28);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ghost);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}
.wordmark svg { width: 28px; height: 28px; flex: 0 0 28px; }
.wordmark:hover { color: var(--ghost-hot); }
.wordmark .bulb { animation: glow 2.8s ease-in-out infinite; }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--program);
  border: 1px solid var(--gaff);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.nav-list a { color: var(--program); text-decoration: none; }
.nav-list a:hover { color: var(--ghost); }
.nav-list a[aria-current="page"] { color: var(--ghost); }

.btn {
  display: inline-block;
  background: var(--velvet);
  color: #f7efdc !important;
  text-decoration: none;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { background: var(--velvet-hot); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: rgba(22, 18, 15, 0.06); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }
.hero-actions .btn-ghost { color: var(--program) !important; border-color: var(--ghost); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cue-3);
}
.ghost-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ghost);
  box-shadow: 0 0 10px var(--ghost);
  animation: glow 2.8s ease-in-out infinite;
}
.lede { font-size: 1.12rem; color: var(--mute); max-width: 38rem; }

.hero-band {
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(246, 196, 90, 0.12), transparent 60%),
    linear-gradient(180deg, var(--stage-2) 0%, #241c18 72%, var(--paper) 72.1%);
  padding: 3.2rem 0 0;
  color: var(--program);
}
.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 2.4rem;
}
.hero h1 { color: var(--program); }
.hero .lede { color: var(--mist); }
.hero .kicker { color: var(--ghost); }

.proscenium {
  position: relative;
  background: var(--stage);
  border-radius: 12px 12px 4px 4px;
  padding: 1.1rem 1rem 0.85rem;
  box-shadow:
    0 0 0 3px #2a221c,
    0 22px 40px rgba(12, 10, 8, 0.45);
  overflow: hidden;
}
.proscenium::before,
.proscenium::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.proscenium::before {
  left: 0;
  background: linear-gradient(90deg, rgba(122, 31, 50, 0.72), transparent);
}
.proscenium::after {
  right: 0;
  background: linear-gradient(270deg, rgba(122, 31, 50, 0.72), transparent);
}
.fly {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gaff);
  margin-bottom: 0.65rem;
  padding: 0 0.2rem;
}
.cues { display: flex; gap: 0.35rem; }
.cue-lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3330;
}
.cue-lamp.on { background: var(--ghost); box-shadow: 0 0 8px var(--ghost); animation: wink 1.8s ease-in-out infinite; }
.cue-lamp.blue { background: var(--cue); box-shadow: 0 0 8px var(--cue); animation: wink 2.2s 0.4s ease-in-out infinite; }

.console {
  position: relative;
  z-index: 1;
  background: #201c1a;
  border: 1px solid #3a3330;
  border-radius: 10px;
  overflow: hidden;
  color: #e8e4d8;
  font-size: 0.82rem;
}
.console-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: #141210;
  border-bottom: 1px solid #3a3330;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.ak {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--velvet);
  color: var(--program);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.console-grid {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  min-height: 320px;
}
.console-side {
  background: #171412;
  border-right: 1px solid #3a3330;
  padding: 0.7rem 0.55rem;
  font-size: 0.72rem;
}
.console-side p {
  margin: 0.65rem 0 0.25rem;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.console-side a,
.console-side span {
  display: block;
  padding: 0.22rem 0.35rem;
  border-radius: 6px;
  color: #d8d0c4;
  text-decoration: none;
}
.console-side a:hover,
.console-side span.is-on {
  background: rgba(90, 140, 172, 0.18);
  color: var(--cue-2);
}
.console-main { padding: 0.85rem 0.9rem 1rem; }
.console-main h3 { color: var(--program); font-size: 1rem; margin: 0 0 0.35rem; }
.sub { color: var(--mist); font-size: 0.8rem; margin-bottom: 0.75rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0.75rem; }
.chip {
  background: #2a2420;
  color: #e8e4d8;
  border: 1px solid #4a4038;
  border-radius: 8px;
  padding: 0.22rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--mono);
}
.chip:hover { border-color: var(--cue); }
.chip.is-on {
  background: rgba(90, 140, 172, 0.22);
  border-color: var(--cue);
  color: var(--cue-2);
}
.chip-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0.15rem 0 0.2rem;
}
.session {
  display: flex;
  gap: 0.4rem;
  margin: 0.4rem 0 0.55rem;
}
.session button {
  background: #2a2420;
  color: #e8e4d8;
  border: 1px solid #4a4038;
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  font-size: 0.78rem;
}
.session button.is-on {
  background: var(--ghost);
  color: var(--ink);
  border-color: var(--ghost);
}
.note { font-size: 0.78rem; color: var(--mute); }
.describe {
  width: 100%;
  background: #141210;
  color: #e8e4d8;
  border: 1px solid #4a4038;
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0.4rem 0 0.7rem;
  resize: vertical;
  min-height: 2.6rem;
}

.house {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem 0 0.4rem;
}
.house p { color: var(--mute); margin: 0; font-size: 0.92rem; }
.seat-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.seat {
  width: 28px;
  height: 22px;
  border: 1.5px solid var(--oak);
  border-radius: 6px 6px 3px 3px;
  background: transparent;
}
.seat.lit { background: rgba(246, 196, 90, 0.35); }

.section { padding: 3.4rem 0; }
.section.stagey {
  background: linear-gradient(180deg, #1f1a17, var(--stage-2));
  color: var(--program);
}
.section.stagey .lede,
.section.stagey .sub,
.section.stagey p { color: var(--mist); }
.section.stagey h2,
.section.stagey h3 { color: var(--program); }

.steps {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.6rem;
  margin-top: 1.6rem;
}
.step-nav { display: flex; flex-direction: column; gap: 0.45rem; }
.step-btn {
  text-align: left;
  background: transparent;
  color: inherit;
  border: 1px solid #3a3330;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
}
.step-btn strong { display: block; font-family: var(--display); font-size: 1.02rem; }
.step-btn span { display: block; font-size: 0.8rem; color: var(--mist); margin-top: 0.15rem; }
.step-btn.is-on {
  border-color: var(--ghost);
  background: rgba(246, 196, 90, 0.08);
}
.step-panel { display: none; }
.step-panel.is-on { display: block; }

.status { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.status th,
.status td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #3a3330;
  font-family: var(--mono);
}
.status th { color: var(--mute); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pill {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  background: rgba(90, 140, 172, 0.22);
  color: var(--cue-2);
  font-size: 0.72rem;
}
.pill.warn {
  background: rgba(122, 31, 50, 0.35);
  color: #f0c4c8;
}

.env {
  background: #141210;
  border: 1px solid #3a3330;
  border-radius: 10px;
  overflow: hidden;
}
.env-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: #1c1816;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gaff);
}
.env pre {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #d8d0c4;
  white-space: pre-wrap;
}
.env.flipped pre { color: var(--cue-2); }
.ok {
  margin: 0.7rem 0 0;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.stat {
  border: 1px solid #3a3330;
  border-radius: 10px;
  padding: 0.7rem;
}
.stat b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ghost); }

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.grid2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--program);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: 0 8px 18px rgba(22, 18, 15, 0.05);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--velvet); color: inherit; }
.card .mark {
  width: 36px;
  height: 36px;
  margin-bottom: 0.7rem;
}
.card p { color: var(--mute); font-size: 0.92rem; }

.cta {
  margin: 0.4rem 0 3.6rem;
  padding: 2.2rem 2rem;
  background:
    radial-gradient(ellipse 40% 80% at 90% 20%, rgba(246, 196, 90, 0.18), transparent 55%),
    var(--stage);
  color: var(--program);
  border-radius: 12px;
  border: 3px solid var(--gaff);
}
.cta h2 { color: var(--program); }
.cta p { color: var(--mist); max-width: 38rem; }

.site-footer {
  background: var(--stage-2);
  color: var(--mist);
  padding: 2.4rem 0 1.6rem;
  border-top: 3px solid var(--velvet);
  font-size: 0.9rem;
}
.site-footer a { color: var(--program); text-decoration: none; }
.site-footer a:hover { color: var(--ghost); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.foot-grid h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gaff);
  margin-bottom: 0.55rem;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0.28rem 0; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #3a3330;
  padding-top: 1rem;
  font-size: 0.82rem;
}

.page { padding: 3rem 0 4rem; }
.page h1 { max-width: 22ch; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.6rem 0 2rem;
}
.plan .price {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0.3rem 0 0.6rem;
}
.article-list { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.article-list article {
  background: var(--program);
  border-left: 4px solid var(--gaff);
  padding: 1rem 1.1rem;
  border-radius: 0 10px 10px 0;
}
.doc {
  background: var(--program);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
}
.doc pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--stage);
  color: var(--cue-2);
  padding: 0.9rem;
  border-radius: 8px;
  overflow: auto;
}
form { display: grid; gap: 0.45rem; max-width: 28rem; }
label { font-size: 0.85rem; font-weight: 600; }
input, textarea, select {
  border: 1px solid var(--oak);
  background: var(--program);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font: inherit;
}
.illust {
  margin: 0 0 1.6rem;
  background: var(--stage);
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--gaff);
  max-width: 36rem;
}
.illust svg { display: block; width: 100%; height: auto; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes glow {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@keyframes wink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark .bulb,
  .ghost-dot,
  .cue-lamp.on,
  .cue-lamp.blue { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .wrap, .header-inner { width: min(var(--max), calc(100% - 1.5rem)); }
  .nav-toggle { display: inline-block; }
  .header-inner { flex-wrap: wrap; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 0 0.2rem;
  }
  .nav-list.is-open { display: flex; }
  .hero, .steps, .grid4, .house, .console-grid, .foot-grid, .plans, .stats {
    grid-template-columns: 1fr;
  }
  .hero-band { background: linear-gradient(180deg, var(--stage-2) 0%, #241c18 88%, var(--paper) 88.1%); }
  .proscenium::before, .proscenium::after { width: 8%; }
  .cta { padding: 1.4rem 1.1rem; }
}
