/* =====================================================================
   SOMETEK SHELL — the quiet frame around the work.
   Swap --sh-accent (and the mark in js/main.js) to rebrand.
   ===================================================================== */
:root {
  --sh-bg: #0C0C0B; --sh-bg-2: #121211; --sh-surface: #171715; --sh-surface-2: #1F1E1C; --sh-surface-3: #292826;
  --sh-line: rgba(255,255,255,.075); --sh-line-2: rgba(255,255,255,.14);
  --sh-text: #EEECE7; --sh-text-2: #9B988F; --sh-text-3: #605E58;
  --sh-accent: #9EADFF; --sh-on-accent: #0B0D1A;
  --sh-display: "Onest", "Inter", system-ui, sans-serif;
  --sh-body: "Inter", system-ui, sans-serif; --sh-mono: "Geist Mono", ui-monospace, monospace;
  --sh-serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sh-bg); color: var(--sh-text); font-family: var(--sh-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sp { flex: 1; }
.ic { width: 18px; height: 18px; stroke-width: 1.7; flex: none; display: block; }
::selection { background: var(--sh-accent); color: var(--sh-on-accent); }
:focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 2px; }

.view { display: none; }
body[data-view="gallery"] .view-gallery { display: block; }
body[data-view="viewer"] .view-viewer { display: flex; }
body[data-view="viewer"] { overflow: hidden; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--sh-text); }
.brand-glyph { color: var(--sh-accent); display: grid; }
.brand-word { font-family: var(--sh-display); font-weight: 600; font-size: 19px; letter-spacing: -.045em; line-height: 1; }
.brand-sub { font-family: var(--sh-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--sh-text-2); padding-left: 12px; border-left: 1px solid var(--sh-line-2); }

/* ---------- shell controls ---------- */
.sh-ibtn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; position: relative;
  background: transparent; border: 1px solid var(--sh-line); color: var(--sh-text-2); transition: background .2s, color .2s, border-color .2s;
}
.sh-ibtn:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.sh-ibtn.on { color: var(--sh-on-accent); background: var(--sh-accent); border-color: transparent; }
.sh-ibtn .remixed { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--sh-accent); display: none; }
.sh-ibtn.has-remix .remixed { display: block; }
.sh-btn {
  height: 38px; padding: 0 14px 0 12px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  background: var(--sh-surface-2); border: 1px solid var(--sh-line); color: var(--sh-text); transition: background .2s;
}
.sh-btn:hover { background: var(--sh-surface-3); }
.sh-btn.tour { background: var(--sh-accent); color: var(--sh-on-accent); border-color: transparent; }
.sh-btn.tour.on { background: var(--sh-surface-3); color: var(--sh-text); }
.btn-shell {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid var(--sh-line-2); transition: transform .2s, background .2s;
}
.btn-shell:hover { transform: translateY(-1px); background: var(--sh-surface-2); }
.btn-shell.p { background: var(--sh-accent); color: var(--sh-on-accent); border-color: transparent; }
.btn-shell.p:hover { background: color-mix(in oklab, var(--sh-accent) 80%, white); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.view-gallery { min-height: 100vh; }
.g-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in oklab, var(--sh-bg) 78%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--sh-line);
}
.g-nav { display: flex; gap: 26px; margin-left: auto; }
.g-nav a { text-decoration: none; color: var(--sh-text-2); font-size: 14px; transition: color .2s; }
.g-nav a:hover { color: var(--sh-text); }
.g-top-r { display: flex; gap: 8px; }

