/* Glint: a dark room where every picture brings its own light. The app's spectrum (amber, pink,
   violet, cyan) is the only colour the page owns; everything else comes from the photos. */
:root {
  --bg: #07080c;
  --bg-2: #0d0f15;
  --card: #111319;
  --txt: #f3f4f8;
  --mut: #9a9fb0;
  --faint: #626776;
  --line: rgba(255, 255, 255, .08);
  --amber: #ffd37a;
  --pink: #ff6aa6;
  --violet: #8b7bff;
  --cyan: #46e3ff;
  --spectrum: linear-gradient(100deg, #ffd37a 0%, #ff6aa6 36%, #8b7bff 68%, #46e3ff 100%);

  --body: 'Geist', -apple-system, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.2, 1.35, .4, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 400 17px/1.6 var(--body); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.label { color: var(--faint); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 18px; }
em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
code { font: .86em var(--mono); padding: .1em .35em; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
kbd {
  display: inline-grid; place-items: center; min-width: 1.8em; height: 1.6em; padding: 0 .45em;
  font: 500 .78em/1 var(--mono); color: var(--txt); background: linear-gradient(180deg, #252833, #171920);
  border-radius: .38em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 #000; vertical-align: .1em;
}

.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gut); background: rgba(7, 8, 12, .78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
  transform: translateY(-110%); transition: transform .45s var(--out);
}
.top.show { transform: none; }
.brand, .hero-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px var(--body); letter-spacing: -.01em; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--mut); text-decoration: none; }
.top-nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.top-nav .top-cta { color: #000; background: var(--txt); }

/* ---------- hero: the window, and its light spilling over the page ---------- */
.hero { position: relative; padding: 0 var(--gut); overflow: hidden; isolation: isolate; }
.spill { position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none; }
.spill i {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(110px) saturate(1.8) brightness(.62); opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 1.8s var(--out);
}
.spill i.on { opacity: .9; transform: none; }
.spill::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 30%, transparent 0%, rgba(7, 8, 12, .5) 60%, var(--bg) 100%), linear-gradient(180deg, rgba(7, 8, 12, .35), transparent 30%, transparent 70%, var(--bg)); }

