/* The Work-Optional Nurse Masterclass · deck skin (system B, her brand)
   Canvas is a fixed 1280x720 frame scaled to the window, so every slide is
   authored once at presentation size and never reflows or scrolls. */
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/pt-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/pt-serif-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/pt-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/pt-serif-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --ink: #161e2a; --ink-2: #4d5563; --ink-3: #6b7682;
  --paper: #fbf7f2; --paper-2: #ece7dd; --white: #ffffff;
  --navy: #0e5f66; --navy-deep: #161e2a;
  --brass: #a8565b; --brass-l: #ecc077; --brass-soft: #f4e1df;
  --line: rgba(22, 30, 42, 0.12); --line-d: rgba(251, 247, 242, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "PT Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 2px 6px rgba(22, 30, 42, 0.06), 0 24px 60px -24px rgba(22, 30, 42, 0.28);
  --yt-red: #ff0000;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { overflow: hidden; background: #0f141d; color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
#stage { position: fixed; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; overflow: hidden; }

/* the frame: authored at 1280x720, scaled to fit */
.fr { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; margin: -360px 0 0 -640px;
  transform: scale(var(--s, 1)); overflow: hidden; font-size: 20px; line-height: 1.45; }
.fr img { display: block; max-width: none; }
.t-paper { color: var(--ink);
  background: radial-gradient(90% 70% at 50% -10%, rgba(14, 95, 102, 0.09), transparent 60%),
              radial-gradient(60% 60% at 100% 100%, rgba(168, 86, 91, 0.07), transparent 70%), var(--paper); }
.t-navy { color: var(--paper);
  background: radial-gradient(80% 70% at 85% -5%, rgba(0, 194, 203, 0.34), transparent 60%),
              radial-gradient(70% 70% at 0% 105%, rgba(14, 95, 102, 0.75), transparent 70%), var(--navy-deep); }
.t-photo { background: var(--navy-deep); color: var(--paper); }

/* chrome */
.chap, .pgn { position: absolute; top: 30px; z-index: 6; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.chap { left: 56px; } .pgn { right: 56px; font-variant-numeric: tabular-nums; }
.t-photo .chap, .t-photo .pgn { opacity: 0.85; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

/* type */
.h1 { font: 500 68px/1.04 var(--display); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.h2 { font: 500 48px/1.12 var(--display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.h3 { font: 500 34px/1.18 var(--display); margin: 0; text-wrap: balance; }
.h1 em, .h2 em, .h3 em { font-style: italic; }
.lede { font: 400 21px/1.5 var(--sans); margin: 0; color: var(--ink-2); text-wrap: pretty; }
.t-navy .lede, .t-photo .lede { color: rgba(251, 247, 242, 0.8); }
.k { font: 500 13px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0; }
.t-navy .k, .t-photo .k { color: var(--brass-l); }
.mono { font-family: var(--mono); }
.brass { color: var(--brass); } .t-navy .brass { color: var(--brass-l); }
.muted { color: var(--ink-3); } .t-navy .muted { color: rgba(251, 247, 242, 0.6); }

/* layouts */
.cc { position: absolute; inset: 84px 96px 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 48px; }
.cap { max-width: 980px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cap.l { align-items: flex-start; text-align: left; }
.split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.pane { position: relative; overflow: hidden; }
.pane > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.txt { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 64px 0 88px; }
.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim-b { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 30, 42, 0) 38%, rgba(22, 30, 42, 0.78) 72%, rgba(22, 30, 42, 0.94) 100%); }
.scrim-l { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 30, 42, 0.95) 0%, rgba(22, 30, 42, 0.78) 34%, rgba(22, 30, 42, 0) 62%); }
.scrim-t { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 30, 42, 0.55) 0%, rgba(22, 30, 42, 0) 22%); }
.bcap { position: absolute; left: 88px; right: 88px; bottom: 60px; display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.lcap { position: absolute; left: 88px; top: 0; bottom: 0; width: 520px; display: flex; flex-direction: column; justify-content: center; gap: 22px; z-index: 3; }
.row { display: flex; gap: 24px; align-items: center; justify-content: center; }

/* photo treatments */
.framed { border: 10px solid #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.pol { background: #fff; padding: 14px 14px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.45); border-radius: 3px; }
.pol img { width: 100%; object-fit: cover; }
.pol figcaption { font: italic 400 21px/1 var(--display); color: var(--ink); text-align: center; padding: 16px 0 20px; }
figure { margin: 0; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.82); color: #fff; font: 600 13px/1 var(--sans); padding: 4px 6px; border-radius: 4px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); }
.cardd { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-d); border-radius: 18px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 500 19px/1 var(--sans); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 30, 42, 0.05); white-space: nowrap; }
.t-navy .chip.d { background: rgba(255, 255, 255, 0.06); color: var(--paper); border-color: var(--line-d); }
.tag { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--brass-soft); color: #6d4520; white-space: nowrap; }
.tag.n { background: rgba(14, 95, 102, 0.1); color: var(--navy); }
.tag.g { background: #e6efe9; color: #2d5a3d; }
.tag.r { background: #f3e5e1; color: #8a3a2a; }
.num { font: 500 15px/1 var(--mono); color: var(--brass); }

/* YouTube-faithful bits */
.yt { font-family: "Roboto", var(--sans); color: #0f0f0f; }
.ytl { display: inline-flex; align-items: center; gap: 4px; font: 700 21px/1 var(--sans); letter-spacing: -0.04em; color: #0f0f0f; }
.ytl svg { width: 30px; height: 21px; }
.ytbar { display: flex; align-items: center; gap: 28px; padding: 14px 22px; border-bottom: 1px solid #eee; background: #fff; }
.ytsearch { flex: 1; display: flex; height: 42px; border: 1px solid #d3d3d3; border-radius: 40px; overflow: hidden; }
.ytsearch .q { flex: 1; display: flex; align-items: center; padding: 0 18px; font: 400 17px/1 var(--sans); color: #0f0f0f; white-space: nowrap; overflow: hidden; }
.ytsearch .b { width: 64px; background: #f8f8f8; border-left: 1px solid #d3d3d3; display: grid; place-items: center; }
.caret { display: inline-block; width: 2px; height: 22px; background: #0f0f0f; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.ytmeta { font: 400 14px/1.4 var(--sans); color: #606060; }
.yttitle { font: 600 18px/1.3 var(--sans); color: #0f0f0f; }
.av { border-radius: 50%; overflow: hidden; position: relative; flex: none; background: #0e5f66; }
.av img { position: absolute; width: 100%; height: 150%; top: -2%; left: 0; object-fit: cover; object-position: 50% 0%; }
.live { display: inline-flex; align-items: center; gap: 6px; background: #cc0000; color: #fff; font: 600 13px/1 var(--sans); padding: 5px 8px; border-radius: 4px; letter-spacing: 0.04em; }

/* myth vs truth */
.mt { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; max-width: 1040px; }
.mt > div { border-radius: 20px; padding: 40px 40px 44px; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.mt .myth { background: rgba(22, 30, 42, 0.04); border: 1px dashed rgba(22, 30, 42, 0.25); color: var(--ink-2); }
.mt .truth { background: var(--navy); color: var(--paper); box-shadow: var(--shadow); }
.mt .myth .h3 { text-decoration: line-through; text-decoration-color: rgba(138, 58, 42, 0.55); text-decoration-thickness: 2px; }
.mt .truth .k { color: var(--brass-l); }

/* animation vocabulary: everything rests at its final state, keyframes run FROM the start */
.a { animation: up 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.af { animation: fade 1s ease both; animation-delay: calc(var(--d, 0) * 1s); }
.ap { animation: pop 0.8s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.ax { animation: gx 1.2s var(--ease) both; transform-origin: left center; animation-delay: calc(var(--d, 0) * 1s); }
.ay { animation: gy 1.2s var(--ease) both; transform-origin: center bottom; animation-delay: calc(var(--d, 0) * 1s); }
.al { animation: fromleft 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.ad { animation: drop 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.draw { stroke-dasharray: 1; animation: draw 1.4s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.dim { animation: dimout 0.8s ease both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }
@keyframes gx { from { transform: scaleX(0); } }
@keyframes gy { from { transform: scaleY(0); } }
@keyframes fromleft { from { opacity: 0; transform: translateX(-24px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dimout { from { opacity: 1; } to { opacity: 0.5; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { r: 4; opacity: 0.9; } 100% { r: 16; opacity: 0; } }
html.reduced .fr * { animation: none !important; transition: none !important; }
html.reduced .dim { opacity: 0.5; }

/* presenter notes (press N) */
#notes { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(920px, calc(100vw - 32px)); max-height: 34vh; overflow: auto;
  background: rgba(10, 20, 32, 0.94); color: #fbf7f2; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 16px 20px;
  font: 400 16px/1.55 var(--sans); z-index: 20; display: none; }
#notes.on { display: block; }
#notes b { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-l); display: block; margin-bottom: 8px; }
#bar { position: fixed; left: 0; top: 0; height: 3px; background: var(--brass-l); width: 0; transition: width 0.3s ease; z-index: 5; }
#hint { position: fixed; right: 14px; bottom: 10px; z-index: 5; font: 400 11px/1 var(--mono); color: rgba(251, 247, 242, 0.4); letter-spacing: 0.08em; }
@media (prefers-reduced-motion: reduce) { #bar { transition: none; } }
.a.dim { animation: up 0.9s var(--ease) both, dimout 0.8s ease both; animation-delay: 0.2s, calc(var(--d, 0) * 1s); }

