/* Klankbaan · site v2: one ink ground, colour only where signal flows, and
   things you can push around. Built on base.css for the live components. */
:root { --sig: #C8FF00; --fg: #F5F1F4; --bg: #191919; --lp: #EDEAF4; --violetL: #9E6BFF; --pinkL: #FF4D9E;
  --fg-72: rgba(245,241,244,.72); --fg-50: rgba(245,241,244,.5); --fg-30: rgba(245,241,244,.3); --fg-14: rgba(245,241,244,.14); --fg-08: rgba(245,241,244,.08);
  --gut: clamp(20px, 3.4vw, 56px); --ease: cubic-bezier(.2, .7, .15, 1); --cut: 16px; }
html { color-scheme: dark; scroll-behavior: auto; }
body { background: var(--bg); color: var(--fg); }
body.fine, body.fine a, body.fine button, body.fine .card h3, body.fine input { cursor: none; }
::selection { background: var(--neon); color: var(--ink); }
.small { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.cut:not(.arr .lane .tr i) { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }   /* the lanes have their own tiny .cut (a notch), keep those straight */

/* ── the cursor: a signal shape that tells you what you're about to touch ── */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s; }
body.fine .cursor { opacity: 1; }
.cursor i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--fg); border-radius: 50%;
  transition: width .22s var(--ease), height .22s var(--ease), margin .22s var(--ease), background .22s, border-radius .22s, transform .22s var(--ease), border-color .22s; border: 0 solid transparent; }
.cursor.notes i   { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--blue); }
.cursor.audio i   { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--orange); border-radius: 1px; }
.cursor.control i { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--violetL); border-radius: 1px; transform: rotate(45deg); }
.cursor.fx i      { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--pinkL); border-radius: 1px; }
.cursor.clock i   { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--fg); border-radius: 1px; }
.cursor.link i    { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: transparent; border: 1.5px solid var(--fg); border-radius: 50%; }
.cursor.grab i    { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(245,241,244,.08); border: 1.5px solid var(--fg); border-radius: 50%; }
.cursor.hide i    { width: 0; height: 0; margin: 0; }

/* ── the bar ─────────────────────────────────────────────────────────────── */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px var(--gut); background: rgba(25,25,25,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--fg-08); }
.home-wm { display: block; height: 16px; width: auto; } .home-wm polygon, .home-wm path { fill: var(--fg); }
.menu { display: flex; gap: 22px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.menu a { text-decoration: none; color: var(--fg-72); position: relative; padding: 4px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--fg); transition: right .35s var(--ease); }
.menu a:hover::after, .menu a.on::after { right: 0; }
.go-cta { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 9px 12px; border: 1px solid var(--fg); color: var(--fg); transition: background .25s, color .25s; }
.go-cta:hover { background: var(--fg); color: var(--ink); }
@media (max-width: 720px) { .menu { display: none; } }

