/* AL-Arcade — "Prototype Fast, Not Twice" (Techne Summit).
   Fixed 1600×900 stage, scaled to the viewport, so a slide looks identical on a laptop,
   a projector and in print. Brand: AL-Arcade purple on near-black, arcade grid and glow. */

:root {
  --purple: #7100A5;          /* the brand mark */
  --violet: #A855F7;          /* on-dark accent */
  --violet-2: #C99BFF;
  --ink: #09040E;
  --ink-2: #120A1C;
  --panel: #170E24;
  --line: rgba(200, 170, 255, .16);
  --text: #F3EEFA;
  --text-2: #B4A7C7;
  --dim: #7C6D91;
  --go: #4ADE80;
  --stop: #FB7185;
  --warn: #FBBF24;
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, sans-serif;
  --f-code: 'JetBrains Mono', ui-monospace, monospace;
  --e-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-text); overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
em { font-style: normal; color: var(--violet-2); }

/* ---------- stage ---------- */
#stage-wrap { position: fixed; inset: 0; display: grid; place-items: center; }
#stage {
  position: relative; width: 1600px; height: 900px; flex: none;
  transform: scale(var(--s, 1)); transform-origin: center center;
  background: var(--ink); overflow: hidden;
}
.bg { position: absolute; inset: 0; pointer-events: none; }
.bg-grid {
  background-image: linear-gradient(rgba(168, 85, 247, .055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(168, 85, 247, .055) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
}
.bg-glow { background: radial-gradient(60% 55% at 78% 8%, rgba(113, 0, 165, .5), transparent 62%),
                      radial-gradient(50% 50% at 8% 96%, rgba(168, 85, 247, .22), transparent 60%); }
.bg-noise { opacity: .04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- slides ---------- */
.slide {
  position: absolute; inset: 0; padding: 82px 104px 96px;
  display: none; flex-direction: column;
}
.slide.on { display: flex; }
.slide.on > * { animation: rise .55s var(--e-out) both; }
.slide.on > *:nth-child(2) { animation-delay: .05s; }
.slide.on > *:nth-child(3) { animation-delay: .1s; }
.slide.on > *:nth-child(4) { animation-delay: .15s; }
.slide.on > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.slide .notes { display: none; }

/* ---------- typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 30px;
  font-family: var(--f-code); font-size: 17px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--violet);
}
.kicker::before {
  content: ''; width: 26px; height: 18px; flex: none; background: currentColor;
  clip-path: polygon(50% 0, 100% 52%, 84% 52%, 50% 24%, 16% 52%, 0 52%);
}
.kicker i { font-style: normal; color: var(--dim); }
h1 { font-family: var(--f-display); font-weight: 700; font-size: 104px; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-family: var(--f-display); font-weight: 500; font-size: 62px; line-height: 1.1; letter-spacing: -.028em; }
h2 b { font-weight: 700; }
h3 { font-family: var(--f-display); font-weight: 500; font-size: 32px; line-height: 1.25; letter-spacing: -.02em; }
.lead { font-size: 27px; line-height: 1.6; color: var(--text-2); font-weight: 300; max-width: 30ch; }
.lead.wide { max-width: 46ch; }
.big { font-family: var(--f-display); font-weight: 500; font-size: 46px; line-height: 1.3; letter-spacing: -.02em; }
.mono { font-family: var(--f-code); }
.hl { color: var(--violet-2); }
.grow { flex: 1; }

/* ---------- title slide ---------- */
.title-slide { justify-content: center; }
.title-mark { width: 92px; margin-bottom: 44px; filter: drop-shadow(0 12px 40px rgba(168, 85, 247, .5)); }
.title-slide h1 { font-size: 132px; }
.title-slide h1 .two { color: var(--violet); }
.title-sub { margin-top: 34px; font-size: 27px; color: var(--text-2); font-weight: 300; max-width: 60ch; line-height: 1.6; }
.title-meta { display: flex; align-items: center; gap: 22px; margin-top: 54px; font-family: var(--f-code); font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.title-meta span.dot { width: 6px; height: 6px; background: var(--violet); }
.title-meta b { color: var(--text); font-weight: 500; }

.close-link { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 20px 26px 20px 20px; background: rgba(168, 85, 247, .1); box-shadow: inset 0 0 0 1px var(--line); }
.close-link .qr { width: 104px; height: 104px; padding: 9px; background: #fff; flex: none; }
.close-link .qr svg { width: 100%; height: 100%; display: block; }
.close-link b { display: block; font-size: 23px; color: var(--text); letter-spacing: -.01em; }
.close-link span { display: block; margin-top: 8px; font-size: 17px; color: var(--text-2); line-height: 1.5; }
.close-link span b { display: inline; font-size: 16px; color: var(--violet-2); }

/* ---------- section divider ---------- */
.section-slide { justify-content: center; align-items: flex-start; }
.section-slide .num {
  font-family: var(--f-display); font-weight: 700; font-size: 250px; line-height: .8;
  letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(168, 85, 247, .55);
}
.section-slide h2 { font-size: 88px; font-weight: 700; margin-top: 18px; }
.section-slide .lead { margin-top: 26px; font-size: 29px; }

/* ---------- layout helpers ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; flex: 1; min-height: 0; align-items: start; }
.cols.tight { gap: 36px; }
.cols.a { grid-template-columns: .85fr 1.15fr; }
.cols.b { grid-template-columns: 1.15fr .85fr; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.head-row .lead { margin-bottom: 6px; }

/* ---------- cards ---------- */
.card {
  position: relative; padding: 30px 32px; background: linear-gradient(160deg, rgba(113, 0, 165, .16), rgba(23, 14, 36, .9));
  box-shadow: inset 0 0 0 1px var(--line);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 20px; line-height: 1.6; color: var(--text-2); }
.card .tag { position: absolute; top: 0; inset-inline-end: 0; padding: 6px 12px; font-family: var(--f-code); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--violet); color: #1A0426; font-weight: 700; }
.card.go { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .34); background: linear-gradient(160deg, rgba(74, 222, 128, .1), rgba(23, 14, 36, .9)); }
.card.go .tag { background: var(--go); color: #06220F; }
.card.stop { box-shadow: inset 0 0 0 1px rgba(251, 113, 133, .3); background: linear-gradient(160deg, rgba(251, 113, 133, .08), rgba(23, 14, 36, .9)); }
.card.stop .tag { background: var(--stop); color: #2A0710; }
.cards { display: grid; gap: 18px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

/* numbered list */
.steps { display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start; }
.steps .n { font-family: var(--f-code); font-size: 19px; font-weight: 700; color: var(--violet); padding-top: 6px; }
.steps b { display: block; font-family: var(--f-display); font-size: 27px; font-weight: 500; letter-spacing: -.015em; }
.steps p { font-size: 20px; line-height: 1.55; color: var(--text-2); margin-top: 4px; }

/* bullets */
.bul { display: grid; gap: 16px; }
.bul li { position: relative; padding-inline-start: 34px; font-size: 24px; line-height: 1.5; color: var(--text); }
.bul li::before { content: ''; position: absolute; inset-inline-start: 0; top: 13px; width: 16px; height: 11px; background: var(--violet); clip-path: polygon(50% 0, 100% 52%, 84% 52%, 50% 24%, 16% 52%, 0 52%); }
.bul.sm li { font-size: 21px; }
.bul li span { color: var(--dim); }

/* ---------- code ---------- */
.code {
  position: relative; background: #0D0715; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  display: flex; flex-direction: column; min-height: 0;
}
.code-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: rgba(168, 85, 247, .09); font-family: var(--f-code); font-size: 15px; color: var(--text-2); letter-spacing: .04em; }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A2A4D; }
.code-bar i:first-child { background: var(--violet); }
.code-bar .label { margin-inline-start: 6px; }
.code-bar .right { margin-inline-start: auto; color: var(--dim); font-size: 14px; }
.code pre { margin: 0; padding: 22px 26px 26px; overflow: hidden; }
.code code { font-family: var(--f-code); font-size: 20px; line-height: 1.62; color: #D9CCEE; white-space: pre; display: block; }
.code.sm code { font-size: 17.5px; line-height: 1.6; }
.code.xs code { font-size: 15.5px; line-height: 1.55; }
.tok-key { color: #C084FC; }
.tok-type { color: #7DD3FC; }
.tok-str { color: #86EFAC; }
.tok-com { color: #6D6183; font-style: italic; }
.tok-num { color: #FDBA74; }
.tok-attr { color: #FBBF24; }
.code .bad { background: rgba(251, 113, 133, .12); box-shadow: inset 3px 0 0 var(--stop); display: block; }
.code .good { background: rgba(74, 222, 128, .1); box-shadow: inset 3px 0 0 var(--go); display: block; }

/* ---------- misc blocks ---------- */
.quote { font-family: var(--f-display); font-weight: 500; font-size: 52px; line-height: 1.25; letter-spacing: -.02em; max-width: 24ch; }
.quote .src { display: block; margin-top: 26px; font-family: var(--f-code); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: auto; }
.stat { padding: 26px 28px; box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--violet-2); }
.stat span { display: block; margin-top: 10px; font-size: 19px; color: var(--text-2); line-height: 1.5; }
.rule { display: flex; align-items: center; gap: 18px; padding: 22px 26px; background: rgba(168, 85, 247, .1); box-shadow: inset 0 0 0 1px var(--line); font-size: 24px; line-height: 1.45; }
.rule .ic { font-family: var(--f-code); font-weight: 700; color: var(--violet); font-size: 20px; flex: none; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: start; font-family: var(--f-code); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; padding: 0 16px 14px; border-bottom: 1px solid var(--line); }
table.t td { padding: 17px 16px; border-bottom: 1px solid rgba(200, 170, 255, .08); font-size: 21px; vertical-align: top; }
table.t td.k { font-family: var(--f-code); color: var(--violet-2); font-size: 19px; white-space: nowrap; }
table.t td b { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; font-family: var(--f-code); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; background: rgba(168, 85, 247, .16); color: var(--violet-2); }
.chip.go { background: rgba(74, 222, 128, .14); color: var(--go); }
.chip.stop { background: rgba(251, 113, 133, .14); color: var(--stop); }

/* velocity chart (hand-drawn in CSS/SVG) */
.chart { position: relative; width: 100%; height: 330px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1.5; }
.chart path.line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s var(--e-out) .25s forwards; }
.chart path.p1 { stroke: var(--stop); }
.chart path.p2 { stroke: var(--go); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .lbl { font-family: var(--f-code); font-size: 17px; fill: var(--text-2); }
.chart .lbl.a { fill: var(--stop); }
.chart .lbl.b { fill: var(--go); }

/* ---------- chrome: progress, hud ---------- */
.hud { position: absolute; inset-inline: 104px; bottom: 30px; display: flex; align-items: center; gap: 18px; pointer-events: none; }
.hud .mark { width: 24px; opacity: .8; }
.hud .where { font-family: var(--f-code); font-size: 15px; letter-spacing: .14em; color: var(--dim); }
.hud .where b { color: var(--violet-2); font-weight: 500; }
.hud .ticks { flex: 1; display: flex; gap: 4px; align-items: center; }
.hud .ticks i { flex: 1; height: 3px; background: rgba(200, 170, 255, .16); transition: background .3s; }
.hud .ticks i.done { background: var(--violet); }
.hud .ticks i.now { background: var(--violet-2); box-shadow: 0 0 12px var(--violet); }
.hud .hint { font-family: var(--f-code); font-size: 14px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
#stage.no-hud .hud { display: none; }

/* ---------- notes panel ---------- */
#notes {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; max-height: 42vh; overflow: auto;
  padding: 26px 34px 30px; background: rgba(12, 6, 20, .97); border-top: 2px solid var(--purple);
  transform: translateY(101%); transition: transform .4s var(--e-out);
  font-size: 17px; line-height: 1.65; color: var(--text-2);
}
#notes.open { transform: none; }
#notes h4 { font-family: var(--f-code); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
#notes b { color: var(--text); }
#notes ul { display: grid; gap: 8px; margin-top: 10px; }
#notes li { padding-inline-start: 18px; position: relative; }
#notes li::before { content: '▸'; position: absolute; inset-inline-start: 0; color: var(--violet); }
#notes .say { color: var(--text); font-size: 18px; }

/* ---------- jump menu ---------- */
#jump {
  position: fixed; inset: 0; z-index: 50; background: rgba(6, 3, 10, .96); padding: 60px 70px;
  display: none; grid-template-rows: auto 1fr; gap: 24px;
}
#jump.open { display: grid; }
#jump h4 { font-family: var(--f-code); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
#jump .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 30px; align-content: start; overflow: auto; }
#jump button {
  display: flex; gap: 14px; align-items: baseline; padding: 9px 12px; text-align: start; background: none; border: 0;
  color: var(--text-2); font: inherit; font-size: 17px; cursor: pointer; transition: background .2s, color .2s;
}
#jump button:hover, #jump button.here { background: rgba(168, 85, 247, .16); color: var(--text); }
#jump button span { font-family: var(--f-code); font-size: 14px; color: var(--violet); flex: none; }
#jump button.sec { color: var(--violet-2); font-weight: 500; }

/* ---------- timer ---------- */
#timer {
  position: fixed; top: 16px; inset-inline-end: 18px; z-index: 30; display: none;
  padding: 8px 14px; background: rgba(12, 6, 20, .9); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-code); font-size: 16px; color: var(--violet-2); letter-spacing: .08em;
}
#timer.on { display: block; }
#help {
  position: fixed; bottom: 14px; inset-inline-start: 18px; z-index: 30;
  font-family: var(--f-code); font-size: 12.5px; letter-spacing: .1em; color: rgba(124, 109, 145, .8);
  text-transform: uppercase; transition: opacity .4s; pointer-events: none;
}
#help.hide { opacity: 0; }

/* ---------- print: one slide per page ---------- */
@media print {
  @page { size: 1600px 900px; margin: 0; }
  body { overflow: visible; }
  #stage-wrap { position: static; display: block; }
  #stage { transform: none; width: 1600px; height: auto; }
  .slide { position: relative; display: flex !important; page-break-after: always; height: 900px; }
  .slide.on > * { animation: none; }
  #notes, #jump, #timer, #help { display: none !important; }
  .chart path.line { stroke-dashoffset: 0; animation: none; }
}
