:root {
  /* Ineapple brand: Orange #b85117 primary, Charcoal #303841, Teal #1acea6 secondary, Warm Orange #db8859 */
  --bg: #1b2026;
  --bg2: #303841;
  --ink: #ffffff;
  --muted: #c9d0d6;
  --dim: #8e979f;
  --teal: #1acea6;
  --orange: #b85117;
  --amber: #db8859;
  --rose: #ff6b8a;
  --line: rgba(255,255,255,.12);
  --card: rgba(48,56,65,.62);
  --card-2: rgba(255,255,255,.09);
  --shadow: 0 30px 80px rgba(0,0,0,.5);
  --font-d: "Droid Sans", "Open Sans", Arial, sans-serif;
  --font-b: "Droid Sans", "Open Sans", Arial, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 96px);
  --flip-ms: 1050ms;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: clamp(15px, 1.15vw + .4rem, 21px);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; letter-spacing: -.015em; line-height: 1.1; }
b, strong { font-weight: 600; }

/* ---------- stage & pages ---------- */
#stage { position: fixed; inset: 0; perspective: 2600px; perspective-origin: 50% 50%; background: var(--bg); }
#deck { position: absolute; inset: 0; transform-style: preserve-3d; }
.slide {
  position: absolute; inset: 0; overflow: hidden; background: var(--bg);
  display: none; isolation: isolate;
}
.slide.is-active, .slide.is-under { display: block; }
.slide.is-under { z-index: 0; }
.slide.is-active { z-index: 1; }
.slide .bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide .bg video, .slide .bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.03); opacity: .5; filter: saturate(.7); }
.slide .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(27,32,38,.94) 0%, rgba(27,32,38,.84) 40%, rgba(27,32,38,.55) 72%, rgba(27,32,38,.7) 100%),
    linear-gradient(180deg, rgba(27,32,38,.35) 0%, rgba(27,32,38,.05) 30%, rgba(27,32,38,.75) 100%);
}
.slide.bg-center .bg::after {
  background: radial-gradient(ellipse at 50% 45%, rgba(27,32,38,.45) 0%, rgba(27,32,38,.85) 60%, rgba(27,32,38,.97) 100%);
}
.slide .bg canvas { width: 100%; height: 100%; display: block; }
.slide .content {
  position: relative; z-index: 2; height: 100%;
  padding: clamp(64px, 9vh, 120px) var(--gutter) clamp(96px, 14vh, 150px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.2vh, 28px);
  max-width: 1500px; margin: 0 auto;
}
.slide.wide .content { max-width: 1700px; }

/* page flip */
#flip {
  position: absolute; inset: 0; z-index: 5; transform-style: preserve-3d;
  transform-origin: left center; will-change: transform;
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
}
#flip.origin-right { transform-origin: right center; }
#flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
#flip .face.front { z-index: 2; }
#flip .face.front .slide { display: block; }
#flip .face.back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #2a323b, #1b2026 40%, #232a31);
}
#flip .face.back::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 9px);
}
#flip .face.back .watermark {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.06);
  font-family: var(--font-d); font-weight: 800; font-size: clamp(60px, 14vw, 240px); letter-spacing: -.04em;
  transform: scaleX(-1);
}
#flip .shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.0) 60%, rgba(0,0,0,.55) 100%);
  opacity: 0;
}
#stage .cast {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,0) 45%);
}
@keyframes flip-fwd { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(-180deg); } }
@keyframes flip-back { 0% { transform: rotateY(-180deg); } 100% { transform: rotateY(0deg); } }
@keyframes shade-in { 0% { opacity: 0; } 45% { opacity: .9; } 100% { opacity: 1; } }
@keyframes shade-out { 0% { opacity: 1; } 55% { opacity: .9; } 100% { opacity: 0; } }
@keyframes cast-fwd { 0% { opacity: 0; } 40% { opacity: .0; } 60% { opacity: .55; } 100% { opacity: 0; } }
#flip.anim-fwd { animation: flip-fwd var(--flip-ms) cubic-bezier(.6,.05,.25,1) forwards; }
#flip.anim-back { animation: flip-back var(--flip-ms) cubic-bezier(.6,.05,.25,1) forwards; }
#flip.anim-fwd .shade { animation: shade-in var(--flip-ms) linear forwards; }
#flip.anim-back .shade { animation: shade-out var(--flip-ms) linear forwards; }
#stage.casting .cast { animation: cast-fwd var(--flip-ms) linear forwards; }