/* ── the hero ────────────────────────────────────────────────────────────── */
.intro { position: relative; min-height: 100svh; padding: 88px var(--gut) 28px; display: flex; flex-direction: column; overflow: hidden; }
.wm-big { position: relative; z-index: 1; }
.wm-big svg { display: block; width: 100%; height: auto; overflow: visible; }
.wm-big polygon, .wm-big path { fill: var(--lp); transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(40%); animation: wm-in 1.1s var(--ease) forwards; }
.wm-big rect, .wm-big circle { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: acc-in .7s var(--ease) 1s forwards; }
.wm-big svg > *:nth-child(1) { animation-delay: .05s } .wm-big svg > *:nth-child(2) { animation-delay: .12s } .wm-big svg > *:nth-child(3) { animation-delay: .19s } .wm-big svg > *:nth-child(4) { animation-delay: .26s } .wm-big svg > *:nth-child(5) { animation-delay: .33s } .wm-big svg > *:nth-child(6) { animation-delay: .4s } .wm-big svg > *:nth-child(7) { animation-delay: .47s } .wm-big svg > *:nth-child(8) { animation-delay: .54s } .wm-big svg > *:nth-child(9) { animation-delay: .61s }
.wm-big svg > *:nth-child(10) { animation-delay: 1.05s } .wm-big svg > *:nth-child(11) { animation-delay: 1.2s } .wm-big svg > *:nth-child(12) { animation-delay: 1.35s }
@keyframes wm-in { to { opacity: 1; transform: none; } }
@keyframes acc-in { 60% { transform: scale(1.25); opacity: 1; } to { transform: scale(1); opacity: 1; } }
.intro-body { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 40px; align-items: end; padding-top: 6vh; }
.h1 { margin: 0; font-size: clamp(38px, 6.4vw, 104px); font-weight: 600; letter-spacing: -.04em; line-height: .94; }
.intro-side { max-width: 40ch; padding-bottom: .5em; }
.intro-side p { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: var(--fg-72); }
.acts { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.btn { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--fg); padding: 12px 16px; transition: transform .25s var(--ease), background .25s; display: inline-block; }
.btn:hover { transform: translateY(-2px); background: var(--neon); }
.btn.ghost { background: none; color: var(--fg); border: 1px solid var(--fg-30); } .btn.ghost:hover { border-color: var(--fg); background: none; }
.meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; margin-top: 8vh; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50); }
.drift { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.d1 { right: 14%; top: 46%; } .d2 { left: 8%; top: 62%; } .d3 { right: 6%; bottom: 22%; }
.sh { display: block; width: 26px; height: 26px; animation: float 7s ease-in-out infinite; }
.sh.diamond { background: var(--violetL); transform: rotate(45deg); animation-name: float-d; } .sh.circle { background: var(--blue); border-radius: 50%; width: 32px; height: 32px; animation-delay: -2s; } .sh.square { background: var(--orange); animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes float-d { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.intro.wired @media (max-width: 899px) { .intro-body { grid-template-columns: minmax(0, 1fr); align-items: start; } .intro { padding-top: 76px; } .drift { display: none; } }

/* ── line reveals and fades ──────────────────────────────────────────────── */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; transform: translateY(115%); transition: transform 1s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .09s } .ln:nth-child(3) > span { transition-delay: .18s }
.in .ln > span, .in.ln > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ln > span, [data-reveal] { transform: none !important; opacity: 1 !important; transition: none; } .wm-big polygon, .wm-big path, .wm-big rect, .wm-big circle { animation: none; opacity: 1; transform: none; } .sh { animation: none; } }

/* ── sections ────────────────────────────────────────────────────────────── */
.sec { position: relative; padding: clamp(80px, 14vh, 160px) var(--gut); border-top: 1px solid var(--fg-14); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px 48px; align-items: end; margin-bottom: 40px; }
.tag { grid-column: 1 / -1; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50); display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.dot.audio { background: var(--orange); border-radius: 1px; } .dot.notes { background: var(--blue); } .dot.control { background: var(--violetL); border-radius: 1px; transform: rotate(45deg); } .dot.fx { background: var(--pinkL); border-radius: 1px; } .dot.paper { background: var(--fg); }
.h2 { margin: 0; font-size: clamp(34px, 5.2vw, 84px); font-weight: 600; letter-spacing: -.04em; line-height: .94; text-wrap: balance; }
.lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg-72); max-width: 44ch; }
.lead.big { font-size: clamp(18px, 1.5vw, 22px); color: var(--fg); max-width: 38ch; }
@media (max-width: 899px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* the live patch: the app's paper canvas set into the ink page */
.panel { position: relative; }
.panel .stagebox { border: 0; border-radius: 0; }
.card, .card h3 { color: var(--ink); }
.panel .deck { margin-top: 14px; }
.deck .ghostbtn, .deck .hint { color: var(--fg-50); border-color: var(--fg-30); }
.deck .play { background: var(--fg); color: var(--ink); }

/* the drawings: a strip you drag */
.gal-strip { margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); overflow: hidden; }
.galwrap { overflow: visible; }
.gallery { display: flex; gap: 14px; cursor: grab; }
.gallery.grabbing { cursor: grabbing; }
.gcard { flex: 0 0 236px; }
.mq-wrap { margin: 56px calc(-1 * var(--gut)) 0; border-top: 1px solid var(--fg-14); border-bottom: 1px solid var(--fg-14); overflow: hidden; }
.mq { overflow: hidden; padding: 14px 0; } .mq + .mq { border-top: 1px solid var(--fg-08); }
.mq-t { display: inline-flex; gap: 0; white-space: nowrap; animation: mq 60s linear infinite; will-change: transform; }
.mq.rev .mq-t { animation-direction: reverse; }
.mq:hover .mq-t { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-i { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-72); transition: color .25s; }
.mq-i .mi { width: 26px; height: 26px; margin: 0; color: var(--fg); transition: transform .3s var(--ease); }
.mq-i:hover { color: var(--fg); } .mq-i:hover .mi { transform: scale(1.35); }
.mq-i.notes:hover .mi { color: var(--blue); } .mq-i.audio:hover .mi { color: var(--orange); } .mq-i.control:hover .mi { color: var(--violetL); } .mq-i.fx:hover .mi { color: var(--pinkL); }

