/* ================= client (mod) page ================= */
:root:has(.cpage) { scroll-behavior: smooth; }
.cpage { --acc: #4ade80; }
.cpage .wrap { max-width: 1160px; }
.c-loading { min-height: 70vh; display: grid; place-items: center; color: var(--muted); padding: 0 16px; text-align: center; }

/* ---------- hero ---------- */
.c-hero {
  position: relative; overflow: hidden; padding: 112px 0 72px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(520px circle at var(--mx, 75%) var(--my, 40%), color-mix(in srgb, var(--acc) 13%, transparent), transparent 60%),
    radial-gradient(ellipse 55% 70% at 78% 45%, color-mix(in srgb, var(--acc) 17%, transparent), transparent 70%),
    radial-gradient(ellipse 90% 60% at 25% 0%, rgba(74, 222, 128, .08), transparent 70%);
}
#c-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-hero .floor {
  opacity: .32;
  background-image:
    linear-gradient(color-mix(in srgb, var(--acc) 50%, transparent) 1.5px, transparent 1.5px),
    linear-gradient(90deg, color-mix(in srgb, var(--acc) 50%, transparent) 1.5px, transparent 1.5px);
}
.c-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.c-hero-inner::before {
  content: ''; position: absolute; z-index: -1; inset: -60px 40% -60px -400px; pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 40% 50%, rgba(13, 15, 14, .75), transparent 70%);
}
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.c-eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; min-height: 22px; }
.c-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.c-title {
  font: 900 clamp(48px, 7vw, 92px)/.95 var(--sans); letter-spacing: -.045em; margin: 0 0 18px; width: fit-content;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--acc) 75%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 34px color-mix(in srgb, var(--acc) 32%, transparent));
}
.c-tagline { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: #b9c3bd; max-width: 540px; margin: 0 0 22px; }
.c-proof { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.c-proof-item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; text-decoration: none; }
.c-proof-item b { color: var(--text); }
.c-proof-item .stars { font-size: 16px; }
a.c-proof-item:hover b { color: var(--accent); }
.c-proof-item + .c-proof-item { padding-left: 16px; border-left: 1px solid var(--line); }
.c-facts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.c-facts span { font-size: 12px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(21, 25, 23, .7); color: #c6cec9; }
.c-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.c-cta .btn-primary { box-shadow: 0 10px 34px -6px rgba(74, 222, 128, .6); transition: box-shadow .2s, translate .2s ease-out; }
.c-cta .btn-primary:hover { box-shadow: 0 14px 42px -6px rgba(74, 222, 128, .85); }

/* ---------- emblem ---------- */
.c-art { position: relative; height: 440px; display: grid; place-items: center; perspective: 1000px; }
.c-ring { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--acc) 42%, transparent); animation: spin2d 48s linear infinite; }
.c-ring::before { content: ''; position: absolute; inset: 34px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--acc) 16%, transparent); }
.c-ring::after { content: ''; position: absolute; width: 9px; height: 9px; top: -5px; left: 50%; margin-left: -4.5px; background: var(--acc); box-shadow: 0 0 14px var(--acc); }
@keyframes spin2d { to { rotate: 360deg; } }
.c-tile-wrap { --tx: 0deg; --ty: 0deg; position: relative; transform: rotateX(var(--ty)) rotateY(var(--tx)); transition: transform .45s ease-out; animation: bob 5s ease-in-out infinite; }
.c-tile {
  width: 190px; height: 190px; padding: 32px; border-radius: 36px;
  background: linear-gradient(145deg, #1d2420, #0d100e);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line));
  box-shadow:
    0 50px 90px -30px color-mix(in srgb, var(--acc) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -20px 40px rgba(0, 0, 0, .35), 0 0 0 10px rgba(255, 255, 255, .015);
}
.c-tile svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--acc) 75%, transparent)); }
.c-esp {
  --c: var(--acc); position: absolute; inset: -26px; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) top left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) top right / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 2px 22px no-repeat;
}
.c-esp-label {
  position: absolute; bottom: 100%; left: 50%; translate: -50% -8px; white-space: nowrap; font-family: var(--pixel); font-size: 9px;
  color: var(--c); background: rgba(0, 0, 0, .6); padding: 5px 8px 4px; text-shadow: 1px 1px 0 #000;
}
.c-esp-label b { color: var(--text); font-weight: normal; margin-left: 4px; }
.c-esp-hp { position: absolute; left: -10px; top: 0; bottom: 0; width: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.c-callout { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; animation: callout .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.c-callout span { background: rgba(13, 15, 14, .82); border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); padding: 6px 11px; border-radius: 9px; backdrop-filter: blur(6px); }
.c-callout i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); flex: none; }
.c-callout.k0 { top: 3%; left: 0; animation-delay: .5s; }
.c-callout.k1 { bottom: 4%; right: 0; flex-direction: row-reverse; animation-delay: .7s; }
.c-callout.k2 { bottom: 4%; left: 6%; animation-delay: .9s; }
@keyframes callout { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* ---------- section tabs ---------- */
.c-tabs { position: sticky; top: 60px; z-index: 20; background: rgba(13, 15, 14, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.c-tabs-row { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.c-tabs-row::-webkit-scrollbar { display: none; }
.c-tabs a { padding: 15px 13px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.c-tabs a:hover, .c-tabs a.on { color: var(--text); }
.c-tabs-ink { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1); }

/* ---------- layout ---------- */
.c-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.c-main { padding-bottom: 20px; min-width: 0; }
.c-main > .paused-note { margin-top: 36px; }
.c-sec { padding-top: 56px; scroll-margin-top: 112px; }
.c-main .section-head { margin-bottom: 20px; }
.c-main .section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.c-side { position: sticky; top: 132px; padding-top: 56px; }

/* ---------- sticky download card ---------- */
.side-card {
  position: relative; border-radius: 22px; padding: 20px; border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 9%, var(--panel)), var(--panel) 45%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85), 0 0 60px -30px color-mix(in srgb, var(--acc) 50%, transparent);
}
.side-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.side-icon { width: 48px; height: 48px; padding: 9px; flex: none; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); }
.side-icon svg, .mc-icon svg, .m-icon svg, .feat-ico svg, .inst-done-ico svg { width: 100%; height: 100%; display: block; }
.side-head b { display: block; font-size: 17px; }
.side-head span { font-size: 12px; color: var(--muted); }
.side-dl { width: 100%; justify-content: center; padding: 15px; font-size: 16px; font-weight: 800; border-radius: 13px; }
.side-dl.btn-primary { box-shadow: 0 10px 30px -8px rgba(74, 222, 128, .6); }
.side-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 16px 0; background: var(--line); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.side-facts div { background: var(--panel); padding: 10px 12px; }
.side-facts dt { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.side-facts dd { margin: 3px 0 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.side-facts dd.on { color: var(--accent); }
.side-facts dd.off { color: #fbbf24; }
.side-verify { padding: 12px; border-radius: 13px; background: var(--bg); border: 1px dashed var(--line); }
.side-verify > span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.side-verify code { display: block; font-size: 13px; margin: 4px 0 10px; color: var(--text); }
.side-verify-row, .side-row { display: flex; gap: 6px; }
.side-row { margin-top: 12px; }
.side-row .btn, .side-verify-row .btn { flex: 1; justify-content: center; }

/* ---------- overview ---------- */
.c-overview { padding: 26px 28px; }
.c-overview p { margin: 0; color: #b9c3bd; }
.c-overview p + p { margin-top: 14px; }
.c-overview .lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--text); }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  position: relative; isolation: isolate; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  transition: border-color .25s, transform .25s;
}
.feat::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--acc) 18%, transparent), transparent 60%);
}
.feat:hover { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); transform: translateY(-3px); }
.feat:hover::before { opacity: 1; }
.feat.big { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 11%, var(--panel)), var(--panel) 60%); }
.feat.w2 { grid-column: span 2; }
.feat.w3 { grid-column: span 3; }
.feat-ico { display: block; width: 44px; height: 44px; padding: 9px; margin-bottom: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.feat.big .feat-ico { width: 58px; height: 58px; padding: 11px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feat.big h3 { font-size: 23px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.feat.big p { font-size: 15px; max-width: 440px; }

/* ---------- install checklist ---------- */
.inst { padding: 22px 24px; }
.inst-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.inst-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.inst-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #86efac); box-shadow: 0 0 12px var(--accent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
#inst-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inst-steps { list-style: none; margin: 0; padding: 0; }
.inst-step { display: flex; gap: 16px; padding: 18px 0; }
.inst-step + .inst-step { border-top: 1px dashed var(--line); }
.inst-check {
  flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--muted); font-family: var(--pixel); font-size: 11px;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.inst-check:hover { border-color: var(--accent); transform: scale(1.07); }
.inst-check svg { display: none; width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.inst-step.done .inst-check { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(74, 222, 128, .5); }
.inst-step.done .inst-check .n { display: none; }
.inst-step.done .inst-check svg { display: block; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { scale: .3; } }
.inst-step.done .inst-body h3 { color: var(--muted); }
.inst-body { flex: 1; min-width: 0; }
.inst-body h3 { margin: 7px 0 6px; font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inst-body p { margin: 0 0 10px; color: #b9c3bd; font-size: 14px; }
.inst-done {
  display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 14px 16px; border-radius: 15px;
  background: linear-gradient(120deg, rgba(74, 222, 128, .16), color-mix(in srgb, var(--acc) 10%, transparent)); border: 1px solid rgba(74, 222, 128, .4);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.inst-done-ico { width: 34px; height: 34px; flex: none; }
.inst-done div { flex: 1; font-size: 14px; }

/* ---------- reviews / faq ---------- */
#reviews .rv-form { margin-top: 14px; }
.rv-form-title { margin: 0 0 2px; font-size: 18px; }
.c-faq details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c-faq details summary::-webkit-details-marker { display: none; }
.c-faq details summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; color: var(--accent); transition: rotate .25s; }
.c-faq details[open] summary::after { rotate: 45deg; }

/* ---------- changelog timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.tl::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--accent), var(--line) 35%); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-dot { position: absolute; left: -30px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid #3a433e; }
.tl-item.latest .tl-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(74, 222, 128, .15), 0 0 16px var(--accent); }
.tl-card { padding: 18px 20px; }
.tl-item.latest .tl-card { border-color: rgba(74, 222, 128, .35); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-ver { font-family: var(--pixel); font-size: 12px; font-weight: normal; }
.tl-dl { margin-left: auto; }
.tl-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #c6cec9; }
.tl-notes li { display: flex; gap: 10px; align-items: baseline; }
.nk { flex: none; width: 34px; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 2px 0; border-radius: 4px; }
.nk-new { background: rgba(74, 222, 128, .15); color: var(--accent); }
.nk-fix { background: rgba(251, 191, 36, .12); color: #fbbf24; }
.nk-chg { background: rgba(34, 211, 238, .1); color: #67e8f9; }
.tl-card .hash { margin-top: 12px; }

/* ---------- more clients ---------- */
.c-more { padding: 88px 0 0; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mc {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.mc:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); transform: translateY(-3px); box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--acc) 60%, transparent); }
.mc-icon { width: 50px; height: 50px; padding: 9px; flex: none; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); }
.mc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mc-body b { font-size: 16px; }
.mc-body span { font-size: 12px; color: var(--muted); }
.mc-body em { font-style: normal; font-size: 13px; color: #b9c3bd; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-go { color: var(--muted); font-size: 18px; transition: translate .25s, color .25s; }
.mc:hover .mc-go { translate: 5px 0; color: var(--acc); }

/* ---------- mobile download bar ---------- */
.m-dlbar { display: none; }

@media (max-width: 900px) {
  .c-hero { padding: 84px 0 48px; }
  .c-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .c-hero-inner::before { inset: 0 -40px; background: radial-gradient(ellipse 80% 55% at 50% 70%, rgba(13, 15, 14, .8), transparent 75%); }
  .c-art { order: -1; height: 290px; }
  .c-tile { width: 140px; height: 140px; padding: 24px; border-radius: 28px; }
  .c-ring { width: 250px; height: 250px; }
  .c-layout { grid-template-columns: 1fr; }
  .c-side { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .feat.big, .feat.w3 { grid-column: span 2; }
  .more-grid { grid-template-columns: 1fr; }
  .m-dlbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
    border-radius: 18px; background: rgba(21, 25, 23, .95); border: 1px solid rgba(74, 222, 128, .4); backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .85);
  }
  .m-icon { width: 40px; height: 40px; padding: 7px; flex: none; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
  .m-dlbar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .m-dlbar b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-dlbar span { font-size: 12px; color: var(--muted); }
  .m-dlbar .btn { padding: 11px 16px; }
  .cpage { padding-bottom: 88px; }
  .cpage .demo-badge { bottom: 86px; }
  .cpage .toast { top: 120px; }
}
@media (max-width: 600px) {
  .c-callout { display: none; }
  .c-art { height: 250px; }
  .bento { grid-template-columns: 1fr; }
  .feat.big, .feat.w2, .feat.w3 { grid-column: auto; }
  .c-cta .btn { flex: 1; justify-content: center; }
  .c-proof { gap: 10px 14px; }
  .c-proof-item + .c-proof-item { padding-left: 14px; }
  .c-overview, .inst { padding: 20px; }
  .tl-dl { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .c-ring, .c-tile-wrap, .inst-step.done .inst-check svg { animation: none; }
  .c-callout { animation: none; opacity: 1; }
}

/* long paths scroll inside their row instead of widening the page */
.paths { grid-template-columns: minmax(0, 1fr); }
.path { min-width: 0; }
@media (max-width: 900px) { .c-layout { grid-template-columns: minmax(0, 1fr); } }
/* the phone download bar slides in once the hero's own Download button has scrolled away */
@media (max-width: 900px) {
  .m-dlbar { translate: 0 calc(100% + 24px); transition: translate .4s cubic-bezier(.2, .8, .2, 1); }
  .m-dlbar.show { translate: 0 0; }
}

/* ---------- previews gallery ---------- */
.gal { outline: none; }
.gal-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #070908;
  border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line));
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--acc) 55%, transparent), 0 0 0 6px rgba(255, 255, 255, .015);
  touch-action: pan-y;
}
.gal-media { position: absolute; inset: 0; }
.gal-media img, .gal-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-media img { cursor: zoom-in; }
.gal-media.swap { animation: gal-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes gal-in { from { opacity: 0; scale: 1.03; } }
.gal-esp {
  --c: var(--acc); position: absolute; inset: 14px; pointer-events: none; opacity: .75;
  background:
    linear-gradient(var(--c), var(--c)) top left / 20px 2px no-repeat, linear-gradient(var(--c), var(--c)) top left / 2px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 20px 2px no-repeat, linear-gradient(var(--c), var(--c)) top right / 2px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 20px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 2px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 20px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 2px 20px no-repeat;
}
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; pointer-events: none;
  background: linear-gradient(transparent, rgba(5, 7, 6, .88)); font-size: 14px; font-weight: 600; color: #eef2ef;
}
.gal-cap:empty { display: none; }
.gal-nav, .gal-expand {
  position: absolute; display: grid; place-items: center; padding: 0; border-radius: 50%;
  background: rgba(8, 10, 9, .7); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  opacity: 0; transition: opacity .2s, background .2s, scale .15s;
}
.gal-nav { top: 50%; translate: 0 -50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.gal-nav.prev { left: 16px; }
.gal-nav.next { right: 16px; }
.gal-expand { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
.gal-stage:hover .gal-nav, .gal-stage:hover .gal-expand, .gal-nav:focus-visible, .gal-expand:focus-visible { opacity: 1; }
.gal-nav:hover, .gal-expand:hover { background: color-mix(in srgb, var(--acc) 35%, rgba(8, 10, 9, .8)); scale: 1.06; }
.gal-count { position: absolute; top: 18px; left: 22px; font-family: var(--pixel); font-size: 10px; color: #fff; background: rgba(0, 0, 0, .55); padding: 5px 8px 4px; border-radius: 4px; }
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.gal-thumb {
  position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: #070908; opacity: .55; transition: opacity .2s, border-color .2s, translate .2s;
}
.gal-thumb img, .gal-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover { opacity: .9; translate: 0 -2px; }
.gal-thumb.on { opacity: 1; border-color: var(--acc); box-shadow: 0 0 18px -4px var(--acc); }
.gal-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 2px 8px #000; }
@media (hover: none) { .gal-nav, .gal-expand { opacity: 1; } }

/* ---------- full-screen viewer ---------- */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 72px;
  background: rgba(3, 4, 4, .94); backdrop-filter: blur(8px); animation: lb-in .25s ease-out; touch-action: pan-y;
}
.lb.out { animation: lb-out .22s ease-in forwards; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-media img, .lb-media video { display: block; max-width: min(1400px, calc(100vw - 144px)); max-height: calc(100vh - 150px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: gal-in .35s cubic-bezier(.2, .8, .2, 1); }
.lb-cap { color: #dfe6e1; font-size: 15px; text-align: center; max-width: 800px; }
.lb-x, .lb-nav {
  position: absolute; display: grid; place-items: center; padding: 0; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.lb-x { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 26px; }
.lb-nav { top: 50%; translate: 0 -50%; width: 52px; height: 52px; font-size: 32px; }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .18); }
.lb-count { position: absolute; top: 26px; left: 24px; font-family: var(--pixel); font-size: 10px; color: var(--muted); }
@media (max-width: 600px) {
  .lb { padding: 64px 8px; }
  .lb-media img, .lb-media video { max-width: calc(100vw - 16px); }
  .lb-nav { top: auto; bottom: 14px; translate: none; }
  .gal-thumb { width: 112px; }
  .gal-nav { width: 38px; height: 38px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gal-media.swap, .lb, .lb.out, .lb-media img, .lb-media video { animation: none; }
}

/* ---------- the logo as a 3D block (item.js) ---------- */
.c-block {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 340px; height: 340px; translate: -50% -50%;
  cursor: grab; touch-action: pan-y; filter: drop-shadow(0 34px 44px color-mix(in srgb, var(--acc) 50%, transparent));
}
.c-block:active { cursor: grabbing; }
.c-art.gl .c-tile { visibility: hidden; }
.c-art.gl .c-tile-wrap { transform: none; animation: none; }
@media (max-width: 900px) { .c-block { width: 250px; height: 250px; } }
