/* deck.css — OIDF redesign talk. 1920×1080 stage, scaled to the window. */
@import url('assets/fonts/fonts.css');

:root {
  --bg: #ffffff; --fg: #111111; --muted: #666666; --subtle: #999999;
  --accent: #2563eb; --border: #e0e0e0; --elev: #fafafa; --rule: #cfcfcf;
  --display: 'Hanken Grotesk', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --red: #d9534f; --bs-blue: #0275d8; --cyan: #5bc0de;
  --ink: #1a1611; --orange: #eb8b35; --sand: #f8f7f5;
}
.dark { --bg: #111111; --fg: #e8e8e8; --muted: #999999; --subtle: #666666; --accent: #5b9aff; --border: #2a2a2a; --elev: #1a1a1a; --rule: #333; }

html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--body); color: var(--fg); -webkit-font-smoothing: antialiased; }
#viewport { position: fixed; inset: 0; background: #000; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--bg); overflow: hidden; }
#stage.instant *, #stage.instant *::before, #stage.instant *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }

/* ---------- slides ---------- */
.slide { position: absolute; inset: 0; background: var(--bg); color: var(--fg); padding: 120px 160px; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; z-index: 2; }
.slide.is-leaving { z-index: 1; }
.slide.dark { background: #111; color: #e8e8e8; }
.notes { display: none; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow.accent { color: var(--accent); }
h2.title { font-family: var(--display); font-size: 80px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; margin: 0; color: var(--fg); }
h2.title.mt { margin-top: 20px; }
.quote { font-family: var(--display); font-size: 88px; font-weight: 300; line-height: 1.15; letter-spacing: -1px; margin: 0; }
.quote .word { display: inline-block; position: relative; white-space: nowrap; }
.attr { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin: 0; }
.big { font-family: var(--display); font-size: 160px; font-weight: 600; line-height: 1.05; letter-spacing: -4px; margin: 0; }
.big.s { font-size: 112px; letter-spacing: -2px; }
.huge { font-family: var(--display); font-size: 128px; font-weight: 600; line-height: 1.05; letter-spacing: -3px; margin: 0; }
.body { font-size: 36px; line-height: 1.4; margin: 0; }
.body.m { font-size: 32px; } .body.sm { font-size: 28px; }
.caption { font-family: var(--body); font-size: 24px; line-height: 1.4; color: var(--muted); margin: 0; }
.mono { font-family: var(--mono); font-size: 32px; line-height: 1.4; }
.pull { font-family: var(--display); font-size: 44px; font-weight: 300; line-height: 1.3; margin: 0; }
.rule { width: 160px; height: 8px; background: var(--accent); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.ink { color: var(--fg); }

/* ---------- layout helpers ---------- */
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.gap-56 { gap: 56px; } .gap-48 { gap: 48px; } .gap-40 { gap: 40px; } .gap-24 { gap: 24px; } .gap-16 { gap: 16px; } .gap-12 { gap: 12px; } .gap-64 { gap: 64px; }
.center { justify-content: center; }
.fill { flex: 1; }
.abs { position: absolute; }
.cover { position: absolute; inset: 0; background: var(--bg); padding: 120px 160px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.shot { background: #f5f5f5; border: 1px solid var(--border); border-radius: 2px; object-fit: contain; }
.shot.dark { background: #111; border-color: #2a2a2a; }
.frame { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: #fff; }
img { display: block; }

/* ---------- step reveals ---------- */
[data-step] { opacity: 0; visibility: hidden; transition: opacity .45s ease, transform .55s var(--ease), visibility 0s linear .45s; }
[data-step][data-reveal="rise"] { transform: translateY(28px); }
[data-step][data-reveal="pop"] { transform: scale(.94); }
[data-step].on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease var(--sd, 0ms), transform .55s var(--ease) var(--sd, 0ms), visibility 0s linear var(--sd, 0ms); }
[data-step-until].off { opacity: 0 !important; visibility: hidden !important; transition: opacity .3s ease, visibility 0s linear .3s; }

/* ---------- entry animations (play when a slide becomes active) ---------- */
[data-enter] { opacity: 0; }
.is-active [data-enter] { animation: enter-rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }
.is-active [data-enter="fade"] { animation-name: enter-fade; }
.is-active [data-enter="rule"] { animation-name: enter-rule; transform-origin: 0 50%; }
.is-active [data-enter="pop"] { animation-name: enter-pop; }
@keyframes enter-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes enter-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enter-rule { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes enter-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- strike + write-in (DHH) ---------- */
.strike { position: relative; display: inline-block; }
.strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: 6px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.strike.on { color: var(--muted); }
.strike.on::after { transform: scaleX(1); }
.written { color: var(--accent); font-weight: 600; display: inline-block; white-space: nowrap; max-width: 0; clip-path: inset(-.3em -.1em -.3em 0); opacity: 0; transform: translateY(14px) rotate(-2deg); transition: opacity .35s ease .45s, transform .5s var(--ease) .45s, max-width .6s var(--ease) .3s, margin-left .6s var(--ease) .3s; }
.written.on { opacity: 1; transform: rotate(-2deg); max-width: 12em; margin-left: .25em; }

/* ---------- marker circle (SVG) ---------- */
.marker { position: absolute; pointer-events: none; overflow: visible; }
.marker path, .marker ellipse { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.marker.red path, .marker.red ellipse { stroke: #e03b2d; stroke-width: 7; }
.marker.on path, .marker.on ellipse { animation: draw 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- world host ---------- */
.world { position: absolute; inset: 0; }
.world svg { width: 100%; height: 100%; display: block; }

/* ---------- pencil ---------- */
.pencil { position: absolute; right: 160px; top: 110px; width: 260px; height: 120px; overflow: visible; }
.pencil path, .pencil line { stroke: var(--fg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: #fff; }
.pencil .lead { fill: var(--fg); }
.pencil g { transform-origin: 20% 90%; }
.is-active .pencil g { animation: pencil-down 1.6s var(--ease) .6s both; }
@keyframes pencil-down { 0% { transform: rotate(-48deg) translateY(0); } 55% { transform: rotate(-48deg) translateY(0); } 100% { transform: rotate(0deg) translateY(0); } }

/* ---------- sign-in flow (oidf) ---------- */
.flow text { font-family: var(--display); fill: var(--fg); dominant-baseline: middle; text-anchor: middle; }
.flow .bigt { font-size: 44px; font-weight: 600; }
.flow .sub { font-size: 26px; fill: var(--muted); transition: fill .3s; }
.flow .lbl { font-size: 24px; fill: var(--muted); }
.flow .box { fill: #fff; stroke: var(--fg); stroke-width: 2; transition: stroke .3s, stroke-width .3s; }
.flow .line { stroke: var(--fg); stroke-width: 3; }
.flow #btn rect { fill: #fff; stroke: var(--fg); stroke-width: 2; transition: fill .15s, stroke .15s; }
.flow #btn text { font-size: 34px; font-weight: 600; transition: fill .15s; }
.flow #btn.on rect { fill: var(--accent); stroke: var(--accent); }
.flow #btn.on text { fill: #fff; }
.flow .hit .box { stroke: var(--accent); stroke-width: 4; }
.flow .hit .sub { fill: var(--accent); }
.flow .fade { opacity: 0; transition: opacity .35s; }
.flow .fade.show { opacity: 1; }
.flow .dot { fill: var(--accent); opacity: 0; transition: transform .7s cubic-bezier(.45, 0, .2, 1), opacity .15s; }
.flow .dot.go { opacity: 1; transform: translateX(212px); }
.flow .dot.go.done { opacity: 0; }
.flow #fin text { fill: var(--accent); font-size: 44px; font-weight: 600; text-anchor: start; }

/* ---------- loop diagram (errors) ---------- */
.loop .node { position: absolute; width: 360px; height: 170px; box-sizing: border-box; border: 2px solid var(--fg); display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.loop .node h3 { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.15; margin: 0; }
.loop .node p { font-size: 24px; line-height: 1.3; color: var(--muted); margin: 0; }
.loop .node.pass { border-color: var(--fg); }
.loop .arrow { position: absolute; height: 3px; background: var(--fg); }
.loop .arrow::after { content: ''; position: absolute; right: -2px; top: -7px; border: 8px solid transparent; border-left: 12px solid var(--fg); border-right: 0; }
.loop .prompt { position: absolute; left: 160px; top: 382px; width: 320px; box-sizing: border-box; padding: 24px; font-family: var(--mono); font-size: 28px; background: var(--elev); border: 1px solid var(--border); }
.loop .err { position: absolute; left: 660px; top: 620px; width: 600px; box-sizing: border-box; display: flex; gap: 16px; align-items: center; padding: 20px 24px; border: 2px solid var(--accent); font-family: var(--mono); font-size: 28px; background: #fff; }
.loop .dot { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); opacity: 0; offset-rotate: 0deg; offset-anchor: 50% 50%; }
.loop svg.looparrow path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }

/* ---------- terminal (montage) ---------- */
.term { position: absolute; left: 160px; top: 300px; width: 1600px; height: 640px; background: #0f0f10; border-radius: 6px; color: #d8d8d8; font-family: var(--mono); font-size: 21px; line-height: 1.2; box-sizing: border-box; padding: 20px 26px; display: grid; grid-template-columns: 290px 1fr; gap: 24px; overflow: hidden; }
.term .ph { border: 1px solid #3a3a3c; border-radius: 4px; padding: 10px 14px; height: fit-content; }
.term .ph b { color: #8ab4ff; font-weight: 500; }
.term .hd { color: #cfcfcf; margin: -22px 0 8px 10px; background: #0f0f10; display: inline-block; padding: 0 6px; }
.term .rows { position: relative; border: 1px solid #3a3a3c; border-radius: 4px; padding: 10px 14px 10px 18px; height: 100%; box-sizing: border-box; overflow: hidden; }
.term .r { display: grid; grid-template-columns: 26px 270px 230px 1fr; gap: 10px; height: 21.6px; opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease; white-space: nowrap; }
.term .r.in { opacity: 1; transform: none; }
.term .r .k { color: #6e6e72; } .term .r.ok .k { color: #52c17a; }
.term .r .t { color: #b7b7bb; text-align: right; }
.term .r.run .t { color: #6e6e72; }
.term .foot { position: absolute; right: 16px; bottom: 6px; color: #8a8a8e; font-size: 18px; }
.term .r .n { color: #e8e8e8; }

/* ---------- montage frames ---------- */
.frameset { position: absolute; inset: 0; }
.frameset .f { position: absolute; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 120px 160px; box-sizing: border-box; }
.frameset .f img { max-width: 1600px; max-height: 840px; width: auto; height: auto; box-shadow: 0 0 0 1px var(--border); }
.frameset .f .tag { position: absolute; left: 160px; top: 48px; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.frameset .f .marker { left: 0; top: 0; width: 1920px; height: 1080px; }

/* ---------- skills scroll (factory) ---------- */
.skills { position: absolute; left: 160px; top: 110px; width: 1600px; height: 740px; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; font-family: var(--mono); font-size: 22px; line-height: 1.5; color: #c9c9c9; mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
.skills .colm { animation: scroll-up 46s linear infinite; }
.skills .colm:nth-child(2) { animation-duration: 52s; } .skills .colm:nth-child(3) { animation-duration: 58s; }
@keyframes scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ---------- swatch (violet) ---------- */
.swatch { position: absolute; left: 160px; top: 300px; width: 560px; height: 300px; box-sizing: border-box; border-radius: 8px; border: 2px solid #d6d8db; background: #f0f1f2; display: flex; align-items: center; padding: 48px; transition: background .9s var(--ease), border-color .9s var(--ease); }
.swatch span { font-family: var(--display); font-size: 72px; font-weight: 600; color: #6f737b; transition: color .9s var(--ease); }
.swatch.violet { background: #eeeaf7; border-color: #cfc6e8; }
.swatch.violet span { color: #6a5aa8; }
.violet { color: #6a5aa8; } .grey { color: #6f737b; }

/* ---------- login pages (switched) ---------- */
.page { position: absolute; inset: 0; overflow: hidden; }
.page * { box-sizing: border-box; }
/* before: the 2016 Bootstrap page */
.before { background: #fff; font-family: 'Source Sans 3', 'Source Sans Pro', Helvetica, Arial, sans-serif; color: #212529; }
.before .nav { position: absolute; left: 0; top: 0; right: 0; height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 40px; font-size: 22px; color: #555; }
.before .nav .brand { display: flex; align-items: center; gap: 8px; margin-right: 12px; }
.before .nav img { height: 36px; width: auto; }
.before h1 { position: absolute; left: 0; right: 0; top: 108px; text-align: center; font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0; }
.before .btn { position: absolute; height: 64px; border-radius: 6px; color: #fff; font-size: 26px; font-weight: 500; display: flex; align-items: center; justify-content: center; padding: 0 22px; white-space: nowrap; }
.before .btn.google { left: 680px; top: 192px; width: 280px; background: var(--red); border: 1px solid #c9302c; }
.before .btn.gitlab { left: 968px; top: 192px; width: 272px; background: var(--bs-blue); border: 1px solid #025aa5; }
.before .btn.small { height: 44px; font-size: 20px; width: 288px; left: 816px; background: var(--cyan); border: 1px solid #46b8da; color: #fff; }
.before .btn.logs { top: 278px; } .before .btn.plans { top: 330px; }
.before .foot { position: absolute; left: 0; right: 0; top: 460px; height: 190px; background: #f8f8f8; border-top: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #333; }
/* after: the redesign */
.after { background: var(--sand); font-family: 'Inter', system-ui, sans-serif; color: #1a1611; }
.after .top { position: absolute; left: 0; top: 0; right: 0; height: 80px; background: var(--ink); display: flex; align-items: center; gap: 36px; padding: 0 32px; color: #fff; font-size: 20px; }
.after .top .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .06em; font-size: 20px; margin-right: 16px; }
.after .top img { height: 36px; width: auto; }
.after .top .signin { margin-left: auto; border: 1px solid #5a554f; border-radius: 6px; padding: 10px 18px; font-size: 18px; }
.after .card { position: absolute; left: 320px; top: 300px; width: 1280px; height: 640px; display: grid; grid-template-columns: 532px 1fr; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(26,22,17,.08), 0 1px 2px rgba(26,22,17,.08); background: #fff; }
.after .panel { background: var(--ink); color: #fff; padding: 56px 44px; display: flex; flex-direction: column; gap: 28px; }
.after .panel .lock { display: flex; align-items: center; gap: 14px; font-size: 15px; letter-spacing: .12em; color: #f0b07a; font-weight: 600; }
.after .panel .lock img { height: 30px; }
.after .panel h2 { font-size: 34px; line-height: 1.25; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.after .panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 20px; }
.after .panel li { display: flex; gap: 14px; align-items: center; }
.after .panel li::before { content: ''; width: 20px; height: 22px; border: 2px solid #eb8b35; border-radius: 4px 4px 10px 10px; box-sizing: border-box; }
.after .panel .op { margin-top: auto; border-top: 1px solid #3b352f; padding-top: 22px; font-size: 16px; color: #b9b2a8; }
.after .form { padding: 52px 44px; display: flex; flex-direction: column; gap: 18px; }
.after .form h3 { font-size: 34px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.after .form .lead { font-size: 19px; line-height: 1.5; color: #4a443d; margin: 0 0 10px; }
.after .btn { height: 66px; border: 1px solid #d9d4cc; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 21px; font-weight: 600; color: #1a1611; }
.after .or { display: flex; align-items: center; gap: 16px; color: #8a827a; font-size: 14px; letter-spacing: .14em; font-weight: 600; margin: 10px 0 6px; }
.after .or::before, .after .or::after { content: ''; flex: 1; height: 1px; background: #e4dfd7; }
.after .link { border: 1px solid #e4dfd7; border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; font-size: 18px; }
.after .link .ic { width: 50px; height: 50px; border-radius: 8px; background: #fbf3ea; border: 1px solid #f2dcc4; }
.after .link b { display: block; font-size: 19px; } .after .link span { color: #6b645c; font-size: 16px; }
.after .link .ar { margin-left: auto; color: #6b645c; font-size: 22px; }

/* ---------- three boxes (bigger) ---------- */
.boxes .b { position: absolute; border: 2px solid var(--fg); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--display); font-weight: 600; line-height: 1.15; box-sizing: border-box; padding: 40px; transform-origin: 50% 50%; }
.boxes .lab { position: absolute; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; text-align: center; }

/* ---------- QR ---------- */
.qr { position: absolute; right: 160px; bottom: 160px; width: 300px; padding: 20px; background: #fff; box-sizing: border-box; }
.qr img { width: 100%; display: block; }
.qr .caption.one { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; margin-top: -8px; }

/* ---------- overlays ---------- */
#blackout { position: fixed; inset: 0; background: #000; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
#blackout.on { opacity: 1; pointer-events: auto; }
#hud { position: fixed; right: 12px; bottom: 12px; z-index: 60; background: rgba(0,0,0,.78); color: #fff; font: 500 14px/1.4 var(--mono); padding: 8px 12px; border-radius: 6px; display: none; min-width: 220px; }
#hud.on { display: block; }
#hud .late { color: #ff5c5c; }
#hud .ok { color: #7ee2a0; }
#progress { position: fixed; left: 0; bottom: 0; height: 4px; background: var(--accent); z-index: 55; width: 0; transition: width .3s; opacity: 0; }
#progress.on { opacity: 1; }

/* reveal=none: the scene controls it */
[data-step][data-reveal="none"] { transition: none; }
.page.after[data-step] { transform: none; }

/* a slide entered backward or by jump: entry animations already finished */
.slide.settled [data-enter], .slide.settled .pencil g { animation: none !important; opacity: 1 !important; transform: none !important; }

#notespanel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; background: rgba(0,0,0,.88); color: #eee; font: 400 20px/1.45 var(--body); padding: 16px 28px 20px; display: none; max-height: 42vh; overflow: auto; border-top: 2px solid #5b9aff; }
#notespanel.on { display: block; }
#notespanel .np-k { font: 500 13px/1.4 var(--mono); color: #8ab4ff; letter-spacing: .04em; margin-bottom: 8px; }
#notespanel .np-t { white-space: pre-wrap; }
#notespanel .np-n { margin-top: 10px; color: #999; font-size: 16px; }

/* finale labels (bigger beat) */
.fl { position: absolute; }
.fl .eyebrow { font-size: 22px; letter-spacing: 4px; }
.fl-t { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; margin: 8px 0 0; color: var(--fg); }
.fl.mid .fl-t { font-size: 36px; }

/* title slide + closing footer (after the talk template: footer-bar at 160/160/64, eyebrow, accent rule) */
.title-slide { display: flex; flex-direction: column; }
.title-slide .eyebrow { font-size: 22px; letter-spacing: .22em; }
.title-slide h1 { font-family: var(--display); font-weight: 700; font-size: 168px; line-height: .92; letter-spacing: -.035em; margin: 32px 0 0 -8px; text-wrap: balance; max-width: 1600px; }
.title-slide .subtitle { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1.25; letter-spacing: .04em; color: var(--muted); margin: 32px 0 0; max-width: 1500px; text-wrap: balance; }
.title-slide .rule { margin-top: 64px; }
.footer-bar { position: absolute; left: 160px; right: 160px; bottom: 64px; display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-size: 18px; font-weight: 500; line-height: 1; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