@media (prefers-reduced-motion: reduce) {
  #flip { display: none !important; }
  .slide.is-active { animation: fade-in .5s ease; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- HUD ---------- */
.hud { transition: opacity .35s ease, transform .35s ease; }
body.idle .hud:not(#tag) { opacity: 0; pointer-events: none; }
body.idle #tag { opacity: .55; }
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; }
#segments { display: flex; gap: 3px; height: 100%; padding: 0 3px; }
#segments i { flex: 1; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; position: relative; }
#segments i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform .3s ease; }
#segments i.done::after { transform: scaleX(1); }
#segments i.now::after { transform: scaleX(var(--p, 0)); transition: transform .25s linear; }

#tag {
  position: fixed; top: 18px; right: 20px; z-index: 20; display: flex; gap: 8px; align-items: center;
  font-family: var(--font-m); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: rgba(27,32,38,.5); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  backdrop-filter: blur(10px);
}
#tag .tag-k { color: var(--dim); }
#tag .tag-k::after { content: "·"; margin-left: 8px; }
#tag-v { color: var(--amber); }

#bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 4px; padding: 6px 10px 6px 14px;
  background: rgba(37,43,50,.72); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 10px 40px rgba(0,0,0,.4);
  max-width: calc(100vw - 32px);
}
#bar .brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 600; font-size: 14px; letter-spacing: -.01em; margin-right: 8px; }
#bar .brand b { color: var(--amber); font-weight: 700; }
#bar .counter { font-family: var(--font-m); font-size: 12px; color: var(--muted); margin-right: 6px; }
#bar .counter .sep { opacity: .5; margin: 0 2px; }
#bar .spacer { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.ib, .tb { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.ib:hover, .tb:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.ib svg, .tb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb span { font-size: 12px; font-weight: 600; }
.tb[aria-pressed="true"] { color: var(--amber); }
#b-play { color: var(--ink); background: rgba(255,255,255,.08); }
#b-play .i-pause { display: none; }
#b-play.playing .i-play { display: none; }
#b-play.playing .i-pause { display: block; }
#b-mute .i-off { display: none; }
#b-mute.muted .i-on { display: none; }
#b-mute.muted .i-off { display: block; }

#captions {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 19;
  width: min(900px, calc(100vw - 32px)); text-align: center; pointer-events: none;
}
#cap-text {
  display: inline-block; padding: 10px 18px; border-radius: 12px;
  background: rgba(27,32,38,.72); backdrop-filter: blur(10px); border: 1px solid var(--line);
  font-size: clamp(14px, 1.05vw + .3rem, 19px); line-height: 1.45; color: var(--muted);
}
#cap-text .w.on { color: var(--ink); }
#cap-text .w.now { color: var(--amber); }

/* gate */
#gate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #303841 0%, var(--bg) 65%); transition: opacity .6s ease; padding: 16px; }
#gate.hide { opacity: 0; pointer-events: none; }
.gate-card { text-align: center; max-width: 620px; }
.gate-logo { color: var(--ink); margin-bottom: 18px; }
#gate h1 { font-size: clamp(48px, 9vw, 104px); font-weight: 800; letter-spacing: -.045em; }
#gate h1 b, .slide h1 b { color: var(--amber); font-weight: 800; }
.eyebrow { font-family: var(--font-m); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--amber); margin: 0 0 6px; }
.lede { font-size: clamp(17px, 1.6vw, 24px); color: var(--muted); margin: 10px 0 28px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--amber); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.04); }
.gate-meta { margin-top: 26px; font-family: var(--font-m); font-size: 12px; color: var(--dim); }

