/* Sculk and Calcite pages v2 (2026-11-09, apps 1.1.0). True black, frosted glass with a specular rim, one blue
   accent, the apps' own controls: a glass lens on the segmented controls that you can drag across, and sliders
   whose thumb is a spring lens (it lags a touch, stretches the way it travels and settles). Fonts from the
   portfolio: Bricolage Grotesque for headings, Figtree for text, IBM Plex Mono for numbers.
   html.rm (reduced motion) and html.perf (performance mode) keep everything still and drop the blur. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(/assets/fonts/bricolage-grotesque.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/figtree.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format('woff2'); }

:root {
  --bg: #000;
  --t1: #f5f5f7; --t2: rgba(235, 235, 245, .66); --t3: rgba(235, 235, 245, .42);
  --accent: #ffffff; --accent-hi: #e6e6e6; --accent-soft: rgba(255, 255, 255, .16);
  --glass: rgba(30, 30, 33, .52); --glass-solid: rgba(24, 24, 27, .94);
  --ctl: rgba(120, 120, 128, .18); --ctl-hover: rgba(120, 120, 128, .28);
  --rim: rgba(255, 255, 255, .08); --rim-top: rgba(255, 255, 255, .2);
  --line: rgba(255, 255, 255, .07);
  --blur: blur(30px) saturate(180%);
  --r-xl: 24px; --r-lg: 18px; --r: 12px;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  /* the apps' springs baked into linear(): pop 320/18 (visible overshoot), soft 180/22 */
  --pop: linear(0.0009, 0.0297, 0.1025, 0.2053, 0.3107, 0.4395, 0.569, 0.6925, 0.7916, 0.8917, 0.9756, 1.0352, 1.0876, 1.1242, 1.1465, 1.1559, 1.1569, 1.1497, 1.1384, 1.1214, 1.1019, 1.0815, 1.0637, 1.0446, 1.0273, 1.0141, 1.0014, 0.9914, 0.984, 0.9795, 0.9764, 0.9752, 0.9754, 0.9768, 0.979, 0.9819, 0.9846, 0.9878, 0.991, 0.9936, 0.9962, 0.9985, 1.0004, 1.0016, 1.0027, 1.0034, 1.0038, 1.0039, 1.0038, 1.0036, 1.0032, 1.0028, 1.0023, 1.0018, 1.0013, 1.0009, 1.0005, 1.0002, 0.9999, 0.9997, 1);
  --pop-ms: 772ms;
  /* nothing bounces (owner rule 2026-11-13): the pop spring above is retired, everything it drove now
     glides on outQuint in about 220 ms with no overshoot */
  --pop: cubic-bezier(.22, 1, .36, 1);
  --pop-ms: 220ms;
  --soft: linear(0.0005, 0.013, 0.0446, 0.0899, 0.1447, 0.2057, 0.27, 0.3262, 0.3914, 0.4549, 0.5158, 0.5732, 0.6268, 0.6763, 0.7153, 0.7567, 0.794, 0.8272, 0.8566, 0.8823, 0.9047, 0.9215, 0.9384, 0.9528, 0.9649, 0.975, 0.9833, 0.9892, 0.9948, 0.9992, 1.0027, 1.0053, 1.0071, 1.0084, 1.0091, 1.0096, 1.0097, 1.0096, 1.0094, 1.0089, 1.0084, 1.0079, 1.0073, 1.0067, 1.006, 1.0054, 1.0048, 1.0043, 1.0038, 1.0033, 1.0028, 1.0024, 1.0021, 1.0017, 1.0015, 1.0012, 1.001, 1.0008, 1.0006, 1.0005, 1);
  --soft-ms: 685ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--t1); font: 400 17px/1.6 var(--font); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent-soft); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--t1); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
.mono { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.04; letter-spacing: 0; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }
.muted { color: var(--t2); }

/* ambient: the hero screenshot, blurred far behind everything; it never moves */
.amb { position: fixed; inset: -14%; z-index: -1; pointer-events: none; opacity: .3; }
.amb img { width: 100%; height: 100%; object-fit: cover; filter: blur(100px) saturate(1.4); }
.amb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 70% at 50% 12%, rgba(0, 0, 0, 0), #000 80%); }
html.perf .amb { display: none; }