.g-hero {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(36px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(40px, 5vw, 72px); max-width: 1680px; margin: 0 auto;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sh-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--sh-text-2); }
.kd { width: 8px; height: 8px; border-radius: 50%; background: var(--sh-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sh-accent) 22%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.g-hero h1 {
  font-family: var(--sh-display); font-weight: 500; font-size: clamp(46px, 6.4vw, 104px); line-height: .94; letter-spacing: -.058em; margin: 22px 0 22px;
}
.g-hero h1 em { font-style: normal; font-weight: 300; color: var(--sh-accent); letter-spacing: -.06em; padding-right: .02em; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--sh-text-2); max-width: 34em; margin: 0 0 30px; }
.g-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.g-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; justify-content: start; border-top: 1px solid var(--sh-line); padding-top: 22px; }
.st b { display: block; font-family: var(--sh-display); font-weight: 400; font-size: 36px; letter-spacing: -.05em; line-height: 1; }
.st span { font-size: 12.5px; color: var(--sh-text-2); }
.g-hero-stage {
  position: relative; border-radius: 22px; border: 1px solid var(--sh-line); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, #1d1d1b, var(--sh-bg-2)); box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
}
.g-hero-wrap { position: relative; aspect-ratio: 1280 / 820; cursor: pointer; }
.g-hero-wrap .device { box-shadow: none; }
.hs-cap {
  position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(12,12,11,.78); border: 1px solid var(--sh-line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12.5px; white-space: nowrap; pointer-events: none;
}
.hs-cap-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF4D4D; animation: pulse 1.6s infinite; }
.hs-cap-t { font-weight: 600; text-transform: capitalize; }
.hs-cap-k { color: var(--sh-text-3); font-family: var(--sh-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }

section.g-langs, section.g-lib, section.g-princ { max-width: 1680px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--sh-line); }
.g-sec-h { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.g-sec-h h2 { font-family: var(--sh-display); font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.05em; line-height: 1; margin: 0; }
.g-sec-h p { margin: 0; color: var(--sh-text-2); max-width: 38em; }
.g-langbar { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.lang {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px;
  background: var(--sh-surface); border: 1px solid var(--sh-line); transition: border-color .2s, background .2s, transform .2s; min-height: 132px;
}
.lang:hover { background: var(--sh-surface-2); transform: translateY(-2px); }
.lang.on { border-color: var(--sh-accent); background: var(--sh-surface-2); box-shadow: inset 0 0 0 1px var(--sh-accent); }
.lang-sw { display: flex; }
.lang-sw i { width: 22px; height: 22px; border-radius: 50%; margin-right: -6px; border: 2px solid var(--sh-surface); }
.lang-t b { display: block; font-size: 14.5px; }
.lang-t small { display: block; color: var(--sh-text-2); font-size: 12px; line-height: 1.35; margin-top: 4px; }
.lang kbd { position: absolute; top: 14px; right: 14px; font-family: var(--sh-mono); font-size: 10.5px; color: var(--sh-text-3); border: 1px solid var(--sh-line-2); border-radius: 5px; padding: 1px 5px; }
.g-modebar { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--sh-text-2); font-size: 13px; }
.g-seg, .g-filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sh-surface); border: 1px solid var(--sh-line); }
.g-seg button, .g-filters button { height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--sh-text-2); font-size: 13px; text-transform: capitalize; }
.g-seg button.on, .g-filters button.on { background: var(--sh-surface-3); color: var(--sh-text); }
.g-filters { margin-bottom: 26px; }