/* the songs, on ink */
.songs-wrap .arrs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 899px) { .songs-wrap .arrs { grid-template-columns: minmax(0, 1fr); } }

/* the screenshots: drag, with weight */
.shots { margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); overflow: hidden; cursor: grab; user-select: none; }
.shots.grabbing { cursor: grabbing; }
.shots-t { display: flex; gap: 28px; will-change: transform; }
.shots figure { flex: 0 0 min(60vw, 860px); margin: 0; }
.shots img, .shots video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--fg-14); background: var(--bg); pointer-events: none; }
.shots figcaption { margin-top: 10px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50); }
@media (max-width: 720px) { .shots figure { flex-basis: 84vw; } }

/* the maker */
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 40%); gap: 48px; align-items: end; }
.me-txt .tag { display: inline-flex; margin-bottom: 26px; } .me-txt .h2 { margin-bottom: 26px; }
.reach { margin: 28px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 12px 0; border-top: 1px solid var(--fg-30); border-bottom: 1px solid var(--fg-30); max-width: 38ch; }
.reach a { text-decoration: none; } .reach a:hover { text-decoration: underline; text-underline-offset: 3px; }
.me-photo { margin: 0; justify-self: end; width: 100%; max-width: 520px; position: relative; isolation: isolate; }
.me-photo::after { content: ""; position: absolute; inset: 0; background: #191919; mix-blend-mode: lighten; pointer-events: none; }
.me-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .me-grid { grid-template-columns: minmax(0, 1fr); } .me-photo { justify-self: center; max-width: 380px; } }

/* the questions */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.qa-i { padding: 18px 0; border-top: 1px solid var(--fg-14); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.qa-i h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; } .qa-i p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-72); }
@media (max-width: 899px) { .qa { grid-template-columns: minmax(0, 1fr); } }

/* the form, on ink */
.form-wrap { max-width: 980px; }
.bf .say { color: var(--fg); }
.bf .say input { color: var(--fg); border-bottom-color: var(--fg-30); }
.bf .say input::placeholder { color: var(--fg-30); }
.bf .pick input:checked + label { color: var(--neon); }
.bf .go button { background: var(--fg); color: var(--ink); } .bf .go button:hover { background: var(--neon); }
.bf .go small, .filled { color: var(--fg-50); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.filled { margin: 18px 0 0; } .filled b { color: var(--fg); }
.done { color: var(--fg); }
#output.sent .bf { display: none; } #output.sent .filled { display: none; }

/* the sign-off: the mark, cropped by the edge of the page */
.tail { position: relative; padding: 40px var(--gut) 0; border-top: 1px solid var(--fg-14); overflow: hidden; }
.tail-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50); margin-bottom: 36px; }
.tail-row a { text-decoration: none; color: var(--fg); }
.tail-wm { width: 108%; margin: 0 -4%; height: clamp(90px, 14vw, 220px); overflow: hidden; }
.tail-wm svg { display: block; width: 100%; height: auto; } .tail-wm polygon, .tail-wm path { fill: var(--lp); }