/* ---------- glass ---------- */
.glass { position: relative; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--r-xl); box-shadow: inset 0 0 0 .5px var(--rim), inset 0 .5px 0 var(--rim-top), 0 30px 80px -30px rgba(0, 0, 0, .8); }
/* the specular rim: light catching the top left edge */
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pane { position: relative; background: rgba(22, 22, 25, .74); border-radius: var(--r-xl); box-shadow: inset 0 0 0 .5px var(--rim), inset 0 .5px 0 var(--rim-top); }
html.perf .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); }
.bar-in { height: 60px; display: flex; align-items: center; gap: 12px; }
.bar::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 -.5px 0 var(--line); opacity: 0; transition: opacity .35s var(--ease-out); }
.bar.solid::after { opacity: 1; }
html.perf .bar::after { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .92); }
.bar-mark { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: 0; text-decoration: none; }
.bar-mark img { width: 26px; height: 26px; border-radius: 7px; }
.bar-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.bar-nav a { text-decoration: none; color: var(--t2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .25s, background-color .25s; }
.bar-nav a:hover { color: var(--t1); background: var(--ctl); }
.bar-nav .dl { color: #000; background: var(--accent); margin-left: 6px; }
.bar-nav .dl:hover { background: var(--accent-hi); }
@media (max-width: 700px) { .bar-nav .hide-s { display: none; } .bar-nav a { padding: 8px 9px; font-size: 14.5px; } }

/* ---------- buttons: 12px corners, a spring press ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 14px; border: 0; text-decoration: none; font: 600 16px/1.15 var(--font); color: var(--t1); background: var(--ctl);
  box-shadow: inset 0 .5px 0 var(--rim-top); cursor: pointer; transition: transform var(--pop-ms) var(--pop), background-color .25s; }
.btn:hover { background: var(--ctl-hover); transform: translateY(-2px); }
.btn:active { opacity: .86; }
.btn.primary { color: #000; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 6px rgba(0, 0, 0, .35); }
.btn.primary:hover { background: var(--accent-hi); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn small { font: 500 13px var(--mono); opacity: .75; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 11px; }
html.rm .btn, html.perf .btn { transition: background-color .2s; }
html.rm .btn:hover, html.perf .btn:hover, html.rm .btn:active, html.perf .btn:active { transform: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; }
.hero-name { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 26px); }
.hero-icon { width: clamp(72px, 9vw, 112px); height: auto; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.4rem); line-height: .9; letter-spacing: 0; font-weight: 600; }
.hero .lead { margin-top: 22px; max-width: 40rem; font-size: clamp(1.12rem, 1.9vw, 1.38rem); line-height: 1.5; color: var(--t2); }
.hero .lead b { color: var(--t1); font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 280px; }
.hero-cta .row2 { display: flex; gap: 10px; }
.hero-cta .row2 .btn { flex: 1; }
.hero-meta { margin-top: 2px; color: var(--t3); font-size: 13.5px; text-align: center; }
.hero-meta a { color: var(--t2); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-cta { min-width: 0; max-width: 420px; } }

/* the real app window in glass; it leans back and settles flat as you scroll (apps2.js writes --k 0..1) */
.win-stage { margin-top: clamp(36px, 5vw, 60px); perspective: 1800px; }
.win { padding: clamp(6px, .9vw, 12px); transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--k, 1)) * 16deg)) scale(calc(.92 + var(--k, 1) * .08)); will-change: transform; }
.win-view { position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 9px); background: #0b0b0c; aspect-ratio: 16 / 9; cursor: zoom-in; }
.win-view.zoomed { cursor: crosshair; }
.win-view img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transition: transform-origin var(--pop-ms) var(--pop); }
html.anim:not(.perf) .win-view img.in { animation: hero-in var(--soft-ms) var(--soft) both; }
@keyframes hero-in { from { opacity: .3; } to { opacity: 1; } }
html.rm .win-view img, html.perf .win-view img { transition: none; }
/* the floating inspector over the window's corner: the apps' segmented control and a zoom slider */
.win-stage { position: relative; }
.hero-ctl { position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: 10px; width: min(410px, 42%); padding: 12px 14px 8px; display: grid; gap: 8px; border-radius: 20px; }
.hero-ctl .seg { display: flex; width: 100%; }
.hero-ctl .seg button { flex: 1 1 auto; }
.hero-ctl .r { grid-template-columns: 48px minmax(0, 1fr) 48px; }
@media (min-width: 861px) { .win-stage > .cap { padding-right: calc(min(410px, 42%) + clamp(16px, 3vw, 40px) + 24px); min-height: 64px; } }
@media (max-width: 860px) { .hero-ctl { position: relative; right: auto; bottom: auto; width: auto; margin-top: 12px; } }
.cap { color: var(--t3); font-size: 14px; margin: 14px 6px 0; }

