/* Klipp's website. The look is the app's own: its dark surfaces, the lime accent, the timeline's clip colours,
   pills for actions, square corners for pictures, Roboto Flex at its heaviest for headings, Google Sans Flex for the
   rest (both bundled, SIL OFL 1.1 – see fonts/). */

@font-face {
  font-family: "Klipp Sans";
  src: url("fonts/klipp-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 86% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Klipp Heavy";
  src: url("fonts/klipp-heavy.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #0f1012;
  --deep: #0a0b0d;
  --surface: #18191c;
  --high: #222327;
  --highest: #2d2e33;
  --line: #47484e;
  --text: #ededf0;
  --text-2: #b1b3bb;
  --text-3: #8a8c94;
  --lime: #d5f15e;
  --on-lime: #1b2000;
  --lime-c: #3c4700;
  --lime-soft: #e6f6a0;
  --violet: #b79cff;
  --blue: #74b2ff;
  --coral: #ff8a76;
  --teal: #7dd5c6;
  --pink: #f2b8d8;
  --mark: #f2f2f2;

  --sans: "Klipp Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --heavy: "Klipp Heavy", "Klipp Sans", system-ui, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 28px;
  --radius-s: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  font-stretch: 96%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 999px; font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: var(--heavy);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 7.2vw, 92px); line-height: 0.96; }
h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1; }
h3 { font: 650 21px/1.25 var(--sans); font-stretch: 88%; margin: 0 0 6px; letter-spacing: -0.005em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 36em; }
.muted { color: var(--text-2); }
.lime { color: var(--lime); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- pills and buttons (the app's: fully round, lime for the one that acts) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 650 17px/1 var(--sans); font-stretch: 90%;
  text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), background-color .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: #e0f77a; }
.btn-tonal { background: var(--high); color: var(--text); }
.btn-tonal:hover { background: var(--highest); }
.btn-soon {
  background: transparent; color: var(--text-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: default;
}
.btn-soon small { font: 500 13px/1 var(--sans); color: var(--text-3); margin-left: 2px; }
.btn-soon:active { transform: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--lime-c); color: var(--lime);
  font: 600 15px/1 var(--sans); font-stretch: 90%;
}
.chip svg { width: 20px; height: 20px; }
.chip-quiet { background: var(--high); color: var(--text-2); padding: 0 14px; }

/* ---------- top bar: the app's own top row (projects · Edit | Color | Audio · export) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--high); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 var(--heavy); letter-spacing: -0.02em; }
.brand-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--highest); display: grid; place-items: center; }
.brand-icon img { width: 30px; height: auto; }
.tabs { display: flex; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-width: 52px; padding: 0 14px;
  border-radius: 16px; background: var(--high); color: var(--text);
  text-decoration: none; font: 600 16px/1 var(--sans); font-stretch: 90%;
  transition: background-color .25s, color .25s, padding .3s cubic-bezier(.3,1.4,.5,1), border-radius .3s;
}
.tab svg { width: 24px; height: 24px; flex: none; }
.tab .label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .35s cubic-bezier(.3,1.2,.5,1), opacity .2s; white-space: nowrap; }
.tab[aria-current="true"] { background: var(--lime-c); color: var(--lime); border-radius: 999px; padding: 0 20px 0 16px; }
.tab[aria-current="true"] .label { max-width: 7em; opacity: 1; }
.tab:hover:not([aria-current="true"]) { background: var(--highest); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { color: var(--text-2); text-decoration: none; font: 600 14px/1 var(--sans); padding: 10px 8px; border-radius: 10px; }
.lang:hover { color: var(--text); }
.get {
  display: inline-grid; place-items: center; width: 52px; height: 48px; border-radius: 16px;
  background: var(--high); color: var(--text); text-decoration: none;
}
.get:hover { background: var(--highest); }
.get svg { width: 24px; height: 24px; }
@media (max-width: 720px) {
  .brand-name { display: none; }
  .tab { height: 44px; min-width: 46px; padding: 0 11px; }
  .tab[aria-current="true"] { padding: 0 16px 0 13px; }
  .get { width: 46px; height: 44px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .lang { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .chip { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-3); font-size: 15px; margin: 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--line); }
.hero-phone { justify-self: center; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { max-width: 320px; }
}

/* a phone: the screenshot in a dark rounded body */
.phone {
  position: relative; width: 100%; max-width: 360px;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2a2b30, #141518 40%, #1d1e22);
  box-shadow: 0 0 0 1px #34353b, 0 40px 80px -30px rgba(0,0,0,.8), 0 0 120px -40px rgba(213,241,94,.18);
}
.phone img { width: 100%; height: auto; border-radius: 36px; background: var(--bg); aspect-ratio: 720 / 1487; }

/* ---------- the timeline band (the app icon's idea at full size: clips, their sound, the playhead) ---------- */
.timeline {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--high); border-bottom: 1px solid var(--high);
  background: var(--deep);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.tl {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr;
  padding: 0 0 18px;
}
.tl-heads { display: grid; grid-template-rows: 34px repeat(4, 52px); gap: 6px; padding-top: 8px; }
.tl-heads span { display: flex; align-items: center; padding-left: var(--gutter); font: 600 15px/1 var(--sans); color: var(--text-2); }
.tl-heads span:first-child { visibility: hidden; }
.tl-view { overflow: hidden; min-width: 0; }
.tl-body { position: relative; display: grid; width: max(100%, 880px); will-change: transform; grid-template-rows: 34px repeat(4, 52px); gap: 6px; padding-top: 8px; min-width: 0; }
.ruler { position: relative; border-bottom: 1px solid var(--high); }
.ruler i {
  position: absolute; bottom: 0; height: 8px; border-left: 1px solid var(--line);
}
.ruler i.major { height: 14px; border-color: var(--text-3); }
.ruler b {
  position: absolute; bottom: 16px; transform: translateX(4px);
  font: 500 13px/1 var(--mono); color: var(--text-3);
}
.lane { position: relative; }
.clip {
  position: absolute; top: 0; bottom: 0;
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: flex-start;
}
.clip .name {
  position: relative; z-index: 1; margin: 7px 8px; padding: 4px 8px; border-radius: 8px;
  font: 600 13px/1.1 var(--sans); font-stretch: 90%; white-space: nowrap;
  background: rgba(15,16,18,.55); color: var(--text);
}
.clip.video { background: var(--high); }
.clip.video .thumbs { position: absolute; inset: 0; background-size: auto 100%; background-repeat: repeat-x; opacity: .95; }
.clip.title { background: color-mix(in srgb, var(--violet) 28%, var(--surface)); color: var(--violet); align-items: center; }
.clip.title .name { background: none; color: var(--violet); font-size: 14px; }
.clip.audio { background: #262c0b; align-items: center; }
.clip.music { background: #2a2342; align-items: center; }
.clip.audio .name, .clip.music .name { position: absolute; top: 0; left: 0; background: none; color: var(--text-2); }
.clip svg.wave { position: absolute; left: 0; right: 0; top: 10px; bottom: 6px; width: 100%; height: calc(100% - 16px); }
.clip.audio svg.wave { color: var(--lime); opacity: .75; }
.clip.music svg.wave { color: var(--violet); opacity: .7; }
/* selection: drawn inside the clip, with rounded lime trim bars */
.clip.selected { box-shadow: inset 0 0 0 3px var(--lime); }
.clip.selected::before, .clip.selected::after {
  content: ""; position: absolute; top: 8px; bottom: 8px; width: 6px; border-radius: 3px; background: var(--lime); z-index: 2;
}
.clip.selected::before { left: 6px; }
.clip.selected::after { right: 6px; }
.clip.selected .name { background: var(--lime); color: var(--on-lime); margin-left: 18px; }
.playhead {
  position: absolute; top: 0; bottom: -18px; left: 30%; width: 0; z-index: 3;
  pointer-events: none; will-change: left;
}
.playhead::before { content: ""; position: absolute; left: -1px; top: 26px; bottom: 0; width: 2px; background: var(--mark); border-radius: 1px; }
.playhead .time {
  position: absolute; top: 2px; left: 0; transform: translateX(-50%);
  background: var(--mark); color: #0f1012; border-radius: 999px; padding: 6px 10px;
  font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-caption { text-align: center; color: var(--text-3); font-size: 14px; padding: 0 var(--gutter) 22px; margin: 0; }
@media (max-width: 720px) {
  .tl { grid-template-columns: 48px 1fr; }
  .tl-heads span { padding-left: 14px; font-size: 13px; }
  .tl-heads, .tl-body { grid-template-rows: 30px repeat(4, 44px); gap: 5px; }
  .clip .name { font-size: 12px; margin: 5px 6px; }
}

/* ---------- sections ---------- */
section.block { padding: clamp(72px, 10vw, 140px) 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip .split-media { order: -1; }
.split-media { display: flex; justify-content: center; gap: 20px; }
.split-media .phone { max-width: 340px; }
.split-media.two .phone { max-width: 260px; }
.split-media.two .phone:last-child { margin-top: 64px; }
.block .chip { margin-bottom: 22px; }
.block h2 { margin-bottom: 22px; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .split-media .phone { max-width: 300px; }
  .split-media.two .phone { max-width: 46%; }
  .split-media.two .phone:last-child { margin-top: 40px; }
}

/* a close-up of a screen: square-cornered picture in a rounded surface */
.panel-shot { margin: 0; width: 100%; max-width: 460px; padding: 10px; border-radius: 34px; background: var(--surface); box-shadow: 0 0 0 1px var(--high), 0 40px 80px -40px rgba(0,0,0,.8); }
.panel-shot img { width: 100%; height: auto; border-radius: 26px; }

/* lists of short points: each with a small clip for a bullet */
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.points li::before { content: ""; width: 26px; height: 12px; margin-top: 7px; border-radius: 5px; background: var(--c, var(--lime)); opacity: .9; }
.points strong { color: var(--text); font-weight: 650; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.tags li { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--high); color: var(--text-2); font: 500 14px/1 var(--sans); font-stretch: 92%; }
.tags-label { margin: 28px 0 0; font-size: 14px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tags-label + .tags { margin-top: 10px; }

/* ---------- audio: an effect rack drawn as in the app ---------- */
.rack {
  width: 100%; max-width: 440px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 0 0 1px var(--high), 0 40px 80px -40px rgba(0,0,0,.8);
}
.rack-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; }
.rack-head b { font: 650 17px/1 var(--sans); font-stretch: 88%; }
.rack-head span { font: 500 13px/1 var(--mono); color: var(--text-3); }
.fx { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; background: var(--high); border-radius: var(--radius-s); padding: 14px 16px; margin-top: 8px; }
.fx b { font: 600 16px/1.2 var(--sans); font-stretch: 90%; }
.fx small { grid-column: 1; color: var(--text-3); font-size: 13px; }
.fx .sw { grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 32px; border-radius: 16px; background: var(--lime); position: relative; }
.fx .sw::after { content: ""; position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 12px; background: var(--on-lime); }
.fx .sw.off { background: var(--highest); box-shadow: inset 0 0 0 2px var(--line); }
.fx .sw.off::after { right: auto; left: 6px; top: 6px; width: 20px; height: 20px; background: var(--text-3); }
.fx .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--highest); margin-top: 8px; overflow: hidden; }
.fx .bar i { display: block; height: 100%; width: var(--v, 40%); background: var(--lime); border-radius: 3px; }
.meters { display: flex; gap: 6px; align-items: flex-end; height: 64px; padding: 16px 6px 0; }
.meters i { flex: 1; border-radius: 3px; height: var(--h); opacity: .85; transform-origin: bottom;
  background: linear-gradient(to top, var(--lime) 0 34px, #f2c230 34px 42px, var(--coral) 42px) bottom / 100% 48px no-repeat, var(--highest); }
@media (prefers-reduced-motion: no-preference) {
  .meters i { animation: meter 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
}
@keyframes meter { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 26px 24px 24px;
  box-shadow: inset 0 0 0 1px var(--high);
}
.card::before { content: ""; display: block; width: 44px; height: 18px; border-radius: 7px; background: var(--c, var(--lime)); margin-bottom: 22px; }
.card p { color: var(--text-2); margin: 0; font-size: 16px; }
.section-head { max-width: 760px; }

/* ---------- privacy band ---------- */
.band {
  background: var(--surface); border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  box-shadow: inset 0 0 0 1px var(--high);
}
.band .points { margin-top: 0; }
@media (max-width: 880px) { .band { grid-template-columns: 1fr; } }

/* ---------- open source ---------- */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 36px; }
.credit { background: var(--surface); border-radius: var(--radius-s); padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--high); text-decoration: none; display: block; transition: background-color .2s; }
a.credit:hover { background: var(--high); }
.credit b { display: block; font-weight: 650; font-stretch: 90%; }
.credit span { color: var(--text-3); font-size: 14px; }

/* ---------- questions ---------- */
.faq { margin-top: 36px; display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--high); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; position: relative;
  font: 600 18px/1.35 var(--sans); font-stretch: 90%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--text-2); border-bottom: 2.5px solid var(--text-2); transform: rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- closing call and footer ---------- */
.closing { text-align: center; padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 120px); }
.closing h2 { font-size: clamp(38px, 6vw, 76px); margin-bottom: 18px; }
.closing .lead { margin: 0 auto 34px; }
.closing .cta { justify-content: center; }
footer { border-top: 1px solid var(--high); padding: 36px 0 48px; color: var(--text-3); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
footer .fine { flex-basis: 100%; margin: 0; font-size: 13px; }

/* ---------- a text page (privacy) ---------- */
.doc { max-width: 760px; padding: clamp(40px, 7vw, 88px) 0 40px; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 16px; }
.doc .updated { color: var(--text-3); margin-bottom: 40px; font-size: 15px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 14px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 650; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--lime); }
.doc a { color: var(--lime); text-underline-offset: 3px; }
.summary-box { background: var(--surface); border-radius: var(--radius); padding: 26px 28px; box-shadow: inset 0 0 0 1px var(--high); }
.summary-box .points { margin: 0; padding: 0; }
.perm { width: 100%; border-collapse: collapse; margin: 8px 0 1em; font-size: 16px; }
.perm th, .perm td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--high); }
.perm th { color: var(--text); font-weight: 650; width: 34%; }
.perm td { color: var(--text-2); }
@media (max-width: 560px) {
  .perm, .perm tbody, .perm tr, .perm th, .perm td { display: block; width: 100%; }
  .perm th { padding-bottom: 2px; border: 0; }
  .perm td { padding-top: 0; }
}