.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 34px 26px; }
.g-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.g-card.hide { display: none; }
.g-card.soon { cursor: default; }
.g-thumb {
  position: relative; aspect-ratio: 1280 / 762; border-radius: 16px; overflow: hidden; background: var(--sh-surface);
  border: 1px solid var(--sh-line); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .3s;
  isolation: isolate;
}
.g-card:not(.soon):hover .g-thumb { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); border-color: var(--sh-line-2); }
.g-mini { position: absolute; left: 0; top: 0; width: 1280px; height: 762px; transform-origin: 0 0; pointer-events: none; }
.g-poster { position: absolute; inset: 0; }
.g-meta { padding: 16px 4px 0; }
.g-meta-top { display: flex; align-items: center; gap: 10px; font-family: var(--sh-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sh-text-3); }
.g-tags { display: flex; gap: 8px; }
.g-tags span + span::before { content: "·"; margin-right: 8px; }
.g-live, .g-soon { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.g-live { color: var(--sh-accent); }
.g-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.g-meta h3 { font-family: var(--sh-display); font-weight: 500; font-size: 26px; letter-spacing: -.045em; margin: 8px 0 4px; }
.g-meta h3 span { font-family: var(--sh-body); font-weight: 500; font-size: 14px; color: var(--sh-text-2); letter-spacing: 0; margin-left: 10px; }
.g-meta p { margin: 0; color: var(--sh-text-2); font-size: 14px; }

/* posters (apps in production) */
.app-root.poster { position: absolute; inset: 0; }
.poster-art, .poster-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.poster-glyph { position: absolute; right: 7%; top: 12%; width: 34%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: max(1px, var(--border-w)) solid color-mix(in oklab, var(--text) 18%, transparent); color: var(--text); box-shadow: var(--shadow); }
.layer .poster-glyph .ic { width: 46%; height: 46%; stroke-width: 1.1; }
.layer[data-skin="swiss"] .poster-glyph, .layer[data-skin="noir"] .poster-glyph { border-radius: 0; }
.layer[data-skin="noir"] .poster-glyph { color: var(--accent); border-color: var(--accent); background: color-mix(in oklab, var(--bg) 70%, transparent); }
.layer[data-skin="brutal"] .poster-glyph { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.poster-txt {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(transparent, color-mix(in oklab, var(--bg) 82%, transparent));
}
.poster-txt b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: var(--display-track); color: var(--text); }
.poster-txt small { font-family: var(--label-font); font-size: 12px; color: var(--text-2); text-transform: var(--label-case); letter-spacing: var(--label-track); margin-left: auto; }
.poster-ic { width: 40px; height: 40px; border-radius: calc(var(--radius-base) * .5); display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }

.g-princ-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pr { padding: 24px; border-radius: 18px; background: var(--sh-surface); border: 1px solid var(--sh-line); }
.pr-i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--sh-accent) 14%, transparent); color: var(--sh-accent); margin-bottom: 18px; }
.pr h3 { margin: 0 0 8px; font-size: 17px; }
.pr p { margin: 0; color: var(--sh-text-2); font-size: 14px; }
.g-foot { max-width: 1680px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 64px; border-top: 1px solid var(--sh-line); display: grid; gap: 10px; }
.g-foot p { margin: 0; color: var(--sh-text-2); }
.credit { font: 500 12px/1 var(--sh-mono); letter-spacing: .12em; color: var(--sh-text-2); text-decoration: none; border-bottom: 1px solid var(--sh-line-2); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.credit:hover { color: var(--sh-accent); border-color: var(--sh-accent); }
.g-foot .small { font-size: 12.5px; color: var(--sh-text-3); }

/* =====================================================================
   VIEWER
   ===================================================================== */
.view-viewer { position: fixed; inset: 0; flex-direction: column; background: var(--sh-bg); }
.vw-top { height: 62px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--sh-line); }
.vw-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sh-text-2); font-size: 13.5px; font-weight: 500; height: 38px; padding: 0 12px 0 8px; border-radius: 11px; }
.vw-back:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.vw-sep { width: 1px; height: 24px; background: var(--sh-line-2); }
.vw-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vw-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab, var(--sh-accent) 14%, transparent); color: var(--sh-accent); flex: none; }
.vw-title b { display: block; font-family: var(--sh-display); font-weight: 600; font-size: 17px; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.vw-title b span { font-family: var(--sh-body); font-weight: 500; font-size: 13px; color: var(--sh-text-2); letter-spacing: 0; }
.vw-title small { display: block; color: var(--sh-text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.vw-top > .brand-mark { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--sh-line); }
.vw-main { flex: 1; display: flex; min-height: 0; }
.vw-stage-col { position: relative; flex: 1; min-width: 0; }
.vw-stage {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 42%, #1b1b19 0%, transparent 70%),
    radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--sh-bg);
}
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }

/* ---------- next / previous app ---------- */
.vw-count { font: 500 11px/1 var(--sh-mono); color: var(--sh-text-3); padding: 6px 8px; border: 1px solid var(--sh-line); border-radius: 8px; letter-spacing: .04em; white-space: nowrap; }
.vw-step {
  position: absolute; z-index: 18; top: calc(50% - 48px); display: flex; align-items: center; height: 56px; padding: 0; border-radius: 999px;
  border: 1px solid var(--sh-line-2); background: rgba(18,18,17,.72); color: var(--sh-text); overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); transition: background .25s, border-color .25s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.vw-step.prev { left: 18px; } .vw-step.next { right: 18px; flex-direction: row-reverse; }