/* ---------- sections ---------- */
section { padding-block: clamp(84px, 11vw, 140px) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { margin-top: 14px; color: var(--t2); font-size: 1.1rem; }

/* ---------- the segmented control and its draggable glass lens ---------- */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--ctl); isolation: isolate;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 17px; border: 0; border-radius: 999px; background: transparent;
  color: var(--t2); font: 500 15px/1 var(--font); cursor: pointer; white-space: nowrap; transition: color .25s, transform var(--pop-ms) var(--pop); }
.seg button:hover { color: var(--t1); }
.seg button[aria-selected=true], .seg button[aria-checked=true] { color: var(--t1); }
.seg.sm button { height: 32px; padding: 0 13px; font-size: 14px; }
.seg.grab { cursor: grabbing; }
.lens { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none; will-change: transform;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(2px) saturate(1.9) brightness(1.2); backdrop-filter: blur(2px) saturate(1.9) brightness(1.2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .12), inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 4px 14px rgba(0, 0, 0, .35); }
html.perf .lens { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .16); }
.lens { overflow: hidden; }
.lens-mag { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .16s var(--ease-out); }
.lens-mag span { position: absolute; display: flex; align-items: center; justify-content: center; white-space: nowrap; color: var(--t1); font: 500 15px/1 var(--font); }
.seg.sm .lens-mag span { font-size: 14px; }
.seg.grab .lens-mag { opacity: 1; }
.seg.grab .lens { z-index: 2; background: rgba(40, 40, 46, .5); -webkit-backdrop-filter: blur(3px) saturate(1.9) brightness(1.15); backdrop-filter: blur(3px) saturate(1.9) brightness(1.15); }html:not(.js) .seg button[aria-selected=true], html:not(.js) .seg button[aria-checked=true] { background: rgba(255, 255, 255, .14); }

/* ---------- the slider: a white knob at rest, a clear glass lens that magnifies the track while held ---------- */
.gs { position: relative; height: 34px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; user-select: none; -webkit-user-select: none; }
.gs .tr { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--ctl-hover); overflow: hidden; }
.gs .fi { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--accent); border-radius: 6px; }
.gs .kn { position: absolute; left: 0; top: 50%; width: 32px; height: 21px; border-radius: 999px; overflow: hidden; will-change: transform;
  transform: translate3d(-16px, -50%, 0); background: rgba(255, 255, 255, .97); box-shadow: 0 2px 7px rgba(0, 0, 0, .4), inset 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: background-color .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.gs .mag { position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--ctl-hover); transform-origin: 0 50%; opacity: 0; transition: opacity .2s; }
.gs .mag i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 6px; }
.gs.held .kn { background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(1.5px) saturate(2) brightness(1.25); backdrop-filter: blur(1.5px) saturate(2) brightness(1.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -1px 1.5px rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .45), 0 6px 18px rgba(0, 0, 0, .35); }
.gs.held .mag { opacity: 1; }
.gs:focus-visible .kn { box-shadow: 0 0 0 3px var(--accent), 0 2px 7px rgba(0, 0, 0, .4); }
html.perf .gs.held .kn { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .5); }
html.perf .gs .mag { display: none; }

