:root { --sky-img: url(assets/sky.jpg); }
/* SOUND THRIFT brand sheet. Every page and plugin starts from this file.
   Rules: mostly sky and cloud. One orange shape and one orange button per layout.
   Type is Hanken Grotesk 200 and 800 only, lowercase. Silkscreen for data. Hairlines, not boxes.
   Voice: minimal and straight to the point. Short lines, lowercase, say it once. No jokes, no pitch.
   Needs: --sky-img set to the sky photo, and the Google Fonts link for Hanken Grotesk + Silkscreen. */
:root {
  --cloud: #FBFAF6;
  --ink: #121212;
  --sky: #0A3D8C;
  --sky-2: #4A85D0;
  --orange: #EC6A2C;
  --orange-text: #B8460F;
  --muted: #55554F;
  --line: #D9D6CC;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --data: Silkscreen, ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cloud); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; }

/* type */
.t { font-weight: 200; } .h { font-weight: 800; }
.wm { letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.display { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 200; }
.head { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 200; }
.data { font-family: var(--data); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.data.o { color: var(--orange-text); }
.muted { color: var(--muted); }

/* sky */
.sky { background: var(--sky) var(--sky-img) center / cover no-repeat; color: #fff; }
.sky .data { color: #fff; }
.skyflip { position: relative; background: var(--sky); color: #fff; overflow: hidden; isolation: isolate; }
.skyflip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sky-img) var(--sky-pos, right center) / var(--sky-size, cover) no-repeat; transform: scaleX(-1); }
.skyflip .data { color: #fff; }

/* the doors: pills hung from the top edge */
.door { position: absolute; top: calc(var(--w, 64px) * -0.6); width: var(--w, 64px); height: var(--h, 200px); border-radius: var(--w, 64px); background: var(--orange); }
.door.cloud { background: var(--cloud); }
.door.win { background: var(--sky) var(--sky-img) 28% 40% / auto 170% no-repeat; }

/* buttons: pills. ink does the work, orange is the one that matters */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cloud); font: 800 15px/1 var(--font); letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(18, 18, 18, 0.06); }
.btn.ghost[aria-pressed="true"], .btn.ghost.on { background: var(--ink); color: var(--cloud); }
.btn.go { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.go:hover { background: #f07a41; }
.btn.light { background: var(--cloud); border-color: var(--cloud); color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.round { width: 44px; padding: 0; }
.btn.round svg { width: 14px; height: 14px; fill: currentColor; }

/* rows on hairlines */
.rule { border-top: 1px solid var(--ink); }
.rule-soft { border-top: 1px solid var(--line); }

/* rotary knob. markup: label.kn > output.data + span.knob > i + input[type=range].sr + span */
.kn { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: default; }
.kn output { font-family: var(--data); font-size: 13px; color: var(--muted); }
.knob { position: relative; display: block; width: var(--k, 96px); height: var(--k, 96px); border-radius: 50%; background: var(--ink); cursor: grab; touch-action: none; }
.knob:active { cursor: grabbing; }
.knob i { position: absolute; left: 50%; top: 9%; width: 6px; height: 31%; margin-left: -3px; border-radius: 3px; background: var(--cloud); }
.kn.o .knob { background: var(--orange); } .kn.o .knob i { background: var(--ink); } .kn.o output { color: var(--orange-text); }
.kn:focus-within .knob { outline: 2px solid var(--orange-text); outline-offset: 4px; }
.kn .kl { font-size: 18px; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }

/* pixel meter */
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.meter b { display: block; width: 7px; background: currentColor; }
.meter b:last-child { background: var(--orange); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }



/* ---------- page ---------- */
html { scroll-behavior: smooth; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.sec { padding-top: clamp(64px, 9vw, 120px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 40px); }

.nav { position: absolute; top: 0; right: 0; z-index: 5; display: flex; gap: 4px; padding: 16px clamp(12px, 3vw, 40px); }
.nav a { color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, 0.16); }

/* hero: the word splits at the horizon */
.hero { position: relative; height: min(88vh, 820px); min-height: 540px; overflow: hidden; }
.hero .sky-side { position: absolute; left: 50%; top: 0; right: 0; bottom: 0; --sky-size: auto 135%; --sky-pos: right 45%; }
.hero .door { --w: clamp(56px, 11vw, 176px); }
/* the one piece of motion: the doors drop into place on load */
@keyframes drop { from { transform: translateY(-105%); } }
.door { animation: drop 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.door.b, .door.win { animation-delay: 0.12s; }
.hero .door.a { left: clamp(16px, 6vw, 96px); --h: 52%; }
.hero .door.b { left: calc(clamp(16px, 6vw, 96px) + clamp(56px, 11vw, 176px) + clamp(8px, 1.8vw, 28px)); --h: 40%; }
.hero .word { position: absolute; top: 56%; transform: translateY(-50%); font-size: clamp(40px, 10.6vw, 168px); margin: 0; }
.hero .w1 { right: 50%; font-weight: 200; }
.hero .w2 { left: 50%; font-weight: 800; color: #fff; }
.hero .left { position: absolute; left: clamp(20px, 6vw, 96px); right: calc(50% + 16px); bottom: clamp(28px, 7vh, 72px); display: flex; flex-direction: column; gap: 10px; }
.hero .left p { margin: 0; font-size: clamp(16px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em; }
.hero .right { position: absolute; left: calc(50% + clamp(8px, 1vw, 14px)); bottom: clamp(28px, 7vh, 72px); display: flex; gap: 10px; flex-wrap: wrap; }

/* packs */
.pack { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.pack:first-child { border-top-color: var(--ink); }
.pack:last-child { border-bottom: 1px solid var(--line); }
.pack .no { width: 40px; font-family: var(--data); font-size: 14px; color: var(--orange-text); }
.pack .name { flex: 1 1 240px; min-width: 0; }
.pack .name b { display: block; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 200; }
.pack .name span.g { font-size: 14px; color: var(--muted); }
.pack .meta { flex: 0 1 auto; text-align: right; }
.pack .acts { display: flex; gap: 8px; margin-left: auto; }
.pack.soon { color: var(--muted); }
.pack.playing .no { color: var(--ink); }

/* plugins */
.feature { position: relative; min-height: 440px; overflow: hidden; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
.feature .sky-side { --sky-size: auto 160%; --sky-pos: right 60%; display: flex; align-items: flex-end; justify-content: flex-end; padding: 32px; }
.feature .word { position: absolute; top: 108px; font-size: clamp(36px, 7vw, 104px); margin: 0; z-index: 2; }
.feature .w1 { right: 50%; font-weight: 200; } .feature .w2 { left: 50%; font-weight: 800; color: #fff; }
.feature .door { --w: clamp(40px, 6vw, 80px); } .feature .door.a { left: 32px; --h: 150px; } .feature .door.b { left: calc(32px + clamp(40px, 6vw, 80px) + 12px); --h: 110px; }
.feature .cloud-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.feature .copy { padding: 0 32px 32px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature .copy p { margin: 0; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.3; letter-spacing: -0.01em; max-width: 30ch; }
.minipads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(220px, 60%); }
.minipads i { aspect-ratio: 1; border: 1.5px solid #fff; border-radius: 6px; }
.minipads i.on { background: var(--orange); border-color: var(--orange); }

.plug { border-top: 1px solid var(--ink); padding: 20px 0 clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.plug.first { margin-top: clamp(48px, 7vw, 88px); }
.plug-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plug h3 { margin: 0; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; font-weight: 200; }
.plug p { margin: 8px 0 0; color: var(--muted); max-width: 44ch; }
.plug.active .plug-head .data { color: var(--orange-text); }
.side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.side.wide { grid-column: 1 / -1; }
.bar { display: flex; gap: 8px; flex-wrap: wrap; }
.knobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.knobs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.knobs .kn { --k: clamp(60px, 7vw, 88px); }
.kn .kl { font-size: 16px; }
.screen { position: relative; height: 170px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px; --sky-size: 260% auto; --sky-pos: right 46%; }
.screen .temp { font: 800 64px/0.9 var(--font); letter-spacing: -0.04em; }
.screen .meter { height: 72px; color: #fff; gap: 5px; }
.screen .meter b { width: 12px; min-height: 6px; }
.keys { position: relative; height: 190px; overflow: hidden; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(4px, 1vw, 10px); padding: 0 16px; --sky-size: cover; --sky-pos: right 70%; }
.key { position: relative; top: -28px; height: 170px; border: 0; border-radius: 999px; background: var(--cloud); color: var(--ink); font: 400 12px var(--data); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 0 16px; transition: height 0.08s; }
.key small { font: 400 9px var(--data); color: var(--muted); }
.key.on { background: var(--orange); height: 184px; }
.key.on small { color: var(--ink); }
.spell { display: flex; gap: 8px; }
.spell input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 800 18px var(--font); letter-spacing: 0.08em; padding: 0 20px; text-transform: uppercase; }
.readout { min-height: 64px; display: flex; align-items: center; padding: 0 20px; background: var(--sky); color: #fff; font: 400 28px/1 var(--data); letter-spacing: 0.12em; overflow: hidden; white-space: nowrap; }
.readout b { font-weight: 400; color: var(--orange); }
/* dot matrix: tractor-feed paper with a print head */
.paper { position: relative; background: #fff; border: 1px solid var(--line); padding: 34px 34px 20px;
  background-image: radial-gradient(circle, var(--line) 3.5px, transparent 4px), radial-gradient(circle, var(--line) 3.5px, transparent 4px);
  background-size: 22px 22px, 22px 22px; background-position: 5px 6px, calc(100% - 5px) 6px; background-repeat: repeat-y, repeat-y; }
.phead { position: absolute; top: 0; left: 0; width: 14px; height: 26px; border-radius: 0 0 7px 7px; background: var(--orange); transition: left 0.05s linear; animation: none; }
.grid { display: grid; grid-template-columns: 52px repeat(16, minmax(0, 1fr)); gap: 5px 3px; align-items: center; }
.grid .lab { font: 400 10px var(--data); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; text-align: left; padding: 0; cursor: pointer; min-height: 24px; }
.cell { aspect-ratio: 1; min-height: 16px; max-height: 30px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cell i { display: block; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #b9b6ac; }
.cell.beat i { border-color: var(--ink); }
.cell.on i { background: var(--ink); border-color: var(--ink); }
.cell.now i { box-shadow: 0 0 0 3px rgba(236, 106, 44, 0.45); }
.wip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.wip h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; font-weight: 800; flex: 0 0 auto; }
.wip p { margin: 0; color: var(--muted); flex: 1 1 240px; }

.lanes { position: relative; height: 96px; background: var(--sky); overflow: hidden; }
.lanes b { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; }
.lanes b.off { background: none; border: 1.5px solid #fff; }
.lanes span { position: absolute; left: 8px; font: 400 9px var(--data); letter-spacing: 0.06em; text-transform: uppercase; color: #c9d8f0; transform: translateY(-50%); }
.lanes .bl { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.22); }
.lhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--orange); }
.pick { display: inline-flex; align-items: center; gap: 8px; font: 400 11px var(--data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pick select { min-height: 44px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 800 15px var(--font); padding: 0 14px; }
.bar .btn .data { color: inherit; opacity: 0.6; font-size: 9px; }
#lp-rec[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* the recorder: follows you down the playground */
.recbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: var(--ink); color: var(--cloud); border-radius: 28px; padding: 8px 10px 8px 18px; max-width: calc(100vw - 24px); box-shadow: 0 12px 32px -12px rgba(10, 61, 140, 0.55); }
.recbar .data { color: #c9c6bb; }
.recbar .now { font: 400 11px var(--data); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cloud); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recbar .btn { min-height: 40px; border-color: var(--cloud); background: transparent; color: var(--cloud); }
.recbar .btn:hover { background: rgba(251, 250, 246, 0.14); }
.recbar .tempo { display: inline-flex; align-items: center; gap: 6px; }
.recbar .tempo input { width: 58px; min-height: 40px; border: 0; border-bottom: 1px solid #6b6b65; background: transparent; color: var(--cloud); font: 800 18px var(--font); text-align: center; padding: 0; -moz-appearance: textfield; }
.recbar .tempo input::-webkit-outer-spin-button, .recbar .tempo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.recbar .btn.round { width: 40px; font-size: 18px; }
.recbar #all-btn { min-width: 76px; }
.recbar #all-btn[aria-pressed="true"] { background: var(--cloud); color: var(--ink); }
.recbar .btn.go { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.recbar .btn.go[aria-pressed="true"] { background: var(--cloud); border-color: var(--cloud); }

/* tip */
.tip { margin-top: clamp(64px, 9vw, 120px); background: var(--sky); color: #fff; position: relative; overflow: hidden; }
.tip .wrap { position: relative; padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; }
.tip .door { --w: clamp(48px, 7vw, 96px); --h: 62%; right: clamp(20px, 6vw, 96px); }
.tip .data { color: #fff; }
.tip form { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 460px; }
.join { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 48px; border-radius: 999px; border: 1px solid #fff; background: transparent; color: #fff; font: 400 16px var(--font); padding: 0 20px; }
.join input[type=email]::placeholder { color: #c9d8f0; }
.join .btn { min-height: 48px; padding: 0 28px; }
.tip :focus-visible { outline-color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

footer { padding: 32px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--cloud); padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: 14px; max-width: calc(100vw - 32px); text-align: center; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature .word { top: 96px; }
  .feature .copy { padding: 274px 0 24px; }
  .feature .sky-side { position: absolute; left: 50%; right: 0; top: 0; height: 250px; padding: 16px; }
  .plug { grid-template-columns: 1fr; }
  .paper { padding: 34px 24px 16px; }
  .grid { grid-template-columns: 40px repeat(16, minmax(0, 1fr)); gap: 4px 1px; }
  .tip .wrap { grid-template-columns: 1fr; }
  .pack .meta { text-align: left; flex-basis: 100%; padding-left: 52px; order: 3; }
  .hero .left { right: 52%; }
}
/* ---------- landing: links to the other pages ---------- */
.golink { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: clamp(24px, 3.5vw, 40px) 0; border-top: 1px solid var(--ink); text-decoration: none; color: inherit; }
.golink:last-of-type { border-bottom: 1px solid var(--line); }
.golink .name { font-size: clamp(38px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.golink .say { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.3; letter-spacing: -0.01em; }
.golink .arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; transition: background 0.15s, color 0.15s, transform 0.15s; }
.golink:hover .arrow { background: var(--ink); color: var(--cloud); transform: translateX(4px); }
a.feature { text-decoration: none; color: inherit; }

/* ---------- sub-pages: a short header band where the page name splits at the horizon ---------- */
.band { position: relative; height: clamp(220px, 32vw, 320px); overflow: hidden; }
.band .sky-side { position: absolute; left: 50%; right: 0; top: 0; bottom: 0; --sky-size: 230% auto; --sky-pos: right 46%; }
.band .word { position: absolute; top: 60%; transform: translateY(-50%); margin: 0; font-size: clamp(42px, 9vw, 128px); }
.band .w1 { right: 50%; font-weight: 200; } .band .w2 { left: 50%; font-weight: 800; color: #fff; }
.band .door { --w: clamp(36px, 5vw, 64px); --h: 44%; left: clamp(20px, 4vw, 48px); }
.home { position: absolute; z-index: 5; left: calc(clamp(20px, 4vw, 48px) + clamp(36px, 5vw, 64px) + 16px); top: 22px; font-size: 20px; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.lede { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 20px 0 0; }
.soon { padding-top: clamp(64px, 10vw, 140px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.soon h2 { font-size: clamp(56px, 12vw, 168px); line-height: 0.95; letter-spacing: -0.04em; margin: 0; font-weight: 200; }
.soon p { margin: 0; font-size: clamp(17px, 1.8vw, 22px); max-width: 30ch; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { font-weight: 800; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .golink { grid-template-columns: minmax(0, 1fr) auto; }
  .golink .say { grid-column: 1 / -1; grid-row: 2; }
}
