/* Showcase home page. Built into index.html by tools/build-gallery.mjs. */
:root {
  --paper: #f6f3ee; --card: #fff; --ink: #1c1915; --ink-2: #3a342d; --muted: #6d655c; --line: #e5dfd5; --soft: #efe9e0;
  --night: #14110e; --night-2: #1f1a16; --on-night: #f4efe8; --on-night-2: #bdb3a6;
  --accent: #0f6b62; --accent-soft: #e1f0ec; --warm: #e0793a; --rose: #c4456f; --gold: #f0a36b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--warm); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-night); padding-bottom: 40px; }
.blobs { position: absolute; inset: -25% -10%; z-index: -1; filter: blur(80px); opacity: .5; pointer-events: none; }
.blobs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; }
.blobs i:nth-child(1) { background: #0f6b62; left: -8%; top: -6%; animation: drift-a 24s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { background: #b8532a; right: -12%; top: 6%; animation: drift-b 28s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { background: #7d1d4a; left: 28%; bottom: -32%; animation: drift-c 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { translate: 16vw 14vh; scale: 1.15; } }
@keyframes drift-b { to { translate: -14vw 18vh; scale: .9; } }
@keyframes drift-c { to { translate: -10vw -16vh; scale: 1.2; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: #fff; }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 26px; font-size: .92rem; }
.top nav a { text-decoration: none; color: var(--on-night-2); transition: color .2s; }
.top nav a:hover { color: #fff; }

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 34px 0 64px; }
.hero .eyebrow { color: #86dccb; }
h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(2.7rem, 5.8vw, 5rem); line-height: .98; letter-spacing: -.03em; margin: 0; }
h1 em { font-style: italic; color: var(--gold); }
.w { display: inline-block; }
.lead { max-width: 56ch; margin: 22px 0 0; font-size: 1.1rem; color: var(--on-night-2); }
.lead b { color: var(--on-night); font-weight: 600; }
.search { position: relative; display: block; max-width: 540px; margin: 30px 0 0; }
.search svg { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--on-night-2); }
.search input { width: 100%; padding: 16px 16px 16px 48px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); color: #fff; font-weight: 500; font-size: 1rem; backdrop-filter: blur(8px); transition: border-color .2s, background .2s, box-shadow .2s; }
.search input::placeholder { color: #9d9388; }
.search input:focus { outline: none; border-color: #86dccb; background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(134,220,203,.18); }
.search kbd { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 500 .75rem var(--sans); color: var(--on-night-2); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 2px 7px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 32px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-weight: 650; font-size: 2rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { font-size: .8rem; color: var(--on-night-2); margin-top: 6px; }

/* hero collage of playing sites */
.collage { position: relative; aspect-ratio: 5 / 4; }
.win { position: absolute; margin: 0; width: 76%; border-radius: 14px; overflow: hidden; background: var(--night-2); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.win .chrome { background: #2a241f; border-color: rgba(255,255,255,.08); }
.win .chrome span { background: #1c1814; border-color: rgba(255,255,255,.08); color: #a89e92; }
.win video, .win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #222; }
.win figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(20,17,14,.72); backdrop-filter: blur(6px); font-size: .72rem; font-weight: 600; color: #fff; }
.w1 { left: 0; top: 2%; rotate: -4deg; z-index: 1; }
.w2 { right: 0; top: 20%; rotate: 3deg; z-index: 2; }
.w3 { left: 9%; bottom: 0; z-index: 3; }

/* ribbon */
.ribbon { position: relative; z-index: 2; margin: -34px -3% 0; width: 106%; rotate: -1.6deg; background: var(--warm); color: var(--night); overflow: hidden; padding: 14px 0; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.ribbon.alt { margin-top: -12px; rotate: 1.2deg; background: var(--night-2); color: var(--on-night); z-index: 1; }
.ribbon .track { display: inline-flex; gap: 2.2em; white-space: nowrap; font-weight: 700; font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .06em; text-transform: uppercase; animation: marq 46s linear infinite; }
.ribbon.alt .track { animation-direction: reverse; animation-duration: 60s; }
.ribbon .track span { display: inline-flex; align-items: center; gap: 2.2em; }
.ribbon .track span::after { content: "\2726"; font-size: .8em; opacity: .65; }
@keyframes marq { to { translate: -50% 0; } }

/* ---------- browse ---------- */
.browse { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 40px; padding-top: 64px; }
.filters { position: sticky; top: 14px; align-self: start; max-height: calc(100vh - 28px); overflow: auto; scrollbar-width: thin; padding: 4px 6px 20px 2px; }
.f-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.f-head h2 { font-family: var(--serif); font-weight: 650; font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.f-close { display: none; }
.fgroup { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.fgroup h3 { display: flex; align-items: baseline; justify-content: space-between; font: 600 .72rem var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 11px; }
.fgroup h3 small { font: 500 .72rem var(--sans); letter-spacing: 0; text-transform: none; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.opt:hover { border-color: var(--ink); }
.opt .n { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt[aria-pressed="true"] .n { color: #cfc6ba; }
.opt[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.opt[aria-disabled="true"]:hover { border-color: var(--line); }
.opt .glyph { width: 14px; height: 14px; border-radius: 50%; background: currentColor; opacity: .85; flex: none; }
.f-note { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.f-reset { margin-top: 4px; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.f-foot { display: none; }
.scrim { display: none; }

.results { min-width: 0; }
.toolbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 0; margin-bottom: 6px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .88rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip .n { font-size: .72rem; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 1px 7px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .n { background: rgba(255,255,255,.16); color: #fff; }
.count { flex: none; margin: 0; font-size: .86rem; color: var(--muted); }
.count b { color: var(--ink); }
.f-open { display: none; flex: none; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; }
.f-open svg { width: 16px; height: 16px; }
.f-open b { min-width: 20px; height: 20px; border-radius: 999px; background: var(--warm); color: var(--night); font-size: .72rem; display: inline-grid; place-items: center; padding: 0 5px; }
.f-open b:empty { display: none; }
.active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 0; margin: 10px 0 0; }
.active:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; border: 0; cursor: pointer; }
.pill svg { width: 14px; height: 14px; }
.pill:hover { background: #cfe7e0; }
.pill.clear { background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding-left: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; padding-top: 18px; }
.card { --c: var(--accent); position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 2px rgba(28,25,21,.04), 0 10px 26px -14px rgba(28,25,21,.16); transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
.card[hidden] { display: none; }
.card::before { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 3px; background: var(--c); scale: 0 1; transform-origin: left; transition: scale .6s var(--ease); }
.card:hover { translate: 0 -5px; box-shadow: 0 2px 4px rgba(28,25,21,.05), 0 30px 50px -24px rgba(28,25,21,.34); }
.card:hover::before, .card.playing::before { scale: 1 1; }
.chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f4f0ea; border-bottom: 1px solid var(--line); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chrome i:nth-child(1) { background: #e8a598; } .chrome i:nth-child(2) { background: #ead39c; } .chrome i:nth-child(3) { background: #a9d3b5; }
.chrome span { margin-left: 10px; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen img { transition: scale .8s var(--ease), opacity .4s; }
.screen video { opacity: 0; transition: opacity .45s; }
.card.playing .screen video { opacity: 1; }
.card:hover .screen img { scale: 1.035; }
.badge, .pages { position: absolute; z-index: 2; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(20,17,14,.72); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.badge { left: 12px; }
.pages { right: 12px; font-weight: 500; }
.badge .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.badge .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { scale: .4; opacity: .9; } 100% { scale: 1.6; opacity: 0; } }
.vp { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); opacity: 0; transition: opacity .3s; }
.vp i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--c); transition: width .25s linear; }
.card.playing .vp { opacity: 1; }
.overlay { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; justify-content: flex-end; gap: 8px; padding: 40px 12px 14px; background: linear-gradient(180deg, transparent, rgba(20,17,14,.7)); opacity: 0; translate: 0 8px; transition: opacity .3s, translate .4s var(--ease); }
.card:hover .overlay, .overlay:focus-within { opacity: 1; translate: none; }
.ov-btn { border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: .84rem; padding: 9px 13px; border-radius: 10px; background: rgba(255,255,255,.94); color: var(--ink); }
.ov-btn.primary { background: var(--ink); color: #fff; }
.ov-btn:hover { background: #fff; } .ov-btn.primary:hover { background: var(--accent); }
@media (hover: none) { .overlay { display: none; } }
.watch { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: none; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 0; background: rgba(20,17,14,.72); color: #fff; font-size: .75rem; font-weight: 600; cursor: pointer; }
.watch svg { width: 12px; height: 12px; }

.body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }
.card[data-category="Food & drink"] .dot { background: #c2662d; }
.card[data-category="Stay & travel"] .dot { background: #2b7bb9; }
.card[data-category="Shops"] .dot { background: #b03a6b; }
.card[data-category="Health & beauty"] .dot { background: #0f6b62; }
.card[data-category="Services & events"] .dot { background: #7a5af5; }
.tag-dash { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: .04em; }
.card h2 { font-family: var(--serif); font-weight: 650; font-size: 1.42rem; line-height: 1.15; margin: 9px 0 2px; letter-spacing: -.01em; }
.where { margin: 0; color: var(--muted); font-size: .9rem; }
.sig { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, #fff); font-size: .9rem; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.sig .spark { flex: none; color: var(--c); filter: saturate(1.2) brightness(.85); font-size: 1rem; line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .74rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.tags li.more { background: none; color: var(--muted); padding-left: 2px; }
.blurb { margin: 12px 0 14px; font-size: .93rem; color: var(--ink-2); }
.meta { margin: auto 0 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }
.meta a { color: var(--muted); text-underline-offset: 2px; }
.actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn span { transition: translate .25s var(--ease); } .btn:hover span { translate: 3px 0; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.link { margin-left: auto; font-size: .84rem; color: var(--muted); text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.empty { display: none; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty.show { display: block; }
.empty b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- motion library ---------- */
.library { margin-top: 90px; padding: 80px 0 90px; background: var(--night); color: var(--on-night); position: relative; isolation: isolate; overflow: hidden; }
.library .blobs { opacity: .28; }
.library .eyebrow { color: #86dccb; }
.library h2 { font-family: var(--serif); font-weight: 650; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.library > .wrap > p { max-width: 64ch; color: var(--on-night-2); margin: 16px 0 0; }
.library h3 { font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); margin: 44px 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; text-align: left; padding: 12px 12px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); cursor: pointer; transition: background .25s, border-color .25s, translate .35s var(--ease); }
.tile:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); translate: 0 -3px; }
.tile b { font-size: 1rem; margin: 12px 4px 2px; color: #fff; }
.tile .d { margin: 0 4px; font-size: .84rem; color: var(--on-night-2); line-height: 1.45; }
.tile em { margin: 12px 4px 0; font-style: normal; font-size: .78rem; font-weight: 600; color: #86dccb; }
.tile em::after { content: " \2192"; transition: margin .25s; }
.tile:hover em::after { margin-left: 4px; }

/* mini demos: each is a tiny looping animation of the real effect */
.demo { --a: #e0793a; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #f3eee7; isolation: isolate; }
.demo .pg { position: absolute; inset: 0; background:
  linear-gradient(#cfc6ba, #cfc6ba) 14% 26% / 46% 9% no-repeat,
  linear-gradient(#e2dbd1, #e2dbd1) 14% 44% / 62% 5% no-repeat,
  linear-gradient(#e2dbd1, #e2dbd1) 14% 55% / 50% 5% no-repeat,
  linear-gradient(var(--a), var(--a)) 14% 74% / 20% 10% no-repeat,
  linear-gradient(135deg, #e7dfd3, #f6f1ea); }
.demo i, .demo s, .demo u { position: absolute; display: block; text-decoration: none; }
.lib-on .demo * { animation-play-state: running !important; }
.demo * { animation-play-state: paused; }
/* intros */
.d-morph .dot2 { left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--a); animation: d-morph 3.6s var(--ease) infinite; }
@keyframes d-morph { 0% { scale: 0; opacity: 1; } 14% { scale: 1; } 24% { scale: 1.3 .75; } 32% { scale: 1; } 58% { scale: 26; opacity: 1; } 74% { scale: 26; opacity: 0; } 100% { scale: 26; opacity: 0; } }
.d-wipe .panel { inset: 0; background: var(--a); border-radius: 0 0 50% 50% / 0 0 0 0; animation: d-wipe 3.6s var(--ease) infinite; }
@keyframes d-wipe { 0%, 30% { translate: 0 0; border-radius: 0; } 62%, 100% { translate: 0 -112%; border-radius: 0 0 50% 50% / 0 0 26% 26%; } }
.d-curtain .l, .d-curtain .r { top: 0; bottom: 0; width: 51%; background: var(--a); animation: d-curtain-l 3.6s var(--ease) infinite; }
.d-curtain .l { left: 0; } .d-curtain .r { right: 0; animation-name: d-curtain-r; }
@keyframes d-curtain-l { 0%, 30% { translate: 0 0; } 64%, 100% { translate: -102% 0; } }
@keyframes d-curtain-r { 0%, 30% { translate: 0 0; } 64%, 100% { translate: 102% 0; } }
.d-iris { background: var(--a); }
.d-iris .pg { animation: d-iris 3.6s var(--ease) infinite; }
@keyframes d-iris { 0%, 26% { clip-path: circle(0% at 50% 50%); } 66%, 100% { clip-path: circle(75% at 50% 50%); } }
.d-shutter { background: #111; }
.d-shutter .pg { animation: d-iris 3.6s cubic-bezier(.7, 0, .2, 1) infinite; }
.d-shutter .blades { inset: -30%; background: repeating-conic-gradient(from 0deg, #1d1d1d 0 30deg, #2c2c2c 30deg 60deg); -webkit-mask: radial-gradient(circle, transparent 18%, #000 19%); mask: radial-gradient(circle, transparent 18%, #000 19%); animation: d-blades 3.6s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes d-blades { 0%, 24% { rotate: 0deg; scale: 1; opacity: 1; } 62% { rotate: 70deg; scale: 2.6; opacity: 1; } 70%, 100% { rotate: 80deg; scale: 3; opacity: 0; } }
.d-shutter .flash { inset: 0; background: #fff; opacity: 0; animation: d-flash 3.6s linear infinite; }
@keyframes d-flash { 0%, 54% { opacity: 0; } 58% { opacity: .8; } 70%, 100% { opacity: 0; } }
/* effects */
.d-particles .p { top: -8%; width: 7px; height: 7px; border-radius: 60% 0 60% 0; background: var(--a); animation: d-fall 3.4s linear infinite; }
.d-particles .p:nth-child(2) { left: 12%; animation-delay: -.4s; } .d-particles .p:nth-child(3) { left: 30%; animation-delay: -1.9s; background: #f4b6c8; }
.d-particles .p:nth-child(4) { left: 48%; animation-delay: -1.1s; } .d-particles .p:nth-child(5) { left: 66%; animation-delay: -2.6s; background: #f4b6c8; }
.d-particles .p:nth-child(6) { left: 82%; animation-delay: -.8s; } .d-particles .p:nth-child(7) { left: 92%; animation-delay: -2.2s; background: #f4b6c8; }
@keyframes d-fall { to { translate: 14px 140px; rotate: 300deg; } }
.d-ticker .band { left: 0; right: 0; top: 38%; padding: 6px 0; background: var(--a); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.d-ticker .band s { position: static; display: inline-block; animation: marq 7s linear infinite; }
.d-kenburns .ph { inset: 0; background: center / cover no-repeat; animation: d-kb 7s ease-in-out infinite alternate; }
@keyframes d-kb { from { scale: 1.02; } to { scale: 1.22; translate: -4% -3%; } }
.d-parallax .bg { inset: -20% 0 0; background: linear-gradient(160deg, #7fb3c9, #2f6f8f); animation: d-par-bg 3.6s ease-in-out infinite alternate; }
.d-parallax .fg { left: 14%; top: 30%; width: 52%; height: 22%; border-radius: 4px; background: #fff; box-shadow: 0 4px 0 0 rgba(255,255,255,.5), 0 14px 0 -4px rgba(255,255,255,.35); animation: d-par-fg 3.6s ease-in-out infinite alternate; }
@keyframes d-par-bg { to { translate: 0 -8%; } }
@keyframes d-par-fg { to { translate: 0 -60%; opacity: .2; } }
.d-tilt { perspective: 300px; display: grid; place-items: center; }
.d-tilt .cd { position: relative; width: 44%; height: 62%; border-radius: 8px; background: linear-gradient(160deg, #fff, #f1e7da); box-shadow: 0 16px 24px -12px rgba(0,0,0,.35); animation: d-tilt 4s ease-in-out infinite; }
.d-tilt .cd::before { content: ""; position: absolute; left: 12%; right: 12%; top: 12%; height: 42%; border-radius: 4px; background: var(--a); }
@keyframes d-tilt { 0%, 100% { rotate: 1 1 0 0deg; } 25% { rotate: 1 -1 0 16deg; } 50% { rotate: -1 -1 0 14deg; } 75% { rotate: -1 1 0 16deg; } }
.d-glow { background: #fbf4ee; }
.d-glow .g { width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(18px); opacity: .8; animation: d-glow 6s ease-in-out infinite alternate; }
.d-glow .g:nth-child(1) { background: #ffb8c9; left: -10%; top: -20%; } .d-glow .g:nth-child(2) { background: #ffd9a8; right: -10%; top: 10%; animation-delay: -2s; } .d-glow .g:nth-child(3) { background: #c8d8ff; left: 25%; bottom: -40%; animation-delay: -4s; }
@keyframes d-glow { to { translate: 20% 14%; scale: 1.2; } }
.d-waves { background: linear-gradient(#f7c9a0, #f39a72 70%); }
.d-waves .wv { left: 0; bottom: 0; width: 200%; height: 46%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C50 10 150 50 200 30 S350 10 400 30 V60 H0Z' fill='%232f6f8f'/%3E%3C/svg%3E") 0 0 / 50% 100% repeat-x; animation: d-wave 5s linear infinite; }
.d-waves .wv + .wv { opacity: .5; height: 56%; animation-duration: 8s; animation-direction: reverse; }
@keyframes d-wave { to { translate: -50% 0; } }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.d-countup { display: grid; place-items: center; background: #1c1915; }
.d-countup .num { position: static; --n: 0; counter-reset: n var(--n); font: 700 clamp(26px, 3vw, 36px)/1 var(--serif); color: #fff; animation: d-count 3.6s var(--ease) infinite; }
.d-countup .num::before { content: counter(n); }
.d-countup .num::after { content: "+"; color: var(--a); }
@keyframes d-count { 0% { --n: 0; } 60%, 100% { --n: 650; } }
.d-transitions .c { right: 12%; bottom: 18%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: var(--a); animation: d-trans 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes d-trans { 0%, 20% { scale: 1; opacity: 1; } 60% { scale: 34; opacity: 1; } 80%, 100% { scale: 34; opacity: 0; } }
.d-confetti { display: grid; place-items: center; }
.d-confetti .bt { position: relative; width: 34%; height: 20%; border-radius: 999px; background: var(--a); }
.d-confetti .k { left: 50%; top: 50%; width: 6px; height: 9px; border-radius: 1px; background: #f5c451; animation: d-burst 2.4s var(--ease) infinite; opacity: 0; }
.d-confetti .k:nth-child(odd) { background: #c4456f; } .d-confetti .k:nth-child(3n) { background: #0f6b62; }
.d-confetti .k:nth-child(2) { --x: -60px; --y: -40px; } .d-confetti .k:nth-child(3) { --x: 60px; --y: -44px; } .d-confetti .k:nth-child(4) { --x: -80px; --y: 6px; }
.d-confetti .k:nth-child(5) { --x: 82px; --y: 10px; } .d-confetti .k:nth-child(6) { --x: -30px; --y: -60px; } .d-confetti .k:nth-child(7) { --x: 34px; --y: -62px; }
.d-confetti .k:nth-child(8) { --x: -54px; --y: 40px; } .d-confetti .k:nth-child(9) { --x: 50px; --y: 44px; }
@keyframes d-burst { 0%, 18% { translate: 0 0; opacity: 0; rotate: 0deg; } 22% { opacity: 1; } 70% { translate: var(--x) var(--y); opacity: 1; rotate: 240deg; } 100% { translate: var(--x) calc(var(--y) + 30px); opacity: 0; rotate: 300deg; } }
.d-charts .bars { left: 14%; right: 14%; bottom: 16%; top: 22%; display: flex; align-items: flex-end; gap: 8%; }
.d-charts .bars u { position: static; flex: 1; height: 100%; border-radius: 4px 4px 0 0; background: var(--a); transform-origin: bottom; animation: d-bar 3.6s var(--ease) infinite; }
.d-charts .bars u:nth-child(1) { height: 45%; } .d-charts .bars u:nth-child(2) { height: 80%; animation-delay: .1s; background: #7e3af2; } .d-charts .bars u:nth-child(3) { height: 60%; animation-delay: .2s; }
.d-charts .bars u:nth-child(4) { height: 95%; animation-delay: .3s; background: #7e3af2; } .d-charts .bars u:nth-child(5) { height: 70%; animation-delay: .4s; }
@keyframes d-bar { 0% { scale: 1 0; } 40%, 100% { scale: 1 1; } }
.d-breath { display: grid; place-items: center; background: linear-gradient(160deg, #6b8f7b, #3d5a4a); }
.d-breath .ring { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); animation: d-breathe 8s ease-in-out infinite; }
.d-breath .ring + .ring { width: 30%; animation-delay: -.6s; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
@keyframes d-breathe { 0%, 100% { scale: .72; opacity: .5; } 45%, 55% { scale: 1.08; opacity: 1; } }
.d-lines { background: linear-gradient(160deg, #10203a, #1e66d0); }
.d-lines .st { left: -40%; height: 2px; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, #9cc7ff); animation: d-streak 1.8s linear infinite; }
.d-lines .st:nth-child(1) { top: 20%; } .d-lines .st:nth-child(2) { top: 42%; animation-delay: -.7s; animation-duration: 1.4s; } .d-lines .st:nth-child(3) { top: 64%; animation-delay: -1.2s; } .d-lines .st:nth-child(4) { top: 82%; animation-delay: -.3s; animation-duration: 2.2s; }
@keyframes d-streak { to { translate: 360% 0; } }
.d-alternate .bl { height: 16%; width: 40%; border-radius: 4px; background: var(--a); animation: d-alt-l 3.6s var(--ease) infinite; }
.d-alternate .bl:nth-child(1) { top: 14%; left: 8%; } .d-alternate .bl:nth-child(2) { top: 42%; right: 8%; animation-name: d-alt-r; animation-delay: .25s; background: #1e66d0; } .d-alternate .bl:nth-child(3) { top: 70%; left: 8%; animation-delay: .5s; }
.d-alternate::before { content: ""; position: absolute; left: 50%; top: 10%; bottom: 10%; width: 2px; background: #d8cfc3; }
@keyframes d-alt-l { 0% { translate: -120% 0; opacity: 0; } 30%, 80% { translate: 0 0; opacity: 1; } 100% { opacity: 0; } }
@keyframes d-alt-r { 0% { translate: 120% 0; opacity: 0; } 30%, 80% { translate: 0 0; opacity: 1; } 100% { opacity: 0; } }
.d-words { display: grid; place-items: center; }
.d-words .wd { position: static; font: 650 clamp(15px, 1.6vw, 19px)/1.1 var(--serif); color: #1c1915; }
.d-words .wd s { position: static; display: inline-block; text-decoration: none; animation: d-word 3.6s var(--ease) infinite; }
.d-words .wd s:nth-child(2) { animation-delay: .07s; } .d-words .wd s:nth-child(3) { animation-delay: .14s; } .d-words .wd s:nth-child(4) { animation-delay: .21s; }
@keyframes d-word { 0% { opacity: 0; filter: blur(8px); translate: 0 .45em; } 26%, 82% { opacity: 1; filter: blur(0); translate: 0 0; } 100% { opacity: 0; filter: blur(4px); } }

/* ---------- how ---------- */
.how { padding: 80px 0 10px; }
.how h2 { font-family: var(--serif); font-weight: 650; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 24px; letter-spacing: -.015em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--warm); margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step code { font-size: .8rem; background: var(--soft); padding: 1px 6px; border-radius: 5px; }

footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 36px 0 60px; color: var(--muted); font-size: .88rem; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
footer h3 { font: 600 .76rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
footer p { margin: 0 0 8px; }
footer a { color: var(--muted); text-underline-offset: 2px; }
footer code { font-size: .8rem; background: var(--soft); padding: 1px 6px; border-radius: 5px; }

/* ---------- live preview ---------- */
.pv { position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column; background: rgba(20,17,14,.92); backdrop-filter: blur(6px); }
.pv.open { display: flex; }
.pv.opening { animation: pv-in .62s cubic-bezier(.65, 0, .35, 1); }
@keyframes pv-in { from { clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); } to { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); } }
.pv-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: #fff; }
.pv-title { min-width: 0; flex: 1; }
.pv-title b { display: block; font-family: var(--serif); font-weight: 650; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title span { display: block; font-size: .8rem; color: #cfc7bc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title span i { font-style: normal; color: var(--gold); }
.seg { display: flex; background: rgba(255,255,255,.1); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; color: #e9e3da; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: #fff; color: var(--ink); }
.pv-act { display: flex; gap: 8px; }
.ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; text-decoration: none; }
.ic:hover { background: rgba(255,255,255,.2); }
.ic svg { width: 18px; height: 18px; }
.pv-stage { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 4px 18px 18px; overflow: hidden; }
.device { flex: none; position: relative; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform-origin: top center; transition: width .45s var(--ease); }
.device iframe { display: block; border: 0; width: 100%; height: 100%; background: #fff; }
.pv-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; background: #fff; transition: opacity .3s; }
.pv-load.hide { opacity: 0; pointer-events: none; }

/* ---------- entrance + scroll reveals (only when JS runs) ---------- */
.js .hero .w { animation: word-in 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word-in { from { opacity: 0; filter: blur(10px); translate: 0 .42em; } }
.js .hero-in { animation: rise-in 1s var(--ease) both; animation-delay: var(--d, .5s); }
@keyframes rise-in { from { opacity: 0; translate: 0 22px; filter: blur(6px); } }
.js .win { animation: win-in 1.2s var(--ease) both, float 7s ease-in-out infinite 1.3s; }
.js .w1 { animation-delay: .35s, 1.6s; } .js .w2 { animation-delay: .5s, -.7s; } .js .w3 { animation-delay: .65s, -3s; }
@keyframes win-in { from { opacity: 0; transform: translateY(60px) scale(.92); } } /* transform, so it doesn't fight the float (translate) */
@keyframes float { 50% { translate: 0 -9px; } }
.js .rv { opacity: 0; translate: 0 24px; filter: blur(6px); transition: opacity .8s var(--ease), translate .9s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; translate: none; filter: none; }
.js .card.rv.in { transition: opacity .8s var(--ease), translate .4s var(--ease), filter .8s var(--ease), box-shadow .4s var(--ease); transition-delay: var(--d, 0ms), 0ms, var(--d, 0ms), 0ms; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .browse { grid-template-columns: 1fr; padding-top: 52px; }
  .f-open { display: inline-flex; }
  .filters { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 84vh; padding: 18px 20px 0; background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.3); translate: 0 105%; transition: translate .45s var(--ease); visibility: hidden; }
  .filters.open { translate: none; visibility: visible; }
  .f-close { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
  .f-close svg { width: 16px; height: 16px; }
  .f-foot { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 14px 0 18px; background: var(--paper); border-top: 1px solid var(--line); }
  .f-foot .btn { flex: 1; justify-content: center; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(20,17,14,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 12px; }
  .collage { max-width: 540px; width: 100%; margin: 0 auto; }
  .top nav { display: none; }
  .seg button span { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; }
  .count { display: none; }
  .pv-bar { flex-wrap: wrap; }
  .pv-title { flex-basis: 100%; order: -1; }
  .stats { gap: 14px 26px; }
  .stats b { font-size: 1.6rem; }
  .watch { display: inline-flex; }
}
@media (hover: none) { .watch { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; translate: none; filter: none; }
}
.library code { font-size: .85em; background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 5px; color: var(--on-night); }
@media (min-width: 1021px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.chip[aria-disabled="true"]:hover { border-color: var(--line); }