.hero-brand { position: absolute; left: var(--gut); top: 18px; z-index: 3; }
.hero-copy { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: clamp(110px, 16vh, 170px) 0 0; text-align: center; }
.kicker { color: rgba(243, 244, 248, .62); margin: 0 0 22px; }
/* Entrance in CSS, so the text never flashes before the scripts load. */
.hero-copy > *, .stage { animation: hero-in 1.1s var(--out) both; animation-delay: calc(.2s + var(--i, 0) * .08s); }
.hero-copy > :nth-child(2) { --i: 1; }
.hero-copy > :nth-child(3) { --i: 2; }
.hero-copy > :nth-child(4) { --i: 3; }
.stage { --i: 5; }
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } }
.hero h1 { margin: 0; font: 700 clamp(48px, 8.4vw, 128px)/.95 var(--body); letter-spacing: -.055em; text-shadow: 0 10px 60px rgba(0, 0, 0, .35); }
.hero h1 em { font-size: 1.08em; letter-spacing: -.03em; }
.lede { margin: 28px auto 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(243, 244, 248, .74); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); transition: transform .35s var(--spring), background .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { color: #0b0710; background: var(--spectrum); box-shadow: 0 14px 40px -12px rgba(255, 106, 166, .55); }
.btn-ghost { color: var(--txt); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }

/* The real app at 1280 × 800, scaled to the column; the tilt flattens as you scroll. */
.stage { position: relative; z-index: 1; max-width: 1200px; margin: clamp(48px, 7vh, 80px) auto 0; padding-bottom: 40px; perspective: 1800px; }
.window {
  position: relative; aspect-ratio: 1280 / 800; border-radius: 14px; overflow: hidden; background: #07080c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 120px -30px rgba(0, 0, 0, .85), 0 0 140px -40px var(--glow, rgba(139, 123, 255, .5));
  transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform;
}
.window iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); color-scheme: dark; background: #07080c; }
.coach { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 22px auto 0; padding: 12px 16px; border-radius: 12px; background: rgba(7, 8, 12, .45); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--mut); }
.coach b { color: var(--txt); font-weight: 600; }
.pulse { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

/* Drop anywhere on the page. */
.drop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(7, 8, 12, .6); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drop.on { opacity: 1; }
.drop-card { display: grid; justify-items: center; gap: 6px; padding: 40px 54px; border-radius: 24px; background: rgba(17, 19, 25, .8); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px #000; text-align: center; max-width: 420px; }
.drop-card b { font-size: 26px; letter-spacing: -.02em; }
.drop-card span { color: var(--mut); font-size: 15px; }
.drop-ring { width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; padding: 3px; background: var(--spectrum); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
section:not(.hero) { padding: clamp(100px, 14vw, 170px) var(--gut) 0; }
.big { margin: 0; font: 700 clamp(36px, 5vw, 72px)/1.02 var(--body); letter-spacing: -.04em; }
.big em { font-size: 1.08em; }
.say { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--mut); max-width: 640px; margin: 22px 0 0; }

/* formats: a wall of names, and the file that lies about its extension */
.formats { max-width: 1300px; margin: 0 auto; }
.formats-head { max-width: 900px; }
.wall { margin: 64px calc(var(--gut) * -1) 0; display: grid; gap: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.wall-row { overflow: hidden; }
.wall-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.wall-row.rev .wall-track { animation-direction: reverse; animation-duration: 56s; }
.wall-track span { padding: 0 .32em; font: 800 clamp(54px, 9vw, 132px)/1.08 var(--body); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .26); transition: color .3s, -webkit-text-stroke-color .3s; }
.wall-track span:hover { color: var(--txt); -webkit-text-stroke-color: transparent; }
.wall-track span:nth-child(3n+1):hover { color: var(--pink); }
.wall-track span:nth-child(3n+2):hover { color: var(--cyan); }
.wall-track span:nth-child(3n):hover { color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

.sniff { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: clamp(20px, 4vw, 54px); align-items: center; margin-top: 64px; padding: 28px clamp(20px, 3vw, 36px); border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.sniff-file { display: grid; justify-items: center; gap: 10px; color: var(--mut); }
.sniff-icon { position: relative; width: 72px; height: 90px; border-radius: 8px 22px 8px 8px; background: linear-gradient(160deg, #2a2e3b, #191b23); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: grid; place-items: end center; padding-bottom: 14px; }
.sniff-icon b { font: 700 13px var(--mono); padding: 3px 7px; border-radius: 5px; background: var(--pink); color: #1a0710; transition: background .4s; }
.sniff.found .sniff-icon b { background: var(--cyan); color: #04171c; }
.sniff-bytes { display: grid; gap: 8px; }
.sniff-cap { color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.sniff-bytes code { font-size: 17px; padding: 8px 12px; border-radius: 8px; background: #000; white-space: nowrap; }
.sniff-bytes i { font-style: normal; color: var(--faint); transition: color .3s; }
.sniff-bytes i.lit { color: var(--cyan); }
.sniff-is { color: var(--mut); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--out); }
.sniff.found .sniff-is { opacity: 1; transform: none; }
.sniff-is b { color: var(--cyan); }
.sniff-copy h3 { margin: 0 0 6px; font: 600 22px/1.25 var(--body); letter-spacing: -.02em; }
.sniff-copy p { margin: 0; color: var(--mut); font-size: 15.5px; }

/* svg: a second live window, opened on the source editor */
.code { max-width: 1250px; margin: 0 auto; }
.code-head { max-width: 900px; margin-bottom: 50px; }
.code-window { max-width: 1200px; }
.code-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.code-facts li { padding: 18px 20px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--mut); font-size: 15px; }
.code-facts b { display: block; margin-bottom: 4px; color: var(--txt); font-weight: 600; }
.code-note { margin: 14px 0 0; color: var(--faint); }

/* ambient light: a picture on a dark wall, with and without its glow */
.light { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 15px; font-weight: 500; }
.switch-knob { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #2a2d36; transition: background .35s; }
.switch-knob::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .45s var(--spring); }
.switch[aria-checked="true"] .switch-knob { background: var(--spectrum); }
.switch[aria-checked="true"] .switch-knob::after { transform: translateX(20px); }
.tv { position: relative; margin: 0; padding: clamp(30px, 5vw, 70px); border-radius: 26px; background: #050609; box-shadow: 0 0 0 1px var(--line); isolation: isolate; overflow: hidden; }
.tv-glow { position: absolute; inset: 6%; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.9) brightness(.9); opacity: 0; transform: scale(.8); transition: opacity 1.2s ease, transform 1.6s var(--out); }
.tv.on .tv-glow { opacity: 1; transform: scale(1.12); }
.tv img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }

/* palette, loupe, histogram: computed live from the photo */
.look { max-width: 1300px; margin: 0 auto; }
.look-head { max-width: 900px; margin-bottom: 56px; }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.lab-pic { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(0, 0, 0, .9); cursor: crosshair; }
.lab-pic img { display: block; width: 100%; }
.loupe { position: absolute; left: 0; top: 0; width: 176px; height: 176px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 16px 40px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--spring); }
.loupe-hex { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 6px; background: rgba(7, 8, 12, .85); pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.lab-pic.loupe-on .loupe { opacity: 1; transform: none; }
.lab-pic.loupe-on .loupe-hex { opacity: 1; }
.swatches { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 7px; width: 150px; }
.swatch { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 0; border-radius: 11px; font: 600 12px var(--mono); cursor: copy; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform .35s var(--spring); opacity: 0; transform: translateX(-12px); }
.swatch small { font-weight: 500; opacity: .75; }
.swatches.in .swatch { opacity: 1; transform: none; transition: transform .6s var(--spring), opacity .4s; transition-delay: calc(var(--n) * 70ms); }
.swatches.in .swatch:hover { transform: translateX(4px); }
.histo { position: absolute; right: 18px; top: 18px; width: min(290px, 40%); padding: 14px 16px; border-radius: 14px; background: rgba(13, 14, 20, .72); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.histo p { margin: 0 0 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
.histo canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: rgba(0, 0, 0, .35); }
.histo dl { margin: 12px 0 0; display: grid; gap: 4px; }
.histo dl div { display: flex; justify-content: space-between; }
.histo dt { color: var(--faint); }
.histo dd { margin: 0; color: var(--txt); }
.lab-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lab-keys li { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.lab-keys > li > kbd { flex: none; font-size: 15px; }
.lab-keys b { display: block; margin-bottom: 4px; }
.lab-keys span { color: var(--mut); font-size: 14.5px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: rgba(17, 19, 25, .92); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -10px #000; font-size: 14px; transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .4s var(--spring); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* slideshow: a selection in a file window becomes a show */
.dia { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; }
.facts li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--mut); position: relative; font-size: 15.5px; }
.facts li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 10px; height: 6px; border: 2px solid var(--cyan); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.facts b { color: var(--txt); font-weight: 600; }
.scene { position: relative; aspect-ratio: 3 / 2; }
.finder, .player { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; transition: opacity .7s ease, transform .9s var(--out), filter .7s; }
.finder { display: flex; flex-direction: column; background: #14161d; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px #000; }
.finder-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); color: var(--mut); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.finder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; padding: 0 22px 10px; flex: 1; align-content: center; }
.thumb { display: grid; gap: 7px; justify-items: center; font: 11px var(--mono); color: var(--mut); }
.thumb b { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; background-size: cover; background-position: center; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s; }
.thumb span { padding: 1px 6px; border-radius: 4px; transition: background .2s, color .2s; }
.thumb.sel b { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(70, 227, 255, .55); }
.thumb.sel span { background: #2f6fe4; color: #fff; }
.lasso { position: absolute; left: 4%; top: 20%; width: 0; height: 0; border: 1px solid rgba(120, 170, 255, .9); background: rgba(80, 140, 255, .16); border-radius: 2px; opacity: 0; transition: width 1.3s cubic-bezier(.4, 0, .2, 1), height 1.3s cubic-bezier(.4, 0, .2, 1), opacity .2s; }
.scene.s1 .lasso { opacity: 1; }
.enter { position: absolute; right: 24px; bottom: 22px; font-size: 18px; height: 2.2em; padding: 0 .9em; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--spring), box-shadow .1s; }
.scene.s2 .enter { opacity: 1; transform: none; }
.scene.s2.press .enter { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 #000; background: linear-gradient(180deg, #3a3f50, #22252f); }
.player { background: #000; opacity: 0; transform: scale(.94); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px #000; }
.scene.s3 .finder { opacity: 0; transform: scale(1.04); filter: blur(6px); }
.scene.s3 .player { opacity: 1; transform: none; }
.player-pic { position: absolute; inset: 0; }
.player-pic div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.player-pic div.on { opacity: 1; animation: kb 5s linear both; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.player-strip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(20, 22, 32, .55); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.player-strip i { width: 44px; height: 30px; border-radius: 5px; background-size: cover; background-position: center; opacity: .55; transition: opacity .3s, box-shadow .3s; }
.player-strip i.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }

/* transparency: four backdrops */
.alpha { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.alpha-pic { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 22px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--line); background: #07080c; transition: background-color .4s; }
.alpha-pic img { width: 66%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.alpha-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 40% at 40% 45%, rgba(255, 106, 166, .55), transparent 70%), radial-gradient(45% 45% at 62% 55%, rgba(139, 123, 255, .6), transparent 70%), radial-gradient(30% 30% at 55% 35%, rgba(255, 211, 122, .4), transparent 70%); filter: blur(30px); transition: opacity .5s; }
.alpha-pic:not([data-bg="auto"]) .alpha-glow { opacity: 0; }
.alpha-pic[data-bg="checker"] { background: repeating-conic-gradient(#262932 0 25%, #1b1d24 0 50%) 0 0 / 28px 28px; }
.alpha-pic[data-bg="black"] { background: #000; }
.alpha-pic[data-bg="white"] { background: #fff; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 30px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 9px 14px; border: 0; border-radius: 9px; background: none; color: var(--mut); cursor: pointer; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.seg button:hover { color: var(--txt); }
.seg button[aria-checked="true"] { background: var(--txt); color: #000; }

/* keyboard */
.keys { max-width: 1250px; margin: 0 auto; }
.keys-head { max-width: 900px; margin-bottom: 50px; }
.keymap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.keymap > div { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--mut); font-size: 14.5px; transition: box-shadow .5s, transform .5s var(--out), color .5s; }
.keymap > div > span { display: flex; gap: 6px; }
.keymap > div > span kbd { font-size: 14px; }
.keymap p { margin: 0; }
.keymap > div.hit { color: var(--txt); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 106, 166, .6), 0 18px 40px -16px rgba(255, 106, 166, .55); transition-duration: .08s; }

/* light: a big number and the facts */
.lite { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.lite .facts { margin-top: 0; }
.huge { margin: 0; font: 800 clamp(96px, 16vw, 220px)/.9 var(--body); letter-spacing: -.06em; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.huge span { font-size: .32em; letter-spacing: -.02em; margin-left: .08em; }

/* default app */
.setup { max-width: 1200px; margin: 0 auto; }
.setup-head { max-width: 900px; margin-bottom: 50px; }
.os-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.os-card { padding: 26px 28px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.os-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 21px var(--body); letter-spacing: -.02em; }
.os-card h3 svg { width: 22px; height: 22px; fill: currentColor; }
.os-card ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.os-card li { counter-increment: s; position: relative; padding: 9px 0 9px 38px; border-bottom: 1px solid var(--line); color: var(--mut); }
.os-card li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(139, 123, 255, .16); color: var(--violet); font: 500 12px var(--mono); }
.os-card li b { color: var(--txt); font-weight: 600; }
.os-card p { margin: 14px 0 0; color: var(--faint); font-size: 14px; }

/* download */
.get { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 110px !important; }
.app-icon { width: 128px; height: 128px; margin-bottom: 30px; filter: drop-shadow(0 24px 50px rgba(255, 106, 166, .35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.get .say { margin-left: auto; margin-right: auto; }
.get-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.btn-dl { color: #000; background: var(--txt); padding: 13px 22px 13px 18px; text-align: left; }
.btn-dl svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-dl.mine { background: var(--spectrum); color: #0b0710; box-shadow: 0 14px 40px -12px rgba(255, 106, 166, .55); order: -1; }
.btn b { display: block; font-size: 15px; }
.btn small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .65; }
.btn-coffee { background: #ffdd00; color: #1a1300; padding: 13px 22px 13px 18px; text-align: left; }
.cup { position: relative; width: 24px; height: 26px; flex: none; }
.cup::before { content: ''; position: absolute; left: 2px; bottom: 0; width: 16px; height: 15px; border-radius: 2px 2px 6px 6px; background: #1a1300; }
.cup::after { content: ''; position: absolute; right: 0; bottom: 4px; width: 5px; height: 7px; border: 2.5px solid #1a1300; border-left: 0; border-radius: 0 5px 5px 0; }
.cup i { position: absolute; bottom: 17px; width: 2.5px; height: 7px; border-radius: 2px; background: #1a1300; opacity: 0; animation: steam 2s ease-in-out infinite; }
.cup i:nth-child(1) { left: 5px; }
.cup i:nth-child(2) { left: 9px; animation-delay: .4s; }
.cup i:nth-child(3) { left: 13px; animation-delay: .8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(3px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-5px); } }
.get-note { max-width: 640px; margin: 30px auto 0; color: var(--faint); font-size: 14px; }
.get-foot { color: var(--faint); margin-top: 20px; }
.get-foot a { color: var(--mut); }
.credit { max-width: 560px; margin: 26px auto 0; color: var(--faint); font-size: 13px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 30px var(--gut) 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--txt); }
.foot-links { display: flex; gap: 18px; }

.reveal { opacity: 0; transform: translateY(24px); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .light, .dia, .alpha, .lite { grid-template-columns: 1fr; }
  .lab { grid-template-columns: 1fr; }
  .lab-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keymap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-facts { grid-template-columns: 1fr; }
  .sniff { grid-template-columns: auto minmax(0, 1fr); }
  .sniff-copy { grid-column: 1 / -1; }
  .top-nav a:not(.top-cta) { display: none; }
}
@media (max-width: 700px) {
  .lab-keys { grid-template-columns: 1fr; }
  .histo { display: none; }
  .swatches { left: 10px; width: 118px; gap: 5px; }
  .swatch { padding: 6px 8px; font-size: 10.5px; }
  .os-cards { grid-template-columns: 1fr; }
  .sniff { grid-template-columns: 1fr; justify-items: start; }
  .sniff-bytes code { font-size: 14px; }
  .coach { font-size: 13px; }
}
@media (max-width: 480px) {
  .keymap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
