/* ==========================================================================
   Pianola presentation — styles
   Stage is a fixed 1920×1080 canvas, scaled to fit the window.
   ========================================================================== */

:root {
  --red: #da291c;
  --red-deep: #a91f16;
  --red-soft: rgba(218, 41, 28, 0.12);
  --ink: #1a1c1c;
  --ink-2: #2e3131;
  --ink-soft: rgba(26, 28, 28, 0.62);
  --ink-faint: rgba(26, 28, 28, 0.14);
  --paper: #f9f9f9;
  --paper-2: #ececee;
  --roll: #efe5cf;
  --white: #ffffff;
  --line: rgba(26, 28, 28, 0.12);

  --ease: cubic-bezier(0.22, 0.8, 0.16, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 1100ms;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* The full-window presentation only; the scrolling page keeps the site's own page styles. */
:where(html.deck-present),
:where(html.deck-present) body {
  margin: 0;
  height: 100%;
  background: #0e0f0f;
  overflow: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
}

html[lang="en"] .de,
html[lang="de"] .en { display: none !important; }

/* --------------------------------------------------------------------------
   Viewport + stage
   -------------------------------------------------------------------------- */

#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin: -540px 0 0 -960px;
  transform-origin: 50% 50%;
}
.stage {
  background: var(--paper);
  overflow: hidden;
  transition: background-color 900ms var(--ease-io);
}
.stage[data-theme="dark"] { background: var(--ink); }

/* subtle paper grain */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stage[data-theme="dark"]::after { mix-blend-mode: screen; opacity: 0.25; }

/* --------------------------------------------------------------------------
   Slides
   -------------------------------------------------------------------------- */

.slide {
  position: absolute;
  inset: 0;
  padding: 150px 140px 130px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms var(--ease-io), visibility 0s linear 420ms;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--ease-io) 380ms, visibility 0s;
  z-index: 2;
}
.slide[data-theme="dark"] { color: var(--paper); }
.slide .notes { display: none; }

/* instant: used when navigating backwards (slide appears fully built) */
.slide.instant, .slide.instant * { transition: none !important; }

/* --------------------------------------------------------------------------
   Motion primitives
   .fx elements animate in when their slide reaches data-step (default 0)
   -------------------------------------------------------------------------- */

.fx {
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease),
    clip-path var(--dur) var(--ease);
  transition-delay: var(--d, 0ms);
}
.fx-up { opacity: 0; transform: translateY(26px); }
.fx-down { opacity: 0; transform: translateY(-18px); }
.fx-left { opacity: 0; transform: translateX(-36px); }
.fx-right { opacity: 0; transform: translateX(36px); }
.fx-fade { opacity: 0; }
.fx-scale { opacity: 0; transform: scale(0.965); }
.fx-blur { opacity: 0; filter: blur(10px); transform: scale(1.02); }
.fx-wipe { clip-path: inset(0 100% 0 0); }
.fx.on { opacity: 1; transform: none; filter: none; }
.fx-wipe.on { clip-path: inset(0 0 0 0); }

/* line mask reveal for headlines */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1200ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.on .ln > span, .ln.on > span { transform: none; }

/* SVG strokes that draw themselves (use pathLength="1") */
.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms var(--ease-io);
  transition-delay: var(--d, 0ms);
}
.draw.on, .on .draw { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 30px;
}


h1, h2, h3, p { margin: 0; }

.h-display {
  font-size: 92px;
  line-height: 1.02;
  font-weight: 640;
  letter-spacing: -0.038em;
}
.h-display em { font-style: normal; color: var(--red); }
.h-xl { font-size: 112px; }

.lead {
  font-size: 30px;
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
  max-width: 820px;
}
[data-theme="dark"] .lead { color: rgba(249, 249, 249, 0.66); }

.small {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
}
[data-theme="dark"] .small { color: rgba(249, 249, 249, 0.6); }

