/* The 4-Site Freedom Plan · deck skin (system B, Benny's own 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.
   Near-black + the red R. Anton display, Inter text, JetBrains Mono labels. */
@font-face { font-family: "Anton"; src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; 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: #f6f5f3; --ink-2: #b9b6b0; --ink-3: #8c8a86;
  --bg: #0b0b0c; --coal: #141416; --coal-2: #1c1c1f; --white: #ffffff;
  --red: #e3232b; --red-l: #ff5a5f; --red-d: #b5161d; --red-soft: rgba(227, 35, 43, 0.16);
  --green: #3ddc84;
  --line: rgba(246, 245, 243, 0.12); --line-d: rgba(246, 245, 243, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Anton", "Impact", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px -28px rgba(0, 0, 0, 0.9);
  /* legacy names the authored slides use */
  --paper: var(--ink); --navy: var(--red); --navy-deep: var(--bg); --brass: var(--red-l); --brass-l: var(--red-l); --brass-soft: var(--red-soft);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { overflow: hidden; background: #050506; color: var(--ink); 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-ink { color: var(--ink);
  background: radial-gradient(80% 60% at 50% -12%, rgba(227, 35, 43, 0.20), transparent 62%),
              radial-gradient(60% 60% at 100% 110%, rgba(227, 35, 43, 0.08), transparent 70%), var(--bg); }
.t-coal { color: var(--ink);
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 48px),
              repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 48px),
              radial-gradient(70% 70% at 15% 0%, rgba(227, 35, 43, 0.14), transparent 65%), var(--coal); }
.t-red { color: #fff;
  background: radial-gradient(70% 80% at 80% 0%, rgba(255, 120, 120, 0.35), transparent 60%),
              radial-gradient(60% 70% at 0% 100%, rgba(80, 0, 0, 0.55), transparent 70%), var(--red); }
.t-photo { background: var(--bg); color: var(--ink); }

