/* GENERATED by scripts/generate-video-assets.ts — do not edit.
   Source: scripts/video/templates/{tokens,deck}.css

   The slide system scoped to .ghr-deck so it can be embedded in a page that has
   its own stylesheet. .ghr-deck is the 16:9 frame; the 1920x1080 slide inside is
   scaled to fit it by --s. */

@import url('fonts/inter.css');

.ghr-deck {
  /* surfaces */
  --slide-bg: #f1f5f9;        /* every light slide */
  --slide-bg-dark: #0f172a;   /* dark title-slide variant only */
  --plate: #ffffff;           /* figure plate surface */
  --plate-border: #e2e8f0;    /* 1px plate border, comparison divider */

  /* ink */
  --ink: #0f172a;             /* headings */
  --ink-body: #334155;        /* bullet body */
  --ink-muted: #475569;       /* captions, eyebrow on light */
  --ink-subtle: #64748b;      /* footer, annotations */
  --rule: #cbd5e1;            /* footer hairline, title rule */

  /* accents */
  --accent: #0284c7;          /* primary: rule, bullet dashes, column A */
  --accent-b: #b45309;        /* second: comparison column B */
  --accent-dark: #7dd3fc;     /* eyebrow on the dark title slide */
  --ink-dark-body: #cbd5e1;   /* body on the dark title slide */
  --ink-dark-subtle: #94a3b8; /* footer on the dark title slide */
  --data-amber: #E69F00;      /* reserved for data series — never UI */

  /* geometry */
  --canvas-w: 1920px;
  --canvas-h: 1080px;
  --margin-x: 120px;
  --col-full: 1280px;         /* full-width content column */
  --col-paired: 740px;        /* content column paired with a figure */
  --col-wide: 1680px;         /* full-figure column */

  --footer-rule-y: 964px;
  --footer-text-y: 984px;

  --bubble-x: 1464px;
  --bubble-y: 624px;
  --bubble-d: 392px;
  --bubble-ring: 6px;

  --plate-radius: 10px;
  --plate-pad: 32px;

  /* artwork: same position and scale on every slide */
  --art-x: 260px;
  --art-y: 180px;
  --art-w: 2200px;
  --art-h: 1237px;
  --art-opacity-content: .16;

  /* type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --s: 0.5;
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
  background: var(--slide-bg);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;

  /* GHR chapter-video slide system.
     Implements the design handoff (drafts/videos/design/handoff-spec.md).
     Absolute pixel geometry against a true 1920x1080 canvas; tokens in tokens.css.

     Two rules the layouts depend on:
     1. Text blocks are BOTTOM-ANCHORED (.anchor) so headlines sit on a fixed
        baseline and do not jump vertically when one slide cuts to the next.
     2. Nothing but the bubble may enter the 490x490 exclusion zone at 1430,590. */




  * { margin: 0; padding: 0; box-sizing: border-box; }



  .slide {
    position: relative;
    width: 1920px; height: 1080px;
    overflow: hidden;
    background: var(--slide-bg);
  }

  /* ---- background artwork -------------------------------------------------
     Same position and scale on every layout. Full strength on the title slide,
     .16 everywhere else. */
  .art {
    position: absolute;
    left: var(--art-x); top: var(--art-y);
    width: var(--art-w); height: var(--art-h);
    opacity: var(--art-opacity-content);
    pointer-events: none;
  }
  .slide.title-slide .art { opacity: 1; }

  /* ---- type scale ---------------------------------------------------------
     Sizes are per-role, not per-element: a headline is 76/60/50/38 depending on
     which layout family it belongs to. */
  .eyebrow {
    font-size: 28px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-muted);
  }
  .headline {                         /* 01 title */
    font-size: 76px; font-weight: 600; line-height: 1.10;
    letter-spacing: -.025em; text-wrap: balance;
  }
  .claim {                            /* 02 claim */
    font-size: 60px; font-weight: 600; line-height: 1.16;
    letter-spacing: -.022em; text-wrap: pretty;
  }
  .claim-sm {                         /* 03 / 04 / 05 */
    font-size: 50px; font-weight: 600; line-height: 1.18;
    letter-spacing: -.02em; text-wrap: pretty;
  }
  .claim-fig {                        /* 06 / 07 */
    font-size: 38px; font-weight: 600; line-height: 1.20;
    letter-spacing: -.02em;
  }
  .body {
    font-size: 38px; font-weight: 400; line-height: 1.35;
    color: var(--ink-body); text-wrap: pretty;
  }
  .caption {
    font-size: 28px; font-weight: 400; line-height: 1.42;
    color: var(--ink-muted); text-wrap: pretty;
  }
  .caption.sm { font-size: 26px; line-height: 1.40; }

  /* ---- frames -------------------------------------------------------------
     .frame is a plain absolute box. .anchor hangs its content off the box's
     bottom edge, which is what keeps baselines fixed across cuts. */
  .frame { position: absolute; }
  .anchor { display: flex; flex-direction: column; justify-content: flex-end; }
  /* flex column so child margins cannot collapse out of the measured height */
  .anchor-inner { display: flex; flex-direction: column; }

  /* ---- title-slide furniture ---------------------------------------------- */
  /* Native size of the only logo raster we have (412x181). The design spec asks
     for 440x193, but upscaling 1.07x is visibly soft at video resolution and the
     6.8% difference is not. Restore the spec size if a vector or 2x raster lands. */
  .logo { position: absolute; left: 120px; top: 132px; width: 412px; height: 181px; }
  .accent-rule {
    position: absolute; left: 120px;
    width: 96px; height: 6px; border-radius: 3px; background: var(--accent);
  }

  /* ---- footer -------------------------------------------------------------
     Hairline plus a single uppercase line. The GHR wordmark appears on the
     title slide only; every other slide gets this instead. */
  .footer-rule {
    position: absolute; left: 120px; top: var(--footer-rule-y);
    width: var(--col-full); height: 1px; background: var(--rule);
  }
  .footer {
    position: absolute; left: 120px; top: var(--footer-text-y);
    font-size: 22px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-subtle);
    white-space: nowrap;
  }

  /* ---- bullets ------------------------------------------------------------
     A 24x4 bar, not a dot. margin-top:24px optically centers it on the first
     line of 38px/1.35 text. */
  .bullets { display: flex; flex-direction: column; gap: 32px; }
  .bullet { display: flex; gap: 24px; }
  .bullet::before {
    content: ''; flex: none;
    width: 24px; height: 4px; border-radius: 2px;
    background: var(--accent); margin-top: 24px;
  }
  .col-b .bullet::before { background: var(--accent-b); }

  /* ---- comparison columns -------------------------------------------------- */
  .col-label { font-size: 28px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .col-b .col-label { color: var(--accent-b); }
  .col-bar { margin-top: 20px; width: 620px; height: 3px; background: var(--accent); }
  .col-b .col-bar { background: var(--accent-b); }
  .col-body { margin-top: 44px; }
  .col-divider { position: absolute; left: 770px; top: 330px; width: 1px; height: 410px; background: var(--plate-border); }

  /* ---- figure plates ------------------------------------------------------
     Chapter figures are finished artwork at native aspect ratios and are never
     recropped. The plate absorbs the aspect mismatch as mount board.

     .plate      fixed box, image contained inside it (03 / 04)
     .plate-wrap plate shrink-wraps the artwork, left-aligned in a fixed box (06)
     .plate-full plate fills the box and the image scales up to fit it (07) */
  .plate {
    position: absolute;
    background: var(--plate); border: 1px solid var(--plate-border);
    border-radius: var(--plate-radius); padding: var(--plate-pad);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .plate img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
  .plate.cover { padding: 0; }
  .plate.cover img { width: 100%; height: 100%; object-fit: cover; max-width: none; max-height: none; }
  /* .bare drops the mount board so a transparent PNG sits on the slide surface itself.
     Composes with .cover: fit is geometry, plate is chrome. Must follow .cover. */
  .plate.bare { background: none; border: 0; border-radius: 0; padding: 0; }

  .plate-wrap { position: absolute; display: flex; align-items: center; justify-content: flex-start; }
  .plate-wrap > span {
    background: var(--plate); border: 1px solid var(--plate-border);
    border-radius: var(--plate-radius); padding: var(--plate-pad); display: block;
  }
  .plate-wrap img { max-width: 1232px; max-height: 556px; object-fit: contain; display: block; }

  .plate-full {
    position: absolute;
    background: var(--plate); border: 1px solid var(--plate-border);
    border-radius: var(--plate-radius); padding: 36px;
    display: flex; align-items: center; justify-content: center;
  }
  .plate-full img { width: 100%; height: 100%; object-fit: contain; display: block; }

  /* ---- title rule (06 / 07) ------------------------------------------------ */
  .title-rule { position: absolute; display: flex; align-items: baseline; gap: 24px; }
  .title-rule .hair { flex: 1; height: 1px; background: var(--rule); }

  /* ---- avatar bubble ------------------------------------------------------
     Drawn only in debug renders. In production the circle is cut from the
     HeyGen clip by scripts/heygen/overlay.sh at exactly this geometry. */
  .bubble {
    position: absolute;
    left: var(--bubble-x); top: var(--bubble-y);
    width: var(--bubble-d); height: var(--bubble-d);
    border-radius: 50%;
    box-shadow: 0 0 0 6px #ffffff, 0 0 0 7px var(--plate-border);
    display: none;
  }
  body.debug .bubble { display: block; }

  /* ---- dark title variant (1b) — available, not the default ---------------- */
  .slide.title-slide.dark { background: var(--slide-bg-dark); color: #fff; }
  .slide.title-slide.dark .eyebrow { color: var(--accent-dark); }
  .slide.title-slide.dark .course { color: var(--ink-dark-body); }
  .slide.title-slide.dark .footer { color: var(--ink-dark-subtle); }
  .slide.title-slide.dark .bubble { box-shadow: 0 0 0 6px #ffffff; }

  .course { font-size: 42px; line-height: 1.32; color: var(--ink-muted); }

  /* ---- validation aid ------------------------------------------------------ */
  .zone {
    position: absolute; left: 1430px; top: 590px; width: 490px; height: 490px;
    outline: 2px dashed rgba(220,38,38,.55); background: rgba(220,38,38,.06);
    display: none;
  }
  body.debug .zone { display: block; }

  /* Must follow the nested deck rules: same specificity, later wins. */
  & > .slide {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(var(--s));
    transform-origin: top left;
  }
}
