    /* ===========================================
       THEME TOKENS
       =========================================== */
    :root {
      --stage-bg: #050505;
      --slide-bg: #0a0a09;
      --ink: #f0ede8;
      --muted: #9b9994;
      --faint: #66645f;
      --line: rgba(240, 237, 232, 0.18);
      --line-strong: rgba(240, 237, 232, 0.42);
      --cyan: #72d7d1;
      --cyan-soft: rgba(114, 215, 209, 0.14);
      --yellow: #f0d22f;
      --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
      --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
      --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    button,
    input {
      font: inherit;
    }

    button {
      color: inherit;
    }

    /* ===========================================
       FIXED 16:9 STAGE: MANDATORY BASE STYLES
       Include this ENTIRE file in every presentation.
       Slides are authored at 1920×1080 and scaled as a whole.
       =========================================== */

    /* 1. Lock the browser viewport */
    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
        background: var(--stage-bg, #000);
    }

    /* 2. Full-window deck viewport */
    .deck-viewport {
        position: fixed;
        inset: 0;
        overflow: hidden;
        background: var(--stage-bg, #000);
    }

    /* 3. Fixed 16:9 design canvas.
       JavaScript sets transform: translate(...) scale(...). */
    .deck-stage {
        position: absolute;
        left: 0;
        top: 0;
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        transform-origin: 0 0;
        background: var(--slide-bg, #fff);
    }

    /* 4. Slides stack inside the fixed stage.
       Content must be laid out at 1920×1080, not reflowed per device. */
    .slide {
        position: absolute;
        inset: 0;
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: var(--slide-bg, #fff);
    }

    .slide.active,
    .slide.visible {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

    /* 5. Keep media inside authored slide bounds */
    img,
    video,
    canvas,
    svg {
        max-width: 100%;
        max-height: 100%;
    }

    /* 6. Presentation chrome stays outside the slide design system */
    .deck-controls {
        position: fixed;
        left: 50%;
        bottom: 22px;
        transform: translateX(-50%);
        z-index: 1000;
    }

    /* 7. Print one fixed-size slide per page */
    @media print {
        html,
        body {
            width: 1920px;
            height: auto;
            overflow: visible;
            background: #fff;
        }

        .deck-viewport {
            position: static;
            overflow: visible;
            background: #fff;
        }

        .deck-stage {
            position: static;
            width: auto;
            height: auto;
            transform: none !important;
            background: none;
        }

        .slide {
            position: relative;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            width: 1920px;
            height: 1080px;
            break-after: page;
            page-break-after: always;
        }

        .slide:last-child {
            break-after: auto;
            page-break-after: auto;
        }

        .deck-controls {
            display: none !important;
        }
    }

    /* 8. Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.2s !important;
        }
    }

    /* ===========================================
       SHARED SLIDE LAYOUT
       =========================================== */
    body {
      color: var(--ink);
      font-family: var(--font-body);
    }

    .slide {
      padding: 74px 84px 70px;
      transition: opacity 420ms var(--ease);
    }

    .slide::before {
      position: absolute;
      inset: 0;
      pointer-events: none;
      content: "";
      background-image:
        linear-gradient(rgba(240, 237, 232, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 237, 232, 0.018) 1px, transparent 1px);
      background-size: 54px 54px;
      mask-image: linear-gradient(to bottom, black, transparent 78%);
    }

    .slide-number,
    .eyebrow,
    .micro-label,
    .source-mark {
      font-family: var(--font-mono);
      font-size: 16px;
      font-weight: 500;
      letter-spacing: 0.13em;
      line-height: 1.4;
      text-transform: uppercase;
    }

    .slide-number {
      position: absolute;
      top: 76px;
      right: 84px;
      color: var(--faint);
    }

    .eyebrow {
      color: var(--cyan);
    }

    .slide-header {
      position: relative;
      display: grid;
      grid-template-columns: 220px 1fr;
      align-items: end;
      padding-bottom: 30px;
      border-bottom: 1px solid var(--line);
    }

    .slide-header h2 {
      max-width: 1120px;
      font-family: var(--font-display);
      font-size: 78px;
      font-weight: 400;
      letter-spacing: -0.035em;
      line-height: 0.98;
    }

    .slide-footer {
      position: absolute;
      right: 84px;
      bottom: 40px;
      left: 84px;
      display: flex;
      justify-content: space-between;
      padding-top: 16px;
      border-top: 1px solid var(--line);
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 14px;
      letter-spacing: 0.08em;
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition:
        opacity 680ms var(--ease),
        transform 680ms var(--ease);
    }

    .slide.visible .reveal {
      opacity: 1;
      transform: translateY(0);
    }

    .slide.visible .reveal:nth-child(2) { transition-delay: 80ms; }
    .slide.visible .reveal:nth-child(3) { transition-delay: 160ms; }
    .slide.visible .reveal:nth-child(4) { transition-delay: 240ms; }

    [data-editable][contenteditable="true"] {
      outline: 1px dashed var(--cyan);
      outline-offset: 8px;
      cursor: text;
    }

    /* ===========================================
       SLIDE 01 — COVER
       =========================================== */
    .cover {
      padding: 0;
      background: var(--yellow);
      color: #0a0a09;
    }

    .cover::before {
      opacity: 0.22;
      background-image:
        linear-gradient(rgba(10, 10, 9, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 9, 0.08) 1px, transparent 1px);
      mask-image: none;
    }

    .cover-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.16fr 0.84fr;
      width: 100%;
      height: 100%;
    }

    .cover-copy {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 78px 58px 66px 84px;
      border-right: 1px solid rgba(10, 10, 9, 0.28);
    }

    .cover-kicker {
      display: flex;
      justify-content: space-between;
      color: rgba(10, 10, 9, 0.7);
      font-family: var(--font-mono);
      font-size: 16px;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    .cover-title {
      max-width: 920px;
      font-family: var(--font-display);
      font-size: 146px;
      font-weight: 400;
      letter-spacing: -0.055em;
      line-height: 0.83;
    }

    .cover-title em {
      font-weight: 400;
    }

    .cover-standfirst {
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 36px;
      align-items: start;
      padding-top: 26px;
      border-top: 1px solid rgba(10, 10, 9, 0.28);
    }

    .cover-standfirst .label {
      font-family: var(--font-mono);
      font-size: 15px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .cover-standfirst p {
      max-width: 430px;
      font-size: 24px;
      line-height: 1.3;
    }

    .cover-image {
      position: relative;
      overflow: hidden;
      background: #d7bc1e;
    }

    .cover-image img {
      width: 100%;
      height: 100%;
      max-height: none;
      object-fit: cover;
      object-position: 50% 43%;
      filter: saturate(0.88) contrast(1.05);
    }

    .cover-image::after {
      position: absolute;
      inset: 0;
      content: "";
      pointer-events: none;
      background: linear-gradient(180deg, rgba(240, 210, 47, 0.08), rgba(10, 10, 9, 0.22));
      mix-blend-mode: multiply;
    }

    .cover-caption {
      position: absolute;
      right: 32px;
      bottom: 32px;
      left: 32px;
      z-index: 2;
      display: flex;
      justify-content: space-between;
      padding-top: 14px;
      border-top: 1px solid rgba(240, 237, 232, 0.62);
      color: var(--ink);
      font-family: var(--font-mono);
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    /* ===========================================
       SLIDE 03 — TIMELINE
       =========================================== */
    .intro-grid {
      position: relative;
      display: grid;
      grid-template-columns: 570px 1fr;
      gap: 86px;
      margin-top: 54px;
    }

    .intro-thesis {
      padding-right: 58px;
      border-right: 1px solid var(--line);
    }

    .intro-thesis .lead {
      font-family: var(--font-display);
      font-size: 49px;
      letter-spacing: -0.02em;
      line-height: 1.06;
    }

    .intro-thesis .body-copy {
      margin-top: 36px;
      color: var(--muted);
      font-size: 23px;
      line-height: 1.5;
    }

    .timeline-wrap {
      padding-top: 6px;
    }

    .timeline-detail {
      min-height: 214px;
      display: grid;
      grid-template-columns: 145px 1fr;
      gap: 34px;
      padding-bottom: 38px;
    }

    .timeline-detail time {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 27px;
    }

    .timeline-detail h3 {
      font-family: var(--font-display);
      font-size: 54px;
      font-weight: 400;
      letter-spacing: -0.025em;
      line-height: 1;
    }

    .timeline-detail p {
      max-width: 720px;
      margin-top: 20px;
      color: var(--muted);
      font-size: 22px;
      line-height: 1.45;
    }

    .timeline {
      position: relative;
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      padding-top: 32px;
      border-top: 1px solid var(--line-strong);
    }

    .timeline-event {
      position: relative;
      min-height: 170px;
      padding: 34px 22px 0 0;
      border: 0;
      border-right: 1px solid var(--line);
      background: transparent;
      text-align: left;
      cursor: pointer;
      transition: color 200ms ease, background 200ms ease;
    }

    .timeline-event:last-child {
      border-right: 0;
      padding-left: 22px;
    }

    .timeline-event:not(:first-child):not(:last-child) {
      padding-left: 22px;
    }

    .timeline-event::before {
      position: absolute;
      top: -6px;
      left: 0;
      width: 11px;
      height: 11px;
      content: "";
      border: 1px solid var(--muted);
      background: var(--slide-bg);
      transform: rotate(45deg);
    }

    .timeline-event:not(:first-child)::before {
      left: 22px;
    }

    .timeline-event .year {
      display: block;
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 18px;
      transition: color 200ms ease;
    }

    .timeline-event .event-name {
      display: block;
      margin-top: 12px;
      font-size: 18px;
      line-height: 1.25;
    }

    .timeline-event:hover,
    .timeline-event:focus-visible,
    .timeline-event.active {
      background: linear-gradient(180deg, var(--cyan-soft), transparent 80%);
      color: var(--ink);
      outline: none;
    }

    .timeline-event:hover .year,
    .timeline-event:focus-visible .year,
    .timeline-event.active .year {
      color: var(--cyan);
    }

    .timeline-event.active::before {
      border-color: var(--cyan);
      background: var(--cyan);
    }

    .history-story {
      display: grid;
      grid-template-columns: 340px 1fr;
      height: 210px;
      margin-top: 26px;
      overflow: hidden;
      border: 1px solid var(--line-strong);
      background: rgba(17, 17, 16, 0.58);
    }

    .history-story.without-image {
      grid-template-columns: 1fr;
    }

    .history-story-image {
      position: relative;
      overflow: hidden;
      border-right: 1px solid var(--line-strong);
      background: #111;
    }

    .history-story-image[hidden] {
      display: none;
    }

    .history-story-image img {
      width: 100%;
      height: 100%;
      max-height: none;
      object-fit: cover;
      object-position: 50% 24%;
      filter: grayscale(1) contrast(1.08);
      opacity: 0.9;
    }

    .history-story-image img[src*="alexnet"],
    .history-story-image img[src*="transformer"],
    .history-story-image img[src*="chatgpt"] {
      padding: 12px;
      background: #e7e3dc;
      object-fit: contain;
      filter: none;
    }

    .history-story-image::after {
      position: absolute;
      inset: 0;
      content: "";
      background: linear-gradient(180deg, transparent 44%, rgba(5, 5, 5, 0.88));
      pointer-events: none;
    }

    .history-story-image figcaption {
      position: absolute;
      right: 18px;
      bottom: 15px;
      left: 18px;
      z-index: 1;
      display: flex;
      gap: 16px;
      align-items: baseline;
      font-size: 17px;
    }

    .history-story-image figcaption span {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 13px;
      letter-spacing: 0.08em;
    }

    .history-story-copy {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      min-width: 0;
      padding: 23px 28px;
    }

    .history-story-copy > div + div {
      padding-left: 28px;
      border-left: 1px solid var(--line);
    }

    .history-story-copy .micro-label {
      color: var(--cyan);
      font-size: 11px;
    }

    .history-story-copy p {
      margin-top: 14px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.4;
    }

    /* ===========================================
       SLIDE 04 — AI HIERARCHY
       =========================================== */
    .hierarchy-grid {
      display: grid;
      grid-template-columns: 1.18fr 0.82fr;
      gap: 88px;
      margin-top: 48px;
    }

    .hierarchy-visual {
      position: relative;
      height: 650px;
      border-right: 1px solid var(--line);
    }

    .hierarchy-node {
      position: absolute;
      display: flex;
      align-items: flex-start;
      border: 1px solid var(--line-strong);
      background: rgba(10, 10, 9, 0.97);
      cursor: pointer;
      transition:
        border-color 260ms ease,
        background 260ms ease,
        opacity 260ms ease,
        transform 260ms var(--ease);
    }

    .hierarchy-node .node-id {
      padding: 18px 19px;
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 16px;
      border-right: 1px solid var(--line);
    }

    .hierarchy-node .node-name {
      padding: 15px 20px;
      font-family: var(--font-display);
      font-size: 29px;
      line-height: 1;
    }

    .hierarchy-node[data-level="ai"] {
      inset: 0 48px 0 0;
      z-index: 1;
    }

    .hierarchy-node[data-level="ml"] {
      inset: 120px 118px 70px 126px;
      z-index: 2;
    }

    .hierarchy-node[data-level="nn"] {
      inset: 240px 188px 140px 252px;
      z-index: 3;
    }

    .hierarchy-node[data-level="dl"] {
      inset: 360px 258px 210px 378px;
      z-index: 4;
      border-color: rgba(114, 215, 209, 0.62);
      background: var(--cyan-soft);
    }

    .hierarchy-node:hover,
    .hierarchy-node:focus-visible,
    .hierarchy-node.active {
      border-color: var(--cyan);
      outline: none;
      transform: translate(-4px, -4px);
    }

    .hierarchy-visual.has-focus .hierarchy-node:not(.active) {
      opacity: 0.28;
    }

    .hierarchy-copy {
      padding-top: 6px;
    }

    .hierarchy-copy .micro-label {
      color: var(--cyan);
    }

    .hierarchy-copy h3 {
      margin-top: 18px;
      font-family: var(--font-display);
      font-size: 54px;
      font-weight: 400;
      letter-spacing: -0.03em;
      line-height: 1;
    }

    .hierarchy-copy .definition {
      max-width: 560px;
      margin-top: 18px;
      color: var(--muted);
      font-size: 22px;
      line-height: 1.42;
    }

    .hierarchy-copy .example {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
      font-family: var(--font-mono);
      font-size: 14px;
      line-height: 1.45;
      text-align: center;
    }

    .use-case-visual,
    .method-image {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line-strong);
      background: #111;
    }

    .use-case-visual {
      display: grid;
      grid-template-columns: 220px 1fr;
      height: 126px;
      margin-top: 18px;
    }

    .use-case-visual img,
    .method-image img {
      width: 100%;
      height: 100%;
      max-height: none;
      object-fit: cover;
      filter: saturate(0.5) contrast(1.05);
      transition: opacity 180ms ease;
    }

    .use-case-visual img[src$=".svg"],
    .method-image img[src$=".svg"],
    .use-case-visual img[src*="clusters"],
    .method-image img[src*="clusters"],
    .use-case-visual img[src*="neural-network"],
    .use-case-visual img[src*="mnist"],
    .method-image img[src*="mnist"] {
      padding: 10px;
      background: #e7e3dc;
      object-fit: contain;
      filter: none;
    }

    .use-case-visual figcaption {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 12px;
      align-items: center;
      padding: 18px 20px;
      font-size: 18px;
      line-height: 1.25;
      text-align: center;
    }

    .use-case-visual figcaption .micro-label,
    .method-image figcaption .micro-label {
      color: var(--cyan);
      font-size: 11px;
    }

    .capability-note {
      margin-top: 18px;
      padding: 15px 0;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      color: var(--muted);
      font-size: 17px;
      line-height: 1.34;
    }

    .capability-note strong {
      color: var(--ink);
      font-weight: 500;
    }

    /* ===========================================
       SLIDE 05 — MACHINE LEARNING OVERVIEW
       =========================================== */
    .learning-grid {
      display: grid;
      grid-template-columns: 0.93fr 1.07fr;
      gap: 92px;
      margin-top: 52px;
    }

    .learning-selector {
      border-top: 1px solid var(--line-strong);
    }

    .method-image {
      display: block;
      height: 190px;
      margin-top: 28px;
    }

    .method-image > img {
      width: 58%;
    }

    .method-image figcaption {
      position: absolute;
      inset: 0 0 0 58%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 12px;
      align-items: center;
      padding: 22px;
      font-size: 16px;
      line-height: 1.3;
      text-align: center;
    }

    .learning-option {
      display: grid;
      grid-template-columns: 70px 1fr 22px;
      gap: 20px;
      align-items: center;
      width: 100%;
      min-height: 142px;
      padding: 22px 4px;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
      text-align: left;
      cursor: pointer;
      transition: color 220ms ease, padding 220ms var(--ease);
    }

    .learning-option:hover,
    .learning-option:focus-visible,
    .learning-option.active {
      padding-left: 16px;
      color: var(--cyan);
      outline: none;
    }

    .learning-option .option-id {
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 16px;
    }

    .learning-option .option-name {
      font-family: var(--font-display);
      font-size: 43px;
      line-height: 1;
    }

    .learning-option .arrow {
      font-size: 27px;
      opacity: 0;
      transform: translateX(-8px);
      transition: opacity 200ms ease, transform 200ms ease;
    }

    .learning-option.active .arrow,
    .learning-option:hover .arrow,
    .learning-option:focus-visible .arrow {
      opacity: 1;
      transform: translateX(0);
    }

    .learning-detail {
      min-height: 560px;
      padding-left: 72px;
      border-left: 1px solid var(--line);
    }

    .learning-detail .method-label {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 16px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .learning-detail h3 {
      max-width: 730px;
      margin-top: 22px;
      font-family: var(--font-display);
      font-size: 60px;
      font-weight: 400;
      letter-spacing: -0.025em;
      line-height: 1.02;
    }

    .learning-detail .method-summary {
      max-width: 690px;
      margin-top: 25px;
      color: var(--muted);
      font-size: 24px;
      line-height: 1.45;
    }

    .learning-flow {
      display: grid;
      grid-template-columns: 1fr 54px 1fr 54px 1fr;
      align-items: stretch;
      margin-top: 48px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .flow-step {
      min-height: 154px;
      padding: 24px 18px 22px 0;
    }

    .flow-step .step-label {
      display: block;
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 13px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .flow-step .step-value {
      display: block;
      margin-top: 14px;
      font-size: 21px;
      line-height: 1.32;
    }

    .flow-arrow {
      display: grid;
      place-items: center;
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 21px;
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
    }

    .learning-examples {
      display: grid;
      gap: 10px;
      margin-top: 38px;
      color: var(--muted);
      font-size: 20px;
      line-height: 1.45;
      text-align: center;
    }

    .learning-examples .micro-label {
      color: var(--ink);
      font-size: 13px;
    }

    /* ===========================================
       SLIDE 02 — PREFACE AND SCOPE
       =========================================== */
    .preface-deck {
      max-width: 1380px;
      margin: 52px 0 0 220px;
      color: var(--muted);
      font-family: var(--font-display);
      font-size: 39px;
      line-height: 1.18;
    }

    .scope-panels {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      margin-top: 48px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .scope-panels > article {
      min-height: 420px;
      padding: 30px 38px 32px;
    }

    .scope-panels > article + article {
      border-left: 1px solid var(--line);
    }

    .scope-panels .micro-label {
      color: var(--cyan);
      font-size: 13px;
    }

    .scope-panels h3 {
      margin-top: 24px;
      font-family: var(--font-display);
      font-size: 42px;
      font-weight: 400;
      line-height: 1;
    }

    .scope-panels ul {
      margin-top: 26px;
      list-style: none;
    }

    .scope-panels li,
    .scope-panels > article > p,
    .author-note p {
      color: var(--muted);
      font-size: 21px;
      line-height: 1.42;
    }

    .scope-panels li {
      position: relative;
      padding: 14px 0 14px 24px;
      border-top: 1px solid var(--line);
    }

    .scope-panels li::before {
      position: absolute;
      top: 23px;
      left: 2px;
      width: 6px;
      height: 6px;
      content: "";
      background: var(--cyan);
      transform: rotate(45deg);
    }

    .scope-panels > article > p {
      margin-top: 26px;
    }

    .author-note {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid var(--line-strong);
    }

    .author-note strong {
      color: var(--ink);
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .author-note p {
      margin-top: 12px;
    }

    /* ===========================================
       SHARED TECHNICAL SLIDE ELEMENTS
       =========================================== */
    .supervised-layout,
    .rl-layout,
    .gradient-layout,
    .deep-layout,
    .activation-layout,
    .network-layout,
    .notation-layout,
    .backprop-layout {
      display: grid;
      gap: 76px;
      margin-top: 52px;
    }

    .lead {
      font-family: var(--font-display);
      font-size: 43px;
      line-height: 1.08;
    }

    .diagram-box {
      fill: rgba(17, 17, 16, 0.76);
      stroke: rgba(240, 237, 232, 0.42);
      stroke-width: 1.5;
    }

    .diagram-arrow {
      fill: none;
      stroke: var(--cyan);
      stroke-width: 2.4;
    }

    .diagram-kicker,
    .diagram-label {
      fill: var(--muted);
      font-family: var(--font-mono);
      font-size: 16px;
      letter-spacing: 0.08em;
    }

    .diagram-title {
      fill: var(--ink);
      font-family: var(--font-display);
      font-size: 38px;
    }

    .math-inline,
    .equation-block b,
    .equation-hero,
    .equation-pair b,
    .notation-equations b,
    .backprop-equations b,
    .delta-hero {
      font-family: var(--font-display);
    }

    /* ===========================================
       SLIDE 06 — SUPERVISED LEARNING
       =========================================== */
    .supervised-layout {
      grid-template-columns: 0.88fr 1.12fr;
    }

    .supervised-intro {
      padding-right: 62px;
      border-right: 1px solid var(--line);
    }

    .supervised-intro > p:nth-child(2) {
      margin-top: 26px;
      color: var(--muted);
      font-size: 23px;
      line-height: 1.45;
    }

    .training-chain {
      display: grid;
      grid-template-columns: 1fr 34px 1fr 34px 1fr 34px;
      align-items: center;
      margin-top: 38px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .training-chain span {
      padding: 20px 8px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.35;
      text-align: center;
    }

    .training-chain b {
      color: var(--ink);
      font-family: var(--font-mono);
      font-weight: 400;
    }

    .training-chain i {
      color: var(--cyan);
      font-style: normal;
      text-align: center;
    }

    .empirical-risk {
      margin-top: 34px;
      text-align: center;
    }

    .empirical-risk span,
    .empirical-risk b,
    .empirical-risk small {
      display: block;
    }

    .empirical-risk b {
      margin-top: 14px;
      font-family: var(--font-display);
      font-size: 37px;
      font-weight: 400;
    }

    .empirical-risk small {
      margin-top: 10px;
      color: var(--muted);
      font-size: 16px;
    }

    .supervised-comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .supervised-comparison article {
      display: flex;
      flex-direction: column;
      padding: 30px 38px;
    }

    .supervised-comparison article + article {
      border-left: 1px solid var(--line);
    }

    .supervised-comparison .micro-label {
      color: var(--cyan);
      font-size: 12px;
    }

    .supervised-comparison h3 {
      margin-top: 24px;
      font-family: var(--font-display);
      font-size: 42px;
      font-weight: 400;
    }

    .supervised-comparison article > p {
      margin-top: 22px;
      color: var(--muted);
      font-size: 21px;
      line-height: 1.42;
    }

    .equation-block {
      margin-top: auto;
      padding-top: 26px;
      border-top: 1px solid var(--line);
    }

    .equation-block span,
    .equation-block b {
      display: block;
    }

    .equation-block span {
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 13px;
      text-transform: uppercase;
    }

    .equation-block b {
      margin-top: 18px;
      font-size: 27px;
      font-weight: 400;
      line-height: 1.25;
    }

    /* ===========================================
       SLIDE 07 — CHOOSING A LOSS FUNCTION
       =========================================== */
    .loss-explorer {
      display: grid;
      grid-template-columns: .72fr 1.28fr;
      gap: 58px;
      height: 642px;
      margin-top: 28px;
    }

    .loss-guide {
      padding-right: 50px;
      border-right: 1px solid var(--line);
    }

    .loss-guide > .lead {
      font-size: 30px;
      line-height: 1.12;
    }

    .loss-guide > p:nth-child(2) {
      margin-top: 17px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.42;
    }

    .loss-questions {
      margin-top: 22px;
      border-top: 1px solid var(--line-strong);
    }

    .loss-questions p {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 2px 10px;
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }

    .loss-questions span {
      grid-row: 1 / 3;
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 10px;
    }

    .loss-questions b {
      color: var(--ink);
      font-size: 15px;
      font-weight: 500;
    }

    .loss-questions small {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.3;
    }

    .loss-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      margin-top: 18px;
    }

    .loss-tabs .panel-tab {
      padding-right: 11px;
      padding-left: 11px;
    }

    .loss-stage {
      position: relative;
      min-width: 0;
      height: 642px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .loss-panel {
      position: absolute;
      inset: 0;
      padding: 25px 30px;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity 240ms ease, transform 240ms var(--ease), visibility 240ms ease;
    }

    .loss-panel.active {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .loss-panel header {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px 24px;
      align-items: end;
    }

    .loss-panel header .micro-label {
      grid-column: 1 / -1;
      color: var(--cyan);
      font-size: 11px;
    }

    .loss-panel h3 {
      font-family: var(--font-display);
      font-size: 52px;
      font-weight: 400;
      line-height: .95;
    }

    .loss-panel code {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 13px;
    }

    .loss-panel > p {
      max-width: 930px;
      margin-top: 16px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.4;
    }

    .loss-panel > aside {
      margin-top: 18px;
      padding: 14px 17px;
      border-left: 2px solid var(--cyan);
      background: var(--cyan-soft);
      color: var(--muted);
      font-size: 15px;
      line-height: 1.4;
    }

    .loss-panel > aside b { color: var(--ink); font-weight: 500; }

    .loss-example,
    .class-probabilities,
    .numeric-errors,
    .robust-loss-plot {
      height: 250px;
      margin-top: 18px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .loss-example {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .loss-example > div {
      display: grid;
      align-content: center;
      gap: 11px;
      padding: 24px 34px;
    }

    .loss-example > div + div { border-left: 1px solid var(--line); }
    .loss-example span,
    .loss-example small { color: var(--muted); font-size: 14px; }
    .loss-example b { font-family: var(--font-display); font-size: 34px; font-weight: 400; }
    .loss-example i,
    .class-probabilities i {
      position: relative;
      display: block;
      height: 10px;
      overflow: hidden;
      background: rgba(240, 237, 232, .08);
    }
    .loss-example i::after,
    .class-probabilities i::after {
      position: absolute;
      inset: 0 auto 0 0;
      width: calc(var(--score) * 100%);
      content: "";
      background: var(--cyan);
    }

    .class-probabilities {
      display: grid;
      align-content: center;
      gap: 18px;
      padding: 28px 42px;
    }

    .class-probabilities p {
      display: grid;
      grid-template-columns: 150px 1fr 54px;
      gap: 16px;
      align-items: center;
      color: var(--muted);
      font-size: 16px;
    }

    .class-probabilities p.correct { color: var(--ink); }
    .class-probabilities b { font-family: var(--font-mono); font-size: 14px; font-weight: 400; }

    .numeric-errors {
      display: grid;
      grid-template-columns: 1fr 28px 1fr 34px 1.1fr;
      gap: 10px;
      align-items: center;
      padding: 25px 34px;
    }

    .numeric-errors p {
      display: grid;
      place-items: center;
      gap: 7px;
      min-height: 82px;
      padding: 13px;
      border: 1px solid var(--line);
    }

    .numeric-errors > i { color: var(--cyan); font-style: normal; text-align: center; }
    .numeric-errors span { color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
    .numeric-errors b { font-family: var(--font-display); font-size: 31px; font-weight: 400; }
    .numeric-errors .result { border-color: rgba(114, 215, 209, .5); background: var(--cyan-soft); }
    .numeric-errors .costly { border-color: var(--cyan); }

    .robust-loss-plot { width: 100%; overflow: visible; }
    .robust-loss-plot path { fill: none; stroke-width: 3; stroke-linecap: round; }
    .robust-loss-plot .plot-axis { stroke: var(--line-strong); stroke-width: 1.5; }
    .robust-loss-plot .mse-curve { stroke: var(--ink); }
    .robust-loss-plot .mae-curve { stroke: var(--faint); }
    .robust-loss-plot .huber-curve { stroke: var(--cyan); }
    .robust-loss-plot text { fill: var(--muted); font-family: var(--font-mono); font-size: 13px; }

    /* ===========================================
       SLIDE 08 — UNSUPERVISED LEARNING
       =========================================== */
    .unsupervised-intro {
      display: grid;
      grid-template-columns: 1.12fr 0.88fr;
      gap: 72px;
      align-items: end;
      margin-top: 46px;
    }

    .unsupervised-intro > p:last-child {
      padding-left: 44px;
      border-left: 1px solid var(--line);
      color: var(--muted);
      font-size: 22px;
      line-height: 1.44;
    }

    .task-columns {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      margin-top: 44px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .task-columns article {
      min-height: 410px;
      padding: 28px 36px;
    }

    .task-columns article + article {
      border-left: 1px solid var(--line);
    }

    .task-mark {
      position: relative;
      width: 100%;
      height: 118px;
      margin-bottom: 23px;
      border-bottom: 1px solid var(--line);
    }

    .clusters-mark i {
      position: absolute;
      width: 12px;
      height: 12px;
      background: var(--cyan);
      transform: rotate(45deg);
    }

    .clusters-mark i:nth-child(1) { top: 25px; left: 18%; }
    .clusters-mark i:nth-child(2) { top: 61px; left: 25%; }
    .clusters-mark i:nth-child(3) { top: 42px; left: 34%; }
    .clusters-mark i:nth-child(4) { top: 21px; left: 69%; opacity: 0.55; }
    .clusters-mark i:nth-child(5) { top: 64px; left: 76%; opacity: 0.55; }
    .clusters-mark i:nth-child(6) { top: 48px; left: 61%; opacity: 0.55; }

    .association-mark i {
      position: absolute;
      width: 28px;
      height: 28px;
      border: 1px solid var(--cyan);
      border-radius: 50%;
    }

    .association-mark i:nth-child(1) { top: 16px; left: 18%; }
    .association-mark i:nth-child(2) { top: 68px; left: 38%; }
    .association-mark i:nth-child(3) { top: 20px; left: 61%; }
    .association-mark i:nth-child(4) { top: 66px; left: 78%; }
    .association-mark::before,
    .association-mark::after { position: absolute; top: 53px; left: 24%; width: 58%; height: 1px; content: ""; background: var(--line-strong); transform: rotate(12deg); }
    .association-mark::after { transform: rotate(-16deg); }

    .reduction-mark {
      display: flex;
      align-items: center;
      justify-content: space-around;
      color: var(--cyan);
      font-family: var(--font-mono);
    }

    .reduction-mark i {
      display: grid;
      place-items: center;
      width: 70px;
      height: 70px;
      border: 1px solid var(--line-strong);
      font-style: normal;
    }

    .task-columns .micro-label { color: var(--cyan); font-size: 12px; }
    .task-columns h3 { margin-top: 18px; font-family: var(--font-display); font-size: 38px; font-weight: 400; }
    .task-columns p { margin-top: 18px; color: var(--muted); font-size: 21px; line-height: 1.4; }
    .task-columns small { display: block; margin-top: 24px; color: var(--faint); font-family: var(--font-mono); font-size: 14px; line-height: 1.45; }

    /* ===========================================
       SLIDE 09 — REINFORCEMENT LEARNING
       =========================================== */
    .rl-layout { grid-template-columns: 0.93fr 1.07fr; }
    .rl-loop { padding-right: 64px; border-right: 1px solid var(--line); }
    .rl-loop svg { width: 100%; height: 455px; }
    .rl-loop > p { padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
    .rl-loop > p span, .rl-loop > p b { display: block; }
    .rl-loop > p span { color: var(--cyan); font-size: 12px; }
    .rl-loop > p b { margin-top: 12px; font-size: 20px; font-weight: 500; }
    .rl-copy > p:nth-child(2) { margin-top: 28px; color: var(--muted); font-size: 23px; line-height: 1.46; }
    .rl-copy strong { color: var(--ink); font-weight: 500; }
    .rl-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
    .rl-split article { padding: 26px 28px; }
    .rl-split article + article { border-left: 1px solid var(--line); }
    .rl-split .micro-label { color: var(--cyan); font-size: 11px; }
    .rl-split h3 { margin-top: 18px; font-family: var(--font-display); font-size: 34px; font-weight: 400; }
    .rl-split p { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.4; }

    /* ===========================================
       SLIDE 10 — GRADIENT DESCENT
       =========================================== */
    .gradient-layout { grid-template-columns: 0.74fr 1.26fr; }
    .gradient-copy { padding-right: 58px; border-right: 1px solid var(--line); }
    .gradient-copy > p:nth-child(2) { margin-top: 24px; color: var(--muted); font-size: 22px; line-height: 1.42; }
    .equation-hero { margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--cyan); font-size: 36px; text-align: center; }
    .term-list { margin-top: 22px; }
    .term-list div { display: grid; grid-template-columns: 90px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .term-list dt { color: var(--ink); font-family: var(--font-display); font-size: 24px; }
    .term-list dd { color: var(--muted); font-size: 18px; }
    .caveat { margin-top: 24px; color: var(--faint); font-size: 17px; line-height: 1.4; }
    .gradient-lab { min-width: 0; }
    .lab-head { display: flex; justify-content: space-between; color: var(--cyan); }
    .lab-head .micro-label, .lab-head output { font-family: var(--font-mono); font-size: 13px; }
    .gradient-lab svg { width: 100%; height: 505px; margin-top: 12px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
    .plot-axis { stroke: var(--line-strong); stroke-width: 1; }
    .loss-curve { fill: none; stroke: var(--ink); stroke-width: 3; }
    .gradient-trail { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 5 7; }
    .gradient-dot { fill: var(--slide-bg); stroke: var(--cyan); stroke-width: 3; }
    .gradient-dot.start { fill: var(--cyan); }
    .rate-control { display: grid; grid-template-columns: 140px 1fr 50px 66px; gap: 18px; align-items: center; margin-top: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
    .rate-control input { width: 100%; accent-color: var(--cyan); }

    /* ===========================================
       SLIDE 11 — ONE NEURON TO A DEEP NETWORK
       =========================================== */
    .concept-switch,
    .activation-explorer {
      display: grid;
      gap: 72px;
      margin-top: 46px;
    }

    .concept-switch {
      grid-template-columns: .72fr 1.28fr;
    }

    .concept-intro,
    .activation-guide {
      padding-right: 56px;
      border-right: 1px solid var(--line);
    }

    .concept-intro > p:nth-child(2),
    .activation-guide > p:nth-child(2) {
      margin-top: 24px;
      color: var(--muted);
      font-size: 21px;
      line-height: 1.46;
    }

    .panel-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 34px;
    }

    .panel-tab {
      padding: 13px 17px;
      border: 1px solid var(--line-strong);
      background: rgba(17, 17, 16, .58);
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 13px;
      letter-spacing: .05em;
      cursor: pointer;
      transition: border-color 200ms ease, background 200ms ease, color 200ms ease, transform 200ms ease;
    }

    .panel-tab:hover,
    .panel-tab:focus-visible,
    .panel-tab.active {
      border-color: var(--cyan);
      background: var(--cyan-soft);
      color: var(--ink);
      outline: 0;
      transform: translateY(-2px);
    }

    .reader-prompt {
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 13px;
      line-height: 1.55;
    }

    .concept-stage,
    .activation-stage {
      position: relative;
      min-width: 0;
      height: 650px;
    }

    .concept-panel,
    .activation-panel {
      position: absolute;
      inset: 0;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity 240ms ease, transform 240ms var(--ease), visibility 240ms ease;
    }

    .concept-panel.active,
    .activation-panel.active {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .concept-panel > .micro-label,
    .activation-panel .micro-label {
      color: var(--cyan);
      font-size: 12px;
    }

    .neuron-diagram {
      width: 100%;
      height: 450px;
      margin-top: 16px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .neuron-inputs circle,
    .neuron-sum {
      fill: rgba(17, 17, 16, .9);
      stroke: var(--cyan);
      stroke-width: 2;
    }

    .neuron-inputs text {
      fill: var(--ink);
      font-family: var(--font-display);
      font-size: 24px;
      text-anchor: middle;
    }

    .neuron-lines path {
      fill: none;
      stroke: var(--line-strong);
      stroke-width: 1.5;
    }

    .equation-pair {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-bottom: 1px solid var(--line-strong);
    }

    .equation-pair p { padding: 18px 22px; }
    .equation-pair p + p { border-left: 1px solid var(--line); }
    .equation-pair span, .equation-pair b { display: block; }
    .equation-pair span { color: var(--faint); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
    .equation-pair b { margin-top: 10px; font-size: 27px; font-weight: 400; }

    .network-diagram svg {
      width: 100%;
      height: 500px;
      margin-top: 10px;
      border-top: 1px solid var(--line);
    }

    .network-layer circle { fill: rgba(17,17,16,.9); stroke: var(--line-strong); stroke-width: 1.8; }
    .network-layer.input-layer circle, .network-layer.output-layer circle { stroke: var(--cyan); }
    .network-edges line { stroke: rgba(240,237,232,.12); stroke-width: 1; }

    .network-summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .network-summary p {
      padding: 17px 19px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.4;
    }

    .network-summary p + p { border-left: 1px solid var(--line); }
    .network-summary span { display: block; margin-bottom: 7px; color: var(--cyan); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }

    /* ===========================================
       SLIDE 12 — WHY ACTIVATIONS MATTER
       =========================================== */
    .activation-why-layout {
      display: grid;
      grid-template-columns: .72fr 1.28fr;
      gap: 72px;
      margin-top: 46px;
    }

    .activation-why-copy {
      padding-right: 56px;
      border-right: 1px solid var(--line);
    }

    .activation-why-copy > p:nth-child(2) {
      margin-top: 24px;
      color: var(--muted);
      font-size: 21px;
      line-height: 1.46;
    }

    .collapse-equation {
      margin-top: 30px;
      padding: 22px 0;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .collapse-equation span,
    .collapse-equation b,
    .collapse-equation small {
      display: block;
    }

    .collapse-equation span,
    .collapse-equation small {
      font-family: var(--font-mono);
      font-size: 12px;
    }

    .collapse-equation span { color: var(--cyan); text-transform: uppercase; }
    .collapse-equation b { margin-top: 16px; color: var(--ink); font-size: 27px; font-weight: 400; line-height: 1.3; }
    .collapse-equation small { margin-top: 12px; color: var(--faint); }

    .activation-why-note { margin-top: 30px; }
    .activation-why-note strong { color: var(--ink); font-family: var(--font-display); font-size: 32px; font-weight: 400; }
    .activation-why-note p { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 1.45; }

    .activation-why-compare {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-width: 0;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .activation-why-compare article { min-width: 0; padding: 28px 30px; }
    .activation-why-compare article + article { border-left: 1px solid var(--line); }
    .activation-why-compare .micro-label { color: var(--cyan); font-size: 11px; }
    .activation-why-compare h3 { margin-top: 15px; font-family: var(--font-display); font-size: 42px; font-weight: 400; }
    .activation-why-compare > article > p { color: var(--muted); font-size: 18px; line-height: 1.42; }
    .activation-why-compare svg { width: 100%; height: 330px; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

    .why-pipeline circle,
    .why-pipeline rect {
      fill: rgba(17, 17, 16, .9);
      stroke: var(--line-strong);
      stroke-width: 1.5;
    }

    .why-pipeline .activation-box { fill: var(--cyan-soft); stroke: var(--cyan); }
    .why-pipeline path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
    .why-pipeline text { fill: var(--ink); font-family: var(--font-mono); font-size: 16px; text-anchor: middle; }
    .why-plot > path:first-child { fill: none; stroke: var(--line); stroke-width: 1.5; }
    .why-plot circle { fill: var(--slide-bg); stroke: var(--cyan); stroke-width: 2; }
    .why-plot circle:nth-of-type(-n+3) { fill: var(--ink); stroke: var(--ink); }
    .why-plot .why-boundary { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; }

    /* ===========================================
       SLIDE 13 — ACTIVATION EXPLORER
       =========================================== */
    .activation-explorer {
      grid-template-columns: .76fr 1.24fr;
    }

    .activation-group {
      margin-top: 30px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
    }

    .activation-group .micro-label {
      color: var(--cyan);
      font-size: 11px;
    }

    .activation-group .panel-tabs {
      margin-top: 13px;
    }

    .activation-stage {
      height: 620px;
      border: 1px solid var(--line-strong);
      background: rgba(17, 17, 16, .38);
    }

    .activation-panel {
      padding: 30px 38px;
    }

    .activation-panel header {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px 24px;
      align-items: end;
    }

    .activation-panel header .micro-label {
      grid-column: 1 / -1;
    }

    .activation-panel h3 {
      font-family: var(--font-display);
      font-size: 68px;
      font-weight: 400;
      line-height: .9;
    }

    .activation-panel code {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 15px;
    }

    .function-plot {
      width: 100%;
      height: 330px;
      margin-top: 24px;
      overflow: visible;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .function-plot .plot-grid { fill: none; stroke: var(--line); stroke-width: 1; }
    .function-plot .activation-line { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; }
    .function-plot text { fill: var(--faint); font-family: var(--font-mono); font-size: 16px; }
    .function-plot .probability-bar { fill: var(--cyan); opacity: .9; }
    .function-plot .muted-bar { opacity: .45; }

    .activation-panel > p {
      margin-top: 24px;
      color: var(--muted);
      font-size: 20px;
      line-height: 1.48;
    }

    /* ===========================================
       SLIDE 14 — ARCHITECTURE CATALOGUE
       =========================================== */
    .architecture-catalogue {
      display: grid;
      grid-template-columns: .58fr 1.42fr;
      gap: 58px;
      height: 642px;
      margin-top: 28px;
    }

    .slide.visible .architecture-catalogue.reveal { transform: none; }

    .architecture-guide {
      padding-right: 50px;
      border-right: 1px solid var(--line);
    }

    .architecture-guide > .lead {
      font-size: 30px;
      line-height: 1.12;
    }

    .architecture-guide > p:nth-child(2) {
      margin-top: 17px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.42;
    }

    .architecture-selector {
      margin-top: 21px;
      border-top: 1px solid var(--line-strong);
    }

    .architecture-option {
      display: grid;
      grid-template-columns: 42px 1fr;
      align-items: center;
      width: 100%;
      padding: 11px 14px;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      font-family: var(--font-display);
      font-size: 24px;
      text-align: left;
      cursor: pointer;
      transition: padding-left 200ms ease, color 200ms ease, background 200ms ease, border-color 200ms ease;
    }

    .architecture-option span {
      color: var(--faint);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .08em;
    }

    .architecture-option:hover,
    .architecture-option:focus-visible,
    .architecture-option.active {
      padding-left: 22px;
      border-color: var(--cyan);
      background: linear-gradient(90deg, var(--cyan-soft), transparent 82%);
      color: var(--ink);
      outline: 0;
    }

    .architecture-option.active span { color: var(--cyan); }

    .architecture-stage {
      position: relative;
      min-width: 0;
      height: 642px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .architecture-panel {
      position: absolute;
      inset: 0;
      padding: 25px 28px;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity 240ms ease, transform 240ms var(--ease), visibility 240ms ease;
    }

    .architecture-panel.active {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: none;
    }

    .architecture-panel header .micro-label {
      color: var(--cyan);
      font-size: 11px;
    }

    .architecture-panel h3 {
      margin-top: 9px;
      font-family: var(--font-display);
      font-size: 58px;
      font-weight: 400;
      line-height: .95;
    }

    .architecture-summary {
      max-width: 930px;
      margin-top: 15px;
      color: var(--muted);
      font-size: 19px;
      line-height: 1.4;
    }

    .architecture-visual {
      display: block;
      width: 100%;
      height: 170px;
      margin-top: 18px;
      overflow: visible;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .architecture-visual text {
      fill: var(--ink);
      font-family: var(--font-mono);
      font-size: 12px;
      text-anchor: middle;
    }

    .architecture-visual .architecture-kicker,
    .architecture-visual .architecture-labels text {
      fill: var(--muted);
      font-size: 10px;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .architecture-edges path {
      fill: none;
      stroke: rgba(240, 237, 232, .44);
      stroke-width: 1.2;
    }

    .architecture-nodes circle {
      stroke-width: 2;
    }

    .input-nodes circle { fill: #e982d5; stroke: #f2a4e5; }
    .hidden-nodes circle { fill: #0b9fd6; stroke: #54c7ef; }
    .latent-nodes circle { fill: #ffd51f; stroke: #ffe671; }
    .latent-nodes .vae-orbit { fill: #e982d5; stroke: none; }
    .output-nodes circle { fill: #70c94e; stroke: #a1df87; }

    .architecture-arrow {
      fill: none;
      stroke: var(--cyan);
      stroke-width: 2.5;
      stroke-linecap: round;
    }

    .architecture-arrow::after { content: ""; }

    .architecture-explainer {
      margin-top: 18px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .architecture-explainer > summary {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      min-height: 170px;
      padding: 22px 28px;
      color: var(--ink);
      cursor: pointer;
      list-style: none;
      background: linear-gradient(90deg, rgba(114, 215, 209, .08), transparent 70%);
    }

    .architecture-explainer > summary::-webkit-details-marker { display: none; }

    .explainer-open-label {
      display: grid;
      gap: 10px;
    }

    .explainer-open-label b {
      font-family: var(--font-display);
      font-size: 30px;
      font-weight: 400;
    }

    .explainer-open-label small {
      max-width: 520px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.35;
    }

    .explainer-sequence {
      display: flex;
      align-items: center;
      gap: 9px;
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .explainer-sequence i,
    .explainer-sequence em { font-style: normal; }
    .explainer-sequence em { color: var(--faint); }
    .explainer-close-label { display: none; }

    .architecture-explainer[open] {
      position: fixed;
      z-index: 20;
      inset: 24px;
      display: grid;
      grid-template-rows: 48px 1fr;
      margin: 0;
      padding: 16px;
      border: 1px solid var(--cyan);
      background: rgba(8, 8, 7, .98);
    }

    .architecture-explainer[open] > summary {
      display: flex;
      justify-content: flex-end;
      min-height: 0;
      padding: 0 8px;
      background: transparent;
    }

    .architecture-explainer[open] .explainer-open-label,
    .architecture-explainer[open] .explainer-sequence { display: none; }

    .architecture-explainer[open] .explainer-close-label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .architecture-explainer[open] .explainer-close-label::after {
      content: "×";
      color: var(--ink);
      font-size: 24px;
    }

    .architecture-explainer figure {
      position: relative;
      display: block;
      height: 920px;
      min-height: 0;
      margin: 0;
      overflow: hidden;
    }

    .architecture-explainer img {
      display: block;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      object-fit: contain;
    }

    .architecture-explainer[open] .rnn-lstm-explainer-frame {
      width: min(100%, 1635px);
      margin-right: auto;
      margin-left: auto;
    }

    .rnn-y5-correction {
      position: absolute;
      top: 40.8%;
      left: 66.8%;
      z-index: 1;
      padding: 1px 5px 3px;
      transform: translate(-50%, -50%);
      background: #080807;
      color: var(--ink);
      font-family: var(--font-display);
      font-size: 18px;
      font-style: italic;
      line-height: 1;
    }

    .rnn-visual circle { fill: rgba(17, 17, 16, .86); stroke: var(--cyan); stroke-width: 3; }
    .rnn-visual .rolled-rnn path,
    .rnn-visual .unrolled-rnn path { fill: none; stroke: var(--cyan); stroke-width: 2.4; }
    .rnn-visual .equals-mark { fill: var(--cyan); font-family: var(--font-display); font-size: 42px; }
    .rnn-visual .gate-note rect { fill: var(--cyan-soft); stroke: var(--cyan); }
    .rnn-visual .gate-note text { font-size: 10px; }
    .rnn-visual .gate-note text:first-of-type { font-family: var(--font-display); font-size: 18px; }

    .transformer-visual .attention-arcs path { fill: none; stroke: #e982d5; stroke-width: 2.2; }
    .transformer-visual .attention-arcs path:nth-child(2) { stroke: #ffd51f; }
    .transformer-visual .attention-arcs path:nth-child(3) { stroke: #70c94e; }
    .transformer-visual .attention-arcs path:nth-child(4) { stroke: var(--cyan); }
    .transformer-visual .token-row rect { fill: rgba(17, 17, 16, .86); stroke: var(--line-strong); }
    .transformer-visual .token-row rect:nth-of-type(2),
    .transformer-visual .token-row rect:nth-of-type(3) { stroke: var(--cyan); }

    .gan-visual rect { fill: rgba(17, 17, 16, .86); stroke: var(--line-strong); }
    .gan-visual .generator-box { fill: rgba(233, 130, 213, .12); stroke: #e982d5; }
    .gan-visual .discriminator-box { fill: rgba(114, 215, 209, .10); stroke: var(--cyan); }
    .gan-visual .real-box { fill: rgba(112, 201, 78, .12); stroke: #70c94e; }
    .gan-visual .box-note { fill: var(--muted); font-size: 9px; }
    .gan-visual .feedback-arrow { fill: none; stroke: #ffd51f; stroke-width: 2; stroke-dasharray: 6 5; }

    .diffusion-visual .sample-frame { fill: rgba(17, 17, 16, .72); stroke: var(--line-strong); }
    .diffusion-visual .noise-frame { fill: url(#noise-pattern); }
    .diffusion-visual #noise-pattern circle { fill: var(--muted); }
    .diffusion-visual .rough-form { fill: rgba(114, 215, 209, .18); stroke: rgba(114, 215, 209, .55); }
    .diffusion-visual .rough-sun { fill: rgba(255, 213, 31, .28); }
    .diffusion-visual .clean-form { fill: rgba(114, 215, 209, .48); stroke: var(--cyan); }
    .diffusion-visual .clean-sun { fill: #ffd51f; }

    .architecture-details {
      display: grid;
      grid-template-columns: 1fr 1fr;
      margin-top: 20px;
      border-top: 1px solid var(--line-strong);
      border-left: 1px solid var(--line);
    }

    .architecture-details div {
      min-height: 96px;
      padding: 13px 16px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .architecture-details dt {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .architecture-details dd {
      margin-top: 8px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.34;
    }

    /* ===========================================
       SLIDE 15 — APPENDIX RECAP
       =========================================== */
    .appendix-divider { display: grid; place-items: center; }
    .appendix-divider::after { position: absolute; inset: 74px 84px; content: ""; border: 1px solid var(--line-strong); }
    .appendix-index { position: absolute; top: 100px; right: 112px; z-index: 1; color: var(--cyan); font-family: var(--font-mono); font-size: 14px; }
    .appendix-word { position: relative; z-index: 1; width: 100%; text-align: center; }
    .appendix-word > span { color: var(--cyan); font-family: var(--font-mono); font-size: 14px; letter-spacing: .13em; text-transform: uppercase; }
    .appendix-word h2 { margin-top: 20px; font-family: var(--font-display); font-size: 190px; font-weight: 400; letter-spacing: -.055em; line-height: .85; }
    .appendix-word > p { max-width: 650px; margin: 34px auto 0; color: var(--muted); font-size: 24px; line-height: 1.4; }

    .appendix-recap h2 {
      max-width: 1380px;
      margin-right: auto;
      margin-left: auto;
      font-size: 100px;
      line-height: .92;
    }

    .appendix-recap > p {
      max-width: 980px;
      margin-top: 28px;
      font-size: 22px;
    }

    .appendix-recap ol {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      max-width: 1260px;
      margin: 40px auto 0;
      list-style: none;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .appendix-recap li {
      display: grid;
      gap: 10px;
      padding: 22px 26px;
      text-align: left;
    }

    .appendix-recap li + li { border-left: 1px solid var(--line); }
    .appendix-recap li b { color: var(--cyan); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
    .appendix-recap li span { color: var(--ink); font-family: var(--font-display); font-size: 29px; letter-spacing: normal; text-transform: none; }

    /* ===========================================
       SLIDES 16–17 — BACKPROPAGATION
       =========================================== */
    .prose-derivation-layout {
      display: grid;
      grid-template-columns: .92fr 1.08fr;
      gap: 62px;
      margin-top: 38px;
    }

    .derivation-prose {
      padding-right: 58px;
      border-right: 1px solid var(--line);
    }

    .derivation-prose > .lead {
      font-size: 32px;
      line-height: 1.12;
    }

    .prose-steps,
    .backprop-pass {
      list-style: none;
    }

    .prose-steps {
      margin-top: 22px;
      border-top: 1px solid var(--line-strong);
    }

    .prose-steps li {
      padding: 15px 16px 16px 0;
      border-bottom: 1px solid var(--line);
      transition: padding-left 220ms ease, background 220ms ease, border-color 220ms ease;
    }

    .prose-steps li > span,
    .joined-equations article > span,
    .parameter-result span {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .prose-steps li > p {
      margin-top: 7px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.42;
    }

    .prose-steps li > p b {
      color: var(--ink);
      font-weight: 500;
    }

    .prose-steps li.active,
    .joined-equations article.active {
      border-color: rgba(114, 215, 209, .58);
      background: linear-gradient(90deg, var(--cyan-soft), transparent 78%);
    }

    .prose-steps li.active {
      padding-left: 18px;
    }

    .derivation-explorer > .micro-label {
      color: var(--cyan);
      font-size: 11px;
    }

    .dependency-path {
      display: grid;
      grid-template-columns: 1fr auto 1fr auto .72fr;
      align-items: stretch;
      gap: 11px;
      margin-top: 14px;
    }

    .derivation-node {
      min-width: 0;
      padding: 15px 14px;
      border: 1px solid var(--line-strong);
      background: rgba(17, 17, 16, .58);
      color: var(--muted);
      text-align: left;
      cursor: pointer;
      transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
    }

    .derivation-node:hover,
    .derivation-node:focus-visible,
    .derivation-node.active {
      border-color: var(--cyan);
      background: var(--cyan-soft);
      color: var(--ink);
      outline: 0;
      transform: translateY(-2px);
    }

    .derivation-node span,
    .derivation-node b {
      display: block;
    }

    .derivation-node span {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .derivation-node b {
      margin-top: 8px;
      color: var(--ink);
      font-size: 25px;
      font-weight: 400;
    }

    .path-arrow {
      display: grid;
      place-items: center;
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 12px;
    }

    .signal-node {
      grid-column: 1 / -1;
      margin-top: 2px;
      text-align: center;
    }

    .joined-equations {
      display: grid;
      grid-template-columns: 1fr 1fr;
      margin-top: 15px;
      border-top: 1px solid var(--line-strong);
      border-left: 1px solid var(--line);
    }

    .joined-equations article {
      min-height: 104px;
      padding: 13px 15px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      transition: background 220ms ease, border-color 220ms ease;
    }

    .joined-equations article > b,
    .joined-equations article > p {
      display: block;
      margin-top: 8px;
    }

    .joined-equations article > span {
      display: block;
    }

    .joined-equations article > b {
      font-size: 21px;
      font-weight: 400;
      line-height: 1.28;
    }

    .joined-equations article > p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.35;
    }

    .parameter-result {
      display: grid;
      grid-template-columns: 1fr 1fr;
      margin-top: 14px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
    }

    .parameter-result p {
      padding: 12px 15px;
    }

    .parameter-result p + p {
      border-left: 1px solid var(--line);
    }

    .parameter-result span,
    .parameter-result b {
      display: block;
    }

    .parameter-result b {
      margin-top: 8px;
      font-size: 20px;
      font-weight: 400;
    }

    .symbol-strip {
      margin-top: 13px;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 12px;
      line-height: 1.55;
    }

    .symbol-strip b {
      color: var(--ink);
      font-weight: 500;
    }

    .symbol-strip i {
      padding: 0 7px;
      color: var(--cyan);
      font-style: normal;
    }

    .recursive-reading {
      grid-template-columns: .96fr 1.04fr;
    }

    .hidden-path {
      grid-template-columns: 1fr auto 1.12fr auto 1fr auto .72fr;
    }

    .hidden-path .derivation-node {
      padding: 12px 13px;
    }

    .hidden-path .derivation-node b {
      font-size: 21px;
    }

    .hidden-equation {
      margin-top: 14px;
      padding: 15px 18px;
      border: 1px solid rgba(114, 215, 209, .55);
      background: var(--cyan-soft);
    }

    .hidden-equation b {
      display: block;
      font-size: 26px;
      font-weight: 400;
    }

    .hidden-equation p {
      margin-top: 7px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.35;
    }

    .compact-reference article {
      min-height: 94px;
    }

    .compact-reference article:last-child {
      grid-column: 1 / -1;
    }

    .compact-reference article:last-child b {
      display: inline-block;
      margin-right: 28px;
    }

    .backprop-pass {
      display: grid;
      grid-template-columns: 1fr 1fr;
      margin-top: 14px;
      border-top: 1px solid var(--line);
    }

    .backprop-pass li {
      display: grid;
      grid-template-columns: 26px 1fr;
      gap: 8px;
      padding: 9px 0;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
    }

    .backprop-pass li:nth-child(even) {
      padding-left: 15px;
      border-left: 1px solid var(--line);
    }

    .backprop-pass li span {
      color: var(--cyan);
      font-family: var(--font-mono);
    }

    /* ===========================================
       SLIDE 18 — BACKPROPAGATION THROUGH TIME
       =========================================== */
    .bptt-layout {
      display: grid;
      grid-template-columns: .78fr 1.22fr;
      gap: 58px;
      height: 642px;
      margin-top: 28px;
    }

    .bptt-prose {
      padding-right: 50px;
      border-right: 1px solid var(--line);
    }

    .bptt-prose > .lead {
      font-size: 29px;
      line-height: 1.12;
    }

    .bptt-prose-steps {
      margin-top: 18px;
    }

    .bptt-prose-steps li {
      padding-top: 12px;
      padding-bottom: 12px;
    }

    .bptt-prose-steps li > p {
      font-size: 15px;
      line-height: 1.36;
    }

    .bptt-note {
      margin-top: 16px;
      padding: 14px 17px;
      border-left: 2px solid var(--cyan);
      background: var(--cyan-soft);
    }

    .bptt-note strong {
      color: var(--ink);
      font-family: var(--font-display);
      font-size: 23px;
      font-weight: 400;
    }

    .bptt-note p {
      margin-top: 5px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.35;
    }

    .bptt-explorer > .micro-label {
      color: var(--cyan);
      font-size: 11px;
    }

    .bptt-timeline {
      width: 100%;
      height: 292px;
      margin-top: 8px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .time-step circle,
    .time-step rect {
      fill: rgba(17, 17, 16, .86);
      stroke: var(--line-strong);
      stroke-width: 1.5;
    }

    .time-step rect { stroke: var(--cyan); }

    .time-step path,
    .time-links path {
      fill: none;
      stroke: var(--line-strong);
      stroke-width: 1.5;
    }

    .time-step text {
      fill: var(--ink);
      font-family: var(--font-display);
      font-size: 23px;
      text-anchor: middle;
    }

    .time-links path {
      stroke: var(--cyan);
      stroke-width: 2;
    }

    .shared-weight-label,
    .backward-label {
      fill: var(--cyan);
      font-family: var(--font-mono);
      font-size: 11px;
      text-anchor: middle;
      text-transform: uppercase;
    }

    .backward-time {
      fill: none;
      stroke: rgba(114, 215, 209, .7);
      stroke-width: 2;
      stroke-dasharray: 7 7;
    }

    .bptt-equations {
      display: grid;
      grid-template-columns: 1.55fr .72fr 1.23fr;
      border-bottom: 1px solid var(--line-strong);
    }

    .bptt-equations p {
      min-width: 0;
      padding: 12px 14px;
    }

    .bptt-equations p + p { border-left: 1px solid var(--line); }
    .bptt-equations span,
    .bptt-equations b { display: block; }
    .bptt-equations span { color: var(--cyan); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
    .bptt-equations b { margin-top: 7px; font-size: 16px; font-weight: 400; line-height: 1.3; }

    .bptt-step-buttons {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-top: 14px;
    }

    .bptt-node {
      padding: 11px 12px;
      text-align: center;
    }

    .bptt-node b {
      margin-top: 5px;
      font-size: 17px;
    }

    /* ===========================================
       OUTSIDE-STAGE CONTROLS
       =========================================== */
    .deck-controls {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 5px;
      border: 1px solid rgba(240, 237, 232, 0.25);
      background: rgba(10, 10, 9, 0.92);
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(10px);
    }

    .control-button,
    .notes-toggle,
    .edit-toggle,
    .drawer-close {
      display: grid;
      place-items: center;
      min-width: 38px;
      height: 38px;
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
    }

    .control-button:hover,
    .control-button:focus-visible,
    .notes-toggle:hover,
    .notes-toggle:focus-visible,
    .edit-toggle:hover,
    .edit-toggle:focus-visible,
    .drawer-close:hover,
    .drawer-close:focus-visible {
      color: var(--ink);
      outline: 1px solid var(--cyan);
      outline-offset: -1px;
    }

    .slide-count {
      min-width: 78px;
      padding: 0 10px;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 12px;
      text-align: center;
    }

    .notes-toggle {
      width: auto;
      padding: 0 13px;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .edit-hotzone {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 10000;
      width: 80px;
      height: 80px;
      cursor: pointer;
    }

    .edit-toggle {
      position: fixed;
      top: 16px;
      left: 16px;
      z-index: 10001;
      width: 42px;
      border: 1px solid rgba(240, 237, 232, 0.25);
      background: rgba(10, 10, 9, 0.94);
      opacity: 0;
      pointer-events: none;
      transition: opacity 300ms ease;
    }

    .edit-toggle.show,
    .edit-toggle.active {
      opacity: 1;
      pointer-events: auto;
    }

    .edit-status {
      position: fixed;
      top: 17px;
      left: 70px;
      z-index: 10001;
      padding: 12px 15px;
      border: 1px solid rgba(114, 215, 209, 0.42);
      background: rgba(10, 10, 9, 0.94);
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0;
      pointer-events: none;
      transition: opacity 200ms ease;
    }

    .edit-status.show {
      opacity: 1;
    }

    /* ===========================================
       NOTES AND SOURCES DRAWER
       =========================================== */
    .drawer-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1900;
      background: rgba(0, 0, 0, 0.52);
      opacity: 0;
      pointer-events: none;
      transition: opacity 240ms ease;
    }

    .drawer-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    .notes-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 2000;
      width: min(520px, 92vw);
      padding: 30px 34px 44px;
      border-left: 1px solid var(--line-strong);
      background: #0d0d0c;
      transform: translateX(100%);
      transition: transform 320ms var(--ease);
      overflow-y: auto;
    }

    .notes-drawer.open {
      transform: translateX(0);
    }

    .drawer-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--line);
    }

    .drawer-head h2 {
      font-family: var(--font-display);
      font-size: 38px;
      font-weight: 400;
    }

    .drawer-section {
      margin-top: 34px;
    }

    .drawer-section h3 {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .drawer-section p,
    .drawer-section li {
      margin-top: 14px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.55;
    }

    .drawer-section ul {
      padding-left: 19px;
    }

    .drawer-section a {
      color: var(--ink);
      text-decoration-color: var(--faint);
      text-underline-offset: 3px;
    }

    .drawer-section a:hover,
    .drawer-section a:focus-visible {
      color: var(--cyan);
    }

    /* ===========================================
       ACCESSIBILITY AND PRINT OVERRIDES
       =========================================== */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media print {
      .drawer-backdrop,
      .notes-drawer,
      .edit-hotzone,
      .edit-toggle,
      .edit-status {
        display: none !important;
      }

      .reveal {
        opacity: 1 !important;
        transform: none !important;
      }
    }