/* 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); }
.t-red .chap, .t-red .pgn { opacity: 0.8; }

/* type */
.h1 { font: 400 78px/1 var(--display); text-transform: uppercase; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
.h2 { font: 400 54px/1.04 var(--display); text-transform: uppercase; letter-spacing: 0.008em; margin: 0; text-wrap: balance; }
.h3 { font: 700 32px/1.25 var(--sans); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--red); }
.t-red .h1 em, .t-red .h2 em, .t-red .h3 em { color: #0b0b0c; }
.lede { font: 400 22px/1.5 var(--sans); margin: 0; color: var(--ink-2); text-wrap: pretty; }
.t-photo .lede, .t-red .lede { color: rgba(255, 255, 255, 0.86); }
.k { font: 500 14px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-l); margin: 0; }
.t-red .k { color: rgba(255,255,255,.85); }
.mono { font-family: var(--mono); }
.brass, .red { color: var(--red); } .t-red .red { color: #0b0b0c; }
.muted { color: var(--ink-3); }

/* 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(8, 8, 9, 0) 34%, rgba(8, 8, 9, 0.8) 70%, rgba(8, 8, 9, 0.96) 100%); }
.scrim-l { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 9, 0.96) 0%, rgba(8, 8, 9, 0.8) 36%, rgba(8, 8, 9, 0) 64%); }
.scrim-t { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 9, 0.6) 0%, rgba(8, 8, 9, 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: 500 18px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #141414; 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: var(--coal-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); }
.cardw { background: #fff; border-radius: 18px; box-shadow: var(--shadow); color: #141414; }
.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: 13px 22px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); font: 500 20px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.t-red .chip { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--red-soft); color: var(--red-l); white-space: nowrap; }
.tag.n { background: rgba(255,255,255,.08); color: var(--ink-2); }
.tag.g { background: rgba(61, 220, 132, .14); color: var(--green); }
.tag.r { background: var(--red-soft); color: var(--red-l); }
.num { font: 500 15px/1 var(--mono); color: var(--red-l); }

/* 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: #17384d; }
.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(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--ink-2); }
.mt .truth { background: var(--red); color: #fff; box-shadow: 0 30px 70px -30px rgba(227, 35, 43, 0.7); }
.mt .myth .h3 { text-decoration: line-through; text-decoration-color: rgba(255, 90, 95, 0.75); text-decoration-thickness: 2px; color: var(--ink-2); }
.mt .truth .k { color: rgba(255,255,255,.85); }

/* 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; font-size: 18px; transform: translateX(-50%); width: min(920px, calc(100vw - 32px)); max-height: 34vh; overflow: auto;
  background: rgba(12, 12, 14, 0.95); color: #f6f5f3; 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(246, 245, 243, 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); }

/* ---- Benny deck additions ---- */
.big { font: 400 180px/0.9 var(--display); margin: 0; letter-spacing: 0.005em; }
.mid { font: 400 110px/0.92 var(--display); margin: 0; }
.cap-lab { font: 500 15px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--red); color: #fff; font: 600 17px/1 var(--sans); }
.phone { position: absolute; width: 300px; height: 620px; border-radius: 48px; background: #0d0d0f; padding: 12px; box-shadow: 0 0 0 2px #2a2a2e, var(--shadow); }
.phone__s { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.phone__isl { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 4; }
.serp { background: #fff; color: #202124; font-family: Arial, var(--sans); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.serp__bar { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #ebebeb; }
.serp__q { flex: 1; height: 44px; border-radius: 22px; box-shadow: 0 1px 6px rgba(32,33,36,.28); display: flex; align-items: center; padding: 0 20px; font-size: 17px; color: #202124; }
.serp__r { padding: 14px 24px; border-bottom: 1px solid #f1f1f1; }
.serp__u { font-size: 13px; color: #4d5156; } .serp__t { font-size: 20px; color: #1a0dab; margin: 2px 0 4px; } .serp__d { font-size: 14px; color: #4d5156; line-height: 1.45; }
.serp__r.win { background: #fff6f6; box-shadow: inset 4px 0 0 var(--red); }
.imsg { display: flex; flex-direction: column; gap: 8px; font: 400 19px/1.35 -apple-system, "SF Pro Text", var(--sans); }
.imsg .b { max-width: 78%; padding: 10px 15px; border-radius: 20px; }
.imsg .me { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.imsg .th { align-self: flex-start; background: #26252a; color: #fff; border-bottom-left-radius: 6px; }
.flow { display: flex; align-items: flex-start; gap: 18px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 190px; text-align: center; }
.node__i { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; background: var(--coal-2); border: 1px solid var(--line); }
.node__i svg { width: 42px; height: 42px; color: var(--red-l); }
.node b { font: 700 21px/1.25 var(--sans); } .node span { font: 400 16px/1.4 var(--sans); color: var(--ink-2); }
.wire { flex: 1; min-width: 40px; height: 2px; margin-top: 45px; background: linear-gradient(90deg, var(--red), rgba(227,35,43,.3)); }
.stackrow { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; }
.stackrow.on { background: var(--coal-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stackrow.off { opacity: .42; }
.stackrow .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.stackrow .ck svg { width: 14px; height: 14px; }
.stackrow b { font: 700 19px/1.25 var(--sans); display: block; } .stackrow span { font: 400 15px/1.3 var(--sans); color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rr-lock { display: inline-flex; align-items: center; gap: 12px; font: 400 26px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.rr-lock svg { height: 30px; width: auto; } .rr-lock b { font-weight: 400; color: var(--red); }
.t-red .rr-lock b { color: #0b0b0c; } .t-red .rr-lock svg path { fill: #fff; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(227, 35, 43, .35); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.ping { animation: ping 2.2s var(--ease) infinite; }
@keyframes typein { from { width: 0; } }
@keyframes slideL { from { opacity: 0; transform: translateX(40px); } }
.ar { animation: slideL 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
