/* Webinar decks (reveal.js): "talk" style.
 * One idea per slide, big display type, glowing dark stage, monospace
 * micro-labels and hairline diagrams. Colours, display and body fonts come
 * from the AptoNow brand (brand-tokens.css: Azure, Sky, Sun, Green, Navy;
 * Space Grotesk from the website's variation two; Barlow). Space Mono is
 * the one addition, for labels. Backgrounds come from _theme/talk.lua.
 * Canvas is 1280 x 720.
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --stage: #040C22;               /* brand navy dark */
  --light: #F5F5F3;
  --dim: rgba(245, 245, 243, 0.62);
  --ghost: rgba(245, 245, 243, 0.30);
  --hair: rgba(245, 245, 243, 0.22);
  --font-display: var(--font-grotesk);
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --r-background-color: var(--stage);
  --r-main-font: var(--font-sans);
  --r-main-font-size: 24px;
  --r-main-color: var(--light);
  --r-heading-font: var(--font-display);
  --r-heading-color: var(--light);
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-heading1-text-shadow: none;
  --r-link-color: var(--sky);
  --r-link-color-hover: #fff;
  --r-link-color-dark: var(--sky);
  --r-selection-background-color: var(--sky);
  --r-selection-color: #000;
}

/* Stage ------------------------------------------------------------- */
.reveal-viewport, .reveal { background: var(--stage); }
.reveal, .reveal .slides { font-family: var(--font-sans); color: var(--light); }
.reveal .slides section { text-align: center; line-height: 1.35; }
.reveal .slides section p { margin: 0; }
.reveal .slides section > :is(div, p) + :is(div, p) { margin-top: 30px; }
.reveal a { color: var(--sky); text-decoration: none; }
.reveal a:hover { color: #fff; }
.reveal strong, .reveal b { font-weight: 600; }

/* Type -------------------------------------------------------------- */
.hero { font-family: var(--font-display); font-weight: 600; font-size: 84px; line-height: 1.04;
  letter-spacing: -0.03em; max-width: 1100px; margin-inline: auto; }
.head { font-family: var(--font-display); font-weight: 600; font-size: 60px; line-height: 1.08;
  letter-spacing: -0.025em; max-width: 1100px; margin-inline: auto; }
.head-md { font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.2;
  letter-spacing: -0.02em; max-width: 1000px; margin-inline: auto; }
.giant { font-family: var(--font-display); font-weight: 600; font-size: 170px; line-height: 0.95;
  letter-spacing: -0.045em; }
.dim, .reveal .dim p { color: var(--dim); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ghost); }
.micro { font-family: var(--font-mono); font-size: 15px; line-height: 1.8; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245, 245, 243, 0.66); max-width: 1000px; margin-inline: auto; }
.micro b { color: var(--light); font-weight: 700; }
/* Citations: short form on a slide, full list on the References backup slide */
.refs { font-size: 15px; line-height: 1.6; color: var(--ghost); max-width: 1000px; margin: 28px auto 0; }
.refs b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-right: 8px; }
.reflist { text-align: left; max-width: 1080px; margin-inline: auto; font-size: 15px; line-height: 1.5; color: var(--dim); }
.reveal .slides section .reflist p { margin: 0 0 14px; padding-left: 28px; text-indent: -28px; }
.reflist a { color: var(--azure); }
.c-sun { color: var(--sun); }
.c-azure { color: var(--azure); }
.c-sky { color: var(--sky); }
.stop { color: var(--sun); }

/* Tone accents (tone class sits on the slide) */
.t-azure .eyebrow, .t-azure.eyebrow { color: rgba(101, 192, 255, 0.9); }
.t-sun .eyebrow { color: rgba(253, 202, 64, 0.9); }
.t-green .eyebrow { color: rgba(224, 231, 224, 0.8); }
.t-drench-azure .eyebrow, .t-drench-sun .eyebrow, .t-drench-green .eyebrow { color: rgba(255, 255, 255, 0.8); }
.t-drench-sun .stop { color: #140A02; }

/* Stamps (outlined mono tags) --------------------------------------- */
.stamps { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1040px; margin-inline: auto; }
.stamp { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--hair);
  border-radius: 4px; padding: 10px 16px; background: rgba(245, 245, 243, 0.03); }