/* overview */
#overview { position: fixed; inset: 0; z-index: 30; background: rgba(27,32,38,.92); backdrop-filter: blur(20px); overflow: auto; padding: 24px var(--gutter) 60px; }
.ov-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ov-head h2 { font-size: 22px; }
#ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ov-item { text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); transition: transform .15s, border-color .2s; }
.ov-item:hover { transform: translateY(-2px); border-color: rgba(219,136,89,.5); }
.ov-item.now { border-color: var(--amber); }
.ov-item .thumb { aspect-ratio: 16/9; background: #2a323b center/cover; overflow: hidden; }
.ov-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.thumb .hud, body.thumb #progress, body.thumb .hint { display: none !important; }
.ov-item .meta { padding: 10px 12px; }
.ov-item .n { font-family: var(--font-m); font-size: 11px; color: var(--amber); }
.ov-item .t { font-family: var(--font-d); font-weight: 600; font-size: 14px; margin-top: 2px; line-height: 1.25; }

/* ---------- slide typography & components ---------- */
.slide h1 { font-size: clamp(56px, 9.5vw, 148px); font-weight: 800; letter-spacing: -.045em; }
.slide h2 { font-size: clamp(30px, 3.6vw, 62px); font-weight: 700; max-width: 22ch; text-wrap: balance; }
.slide h2 em { font-style: normal; color: var(--amber); }
.slide .sub { font-size: clamp(16px, 1.35vw, 24px); color: var(--muted); max-width: 60ch; margin: 0; text-wrap: pretty; }
.slide .kicker { font-size: clamp(16px, 1.3vw, 23px); color: var(--ink); max-width: 62ch; margin: 0; padding-left: 16px; border-left: 3px solid var(--amber); text-wrap: pretty; }
.slide .quote { font-family: var(--font-d); font-size: clamp(20px, 2vw, 34px); font-weight: 600; color: var(--ink); max-width: 30ch; line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.slide .quote em { font-style: normal; color: var(--amber); }
.slide .meta { font-family: var(--font-m); font-size: clamp(11px, .8vw, 14px); color: var(--dim); letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.slide .hint { position: absolute; right: var(--gutter); bottom: clamp(96px, 14vh, 150px); font-family: var(--font-m); font-size: 12px; color: var(--dim); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.cards { display: grid; gap: clamp(10px, 1.2vw, 18px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(14px, 1.4vw, 22px); backdrop-filter: blur(6px); }
.card h3 { font-size: clamp(16px, 1.25vw, 22px); font-weight: 600; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: clamp(13.5px, .95vw, 17px); }
.card .n { font-family: var(--font-d); font-size: clamp(30px, 3vw, 54px); font-weight: 700; letter-spacing: -.03em; color: var(--amber); line-height: 1; }
.card .n small { font-size: .45em; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.card .l { font-size: clamp(12px, .85vw, 15px); color: var(--muted); margin-top: 8px; }
.card.amber .n, .card.amber h3 { color: var(--amber); }
.card.rose .n, .card.rose h3 { color: var(--rose); }
.card.ghost { background: transparent; border-style: dashed; }
.icon { width: 28px; height: 28px; stroke: var(--amber); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-m); font-size: clamp(11px, .8vw, 13.5px); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.03); }
.chip.t { color: var(--amber); border-color: rgba(219,136,89,.35); }
.chip.a { color: var(--amber); border-color: rgba(255,179,92,.35); }

.two { display: grid; gap: clamp(14px, 2vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.col-h { font-family: var(--font-m); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin: 0 0 10px; }
.col-h.t { color: var(--amber); } .col-h.a { color: var(--amber); } .col-h.r { color: var(--rose); }
ul.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.list li { position: relative; padding-left: 22px; color: var(--ink); font-size: clamp(14px, 1.05vw, 19px); }
ul.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(219,136,89,.15); }
ul.list.a li::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,179,92,.15); }
ul.list.r li::before { background: var(--rose); box-shadow: 0 0 0 4px rgba(255,107,138,.15); }
ul.list.x li::before { background: transparent; box-shadow: none; border: 2px solid var(--rose); width: 8px; height: 8px; }
ul.list li small { display: block; color: var(--muted); font-size: .85em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px 18px; counter-increment: s; }
.step::before { content: "0" counter(s); font-family: var(--font-m); color: var(--amber); font-size: 12px; letter-spacing: .1em; }
.step h3 { font-size: clamp(16px, 1.2vw, 21px); margin: 8px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: clamp(13px, .95vw, 16px); }
.step::after { content: ""; position: absolute; right: -8px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--dim); border-right: 2px solid var(--dim); transform: translateY(-50%) rotate(45deg); }
.step:last-child::after { display: none; }

/* ticket (checkout slide) */
.ticket { font-family: var(--font-m); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); border: 1px solid rgba(219,136,89,.35); border-radius: 18px; padding: 20px 22px; max-width: 560px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); }
.ticket .th { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.ticket dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; margin: 0; font-size: clamp(12.5px, .9vw, 15.5px); }
.ticket dt { color: var(--dim); text-transform: uppercase; font-size: .8em; letter-spacing: .1em; padding-top: 2px; }
.ticket dd { margin: 0; color: var(--ink); }
.ticket dd.hl { color: var(--amber); }
.ticket .ttl { margin-top: 14px; height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.ticket .ttl i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--amber)); transform-origin: left; animation: ttl 9s linear infinite; }
@keyframes ttl { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* silos (lock-in slide) */
.silos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.silo { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); position: relative; }
.silo h3 { font-size: clamp(15px, 1.1vw, 20px); display: flex; align-items: center; gap: 8px; }
.silo h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.silo ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-m); font-size: clamp(11.5px, .8vw, 13.5px); color: var(--muted); }
.silo ul li::before { content: "▸ "; color: var(--dim); }
.silo .x { position: absolute; top: -10px; right: 14px; font-family: var(--font-m); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--bg); border: 1px solid rgba(255,107,138,.5); color: var(--rose); padding: 3px 8px; border-radius: 999px; }

