/* fledgetone.com: the home page's styles. The colours are the studio's own (tailwind.config.js). */

:root {
  --bg: #121214;
  --panel: #1a1a1e;
  --panel-2: #222228;
  --border: #2a2a30;
  --border-2: #3a3a44;
  --text: #e4e4e7;
  --muted: #9ca3af;
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --purple: #a855f7;
  --red: #ef4444;
  --sans: 'Outfit', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --wrap: 1180px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); padding: .1em .4em; border-radius: 5px; }
::selection { background: rgba(6, 182, 212, .3); color: #cffafe; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #04131a; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.mono-label {
  display: block;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 16px/1 var(--sans);
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #04131a; box-shadow: 0 0 24px rgba(6, 182, 212, .35); }
.btn-primary:hover { background: #22d3ee; box-shadow: 0 0 32px rgba(6, 182, 212, .5); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 20, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { filter: brightness(1.7); }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 40px;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(6, 182, 212, .14), transparent 70%),
    radial-gradient(50% 40% at 85% 10%, rgba(168, 85, 247, .12), transparent 70%);
}
.hero::before {
  /* Bar lines, like the timeline's ruler */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
}
.hero-copy { position: relative; text-align: center; max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(26, 26, 30, .7);
  font: 500 13px/1.4 var(--mono);
  letter-spacing: .06em;
  color: var(--text);
}
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; background: var(--cyan); border-radius: 1px; animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.bars i:nth-child(2) { height: 90%; animation-delay: -.5s; background: var(--green); }
.bars i:nth-child(3) { height: 60%; animation-delay: -.8s; background: var(--amber); }
.bars i:nth-child(4) { height: 100%; animation-delay: -.3s; background: var(--purple); }
.bars i:nth-child(5) { height: 50%; animation-delay: -.65s; }
@keyframes bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.bars i { transform-origin: bottom; }

h1, h2, .show-lede, .lede { text-wrap: balance; }
h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
  /* A solid colour, not a gradient clipped to the text: phone browsers drop slices of clipped text
     while the animated timeline behind it repaints */
  color: #eef2f6;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The headline's last word: a clip on a timeline lane, coloured by what it names, with trim handles;
   a playhead sweeps across it and cuts to the next word */
.cycle {
  --w: var(--green);
  position: relative; display: inline-block; vertical-align: baseline;
  padding: 0 .36em .04em;
  border: 2px solid color-mix(in srgb, var(--w) 60%, transparent);
  border-radius: .14em;
  background: color-mix(in srgb, var(--w) 14%, transparent);
  overflow: hidden; white-space: nowrap; text-decoration: none; line-height: 1.12;
  transition: width .45s cubic-bezier(.2, .8, .2, 1), border-color .35s, background-color .35s;
}
.cycle::before, .cycle::after {
  content: ''; position: absolute; top: 24%; bottom: 24%; width: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--w) 75%, #fff);
}
.cycle::before { left: 3px; }
.cycle::after { right: 3px; }
.cycle-word {
  display: inline-block;
  color: var(--w); -webkit-text-fill-color: var(--w);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.cycle-word.out { transform: translateY(-70%); opacity: 0; }
.cycle-word.in { transform: translateY(70%); opacity: 0; transition: none; }
.cycle-head { position: absolute; top: 0; bottom: 0; left: -3px; width: 3px; background: var(--red); box-shadow: 0 0 10px var(--red); opacity: 0; }
.cycle-head.sweep { animation: cycle-sweep .6s linear; }
@keyframes cycle-sweep { 0% { left: -3px; opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.h1-clip { display: block; margin-top: .12em; }
.tagline { margin: 16px 0 0; text-wrap: balance; font: 500 clamp(13px, 1.6vw, 15px)/1.4 var(--mono); letter-spacing: .03em; color: var(--muted); }
.lede { margin: 24px auto 0; max-width: 680px; font-size: clamp(17px, 2vw, 20px); color: #c4c4cc; font-weight: 300; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fineprint { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.hero .fineprint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.hero .fineprint a:hover { text-decoration-color: var(--cyan); }
/* The open-source badge: a small clip on a timeline lane, with trim handles at its ends */
.oss-clip {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 18px;
  height: 30px;
  padding: 0 4px;
  border: 1px solid var(--border-2);
  border-top: 2px solid rgba(16, 185, 129, .55);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(16, 185, 129, .10), rgba(26, 26, 30, .6));
  font: 500 12px/1 var(--mono);
  letter-spacing: .05em;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.oss-clip:hover, .oss-clip:focus-visible { color: var(--text); border-color: var(--green); }
.oss-handle { width: 3px; height: 14px; border-radius: 2px; background: var(--border-2); transition: background .15s; }
.oss-clip:hover .oss-handle, .oss-clip:focus-visible .oss-handle { background: var(--green); }
.oss-notes { fill: var(--green); opacity: .75; }
.oss-name { color: var(--text); text-transform: uppercase; }
.oss-meta { padding-right: 4px; }
@media (max-width: 420px) { .oss-meta { display: none; } }

/* Screenshots */
.shot { margin: 0; }
.shot-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
}
.shot-hero { margin: 56px auto 0; position: relative; }
.shot-hero::before {
  content: ''; position: absolute; inset: 8% 10% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(6, 182, 212, .28), rgba(168, 85, 247, .16), transparent);
  filter: blur(40px);
}
.shot-hero .shot-frame { box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(6, 182, 212, .15); }

/* Readouts, like the studio's BAR.BEAT.TICK boxes */
.readouts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0;
  overflow: hidden;
}
.readout { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-right: 1px solid var(--border); }
.readout:last-child { border-right: 0; }
.ro-label { font: 500 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ro-value { font: 500 34px/1.1 var(--mono); color: var(--text); }
.ro-cyan { color: var(--cyan); }

/* Intro */
.intro { max-width: 820px; padding-top: 72px; padding-bottom: 16px; text-align: center; }
.intro p { margin: 0; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.55; color: #c4c4cc; font-weight: 300; }
.intro strong { color: var(--text); font-weight: 600; }

/* Section titles */
.section-title { margin: 0 0 20px; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.section-title .mono-label { margin-bottom: 12px; color: var(--cyan); }

/* Feature tracks: a coloured strip down the side, like a track header. The text sits above a
   full-width screenshot (the panels are wide and short), its list in a column of its own. */
.features { padding-top: 96px; }
.features > .section-title { text-align: center; margin-bottom: 56px; }
.track {
  padding: 36px 0 40px 32px;
  border-left: 4px solid var(--c);
  margin-bottom: 48px;
  position: relative;
}
.track::before {
  content: ''; position: absolute; left: -4px; top: 0; bottom: 0; width: 160px; pointer-events: none;
  background: linear-gradient(to right, color-mix(in srgb, var(--c) 9%, transparent), transparent);
}
.track-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; position: relative; }
.track-copy > :not(ul) { grid-column: 1; }
.track-copy > ul { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-bottom: 18px; }
.track .shot { margin-top: 28px; position: relative; }
.track-id { margin: 0 0 10px; font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.track h3 { margin: 0 0 14px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.track p { margin: 0 0 18px; color: #c4c4cc; }
.track em { font-style: normal; font-family: var(--mono); font-size: .88em; color: var(--text); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 4px; border-radius: 2px; background: var(--c); }
.track .shot-frame { box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }

/* Small cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card h3 { margin: 4px 0 8px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Credits */
.credits { padding-top: 120px; }
.credits > p { color: #c4c4cc; max-width: 640px; margin: 0; }
.credit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 36px 0 28px; }
.credit-cols h3 { margin: 0 0 12px; }
.credit-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.credits .fineprint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }

/* Install */
.install { padding-top: 120px; }
.install-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: end; }
.install-head > .section-title, .install-head > p { grid-column: 1; }
.install-head > p { margin: 0; color: #c4c4cc; max-width: 640px; }
.install-action { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.install-advice { margin: 14px 0 0; min-height: 1.6em; font-size: 15px; color: var(--muted); }
.install-advice:empty { display: none; }
.install-advice strong { color: var(--text); font-weight: 600; }
.install-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.install-list li { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: var(--radius); padding: 20px 20px 18px; }
.install-list h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.install-list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.install .fineprint { margin-top: 20px; }
@media (max-width: 1000px) {
  .install-head { grid-template-columns: 1fr; }
  .install-action { grid-column: 1; grid-row: auto; margin-top: 24px; }
}

/* Final call */
.final { text-align: center; padding-top: 128px; padding-bottom: 112px; }
.final img { margin: 0 auto 18px; filter: brightness(1.7) drop-shadow(0 0 24px rgba(6, 182, 212, .35)); }
.final h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.final p { margin: 10px 0 0; color: var(--muted); font-size: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-row .brand { font-size: 16px; }
.foot-row p { margin: 0; color: var(--muted); font-size: 14px; margin-right: auto; }
.foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-row nav a { color: var(--muted); font-size: 14px; }
.foot-row nav a:hover { color: var(--text); }
.foot-note { margin: 18px auto 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; opacity: .8; }
.foot-end { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-credit { margin-left: auto; font-size: 11px; letter-spacing: .02em; opacity: .7; }

/* Narrower screens */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .track-copy { grid-template-columns: 1fr; }
  .track-copy > ul { grid-column: 1; grid-row: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 56px; }
  .shot-hero { margin-top: 40px; }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  .readout:nth-child(2) { border-right: 0; }
  .readout:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .ro-value { font-size: 28px; }
  .track { padding-left: 18px; }
  .cards, .credit-cols { grid-template-columns: 1fr; }
  .foot-row p { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Motion ---------- */

/* Clips */
video.clip { display: block; width: 100%; height: auto; background: var(--panel); }

/* Fade up as sections arrive (main.js adds .motion, so nothing hides without it) */
.motion .reveal, .motion .track, .motion .card, .motion .section-title, .motion .intro p {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.motion .in { opacity: 1 !important; transform: none !important; }
.motion .card.in:hover { transform: translateY(-2px) !important; }

/* Hero: a playhead sweeps the bar lines */
.hero::after {
  content: ''; position: absolute; top: 0; height: 58%; width: 2px; left: 0;
  background: linear-gradient(to bottom, rgba(239, 68, 68, .55), transparent);
  box-shadow: 0 0 14px rgba(239, 68, 68, .45);
  animation: sweep 9s linear infinite; pointer-events: none;
  z-index: 0;
}
/* (the text, buttons and pictures sit above the bar lines and the playhead) */
.hero > * { position: relative; z-index: 1; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(100vw); } }
/* With main.js the playhead is drawn on the piano roll instead */
.hero-roll { position: absolute; left: 0; top: 0; width: 100%; height: 0; display: block; pointer-events: none; }
.has-roll::after { display: none; }
.has-roll.pencil { cursor: crosshair; }
.has-roll.pencil :is(a, button, video, .shot-frame) { cursor: pointer; }

/* Ticker of where the music goes */
.ticker {
  margin-top: 56px; overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--bg), var(--panel) 20%, var(--panel) 80%, var(--bg));
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 34px; padding: 16px 0; animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 500 12px/22px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); padding-left: 34px; }
.ticker b { font: 600 17px/22px var(--sans); color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.ticker b::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Showcases: video and games */
.showcase {
  position: relative; margin-top: 110px; padding: 100px 0 90px;
  background:
    radial-gradient(60% 45% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    linear-gradient(180deg, transparent, #0e0e10 40%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--c) 25%, var(--border));
}
.showcase + .showcase { margin-top: 0; }
.show-head { text-align: center; max-width: 820px; margin: 0 auto; }
.show-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  font: 700 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--c) 8%, transparent);
}
.showcase h2 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.show-lede { margin: 20px auto 0; max-width: 700px; font-size: clamp(17px, 2vw, 20px); color: #c4c4cc; font-weight: 300; }
.show-lede em { font-style: normal; color: var(--text); font-weight: 500; }

.player { margin: 52px 0 0; }
.player .shot-frame {
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 0 80px -20px color-mix(in srgb, var(--c) 35%, transparent);
}

/* The step bar: a little timeline under the clip, its segments as long as the steps */
.steps {
  position: relative; display: flex; gap: 6px; margin-top: 14px;
  padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
}
.step {
  --fill: 0;
  position: relative; flex: 1 1 auto; overflow: hidden;
  padding: 11px 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--bg); color: var(--muted);
  font: 500 13px/1.3 var(--mono); text-align: left; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.step i {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--c); transform-origin: left; transform: scaleX(var(--fill)); opacity: .9;
}
.step:hover { color: var(--text); }
.step.on { color: var(--text); background: color-mix(in srgb, var(--c) 14%, var(--bg)); }
.steps-head {
  position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; margin-left: -1px;
  background: var(--red); box-shadow: 0 0 10px rgba(239, 68, 68, .7); pointer-events: none;
}
.steps-head::before {
  content: ''; position: absolute; top: -2px; left: -5px; width: 12px; height: 9px;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.points { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.points li { color: var(--muted); font-size: 15px; line-height: 1.6; padding-top: 16px; border-top: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.points strong { display: block; color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: 6px; }

.showcase + .intro, .showcase ~ .features { padding-top: 110px; }

@media (max-width: 1000px) {
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .showcase { margin-top: 72px; padding: 72px 0 60px; }
  .player { margin-top: 36px; }
  .steps { flex-direction: column; }
  .step { flex: none !important; white-space: normal; }
  .steps-head { display: none; }
  .points { grid-template-columns: 1fr; gap: 20px; }
  .ticker b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .ticker-track { animation: none; }
}

/* The scroll synth: canvases main.js draws on (bars: a spectrum, wave: an oscilloscope) */
.scope { position: relative; width: 100%; pointer-events: none; }
.scope canvas { display: block; width: 100%; height: 100%; }
.scope-bars { height: 140px; margin-top: 48px; }
.scope-bars + .ticker { margin-top: 0; }
.scope-mirror { height: 110px; margin-top: 96px; transform: scaleY(-1); opacity: .7; }
.scope-wave { position: absolute; left: 0; right: 0; top: -1px; height: 90px; }
.showcase { overflow: hidden; }
@media (max-width: 640px) {
  .scope-bars { height: 100px; }
  .scope-wave { height: 70px; }
}

/* ---------- Beside the page (wide screens): the ruler ---------- */

/* The ruler: the page as a song, bars down the side, sections as markers */
.side-ruler {
  display: flex; position: fixed; z-index: 40; left: 18px; top: 84px; bottom: 24px; width: 100px;
  flex-direction: column; gap: 14px;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.sr-read { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(26, 26, 30, .85); }
.sr-label { font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.sr-bar { font-size: 17px; color: var(--text); line-height: 1.2; }
.sr-tc { font-size: 10px; color: var(--cyan); }
.sr-track { position: relative; flex: 1; margin-left: 4px; border-left: 1px solid var(--border-2); }
.sr-ticks i { position: absolute; left: 0; top: var(--pos); width: 5px; height: 1px; background: var(--border-2); }
.sr-ticks i.mid { width: 9px; background: #4a4a56; }
.sr-ticks i.major { width: 14px; background: var(--muted); }
.sr-ticks i[data-n]::after { content: attr(data-n); position: absolute; left: 17px; top: -6px; font-size: 9px; color: var(--muted); }
.sr-flag {
  position: absolute; left: 40px; top: var(--pos); transform: translateY(-50%);
  padding: 2px 6px; border-radius: 3px; font-size: 10px; letter-spacing: .04em; white-space: nowrap;
  color: #0b0b0d; background: var(--c); opacity: .55; transition: opacity .2s ease, transform .2s ease;
  text-decoration: none; pointer-events: auto;
}
.sr-flag::before { content: ''; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: var(--c); }
.sr-flag:hover { opacity: 1; text-decoration: none; }
.sr-flag.on { opacity: 1; transform: translateY(-50%) translateX(3px); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
.sr-head { position: absolute; top: var(--pos); left: -6px; right: 0; height: 2px; margin-top: -1px; background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, .7); }
.sr-head::before { content: ''; position: absolute; left: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--red); }

.sr-sec { display: none; }

/* Narrower screens: the ruler lies across the top, under the menu bar */
@media (max-width: 1399px) {
  .hero::after { display: none; }
  html { scroll-padding-top: 108px; }
  .side-ruler {
    position: static; width: auto; height: 32px; flex-direction: row; align-items: stretch; gap: 0;
    border-top: 1px solid var(--border);
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .sr-read { flex-direction: row; align-items: center; gap: 8px; padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; border-right: 1px solid var(--border); }
  .sr-label, .sr-tc { display: none; }
  .sr-bar { font-size: 13px; }
  .sr-sec { display: block; font-size: 11px; color: var(--c, var(--cyan)); min-width: 7ch; }
  .sr-track { margin: 0 0 0 12px; border-left: 0; }
  .sr-ticks i { top: auto; bottom: 0; left: var(--pos); width: 1px; height: 4px; }
  .sr-ticks i.mid { width: 1px; height: 7px; }
  .sr-ticks i.major { width: 1px; height: 11px; }
  .sr-ticks i[data-n]::after { left: 3px; top: -10px; font-size: 8px; }
  .sr-flag {
    top: 3px; left: var(--pos); transform: translateX(-50%);
    width: 14px; height: 14px; padding: 0; border-radius: 50%; font-size: 0; color: transparent;
    background: none; opacity: 1;
  }
  .sr-flag::before { left: 50%; top: 4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 2px; background: var(--c); opacity: .5; }
  .sr-flag.on { transform: translateX(-50%); box-shadow: none; }
  .sr-flag.on::before { opacity: 1; box-shadow: 0 0 8px var(--c); }
  .sr-head { top: 0; bottom: 0; left: var(--pos); right: auto; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .sr-head::before { left: -4px; top: -1px; border: 5px solid transparent; border-top-color: var(--red); border-left-color: transparent; }
}
@media (max-width: 640px) {
  .sr-ticks i[data-n]::after { display: none; }
}

/* AI disclosure under footage that was generated */
.ai-note { margin-top: 10px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); letter-spacing: .02em; }
.ai-note::before { content: 'AI'; display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-2); font-size: 10.5px; font-weight: 700; color: var(--text); }

/* Films scored in Fledgetone */
.scored-set { margin-top: 72px; }
.scored-head { max-width: 720px; margin-bottom: 28px; }
.scored-head h3 { margin: 0 0 10px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.01em; }
.scored-head p { margin: 0; color: #c4c4cc; }
.scored-head .show-eyebrow { margin-bottom: 14px; }
.scored-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scored {
  margin: 0; padding: 16px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); background: color-mix(in srgb, var(--c) 6%, var(--panel));
}
.scored figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 4px 4px; flex: 1; }
.scored h4 { margin: 0; font-size: 20px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.scored h4 span { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.scored p { margin: 0; color: #c4c4cc; font-size: 15px; line-height: 1.6; flex: 1; }
.sound-btn .wave { opacity: .35; }
.sound-btn[aria-pressed="true"] .wave { opacity: 1; }
.scored-link { font-size: 14px; }
.scored .ai-note { margin-top: 0; }
.scored-tip { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Cut to length: one song and its shorter versions, each bar as long as the version lasts */
.cutdown { margin-top: 72px; }
.cut-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cut-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px; }
.cut-label { font-family: var(--mono); font-size: 13px; color: var(--text); display: flex; flex-direction: column; line-height: 1.25; }
.cut-label span { color: var(--muted); font-size: 12px; }
.cut-track { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.cut-bar { display: flex; gap: 2px; height: 30px; min-width: 44px; }
.cut-seg { flex-basis: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; border-radius: 5px; padding: 0 8px; font-family: var(--mono); font-size: 12px; line-height: 30px; color: #0b0b0d; font-weight: 600; }
.cut-intro { background: #71717a; }
.cut-verse { background: var(--cyan); }
.cut-chorus { background: var(--purple); }
.cut-brk { background: var(--amber); }
.cut-drop { background: var(--red); }
.cut-outro { background: var(--green); }
.cut-short { display: none; }
@media (max-width: 640px) {
  .cutdown { margin-top: 48px; }
  .cut-row { grid-template-columns: 72px 1fr; gap: 10px; }
  .cut-seg { padding: 0 4px; font-size: 11px; text-align: center; }
  .cut-long { display: none; }
  .cut-short { display: inline; }
}
@media (max-width: 900px) {
  .scored-grid { grid-template-columns: minmax(0, 1fr); }
  .scored-set { margin-top: 48px; }
}

/* Work in progress */
.wip-bar {
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--text);
  background: color-mix(in srgb, var(--amber) 14%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--amber) 35%, var(--border));
}
.wip-tag {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px;
  font: 700 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #1a1306; background: var(--amber);
}
.eyebrow-wip {
  margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .08em;
  color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent);
}
@media (max-width: 640px) {
  .eyebrow-wip { display: none; }
}

/* ---------- Learn: the lessons' cards (written in by scripts/build-site.mjs) ---------- */
.learn { padding-block: 40px 72px; }
.l-home { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.l-home a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.l-home a:hover { text-decoration: none; border-color: var(--cyan); transform: translateY(-2px); }
.l-home h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.l-home p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.l-home .l-num { color: var(--cyan); }
.learn-all { margin: 24px 0 0; }
@media (max-width: 900px) { .l-home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .l-home { grid-template-columns: 1fr; } }

/* A real studio, not an AI generator */
.real { padding-top: 96px; }
.real-head { max-width: 760px; margin: 0 auto; text-align: center; }
.real-head > p { margin: 0; color: #c4c4cc; font-size: clamp(17px, 2vw, 19px); }
.real-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.real-list li { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: var(--radius); padding: 20px 20px 18px; }
.real-list h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.real-list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Picture beside the words: the tall showcase video, and Pocket on a phone */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split-copy .show-eyebrow { margin-bottom: 14px; }
.split-copy h2 { text-align: left; }
.split-copy .show-lede { margin: 20px 0 28px; }
.split-copy .ticks { font-size: 16px; gap: 10px; }
.split-copy .ticks li::before { background: var(--c); }
.split-media { max-width: 380px; width: 100%; justify-self: center; }
.split-media figcaption { align-items: center; }
.phone-frame { border-radius: 28px; aspect-ratio: 9 / 16; }
.phone-frame video, .phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-grid { margin-top: 24px; }
.game-grid img { display: block; width: 100%; height: auto; }
.game-grid .player { margin: 0; }
.game-grid .steps { margin-top: 0; }
.game-grid .step { white-space: normal; font-size: 12px; padding: 9px 10px; }
.track-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--shot-w, 300px); gap: 56px; align-items: center; }
.track-split .track-copy { display: block; }
.track-split .track-copy > ul { margin-bottom: 0; }
.track-split .phone-shot, .track-split > .shot { margin: 0; }
.track-split .phone-frame { aspect-ratio: 390 / 844; }
@media (max-width: 1100px) {
  .real-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media { max-width: 320px; }
  .track-split { grid-template-columns: 1fr; gap: 28px; }
  .track-split .phone-shot { max-width: 280px; }
}
@media (max-width: 640px) {
  .real { padding-top: 72px; }
  .real-list { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
}

/* The audience pages (/games/, /creators/, /film/) */
.page-hero h1 { font-size: clamp(36px, 5.6vw, 64px); }
.page-hero .lede { max-width: 720px; }
.page-hero .eyebrow .who { color: var(--c, var(--cyan)); }
.page-hero .shot-hero .shot-frame, .page-hero .player .shot-frame { box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--c, var(--cyan)) 25%, transparent); }
.page-section { padding-top: 96px; }
.page-section > .section-title { text-align: center; }
.page-section > .section-lede { max-width: 760px; margin: 0 auto 40px; text-align: center; color: #c4c4cc; font-size: clamp(17px, 2vw, 19px); }
.shot img { display: block; width: 100%; height: auto; }
.shot-tall { max-width: 460px; justify-self: center; }
.code {
  margin: 0 0 18px; padding: 16px 18px; overflow-x: auto;
  background: #0b0b0d; border: 1px solid var(--border); border-left: 3px solid var(--c, var(--cyan)); border-radius: 10px;
  font: 500 13.5px/1.7 var(--mono); color: #d4d4d8; white-space: pre;
}
.code .c { color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { padding: 7px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--panel); font-size: 14px; color: var(--text); }
.chips li span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.note-line { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.note-line a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.next-step { margin-top: 18px; }
/* Home page: one card for each audience page */
.aud { padding-top: 96px; }
.aud > .section-title { text-align: center; }
.aud-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.aud-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.aud-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); border-radius: var(--radius) var(--radius) 0 0; }
.aud-card:hover { border-color: var(--c); transform: translateY(-2px); text-decoration: none; }
.aud-card .aud-who { font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.aud-card h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 700; }
.aud-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.aud-card .aud-go { color: var(--c); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .aud-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .aud-card { transition: none; } }
/* A film with sound as an audience page's hero */
.hero-film.scored { padding: 0; border: 0; background: none; margin-top: 56px; }
.hero-film figcaption { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 0; }
.hero-film .ai-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-tall .shot-frame { max-width: 340px; margin: 0 auto; }
.engine-code { margin-top: 32px; max-width: 780px; min-width: 0; }
.page-hero .shot-hero, .page-hero .hero-film.scored { margin: 56px auto 0; }
.final .fineprint { font-size: 14px; max-width: 640px; margin: 18px auto 0; }
.final .fineprint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
/* What a page's tool isn't, said once near the top */
.isnt { margin: 14px auto 0; max-width: 640px; padding: 10px 14px; border: 1px dashed var(--border-2); border-radius: 10px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
/* The Tools page (/tools/, written by scripts/tools-site.mjs): a card per download */
.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
}
.tool-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); border-radius: var(--radius) var(--radius) 0 0; }
.tool-card .tool-who { margin: 0; font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.tool-card h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
.tool-card > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tool-card .tool-in { margin-top: 4px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tool-card .ticks { font-size: 14.5px; flex: 1; align-content: start; }
.tool-card .tool-note { font-size: 14px; padding: 8px 12px; border: 1px dashed var(--border-2); border-radius: 10px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tool-actions .btn svg, .tool-get .btn svg { flex: none; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.tool-licence { max-width: 760px; margin: 0 auto; padding-bottom: 96px; color: #c4c4cc; }
.tool-licence a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.tool-licence .ticks { font-size: 16px; gap: 10px; margin: 0 0 8px; }
.tool-licence .ticks strong { color: var(--text); }
@media (max-width: 860px) { .tool-cards { grid-template-columns: 1fr; } }
