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.

13.0 KB
Raw Blame
<!doctype html>
<!--
  KALLAWAY · tier1 · overview · CYCLE
  Full-screen takeover. A circular cycle diagram: 4 glass stage nodes positioned
  around a ring (N / E / S / W), joined by clean curved SVG arc connectors with
  chevron flow markers that draw in. Title glides first; ring draws in; then nodes
  spring on one by one; connectors draw between them; labels fade in.
  Slots: title, s1_label, s1_body, s2_label, s2_body, s3_label, s3_body, s4_label, s4_body.
-->
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../tokens.css" />
    <style>
      html, body { margin: 0; }

      #t1-ov-cycle {
        position: absolute; inset: 0; width: 1920px; height: 1080px;
        background: var(--canvas); color: var(--text);
        font-family: var(--font-display); overflow: hidden;
      }

      #t1-ov-cycle .bloom {
        position: absolute; inset: 0; background: var(--bloom-bottom); z-index: 1;
      }
      #t1-ov-cycle .grid {
        position: absolute; inset: 0; z-index: 1;
        background-image: var(--dot); background-size: var(--dot-size); opacity: 0.45;
        -webkit-mask-image: radial-gradient(120% 100% at 50% 55%, #000 28%, transparent 80%);
                mask-image: radial-gradient(120% 100% at 50% 55%, #000 28%, transparent 80%);
      }

      /* Title */
      #t1-ov-cycle .title-row {
        position: absolute; left: 0; right: 0; top: 60px; text-align: center; z-index: 5;
      }
      #t1-ov-cycle .title {
        font-family: var(--font-display); font-weight: var(--wt-bold);
        font-size: var(--size-title); letter-spacing: var(--track-snug); line-height: 1.06;
        color: var(--white); text-shadow: var(--textglow);
        max-width: 1400px; margin: 0 auto;
      }
      #t1-ov-cycle .title em {
        font-style: normal; color: var(--accent); text-shadow: var(--textglow-accent);
      }

      /* SVG layer — full canvas, holds ring + connectors + chevrons */
      #t1-ov-cycle .diagram-svg {
        position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 3;
        pointer-events: none; overflow: visible;
      }

      /* Ring track (dashed background guide) */
      .ring-track {
        fill: none;
        stroke: rgba(var(--accent-rgb), 0.14);
        stroke-width: 1.5;
        stroke-dasharray: 4 8;
      }
      /* Connector arc segments — draw via stroke-dashoffset */
      .cycle-arc {
        fill: none;
        stroke: rgba(var(--accent-rgb), 0.55);
        stroke-width: 2;
        stroke-linecap: round;
      }
      /* Chevron arrows on connector midpoints */
      .cycle-chev {
        fill: none;
        stroke: rgba(var(--accent-rgb), 0.85);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      /* Glass stage nodes — absolutely positioned over the SVG */
      #t1-ov-cycle .node-wrap {
        position: absolute; z-index: 5;
        transform: translate(-50%, -50%);
      }
      #t1-ov-cycle .node {
        background: var(--glass-bg-dark);
        border: var(--stroke) solid rgba(var(--accent-rgb), 0.35);
        border-radius: var(--radius);
        box-shadow: var(--glass-shadow), 0 0 40px rgba(var(--accent-rgb), 0.12);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        padding: 28px 32px 26px;
        min-width: 230px; text-align: center;
        position: relative; overflow: hidden;
      }
      #t1-ov-cycle .node::before {
        content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-hi) 30%, var(--glass-hi) 70%, transparent);
      }
      /* Number badge inside node */
      #t1-ov-cycle .node-num {
        font-family: var(--font-mono); font-weight: var(--wt-bold);
        font-size: 18px; color: var(--accent);
        text-shadow: var(--textglow-accent);
        letter-spacing: 0.12em; margin-bottom: 10px;
      }
      #t1-ov-cycle .node-label {
        font-family: var(--font-display); font-weight: var(--wt-bold);
        font-size: 34px; letter-spacing: var(--track-snug); line-height: 1.15;
        color: var(--white); text-shadow: var(--textglow);
        margin-bottom: 10px;
      }
      #t1-ov-cycle .node-body {
        font-family: var(--font-body); font-weight: var(--wt-reg);
        font-size: 22px; line-height: 1.5;
        color: var(--text-dim);
      }

      /* Center hub dot */
      #t1-ov-cycle .hub {
        position: absolute; left: 960px; top: 590px;
        transform: translate(-50%, -50%);
        width: 44px; height: 44px; border-radius: 50%;
        background: rgba(var(--accent-rgb), 0.12);
        border: 1.5px solid rgba(var(--accent-rgb), 0.55);
        box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.40);
        z-index: 4;
      }

      #t1-ov-cycle .vignette {
        position: absolute; inset: 0; pointer-events: none; z-index: 6;
        background: var(--vignette);
      }
      #t1-ov-cycle .grain {
        position: absolute; inset: -40px; background: var(--tex-grain);
        background-size: 200px 200px; mix-blend-mode: overlay; opacity: 0.10;
        pointer-events: none; z-index: 7;
      }
    </style>
  </head>
  <body>
    <!--
      Diagram geometry (all values in SVG/px at 1920×1080):
      Center:    cx=960, cy=590
      Ring R:    310  (radius from center to node center)
      Node positions (angle 0=top, clockwise):
        N  (top):    960, 280   — angle 270°
        E  (right):  1270, 590  — angle 0°
        S  (bottom): 960, 900   — angle 90°
        W  (left):   650, 590   — angle 180°
    -->
    <div id="t1-ov-cycle" data-composition-id="t1-ov-cycle" data-start="0" data-width="1920" data-height="1080">
      <div class="bloom"></div>
      <div class="grid"></div>

      <div class="title-row">
        <div class="title" data-slot="title">The <em>Four-Stage</em> Cycle</div>
      </div>

      <!-- SVG: ring track + arcs + chevrons -->
      <svg class="diagram-svg" viewBox="0 0 1920 1080" xmlns="http://www.w3.org/2000/svg">
        <defs>
          <filter id="cy-glow" x="-40%" y="-40%" width="180%" height="180%">
            <feGaussianBlur stdDeviation="3" result="b"/>
            <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
          </filter>
        </defs>

        <!-- Dashed guide ring -->
        <circle class="ring-track" id="cy-ring" cx="960" cy="590" r="310"/>

        <!--
          Four arc connectors (clockwise from top, each covers ~80° of the 310-r circle
          leaving ~10° gap on each side of the node).
          Arc path: large-arc=0, sweep=1 (clockwise).
          Circumference of r=310: 2π·310 ≈ 1947.8. Each arc ~80°/360° → ~431.5.
          We set stroke-dasharray=432 and animate dashoffset 432→0.
        -->
        <!-- Arc N→E  (from ~350° to ~80°) -->
        <path class="cycle-arc" id="cy-arc-ne" filter="url(#cy-glow)"
          d="M 1018 301 A 310 310 0 0 1 1249 649"
          stroke-dasharray="432" stroke-dashoffset="432"/>
        <!-- Chevron on arc N→E midpoint (~45°, r=310 from center 960,590):
             midX = 960 + 310*cos(45°) = 960+219=1179,  midY = 590 - 310*sin(45°) = 590-219=371 -->
        <polyline class="cycle-chev" id="cy-chev-ne" filter="url(#cy-glow)"
          points="1165,380 1179,367 1193,380" opacity="0"/>

        <!-- Arc E→S  (~80° to ~170°) -->
        <path class="cycle-arc" id="cy-arc-es" filter="url(#cy-glow)"
          d="M 1249 649 A 310 310 0 0 1 902 895"
          stroke-dasharray="432" stroke-dashoffset="432"/>
        <!-- Chevron midpoint ~125° -->
        <polyline class="cycle-chev" id="cy-chev-es" filter="url(#cy-glow)"
          points="1140,817 1127,831 1114,817" opacity="0"/>

        <!-- Arc S→W  (~170° to ~260°) -->
        <path class="cycle-arc" id="cy-arc-sw" filter="url(#cy-glow)"
          d="M 902 895 A 310 310 0 0 1 671 531"
          stroke-dasharray="432" stroke-dashoffset="432"/>
        <!-- Chevron midpoint ~215° -->
        <polyline class="cycle-chev" id="cy-chev-sw" filter="url(#cy-glow)"
          points="752,776 738,763 752,749" opacity="0"/>

        <!-- Arc W→N  (~260° to ~350°) -->
        <path class="cycle-arc" id="cy-arc-wn" filter="url(#cy-glow)"
          d="M 671 531 A 310 310 0 0 1 1018 301"
          stroke-dasharray="432" stroke-dashoffset="432"/>
        <!-- Chevron midpoint ~305° -->
        <polyline class="cycle-chev" id="cy-chev-wn" filter="url(#cy-glow)"
          points="780,363 793,349 806,363" opacity="0"/>
      </svg>

      <!-- Center hub -->
      <div class="hub"></div>

      <!-- Node N — top, 960,280 -->
      <div class="node-wrap" style="left:960px;top:280px;" id="cy-n1">
        <div class="node">
          <div class="node-num">01</div>
          <div class="node-label" data-slot="s1_label">Discover</div>
          <div class="node-body" data-slot="s1_body">Map the landscape and surface real user pain.</div>
        </div>
      </div>

      <!-- Node E — right, 1270,590 -->
      <div class="node-wrap" style="left:1270px;top:590px;" id="cy-n2">
        <div class="node">
          <div class="node-num">02</div>
          <div class="node-label" data-slot="s2_label">Design</div>
          <div class="node-body" data-slot="s2_body">Shape solutions before a single pixel is built.</div>
        </div>
      </div>

      <!-- Node S — bottom, 960,900 -->
      <div class="node-wrap" style="left:960px;top:900px;" id="cy-n3">
        <div class="node">
          <div class="node-num">03</div>
          <div class="node-label" data-slot="s3_label">Deliver</div>
          <div class="node-body" data-slot="s3_body">Ship, measure, and iterate quickly.</div>
        </div>
      </div>

      <!-- Node W — left, 650,590 -->
      <div class="node-wrap" style="left:650px;top:590px;" id="cy-n4">
        <div class="node">
          <div class="node-num">04</div>
          <div class="node-label" data-slot="s4_label">Learn</div>
          <div class="node-body" data-slot="s4_body">Feed real data back to the next discovery loop.</div>
        </div>
      </div>

      <div class="vignette"></div>
      <div class="grain"></div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      window.__timelines = window.__timelines || {};
      const tl = gsap.timeline({ paused: true });

      /* grain flicker — finite */
      tl.fromTo("#t1-ov-cycle .grain",
        { backgroundPosition: "0px 0px" },
        { backgroundPosition: "95px 65px", duration: 0.6, ease: "none", repeat: 11, yoyo: true }, 0);

      /* environment */
      tl.from("#t1-ov-cycle .bloom", { autoAlpha: 0, scale: 0.91, transformOrigin: "50% 120%", duration: 1.4, ease: "expo.out" }, 0)
        .from("#t1-ov-cycle .grid",  { autoAlpha: 0, duration: 1.2, ease: "power2.out" }, 0.2)

        /* title */
        .from("#t1-ov-cycle .title", { autoAlpha: 0, y: 28, filter: "blur(14px)", duration: 1.0, ease: "power4.out" }, 0.5)

        /* ring track fades in */
        .from("#cy-ring", { autoAlpha: 0, duration: 0.8, ease: "power2.out" }, 0.9)

        /* hub glows on */
        .from("#t1-ov-cycle .hub", { autoAlpha: 0, scale: 0, transformOrigin: "50% 50%",
          duration: 0.5, ease: "back.out(2)" }, 1.1)

        /* nodes spring on — staggered N/E/S/W */
        .from("#cy-n1", { autoAlpha: 0, scale: 0.85, transformOrigin: "50% 50%",
          filter: "blur(12px)", duration: 0.80, ease: "back.out(1.4)" }, 1.3)
        .from("#cy-n2", { autoAlpha: 0, scale: 0.85, transformOrigin: "50% 50%",
          filter: "blur(12px)", duration: 0.80, ease: "back.out(1.4)" }, 1.55)
        .from("#cy-n3", { autoAlpha: 0, scale: 0.85, transformOrigin: "50% 50%",
          filter: "blur(12px)", duration: 0.80, ease: "back.out(1.4)" }, 1.80)
        .from("#cy-n4", { autoAlpha: 0, scale: 0.85, transformOrigin: "50% 50%",
          filter: "blur(12px)", duration: 0.80, ease: "back.out(1.4)" }, 2.05)

        /* arcs draw in clockwise — dashoffset 432 → 0 */
        .to("#cy-arc-ne", { strokeDashoffset: 0, duration: 0.5, ease: "power2.out" }, 1.9)
        .to("#cy-chev-ne", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 2.35)

        .to("#cy-arc-es", { strokeDashoffset: 0, duration: 0.5, ease: "power2.out" }, 2.4)
        .to("#cy-chev-es", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 2.85)

        .to("#cy-arc-sw", { strokeDashoffset: 0, duration: 0.5, ease: "power2.out" }, 2.9)
        .to("#cy-chev-sw", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 3.35)

        .to("#cy-arc-wn", { strokeDashoffset: 0, duration: 0.5, ease: "power2.out" }, 3.4)
        .to("#cy-chev-wn", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 3.85)

        /* breathing glow on hub — finite */
        .to("#t1-ov-cycle .hub", {
          boxShadow: "0 0 48px rgba(55,189,248,0.65)",
          duration: 1.3, ease: "sine.inOut", repeat: 2, yoyo: true }, 4.1)

        /* slow scale drift on ring during hold */
        .to("#cy-ring", { scale: 1.025, transformOrigin: "960px 590px", duration: 4.0, ease: "sine.inOut" }, 3.0)

        .set({}, {}, 7);

      window.__timelines["t1-ov-cycle"] = tl;
    </script>
  </body>
</html>