/* pillars (idea slide) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.pillar { padding: 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(219,136,89,.10), rgba(219,136,89,.02)); border: 1px solid rgba(219,136,89,.25); }
.pillar h3 { font-size: clamp(16px, 1.2vw, 21px); }
.pillar p { margin: 6px 0 0; color: var(--muted); font-size: clamp(13px, .95vw, 16px); }

/* architecture diagram */
.arch { width: 100%; height: auto; max-height: 62vh; display: block; }
.arch text { font-family: var(--font-b); fill: var(--ink); }
.arch .lbl { font-size: 15px; font-weight: 600; }
.arch .sm { font-size: 11.5px; fill: var(--muted); font-family: var(--font-m); }
.arch .hd { font-size: 12px; font-family: var(--font-m); fill: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.arch .box { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.16); }
.arch .box.core { fill: rgba(219,136,89,.07); stroke: rgba(219,136,89,.5); }
.arch .box.local { fill: rgba(219,136,89,.06); stroke: rgba(219,136,89,.35); }
.arch .box.proxy { fill: rgba(255,179,92,.08); stroke: rgba(255,179,92,.5); }
.arch .box.frontier { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.14); stroke-dasharray: 4 4; }
.arch .mod { fill: rgba(27,32,38,.55); stroke: rgba(219,136,89,.35); }
.arch .wire { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.arch .wire.t { stroke: rgba(219,136,89,.55); }
.arch .wire.a { stroke: rgba(255,179,92,.55); stroke-dasharray: 6 5; }
.arch .p { fill: var(--amber); }
.arch .p.a { fill: var(--amber); }
.arch .p.r { fill: var(--rose); }
.arch .p.w { fill: var(--ink); }

/* gantt */
.gantt { width: 100%; height: auto; display: block; }
.gantt text { font-family: var(--font-b); fill: var(--ink); font-size: 13px; }
.gantt .m { font-family: var(--font-m); font-size: 10.5px; fill: var(--dim); }
.gantt .amt { font-family: var(--font-m); font-size: 12.5px; fill: var(--amber); font-weight: 500; }
.gantt .grid { stroke: rgba(255,255,255,.07); }
.gantt .bar { rx: 6; transform-origin: left center; transform: scaleX(0); animation: grow 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.slide:not(.is-active) .gantt .bar { animation: none; }
@keyframes grow { to { transform: scaleX(1); } }
.plan-total { display: flex; gap: clamp(16px, 3vw, 48px); flex-wrap: wrap; align-items: baseline; }
.plan-total .big { font-family: var(--font-d); font-size: clamp(34px, 4vw, 66px); font-weight: 800; letter-spacing: -.04em; color: var(--amber); line-height: 1; }
.plan-total .big small { font-size: .38em; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }

/* timeline (milestones) */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 12px; height: 2px; background: linear-gradient(90deg, var(--amber), var(--amber)); }
.ms { position: relative; }
.ms::before { content: ""; position: absolute; top: -28px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--amber); transform: translateX(-50%); box-shadow: 0 0 0 6px rgba(219,136,89,.12); }
.ms:nth-child(4)::before, .ms:nth-child(5)::before { border-color: var(--amber); box-shadow: 0 0 0 6px rgba(255,179,92,.12); }
.ms .m { font-family: var(--font-m); color: var(--amber); font-size: 12px; letter-spacing: .1em; text-align: center; }
.ms:nth-child(4) .m, .ms:nth-child(5) .m { color: var(--amber); }
.ms .card { margin-top: 8px; height: calc(100% - 26px); }
.ms .card p { font-size: clamp(12.5px, .9vw, 16px); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; padding-top: 0; } .timeline::before { display: none; } .ms::before { display: none; } .ms .m { text-align: left; } }

