/* Klavola — website. Black, quiet, big type, the app's own neon accents. Plain CSS, no build step. */
:root {
  --bg: #000;
  --bg2: #0a0a0d;
  --panel: #111116;
  --panel2: #16161d;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --cyan: #2fd4ff;
  --orange: #ff8a3d;
  --pink: #ff4fd8;
  --green: #34e07a;
  --violet: #9b6bff;
  --yellow: #ffd60a;
  --red: #ff3b5c;
  --radius: 28px;
  --max: 1180px;
  --display: "SF Pro Display", "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "SF Pro Text", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--body); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
main, footer { position: relative; z-index: 1; }
.grad {
  background: linear-gradient(92deg, var(--cyan) 0%, var(--violet) 45%, var(--pink) 75%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#learn .grad { background-image: linear-gradient(92deg, #ffe76a, var(--yellow) 40%, var(--orange)); }
#studio .grad { background-image: linear-gradient(92deg, #c5a8ff, var(--violet) 45%, var(--pink)); }
#pads .grad { background-image: linear-gradient(92deg, var(--pink), var(--red) 60%, var(--orange)); }
#sounds .grad { background-image: linear-gradient(92deg, #9dffc4, var(--green) 45%, var(--cyan)); }
.eyebrow { margin: 0; color: var(--accent, var(--cyan)); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.hint { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

/* ---------------------------------------------------------------- floating notes */
#notes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fnote {
  position: absolute; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Music", serif; line-height: 1;
  color: var(--c); text-shadow: 0 0 18px var(--c), 0 0 2px var(--c); opacity: 0; will-change: transform, opacity;
  animation: fnote var(--d) var(--ease) forwards;
}
@keyframes fnote {
  0%   { opacity: 0; transform: translate3d(0, 30px, 0) rotate(var(--r0)) scale(.6); }
  18%  { opacity: var(--o); }
  75%  { opacity: var(--o); }
  100% { opacity: 0; transform: translate3d(var(--dx), -110px, 0) rotate(var(--r1)) scale(1.05); }
}
.burst {
  position: absolute; pointer-events: none; z-index: 5; font-size: 26px; line-height: 1; color: var(--c);
  text-shadow: 0 0 16px var(--c); animation: burst 1.3s var(--ease) forwards;
}
@keyframes burst {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.5) rotate(0); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -150px) scale(1.25) rotate(var(--r1)); }
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, .62); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); letter-spacing: -.02em; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { color: #d2d2d7; font-size: 13.5px; transition: color .2s; }
.nav .links a:hover { color: #fff; text-decoration: none; }
@media (max-width: 820px) { .nav .links { display: none; } .nav .cta { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font: 600 17px var(--body); border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn:hover { text-decoration: none; transform: scale(1.03); }
.btn-primary { background: #f5f5f7; color: #000; box-shadow: 0 10px 40px -8px rgba(47, 212, 255, .45); }
.btn-primary:hover { background: #fff; box-shadow: 0 14px 50px -6px rgba(47, 212, 255, .6); }
.btn-small { padding: 7px 16px; font-size: 13.5px; box-shadow: none; }
.link-more { font-size: 19px; font-weight: 500; }
.link-more span { display: inline-block; transition: transform .2s; }
.link-more:hover { text-decoration: none; }
.link-more:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 90px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1400px; height: 900px; margin-left: -700px; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 45%, rgba(47, 212, 255, .22), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(155, 107, 255, .2), transparent),
    radial-gradient(closest-side at 50% 75%, rgba(255, 79, 216, .12), transparent);
  filter: blur(20px);
}
.hero-copy { max-width: 900px; margin: 0 auto; }
.hero-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 20px 60px -10px rgba(47, 212, 255, .55), 0 0 0 1px rgba(255,255,255,.08); }
h1 {
  font: 800 clamp(46px, 8.2vw, 104px)/1.0 var(--display); letter-spacing: -.045em; margin: 14px 0 24px;
}
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--muted); max-width: 720px; margin: 0 auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: center; align-items: center; margin: 34px 0 10px; }

.hero-stage { position: relative; max-width: 1060px; margin: 70px auto 0; perspective: 1800px; }
.hero-stage::before {
  content: ""; position: absolute; inset: 12% 6% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 45%, transparent), transparent); filter: blur(50px);
}
.tilt { transform: rotateX(var(--tilt, 16deg)) scale(var(--sc, .94)); transform-origin: 50% 100%; transition: transform .1s linear; }
.orbit {
  position: absolute; width: 104px; height: 104px; z-index: 3; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
  animation: bob 6s ease-in-out infinite;
}
.o1 { left: -70px; top: 8%; animation-delay: -1s; }
.o2 { right: -64px; top: 0; width: 112px; height: 112px; animation-delay: -3s; }
.o3 { left: -40px; bottom: 6%; width: 92px; height: 92px; animation-delay: -2s; }
.o4 { right: -50px; bottom: 14%; animation-delay: -4.5s; }
.o5 { left: 18%; top: -58px; width: 76px; height: 76px; animation-delay: -5s; }
.o6 { right: 22%; top: -64px; width: 84px; height: 84px; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@media (max-width: 1240px) { .o1, .o3 { left: -10px; } .o2, .o4 { right: -10px; } }
@media (max-width: 760px) { .orbit { width: 58px !important; height: 58px !important; } .o5, .o6 { display: none; } .o1 { top: -30px; left: 0; } .o2 { top: -34px; right: 0; } .o3 { bottom: -26px; left: 6px; } .o4 { bottom: -22px; right: 6px; } }

/* a phone held sideways */
.phone {
  position: relative; padding: 14px; border-radius: 46px;
  background: linear-gradient(150deg, #3a3d44 0%, #121418 18%, #08090b 60%, #24262c 100%);
  box-shadow:
    0 0 0 1.5px #4a4e57 inset, 0 0 0 1px #000,
    0 60px 120px -30px rgba(0, 0, 0, .9),
    0 30px 80px -40px color-mix(in srgb, var(--glow, var(--cyan)) 70%, transparent);
}
.phone::before { /* the front camera */
  content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a66, #050608 70%); z-index: 2;
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 32px; background: #000; }
.phone.small { padding: 8px; border-radius: 26px; }
.phone.small::before { left: 3px; width: 4px; height: 4px; margin-top: -2px; }
.phone.small img { border-radius: 19px; }
[data-zoom] { cursor: zoom-in; }

/* ---------------------------------------------------------------- band: instruments marquee */
.band { padding: 90px 0 30px; }
.band-title { text-align: center; font: 700 clamp(22px, 2.6vw, 30px) var(--display); letter-spacing: -.02em; color: #d2d2d7; margin: 0 0 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; padding: 10px 0 20px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.inst { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 112px; }
.inst .ic {
  width: 100px; height: 100px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1b1b23, #0b0b0f); border: 1px solid var(--line);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.9);
}
.inst img { width: 74px; height: 74px; }
.inst span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- chapters */
.chapter { padding: 150px 0 40px; position: relative; }
.chapter.tight { padding-top: 70px; }
.chapter-head { text-align: center; max-width: 860px; margin: 0 auto 60px; }
.kicker-icon { width: 88px; height: 88px; margin: 0 auto 16px; filter: drop-shadow(0 16px 30px color-mix(in srgb, var(--accent) 35%, transparent)); }
.chapter-head h2, .finale h2 {
  font: 800 clamp(40px, 6.4vw, 84px)/1.02 var(--display); letter-spacing: -.045em; margin: 12px 0 22px;
}
.sub { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--muted); margin: 0 auto; max-width: 720px; }

.stage { position: relative; max-width: 1100px; margin: 0 auto; }
.stage::before {
  content: ""; position: absolute; inset: 10% 8% -4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 32%, transparent), transparent); filter: blur(60px);
}
.rise-on-scroll { opacity: 0; transform: translateY(80px) scale(.92); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.rise-on-scroll.in { opacity: 1; transform: none; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.trio figure { margin: 0; }
.trio figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; text-align: center; padding: 0 8px; }
.trio figcaption strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .tiles, .tiles.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles, .tiles.three { grid-template-columns: 1fr; } }
.tile {
  position: relative; overflow: hidden; border-radius: 24px; padding: 26px 24px 24px;
  background: linear-gradient(170deg, var(--panel2), var(--bg2)); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); opacity: .07; filter: blur(10px); }