/* ---------- entrance: things settle into place as they are reached ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,1.2,.4,1); }
  .js .rise.in { opacity: 1; transform: none; }
}

/* ---------- film: the chain light takes, the effects, and the formats drawn to scale ---------- */
.film-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.film-head .lead { margin: 0; }
@media (max-width: 880px) { .film-head { grid-template-columns: 1fr; } }
.chain { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.chain li { position: relative; display: flex; min-width: 0; }
.chain li + li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 18px; height: 2px; background: var(--line); }
@media (max-width: 960px) {
  .chain { grid-template-columns: 1fr; gap: 12px; }
  .chain li + li::before { left: 30px; top: -12px; width: 2px; height: 12px; }
}
.node {
  flex: 1; min-width: 0; background: var(--surface); border-radius: var(--radius-s); padding: 16px 18px;
  box-shadow: inset 0 0 0 1px var(--high);
}
.node small { display: block; font: 500 12px/1 var(--mono); color: var(--text-3); letter-spacing: .04em; margin-bottom: 10px; }
.node b { display: block; font: 650 17px/1.2 var(--sans); font-stretch: 88%; }
.node span { display: block; color: var(--text-2); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.node.lit { background: var(--lime-c); box-shadow: none; }
.node.lit b { color: var(--lime); }
.node.lit span, .node.lit small { color: var(--lime-soft); opacity: .85; }
.film-grid { margin-top: 14px; }
.formats { margin-top: 56px; }
.formats-row { display: flex; align-items: flex-end; gap: clamp(10px, 2.4vw, 28px); flex-wrap: wrap; margin-top: 18px; }
.fmt { display: grid; gap: 10px; justify-items: start; }
/* the grain tile and the sun's glow keep one size in every frame: they are the film's, not the picture's */
.fmt i {
  --u: clamp(2.4px, .46vw, 3.8px);
  position: relative; overflow: hidden;
  display: block; width: calc(var(--mm) * var(--u)); max-width: 100%; aspect-ratio: var(--ar, 1.5); border-radius: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.45'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px, linear-gradient(165deg, #5b4a78, #b8676a 55%, #e9a36a 85%, #f3c98a);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14);
}
.fmt i::after {
  content: ""; position: absolute; right: 18%; top: 28%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
  background: #fff6e0; box-shadow: 0 0 4px 2px rgba(255,214,170,.9), 0 0 14px 6px rgba(255,92,56,.55);
}
.fmt b { font: 600 14px/1.2 var(--sans); font-stretch: 90%; }
.fmt span { font: 500 12px/1 var(--mono); color: var(--text-3); margin-top: -6px; }

/* a thank-you to the person whose work the film node stands on */
.thanks {
  margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  background: var(--surface); border-radius: var(--radius); padding: 26px 28px; box-shadow: inset 0 0 0 1px var(--high);
}
.thanks div { min-width: 0; flex: 1 1 420px; }
.thanks b { display: block; font: 650 19px/1.3 var(--sans); font-stretch: 88%; margin-bottom: 6px; }
.thanks p { margin: 0; color: var(--text-2); font-size: 16px; }