/* ledger ticker */
.ledger { font-family: var(--font-m); font-size: clamp(11px, .78vw, 13px); color: var(--muted); background: rgba(27,32,38,.6); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 10px; height: 9.4em; overflow: hidden; line-height: 1.6; display: flex; flex-direction: column; }
.ledger .lb { flex: 1; overflow: hidden; }
.ledger .lb div, .ledger .lh { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .lh { display: flex; justify-content: space-between; font-size: .85em; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border-bottom: 1px dashed var(--line); padding-bottom: 5px; margin-bottom: 6px; }
.ledger .mode.live { color: var(--rose); animation: pulse 1s ease-in-out infinite; }
.ledger .mode.slowed { color: var(--teal); }
.ledger.fast .lb div { opacity: .55; filter: blur(.3px); }
.ledger .k { color: var(--amber); } .ledger .u { color: var(--amber); } .ledger .d { color: var(--dim); }

/* compare table */
.cmp { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1vw, 18px); }
.cmp th, .cmp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-family: var(--font-m); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.cmp td:first-child { color: var(--muted); }
.cmp .y { color: var(--amber); } .cmp .n { color: var(--rose); } .cmp .m { color: var(--amber); }

/* hospital flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(10px, 2vw, 28px); align-items: center; }
.flow .in, .flow .out { display: grid; gap: 10px; }
.flow .node { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: clamp(13px, .95vw, 17px); }
.flow .node b { display: block; font-family: var(--font-d); font-weight: 600; }
.flow .node span { color: var(--muted); font-size: .9em; }
.flow .core { text-align: center; padding: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 22px); border-radius: 22px; background: radial-gradient(circle at 50% 30%, rgba(219,136,89,.28), rgba(219,136,89,.05) 70%); border: 1px solid rgba(219,136,89,.5); box-shadow: 0 0 60px rgba(219,136,89,.18); }
.flow .core b { font-family: var(--font-d); font-size: clamp(16px, 1.4vw, 24px); display: block; }
.flow .core small { font-family: var(--font-m); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 800px) { .flow { grid-template-columns: 1fr; } }

/* use-case grid */
.uc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.uc .card { padding: 14px 16px; }
.uc .card h3 { font-size: clamp(14.5px, 1.05vw, 19px); }
.uc .card p { font-size: clamp(12.5px, .85vw, 15px); }