.tile img { width: 60px; height: 60px; margin-bottom: 14px; }
.tile h3 { margin: 0 0 6px; font: 700 20px var(--display); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------------------------------------------------------------- try-it piano */
.tryit {
  max-width: 1000px; margin: 0 auto; position: relative; border-radius: 26px; padding: 0 14px 14px;
  background: linear-gradient(180deg, #1a1b20, #08090b); border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 30px 90px -50px rgba(47, 212, 255, .55);
}
.tryit-bar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px; }
.tryit-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2c33; }
.tryit-bar .dot:first-child { background: var(--red); box-shadow: 0 0 10px var(--red); }
.tryit-bar .spacer { flex: 1; }
.instr { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.instr::-webkit-scrollbar { display: none; }
.instr button {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px 7px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: #0d0e12; color: #d2d2d7;
  font: 600 14px var(--body); cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
}
.instr button img { width: 30px; height: 30px; }
.instr button:hover { border-color: rgba(47, 212, 255, .5); }
.instr button.on { background: rgba(47, 212, 255, .14); border-color: var(--cyan); color: #fff; box-shadow: 0 0 24px -6px rgba(47, 212, 255, .7); }
.piano { position: relative; height: 210px; display: flex; user-select: none; touch-action: none; background: #000; border-radius: 14px; padding: 8px; }
@media (max-width: 560px) { .piano { height: 160px; } }
.piano .white {
  flex: 1; position: relative; margin: 0 1.5px; border-radius: 0 0 9px 9px;
  background: linear-gradient(#fbfbfd, #e6e6eb); box-shadow: inset 0 -7px 0 #c8c8cf;
  cursor: pointer; display: flex; align-items: flex-end; justify-content: center;
  font-size: 11px; color: #7a8290; padding-bottom: 12px; font-weight: 600; transition: background .08s;
}
.piano .white.on { background: linear-gradient(#c9f5ff, var(--cyan)); box-shadow: inset 0 -3px 0 #0aa7cc; color: #00303f; }
.piano .black {
  position: absolute; top: 8px; width: 4.2%; height: 60%; z-index: 2; border-radius: 0 0 7px 7px;
  background: linear-gradient(#34373f, #050607); box-shadow: inset 0 -6px 0 #000, 0 4px 8px rgba(0,0,0,.6); cursor: pointer;
}
.piano .black.on { background: linear-gradient(#ffb0ef, var(--pink)); }
.note-readout { font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--cyan); min-width: 44px; display: inline-block; font-weight: 600; }

/* ---------------------------------------------------------------- pads */
.pads-demo {
  position: relative; display: grid; grid-template-columns: repeat(16, 1fr); gap: 7px; user-select: none; touch-action: none;
  background: linear-gradient(180deg, #17171c, #050506); border: 1px solid var(--line); border-radius: 24px; padding: 14px;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 30px 90px -50px rgba(255, 79, 216, .6);
}
@media (max-width: 1100px) { .pads-demo { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 600px) {
  .pads-demo { grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 420px; margin: 0 auto; }
  .pads-demo .pad { grid-row: var(--row); grid-column: var(--col); }
}
.pad {
  aspect-ratio: 1 / 1.1; border-radius: 12px; background: #050608; border: 2px solid var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 30%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 12%, transparent);
  cursor: pointer; position: relative; display: flex; align-items: flex-end; padding: 6px;
  font-size: 11px; line-height: 1.15; font-weight: 700; color: #d7dce3; overflow-wrap: anywhere; transition: background .06s, transform .08s;
}
.pad small { position: absolute; top: 5px; left: 6px; font-size: 9px; color: var(--c); }
.pad.on { background: var(--c); color: #000; box-shadow: 0 0 40px var(--c); transform: scale(.96); }
.pads-demo + .hint { margin-top: 14px; }

/* ---------------------------------------------------------------- synth */
.synth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .synth-wrap { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }
.synth {
  border-radius: 26px; padding: 22px; background: linear-gradient(180deg, #17171c, #070708); border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 30px 90px -50px rgba(52, 224, 122, .55);
}
.synth canvas { width: 100%; height: 150px; display: block; background: #030405; border-radius: 14px; border: 1px solid var(--line); }
.synth .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.seg button {
  background: #0d0e12; color: var(--muted); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px;
  font: 600 13px var(--body); cursor: pointer; transition: background .2s, color .2s;
}
.seg button.on { background: var(--green); color: #002010; border-color: var(--green); }
.synth .cut { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.synth input[type=range] { flex: 1; accent-color: var(--green); }
.chords .hint { margin-right: 6px; }
.chord-btn {
  background: #0d0e12; color: var(--text); border: 1.5px solid var(--green); border-radius: 14px; padding: 12px 18px;
  font: 800 16px var(--display); cursor: pointer; user-select: none; touch-action: none; transition: background .1s;
}
.chord-btn:active, .chord-btn.on { background: var(--green); color: #002010; box-shadow: 0 0 30px rgba(52,224,122,.6); }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.b-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 28px; min-height: 220px;
  background: linear-gradient(165deg, var(--panel2), var(--bg2)); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform .4s var(--ease);
}
.b-card:hover { transform: translateY(-4px); }
.b-card::before { content: ""; position: absolute; left: -30%; top: -40%; width: 90%; height: 90%; border-radius: 50%; background: var(--c); opacity: .12; filter: blur(50px); }
.b-card img { width: 72px; height: 72px; margin-bottom: auto; position: relative; }
.b-card h3 { margin: 18px 0 6px; font: 700 22px var(--display); letter-spacing: -.02em; position: relative; }
.b-card p { margin: 0; color: var(--muted); font-size: 15px; position: relative; }
.b-card.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 26px; }
.b-card.wide img { width: 110px; height: 110px; margin: 0; flex: none; }
.b-card.wide h3 { margin-top: 0; font-size: 28px; }
@media (max-width: 560px) { .b-card.wide { grid-column: auto; flex-direction: column; align-items: flex-start; } .b-card.wide img { width: 72px; height: 72px; } }

/* ---------------------------------------------------------------- numbers */
.numbers { padding: 140px 0 30px; }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 800px) { .numbers .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
.num .big { font: 800 clamp(48px, 6vw, 76px)/1 var(--display); letter-spacing: -.04em; }
.num p { color: var(--muted); margin: 10px auto 0; font-size: 16px; max-width: 220px; }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery img {
  border-radius: 18px; border: 1px solid var(--line); width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transition: transform .5s var(--ease);
}
.gallery img:hover { transform: scale(1.03); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 22px; }

/* ---------------------------------------------------------------- finale + footer */
.finale { padding: 170px 0 150px; text-align: center; position: relative; overflow: hidden; }
.finale::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; margin: -300px 0 0 -450px; z-index: -1;
  background: radial-gradient(closest-side, rgba(155, 107, 255, .25), rgba(47, 212, 255, .08) 60%, transparent); filter: blur(30px);
}
.finale-icon { width: 128px; height: 128px; border-radius: 30px; margin: 0 auto 28px; box-shadow: 0 30px 80px -10px rgba(155, 107, 255, .6), 0 0 0 1px rgba(255,255,255,.08); }
.finale .sub { margin-bottom: 36px; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; background: var(--bg); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer a { color: #d2d2d7; }
footer .spacer { flex: 1; }

/* ---------------------------------------------------------------- privacy page */
.doc { max-width: 780px; margin: 0 auto; padding: 80px 22px 100px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 10px; }
.doc h2 { margin-top: 44px; font: 700 24px var(--display); letter-spacing: -.02em; }
.doc p, .doc li { color: #d2d2d7; }
.doc .updated { color: var(--muted); }
.doc .box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 26px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.hero-copy .rise:nth-child(2) { animation-delay: .08s; }
.hero-copy .rise:nth-child(3) { animation-delay: .16s; }
.hero-copy .rise:nth-child(4) { animation-delay: .26s; }
.hero-copy .rise:nth-child(5) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .rise, .rise-on-scroll { opacity: 1; transform: none; transition: none; animation: none; }
  .tilt { transform: none; }
  .orbit, .track { animation: none; }
  #notes { display: none; }
  html { scroll-behavior: auto; }
}
