Logo sting
ConfirmedThe pacing bars in motion, as a storyboard, a written grammar, and preview files.
Primary render. Select it to open full size.
Every render from the champion round
How to use it, from the piece README
The rules every Marathon video moves by, and the logo sting built on the pacing bars. It ships rendered masters ready for DaVinci Resolve, plus the spec and layer pack to rebuild or change it.
Open these first
| File | What it is |
|---|---|
renders/masters/ | Six ProRes 4444 masters with alpha, marathon-sting-16x9-24p.mov to marathon-sting-9x16-60p.mov. UHD, 2.0s, 48, 60, or 120 frames. Start here. |
renders/seq/ | The same six as alpha PNG sequences. File number is frame number. |
renders/preview-16x9.mp4, renders/preview-9x16.mp4 | HD, 30fps, flattened on navy. For review and approval only, no alpha. |
renders/masters/ffprobe.txt | Proof of codec, alpha, frame count, and the resolve frame for every master. |
renders/photo-*.png | The outro handoff over a tight interior, a wide aerial, a portrait original, and a red boundary aerial. |
renders/spec.pdf | The nine page spec. Print it or keep it open next to Resolve. Page 1 and page 5 storyboards run each frame at full width, cropped top and bottom to the lockup band, so bar travel reads at true scale against the frame edge. |
Page 6 of renders/spec.pdf | The 9:16 safe areas at full size, with the platform UI bands, reel safe box, grid crop, and lockup in pixels at 1080 x 1920 and 2160 x 3840. |
renders/contact-16x9.png | The sting at 16:9, one frame per beat, with the keyframe timeline. |
layers/uhd-16x9/, layers/uhd-9x16/ | The layer pack. Ten PNGs each, full frame, alpha, already in rest position. |
frames/ | Style frames: every beat at 16:9, five beats at 9:16, safe area guides, the outro from footage, and the never list. |
The sting in one paragraph
Five pacing bars travel in from off frame left, bottom bar first, one beat apart. MARATHON rises out of its baseline as the top bar lands. CREATIVE follows one beat later. Resolved in 1.5s, on screen at least 2.0s. Nothing scales, spins, glows, or bounces. One beat is 4 frames at 24fps, 5 at 30, and 10 at 60, and every key lands on a beat.
Use the master in Resolve
Page 8 of the spec. Short version:
- Timeline at UHD, at the job's frame rate. Pick the master with the same rate, never let Resolve retime it.
- Drag the
.movinto the Media Pool. Clip Attributes, Video, Alpha Mode Straight. - V1 is a Solid Color generator in Marathon Navy, hex 102228. The master goes on V2 at Zoom 1.0.
- Frame 0 is empty. The sting resolves on f36 at 24, f45 at 30, and f90 at 60. Nothing moves after that.
Rebuild it in Resolve from layers
Page 9 of the spec walks through it step by step. Short version:
- Timeline at UHD, 16:9 or 9:16, at the job's frame rate.
- V1 is a Solid Color generator in Marathon Navy, hex 102228.
- Bars
01to05on V2 to V6. Key Position X only, from the start value on page 2 to 0. 06-nameand07-descriptorgo through Fusion with their matte PNGs as a fixed mask. Key Center Y only.- Set the handles from page 4 and check three frames against the frame table there.
- Check the last frame against
10-allin Difference mode with V1 off. It must go black.
Change something
Durations and curves live in the token layer, build/tokens/v/best/tokens.json. Change them there, rebuild tokens, then run bash build.sh, bash layers.sh <scratch dir>, and bash master.sh <scratch dir>, then bash verify.sh, and re-render the spec. Every table in the spec is generated from the tokens, so nothing is retyped.
Want to see any frame? Open sting.html?b=6 in Chrome at 1920 x 1080, where b is the beat. &guides=1 adds safe areas. &scene=outro shows the handoff from footage.
Rules that do not bend
- The logo files are the shipped SVGs. The sting only moves and masks them. Never redraw, recolour, stretch, or crop the mark, and never animate single letters.
- The sting plays on navy only. Over footage, the navy plate comes in first.
- Bars come from the left, never the right, and never cross the name.
- Marathon Red bars stay Marathon Red. Red Bright is not substituted on navy here because the logo file is fixed.
- Montserrat only, in every title, lower third, and caption.
For Jacob to confirm
- The video durations and the 2.0s minimum are working values in tokens.json.
- The masters are the outro and hold version only. The intro exit is keyed in Resolve from page 2.
- 9:16 safe areas reflect platform UI in October 2026.
Files to download and code to copy
- Whole piece, source files41 files, zip, 5.5 MB. Paths inside follow the repo layout, so put tokens.css beside them as the README says.Download
- preview-9x16.mp4H.264 preview for review, not a master, 34.3 KBDownload
- preview-16x9.mp4H.264 preview for review, not a master, 41.2 KBDownload
- spec.pdfPDF, 14.0 MBDownload
- masters/marathon-sting-9x16-24p.movProRes 4444, 2160 by 3840, 24fps, 48 frames, alpha, 10.0 MBDownload
- masters/marathon-sting-9x16-30p.movProRes 4444, 2160 by 3840, 30fps, 60 frames, alpha, 12.5 MBDownload
- masters/marathon-sting-16x9-24p.movProRes 4444, 3840 by 2160, 24fps, 48 frames, alpha, 9.8 MBDownload
- masters/marathon-sting-16x9-30p.movProRes 4444, 3840 by 2160, 30fps, 60 frames, alpha, 12.3 MBDownload
- seq/marathon-sting-16x9-24p/, zippedPNG sequence, 48 frames, 3840 by 2160, RGBA, 2.4 MBDownload
- seq/marathon-sting-16x9-30p/, zippedPNG sequence, 60 frames, 3840 by 2160, RGBA, 3.0 MBDownload
- seq/marathon-sting-16x9-60p/, zippedPNG sequence, 120 frames, 3840 by 2160, RGBA, 6.1 MBDownload
- seq/marathon-sting-9x16-24p/, zippedPNG sequence, 48 frames, 2160 by 3840, RGBA, 2.6 MBDownload
- seq/marathon-sting-9x16-30p/, zippedPNG sequence, 60 frames, 2160 by 3840, RGBA, 3.2 MBDownload
- seq/marathon-sting-9x16-60p/, zippedPNG sequence, 120 frames, 2160 by 3840, RGBA, 6.5 MBDownload
- masters/marathon-sting-9x16-60p.movProRes 4444, 2160 by 3840, 60fps, 120 frames, alpha, 25.0 MBbuild/motion-sting/v/best/renders/masters/marathon-sting-9x16-60p.mov
- masters/marathon-sting-16x9-60p.movProRes 4444, 3840 by 2160, 60fps, 120 frames, alpha, 24.6 MBbuild/motion-sting/v/best/renders/masters/marathon-sting-16x9-60p.mov
Copy-paste code
spec.css160 lines, 12.7 KB
/* Motion spec, US Letter. Every colour, size, and space is a token. */
@page { size: 8.5in 11in; margin: 0; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: var(--mc-font); color: var(--mc-text-primary); background: var(--mc-surface-muted);
font-size: var(--mc-print-type-body-size); line-height: var(--mc-type-body-leading);
-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
@media print { body { background: var(--mc-surface-page); } .page { margin: 0 !important; box-shadow: var(--mc-shadow-none) !important; } }
.page {
width: var(--mc-doc-page-width); height: var(--mc-doc-page-height); position: relative; overflow: hidden;
margin: 0 auto var(--mc-space-08); background: var(--mc-surface-page); box-shadow: var(--mc-shadow-2);
break-after: page;
}
.page:last-child { break-after: auto; }
.inner { position: absolute; top: var(--mc-doc-margin-top); left: var(--mc-doc-margin-side); right: var(--mc-doc-margin-side); bottom: var(--mc-doc-margin-bottom); }
.foot {
position: absolute; left: var(--mc-doc-margin-side); right: var(--mc-doc-margin-side); bottom: var(--mc-doc-footer-offset);
display: flex; justify-content: space-between; align-items: baseline;
font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold);
color: var(--mc-text-tertiary); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding-top: var(--mc-space-03);
}
.num, td.num, th.num, .tab { font-variant-numeric: var(--mc-numeric-tabular); }
.g12 { display: grid; grid-template-columns: repeat(var(--mc-doc-columns), 1fr); column-gap: var(--mc-doc-gutter); row-gap: var(--mc-doc-gutter); }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.eyebrow {
margin: 0 0 var(--mc-space-03); color: var(--mc-text-label);
font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-type-eyebrow-weight);
letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: var(--mc-type-eyebrow-case); line-height: var(--mc-type-eyebrow-leading);
}
.eyebrow.inv { color: var(--mc-accent-on-inverse); }
h1 {
margin: 0 0 var(--mc-space-04); color: var(--mc-text-heading);
font-size: var(--mc-print-type-h1-size); font-weight: var(--mc-type-h1-weight);
line-height: var(--mc-type-h1-leading); letter-spacing: var(--mc-type-h1-tracking); text-wrap: balance;
}
h2 {
margin: 0 0 var(--mc-space-04); color: var(--mc-text-heading);
font-size: var(--mc-print-type-h2-size); font-weight: var(--mc-type-h2-weight);
line-height: var(--mc-type-h2-leading); letter-spacing: var(--mc-type-h2-tracking); text-wrap: balance;
}
h3 {
margin: 0 0 var(--mc-space-02); color: var(--mc-text-heading);
font-size: var(--mc-print-type-h3-size); font-weight: var(--mc-type-h3-weight); line-height: var(--mc-type-h3-leading);
}
.lede {
margin: 0 0 var(--mc-space-06); color: var(--mc-text-secondary); max-width: 6.2in;
font-size: var(--mc-print-type-lede-size); font-weight: var(--mc-type-lede-weight); line-height: var(--mc-type-lede-leading);
}
p { margin: 0 0 var(--mc-space-03); }
.small { font-size: var(--mc-print-type-small-size); line-height: var(--mc-type-small-leading); }
.cap { font-size: var(--mc-print-type-caption-size); line-height: var(--mc-type-caption-leading); color: var(--mc-text-secondary); margin: var(--mc-space-02) 0 0; }
.cap strong { color: var(--mc-text-heading); }
strong { font-weight: var(--mc-weight-semibold); }
code { font-family: var(--mc-font); font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); white-space: nowrap; }
.divider { width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-border-accent); margin: var(--mc-space-02) 0 var(--mc-space-06); }
.sec { margin-top: var(--mc-space-07); }
.head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--mc-space-08); }
.head img { height: 26px; display: block; }
.head .meta { text-align: right; font-size: var(--mc-print-type-caption-size); color: var(--mc-text-tertiary); font-weight: var(--mc-weight-semibold); line-height: 1.5; }
.frame img { width: 100%; display: block; }
.frame .cap { margin-top: var(--mc-space-03); }
.frame .bt { display: block; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); font-size: var(--mc-print-type-small-size); }
.frame .fr { display: block; color: var(--mc-text-tertiary); font-variant-numeric: var(--mc-numeric-tabular); }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--mc-space-04); }
.callout { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); padding: var(--mc-space-06) var(--mc-space-07); margin-top: var(--mc-space-07); display: grid; grid-template-columns: auto 1fr; column-gap: var(--mc-space-07); align-items: center; }
.callout .big { font-size: var(--mc-print-type-stat-size); font-weight: var(--mc-type-stat-weight); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: var(--mc-numeric-tabular); }
.callout .big small { display: block; font-size: var(--mc-print-type-eyebrow-size); letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; color: var(--mc-accent-on-inverse); font-weight: var(--mc-weight-bold); margin-top: var(--mc-space-03); }
.callout p { margin: 0; font-size: var(--mc-print-type-small-size); color: var(--mc-text-inverse-secondary); }
.callout p strong { color: var(--mc-text-inverse); }
.gwrap { font-size: 7.5pt; --g-lab: 8.2em; --g-row: 1.75em; margin-top: var(--mc-space-08); }
table { width: 100%; border-collapse: collapse; font-size: var(--mc-print-type-small-size); }
th { background: var(--mc-surface-table-header); color: var(--mc-text-on-accent); font-weight: var(--mc-weight-bold); text-align: left; padding: var(--mc-space-03) var(--mc-space-03); font-size: var(--mc-print-type-caption-size); line-height: 1.25; vertical-align: bottom; }
td { padding: var(--mc-space-02) var(--mc-space-03); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); vertical-align: top; line-height: 1.35; }
tr:nth-child(even) td { background: var(--mc-surface-row-alt-print); }
td.num, th.num { text-align: right; font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }
td.lab { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); white-space: nowrap; }
td.dim { color: var(--mc-text-secondary); }
th.grp { text-align: center; }
.rule-card { border-top: var(--mc-border-width-bar) solid var(--mc-surface-inverse); padding-top: var(--mc-space-04); }
.rule-card.red { border-top-color: var(--mc-border-accent); }
.rule-card p { font-size: var(--mc-print-type-small-size); line-height: var(--mc-type-small-leading); color: var(--mc-text-primary); }
.ease-card { border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding: var(--mc-space-04); }
.ease-card .bz { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); font-size: var(--mc-print-type-caption-size); font-variant-numeric: var(--mc-numeric-tabular); margin: var(--mc-space-02) 0; }
.ease-card p { font-size: var(--mc-print-type-caption-size); line-height: 1.4; color: var(--mc-text-secondary); margin: 0 0 var(--mc-space-02); }
.ease-card .pts { font-size: var(--mc-print-type-caption-size); color: var(--mc-text-tertiary); font-variant-numeric: var(--mc-numeric-tabular); }
.never { position: relative; }
.never img { width: 100%; display: block; }
.never .x { position: absolute; left: 0; top: 0; background: var(--mc-surface-table-header); color: var(--mc-text-on-accent); font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-bold); letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; padding: var(--mc-space-01) var(--mc-space-03); }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 2.1em; margin-bottom: var(--mc-space-04); font-size: var(--mc-print-type-small-size); line-height: var(--mc-type-small-leading); }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.05em; width: 1.5em; height: 1.5em; border-radius: var(--mc-radius-pill); background: var(--mc-surface-inverse); color: var(--mc-text-inverse); font-weight: var(--mc-weight-bold); font-size: 0.9em; display: flex; align-items: center; justify-content: center; }
ol.steps li strong { color: var(--mc-text-heading); }
.note { border-left: var(--mc-border-width-bar) solid var(--mc-status-warning); background: var(--mc-surface-subtle); padding: var(--mc-space-04) var(--mc-space-05); margin-top: var(--mc-space-06); font-size: var(--mc-print-type-small-size); line-height: var(--mc-type-small-leading); }
.note .eyebrow { color: var(--mc-text-heading); }
.note ul { margin: 0; padding-left: 1.1em; }
.note li { margin-bottom: var(--mc-space-02); }
.files { font-size: var(--mc-print-type-caption-size); line-height: 1.5; color: var(--mc-text-secondary); margin: 0; padding: 0; list-style: none; }
.files li { border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding: var(--mc-space-02) 0; }
.files code { font-size: var(--mc-print-type-caption-size); }
table.tight { font-size: var(--mc-print-type-caption-size); }
table.tight td { padding: var(--mc-space-02) var(--mc-space-03); }
td.dim.nw, td.nw { white-space: nowrap; }
.frame.compact .cap .fr { display: inline; }
.ease-card h3 { font-size: var(--mc-print-type-small-size); }
#easeCards { row-gap: var(--mc-space-04); }
#easeCards .ease-card { grid-column: span 6; }
#perFrame td, #perFrame th { padding: var(--mc-space-01) var(--mc-space-03); }
#perFrame { font-size: var(--mc-print-type-caption-size); }
#durTable td:nth-child(3) { width: 40%; }
#durTable td:nth-child(2) code { font-size: var(--mc-print-type-caption-size); }
.ease-card { padding: var(--mc-space-03) var(--mc-space-04); }
.ease-card .bz { margin: var(--mc-space-01) 0; }
/* Storyboard bands. Full frame width, cropped to the lockup band so the mark reads near two fifths of the band. */
.board-head { display: grid; grid-template-columns: 1fr 3fr; column-gap: var(--mc-doc-gutter); font-size: var(--mc-print-type-caption-size); color: var(--mc-text-tertiary); font-weight: var(--mc-weight-semibold); padding-bottom: var(--mc-space-02); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); margin-bottom: var(--mc-space-03); }
.board { display: grid; row-gap: var(--mc-space-03); }
.board .brow { display: grid; grid-template-columns: 1fr 3fr; column-gap: var(--mc-doc-gutter); align-items: center; }
.brow .cap { margin: 0; }
.brow .bt { display: block; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); font-size: var(--mc-print-type-small-size); }
.brow .fr { display: block; color: var(--mc-text-tertiary); font-variant-numeric: var(--mc-numeric-tabular); }
.brow .tx { display: block; }
.crop { position: relative; overflow: hidden; width: 100%; background: var(--mc-surface-inverse); }
.crop img { position: absolute; left: 0; width: 100%; height: auto; display: block; }
.board916 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--mc-doc-gutter); row-gap: var(--mc-space-04); }
.board916 .brow { display: flex; flex-direction: column-reverse; gap: var(--mc-space-02); }
.board916 .brow .cap .bt, .board916 .brow .cap .fr, .board916 .brow .cap .tx { display: inline; margin-right: var(--mc-space-02); }
.board916 .note916 { flex-direction: column; justify-content: center; border-left: var(--mc-border-width-bar) solid var(--mc-border-accent); padding-left: var(--mc-space-04); }
#page3-callout { margin-top: var(--mc-space-07); }
.c9 { grid-column: span 9; }
#gantt1 { margin-top: var(--mc-space-06); }
.board916 { row-gap: var(--mc-space-03); }
#gantt1 { --g-row: 1.62em; margin-top: var(--mc-space-08); }
.page:first-child .lede { margin-bottom: var(--mc-space-04); }
.board-head { margin-top: var(--mc-space-02); }
#durTable { table-layout: fixed; }
#durTable th:nth-child(1) { width: 15.5%; } #durTable th:nth-child(2) { width: 25%; } #durTable th:nth-child(3) { width: 27.5%; }
#durTable td:nth-child(3) { width: auto; }
.page:nth-child(3) .callout { margin-top: var(--mc-space-06); padding: var(--mc-space-05) var(--mc-space-06); }
/* 9:16 safe area table sits beside the full size guide, so cells never wrap. */
table.nowrap td.num { white-space: nowrap; } table.nowrap td, table.nowrap th { padding-left: var(--mc-space-02); padding-right: var(--mc-space-02); }
sting.css32 lines, 2.0 KB
/* Sting stage. Every colour is a token. The logo is the shipped file, shown through masks. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
body { font-family: var(--mc-font); background: transparent; }
.stage { position: fixed; inset: 0; overflow: hidden; }
.stage.bg-navy { background: var(--mc-surface-inverse); }
.stage.bg-none { background: transparent; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.plate { position: absolute; inset: 0; background: var(--mc-surface-inverse); will-change: transform; }
.lockup { position: absolute; transform-origin: 50% 50%; }
.part { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }
.part > img, .win > .inner > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.win { position: absolute; overflow: hidden; }
.win > .inner { position: absolute; will-change: transform; }
/* Spec guides. Hairlines only, never part of a delivered frame. */
.guide { position: absolute; border: var(--mc-border-width-hairline) dashed var(--mc-gray-300); pointer-events: none; }
.guide.title { border-style: solid; border-color: var(--mc-text-inverse-secondary); }
.guide.clear { border: var(--mc-border-width-hairline) solid var(--mc-accent-on-inverse); }
.guide.crop { border-color: var(--mc-gray-300); border-style: dotted; }
.glabel {
position: absolute; color: var(--mc-text-inverse-secondary); font-weight: var(--mc-weight-semibold);
font-size: 15px; letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; white-space: nowrap;
}
.glabel.red { color: var(--mc-accent-on-inverse); }
.ui-band { position: absolute; left: 0; right: 0; background: rgb(var(--mc-white-rgb) / 0.08); }
.ui-band span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
[hidden] { display: none !important; }
viz.css30 lines, 2.8 KB
/* Timeline chart and curve styles. Tokens only. */
.gantt { position: relative; font-variant-numeric: var(--mc-numeric-tabular); }
.g-row { display: grid; grid-template-columns: var(--g-lab, 9em) 1fr; align-items: center; height: var(--g-row, 1.9em); position: relative; }
.g-lab { font-weight: var(--mc-weight-semibold); color: var(--mc-text-secondary); white-space: nowrap; padding-right: 0.8em; }
.g-row.word .g-lab { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.g-track { position: relative; height: 100%; }
.g-seg { position: absolute; top: 22%; bottom: 22%; color: var(--mc-text-inverse); font-size: 0.78em; font-weight: var(--mc-weight-semibold); padding-left: 0.5em; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.g-seg.move { background: var(--mc-data-1); z-index: 2; }
.g-seg.hold { background: var(--mc-surface-muted); top: 40%; bottom: 40%; }
.g-seg.exit { background: var(--mc-data-2); }
.g-row.ruler { height: 1.45em; }
.g-row.ruler .g-lab { font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); font-size: 0.9em; }
.g-row.fps .g-lab { font-weight: var(--mc-weight-semibold); color: var(--mc-text-tertiary); }
.g-row.ruler:first-of-type, .gantt .g-row.ruler { border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
.g-tick { position: absolute; transform: translateX(-50%); top: 50%; margin-top: -0.6em; font-size: 0.9em; color: var(--mc-text-secondary); font-weight: var(--mc-weight-semibold); }
.g-row.fps .g-tick { color: var(--mc-text-tertiary); font-weight: var(--mc-weight-regular); }
.g-lines { position: absolute; top: 0; bottom: 0; left: var(--g-lab, 9em); right: 0; pointer-events: none; }
.g-line { position: absolute; top: 0; bottom: 5.8em; border-left: var(--mc-border-width-hairline) solid var(--mc-data-gridline); z-index: 0; }
.g-row { z-index: 1; }
.g-mark { position: absolute; top: -1.5em; bottom: 5.8em; border-left: var(--mc-border-width-strong) solid var(--mc-data-highlight); z-index: 3; }
.g-mark span { position: absolute; top: 0; left: 0.4em; font-size: 0.8em; font-weight: var(--mc-weight-bold); color: var(--mc-text-label); white-space: nowrap; letter-spacing: 0.04em; }
.g-key { margin-top: 0.8em; font-size: 0.85em; color: var(--mc-text-secondary); display: flex; align-items: center; gap: 0.5em; }
.g-key .sw { display: inline-block; width: 1.6em; height: 0.7em; margin-left: 1em; }
.g-key .sw:first-child { margin-left: 0; }
.g-key .sw.move { background: var(--mc-data-1); }
.g-key .sw.hold { background: var(--mc-surface-muted); outline: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
.g-key .sw.exit { background: var(--mc-data-2); }
.curve { width: 100%; display: block; }
.g-mark.end span { left: auto; right: 0.4em; }
contact.html67 lines, 4.4 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon logo sting, 16:9 contact sheet</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="viz.css">
<style>
* { box-sizing: border-box; }
html, body { margin: 0; }
body { width: 2400px; font-family: var(--mc-font); background: var(--mc-surface-page); color: var(--mc-text-primary); padding: var(--mc-space-12) var(--mc-space-12) var(--mc-space-10); font-variant-numeric: var(--mc-numeric-tabular); }
.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--mc-space-10); }
.top img { height: 46px; display: block; margin-bottom: var(--mc-space-08); }
.eyebrow { margin: 0 0 var(--mc-space-04); color: var(--mc-text-label); font-size: 17px; font-weight: var(--mc-type-eyebrow-weight); letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; }
h1 { margin: 0; color: var(--mc-text-heading); font-size: 64px; font-weight: var(--mc-weight-extrabold); letter-spacing: var(--mc-type-h1-tracking); line-height: 1.05; }
.beatnote { text-align: right; color: var(--mc-text-secondary); font-size: 22px; line-height: 1.5; }
.beatnote strong { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.divider { width: 90px; height: 5px; background: var(--mc-border-accent); margin: 0 0 var(--mc-space-08); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: var(--mc-space-08); }
.cell img { width: 100%; display: block; background: var(--mc-surface-inverse); }
.cap { display: grid; grid-template-columns: auto 1fr; column-gap: var(--mc-space-05); margin-top: var(--mc-space-04); align-items: baseline; }
.b { font-size: 30px; font-weight: var(--mc-weight-extrabold); color: var(--mc-text-heading); letter-spacing: -0.01em; }
.f { font-size: 17px; color: var(--mc-text-tertiary); font-weight: var(--mc-weight-semibold); text-align: right; }
.what { grid-column: 1 / -1; font-size: 19px; color: var(--mc-text-secondary); margin-top: var(--mc-space-02); line-height: 1.4; }
.timeline { margin-top: var(--mc-space-11); padding-top: var(--mc-space-08); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); font-size: 19px; --g-lab: 11em; --g-row: 2em; }
.timeline .eyebrow { margin-bottom: var(--mc-space-08); }
.foot { margin-top: var(--mc-space-08); display: flex; justify-content: space-between; color: var(--mc-text-tertiary); font-size: 17px; font-weight: var(--mc-weight-semibold); }
</style>
</head>
<body>
<div class="top">
<div>
<img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative">
<p class="eyebrow">Motion grammar, logo sting, 16:9</p>
<h1>The bars run in. The name lands with the last one.</h1>
</div>
<div class="beatnote" id="beatnote"></div>
</div>
<div class="divider"></div>
<div class="grid" id="grid"></div>
<div class="timeline">
<p class="eyebrow">Keyframe timeline, beats across, frames under</p>
<div id="gantt"></div>
</div>
<div class="foot"><span>Marathon Creative, motion sting v1. Frames read from the alpha master, renders/seq/marathon-sting-16x9-24p, laid on Marathon Navy.</span><span>Contact sheet, 12 frames, one per beat</span></div>
<script src="motion.js"></script>
<script src="viz.js"></script>
<script>
(function () {
var g = document.getElementById('grid');
for (var b = 0; b < 12; b++) {
var f = MCViz.fr(b), c = MCViz.h('div', 'cell');
c.innerHTML = '<img src="renders/seq/marathon-sting-16x9-24p/marathon-sting-16x9-24p.' + String(f.f24).padStart(4, '0') + '.png" alt="">' +
'<div class="cap"><span class="b">Beat ' + String(b).padStart(2, '0') + '</span>' +
'<span class="f">f' + f.f24 + ' at 24, f' + f.f30 + ' at 30, f' + f.f60 + ' at 60</span>' +
'<span class="what">' + MCViz.caption(b) + '</span></div>';
g.appendChild(c);
}
var one = MCViz.fr(1);
document.getElementById('beatnote').innerHTML = '<strong>One beat = ' + one.f24 + ' frames at 24fps, ' + one.f30 + ' at 30, ' + one.f60 + ' at 60.</strong><br>' +
'Build ' + (MC.RESOLVED * MC.BEAT).toFixed(1) + 's, on screen at least ' + (MC.STING * MC.BEAT).toFixed(1) + 's.<br>Every key sits on a beat.';
MCViz.gantt(document.getElementById('gantt'), { easeText: true });
})();
</script>
</body>
</html>
photos.html54 lines, 3.6 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon sting outro, photo robustness</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<style>
body { width: 2400px; margin: 0; font-family: var(--mc-font); background: var(--mc-surface-page); color: var(--mc-text-primary); padding: var(--mc-space-10) var(--mc-space-12); box-sizing: border-box; }
.eyebrow { margin: 0 0 var(--mc-space-04); color: var(--mc-text-label); font-size: 17px; font-weight: var(--mc-type-eyebrow-weight); letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; }
h1 { margin: 0 0 var(--mc-space-04); color: var(--mc-text-heading); font-size: 48px; font-weight: var(--mc-weight-extrabold); letter-spacing: var(--mc-type-h1-tracking); line-height: 1.1; }
.lede { margin: 0 0 var(--mc-space-08); font-size: 22px; font-weight: var(--mc-weight-light); max-width: 1500px; line-height: 1.45; }
.row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--mc-space-04); }
.row.tall { grid-template-columns: repeat(5, 1fr); max-width: 1400px; }
.cell img { width: 100%; display: block; }
.cap { margin-top: var(--mc-space-03); font-size: 17px; font-weight: var(--mc-weight-semibold); }
.cap span { display: block; font-weight: var(--mc-weight-regular); color: var(--mc-text-secondary); }
.sub { margin: var(--mc-space-08) 0 var(--mc-space-04); }
</style>
</head>
<body>
<p class="eyebrow" id="eb"></p>
<h1 id="ttl"></h1>
<p class="lede" id="lede"></p>
<div class="row" id="r16"></div>
<p class="eyebrow sub" id="sub916" hidden>Same photo at 9:16</p>
<div class="row tall" id="r916"></div>
<script>
(function () {
var q = new URLSearchParams(location.search), set = q.get('set') || 'aerial';
var SETS = {
interior: ['mc_retouched_05', 'Tight interior', 'Cangelosi showroom, landscape. Busy texture, bright stone.'],
aerial: ['mc_rosehill_16', 'Wide aerial', 'Rosehill Reserve rooftops, the busiest frame in the set.'],
portrait: ['mc_retouched_08', 'Portrait original', 'Cangelosi, shot portrait. Cropped to fill 16:9 and 9:16, never letterboxed.'],
boundary: ['mc_fullres_12', 'Red boundary on the photo', 'Land listing with a red lot line burned into the image. The bars only start once the plate has fully covered the photo, so Marathon Red never sits on that line.']
};
var s = SETS[set];
document.getElementById('eb').textContent = 'Sting outro over footage, ' + s[1].toLowerCase();
document.getElementById('ttl').textContent = 'The navy plate covers the shot before a single bar moves';
document.getElementById('lede').textContent = s[0] + '.jpg. ' + s[2] + ' Last shot holds, the plate travels left to right over two beats, then the sting runs on clean navy. No red, no type, no mark ever touches the photo.';
var beats = [[-1.5, 'Beat -1.5', 'Plate enters'], [-1, 'Beat -1', 'Plate halfway'], [-0.5, 'Beat -0.5', 'Plate almost landed'], [0, 'Beat 0', 'Clean navy, bar 5 leaves'], [3, 'Beat 3', 'Bars in travel, on navy']];
function fill(id, tag) {
beats.forEach(function (b) {
var c = document.createElement('div'); c.className = 'cell';
c.innerHTML = '<img src="frames/photo/' + set + '-' + tag + '-' + b[0] + '.png" alt=""><div class="cap">' + b[1] + '<span>' + b[2] + '</span></div>';
document.getElementById(id).appendChild(c);
});
}
fill('r16', '16');
if (set === 'portrait') { document.getElementById('sub916').hidden = false; fill('r916', '916'); }
})();
</script>
</body>
</html>
spec.html236 lines, 16.2 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon motion grammar and logo sting, spec v1</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="viz.css">
<link rel="stylesheet" href="spec.css">
</head>
<body>
<!-- Page 1. The sting. -->
<section class="page">
<div class="inner">
<div class="head">
<img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative">
<div class="meta">Motion grammar v1, Tier 3<br>For Philip, built in DaVinci Resolve</div>
</div>
<p class="eyebrow">Logo sting</p>
<h1>The bars run in. The name lands with the last one.</h1>
<p class="lede">Five pacing bars travel in from off frame left, bottom bar first, one beat apart. MARATHON rises as the top bar lands, CREATIVE one beat later. Nothing scales, spins, glows, or bounces.</p>
<div class="divider"></div>
<div class="board-head"><span>Beat and frame</span><span>The 16:9 frame at full width, cropped to the lockup band. Left edge is the frame edge.</span></div>
<div class="board" id="story16"></div>
<div class="gwrap" id="gantt1"></div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 1 of 9</span></div>
</section>
<!-- Page 2. Keyframes. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Keyframes</p>
<h2>Every key, at every frame rate Philip delivers</h2>
<p class="small" style="max-width: 6.4in">Set the frame rate first, then read across. Frame numbers count from the first frame of the sting, which is frame 0. In and Out are the frames that carry a keyframe. Both keys hold the rest value exactly, so the mark is never altered once a part has landed.</p>
<div class="sec"><table id="keyTable" class="tight"></table></div>
<div class="sec">
<p class="eyebrow">Positions in pixels</p>
<h3>Where the lockup sits, and how far each part travels</h3>
<p class="small" style="max-width: 6.4in">Bars start with their right ends on the left edge of frame, so every bar travels the same distance, in X only. Words start one window height below rest and rise in Y only, inside a fixed mask. Layer pack PNGs are already registered at rest, so rest is Position 0 in Resolve.</p>
<table id="pxTable" class="tight"></table>
</div>
<div class="sec g12">
<div class="c6 rule-card red"><h3>Why the bottom bar goes first</h3><p>It is the longest bar and sits on the baseline of the lockup. Leading with it builds the staircase from the ground up and puts the shortest bar, the one beside MARATHON, last. The name lands on the same frame as the top bar, so the eye arrives at the word as the motion stops.</p></div>
<div class="c6 rule-card"><h3>Why the bars travel and do not wipe</h3><p>A wipe shows a bar at half length, and the brand guide says the bars are never shortened. Travelling keeps each bar at full length on every frame. The bar layer moves, the bar itself never changes.</p></div>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 2 of 9</span></div>
</section>
<!-- Page 3. Grammar. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Motion grammar</p>
<h2>Durations, curves, direction, and order</h2>
<p class="small" style="max-width: 6.4in">These rules cover every Marathon video, not only the sting: lower thirds, title and section cards, captions, and end cards all use the same beat, the same four curves, and the same direction. Values come from the token layer, <code>tokens.css</code>, so the web, the apps, and Resolve agree.</p>
<div class="sec"><table id="durTable" class="tight"></table></div>
<div class="sec g12">
<div class="c3 rule-card"><h3>Enter</h3><p>Things that travel go left to right, the reading direction and the direction the bars point. Type rises from its own baseline through a fixed mask. Nothing enters from the top or from the right.</p></div>
<div class="c3 rule-card"><h3>Exit</h3><p>Back the way it came, every element together, no stagger, in <span id="exitBeats"></span> on the exit curve. An exit is always shorter than the entrance it undoes.</p></div>
<div class="c3 rule-card"><h3>Resolve order</h3><p>Rule, then name, then detail. Red bars or a red rule first, the headline second, the supporting line last. One beat between each. The most important word lands on a stopped frame.</p></div>
<div class="c3 rule-card red"><h3>Hold</h3><p>Nothing moves while it is being read. Title cards hold <span id="holdTitle"></span>, lower thirds <span id="holdLT"></span>, or one second per three words if that is longer, rounded up to a whole beat.</p></div>
</div>
<div class="callout">
<div class="big" id="beatBig"></div>
<p id="beatText"></p>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 3 of 9</span></div>
</section>
<!-- Page 4. Curves. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Curves</p>
<h2>Four curves, and nothing else</h2>
<p class="small" style="max-width: 6.4in">Every move uses one of these. Linear is never used, it reads as a machine. The table on the right is the share of travel each move must reach on each frame at 30fps, so Philip can check a scrub against it, or key every frame by hand if a handle will not behave.</p>
<div class="g12 sec">
<div class="c7">
<div class="g12" id="easeCards"></div>
<p class="eyebrow sec">Curve handles in Resolve and Fusion</p>
<table id="handles"></table>
<p class="cap">Flat means the handle is level with its key. Length is a share of the time between the two keys. A handle of 0% is pulled into the key.</p>
</div>
<div class="c5">
<p class="eyebrow">Share of travel, frame by frame at 30fps</p>
<table id="perFrame"></table>
</div>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 4 of 9</span></div>
</section>
<!-- Page 5. Safe areas, 16:9, and the safe box table for every format. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Safe areas</p>
<h2>16:9 for YouTube and the site, 9:16 for Reels, TikTok, and Shorts</h2>
<div class="g12 sec">
<div class="c8 frame">
<img src="frames/g16.png" alt="16:9 safe areas">
</div>
<div class="c4">
<p class="cap" style="margin-top: 0"><strong>16:9.</strong> Lockup is two fifths of frame width, centred. Type and logo stay inside title safe, 90%. Nothing that matters sits outside action safe, 93%. Red outline is clear space, one M height.</p>
<p class="cap"><strong>9:16.</strong> Full frame guide with every edge in pixels is on page 6.</p>
</div>
</div>
<div class="sec">
<p class="eyebrow">Safe box per delivery format, in pixels</p>
<table id="safeAll" class="tight"></table>
<p class="cap">16:9 safe box is title safe. 9:16 safe box is the reel safe box, inside the platform UI bands. All boxes are x, y, w, h from the top left corner of frame.</p>
</div>
<div class="sec">
<p class="eyebrow">The sting at 9:16</p>
<div class="board916" id="story916"></div>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 5 of 9</span></div>
</section>
<!-- Page 6. Safe areas, 9:16, full size. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Safe areas at 9:16</p>
<h2>Reels, TikTok, and Shorts, every edge in pixels</h2>
<div class="g12 sec">
<div class="c7 frame">
<img src="frames/g916-spec.png" alt="9:16 safe areas with pixel values">
</div>
<div class="c5">
<p class="cap" style="margin-top: 0">Platform UI covers the top and bottom bands of every reel. The lockup is two thirds of frame width and centred on the reel safe box, not on the frame, so it sits above centre. The dotted lines are the 3:4 crop the Instagram profile grid shows.</p>
<p class="eyebrow sec">Read across for your timeline</p>
<table id="safe916" class="tight nowrap"></table>
<p class="cap">Every value is y from the top of frame or x from the left edge. Set Resolve guides to these numbers before you place anything.</p>
</div>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 6 of 9</span></div>
</section>
<!-- Page 7. Footage handoff and the never list. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Outro from footage</p>
<h2>Navy covers the last shot, then the bars run</h2>
<p class="small" style="max-width: 6.4in">The sting never plays over footage. The navy plate travels in from the left over two beats on the pace curve, the last frame of footage holds under it, and the bars leave the moment the plate lands. On an intro the order reverses: the lockup exits, then the plate exits right to left over the first shot.</p>
<div class="strip" id="outro"></div>
<div class="sec">
<p class="eyebrow">Never</p>
<h3 style="margin-bottom: var(--mc-space-04)">Six moves that break the mark. Each one shown on purpose so it is easy to spot.</h3>
<div class="g12" id="never"></div>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 7 of 9</span></div>
</section>
<!-- Page 8. Resolve, rendered masters. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Import note for DaVinci Resolve, route one</p>
<h2>Drop in the rendered master</h2>
<p class="small" style="max-width: 6.4in">Six masters are rendered from <code>sting.html</code>, one per ratio and frame rate. Each runs the full sting and its hold, beat 0 to beat 12, and carries a straight alpha channel. This is the default route. Pick the file whose rate matches the timeline and never let Resolve retime it.</p>
<div class="sec"><table id="masterTable" class="tight nowrap"></table></div>
<div class="g12 sec">
<div class="c7">
<ol class="steps">
<li><strong>Match the timeline.</strong> Project Settings, Master Settings: UHD 3840 x 2160 or 2160 x 3840, and the job's frame rate. Use the master with the same rate. A 24p master on a 30p timeline gets retimed and the keys leave the beat.</li>
<li><strong>Import.</strong> Drag the <code>.mov</code> from <code>renders/masters/</code> into the Media Pool. Right click, Clip Attributes, Video, set Alpha Mode to <strong>Straight</strong>.</li>
<li><strong>Lay the navy.</strong> V1 is a Solid Color generator set to Marathon Navy, <code id="navyHex2"></code>. The master goes on V2 at full size, Zoom 1.0, Position 0, 0.</li>
<li><strong>Check three frames.</strong> Frame 0 is empty. The resolve frame in the table is the first frame at rest, and the frame before it still moves. The last frame matches <code>10-all</code> in the layer pack.</li>
<li><strong>Image sequence instead.</strong> For Fusion or another app, use <code>renders/seq/</code>. In Media Storage, turn off Show Individual Frames so each folder lands as one clip. File number equals frame number.</li>
</ol>
</div>
<div class="c5">
<p class="eyebrow">What the masters are not</p>
<ul class="files">
<li>Not for intro use. The exit is two beats on the ease exit curve, keyed in Resolve from page 2, or rebuilt from layers on page 9.</li>
<li>Not for footage. The sting plays on navy only. Over footage, key the navy plate first, page 5.</li>
<li>The preview MP4s are HD, 30fps, flattened on navy. Review and approval only. They have no alpha and never go into an edit.</li>
</ul>
</div>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 8 of 9</span></div>
</section>
<!-- Page 9. Resolve, rebuild from layers. -->
<section class="page">
<div class="inner">
<p class="eyebrow">Import note for DaVinci Resolve, route two</p>
<h2>Or rebuild the sting from the layer pack</h2>
<div class="g12 sec">
<div class="c7">
<ol class="steps">
<li><strong>Set the timeline first.</strong> UHD 3840 x 2160 for 16:9, 2160 x 3840 for 9:16, at the frame rate of the job. Use the column for that rate on page 2 and do not mix them. At 9:16, set guides from the table on page 6 first.</li>
<li><strong>Import the layer pack.</strong> Drag <code>layers/uhd-16x9/</code> or <code>layers/uhd-9x16/</code> into the Media Pool. Each PNG is a full frame still with alpha, already in its rest position. Do not reposition or rescale them.</li>
<li><strong>Lay the background.</strong> On V1, a Solid Color generator set to Marathon Navy, <code id="navyHex"></code>. Never pick navy from the logo file, the logo ink is a different value.</li>
<li><strong>Bars on V2 to V6.</strong> <code>01-bar5</code> on V2 up to <code>05-bar1</code> on V6. In the Inspector, key Position X at the In frame to the start value on page 2, and to 0 at the Out frame. Nothing else is keyed on a bar.</li>
<li><strong>Words in one Fusion clip.</strong> Put <code>06-name</code> on V7, open it in Fusion. Add a Transform after MediaIn, key Center Y from the start value on page 2 to 0.5. Bring in <code>08-matte-name</code> as a second MediaIn and connect it to the Transform's effect mask, so the mask stays fixed while the word rises. Repeat for <code>07-descriptor</code> with <code>09-matte-descriptor</code>.</li>
<li><strong>Shape every key.</strong> Open the curve editor, select both keys of a move, and set the handles from page 4. Scrub three frames and check them against the frame table on page 4.</li>
<li><strong>Check against <code>10-all</code>.</strong> On the last frame, switch V1 off, put <code>10-all</code> on a top track in Difference mode. The frame must go fully black. Any red or white edge means a layer moved.</li>
<li><strong>Deliver.</strong> Outro on navy: H.264 or H.265 inside the edit. Sting as a reusable asset: QuickTime, ProRes 4444, Export Alpha on, background track off. Name it <code>marathon-sting-16x9-30p.mov</code>, swapping ratio and rate.</li>
</ol>
</div>
<div class="c5">
<p class="eyebrow">Files in this folder</p>
<ul class="files">
<li><code>spec.pdf</code> this document</li>
<li><code>renders/masters/</code> six ProRes 4444 masters with alpha, page 8</li>
<li><code>renders/seq/</code> the same six as alpha PNG sequences</li>
<li><code>renders/preview-16x9.mp4</code> and <code>preview-9x16.mp4</code>, review only</li>
<li><code>layers/uhd-16x9/</code> and <code>layers/uhd-9x16/</code>, 10 PNGs each, alpha</li>
<li><code>frames/</code> style frames, one per beat, for checking your build</li>
<li><code>renders/contact-16x9.png</code> the 12 beat contact sheet</li>
<li><code>sting.html</code> the reference, open with <code>?b=6</code> for any beat</li>
</ul>
</div>
</div>
<div class="note">
<p class="eyebrow">Editor note, for Jacob to confirm before this ships</p>
<ul>
<li>Video durations and the 2.0s minimum sting are working values in tokens.json. Change them there and every table here follows.</li>
<li>Rebuild from layers only when the job needs a change the masters do not carry, such as a different hold. Any change goes back into tokens.json first.</li>
<li>9:16 safe areas reflect platform overlays in October 2026. Recheck when Instagram or TikTok change their UI.</li>
</ul>
</div>
</div>
<div class="foot"><span>Marathon Creative, Motion grammar and logo sting v1</span><span>Page 9 of 9</span></div>
</section>
<script src="motion.js"></script>
<script src="viz.js"></script>
<script src="spec.js"></script>
</body>
</html>
sting.html35 lines, 1.5 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon logo sting, frame stage</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="sting.css">
</head>
<body>
<!--
Deterministic frame stage for the Marathon logo sting. Set the browser window to the frame size
(1920x1080, 3840x2160, 1080x1920, or 2160x3840) and call window.__seek(seconds), or pass ?b=<beats>.
Query options:
b=<beats> time in beats, one beat is 4 frames at 24fps, 5 at 30, 10 at 60
at=<beats> offset added to every seek, used to export rest-state layers
bg=navy|none|photo background, navy is the only delivered background for the sting
photo=<file> a file in brief/real-photos, used with bg=photo or scene=outro
scene=outro footage first, navy plate wipes in over beats -2 to 0, then the sting
exit=1 play the intro exit at beat 12
layer=<id> show one part only: bar1 to bar5, name, descriptor
guides=1 safe areas and clear space for the spec
wrong=<case> the never list: footage, overshoot, zoom, glow, spin, right
-->
<div class="stage" id="stage">
<img class="photo" id="photo" alt="" hidden>
<div class="plate" id="plate" hidden></div>
<div class="lockup" id="lockup"></div>
<div id="guides"></div>
</div>
<script src="motion.js"></script>
<script src="sting.js"></script>
</body>
</html>
motion.js94 lines, 5.1 KB
/* Marathon motion grammar, the one timeline. sting.html, contact.html, and spec.html all read it.
Every duration and curve comes from tokens.css. Geometry is measured from the shipped logo file,
marathon-logo-white.svg, viewBox 181.09 by 33.42. Nothing here redraws the mark. */
(function () {
var root = getComputedStyle(document.documentElement);
function tok(name) { return root.getPropertyValue(name).trim(); }
function ms(name) { return parseFloat(tok(name)); }
function bez(name) { return tok(name).replace(/^cubic-bezier\(|\)$/g, '').split(',').map(Number); }
/* Cubic bezier solver, same maths as CSS and as a Resolve or Fusion spline with matching handles. */
function ease(b, x) {
if (x <= 0) return 0; if (x >= 1) return 1;
var x1 = b[0], y1 = b[1], x2 = b[2], y2 = b[3];
function cx(t) { return 3 * x1 * t * (1 - t) * (1 - t) + 3 * x2 * t * t * (1 - t) + t * t * t; }
function cy(t) { return 3 * y1 * t * (1 - t) * (1 - t) + 3 * y2 * t * t * (1 - t) + t * t * t; }
var lo = 0, hi = 1, t = x;
for (var i = 0; i < 60; i++) { t = (lo + hi) / 2; if (cx(t) < x) lo = t; else hi = t; }
return cy(t);
}
/* One beat is the video stagger token snapped to a whole frame at 24fps: 4 frames at 24, 5 at 30, 10 at 60. */
var staggerMs = ms('--mc-video-stagger');
var BEAT = Math.round(staggerMs * 24 / 1000) / 24;
function beats(tokenName) { return Math.round(ms(tokenName) / staggerMs); }
var SWEEP = beats('--mc-video-bar-sweep'), ENTER = beats('--mc-video-enter'), EXIT = beats('--mc-video-exit');
var STING = beats('--mc-video-sting'), HOLD_TITLE = beats('--mc-video-hold-title'), HOLD_LT = beats('--mc-video-hold-lower-third');
var LOGO = {
w: 181.09, h: 33.42, barEnd: 51.52, mHeight: 14.45,
bars: [
{ id: 'bar1', label: 'Bar 1, top', x: 33.63, y: 1.18, w: 17.89, h: 2.18 },
{ id: 'bar2', label: 'Bar 2', x: 25.3, y: 8.43, w: 26.23, h: 2.18 },
{ id: 'bar3', label: 'Bar 3', x: 16.82, y: 15.69, w: 34.71, h: 2.18 },
{ id: 'bar4', label: 'Bar 4', x: 8.27, y: 22.95, w: 43.25, h: 2.18 },
{ id: 'bar5', label: 'Bar 5, bottom', x: 0, y: 30.2, w: 51.52, h: 2.18 }
],
name: { id: 'name', label: 'MARATHON', x: 54.6, y: 0, w: 126.49, h: 15.6 },
descriptor: { id: 'descriptor', label: 'CREATIVE', x: 54.6, y: 17.2, w: 99.4, h: 16.22 }
};
/* The sting, in beats. Bottom bar leaves first, one beat apart. MARATHON lands on the same frame as
the top bar. CREATIVE lands one beat later. Exit is for intro use only, everything at once. */
var T = [];
[4, 3, 2, 1, 0].forEach(function (bi, k) {
var b = LOGO.bars[bi];
T.push({ id: b.id, label: b.label, part: b, kind: 'bar', start: k, dur: SWEEP, ease: '--mc-ease-pace',
move: 'Position X, off frame left to rest' });
});
var lastBarEnd = 4 + SWEEP;
T.push({ id: 'name', label: 'MARATHON', part: LOGO.name, kind: 'word', start: lastBarEnd - ENTER, dur: ENTER,
ease: '--mc-ease-enter', move: 'Position Y, rises through its mask' });
T.push({ id: 'descriptor', label: 'CREATIVE', part: LOGO.descriptor, kind: 'word', start: lastBarEnd - ENTER + 1, dur: ENTER,
ease: '--mc-ease-enter', move: 'Position Y, rises through its mask' });
var RESOLVED = lastBarEnd + 1;
var EXIT_START = STING;
function find(id) { for (var i = 0; i < T.length; i++) if (T[i].id === id) return T[i]; }
/* Layout per frame size. 16:9 lockup is two fifths of frame width, centred. 9:16 lockup is two thirds
of frame width, centred on the reel safe box from the social tokens. */
function layout(w, h) {
var portrait = h > w;
var width = portrait ? w * 2 / 3 : w * 2 / 5;
var s = width / LOGO.w, height = LOGO.h * s;
var cy = h / 2;
if (portrait) {
var k = w / ms('--mc-social-reel-w');
var top = ms('--mc-social-reel-safe-top') * k, bottom = h - ms('--mc-social-reel-safe-bottom') * k;
cy = (top + bottom) / 2;
}
var left = (w - width) / 2, topY = cy - height / 2;
return { portrait: portrait, w: w, h: h, s: s, width: width, height: height, left: left, top: topY,
travel: left + LOGO.barEnd * s, clear: LOGO.mHeight * s };
}
/* Progress of one element at time t seconds, 0 to 1 for entrance, then exit progress 0 to 1. */
function state(el, t, withExit) {
var b = t / BEAT;
var pin = ease(bez(el.ease), (b - el.start) / el.dur);
var pout = withExit ? ease(bez('--mc-ease-exit'), (b - EXIT_START) / EXIT) : 0;
return { in: pin, out: pout };
}
function frames(beatsN, fps) { return Math.round(beatsN * BEAT * fps); }
function tc(beatsN, fps) {
var f = frames(beatsN, fps), sec = Math.floor(f / fps), ff = f - sec * fps;
return '00:00:' + String(sec).padStart(2, '0') + ':' + String(ff).padStart(2, '0');
}
window.MC = { tok: tok, ms: ms, bez: bez, ease: ease, BEAT: BEAT, LOGO: LOGO, T: T, find: find,
SWEEP: SWEEP, ENTER: ENTER, EXIT: EXIT, STING: STING, HOLD_TITLE: HOLD_TITLE, HOLD_LT: HOLD_LT,
RESOLVED: RESOLVED, EXIT_START: EXIT_START, layout: layout, state: state, frames: frames, tc: tc };
})();
spec.js170 lines, 13.1 KB
/* Fills every number in spec.html from motion.js and tokens.css. Nothing here is typed twice. */
(function () {
var MC = window.MC, V = window.MCViz;
function $(id) { return document.getElementById(id); }
function pad(b) { return String(b).padStart(2, '0'); }
function frameCell(src, title, b, text) {
var f = V.fr(b), d = V.h('div', 'frame');
var fr = b < 0 ? (Math.abs(b) + (b === -1 ? ' beat' : ' beats') + ' before frame 0') : ('24 / 30 / 60fps: f' + f.f24 + ', ' + f.f30 + ', ' + f.f60);
d.innerHTML = '<img src="' + src + '" alt=""><p class="cap"><span class="bt">' + title + '</span><span class="fr">' + fr + '</span>' + text + '</p>';
return d;
}
function one(n) { return ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'][n] || String(n); }
function sec(beats) { return (beats * MC.BEAT).toFixed(1) + 's'; }
function table(el, head, rows, numFrom) {
var h = '<thead><tr>' + head.map(function (c, i) { return '<th' + (i >= numFrom ? ' class="num"' : '') + '>' + c + '</th>'; }).join('') + '</tr></thead><tbody>';
rows.forEach(function (r) { h += '<tr>' + r.map(function (c, i) { return '<td class="' + (i === 0 ? 'lab' : i >= numFrom ? 'num' : 'dim') + '">' + c + '</td>'; }).join('') + '</tr>'; });
el.innerHTML = h + '</tbody>';
}
var B1 = V.fr(1);
/* Storyboard band. The full frame width, cropped top and bottom to the lockup plus clear space, so the
bars read at true scale against the frame edge they travel in from. Crop comes from motion.js layout. */
function band(src, W, H, b, title, text) {
var l = MC.layout(W, H), y0 = l.top - l.clear * 0.75, ch = l.height + l.clear * 1.5, f = V.fr(b);
var row = V.h('div', 'brow');
row.innerHTML = '<p class="cap"><span class="bt">' + title + '</span><span class="fr">f' + f.f24 + ' / f' + f.f30 + ' / f' + f.f60 + '</span>' + (text ? '<span class="tx">' + text + '</span>' : '') + '</p>' +
'<div class="crop" style="aspect-ratio:' + W + ' / ' + ch.toFixed(1) + '"><img src="' + src + '" alt="" style="top:' + (-y0 / ch * 100).toFixed(3) + '%"></div>';
return row;
}
/* Page 1 */
[2, 4, 6, 8, MC.RESOLVED].forEach(function (b) { $('story16').appendChild(band('frames/s16-b' + pad(b) + '.png', 1920, 1080, b, 'Beat ' + b, b === MC.RESOLVED ? 'CREATIVE lands. Resolved, no key after this.' : V.caption(b))); });
V.gantt($('gantt1'), { easeText: true });
$('beatBig').innerHTML = B1.f24 + ' / ' + B1.f30 + ' / ' + B1.f60 + '<small>Frames per beat at 24, 30, 60fps</small>';
$('beatText').innerHTML = '<strong>One beat is ' + MC.ms('--mc-video-stagger') + 'ms, the gap between bars.</strong> Every key in Marathon motion lands on a beat, so the same move is a whole number of frames at every delivery rate. If a key falls between beats, it is wrong. The sting builds in ' + MC.RESOLVED + ' beats, ' + sec(MC.RESOLVED) + ', and stays on screen at least ' + MC.STING + ' beats, ' + sec(MC.STING) + '.';
/* Page 2 */
var rows = MC.T.map(function (el) {
var r = [el.label, el.move, '<span style="white-space:nowrap">' + el.ease.replace('--mc-', '') + '</span>'];
[24, 30, 60].forEach(function (fps) { r.push(MC.frames(el.start, fps), MC.frames(el.start + el.dur, fps)); });
return r;
});
function mark(label, a, b, what, curve) { var r = [label, what, curve]; [24, 30, 60].forEach(function (fps) { r.push(MC.frames(a, fps), b == null ? '' : MC.frames(b, fps)); }); return r; }
rows.push(mark('Resolved', MC.RESOLVED, null, 'Every part at rest. No key after this.', ''));
rows.push(mark('Hold ends', MC.STING, null, 'Earliest frame an intro may clear. Master file length.', ''));
rows.push(mark('Intro exit', MC.EXIT_START, MC.EXIT_START + MC.EXIT, 'All parts reverse together, no stagger', 'ease-exit'));
table($('keyTable'), ['Part', 'Move', 'Curve', '24 in', '24 out', '30 in', '30 out', '60 in', '60 out'], rows, 3);
var fmts = [[1920, 1080, 'HD 16:9'], [3840, 2160, 'UHD 16:9'], [1080, 1920, 'HD 9:16'], [2160, 3840, 'UHD 9:16']];
table($('pxTable'), ['Format', 'Lockup width', 'Left, top', 'Bar Position X start', 'Rise, name / desc.', 'Fusion Y start, name / desc.'],
fmts.map(function (f) {
var l = MC.layout(f[0], f[1]), rn = MC.LOGO.name.h * l.s, rd = MC.LOGO.descriptor.h * l.s;
return [f[0] + ' x ' + f[1], l.width.toFixed(0), l.left.toFixed(0) + ', ' + l.top.toFixed(0),
'-' + l.travel.toFixed(1), rn.toFixed(1) + ' / ' + rd.toFixed(1),
(0.5 - rn / f[1]).toFixed(3) + ' / ' + (0.5 - rd / f[1]).toFixed(3)];
}), 1);
/* Page 3 */
var durs = [
['Beat', '--mc-video-stagger', 'Gap between staggered parts. The unit every other value is built from.'],
['Exit', '--mc-video-exit', 'Anything leaving. Lower thirds out, intro sting out, captions out.'],
['Enter', '--mc-video-enter', 'Type and plates rising into place. MARATHON and CREATIVE.'],
['Travel', '--mc-video-bar-sweep', 'Anything crossing the frame. Pacing bars, the navy plate, wipes.'],
['Sting', '--mc-video-sting', 'Shortest time the lockup is on screen, from first bar.'],
['Title hold', '--mc-video-hold-title', 'Title and section cards, at rest.'],
['Lower third hold', '--mc-video-hold-lower-third', 'Name and role, at rest. Longer if the line is long.']
];
table($('durTable'), ['Role', 'Token', 'Use', 'ms', 'Beats', '24fps', '30fps', '60fps'], durs.map(function (d) {
var b = Math.round(MC.ms(d[1]) / MC.ms('--mc-video-stagger'));
return [d[0], '<code>' + d[1] + '</code>', d[2], MC.ms(d[1]), b, MC.frames(b, 24), MC.frames(b, 30), MC.frames(b, 60)];
}), 3);
var eases = [
['--mc-ease-pace', 'Pace', 'Slow off the line, quick through the middle, slow into place. Anything that crosses frame.', MC.SWEEP],
['--mc-ease-enter', 'Enter', 'Arrives fast, settles long. Type and plates rising into place.', MC.ENTER],
['--mc-ease-exit', 'Exit', 'Leaves gently, then goes. Everything leaving frame.', MC.EXIT],
['--mc-ease-standard', 'Standard', 'Quick start, long settle. Small moves inside a card.', MC.ENTER]
];
eases.forEach(function (e) {
var c = V.h('div', 'c3 ease-card'), b = MC.bez(e[0]);
c.innerHTML = '<h3>' + e[1] + '</h3><div class="plot"></div><div class="bz">cubic-bezier(' + b.join(', ') + ')</div><p>' + e[2] + '</p>' +
'<div class="pts">At half time, ' + Math.round(MC.ease(b, 0.5) * 100) + '% of travel.</div>';
V.curve(c.querySelector('.plot'), e[0], e[3]);
$('easeCards').appendChild(c);
});
$('exitBeats').textContent = one(MC.EXIT) + ' beats, ' + B1.f24 * MC.EXIT + ' / ' + B1.f30 * MC.EXIT + ' / ' + B1.f60 * MC.EXIT + ' frames,';
$('holdTitle').textContent = sec(MC.HOLD_TITLE);
$('holdLT').textContent = sec(MC.HOLD_LT);
/* Page 4 */
var allFmts = [[1920, 1080], [3840, 2160], [1080, 1920], [2160, 3840]];
function reel(w, h) {
var k = w / MC.ms('--mc-social-reel-w');
return { k: k, top: MC.ms('--mc-social-reel-safe-top') * k, bot: MC.ms('--mc-social-reel-safe-bottom') * k,
side: MC.ms('--mc-social-reel-safe-side') * k, crop: MC.ms('--mc-social-reel-grid-crop-h') * k };
}
function box4(a) { return a.map(function (v) { return Math.round(v); }).join(', '); }
table($('safeAll'), ['Format', 'Ratio', 'Keep out, top / bottom', 'Keep out, sides', 'Safe box x, y, w, h', 'Lockup x, y, w, h'], allFmts.map(function (f) {
var l = MC.layout(f[0], f[1]), sb, tb, sd;
if (f[1] > f[0]) { var r = reel(f[0], f[1]); sb = [r.side, r.top, f[0] - 2 * r.side, f[1] - r.top - r.bot]; tb = Math.round(r.top) + ' / ' + Math.round(r.bot); sd = Math.round(r.side); }
else { sb = [f[0] * 0.05, f[1] * 0.05, f[0] * 0.9, f[1] * 0.9]; tb = Math.round(f[1] * 0.05) + ' / ' + Math.round(f[1] * 0.05); sd = Math.round(f[0] * 0.05); }
return [f[0] + ' x ' + f[1], f[1] > f[0] ? '9:16' : '16:9', tb, sd, box4(sb), box4([l.left, l.top, l.width, l.height])];
}), 2);
(function () {
var cols = [[1080, 1920], [2160, 3840]].map(function (f) { return { f: f, r: reel(f[0], f[1]), l: MC.layout(f[0], f[1]) }; });
function row(label, fn) { return [label].concat(cols.map(function (c) { return fn(c.r, c.l, c.f[0], c.f[1]); })); }
var rows = [
row('Top UI, y', function (r) { return '0 to ' + Math.round(r.top); }),
row('Bottom UI, y', function (r, l, w, h) { return '' + Math.round(h - r.bot) + ' to ' + h; }),
row('Side margin, x', function (r) { return Math.round(r.side); }),
row('Safe box x, y', function (r) { return Math.round(r.side) + ', ' + Math.round(r.top); }),
row('Safe box w x h', function (r, l, w, h) { return Math.round(w - 2 * r.side) + ' x ' + Math.round(h - r.top - r.bot); }),
row('Grid 3:4, y', function (r, l, w, h) { return '' + Math.round((h - r.crop) / 2) + ' to ' + Math.round((h + r.crop) / 2); }),
row('Lockup x, y', function (r, l) { return Math.round(l.left) + ', ' + Math.round(l.top); }),
row('Lockup w x h', function (r, l) { return Math.round(l.width) + ' x ' + Math.round(l.height); }),
row('Lockup mid y', function (r, l) { return Math.round(l.top + l.height / 2); }),
row('Clear space', function (r, l) { return Math.round(l.clear); })
];
table($('safe916'), ['Edge', 'HD<br>1080 x 1920', 'UHD<br>2160 x 3840'], rows, 1);
})();
[2, 4, 6, 8, 11].forEach(function (b) { $('story916').appendChild(band('frames/s916-b' + pad(b) + '.png', 1080, 1920, b, 'Beat ' + b, b === 11 ? 'At rest, holding' : V.caption(b))); });
(function () { var n = V.h('div', 'brow note916'); n.innerHTML = '<p class="cap"><strong>Same keys, same frames as 16:9.</strong> Only the scale changes: the lockup is two thirds of frame width and bar travel is measured from this frame edge, the values on page 2. Crops run the full 1080 width, cut to the lockup band.</p>'; $('story916').appendChild(n); })();
/* Page 5 */
[[-2, 'Last shot holds', 'Footage freezes on its last frame. No dissolve.'], [-1, 'Navy plate travels', 'Left to right, pace curve, two beats.'],
[0, 'Plate lands', 'Clean navy. Bar 5 leaves on this frame.'], [3, 'Bars in travel', 'The sting runs exactly as on page 1.'],
[MC.RESOLVED, 'Resolved', 'Hold to the end of the file.']].forEach(function (o) {
$('outro').appendChild(frameCell('frames/o16-b' + o[0] + '.png', o[1], o[0], o[2]));
});
[['footage', 'On footage', 'The lockup never sits on a busy shot without the navy plate behind it.'],
['overshoot', 'Overshoot', 'No bounce, no settle past rest. The bars stop at the name and never cross the gap.'],
['zoom', 'Zoom or blur', 'No scale punch, no motion blur, no focus pull on the mark.'],
['glow', 'Glow', 'No glow, shadow, or light sweep. The bars stay Marathon Red, never Red Bright.'],
['spin', 'Spin or 3D', 'No rotation and no perspective. The lockup is always flat to camera.'],
['right', 'Wrong way', 'Bars never come from the right and never pass over MARATHON.']].forEach(function (w) {
var d = V.h('div', 'c4 never');
d.innerHTML = '<div style="position:relative"><img src="frames/w-' + w[0] + '.png" alt=""><span class="x">Never</span></div><p class="cap"><strong>' + w[1] + '.</strong> ' + w[2] + '</p>';
$('never').appendChild(d);
});
/* Per frame values at 30fps */
(function () {
var cols = eases.slice(0, 3).map(function (e) { return { n: e[1], b: MC.bez(e[0]), f: MC.frames(e[3], 30) }; });
var max = Math.max.apply(null, cols.map(function (c) { return c.f; })), rows = [];
for (var i = 0; i <= max; i++) rows.push(['Frame ' + i].concat(cols.map(function (c) { return i <= c.f ? Math.round(MC.ease(c.b, i / c.f) * 100) + '%' : ''; })));
table($('perFrame'), ['30fps'].concat(cols.map(function (c) { return c.n + ', ' + c.f + 'f'; })), rows, 1);
})();
/* Page 7 */
/* Page 8, the rendered masters. Every count comes from motion.js, the same numbers as page 2. */
var mrows = [];
[['16x9', '3840 x 2160'], ['9x16', '2160 x 3840']].forEach(function (r) {
[24, 30, 60].forEach(function (fps) {
var n = MC.frames(MC.STING, fps);
mrows.push(['marathon-sting-' + r[0] + '-' + fps + 'p.mov', r[1], fps, n, 'f0 to f' + (n - 1), 'f' + MC.frames(MC.RESOLVED, fps), MC.tc(MC.RESOLVED, fps), (n / fps).toFixed(1) + 's']);
});
});
table($('masterTable'), ['File', 'Frame', 'fps', 'Frames', 'Range', 'Resolved', 'Resolve TC', 'Length'], mrows, 2);
$('navyHex2').textContent = MC.tok('--mc-navy-100').toUpperCase().replace('#', 'Hex ');
$('navyHex').textContent = MC.tok('--mc-navy-100').toUpperCase().replace('#', 'Hex ');
function handle(b) {
var a = b[1] === 0 ? 'flat, ' + Math.round(b[0] * 100) + '%' : 'slope, ' + Math.round(b[0] * 100) + '%';
var z = b[3] === 1 ? 'flat, ' + Math.round((1 - b[2]) * 100) + '%' : 'slope, ' + Math.round((1 - b[2]) * 100) + '%';
if (b[0] === 0 && b[1] === 0) a = '0%, pulled in';
if (b[2] === 1 && b[3] === 1) z = '0%, pulled in';
return [a, z];
}
table($('handles'), ['Curve', 'First key, out', 'Second key, in'], eases.map(function (e) { var h = handle(MC.bez(e[0])); return [e[1], h[0], h[1]]; }), 9);
})();
sting.js137 lines, 8.5 KB
/* Builds the sting from seven masked views of the one shipped logo file and exposes window.__seek. */
(function () {
var MC = window.MC, L = MC.LOGO;
var q = new URLSearchParams(location.search);
var LOGO_SRC = '../../../tokens/v/best/logos/marathon-logo-white.svg';
var PHOTO_DIR = 'photos/'; /* copies of brief/real-photos files, never hotlinked */
var stage = document.getElementById('stage'), lockup = document.getElementById('lockup');
var plate = document.getElementById('plate'), photo = document.getElementById('photo');
var bg = q.get('bg') || 'navy', scene = q.get('scene') || '', wrong = q.get('wrong') || '';
var only = q.get('layer') || '', withExit = q.get('exit') === '1', at = parseFloat(q.get('at') || '0');
var lay = MC.layout(window.innerWidth, window.innerHeight);
if (scene === 'outro' || bg === 'photo' || wrong === 'footage') {
photo.src = PHOTO_DIR + (q.get('photo') || 'mc_rosehill_16.jpg'); photo.hidden = false;
}
if (scene === 'outro') plate.hidden = false;
stage.className = 'stage ' + (bg === 'none' ? 'bg-none' : (bg === 'photo' || wrong === 'footage' || scene === 'outro') ? 'bg-none' : 'bg-navy');
lockup.style.left = lay.left + 'px'; lockup.style.top = lay.top + 'px';
lockup.style.width = lay.width + 'px'; lockup.style.height = lay.height + 'px';
function pct(v, of) { return (v / of * 100) + '%'; }
var nodes = {};
MC.T.forEach(function (el) {
if (only && only !== el.id) return;
var p = el.part, img = document.createElement('img');
img.src = LOGO_SRC; img.alt = '';
if (el.kind === 'bar') {
/* A clip around one bar row. The bar keeps its full length at every frame, it only travels. */
var d = document.createElement('div'); d.className = 'part';
var x0 = p.x - 0.15, x1 = L.barEnd + 0.3, y0 = p.y - 0.4, y1 = p.y + p.h + 0.4;
d.style.clipPath = 'inset(' + pct(y0, L.h) + ' ' + pct(L.w - x1, L.w) + ' ' + pct(L.h - y1, L.h) + ' ' + pct(x0, L.w) + ')';
d.appendChild(img); lockup.appendChild(d); nodes[el.id] = d;
} else {
/* A fixed window at the word's baseline. The word rises through it. */
var win = document.createElement('div'), inner = document.createElement('div');
win.className = 'win'; inner.className = 'inner';
win.style.left = pct(p.x, L.w); win.style.top = pct(p.y, L.h); win.style.width = pct(p.w, L.w); win.style.height = pct(p.h, L.h);
inner.style.left = -(p.x * lay.s) + 'px'; inner.style.top = -(p.y * lay.s) + 'px';
inner.style.width = lay.width + 'px'; inner.style.height = lay.height + 'px';
inner.style.clipPath = 'inset(' + pct(p.y, L.h) + ' ' + pct(L.w - p.x - p.w, L.w) + ' ' + pct(L.h - p.y - p.h, L.h) + ' ' + pct(p.x, L.w) + ')';
inner.appendChild(img); win.appendChild(inner); lockup.appendChild(win); nodes[el.id] = inner;
}
});
/* Matte layers for Resolve: a solid window where a word is allowed to show. */
if (only.indexOf('matte-') === 0) {
var mp = L[only.slice(6)], m = document.createElement('div');
m.style.cssText = 'position:absolute;background:var(--mc-white);left:' + pct(mp.x, L.w) + ';top:' + pct(mp.y, L.h) + ';width:' + pct(mp.w, L.w) + ';height:' + pct(mp.h, L.h);
lockup.appendChild(m);
}
/* The never list. Each case breaks one rule on purpose, for the spec page only. */
var wrongMove = { overshoot: 0.22, right: 0.55 };
if (wrong === 'zoom') { lockup.style.transform = 'scale(1.45)'; lockup.style.filter = 'blur(3px)'; }
if (wrong === 'glow') lockup.style.filter = 'drop-shadow(0 0 ' + (lay.clear * 0.45) + 'px var(--mc-accent-on-inverse)) drop-shadow(0 0 ' + (lay.clear * 0.15) + 'px var(--mc-accent-on-inverse))';
if (wrong === 'spin') { lockup.style.transform = 'perspective(' + (lay.width * 2) + 'px) rotateY(58deg)'; }
function seek(t) {
t = t + at * MC.BEAT;
MC.T.forEach(function (el) {
var n = nodes[el.id]; if (!n) return;
var st = MC.state(el, t, withExit);
/* Fully off frame or fully under the mask means hidden, so no antialiased sliver shows on a key frame. */
n.style.visibility = (st.in <= 0 || st.out >= 1) && !wrong ? 'hidden' : 'visible';
if (el.kind === 'bar') {
var x = -lay.travel * (1 - st.in) - lay.travel * st.out;
if (wrong === 'overshoot') x = lay.travel * wrongMove.overshoot;
if (wrong === 'right') x = lay.travel * wrongMove.right * (1 + 0.25 * MC.LOGO.bars.indexOf(el.part));
n.style.transform = 'translate3d(' + x + 'px,0,0)';
} else {
var rise = el.part.h * lay.s;
var y = rise * (1 - st.in) + rise * st.out;
if (wrong === 'right') y = 0;
n.style.transform = 'translate3d(0,' + y + 'px,0)';
}
});
if (scene === 'outro') {
var p = MC.ease(MC.bez('--mc-ease-pace'), (t / MC.BEAT + 2) / 2);
plate.style.transform = 'translate3d(' + (-100 * (1 - p)) + '%,0,0)';
}
return Promise.all(Array.prototype.map.call(document.images, function (im) { return im.decode ? im.decode().catch(function () {}) : 0; }));
}
window.__seek = seek;
var specGuides = q.get('guides') === '2';
if (q.get('guides') === '1' || specGuides) drawGuides();
function box(cls, x, y, w, h) {
var g = document.createElement('div'); g.className = 'guide ' + cls;
g.style.left = x + 'px'; g.style.top = y + 'px'; g.style.width = w + 'px'; g.style.height = h + 'px';
document.getElementById('guides').appendChild(g); return g;
}
function label(text, x, y, red) {
var g = document.createElement('div'); g.className = 'glabel' + (red ? ' red' : '');
g.textContent = text; g.style.left = x + 'px'; g.style.top = y + 'px';
g.style.fontSize = (specGuides ? Math.round(lay.w / 36) : Math.max(11, Math.round(lay.w / 128))) + 'px';
document.getElementById('guides').appendChild(g);
}
function drawGuides() {
var W = lay.w, H = lay.h, c = lay.clear, fs = specGuides ? Math.round(W / 36) : Math.max(11, Math.round(W / 128));
box('clear', lay.left - c, lay.top - c, lay.width + 2 * c, lay.height + 2 * c);
label('Clear space, one M height', lay.left - c, lay.top - c - fs * 1.9, true);
if (!lay.portrait) {
var a = 0.035, ti = 0.05;
box('', W * a, H * a, W * (1 - 2 * a), H * (1 - 2 * a));
box('title', W * ti, H * ti, W * (1 - 2 * ti), H * (1 - 2 * ti));
label('Action safe 93%', W * a + fs * 0.6, H * a + fs * 0.4);
label('Title safe 90%', W * ti + fs * 0.6, H * ti + fs * 0.6 + fs * 1.4);
} else {
var k = W / MC.ms('--mc-social-reel-w');
var top = MC.ms('--mc-social-reel-safe-top') * k, bot = MC.ms('--mc-social-reel-safe-bottom') * k, side = MC.ms('--mc-social-reel-safe-side') * k;
var cropH = MC.ms('--mc-social-reel-grid-crop-h') * k;
var t1 = document.createElement('div'); t1.className = 'ui-band glabel'; t1.style.top = '0'; t1.style.height = top + 'px'; t1.style.fontSize = fs + 'px';
/* guides=2 is the spec page version: larger labels that carry the pixel value of every edge. */
var px = function (v) { return Math.round(v / k); };
t1.innerHTML = '<span>' + (specGuides ? 'Platform UI, y 0 to ' + px(top) : 'Platform UI') + '</span>'; document.getElementById('guides').appendChild(t1);
var t2 = document.createElement('div'); t2.className = 'ui-band glabel'; t2.style.bottom = '0'; t2.style.height = bot + 'px'; t2.style.fontSize = fs + 'px';
t2.innerHTML = '<span>' + (specGuides ? 'Caption and buttons, y ' + px(H - bot) + ' to ' + px(H) : 'Caption and buttons') + '</span>'; document.getElementById('guides').appendChild(t2);
box('title', side, top, W - 2 * side, H - top - bot);
box('crop', 0, (H - cropH) / 2, W, cropH);
if (!specGuides) {
label('Reel safe', side + fs * 0.6, top + fs * 0.6);
label('Profile grid crop 3:4', fs * 0.6, (H + cropH) / 2 - fs * 1.8);
} else {
label('Reel safe ' + px(W - 2 * side) + ' x ' + px(H - top - bot), side + fs * 0.6, top + fs * 0.6);
label('x ' + px(side) + ', y ' + px(top), side + fs * 0.6, top + fs * 2.0);
label('Grid crop 3:4, y ' + px((H - cropH) / 2) + ' to ' + px((H + cropH) / 2), side + fs * 0.6, (H + cropH) / 2 - fs * 1.7);
label('Side ' + px(side), side + fs * 0.6, H - bot - fs * 3.1);
label('Lockup centre y ' + px(lay.top + lay.height / 2), lay.left - c, lay.top + lay.height + c + fs * 0.6, true);
}
}
}
var startT = q.has('b') ? parseFloat(q.get('b')) * MC.BEAT : parseFloat(q.get('t') || '0');
seek(startT);
})();
viz.js78 lines, 4.9 KB
/* Timeline chart, curve plots, and beat captions, all generated from motion.js. No value typed twice. */
(function () {
var MC = window.MC;
function h(tag, cls, html) { var e = document.createElement(tag); if (cls) e.className = cls; if (html != null) e.innerHTML = html; return e; }
function pct(v, max) { return (v / max * 100) + '%'; }
function shortLabel(el) { return el.kind === 'bar' ? el.label.replace(/, .*/, '') : el.label; }
/* What happens on a given beat, in plain words. */
function caption(b) {
var starts = [], lands = [], moving = [];
MC.T.forEach(function (el) {
if (el.start === b) starts.push(shortLabel(el));
else if (el.start + el.dur === b) lands.push(shortLabel(el));
else if (el.start < b && b < el.start + el.dur) moving.push(shortLabel(el));
});
var out = [];
if (b === 0) return 'Clean navy. Bar 5 leaves from off frame left.';
if (lands.length) out.push(lands.join(' and ') + (lands.length > 1 ? ' land' : ' lands'));
if (starts.length) out.push(starts.join(' and ') + (starts.length > 1 ? ' start' : ' starts'));
if (!out.length && moving.length) out.push(moving.join(', ') + ' in travel');
if (b === MC.RESOLVED) return 'CREATIVE lands. Lockup resolved, nothing moves after this.';
if (b > MC.RESOLVED) return 'Hold. The lockup sits still.';
return out.join('. ') + '.';
}
function fr(b) { return { f24: MC.frames(b, 24), f30: MC.frames(b, 30), f60: MC.frames(b, 60) }; }
/* Gantt of the sting. Rows per part, beats across, frame rulers under. */
function gantt(host, opt) {
opt = opt || {};
var max = opt.max || (MC.EXIT_START + MC.EXIT), wrap = h('div', 'gantt');
function row(label, cls) {
var r = h('div', 'g-row ' + (cls || '')); r.appendChild(h('div', 'g-lab', label));
var tr = h('div', 'g-track'); r.appendChild(tr); wrap.appendChild(r); return tr;
}
function seg(tr, a, b, cls, txt) {
var s = h('div', 'g-seg ' + cls, txt || ''); s.style.left = pct(a, max); s.style.width = pct(b - a, max); tr.appendChild(s);
}
MC.T.forEach(function (el) {
var tr = row(el.label, el.kind);
seg(tr, el.start, el.start + el.dur, 'move', opt.easeText ? el.ease.replace('--mc-', '') : '');
seg(tr, el.start + el.dur, MC.EXIT_START, 'hold');
seg(tr, MC.EXIT_START, MC.EXIT_START + MC.EXIT, 'exit');
});
var ruler = row('Beat', 'ruler');
for (var b = 0; b <= max; b++) { var t = h('div', 'g-tick', String(b)); t.style.left = pct(b, max); ruler.appendChild(t); }
[24, 30, 60].forEach(function (fps) {
var rr = row(fps + 'fps frame', 'ruler fps');
for (var b = 0; b <= max; b += (opt.every || 1)) { var t = h('div', 'g-tick', String(MC.frames(b, fps))); t.style.left = pct(b, max); rr.appendChild(t); }
});
var lines = h('div', 'g-lines');
for (var b = 0; b <= max; b++) { var l = h('div', 'g-line'); l.style.left = pct(b, max); lines.appendChild(l); }
[[MC.RESOLVED, 'Resolved'], [MC.STING, 'Min. hold'], [MC.EXIT_START + MC.EXIT, 'Exit clear']].forEach(function (m) {
var k = h('div', 'g-mark' + (m[0] >= MC.STING ? ' end' : '')); k.style.left = pct(m[0], max); k.appendChild(h('span', '', m[1])); lines.appendChild(k);
});
wrap.appendChild(lines);
var key = h('div', 'g-key', '<span class="sw move"></span>Move <span class="sw hold"></span>Hold at rest <span class="sw exit"></span>Exit, intro use only');
host.appendChild(wrap); if (!opt.noKey) host.appendChild(key);
}
/* A cubic bezier drawn from its token, with frame dots at 30fps over a given beat length. */
function curve(host, tokenName, beatsN) {
var b = MC.bez(tokenName), W = 160, H = 80, P = 8, n = MC.frames(beatsN, 30);
var pts = [];
for (var i = 0; i <= 60; i++) { var x = i / 60; pts.push([x, MC.ease(b, x)]); }
function X(x) { return P + x * (W - 2 * P); } function Y(y) { return H - P - y * (H - 2 * P); }
var d = pts.map(function (p, i) { return (i ? 'L' : 'M') + X(p[0]).toFixed(1) + ' ' + Y(p[1]).toFixed(1); }).join(' ');
var dots = '';
for (var f = 0; f <= n; f++) { var x = f / n; dots += '<circle cx="' + X(x).toFixed(1) + '" cy="' + Y(MC.ease(b, x)).toFixed(1) + '" r="1.8" style="fill:var(--mc-data-highlight)"/>'; }
host.innerHTML = '<svg viewBox="0 0 ' + W + ' ' + H + '" class="curve">' +
'<rect x="' + P + '" y="' + P + '" width="' + (W - 2 * P) + '" height="' + (H - 2 * P) + '" style="fill:none;stroke:var(--mc-data-gridline)"/>' +
'<path d="M' + X(0) + ' ' + Y(0) + ' L' + X(b[0]) + ' ' + Y(b[1]) + ' M' + X(1) + ' ' + Y(1) + ' L' + X(b[2]) + ' ' + Y(b[3]) + '" style="stroke:var(--mc-data-3);stroke-width:1;fill:none"/>' +
'<path d="' + d + '" style="fill:none;stroke:var(--mc-data-1);stroke-width:2"/>' + dots + '</svg>';
}
window.MCViz = { caption: caption, gantt: gantt, curve: curve, fr: fr, h: h };
})();
build.sh27 lines, 1.6 KB
#!/bin/bash
# Renders every still in this piece. Run from anywhere: bash build/motion-sting/v/r06/build.sh
# Stills only. The brief (INVENTORY item 18) asks for direction Philip builds in Resolve, not rendered video.
set -e
cd "$(dirname "$0")/../../../.."
R=build/motion-sting/v/r06
F=$R/frames
mkdir -p $F $R/renders $R/layers
jobs=()
# The sting at 16:9, one frame per beat, beats 0 to 11.
for b in 0 1 2 3 4 5 6 7 8 9 10 11; do jobs+=("$R/sting.html?b=$b|$F/s16-b$(printf %02d $b).png|1920|1080"); done
# The sting at 9:16, five storyboard beats.
for b in 2 4 6 8 11; do jobs+=("$R/sting.html?b=$b|$F/s916-b$(printf %02d $b).png|1080|1920"); done
# Safe area guides.
jobs+=("$R/sting.html?b=11&guides=1|$F/g16.png|1920|1080" "$R/sting.html?b=11&guides=1|$F/g916.png|1080|1920")
# Outro handoff from real footage.
for b in -2 -1 0 3 9; do jobs+=("$R/sting.html?b=$b&scene=outro&photo=mc_rosehill_16.jpg|$F/o16-b$b.png|1920|1080"); done
# Intro exit.
for b in 12 13 14; do jobs+=("$R/sting.html?b=$b&exit=1|$F/x16-b$b.png|1920|1080"); done
# The never list.
for w in footage overshoot zoom glow spin right; do jobs+=("$R/sting.html?b=11&wrong=$w&photo=mc_rosehill_17.jpg|$F/w-$w.png|1920|1080"); done
printf '%s\n' "${jobs[@]}" | xargs -P 6 -I{} bash -c 'IFS="|" read -r u o w h <<< "{}"; node build/_shared/render.mjs png "$u" "$o" "$w" "$h" 0 >/dev/null'
echo "frames done"
# Spec page 9:16 safe area frame, labels carry pixel values, rendered at 2x for print.
node build/_shared/render.mjs png "$R/sting.html?b=11&guides=2" "$F/g916-spec.png" 1080 1920 0 2 >/dev/null
echo "spec guide done"
layers.sh19 lines, 1.0 KB
#!/bin/bash
# Exports the Resolve layer pack: every part of the shipped lockup at rest, registered full frame, with alpha.
# Usage: bash build/motion-sting/v/r06/layers.sh <scratch dir>
set -e
cd "$(dirname "$0")/../../../.."
R=build/motion-sting/v/r06; T=${1:-/tmp}/mc-layers; mkdir -p $T
for fmt in 3840x2160 2160x3840; do
w=${fmt%x*}; h=${fmt#*x}; tag=$([ $w -gt $h ] && echo uhd-16x9 || echo uhd-9x16)
mkdir -p $R/layers/$tag
for L in bar1 bar2 bar3 bar4 bar5 name descriptor matte-name matte-descriptor all; do
q="layer=$L"; [ $L = all ] && q="layer="
n=$(echo "bar5 bar4 bar3 bar2 bar1 name descriptor matte-name matte-descriptor all" | tr ' ' '\n' | grep -nx $L | cut -d: -f1)
[ -f $R/layers/$tag/$(printf %02d $n)-$L.png ] && continue
for try in 1 2 3; do node build/_shared/capture.mjs "$R/sting.html?$q&at=12&bg=none" $T/$tag-$L 1 1 $w $h 1 >/dev/null 2>&1 && break; done
mv $T/$tag-$L/f00001.png $R/layers/$tag/$(printf %02d $n)-$L.png
done
done
echo layers done
master.sh42 lines, 2.0 KB
#!/bin/bash
# Renders the sting masters from sting.html: ProRes 4444 with alpha, alpha PNG sequences, and preview MP4s.
# Usage: bash build/motion-sting/v/r06/master.sh <scratch dir>
# Length is the hold token, 12 beats, read from tokens.css so it always matches the spec beat table.
set -e
cd "$(dirname "$0")/../../../.."
R=build/motion-sting/v/r06; T=${1:-/tmp}/mc-master; FF=/opt/homebrew/bin/ffmpeg
OUT=$R/renders/masters; SEQ=$R/renders/seq; mkdir -p $T $OUT $SEQ
# One beat is the stagger token snapped to whole frames at 24fps. The master runs MC.STING beats.
SECS=$(python3 - <<PY
import re
css = open('build/tokens/v/best/tokens.css').read()
ms = lambda n: float(re.search(r'--mc-video-' + n + r':\s*([0-9.]+)ms', css).group(1))
beat = round(ms('stagger') * 24 / 1000) / 24
print(round(ms('sting') / ms('stagger')) * beat)
PY
)
job() {
local tag=$1 w=$2 h=$3 fps=$4 name=marathon-sting-$1-$4p
node build/_shared/capture.mjs "$R/sting.html?bg=none" $T/$name $fps $SECS $w $h 1 >/dev/null
$FF -loglevel error -y -framerate $fps -i $T/$name/f%05d.png -c:v prores_ks -profile:v 4444 \
-pix_fmt yuva444p10le -alpha_bits 16 -vendor apl0 -timecode 00:00:00:00 $OUT/$name.mov
# Alpha PNG sequence, numbered from 0000 so the file number is the frame number in the spec.
mkdir -p $SEQ/$name; rm -f $SEQ/$name/*.png
local n=$(ls $T/$name | wc -l)
for ((i = 0; i < n; i++)); do mv $T/$name/f$(printf %05d $((i + 1))).png $SEQ/$name/$name.$(printf %04d $i).png; done
echo "$name done"
}
export -f job; export R T FF OUT SEQ SECS
for fps in 24 30 60; do
job 16x9 3840 2160 $fps &
job 9x16 2160 3840 $fps &
done
wait
# Preview MP4s on Marathon Navy, 30fps, HD.
for spec in 16x9:1920:1080 9x16:1080:1920; do
IFS=: read tag w h <<< "$spec"
node build/_shared/capture.mjs "$R/sting.html?bg=navy" $T/prev-$tag 30 $SECS $w $h 0 >/dev/null
$FF -loglevel error -y -framerate 30 -i $T/prev-$tag/f%05d.png -c:v libx264 -crf 16 -pix_fmt yuv420p -movflags +faststart $R/renders/preview-$tag.mp4
done
echo masters done
verify.sh25 lines, 1.5 KB
#!/bin/bash
# Proves the masters: codec, alpha, frame count, and that the resolve frame in the spec is the first frame at rest.
# Usage: bash build/motion-sting/v/r06/verify.sh Writes renders/masters/ffprobe.txt
cd "$(dirname "$0")"
O=renders/masters/ffprobe.txt
echo "Encoded -pix_fmt yuva444p10le, prores_ks profile 4444, alpha_bits 16. ffprobe reports the decoder format, yuva444p12le, for every ProRes 4444 file. The a in yuva is the alpha plane." > $O
for f in renders/masters/*.mov; do
echo "== $(basename $f)" >> $O
ffprobe -v error -select_streams v:0 -count_frames -show_entries stream=codec_name,codec_tag_string,profile,width,height,pix_fmt,r_frame_rate,nb_read_frames:stream_tags=timecode,alpha_mode:format=duration -of default=nw=1 $f >> $O
done
python3 - >> $O <<'PY'
import glob, os
from PIL import Image, ImageChops
print('== alpha PNG sequences, first frame empty, resolve frame equals last frame')
for d in sorted(glob.glob('renders/seq/*')):
fs = sorted(glob.glob(d + '/*.png')); n = len(fs); fps = int(d.split('-')[-1][:-1])
res = round(9 * 4 / 24 * fps) # beat 9, MC.RESOLVED
A = lambda i: Image.open(fs[i]).getchannel('A')
first = A(0).getbbox(); last = A(n - 1)
at = ImageChops.difference(A(res), last).getbbox(); before = ImageChops.difference(A(res - 1), last).getbbox()
print(os.path.basename(d), 'frames', n, 'mode', Image.open(fs[0]).mode, 'frame 0 empty', first is None,
'f%d at rest' % res, at is None, 'f%d still moving' % (res - 1), before is not None)
PY
cat $O