.stamp b { color: var(--light); font-weight: 700; }
.stamp.lit { color: #000; background: var(--sun); border-color: var(--sun); }
.stamp.lit b { color: #000; }
.stamp.az { color: #000; background: var(--azure); border-color: var(--azure); }
.stamps.files .stamp { text-transform: none; letter-spacing: 0.04em; font-size: 14px; color: rgba(185, 223, 255, 0.85);
  border-color: rgba(101, 192, 255, 0.35); }
.arrow-mono { font-family: var(--font-mono); color: var(--ghost); align-self: center; }

/* Word sweep (talk.lua wraps words in .wd) --------------------------- */
.reveal .slides section .fragment.sweep { opacity: 1; visibility: inherit; transform: none; }
.sweep .wd { opacity: 0.08; transition: opacity 0.45s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.sweep.visible .wd,
.reveal .slides section.present .sweep.now .wd { opacity: 1; }
.sweep.now .wd { transition-delay: calc(var(--i) * 55ms + 0.2s); }

/* Generic reveal: rise in on a click */
.reveal .slides section .fragment { transition-duration: 0.6s; transition-timing-function: var(--ease-out); }
.reveal .slides section .fragment.fade-up { transform: translate(0, 24px); }
.reveal .slides section .fragment.fade-up.visible { transform: none; }

/* Entrance: content of the current slide settles in */
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal .slides section.present > :is(.eyebrow, .hero, .head, .head-md, .giant, .micro, .stamps, .diagram) {
  animation: settle 0.8s var(--ease-out) both;
}
.reveal .slides section.present > :nth-child(2) { animation-delay: 0.06s; }
.reveal .slides section.present > :nth-child(3) { animation-delay: 0.12s; }
.reveal .slides section.present > :nth-child(4) { animation-delay: 0.18s; }
.reveal .slides section.present > :nth-child(5) { animation-delay: 0.24s; }
.reveal .slides section.present > .fragment { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal .slides section * { animation: none !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
}

/* HUD: scene label (bottom left), tick ruler (bottom right), top right -- */
.hud-scene { position: fixed; left: 26px; bottom: 20px; z-index: 30; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--ghost); pointer-events: none; }
.reveal .progress { left: auto; right: 26px; bottom: 21px; width: 200px; height: 12px; background: var(--ghost);
  color: var(--light);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 6px);
          mask: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 6px); }
.reveal .progress span { background: var(--light); }
.hud-home { position: fixed; top: 14px; left: 20px; z-index: 31; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ghost); background: transparent;
  border: 1px solid transparent; border-radius: 4px; padding: 6px 8px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.3s; }
.hud-home:hover, .hud-home:focus-visible { color: var(--light); border-color: var(--hair); outline: none; }
.hud-home.is-hidden { opacity: 0; pointer-events: none; }
@media print { .hud-home { display: none; } }
.hud-top { position: fixed; top: 20px; right: 26px; z-index: 30; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ghost); pointer-events: none; }
.reveal .slide-number { display: none; }

/* Title and close ---------------------------------------------------- */
.logo { height: 26px; width: auto; margin: 0 !important; filter: brightness(0) invert(1); opacity: 0.9; }
.reveal .slides section > * + img.logo { margin-top: 44px !important; }

/* Agenda ------------------------------------------------------------- */
.agenda { width: 760px; margin-inline: auto; text-align: left; }
.agenda .row { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; padding: 16px 0;
  border-bottom: 1px solid var(--hair); }
.agenda .row:first-child { border-top: 1px solid var(--hair); }
.agenda .n { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2em; color: var(--azure); }
.agenda .t { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.agenda .m { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost); }
.agenda .row.hl .n, .agenda .row.hl .m { color: var(--sun); }

/* Poll --------------------------------------------------------------- */
.poll-options { display: flex; gap: 14px; justify-content: center; }
.poll-options span { font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.1em; color: var(--light);
  border: 1px solid var(--hair); border-radius: 6px; padding: 14px 26px; background: rgba(245, 245, 243, 0.04); }

/* Diagrams (hairline) ------------------------------------------------ */
.diagram { margin-inline: auto; }
.diagram svg { overflow: visible; }
.diagram text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; fill: rgba(245, 245, 243, 0.75);
  text-transform: uppercase; }