.kicker {
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.kicker em { font-style: normal; color: var(--red); }

/* --------------------------------------------------------------------------
   Chrome: brand mark, counter, progress roll
   -------------------------------------------------------------------------- */

.chrome {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  transition: color 900ms var(--ease-io), opacity 600ms;
}
.stage[data-theme="dark"] .chrome { color: var(--paper); }

.brand {
  top: 58px;
  left: 140px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; }

.counter {
  top: 62px;
  right: 140px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.progress {
  bottom: 56px;
  left: 140px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.progress i {
  display: block;
  width: 22px;
  height: 7px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  opacity: 0.3;
  transition: all 700ms var(--ease);
}
.progress i.past { background: currentColor; opacity: 0.38; }
.progress i.current { background: var(--red); border-color: var(--red); opacity: 1; width: 46px; }

.byline {
  bottom: 50px;
  right: 140px;
  font-size: 17px;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

/* title & close slides hide the small brand mark */
.stage[data-chrome="minimal"] .brand,
.stage[data-chrome="minimal"] .counter { opacity: 0; }

/* --------------------------------------------------------------------------
   Gear mark
   -------------------------------------------------------------------------- */

.gear { overflow: visible; }
.gear .ring, .gear .wheel { fill: none; stroke: currentColor; }

/* ==========================================================================
   SLIDE 1 — Title
   ========================================================================== */

.s-title { padding: 0; }
.s-title .roll-wrap {
  position: absolute;
  top: -40px;
  bottom: -40px;
  right: 230px;
  width: 470px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 40px 120px rgba(0,0,0,.55);
}
.s-title .roll-wrap canvas { width: 100%; height: 100%; display: block; }
.s-title .roll-wrap::before,
.s-title .roll-wrap::after {
  content: "";
  position: absolute;
  left: -26px;
  right: -26px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(180deg, #3a3832, #191815 60%, #0f0e0c);
  box-shadow: 0 2px 0 rgba(255,255,255,.06) inset;
  z-index: 2;
}
.s-title .roll-wrap::before { top: 40px; }
.s-title .roll-wrap::after { bottom: 40px; }
.s-title .roll-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(26,28,28,0) 18%, rgba(26,28,28,0) 82%, var(--ink) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(26,28,28,0) 22%, rgba(26,28,28,0) 78%, var(--ink) 100%);
  z-index: 1;
}

.s-title .title-block {
  position: absolute;
  left: 140px;
  top: 300px;
  width: 980px;
}
.s-title .mark {
  width: 104px;
  height: 104px;
  color: var(--paper);
  margin-bottom: 46px;
}
.s-title .mark .wheel-g {
  transform-origin: 50px 50px;
  transform: rotate(-90deg);
  transition: transform 2600ms var(--ease);
}
.s-title .mark.on .wheel-g { transform: rotate(0deg); }
.s-title h1 {
  font-size: 176px;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-left: -10px;
}
.s-title h1 .dot { color: var(--red); }
.s-title .sub {
  margin-top: 46px;
  font-size: 38px;
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: rgba(249,249,249,.72);
}
.s-title .presented {
  position: absolute;
  left: 140px;
  bottom: 120px;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249,249,249,.5);
}
.s-title .presented b { color: var(--paper); font-weight: 600; }

/* ==========================================================================
   SLIDE 2 — The dilemma
   ========================================================================== */

.s-dilemma .cols {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.option {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 40px;
  padding: 40px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(26,28,28,.25);
  min-height: 400px;
}
.option h3 {
  hyphens: manual;
  font-size: 36px;
  font-weight: 640;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.option ul { list-style: none; padding: 0; margin: 0; }
.option li {
  font-size: 22px;
  line-height: 1.38;
  padding: 10px 0 10px 38px;
  position: relative;
  color: var(--ink-2);
}
.option li::before {
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 700;
  width: 24px;
  text-align: center;
}
.option li.pro::before { content: "+"; color: #2f7d4f; }
.option li.con::before { content: "–"; color: var(--red); }
.option li.con { color: var(--ink); font-weight: 520; }

/* off-the-shelf mock: crowded UI */
.crowd {
  border-radius: 4px;
  background: var(--paper);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.crowd .bar { display: flex; flex-wrap: wrap; gap: 6px; }
.crowd .bar i {
  display: block;
  height: 18px;
  border-radius: 4px;
  background: #d4d5d6;
  transition: opacity 900ms var(--ease), background 900ms;
  transition-delay: var(--d, 0ms);
}
.crowd .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crowd .fields i {
  display: block;
  height: 30px;
  border-radius: 3px;
  border: 1.5px solid #dedede;
  background: var(--white);
  transition: opacity 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.crowd .missing {
  height: 34px;
  border-radius: 3px;
  border: 2px dashed var(--red);
  opacity: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  transition: opacity 900ms var(--ease) 600ms;
}
.crowd.on .unused { opacity: 0.22; }
.crowd.on .missing { opacity: 1; animation: pulse 2.4s var(--ease-io) 1.6s infinite; }
@keyframes pulse { 50% { border-color: rgba(218,41,28,.35); } }

/* bespoke mock: rising cost */
.build {
  position: relative;
  border-radius: 4px;
  background: var(--paper);
  padding: 16px;
  overflow: hidden;
}
.build svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.build .bricks {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.build .bricks > span {
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--white);
  border: 1.5px solid #dedede;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-30px);
  transition: all 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.build.on .bricks > span { opacity: 1; transform: none; }
.build .bricks > span:nth-child(even) { margin-left: 26px; }
.build .cost-label {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.s-dilemma .question {
  position: absolute;
  left: 140px;
  bottom: 112px;
  font-size: 72px;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* ==========================================================================
   SLIDE 3 — The bridge
   ========================================================================== */

.s-bridge .left { position: absolute; left: 140px; top: 150px; width: 700px; }
.s-bridge .spectrum {
  position: absolute;
  left: 140px;
  top: 590px;
  width: 640px;
}
.spectrum .track {
  position: relative;
  height: 2px;
  background: var(--ink-faint);
  margin: 44px 0 18px;
}
.spectrum .ends {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spectrum .tick {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 14px;
  background: var(--ink-soft);
}
.spectrum .tick.l { left: 0; }
.spectrum .tick.r { right: 0; }
.spectrum .marker {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px var(--red-soft);
  transform: scale(0);
  transition: transform 900ms var(--ease) 300ms;
}
.spectrum .span {
  position: absolute;
  top: -1px;
  height: 4px;
  left: 50%;
  right: 50%;
  background: var(--red);
  border-radius: 2px;
  transition: left 1400ms var(--ease) 700ms, right 1400ms var(--ease) 700ms;
  opacity: 0.5;
}
.spectrum.on .marker { transform: scale(1); }
/* the name above the marker */
.spectrum .m-lockup {
  position: absolute;
  left: 50%;
  bottom: 30px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 800ms var(--ease) 800ms, transform 1000ms var(--ease) 800ms;
}
.spectrum.on .m-lockup { opacity: 1; transform: translate(-50%, 0); }
.spectrum .m-lockup span {
  display: block;
  font-size: 64px;
  line-height: 1;
  font-weight: 640;
  letter-spacing: -0.038em;
  color: var(--red);
}

.spectrum.on .span { left: 34%; right: 34%; }
.spectrum .caption { margin-top: 26px; }
.s-bridge .spectrum .track { margin-top: 134px; }

.stack {
  position: absolute;
  right: 140px;
  top: 190px;
  width: 900px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.layer {
  position: relative;
  padding: 30px 36px 32px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 26px 50px -30px rgba(26,28,28,.3);
}
.layer .tag {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}
.layer .tag b { font-weight: 700; color: var(--ink); }
.layer h4 {
  margin: 10px 0 18px;
  font-size: 32px;
  font-weight: 640;
  letter-spacing: -0.025em;
}
.layer .chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 540;
  padding: 8px 14px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid rgba(26,28,28,.06);
}
.layer.core { background: var(--ink); color: var(--paper); }
.layer.core .tag { color: rgba(249,249,249,.5); }
.layer.core .tag b { color: var(--paper); }
.layer.core .chip { background: rgba(255,255,255,.07); color: rgba(249,249,249,.88); border-color: rgba(255,255,255,.06); }
.layer.core .chip svg { color: var(--red); }
.layer.components .chip { border-style: dashed; border-color: rgba(26,28,28,.25); background: transparent; }
.layer.yours { background: var(--red); color: #fff; }
.layer.yours .tag, .layer.yours .tag b { color: rgba(255,255,255,.8); }
.layer.yours .chip { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.18); }

.layer .chips .chip {
  opacity: 0;
  transform: translateY(8px);
  transition: all 700ms var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 45ms + 350ms);
}
.layer.on .chips .chip { opacity: 1; transform: none; }

/* ==========================================================================
   SLIDE 4 — Instrument & rolls
   ========================================================================== */

.s-instrument .piano {
  position: absolute;
  left: 90px;
  bottom: 120px;
  width: 660px;
}
.s-instrument .piano img { width: 100%; display: block; filter: drop-shadow(0 40px 40px rgba(26,28,28,.22)); }
.s-instrument .right { position: absolute; left: 860px; right: 140px; top: 150px; }
.s-instrument .story {
  position: relative;
  margin-top: 40px;
  height: 120px;
}
.s-instrument .story p {
  position: absolute;
  inset: 0;
  font-size: 28px;
  line-height: 1.42;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  max-width: 900px;
}
.s-instrument .story p b { color: var(--ink); font-weight: 600; }
.s-instrument .story p.fx.out { opacity: 0; transform: translateY(-14px); transition-delay: 0ms; }

.rolls { position: absolute; left: 860px; right: 140px; top: 620px; display: grid; gap: 22px; }
.rollrow { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 26px; }
.rollrow .name { font-size: 24px; font-weight: 640; letter-spacing: -0.02em; }
.rollrow .name small {
  display: block;
  font-size: 16px;
  font-weight: 450;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0;
}
.rollstrip {
  position: relative;
  height: 96px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(26,28,28,.08), 0 16px 30px -18px rgba(26,28,28,.35);
}
.rollstrip canvas { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   SLIDE 5 — Described, not programmed: builder → app
   ========================================================================== */

.s-config .head { position: absolute; left: 140px; top: 150px; width: 1640px; display: flex; justify-content: space-between; align-items: flex-end; }
.s-config .head .lead { max-width: 720px; font-size: 24px; }

/* ---------- app.json ---------- */

.json {
  position: absolute; left: 140px; top: 438px; width: 560px; height: 504px;
  border-radius: 4px; background: var(--ink); color: #e4e4e4; overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(26,28,28,.6);
}
.j-top {
  height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgba(249,249,249,.5);
}
.j-file { font-family: var(--mono); font-size: 13px; color: #fff; display: flex; gap: 8px; align-items: center; }
.j-file::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.j-state { position: relative; width: 280px; height: 16px; }
.j-state > span { position: absolute; right: 0; top: 0; white-space: nowrap; }
.j-state > .out { opacity: 0; }
.j-state .sync { color: #7fc99a; }
.j-body { padding: 14px 18px; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.jl { white-space: pre; overflow: hidden; margin: 0 -18px; padding: 0 18px; }
.jl.dim.on { opacity: .38; }
.jl.grow { max-height: 0; opacity: 0; transition: max-height 700ms var(--ease), opacity 600ms var(--ease); transition-delay: var(--d, 0ms); }
.jl.grow.on { max-height: 20px; opacity: 1; }
.jl.grow.on:not(.noflash) { animation: jflash 2.4s ease-out var(--d, 0ms) both; }
@keyframes jflash { 0%, 30% { background: rgba(218,41,28,.3); } 100% { background: transparent; } }
.slide.settle .jl { animation: none !important; }
.j-body .k { color: #f0b4a6; }
.j-body .s { color: #e8dfc8; }
.j-body .p { color: rgba(249,249,249,.55); }
.j-body .caret { display: inline-block; width: 8px; height: 15px; background: var(--red); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- The app (modelled on real Pianola apps) ---------- */

.app {
  position: absolute;
  left: 740px;
  right: 140px;
  top: 438px;
  height: 504px;
  border-radius: 4px;
  background: #f2f2f2;
  box-shadow: 0 0 0 1px rgba(26,28,28,.08), 0 40px 70px -40px rgba(26,28,28,.45);
  overflow: hidden;
  font-size: 13px;
  color: #222;
}
.a-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px 0 12px;
}
.a-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #111 0 5px, #fff 5.5px 8.5px, var(--red) 9px);
  box-shadow: 0 0 0 2px #d9cfae;
  flex: none;
}
.a-title { position: relative; width: 170px; height: 22px; margin-left: 14px; font-size: 17px; font-weight: 400; letter-spacing: .06em; }
.a-title > span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.a-title > .fx.out { opacity: 0; }
.a-year {
  margin-left: 70px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  font-size: 13px;
}
.a-year i { font-style: normal; font-size: 10px; margin-left: 10px; }
.a-views { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.a-views > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 2px; }
.a-views > span.cur { background: #3a3a3a; }
.a-views > span svg { width: 15px; height: 15px; }
.a-filter { width: 18px; height: 18px; margin: 0 10px 0 14px; }
.a-search {
  width: 210px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

.a-side {
  position: absolute;
  left: 0;
  top: 48px;
  bottom: 0;
  width: 176px;
  background: #ddd3b3;
  color: #2a2a2a;
}
.a-nav {
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .08em;
}
.a-nav svg { width: 17px; height: 17px; flex: none; }
.a-nav.new { background: #c9bd94; }
.a-nav.low { font-weight: 500; letter-spacing: .02em; font-size: 12px; color: #555; }
.a-rule { position: absolute; left: 10px; right: 10px; height: 1px; background: rgba(0,0,0,.14); }

.a-master {
  position: absolute;
  left: 176px;
  top: 48px;
  bottom: 0;
  width: 266px;
  border-right: 1px solid #dcdcdc;
  background: #f4f4f4;
}
.a-search2 {
  margin: 14px 14px 6px;
  padding: 5px 2px;
  border-bottom: 1px solid #bbb;
  color: #8a8a8a;
}
.a-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 14px;
  height: 55px;
}
.a-item i { width: 40px; height: 40px; flex: none; border-radius: 2px; }
.a-item b { display: block; font-weight: 500; font-size: 13.5px; color: #1a1a1a; }
.a-item small { display: block; font-size: 11px; color: #777; line-height: 1.25; }
.a-item.sel { background: #e1e1e1; }
.a-pages {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.a-pages span {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  border-radius: 2px;
}
.a-pages span.cur { background: #111; color: #fff; }
.a-pages span.dots { background: none; box-shadow: none; }
.a-new {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid #dcdcdc;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  color: #333;
}

.a-detail { position: absolute; left: 442px; right: 0; top: 48px; bottom: 0; }
.a-blank { position: absolute; inset: 0 0 40px; display: grid; place-items: center; color: #aaa; font-size: 14px; }
.a-dwrap { position: absolute; inset: 0 0 40px; padding: 0 22px; opacity: 0; transform: translateX(26px); }
.a-dwrap.on { opacity: 1; transform: none; }
.a-dhead { display: flex; gap: 12px; align-items: center; padding: 12px 0 10px; }
.a-dhead i { width: 48px; height: 48px; border-radius: 2px; flex: none; }
.a-dhead small { display: block; font-size: 11px; color: #777; }
.a-dhead b { display: block; font-size: 18px; font-weight: 450; color: #111; line-height: 1.2; }
.a-icons { margin-left: auto; display: flex; gap: 12px; color: #8a8a8a; align-self: flex-start; margin-top: 6px; }
.a-icons svg { width: 17px; height: 17px; }
.a-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  margin: 0 -22px 12px;
  padding: 0 22px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .1em;
  color: #888;
}
.a-tabs > span { padding: 9px 0; }
.a-tabs .cur { color: #111; box-shadow: inset 0 -2px 0 #111; }
.a-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: #222; margin-bottom: 8px; }
.a-sec .plus { font-weight: 400; color: #888; margin-left: 4px; }
.a-row { display: flex; gap: 12px; margin-bottom: 8px; }
.a-f { display: block; }
.a-f .lb { display: block; font-size: 11px; color: #666; margin-bottom: 3px; }
.a-f .in {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
  font-size: 13px;
}
.a-f .in i { margin-left: auto; font-style: normal; font-size: 10px; color: #999; letter-spacing: .2em; }
.a-table { background: #fff; border: 1px solid #d5d5d5; border-radius: 2px; }
.a-table .tr { display: grid; grid-template-columns: 1.3fr 1fr .7fr 24px; padding: 7px 10px; font-size: 12.5px; border-top: 1px solid #e6e6e6; }
.a-table .th { border-top: 0; font-size: 11px; color: #777; }
.a-table .tr span:last-child { color: #888; }
.a-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid #dcdcdc;
  font-size: 12.5px;
  color: #333;
}


/* ---------- config mode inside the app ---------- */

.a-cfg { display: flex; align-items: center; gap: 9px; margin-left: 24px; font-size: 14px; color: rgba(255,255,255,.8); }
.a-cfg .box { position: relative; width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 2px; }
.a-cfg .tick { position: absolute; inset: -1.5px; display: grid; place-items: center; background: #fff; border-radius: 2px; }
.a-cfg .tick svg { width: 12px; height: 12px; }
.a-year { margin-left: 24px; }
.cog { width: 13px; height: 13px; color: var(--red); vertical-align: -2px; margin-left: 5px; }
.dz-cog { position: absolute; top: 6px; right: 6px; margin: 0; }
.a-dz { position: relative; margin: 0 -10px; padding: 8px 10px; min-height: 240px; border-radius: 3px; outline: 1.5px dashed transparent; transition: outline-color 800ms var(--ease), background 800ms var(--ease); }
.a-dz.on { outline-color: rgba(218,41,28,.45); background: rgba(218,41,28,.025); }
.a-hint { position: absolute; left: 0; right: 0; top: 96px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: rgba(218,41,28,.7); }
.a-dz .a-sec:first-of-type { margin-top: 2px; }

.a-pal {
  position: absolute; inset: 0; z-index: 2; padding: 12px 10px;
  background: #f7f1f0; box-shadow: inset 0 0 0 1.5px rgba(218,41,28,.55);
  opacity: 0; transform: translateX(-14px);
}
.a-pal.on { opacity: 1; transform: none; }
.p-grp { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #333; margin: 6px 4px 9px; }
.tok {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; margin-bottom: 6px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); border-radius: 2px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .12em; color: #222; white-space: nowrap;
}
.tok b { color: #bbb; font-size: 11px; font-weight: 400; }
.tok svg { width: 14px; height: 14px; color: #555; flex: none; }
.a-pal .tok { opacity: 0; transform: translateX(-8px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i) * 50ms + 300ms); }
.a-pal.on .tok { opacity: 1; transform: none; }
.p-exit { position: absolute; left: 10px; right: 10px; bottom: 12px; white-space: nowrap; overflow: hidden; text-align: center; font-size: 8.5px; font-weight: 600; letter-spacing: .06em; color: #888; border: 1px solid #ccc; padding: 5px 4px; }

.ghost { position: absolute; left: 0; top: 0; width: 156px; z-index: 5; opacity: 0; pointer-events: none; }
.ghost .tok { margin: 0; box-shadow: 0 14px 28px rgba(0,0,0,.28); outline: 1.5px solid var(--red); }
.ghost .ptr { position: absolute; width: 16px; height: 22px; right: 20px; top: 15px; }
.ghost.on { animation: fly 1100ms var(--ease-io) var(--d, 0ms) both; }
.slide.settle .ghost { display: none; }
@keyframes fly {
  0%   { transform: translate(var(--fx), var(--fy)); opacity: 0; }
  10%  { transform: translate(var(--fx), var(--fy)) scale(1.03); opacity: 1; }
  80%  { transform: translate(var(--tx), var(--ty)) scale(1.03); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* ==========================================================================
   SLIDE 6 — Real apps
   ========================================================================== */

.s-real .head { position: absolute; left: 140px; top: 150px; }
.shots {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 392px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  perspective: 2400px;
}
.shot { display: grid; gap: 18px; }
.shot .frame {
  border-radius: 4px;
  overflow: hidden;
  background: #242727;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 80px -40px rgba(0,0,0,.8);
}
.shot .frame .bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: #2c2f2f;
}
.shot .frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.shot .frame .img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #202323;
}
.shot .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transform: scale(1.06);
  transition: transform 9s var(--ease-io);
}
.shot.on .frame img { transform: scale(1); }
.shot .placeholder { display: none; }
.shot.missing img { display: none; }
.shot.missing .placeholder {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    #202323;
  color: rgba(249,249,249,.4);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shot .cap { font-size: 22px; font-weight: 560; letter-spacing: -0.01em; color: rgba(249,249,249,.85); }
.shot .cap .num { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.shot.fx { transform: translateY(40px) rotateX(8deg); }
.shot.fx.on { transform: none; }

/* ==========================================================================
   SLIDE 7 — Pianola vs AI
   ========================================================================== */

.s-ai .head { position: absolute; left: 140px; top: 150px; }
.versus {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.vpanel .label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.screen {
  position: relative;
  height: 340px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(26,28,28,.35);
  overflow: hidden;
}
.screen .ui {
  position: absolute;
  inset: 0;
  padding: 26px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  transition: opacity 1000ms var(--ease), filter 1000ms var(--ease);
}
.screen .ui .sb { border-radius: 3px; background: #f3f3f4; }
.screen .ui .ct { display: grid; gap: 12px; align-content: start; }
.screen .ui .ct i { display: block; height: 16px; border-radius: 3px; background: #ececee; }
.screen .ui .ct i.h { height: 30px; width: 55%; background: #e2e3e4; }
.screen .ui .ct i.card { height: 92px; border-radius: 3px; background: linear-gradient(120deg, #f6d9d6, #f3f3f4); }
.screen .ui .ct i.s { width: 70%; }
.screen.on .ui { opacity: 0.16; filter: blur(2px); }
.screen svg.over { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .q {
  position: absolute;
  font-size: 17px;
  font-weight: 650;
  color: var(--red);
  background: var(--white);
  padding: 4px 11px;
  border-radius: 3px;
  border: 1.5px solid rgba(218,41,28,.4);
  opacity: 0;
  transform: scale(.9);
  transition: all 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.screen.on .q { opacity: 1; transform: none; }

.grid-blocks {
  position: absolute;
  inset: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  opacity: 0;
}
.grid-blocks > span {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transform: scale(.94);
  transition: all 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 300ms);
}
.grid-blocks > span.wide { grid-column: span 2; }
.grid-blocks > span.you { background: var(--red); color: #fff; }
.screen.on .grid-blocks { opacity: 1; }
.screen.on .grid-blocks > span { opacity: 1; transform: none; }

.ai-chip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.1em;
  padding: 8px 14px 8px 11px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink), 0 10px 20px -8px rgba(0,0,0,.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  offset-path: inset(0 round 4px);
  offset-rotate: 0deg;
  animation: orbit 22s linear infinite;
  opacity: 0;
  transition: opacity 900ms var(--ease) 1200ms;
}
.screen.on .ai-chip { opacity: 1; }
@keyframes orbit { to { offset-distance: 100%; } }

.vpanel .verdict { margin-top: 22px; font-size: 22px; line-height: 1.45; color: var(--ink-soft); max-width: 760px; }
.vpanel .verdict b { color: var(--ink); font-weight: 620; }
.s-ai .punch { position: absolute; left: 140px; bottom: 110px; }

/* ==========================================================================
   SLIDE 8 — Ecosystem
   ========================================================================== */

.s-eco .left { position: absolute; left: 140px; top: 150px; width: 560px; }
.s-eco .points { margin-top: 48px; display: grid; gap: 26px; }
.s-eco .points .pt { display: grid; grid-template-columns: 40px 1fr; gap: 6px; }
.s-eco .points .pt b { font-size: 16px; font-weight: 700; color: var(--red); letter-spacing: 0.06em; padding-top: 4px; }
.s-eco .points .pt div { font-size: 22px; line-height: 1.45; color: var(--ink-soft); }
.s-eco .points .pt div strong { color: var(--ink); font-weight: 620; display: block; font-size: 24px; margin-bottom: 2px; }

.eco {
  position: absolute;
  left: 760px;
  top: 190px;
  width: 1040px;
  height: 780px;
}
.eco > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco .wire { fill: none; stroke: rgba(26,28,28,.28); stroke-width: 2; }
.eco .wire.api { stroke-dasharray: 2 7; stroke-linecap: round; stroke-dashoffset: 0; }
.eco .wire.draw.api { stroke-dasharray: 1; }
.eco .pulse { fill: var(--red); opacity: 0; transition: opacity 600ms var(--ease) 1400ms; }
.eco .on .pulse, .eco g.on .pulse { opacity: 1; }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(26,28,28,.35);
  padding: 16px 20px;
  min-width: 200px;
  text-align: left;
}
.node.fx { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
.node.fx.on { opacity: 1; transform: translate(-50%, -50%); }
.node .t { font-size: 20px; font-weight: 640; letter-spacing: -0.015em; }
.node .d { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }
.node .ic {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: var(--ink);
}
.node.hub {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 34px;
  min-width: 300px;
  border-radius: 4px;
  box-shadow: 0 0 0 10px rgba(26,28,28,.05), 0 40px 70px -30px rgba(26,28,28,.6);
}
.node.hub .ic { color: var(--paper); width: 44px; height: 44px; }
.node.hub .t { font-size: 30px; }
.node.hub .d { color: rgba(249,249,249,.6); font-size: 16px; }
.node.db { background: var(--paper-2); box-shadow: none; border: 1.5px solid rgba(26,28,28,.12); }
.node.ext { background: var(--paper); box-shadow: none; border: 1.5px dashed rgba(26,28,28,.3); }
.node.api {
  min-width: 0;
  padding: 8px 14px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.zone {
  position: absolute;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   SLIDE 9 — Werkgasse
   ========================================================================== */

.s-partner .statement {
  position: absolute;
  left: 140px;
  top: 150px;
  width: 1480px;
}
.s-partner .big {
  font-size: 76px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.s-partner .big em { font-style: normal; color: var(--red); }
.s-partner .muted { color: rgba(249,249,249,.42); }

.journey {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 690px;
  height: 200px;
}
.journey svg { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.journey .base { stroke: rgba(249,249,249,.16); stroke-width: 2; fill: none; }
.journey .path { stroke: var(--red); stroke-width: 3; fill: none; }
.journey .partner {
  position: absolute;
  top: 46px;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 9px rgba(218,41,28,.2), 0 0 40px rgba(218,41,28,.6);
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.journey.on .partner { opacity: 1; animation: travel 4.2s var(--ease-io) forwards; }
@keyframes travel { from { left: 0%; } to { left: 100%; } }
.journey .phases {
  position: absolute;
  left: 0;
  right: 0;
  top: 90px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.journey .ph { font-size: 25px; font-weight: 600; letter-spacing: -0.01em; color: rgba(249,249,249,.3); transition: color 700ms var(--ease); transition-delay: var(--d, 0ms); }
.journey .ph small { display: block; margin-top: 8px; font-size: 16px; font-weight: 450; letter-spacing: 0; line-height: 1.45; color: rgba(249,249,249,.35); max-width: 260px; transition: color 700ms var(--ease); transition-delay: var(--d, 0ms); }
.journey.on .ph { color: var(--paper); }
.journey.on .ph small { color: rgba(249,249,249,.6); }
.journey .ph:last-child { text-align: right; }
.journey .ph:last-child small { margin-left: auto; }
.journey .dots i {
  position: absolute;
  top: 46px;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(249,249,249,.4);
  transition: all 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.journey.on .dots i { border-color: var(--red); background: var(--red); }

/* ==========================================================================
   SLIDE 10 — Close / demo
   ========================================================================== */

.s-close { padding: 0; }
.s-close .roll-wrap {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}
.s-close .roll-wrap canvas { width: 100%; height: 100%; display: block; }
.s-close .closer {
  position: absolute;
  left: 140px;
  top: 50%;
  width: 1640px;
  transform: translateY(-50%);
  transition: top 1300ms var(--ease), transform 1300ms var(--ease);
}
.s-close.demo-on .closer { top: 120px; transform: none; }
.s-close .words {
  font-size: 112px;
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1.04;
  display: flex;
  gap: 0.28em;
  transition: font-size 1300ms var(--ease);
}
.s-close.demo-on .words { font-size: 72px; }
.s-close .words em { font-style: normal; color: var(--red); }
.s-close .tagline { margin-top: 44px; font-size: 32px; color: rgba(249,249,249,.62); letter-spacing: -0.012em; }
.s-close .contact {
  position: absolute;
  left: 140px;
  bottom: 120px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,249,249,.55);
}
.s-close .contact svg { width: 38px; height: 38px; color: var(--paper); }
.s-close .contact b { color: var(--paper); font-weight: 600; }

.demo {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 566px;
}
.demo .kicker { color: var(--paper); margin-bottom: 30px; }
.demo .links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.demo a {
  position: relative;
  display: block;
  padding: 30px 36px;
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--paper);
  text-decoration: none;
  transition: background 500ms var(--ease), border-color 500ms var(--ease), transform 500ms var(--ease);
}
.demo a:hover { background: rgba(218,41,28,.14); border-color: rgba(218,41,28,.6); transform: translateY(-3px); }
.demo a .n { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; color: var(--red); }
.demo a .t { display: block; margin-top: 12px; font-size: 38px; font-weight: 640; letter-spacing: -0.025em; }
.demo a .d { display: block; margin-top: 8px; font-size: 21px; color: rgba(249,249,249,.6); }
.demo a .u { display: block; margin-top: 22px; font-family: var(--mono); font-size: 16px; color: rgba(249,249,249,.45); }
.demo a .arrow { position: absolute; right: 40px; top: 36px; font-size: 40px; transition: transform 500ms var(--ease); }
.demo a:hover .arrow { transform: translateX(6px); }

/* ==========================================================================
   Overlay UI (not scaled): controls, notes, blackout
   ========================================================================== */

.controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 4px;
  background: rgba(26,28,28,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  font-family: var(--font);
}
body.ui-visible .controls { opacity: 1; transform: none; }
.controls button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(249,249,249,.8);
  font: 600 13px/1 var(--font);
  letter-spacing: 0.04em;
  height: 34px;
  min-width: 34px;
  padding: 0 11px;
  border-radius: 3px;
  cursor: pointer;
}
.controls button:hover { background: rgba(255,255,255,.1); color: #fff; }
.controls button[aria-pressed="true"] { background: var(--red); color: #fff; }
.controls .sep { width: 1px; background: rgba(255,255,255,.12); margin: 6px 2px; }
.controls kbd { font: inherit; opacity: 0.5; margin-left: 6px; }

.notes-panel {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 90;
  width: min(1100px, calc(100vw - 48px));
  max-height: 38vh;
  overflow: auto;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 22px 28px 24px;
  border-radius: 4px;
  background: rgba(16,15,19,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(249,249,249,.9);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transition: opacity 400ms var(--ease), transform 500ms var(--ease);
}
body.notes-on .notes-panel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.notes-panel .nh {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.notes-panel .nh span:last-child { color: rgba(249,249,249,.4); }
.notes-panel p { margin: 0 0 10px; }
.notes-panel p:last-child { margin-bottom: 0; }
.notes-panel ul { margin: 0 0 10px; padding-left: 22px; }
.notes-panel b { color: #fff; }

.blackout {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-io);
}
body.black .blackout { opacity: 1; pointer-events: auto; }

body.ui-hidden-cursor { cursor: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   Print (one slide per page, fully built)
   ========================================================================== */

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; background: none; }
  #viewport { position: static; display: block; }
  #stage { position: static; transform: none !important; background: none; overflow: visible; width: auto; height: auto; }
  .stage::after, .chrome, .controls, .notes-panel, .blackout { display: none !important; }
  .slide {
    position: relative;
    width: 1920px;
    height: 1080px;
    opacity: 1 !important;
    visibility: visible !important;
    page-break-after: always;
    break-after: page;
    background: var(--paper);
    overflow: hidden;
  }
  .slide[data-theme="dark"] { background: var(--ink); }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* cracks on the AI screen draw only once that screen is revealed */
.screen:not(.on) .draw { stroke-dashoffset: 1; }

/* notes: highlight what belongs to the current click */
.notes-panel p, .p-notes p { transition: opacity 400ms var(--ease), color 400ms; }
.notes-panel p.past, .p-notes p.past { opacity: 0.4; }
.notes-panel p.now, .p-notes p.now { color: #fff; box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; margin-left: -17px; }

.controls button span { opacity: 0.45; }
.controls button span.cur { opacity: 1; color: #fff; }

/* ==========================================================================
   Embedded previews (inside the presenter window)
   ========================================================================== */

body.embed .controls, body.embed .notes-panel { display: none !important; }
body.embed { cursor: default; }
body.embed.end #stage { visibility: hidden; }

/* ==========================================================================
   Presenter window
   ========================================================================== */

body.presenter-mode { background: #121414; overflow: auto; }
body.presenter-mode #viewport, body.presenter-mode .controls,
body.presenter-mode .notes-panel, body.presenter-mode .blackout { display: none !important; }

.pw {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--paper);
  font-family: var(--font);
}
.pw header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.p-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; }
.p-brand svg { width: 22px; height: 22px; color: var(--red); }
.p-brand span { font-weight: 450; opacity: .5; }
.p-pos { flex: 1; font-size: 16px; color: rgba(249,249,249,.7); font-variant-numeric: tabular-nums; }
.p-pos b { color: #fff; }
.p-time { display: flex; align-items: center; gap: 18px; font-variant-numeric: tabular-nums; }
#p-elapsed { font-size: 28px; font-weight: 640; letter-spacing: -.01em; }
#p-clock { font-size: 16px; opacity: .5; }
.pw button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--paper);
  font: 600 15px/1 var(--font);
  padding: 12px 18px;
  border-radius: 3px;
  cursor: pointer;
}
.pw button:hover { background: rgba(255,255,255,.1); }
.pw button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.pw button span { opacity: .45; }
.pw button span.cur { opacity: 1; }
.p-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 28px 28px;
  min-height: 0;
}
.p-left { display: flex; flex-direction: column; gap: 10px; }
.p-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(249,249,249,.45); }
.p-label + .p-frame { margin-bottom: 14px; }
.p-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.p-frame.small { width: 58%; }
.p-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.p-right { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.p-notes {
  flex: 1;
  overflow: auto;
  max-height: calc(100vh - 190px);
  font-size: 23px;
  line-height: 1.55;
  color: rgba(249,249,249,.85);
  padding: 4px 6px 4px 20px;
}
.p-notes p { margin: 0 0 18px; }
.p-notes b { color: #fff; }
.p-buttons { display: flex; gap: 10px; justify-content: flex-end; }


/* ==========================================================================
   Werkgasse alignment
   ========================================================================== */

/* thin frame lines bounding the content column, as on werkgasse.com */
.frame-lines i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: currentColor;
  opacity: 0.09;
}
.frame-lines { inset: 0; }
.frame-lines i:nth-child(1) { left: 96px; }
.frame-lines i:nth-child(2) { right: 96px; }
.frame-lines i:nth-child(3) {
  top: 112px;
  bottom: auto;
  left: 140px;
  right: 140px;
  width: auto;
  height: 1px;
  opacity: 0.08;
  background: linear-gradient(90deg, currentColor 70%, transparent);
  transition: opacity 600ms;
}
.stage[data-chrome="minimal"] .frame-lines i:nth-child(3) { opacity: 0; }

/* red vertical bar before section headlines */
.h-display { position: relative; }
.h-display::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0.16em;
  bottom: 0.1em;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1100ms var(--ease) 250ms;
}
.h-display.on::before { transform: none; }

/* short red rule under key statements */
.rule {
  display: block;
  width: 112px;
  height: 2px;
  background: var(--red);
}

.s-real .h-display { text-transform: uppercase; font-size: 80px; font-weight: 700; letter-spacing: -0.035em; }
.s-real .h-display::before { top: 0.12em; }

/* Werkgasse wordmark */
.wg { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* Swiss cross */
.ch {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  background:
    linear-gradient(#fff, #fff) center / 10px 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 10px no-repeat,
    var(--red);
}

/* client logo row (slide 6) */
.clients {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 818px;
  padding-top: 24px;
  border-top: 1px solid rgba(249,249,249,.1);
  display: grid;
  gap: 22px;
}
.clients .label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.5;
}
.clients .logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.clients .logos img {
  display: block;
  height: 54px;
  max-width: 172px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1100ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 900ms);
}
.clients.on .logos img { opacity: 0.62; }

/* slide 5: who is building, and the per-click caption */
.a-dev { margin-left: 16px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: #e35d52; color: #fff; font-size: 13px; font-weight: 600; border-radius: 3px; }
.a-dev svg { width: 13px; height: 13px; }
.ghost .who { position: absolute; left: 128px; top: 38px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.s5-cap { position: absolute; left: 140px; right: 140px; top: 962px; height: 30px; }
.s5-cap > p { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 20px; color: var(--ink-soft); }
.s5-cap > p.out { opacity: 0; transform: translateY(-8px); transition-delay: 0ms; }
.s5-cap b { color: var(--red); font-weight: 700; font-size: 15px; letter-spacing: .12em; margin-right: 14px; vertical-align: 1px; }

/* slide 3: one plain title per layer */
.layer h4 { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.layer h4 small { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(249,249,249,.5); white-space: nowrap; }

/* ==========================================================================
   SLIDE 3 — visual layers: icons → wireframes → the client's own app
   ========================================================================== */
.s-bridge .stack { top: 150px; gap: 16px; }
.s-bridge .layer { padding: 22px 30px 26px; }
.s-bridge .layer h4 { font-size: 30px; margin-bottom: 16px; }

.icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.ic { display: grid; justify-items: center; gap: 9px; text-align: center; font-size: 13px; color: rgba(249,249,249,.72); }
.ic svg { width: 30px; height: 30px; color: var(--paper); }
.ic, .wf { opacity: 0; transform: translateY(8px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i) * 70ms + 400ms); }
.layer.on .ic, .layer.on .wf { opacity: 1; transform: none; }

.wfs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.wf label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.w { position: relative; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 9px; background: #fff; border: 1.5px solid #cfd0d2; border-radius: 3px; color: #8d9092; font-size: 14px; overflow: hidden; }
.w .caret { width: 1.5px; height: 16px; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
.w .ph { flex: 1; height: 7px; border-radius: 2px; background: #e3e4e5; }
.w b { font-weight: 400; font-size: 12px; }
.w svg { width: 16px; height: 16px; flex: none; }
.w-toggle { border-color: transparent; background: transparent; padding: 0; }
.pill { position: relative; display: block; width: 36px; height: 18px; border-radius: 9px; background: #cfd0d2; flex: none; }
.pill > i { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pill.on { background: #9a9a9a; }
.pill.on > i { left: 20px; }
.w-table { background: repeating-linear-gradient(#fff 0 9px, #dcdddf 9px 10px), #fff; }
.w-upload { justify-content: center; border-style: dashed; }

.layer.yours h4 { color: #fff; }
.mapp {
  --t: 900ms var(--ease-io);
  display: grid; grid-template-columns: 150px 1fr; grid-template-rows: 42px 1fr; height: 258px;
  background: #f0f0f0; border-radius: 3px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #333;
  transition: background-color var(--t);
}
.mapp *:not(.fx) { transition: background-color var(--t), color var(--t), border-color var(--t), opacity var(--t); }
.mapp.on { background: #ffffff; color: #111; font-family: "Outfit", "Helvetica Neue", sans-serif; animation: rebrand 1100ms ease-out; }
@keyframes rebrand {
  0%   { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; filter: blur(0); }
  32%  { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; filter: blur(4px); }
  34%  { font-family: "Outfit", sans-serif; filter: blur(4px); }
  100% { font-family: "Outfit", sans-serif; filter: blur(0); }
}
.slide.settle .mapp { animation: none; }
.m-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #8a8a8a; color: #fff; }
.mapp.on .m-head { background: #2b45e8; color: #fff; }
.m-logos { position: relative; width: 26px; height: 26px; flex: none; }
.m-ph { position: absolute; inset: 0; border-radius: 50%; background: #b5b5b5; }
.m-logo { position: absolute; inset: 0; width: 26px; height: 26px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity 700ms var(--ease) 300ms, transform 1100ms var(--ease) 300ms !important; }
.mapp.on .m-ph { opacity: 0; }
.mapp.on .m-logo { opacity: 1; transform: none; }
.m-words { position: relative; width: 150px; height: 26px; }
.m-words > span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.m-anon { font-size: 15px; font-weight: 400; color: #eee; }
.m-word { font-size: 19px; font-weight: 700; letter-spacing: -.03em; text-transform: lowercase; line-height: 1; opacity: 0; }
.m-word small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .02em; text-transform: lowercase; color: rgba(255,255,255,.75); margin-top: 2px; }
.mapp.on .m-anon { opacity: 0; }
.mapp.on .m-word { opacity: 1; transition-delay: 350ms; }
.m-mod { margin-left: 16px; font-size: 14px; letter-spacing: .14em; }
.m-search { margin-left: auto; width: 150px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.4); font-size: 13px; opacity: .65; }
.m-side { background: #dedede; padding: 10px 0; }
.mapp.on .m-side { background: #f4f4f4; }
.m-nav { padding: 7px 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #555; }
.mapp.on .m-nav { color: #555; }
.m-nav.cur { background: #cacaca; color: #222; font-weight: 600; }
.mapp.on .m-nav.cur { background: #fff; color: #111; box-shadow: inset 3px 0 0 #2b45e8; }
.m-main { padding: 12px 20px; }
.m-title { font-size: 20px; line-height: 1.1; color: #222; margin-bottom: 10px; font-weight: 500; }
.mapp.on .m-title { color: #111; font-weight: 600; letter-spacing: -.01em; }
.m-title small { display: block; font-size: 12px; color: #888; margin-top: 3px; font-weight: 400; }
.mapp.on .m-title small { color: #2b45e8; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.mf.wide { grid-column: 1 / -1; }
.mf label { display: block; font-size: 11px; color: #777; margin-bottom: 3px; }
.mapp.on .mf label { color: #666; }
.mb { height: 27px; display: flex; align-items: center; gap: 8px; padding: 0 9px; background: #fff; border: 1px solid #cfcfcf; border-radius: 2px; font-size: 13px; }
.mapp.on .mb { border-color: #d4d4d4; }
.mb b { margin-left: auto; font-weight: 400; font-size: 11px; color: #999; }
.mb.tg { border-color: transparent !important; background: transparent; padding: 0; }
.mb.mt { display: grid; grid-template-columns: 1.2fr 1fr .8fr; }
.mb .pill.on { background: #9a9a9a; }
.mapp.on .mb .pill.on { background: #2b45e8; }

/* layer subtitles and right-hand tags */
.s-bridge .layer h4 { margin-bottom: 2px; }
.l-sub { font-size: 19px; margin: 0 0 14px; color: var(--ink-soft); }
.layer.core .l-sub { color: rgba(249,249,249,.6); }
.layer.yours .l-sub { color: rgba(255,255,255,.82); }
.layer.components h4 small { color: var(--ink-soft); }
.layer.yours h4 small { color: rgba(255,255,255,.75); }

.wf-ghost {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0;
  display: flex; align-items: center; gap: 6px; padding: 0 9px; overflow: hidden;
  background: #fff; border: 1.5px solid var(--red); border-radius: 3px; color: #8d9092; font-size: 14px;
  box-shadow: 0 16px 30px -8px rgba(0,0,0,.35);
}
.wf-ghost.w-table { background: repeating-linear-gradient(#fff 0 9px, #dcdddf 9px 10px), #fff; }
.wf-ghost.on { animation: wfly 1000ms var(--ease-io) var(--d, 0ms) both; }
.slide.settle .wf-ghost { display: none; }
@keyframes wfly {
  0%   { transform: translate(var(--fx), var(--fy)); width: var(--fw); height: var(--fh); opacity: 0; }
  12%  { transform: translate(var(--fx), calc(var(--fy) - 4px)); width: var(--fw); height: var(--fh); opacity: 1; }
  80%  { transform: translate(var(--tx), var(--ty)); width: var(--tw); height: var(--th); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)); width: var(--tw); height: var(--th); opacity: 0; }
}

/* slide 7: the AI chip orbits on the Pianola panel's edge; opening caption */
.screen.orbit { overflow: visible; }
.screen.orbit .ui { border-radius: 4px; overflow: hidden; }
.ai-chip svg { width: 16px; height: 16px; color: var(--red); }
.s-ai .vpanel .label { margin-bottom: 26px; }
.s-ai .vpanel .verdict { margin-top: 30px; }
.s-ai .same { position: absolute; left: 140px; right: 140px; top: 808px; text-align: center; font-size: 22px; line-height: 1.45; font-weight: 400; color: var(--ink-soft); }
.s-ai .same.out { opacity: 0; transform: translateY(-10px); transition-delay: 0ms; }

/* ==========================================================================
   Scrolling page (/pianola)
   Each slide sits in a track as tall as its builds plus a short pause; its pin
   fills the window while scrolling runs through them. The pin takes the slide's
   background, so the slide runs edge to edge however wide the window is.
   ========================================================================== */

[data-deck-scroll] {
  --step-scroll: 50vh; /* STEP_SCROLL in deck.js */
  --ticks: 36px;
  --frame-w: min(100vw, (100vh - var(--ticks) * 2) * var(--frame-ratio));
  font-family: var(--font);
}

.scroll-track {
  position: relative;
  height: calc(100vh + (var(--steps) + 0.6) * var(--step-scroll));
  height: calc(100svh + (var(--steps) + 0.6) * var(--step-scroll));
}

/* The scroll stop of each build step; deck.js reads their positions. */
.scroll-snap {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  top: calc((var(--k) + min(var(--k), 1) * 0.25) * var(--step-scroll));
  pointer-events: none;
}

.scroll-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--ticks);
}

.scroll-frame {
  position: relative;
  width: var(--frame-w);
  margin-inline: auto;
  aspect-ratio: var(--frame-ratio);
  overflow: hidden;
}

.scroll-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
}

.scroll-ticks {
  width: var(--frame-w);
  height: var(--ticks);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 32px;
  transition: opacity 600ms var(--ease);
}
/* The scroll cue takes the same band. */
.hinting .scroll-ticks { opacity: 0; }

/* One mark per build: built ones red and clickable, upcoming ones grey. The current one is
   wider; with autoplay it fills with red until the next build (--p, set by deck.js). */
.scroll-ticks button {
  --grey: rgba(26, 28, 28, 0.16);
  display: grid;
  align-items: center;
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
  transition: width 500ms var(--ease);
}
.stage[data-theme="dark"] .scroll-ticks button { --grey: rgba(249, 249, 249, 0.18); }
.scroll-ticks button::before {
  content: "";
  height: 2px;
  background: var(--grey);
  transition: background-color 500ms var(--ease), transform 200ms var(--ease);
}
.scroll-ticks .done { cursor: pointer; }
.scroll-ticks .done::before { background: var(--red); }
.scroll-ticks .done:hover::before, .scroll-ticks .done:focus-visible::before { transform: scaleY(2); }
.scroll-ticks .done:focus-visible { outline: none; }
.scroll-ticks .cur { width: 44px; }
.scroll-ticks .cur::before {
  background: linear-gradient(var(--red), var(--red)) 0 0 / calc(var(--p, 1) * 100%) 100% no-repeat, var(--grey);
}
.autoplay .scroll-ticks .cur:not(:last-child) { --p: 0; }

/* --------------------------------------------------------------------------
   Portrait windows (phones): deck.js sizes each stage 720 wide; every slide
   stacks its blocks top to bottom instead of placing them across 1920 px.
   -------------------------------------------------------------------------- */

.portrait .scroll-frame { aspect-ratio: auto; margin-inline: 0; }
.portrait .scroll-ticks { width: 100%; padding-inline: 20px; }

.portrait .slide {
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  padding: 96px 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
}
.portrait .slide > :not(.roll-wrap) { position: relative; inset: auto; width: auto; }

.portrait .h-display { font-size: 60px !important; }
.portrait .eyebrow { font-size: 18px; }
.portrait .kicker { font-size: 40px; line-height: 1.15; }
.portrait .lead { font-size: 25px; max-width: none; }

/* 01 title */
.portrait .s-title { justify-content: flex-start; padding-top: 110px; }
.portrait .s-title .mark { width: 76px; height: 76px; margin-bottom: 30px; }
.portrait .s-title h1 { font-size: 132px; margin-left: -6px; }
.portrait .s-title .sub { margin-top: 30px; font-size: 32px; }
.portrait .s-title .roll-wrap { top: auto; bottom: -40px; height: 44%; right: 48px; width: 340px; }

/* 02 dilemma */
.portrait .s-dilemma .cols { grid-template-columns: 1fr; gap: 24px; }
.portrait .option { grid-template-columns: 210px 1fr; gap: 26px; padding: 26px; min-height: 0; }
.portrait .option h3 { font-size: 32px; margin-bottom: 10px; }
.portrait .option li { font-size: 23px; padding: 6px 0 6px 30px; }
.portrait .s-dilemma .question { font-size: 50px; }

/* 03 idea */
.portrait .s-bridge { gap: 36px; }
.portrait .s-bridge .spectrum .track { margin-top: 96px; }
.portrait .spectrum .m-lockup span { font-size: 52px; }
.portrait .s-bridge .stack { width: 900px; flex: none; align-self: flex-start; }

/* 04 instrument */
.portrait .s-instrument .right { order: 1; }
.portrait .s-instrument .piano { order: 2; width: 380px; align-self: center; }
.portrait .s-instrument .rolls { order: 3; }
.portrait .s-instrument .story { margin-top: 30px; height: 220px; }
.portrait .s-instrument .story p { font-size: 26px; }
.portrait .rollrow { grid-template-columns: 180px 1fr; gap: 20px; }

/* 05 config */
.portrait .s-config { gap: 32px; }
.portrait .s-config .head { flex-direction: column; align-items: flex-start; gap: 24px; }
.portrait .s-config .json { height: 490px; }
.portrait .s-config .app { width: 1040px; flex: none; align-self: flex-start; }
.portrait .s5-cap { height: 64px; }
.portrait .s5-cap > p { white-space: normal; font-size: 22px; }

/* 06 in production */
.portrait .shots { grid-template-columns: 1fr !important; gap: 26px; }
.portrait .shot { grid-template-columns: 340px 1fr; align-items: center; gap: 24px; }
.portrait .shot .cap { font-size: 24px; }
.portrait .clients .logos { flex-wrap: wrap; justify-content: flex-start; gap: 28px 44px; }
.portrait .clients .logos img { height: 44px; max-width: 160px; }

/* 07 AI */
.portrait .s-ai .versus { width: 780px; flex: none; align-self: flex-start; grid-template-columns: 1fr; gap: 44px; }
.portrait .s-ai .vpanel .verdict { font-size: 30px; max-width: none; }
.portrait .s-ai .vpanel .label { font-size: 20px; }
.portrait .s-ai .same { font-size: 24px; }

/* 08 ecosystem */
.portrait .s-eco .points { margin-top: 32px; gap: 20px; }
.portrait .s-eco .points .pt div { font-size: 24px; }
.portrait .s-eco .eco { width: 1040px; height: 780px; flex: none; align-self: flex-start; }

/* 09 partnership: the journey becomes a list */
.portrait .s-partner .big { font-size: 52px; }
.portrait .journey { height: auto; }
.portrait .journey svg, .portrait .journey .dots, .portrait .journey .partner { display: none; }
.portrait .journey .phases { position: relative; top: 0; display: grid !important; grid-template-columns: 1fr; gap: 22px; }
.portrait .journey .ph {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  text-align: left !important;
  padding-left: 26px;
  border-left: 3px solid rgba(249,249,249,.16);
  font-size: 30px;
  transition: color 700ms var(--ease) var(--d, 0ms), border-color 700ms var(--ease) var(--d, 0ms);
}
.portrait .journey.on .ph { border-color: var(--red); }
.portrait .journey .ph small { max-width: none; margin-left: 0; font-size: 22px; }

/* 10 close */
.portrait .s-close .words { font-size: 76px; }
.portrait .s-close .tagline { margin-top: 32px; font-size: 28px; }
.portrait .s-close .contact { flex-wrap: wrap; gap: 14px 18px; font-size: 16px; }

/* The idle scroll cue, in the band below the slide */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 17px 8px calc(19px + 0.26em);
  border-radius: 999px;
  background: rgba(249, 249, 249, 0.96);
  box-shadow: 0 0 0 1px rgba(26, 28, 28, 0.08), 0 12px 30px -10px rgba(26, 28, 28, 0.28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(26, 28, 28, 0.5);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), color 600ms;
  pointer-events: none;
}
.scroll-hint.show { opacity: 1; transform: translate(-50%, 0); transition-duration: 1400ms, 1400ms, 600ms; }
.scroll-hint { color: rgba(26, 28, 28, 0.62); }
.scroll-hint[data-theme="dark"] {
  color: rgba(249, 249, 249, 0.7);
  background: rgba(46, 49, 49, 0.96);
  box-shadow: 0 0 0 1px rgba(249, 249, 249, 0.08), 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.scroll-hint svg { width: 13px; height: 21px; color: var(--red); }
.scroll-hint.show svg { animation: hint-nudge 2.4s var(--ease-io) 1.2s infinite; }
@keyframes hint-nudge {
  0%, 100% { transform: translateY(-2px); opacity: 0.35; }
  50% { transform: translateY(3px); opacity: 1; }
}