.vw-step-i { width: 54px; height: 54px; display: grid; place-items: center; flex: none; }
.vw-step-i .ic { width: 20px; height: 20px; stroke-width: 1.8; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.vw-step-t { display: flex; flex-direction: column; justify-content: center; max-width: 0; opacity: 0; white-space: nowrap; line-height: 1.15; overflow: hidden; transition: max-width .4s cubic-bezier(.2, .8, .2, 1), opacity .25s, padding .4s cubic-bezier(.2, .8, .2, 1); }
.vw-step.next .vw-step-t { align-items: flex-end; }
.vw-step small { font: 500 9.5px/1 var(--sh-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--sh-text-3); }
.vw-step b { font-family: var(--sh-display); font-weight: 500; font-size: 16px; letter-spacing: -.03em; margin-top: 4px; }
.vw-step:hover, .vw-step:focus-visible { background: rgba(26,26,24,.92); border-color: color-mix(in oklab, var(--sh-accent) 50%, transparent); }
.vw-step:hover .vw-step-t, .vw-step:focus-visible .vw-step-t { max-width: 180px; opacity: 1; }
.vw-step.prev:hover .vw-step-t, .vw-step.prev:focus-visible .vw-step-t { padding-right: 22px; }
.vw-step.next:hover .vw-step-t, .vw-step.next:focus-visible .vw-step-t { padding-left: 22px; }
.vw-step.prev:hover .vw-step-i .ic { transform: translateX(-2px); } .vw-step.next:hover .vw-step-i .ic { transform: translateX(2px); }
.vw-step:active { transform: scale(.96); }
.stage { translate: 0 0; }

/* ---------- dock ---------- */
.dock {
  position: absolute; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 20px; background: rgba(20,20,18,.84); border: 1px solid var(--sh-line-2); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dk-group { display: flex; gap: 2px; }
.dk-div { width: 1px; height: 28px; background: var(--sh-line-2); margin: 0 6px; flex: none; }
.dk-skin { height: 42px; padding: 0 12px 0 9px; border-radius: 13px; display: flex; align-items: center; gap: 9px; border: 0; background: none; color: var(--sh-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.dk-skin:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.dk-skin.on { background: var(--sh-surface-3); color: var(--sh-text); box-shadow: inset 0 0 0 1px var(--sh-line-2); }
.dk-sw { display: flex; }
.dk-sw i { width: 14px; height: 14px; border-radius: 50%; margin-right: -5px; border: 1.5px solid #1a1a18; }
.dk-sw i:last-child { margin-right: 0; }
.dk-mode { width: 62px; height: 34px; border-radius: 999px; border: 1px solid var(--sh-line-2); background: #E9E6DD; position: relative; flex: none; transition: background .35s; }
.dk-mode.dark { background: #2A2A27; }
.dk-mode-k { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #E09A1A; display: grid; place-items: center; transition: transform .45s cubic-bezier(.3, 1.4, .4, 1), background .3s, color .3s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.dk-mode-k .ic { width: 15px; height: 15px; grid-area: 1 / 1; transition: opacity .3s, transform .45s; }
.dk-mode-k .ic:last-child { opacity: 0; transform: rotate(-90deg); }
.dk-mode.dark .dk-mode-k { transform: translateX(28px); background: #111; color: #C8D2FF; }
.dk-mode.dark .dk-mode-k .ic:first-child { opacity: 0; transform: rotate(90deg); }
.dk-mode.dark .dk-mode-k .ic:last-child { opacity: 1; transform: none; }
.dk-dev { width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--sh-text-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.dk-dev:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.dk-dev.on { background: var(--sh-surface-3); color: var(--sh-accent); }
.dk-cmp { height: 40px; padding: 0 14px 0 11px; border-radius: 12px; border: 0; background: none; color: var(--sh-text-2); display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dk-cmp:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.dk-cmp.on { background: var(--sh-accent); color: var(--sh-on-accent); }

.cmp-bar {
  position: absolute; z-index: 19; left: 50%; bottom: 82px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 16px; background: rgba(20,20,18,.84); border: 1px solid var(--sh-line-2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: opacity .25s, transform .3s; white-space: nowrap; max-width: calc(100% - 24px); overflow-x: auto;
}
.comparing .cmp-bar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cmp-bar-l { font-family: var(--sh-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--sh-text-3); padding: 0 6px; }
.cmp-bar-s { display: flex; gap: 2px; }
.cmp-bar button { height: 32px; padding: 0 10px; border-radius: 10px; border: 0; background: none; color: var(--sh-text-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.cmp-bar button:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.cmp-bar button.on { background: var(--sh-surface-3); color: var(--sh-text); }
.cmp-bar-s i { width: 10px; height: 10px; border-radius: 50%; }
.cmp-bar .ic { width: 15px; height: 15px; }

/* ---------- panel ---------- */
.vw-panel { width: 0; flex: none; overflow: hidden; border-left: 1px solid transparent; background: var(--sh-bg-2); transition: width .4s cubic-bezier(.2, .8, .2, 1), border-color .4s; display: flex; flex-direction: column; }
.panel-open .vw-panel { width: 372px; border-left-color: var(--sh-line); }
.vw-panel > * { width: 372px; flex: none; }
.pn-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--sh-line); }
.pn-title { flex: 1; display: flex; align-items: center; gap: 9px; padding-left: 4px; font-family: var(--sh-display); font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.pn-title .ic { width: 17px; height: 17px; color: var(--sh-accent); }
.pn-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--sh-text-3); display: grid; place-items: center; }
.pn-x:hover { color: var(--sh-text); background: var(--sh-surface); }
.pn-body { flex: 1; overflow-y: auto; padding: 18px 18px 40px; scrollbar-width: thin; scrollbar-color: var(--sh-surface-3) transparent; }
.pn-lead { margin: 0 0 18px; color: var(--sh-text-2); font-size: 13.5px; line-height: 1.5; }
.pn-sec { padding: 16px; border-radius: 16px; background: var(--sh-surface); border: 1px solid var(--sh-line); margin-bottom: 12px; display: grid; gap: 12px; }
.pn-row { display: grid; gap: 8px; }
.pn-row + .pn-row { padding-top: 12px; border-top: 1px solid var(--sh-line); }
.pn-row-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.pn-val { font-family: var(--sh-mono); font-size: 11.5px; color: var(--sh-text-2); font-weight: 400; }
.pn-hint { margin: 0; font-size: 12px; color: var(--sh-text-3); line-height: 1.45; }
.pn-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.pn-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--sh-surface-3); }
.pn-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--sh-surface-3); }
.pn-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--sh-text); border: 3px solid var(--sh-bg); box-shadow: 0 0 0 1px var(--sh-line-2); }
.pn-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sh-text); border: 3px solid var(--sh-bg); }
.pn-range.hue::-webkit-slider-runnable-track { background: linear-gradient(90deg, oklch(.72 .16 0), oklch(.72 .16 60), oklch(.72 .16 120), oklch(.72 .16 180), oklch(.72 .16 240), oklch(.72 .16 300), oklch(.72 .16 360)); }
.pn-range.hue::-moz-range-track { background: linear-gradient(90deg, oklch(.72 .16 0), oklch(.72 .16 60), oklch(.72 .16 120), oklch(.72 .16 180), oklch(.72 .16 240), oklch(.72 .16 300), oklch(.72 .16 360)); }
.pn-sw { display: flex; gap: 6px; align-items: center; }
.pn-sw button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--sh-bg); background: oklch(.7 .16 calc(var(--h) * 1deg)); box-shadow: 0 0 0 1px var(--sh-line-2); padding: 0; }
.pn-sw button:hover { transform: scale(1.12); }
.pn-sw .reset { background: var(--sh-surface-2); display: grid; place-items: center; color: var(--sh-text-2); margin-left: auto; }
.pn-sw .reset .ic { width: 14px; height: 14px; }
.pn-select { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; background: var(--sh-surface-2); color: var(--sh-text); border: 1px solid var(--sh-line-2); font: inherit; font-size: 13.5px; }
.pn-contrast { display: grid; gap: 6px; }
.ct-row { display: grid; grid-template-columns: 34px 1fr auto 62px; align-items: center; gap: 10px; font-size: 12.5px; }
.ct-sw { width: 34px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 12px; border: 1px solid var(--sh-line); }
.ct-n { color: var(--sh-text-2); }
.ct-r { font-family: var(--sh-mono); font-size: 11.5px; }
.ct-g { justify-self: end; font-family: var(--sh-mono); font-size: 10px; padding: 3px 7px; border-radius: 6px; background: color-mix(in oklab, var(--sh-accent) 14%, transparent); color: var(--sh-accent); }
.ct-row.bad .ct-g { background: rgba(255,90,90,.14); color: #FF7A7A; }
.pn-btn { height: 40px; padding: 0 14px; border-radius: 11px; border: 0; background: var(--sh-accent); color: var(--sh-on-accent); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pn-btn.ghost { background: var(--sh-surface-2); color: var(--sh-text); border: 1px solid var(--sh-line); }
.pn-btn .ic { width: 16px; height: 16px; }
.pn-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* =====================================================================
   DEVICE FRAMES
   ===================================================================== */
.device { position: relative; }
.sh { position: absolute; overflow: hidden; isolation: isolate; background: #000; }
.tr-host, .ghost-host { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.ghost-host { z-index: 9; overflow: hidden; }
.tr-edge { position: absolute; inset: 0; overflow: visible; }

.d-desktop { border-radius: 14px; overflow: hidden; background: #1C1C1E; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 120px -40px rgba(0,0,0,.95); }
.d-desktop[data-mode="light"] { background: #E8E6E1; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 50px 120px -40px rgba(0,0,0,.95); }
.win-bar { position: absolute; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; padding: 0 14px; gap: 10px; color: #8D8C90; font-family: var(--sh-body); font-size: 12px; }
.d-desktop[data-mode="light"] .win-bar { color: #77756F; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.win-dots i:nth-child(2) { background: #FEBC2E; } .win-dots i:nth-child(3) { background: #28C840; }
.win-url { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 14px; border-radius: 8px; background: rgba(255,255,255,.06); min-width: 280px; justify-content: center; }
.d-desktop[data-mode="light"] .win-url { background: rgba(0,0,0,.06); }
.win-url .ic { width: 12px; height: 12px; }
.win-r { margin-left: auto; } .win-r .ic { width: 16px; height: 16px; }
.d-desktop .sh { border-radius: 0 0 14px 14px; }

.d-tablet { border-radius: 46px; background: linear-gradient(145deg, #2B2B2E, #121214); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 50px 120px -40px rgba(0,0,0,.95); }
.d-tablet .sh { border-radius: 26px; }
.d-phone, .d-widget { border-radius: 62px; background: linear-gradient(145deg, #34343A, #0E0E10 60%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 5px #08080A, 0 50px 120px -40px rgba(0,0,0,.95); }
.d-phone .sh, .d-widget .sh { border-radius: 50px; }
.island { position: absolute; z-index: 12; left: 50%; top: 23px; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; }
.d-watch { border-radius: 76px; background: linear-gradient(160deg, #3A3A3F, #121214 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), inset 0 0 0 7px #070708, 0 40px 90px -30px rgba(0,0,0,.95); }
.d-watch .sh { border-radius: 58px; }
.w-band { position: absolute; left: 34px; right: 34px; height: 140px; background: linear-gradient(90deg, #232326, #303035 50%, #232326); z-index: -1; }
.w-band.t { bottom: 100%; margin-bottom: -40px; border-radius: 30px 30px 8px 8px; }
.w-band.b { top: 100%; margin-top: -40px; border-radius: 8px 8px 30px 30px; }
.w-crown { position: absolute; right: -9px; top: 84px; width: 14px; height: 52px; border-radius: 6px; background: linear-gradient(90deg, #4A4A50, #222225); }
.w-btn { position: absolute; right: -5px; top: 160px; width: 8px; height: 46px; border-radius: 4px; background: #2A2A2E; }

/* ---------- compare handle ---------- */
.cmp-handle { position: absolute; z-index: 7; top: 0; bottom: 0; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; }
.cmp-line { position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 24px rgba(0,0,0,.35); }
.cmp-knob { position: absolute; left: 2px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .2s; }
.cmp-knob .ic { width: 14px; height: 14px; stroke-width: 2.4; margin: 0 -2px; }
.cmp-handle.drag .cmp-knob { transform: scale(1.1); }
.cmp-tag { position: absolute; top: 16px; white-space: nowrap; padding: 6px 10px; border-radius: 9px; background: rgba(10,10,10,.75); color: #fff; font: 600 11.5px/1 var(--sh-body); text-transform: capitalize; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.cmp-tag.l { right: 34px; } .cmp-tag.r { left: 34px; }

/* ---------- ghost cursor ---------- */
.ghost { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -3px 0 0 -4px; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); z-index: 3; }
.ghost.on { opacity: 1; }
.ghost svg { transition: transform .12s; transform-origin: 6px 4px; }
.ghost.press svg { transform: scale(.82); }
.ghost-ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); animation: ripple .65s ease-out forwards; }
@keyframes ripple { to { transform: scale(6); opacity: 0; } }
.ghost-say {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 16px); max-width: min(86%, 620px); display: flex; gap: 10px; align-items: baseline;
  padding: 11px 16px; border-radius: 14px; background: rgba(12,12,11,.86); color: #F1EFEA; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 500 14px/1.45 var(--sh-body); opacity: 0; transition: opacity .3s, transform .45s cubic-bezier(.2, .9, .2, 1); box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.1);
}
.ghost-say.on.in { opacity: 1; transform: translate(-50%, 0); }
.gs-n { font: 500 10.5px/1 var(--sh-mono); color: var(--sh-accent); letter-spacing: .06em; flex: none; }
.gs-n:empty { display: none; }

/* ---------- widget home screen (styled by the skin) ---------- */
.app-root.hs { position: relative; min-height: 100%; padding: 64px 22px 120px; }
.hs-wall { position: absolute; inset: 0; z-index: 0; }
.hs-wall svg { width: 100%; height: 100%; display: block; }
.hs-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(color-mix(in oklab, var(--bg) 25%, transparent), color-mix(in oklab, var(--bg) 55%, transparent)); }
.hs-status { position: absolute; z-index: 2; top: 18px; left: 34px; right: 28px; display: flex; align-items: center; color: var(--text); font: 600 15px/1 var(--font-body); }
.hs-sig { display: flex; gap: 6px; align-items: center; fill: currentColor; }
.hs-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 14px; }
.hs-w { position: relative; overflow: hidden; background: var(--surface); border: var(--border-w) solid var(--line); border-radius: max(var(--radius), 6px); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.hs-ws { grid-column: span 2; aspect-ratio: 1; }
.hs-wm { grid-column: span 4; height: 158px; }
.hs-quad { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; align-content: space-between; }
.hs-row { grid-column: span 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hs-app { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hs-app span { font: 500 11px/1 var(--font-body); color: var(--text); text-shadow: 0 1px 3px color-mix(in oklab, var(--bg) 60%, transparent); white-space: nowrap; }
.hs-ic { width: 60px; height: 60px; border-radius: max(calc(var(--radius) * .62), 4px); display: grid; place-items: center; background: var(--surface); color: var(--text); border: var(--border-w) solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.hs-ic .ic { width: 26px; height: 26px; }
.hs-app.own .hs-ic { background: var(--accent); color: var(--on-accent); }
.hs-dots { position: absolute; z-index: 1; left: 0; right: 0; bottom: 118px; display: flex; justify-content: center; gap: 7px; }
.hs-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text); opacity: .3; }
.hs-dots i.on { opacity: .9; }
.hs-dock { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 16px; height: 88px; border-radius: max(calc(var(--radius) * 1.3), 4px); display: flex; align-items: center; justify-content: space-around; background: color-mix(in oklab, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: var(--border-w) solid var(--line); }
.watch-root { position: absolute; inset: 0; }
.wdg-in { position: absolute; inset: 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 13px; background: #F1EFEA; color: #121211; font-size: 13.5px; font-weight: 600; box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .2, 1); }
.toast.in { opacity: 1; transform: none; }
.toast .ic { width: 16px; height: 16px; }

/* ---------- view-transition device morph ---------- */
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.25, .9, .15, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .g-hero { grid-template-columns: 1fr; }
  .g-princ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vw-top > .brand-mark { display: none; }
  .panel-open .vw-panel { position: absolute; right: 0; top: 62px; bottom: 0; z-index: 40; box-shadow: -30px 0 60px -20px rgba(0,0,0,.8); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .g-nav, .brand-sub { display: none; }
  .g-top { height: 58px; }
  .g-stats { grid-template-columns: repeat(2, auto); gap: 18px 28px; }
  .g-langbar { grid-template-columns: repeat(7, 160px); }
  .g-princ-grid { grid-template-columns: 1fr; }
  .vw-top { gap: 6px; padding: 0 10px; height: 56px; }
  .vw-back span, .vw-sep, .vw-title small, .vw-count, .sh-btn.tour span { display: none; }
  .sh-btn.tour { padding: 0 11px; }
  .vw-title b span { display: none; }
  .dock { left: 8px; right: 8px; transform: none; bottom: 10px; }
  .dk-l { display: none; }
  .vw-step { height: 40px; top: calc(50% - 40px); } .vw-step-i { width: 38px; height: 38px; } .vw-step.prev { left: 6px; } .vw-step.next { right: 6px; }
  .vw-step:hover .vw-step-t { max-width: 0; opacity: 0; padding: 0 !important; }
  .dk-skin { padding: 0 9px; }
  .cmp-bar { bottom: 74px; }
  .vw-panel > * { width: 100%; }
  .panel-open .vw-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 72vh; border-radius: 20px 20px 0 0; border: 1px solid var(--sh-line-2); z-index: 60; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