.diagram .line { stroke: var(--hair); fill: none; stroke-width: 1; }

/* Layers */
.layers { width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 300px 1fr; align-items: center; text-align: left; border: 1px solid var(--hair);
  border-radius: 6px; padding: 16px 22px; background: rgba(245, 245, 243, 0.03); }
.layer .k { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); font-weight: 700; }
.layer .v { font-size: 19px; color: var(--dim); }
.layer.platform { background: var(--azure); border-color: var(--azure); }
.layer.platform .k, .layer.platform .v { color: #000; }

/* Landscape stack */
.stack { width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.stack .row { display: grid; grid-template-columns: 230px 1fr; align-items: center; text-align: left; border: 1px solid var(--hair);
  border-radius: 6px; padding: 12px 20px; }
.stack .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ghost); text-transform: uppercase; }
.stack .v { font-size: 19px; color: var(--dim); }
.stack .row.future { border-style: dashed; opacity: 0.7; }
.stack .row.gap { border: 1px dashed var(--sun); background: rgba(253, 202, 64, 0.07); }
.stack .row.gap .k, .stack .row.gap .v { color: var(--sun); }

/* Harness: nested layers (governance > deterministic core > agentic AI) */
.harness { width: 900px; margin-inline: auto; }
.ring { border: 1px solid var(--hair); border-radius: 14px; padding: 18px 26px 26px; text-align: left; }
.ring + .ring, .ring > .ring { margin-top: 16px; }
.ring-k { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.ring-v { font-size: 18px; color: var(--dim); margin-top: 4px; }
.ring.gov { background: rgba(245, 245, 243, 0.03); }
.ring.gov > .ring-k { color: var(--light); }
.ring.det { border-color: rgba(101, 192, 255, 0.55); background: rgba(101, 192, 255, 0.06); }
.ring.det > .ring-k { color: var(--azure); }
.ring.ai { border: 1px dashed var(--sun); background: rgba(253, 202, 64, 0.08); width: 62%; }
.ring.ai > .ring-k { color: var(--sun); }

/* Pattern and proof steps: larger tags, they carry the slide */
.pattern, .steps { display: flex; gap: 14px; justify-content: center; align-items: center; }
.pattern .stamp, .steps .stamp { font-size: 16px; padding: 16px 22px; color: var(--light); }
.pattern .arrow-mono, .steps .arrow-mono { font-size: 22px; }
/* Five-step pipeline: compact so it fits on one line */
.pattern.pipeline { gap: 10px; }
.pattern.pipeline .stamp { font-size: 14px; padding: 14px 16px; white-space: nowrap; letter-spacing: 0.14em; }
.pattern.pipeline .arrow-mono { font-size: 18px; }

/* Finding (insight to action) */
.quote { font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -0.01em; color: var(--dim); }
.action { display: inline-flex; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #000; background: var(--sun); border-radius: 6px; padding: 14px 20px; max-width: 980px; text-align: left; }
.action b { font-weight: 700; }
.t-azure .action { background: var(--azure); }
.t-green .action { background: var(--light); }

/* Guest -------------------------------------------------------------- */
.guest-photo { width: 190px; height: 190px; margin-inline: auto; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 64px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.guest-photo img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }

/* Join --------------------------------------------------------------- */
.join { display: grid; grid-template-columns: 170px 1fr; gap: 40px; align-items: center; width: 860px; margin-inline: auto; text-align: left; }
.qr { width: 170px; height: 170px; border-radius: 10px; background: var(--light); color: #000; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; }
.qr img { width: 100%; height: 100%; margin: 0 !important; }
.join .row { display: grid; grid-template-columns: 56px 1fr; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.join .row:first-child { border-top: 1px solid var(--hair); }
.join .n { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2em; color: var(--azure); padding-top: 6px; }
.join .t { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.join .s { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--dim); margin-top: 4px; }

/* Screenshots (demo backups) ---------------------------------------- */
.shot { width: 1060px; height: 520px; margin-inline: auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; margin: 0 !important;
  max-width: none !important; max-height: none !important; }

/* Placeholders: replace before the event ---------------------------- */
.tbc { outline: 2px dashed var(--sun); outline-offset: 6px; }
.tbc-inline { color: var(--sun) !important; }
.placeholder { width: 980px; height: 480px; margin-inline: auto; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; }