/* risk rows */
.risks { display: grid; gap: 8px; }
.risk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: clamp(13px, .95vw, 17px); align-items: center; }
.risk .r { color: var(--ink); } .risk .r::before { content: "Risk"; display: block; font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; color: var(--rose); text-transform: uppercase; }
.risk .m { color: var(--muted); } .risk .m::before { content: "Mitigation"; display: block; font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; color: var(--amber); text-transform: uppercase; }
@media (max-width: 700px) { .risk { grid-template-columns: 1fr; } }

/* ask */
.ask-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.contact { font-family: var(--font-m); color: var(--muted); font-size: clamp(12px, .95vw, 16px); display: flex; gap: 18px; flex-wrap: wrap; }
.contact a { color: var(--amber); text-decoration: none; }

/* responsive */
@media (max-width: 760px) {
  .slide .content { padding-top: 60px; padding-bottom: 150px; justify-content: flex-start; overflow-y: auto; }
  .slide .hint { display: none; }
  #bar .brand span, #bar .counter, .tb span { display: none; }
  #bar { gap: 0; padding: 4px 6px; }
  #bar .spacer { margin: 0 2px; }
  #captions { bottom: 72px; }
  #tag { top: 12px; right: 12px; font-size: 10px; padding: 4px 9px; }
  #tag .tag-k { display: none; }
  .slide .bg::after { background: linear-gradient(180deg, rgba(27,32,38,.85) 0%, rgba(27,32,38,.75) 50%, rgba(27,32,38,.92) 100%); }
}

/* ---------- Ineapple brand: teal is the secondary accent ---------- */
.chip.t { color: var(--teal); border-color: rgba(26,206,166,.4); }
.arch .box.local { fill: rgba(26,206,166,.07); stroke: rgba(26,206,166,.45); }
.arch .wire.t { stroke: rgba(26,206,166,.6); }
.arch .p { fill: var(--teal); }
.arch .p.a { fill: var(--amber); }
.ledger .k { color: var(--teal); }
.cmp .y { color: var(--teal); }
ul.list li::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(26,206,166,.15); }
.ms:nth-child(4)::before, .ms:nth-child(5)::before { border-color: var(--teal); box-shadow: 0 0 0 6px rgba(26,206,166,.12); }
.ms:nth-child(4) .m, .ms:nth-child(5) .m { color: var(--teal); }
.timeline::before { background: linear-gradient(90deg, var(--amber), var(--teal)); }
.ticket .ttl i { background: linear-gradient(90deg, var(--amber), var(--teal)); }
.risk .m::before { color: var(--teal); }
#bar .brand img { height: 24px; width: auto; display: block; }
#bar .brand .by { font-weight: 400; color: var(--dim); font-size: 12px; margin-left: 2px; }
.slide .brandmark { position: absolute; left: var(--gutter); bottom: clamp(96px, 14vh, 150px); display: flex; align-items: center; gap: 10px; font-family: var(--font-m); font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.slide .brandmark img { height: 40px; width: auto; }
@media (max-width: 760px) { .slide .brandmark { display: none; } }

.gate-by { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-m); font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.gate-by img { height: 44px; width: auto; }
