Skip to content

Herk Edit Kit by Nate Herk: edit videos, reels, and YouTube Shorts with Codex or Claude Code. 15 skills, transcript-driven cuts, storytelling, 406 motion-graphics cards, and HyperFrames templates.

7.0 KB
Raw Blame
<!--
  Section 06 — Outro callback — full golden-spiral reveal + 3-row recap
  Local 0-2.73 · Master 34.94-37.67
  Anchors (local): 0.00 whip lands · 0.20 spiral hero reveal · 0.60-1.40 recap rows stagger
-->

<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>

<div
  id="s06-root"
  data-composition-id="s06-outro"
  data-start="0"
  data-duration="2.73"
  data-width="1920"
  data-height="1080"
  style="position: absolute; inset: 0;"
>
  <style>
    [data-composition-id="s06-outro"] .hero-spiral {
      position: absolute;
      left: 60px;
      top: 80px;
      width: 580px;
      height: 920px;
      opacity: 0;
      filter: drop-shadow(0 0 40px rgba(55, 189, 248, 0.4));
    }
    [data-composition-id="s06-outro"] .hero-spiral svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    [data-composition-id="s06-outro"] .hero-spiral .frame {
      fill: none;
      stroke: rgba(255, 255, 255, 0.55);
      stroke-width: 1.5;
    }
    [data-composition-id="s06-outro"] .hero-spiral .divider {
      fill: none;
      stroke: rgba(255, 255, 255, 0.35);
      stroke-width: 1.1;
    }
    [data-composition-id="s06-outro"] .hero-spiral .cell-60 {
      fill: rgba(55, 189, 248, 0.55);
      filter: drop-shadow(0 0 22px rgba(55, 189, 248, 0.55));
    }
    [data-composition-id="s06-outro"] .hero-spiral .cell-30 {
      fill: rgba(91, 164, 192, 0.55);
      filter: drop-shadow(0 0 20px rgba(91, 164, 192, 0.45));
    }
    [data-composition-id="s06-outro"] .hero-spiral .cell-10 {
      fill: rgba(240, 144, 37, 0.7);
      filter: drop-shadow(0 0 24px rgba(240, 144, 37, 0.65));
    }
    [data-composition-id="s06-outro"] .hero-spiral .arc {
      fill: none;
      stroke: #ffffff;
      stroke-width: 2.2;
      stroke-linecap: round;
      filter: drop-shadow(0 0 8px rgba(55, 189, 248, 0.85));
    }

    /* Recap list — left-aligned under the spiral's right edge */
    [data-composition-id="s06-outro"] .recap {
      position: absolute;
      left: 60px;
      top: 210px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      z-index: 2;
    }
    [data-composition-id="s06-outro"] .recap .row {
      display: flex;
      align-items: baseline;
      gap: 20px;
      opacity: 0;
      transform: translateX(-30px);
      padding: 14px 22px;
      background: rgba(7, 18, 28, 0.72);
      border-left: 4px solid #37bdf8;
      border-radius: 6px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    [data-composition-id="s06-outro"] .recap .row.r-30 { border-left-color: #5ba4c0; }
    [data-composition-id="s06-outro"] .recap .row.r-10 { border-left-color: #f09025; }
    [data-composition-id="s06-outro"] .recap .num {
      font-family: "Montserrat", sans-serif;
      font-weight: 900;
      font-size: 60px;
      line-height: 1;
      color: #ffffff;
      min-width: 130px;
    }
    [data-composition-id="s06-outro"] .recap .row.r-60 .num { color: #37bdf8; text-shadow: 0 0 16px rgba(55,189,248,0.6); }
    [data-composition-id="s06-outro"] .recap .row.r-30 .num { color: #5ba4c0; text-shadow: 0 0 14px rgba(91,164,192,0.55); }
    [data-composition-id="s06-outro"] .recap .row.r-10 .num { color: #f09025; text-shadow: 0 0 16px rgba(240,144,37,0.6); }
    [data-composition-id="s06-outro"] .recap .body .name {
      font-family: "Roboto Mono", monospace;
      font-weight: 700;
      font-size: 22px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #ffffff;
    }
    [data-composition-id="s06-outro"] .recap .body .sub {
      font-family: "Montserrat", sans-serif;
      font-weight: 500;
      font-size: 16px;
      color: rgba(255, 255, 255, 0.7);
      margin-top: 4px;
      letter-spacing: 0.04em;
    }

    /* Tiny eyebrow */
    [data-composition-id="s06-outro"] .eyebrow {
      position: absolute;
      left: 60px;
      top: 140px;
      font-family: "Roboto Mono", monospace;
      font-size: 18px;
      font-weight: 500;
      letter-spacing: 0.32em;
      color: #37bdf8;
      text-transform: uppercase;
      opacity: 0;
    }
  </style>

  <!-- Hero golden-ratio rectangle + spiral, all cells lit -->
  <div class="hero-spiral">
    <svg viewBox="0 0 580 920" preserveAspectRatio="none">
      <!-- 60% cell (largest — top square) -->
      <rect class="cell-60" x="1" y="1" width="578" height="578"/>
      <!-- 30% cell (medium — bottom-left) -->
      <rect class="cell-30" x="1" y="580" width="338" height="339"/>
      <!-- 10% cell (smallest — bottom-right) — gets the orange -->
      <rect class="cell-10" x="340" y="580" width="239" height="339"/>

      <!-- Frame -->
      <rect class="frame" x="0.5" y="0.5" width="579" height="919"/>
      <line class="divider" x1="0" y1="580" x2="580" y2="580"/>
      <line class="divider" x1="340" y1="580" x2="340" y2="920"/>

      <!-- Spiral arcs on top -->
      <path class="arc" d="M 580 0 A 580 580 0 0 0 0 580"/>
      <path class="arc" d="M 0 580 A 340 340 0 0 0 340 920"/>
      <path class="arc" d="M 340 920 A 240 240 0 0 0 580 680"/>
    </svg>
  </div>

  <div class="eyebrow">The Golden Ratio</div>

  <div class="recap">
    <div class="row r-60">
      <div class="num">60%</div>
      <div class="body">
        <div class="name">DETERMINISTIC</div>
        <div class="sub">Plain logic · code · API calls</div>
      </div>
    </div>
    <div class="row r-30">
      <div class="num">30%</div>
      <div class="body">
        <div class="name">AI ASSISTED</div>
        <div class="sub">LLM calls in the pipeline</div>
      </div>
    </div>
    <div class="row r-10">
      <div class="num">10%</div>
      <div class="body">
        <div class="name">HUMAN</div>
        <div class="sub">Manual approval · judgment</div>
      </div>
    </div>
  </div>

  <script>
    (function () {
      window.__timelines = window.__timelines || {};
      const tl = gsap.timeline({ paused: true });

      // Hero spiral reveals. Entry aligned to the whip landing.
      tl.fromTo(".hero-spiral",
        { opacity: 0, scale: 0.94 },
        { opacity: 1, scale: 1, duration: 0.65, ease: "power3.out" },
        0.18
      );

      // Eyebrow fades in.
      tl.to(".eyebrow", { opacity: 1, duration: 0.45, ease: "power2.out" }, 0.40);

      // Note: the .recap is positioned absolutely over the spiral — because the spiral's
      // 60% cell (top 0..580) is solid cyan, the recap row cards provide the dark
      // contrast plate so text reads cleanly against the cell fill.

      // Three recap rows stagger in — cyan · cyan-dim · orange.
      tl.to(".recap .row.r-60", {
        opacity: 1, x: 0, duration: 0.40, ease: "power3.out",
      }, 0.68);
      tl.to(".recap .row.r-30", {
        opacity: 1, x: 0, duration: 0.40, ease: "power3.out",
      }, 0.90);
      tl.to(".recap .row.r-10", {
        opacity: 1, x: 0, duration: 0.45, ease: "back.out(1.4)",
      }, 1.14);

      // Hold through final words. Anchor to slot duration.
      tl.to({}, { duration: 2.73 }, 0);
      window.__timelines["s06-outro"] = tl;
    })();
  </script>
</div>