/* CO-SYNE thesis presentation: full-screen slides with staged animation. */
html, body { height: 100%; overflow: hidden; background: #fff; }
.deck { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 72px max(6vw, 32px) 96px; opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s; overflow: hidden; }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.slide.past { transform: translateX(-40px); }
.slide-inner { width: 100%; max-width: 1240px; margin: 0 auto; }
.slide .a { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .65s cubic-bezier(.2, .8, .2, 1); }
.slide.on .a { opacity: 1; transform: none; }
.slide.on .a:nth-child(1) { transition-delay: .10s; } .slide.on .a:nth-child(2) { transition-delay: .22s; }
.slide.on .a:nth-child(3) { transition-delay: .34s; } .slide.on .a:nth-child(4) { transition-delay: .46s; }
.slide.on .a:nth-child(5) { transition-delay: .58s; } .slide.on .a:nth-child(6) { transition-delay: .70s; }
.slide.on .a:nth-child(7) { transition-delay: .82s; } .slide.on .a:nth-child(8) { transition-delay: .94s; }
.slide h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 20px; }
.slide h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; max-width: 1000px; }
.slide .kicker { font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.slide .big { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--ink-2); max-width: 900px; line-height: 1.5; }
.slide .src { font-size: .78rem; color: var(--faint); margin-top: 22px; }
.slide .src a { color: var(--faint); }
.slide.dark { background: #0b1b2b; color: #fff; }
.slide.dark h1, .slide.dark h2 { color: #fff; }
.slide.dark .big { color: #c9d6e3; }
.slide.dark .kicker { color: #7cc0ff; }
.slide.photo { color: #fff; }
.slide.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 18, 36, .86) 0%, rgba(0, 18, 36, .55) 55%, rgba(0, 18, 36, .2) 100%); }
.slide.photo h1, .slide.photo h2 { color: #fff; }
.slide.photo .big { color: #e3ecf5; }
.slide.photo .kicker { color: #9fd0ff; }
.slide.photo.on > img { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

/* building blocks */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.stat-x { border-top: 4px solid var(--blue); padding-top: 14px; }
.stat-x b { display: block; font: 600 clamp(2rem, 4.4vw, 3.6rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.slide.dark .stat-x b, .slide.photo .stat-x b { color: #fff; }
.stat-x span { display: block; margin-top: 8px; color: var(--muted); font-size: 1rem; }
.slide.dark .stat-x span, .slide.photo .stat-x span { color: #c9d6e3; }
.tiles { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; margin-top: 28px; }
.tile-x { background: #fff; border-radius: 10px; box-shadow: var(--shadow-8); padding: 20px 22px; color: var(--ink); }
.tile-x .ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: 10px; }
.tile-x b { display: block; font: 600 1.12rem/1.25 var(--font-display); margin-bottom: 6px; }
.tile-x span { color: var(--muted); font-size: .95rem; }
.slide.dark .tile-x { background: rgba(255, 255, 255, .07); box-shadow: none; border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.slide.dark .tile-x span { color: #b8c7d6; }
.slide.dark .tile-x .ico { color: #7cc0ff; }
.quote { font: 600 clamp(1.6rem, 3.4vw, 2.8rem)/1.25 var(--font-display); letter-spacing: -.015em; max-width: 1080px; }
.quote em { font-style: normal; color: var(--blue); }
.slide.dark .quote em { color: #7cc0ff; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 30px; counter-reset: f; }
.flow .a { background: #fff; border-radius: 10px; box-shadow: var(--shadow-8); padding: 16px; position: relative; }
.flow .a::before { counter-increment: f; content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 10px; }
.flow .a b { display: block; font-size: 1rem; margin-bottom: 4px; }
.flow .a span { font-size: .86rem; color: var(--muted); }
.flow .a:not(:last-child)::after { content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 1.6rem; font-weight: 700; }
.split-x { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split-x .media { position: relative; }
.split-x .media img { border-radius: 12px; box-shadow: var(--shadow-16); }
.phase-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 34px; }
.phase-row .a { padding: 0 16px 0 0; }
.phase-row .a i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); margin-bottom: 14px; }
.phase-row .a.done i { background: var(--blue); }
.phase-row .a.now i { background: linear-gradient(90deg, var(--blue) 50%, var(--line-2) 50%); }
.phase-row .a small { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.phase-row .a.done small, .phase-row .a.now small { color: var(--blue); }
.phase-row .a b { display: block; font: 600 1.3rem/1.2 var(--font-display); margin: 4px 0 6px; }
.phase-row .a span { color: var(--muted); font-size: .92rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* chrome */
.deck-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 20px; z-index: 50; }
.deck-bar .brand { margin-right: auto; }
.deck-bar .brand span { font-size: .95rem; }
.deck-bar button, .deck-bar a.dbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.deck-bar button:hover, .deck-bar a.dbtn:hover { background: var(--bg-2); }
.deck-bar .count { font: 600 .9rem/1 var(--font); color: var(--muted); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.deck-bar.on-dark .brand, .deck-bar.on-dark .count { color: #fff; }
.deck-bar.on-dark .brand small { color: #b8c7d6; }
.progress { position: fixed; left: 0; top: 0; height: 4px; background: var(--blue); z-index: 60; transition: width .5s ease; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: background .2s, transform .2s; }
.dots i.on { background: var(--blue); transform: scale(1.3); }
.deck-bar.on-dark .dots i { background: rgba(255, 255, 255, .35); }
.deck-bar.on-dark .dots i.on { background: #7cc0ff; }
.hint { position: fixed; top: 16px; right: 20px; font-size: .8rem; color: var(--faint); z-index: 60; }

@media (max-width: 900px) {
  .slide { align-items: flex-start; padding: 56px 22px 90px; overflow-y: auto; }
  .stats, .tiles { grid-template-columns: 1fr; gap: 12px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .a::after { display: none; }
  .phase-row { grid-template-columns: 1fr; gap: 14px; }
  .split-x { grid-template-columns: 1fr; gap: 22px; }
  .dots, .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide .a { transition: none !important; transform: none !important; }
  .slide.photo.on > img { animation: none; }
}
@media (max-width: 600px) {
  .deck-bar { gap: 8px; padding: 0 12px; }
  .deck-bar .brand span, #d-play, #d-full { display: none; }
  .deck-bar button, .deck-bar a.dbtn { width: 40px; height: 40px; }
}