/* ---------- try it: the app's inspector, working on a real thumbnail ---------- */
.try { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: stretch; }
.try-view { padding: 10px; display: flex; }
.try-frame { position: relative; flex: 1; border-radius: 15px; overflow: hidden; background: #0b0b0c; aspect-ratio: 16 / 9; align-self: center; }
.try-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform, filter; }
.try-frame .vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, var(--vig, 0)) 100%); }
.try-insp { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.try-insp h3 { font: 600 15px var(--font); color: var(--t2); letter-spacing: 0; }
.try-insp .seg { align-self: flex-start; }
.rows { display: grid; gap: 4px; }
.r { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px; align-items: center; gap: 12px; }
.r label { color: var(--t2); font-size: 14.5px; }
.r output { font: 500 13px var(--mono); color: var(--t2); text-align: right; font-variant-numeric: tabular-nums; }
.try-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.try-foot p { color: var(--t3); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 900px) { .try { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tour (panel tabs with the app's crops) ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); align-items: start; margin-top: 28px; }
.tour-pic { padding: 8px; }
.tour-pic img { border-radius: 16px; width: 100%; }
.tour-copy [role=tabpanel] h3 { font-size: 1.6rem; letter-spacing: 0; margin-bottom: 10px; }
.tour-copy [role=tabpanel] p { color: var(--t2); }
.tour-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tour-copy li { position: relative; padding-left: 20px; color: var(--t2); }
.tour-copy li::before { content: ''; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.tour-copy li b { color: var(--t1); font-weight: 600; }
[role=tabpanel][hidden] { display: none; }
html.anim:not(.perf) [role=tabpanel].in { animation: tp-in var(--soft-ms) var(--soft) both; }
@keyframes tp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.anim:not(.perf) .tour-pic img.in { animation: pic-in var(--soft-ms) var(--soft) both; }
@keyframes pic-in { from { opacity: .25; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .tour { grid-template-columns: minmax(0, 1fr); } .tour-pic { max-width: 360px; } }

/* ---------- what is new: alternating rows, real screenshots ---------- */
.news { display: grid; gap: clamp(56px, 8vw, 104px); }
.nw { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.nw:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.nw:nth-child(even) .nw-pic { order: 2; }
.nw-pic { padding: 8px; }
.nw-pic img { border-radius: 16px; width: 100%; }
.nw-txt h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: 0; }
.nw-txt p { color: var(--t2); margin-top: 12px; }
.nw-txt ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--t2); font-size: 15.5px; }
.nw-txt li { padding-left: 18px; position: relative; }
.nw-txt li::before { content: ''; position: absolute; left: 1px; top: .68em; width: 5px; height: 5px; border-radius: 2px; background: var(--accent); }
@media (max-width: 860px) { .nw, .nw:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .nw:nth-child(even) .nw-pic { order: 0; } }

/* ---------- smaller things, as a plain list (no bento) ---------- */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: .5px solid var(--line); }
.more > div { padding: 22px 0 24px; border-bottom: .5px solid var(--line); }
.more h3 { font: 600 16.5px/1.3 var(--font); letter-spacing: 0; }
.more p { color: var(--t2); font-size: 15px; margin-top: 6px; }
.more kbd { font: 500 12px var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--ctl); box-shadow: inset 0 0 0 .5px var(--rim-top); }
@media (max-width: 900px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .more { grid-template-columns: minmax(0, 1fr); } }

/* ---------- dark or light: drag the lens to wipe ---------- */
.wipe { padding: 8px; }
.wipe-box { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; background: #0b0b0c; user-select: none; touch-action: pan-y; }
.wipe-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe-box .top { clip-path: inset(0 0 0 calc(var(--w, .5) * 100%)); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: calc(var(--w, .5) * 100%); width: 1.5px; margin-left: -.75px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.wipe-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 16px 8px 6px; color: var(--t2); font-size: 14.5px; }

/* ---------- library note ---------- */
.lib { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lib .pane { padding: 28px 30px; }
.lib ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: var(--t2); }
.lib ol b { color: var(--t1); font-weight: 600; }
.lib .muted { margin-top: 14px; }
@media (max-width: 820px) { .lib { grid-template-columns: minmax(0, 1fr); } }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.dl-card { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dl-card h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.dl-card p { color: var(--t2); font-size: 15.5px; }
.dl-card .btn { align-self: flex-start; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sum { font: 12.5px/1.55 var(--mono); color: var(--t3); word-break: break-all; }
.sum b { color: var(--t2); font-weight: 500; }
.note { font-size: 14.5px; color: var(--t2); padding: 13px 15px; border-radius: 13px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 .5px var(--rim); }
.note b { color: var(--t1); font-weight: 600; }
pre.code { margin: 0; overflow-x: auto; font: 13px/1.6 var(--mono); color: var(--t1); background: rgba(0, 0, 0, .5); padding: 12px 14px; border-radius: 11px; box-shadow: inset 0 0 0 .5px var(--rim); }
.tag { display: inline-block; font: 600 12.5px var(--font); color: #ffd60a; background: rgba(255, 214, 10, .12); padding: 3px 8px; border-radius: 7px; }
.upd { margin-top: 16px; color: var(--t2); font-size: 15px; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- specs, privacy, changelog ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols .pane { padding: 26px 28px; }
.cols h2, .log h2 { font-size: 1.6rem; letter-spacing: 0; margin-bottom: 14px; }
@media (max-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr); } }
dl.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 15.5px; }
dl.spec dt { color: var(--t3); }
dl.spec dd { margin: 0; }
.log { padding: 28px 30px; }
.log h3 { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 1.15rem; margin-top: 22px; }
.log h3:first-of-type { margin-top: 4px; }
.log h3 span { color: var(--t3); font: 400 14px var(--font); }
.log ul { margin: 10px 0 0; padding-left: 20px; color: var(--t2); display: grid; gap: 7px; font-size: 15.5px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(96px, 12vw, 150px); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); box-shadow: inset 0 .5px 0 var(--line); color: var(--t3); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot a { color: var(--t2); text-decoration: none; }
.foot a:hover { color: var(--t1); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .by { display: inline-flex; align-items: center; gap: 9px; }
.foot .by img { width: 22px; height: 22px; border-radius: 6px; }
.foot .fine { flex-basis: 100%; font-size: 13px; }
.pm { display: inline-flex; align-items: center; gap: 12px; color: var(--t2); cursor: pointer; }
.pm small { color: var(--t3); }
.sw { position: relative; width: 48px; height: 29px; border-radius: 999px; background: var(--ctl-hover); border: 0; padding: 0; cursor: pointer; flex: none; transition: background-color .3s var(--ease-out); }
.sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 25px; height: 25px; border-radius: 999px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); transition: transform var(--pop-ms) var(--pop), width .25s var(--ease-out); }
.sw[aria-checked=true] { background: #30d158; }
.sw[aria-checked=true]::after { transform: translateX(19px); }
/* pressed, the toggle's thumb turns into the same clear glass as the slider's */
.sw:active::after { background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(1.5px) saturate(2) brightness(1.25); backdrop-filter: blur(1.5px) saturate(2) brightness(1.25); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .85), inset 0 0 0 .5px rgba(255, 255, 255, .5), 0 4px 12px rgba(0, 0, 0, .35); }

/* ---------- reveals: on view, once; varied so the lower page keeps a rhythm instead of one slide everywhere ---------- */
html.anim:not(.perf) .rv { opacity: 0; transform: translateY(18px); }
html.anim:not(.perf) .rv.on { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform var(--soft-ms) var(--soft); }
/* section headings just fade in place: a calm beat before the livelier blocks under them */
html.anim:not(.perf) .sec-head.rv { transform: none; }
html.anim:not(.perf) .sec-head.rv.on { transition: opacity .7s var(--ease-out); }
/* pictures rise a touch further and settle with a spring */
html.anim:not(.perf) .rv-pic { opacity: 0; transform: translateY(30px) scale(.975); }
html.anim:not(.perf) .rv-pic.on { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1s var(--soft); }
/* the alternating "new in 1.1" rows slide in from their own side, text from the other */
html.anim:not(.perf) .nw:nth-child(odd) .rv-pic { transform: translate(-26px, 22px) scale(.975); }
html.anim:not(.perf) .nw:nth-child(even) .rv-pic { transform: translate(26px, 22px) scale(.975); }
html.anim:not(.perf) .nw:nth-child(odd) .nw-txt.rv { transform: translate(18px, 16px); }
html.anim:not(.perf) .nw:nth-child(even) .nw-txt.rv { transform: translate(-18px, 16px); }
html.anim:not(.perf) .nw .rv-pic.on, html.anim:not(.perf) .nw .nw-txt.rv.on { transform: none; }
/* phones stack the rows, so slide them straight up (a sideways offset would push past the edge) */
@media (max-width: 860px) {
  html.anim:not(.perf) .nw:nth-child(odd) .rv-pic, html.anim:not(.perf) .nw:nth-child(even) .rv-pic { transform: translateY(26px) scale(.985); }
  html.anim:not(.perf) .nw:nth-child(odd) .nw-txt.rv, html.anim:not(.perf) .nw:nth-child(even) .nw-txt.rv { transform: translateY(16px); }
}
/* a little parallax, nudged by apps2.js as the element crosses the screen (desktop, motion on) */
[data-par] { will-change: transform; }

/* ---------- licences page ---------- */
.lic-page { padding-top: 56px; }
.lic-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: 0; margin: 0 0 12px; }
.lic-page details { margin-top: 12px; }
.lic-page summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lic-page summary::-webkit-details-marker { display: none; }
.lic-page summary::after { content: '+'; color: var(--t3); font-weight: 400; }
.lic-page details[open] summary::after { content: '\2212'; }
.lic-page details pre { margin: 0 12px 12px; max-height: 60vh; overflow: auto; white-space: pre-wrap; font: 12.5px/1.6 var(--mono); color: var(--t2); background: rgba(0, 0, 0, .4); padding: 14px 16px; border-radius: 12px; }
