/* ===== Tokens ===== */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: #2a2a2e;
  --text: #ededee;
  --muted: #8c8c93;
  --accent: #c6f432;
  --accent-ink: #0b0b0c;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1600px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: .95; margin: 0; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-handle { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 560px) {
  .brand-handle, .nav a.hide-sm { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  background: var(--text); color: var(--bg);
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }
.play-ico { width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ===== Tags ===== */
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Custom cursor label (desktop only) ===== */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 700;
  transform: translate(-50%, -50%) scale(0); transition: transform .25s var(--ease);
}
.cursor-label.on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-label { display: none; } }

/* ============================================================
   HOME: Gallery
   ============================================================ */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
/* Ořez: auto je v renderu na ~66–88 % šířky a ~44–77 % výšky.
   Desktop: celý záběr, auto vpravo od jména. Užší/na výšku: posun doprava, aby auto zůstalo v záběru. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.06); transform-origin: 77% 60%; animation: heroZoom 14s var(--ease) forwards; }
@media (max-aspect-ratio: 4/3) { .hero-media img { object-position: 78% 55%; } }
@media (max-aspect-ratio: 3/4) { .hero-media img { object-position: 86% 50%; } }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 0% 100%, rgba(11,11,12,.72), rgba(11,11,12,0) 72%),
    linear-gradient(180deg, rgba(11,11,12,.35) 0%, rgba(11,11,12,0) 30%, rgba(11,11,12,.25) 60%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(32px, 7vh, 80px); }
.hero h1 { font-size: clamp(48px, 8.4vw, 152px); }
.hero p { max-width: 520px; color: #d6d6da; font-size: clamp(16px, 1.4vw, 19px); margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-credit { position: absolute; right: var(--gutter); bottom: clamp(32px, 7vh, 80px); z-index: 2; text-align: right; font-size: 12px; color: var(--muted); }
.hero-credit { max-width: 300px; line-height: 1.5; }
.hero-credit b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* Credits (project page) */
.credits { margin-top: clamp(64px, 8vw, 112px); }
/* Nadpis vlevo, tlačítka se jmény vpravo na stejné ose; po najetí se tlačítko rozšíří a ukáže pozici */
.credits-head { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.credits-head h2 { font-size: clamp(26px, 3.2vw, 44px); }
.credit-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.credit-pill { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .25s, background .25s, padding .35s var(--ease); }
.cp-role { max-width: 0; overflow: hidden; opacity: 0; font-weight: 500; font-size: 13px; color: var(--muted); transition: max-width .45s var(--ease), opacity .3s, margin .35s var(--ease); }
.cp-arrow { margin-left: 8px; color: var(--muted); transition: color .25s, transform .25s var(--ease); }
.credit-pill:hover, .credit-pill:focus-visible { border-color: var(--accent); background: var(--surface-2); padding: 0 18px; }
.credit-pill:hover .cp-role, .credit-pill:focus-visible .cp-role { max-width: 240px; opacity: 1; margin-left: 10px; }
.credit-pill:hover .cp-arrow, .credit-pill:focus-visible .cp-arrow { color: var(--accent); transform: translate(2px, -2px); }
@media (hover: none) {  /* dotyk: pozice je vidět rovnou pod jménem */
  .credit-pill { height: auto; padding: 8px 14px; flex-wrap: wrap; }
  .cp-role { max-width: none; opacity: 1; flex-basis: 100%; margin: 2px 0 0; font-size: 12px; }
  .cp-arrow { position: absolute; }
  .credit-pill { position: relative; padding-right: 28px; }
  .cp-arrow { right: 12px; top: 8px; margin: 0; }
}
@media (max-width: 720px) { .credit-pills { justify-content: flex-start; } }
.credits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.credits-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.credits-list .n { font-weight: 600; }
.credits-list a.n:hover { color: var(--accent); }
.credits-list .r { display: block; font-size: 13px; color: var(--muted); }
.credits-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .hero-credit { display: none; } }

.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-size: clamp(28px, 4vw, 56px); }

.grid-a { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.grid-a .tile.wide { grid-column: 1 / -1; }
.grid-a .tile.wide .tile-media { aspect-ratio: 21 / 9; }
@media (max-width: 720px) {
  .grid-a { grid-template-columns: 1fr; }
  .grid-a .tile.wide .tile-media { aspect-ratio: 4 / 3; }
}
.tile { display: block; }
.tile-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.tile:hover .tile-media img { transform: scale(1.045); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 4px 0; }
.tile-title { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.tile-cat { font-size: 13px; color: var(--muted); }
.tile-year { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.badge.soft { background: rgba(11, 11, 12, .72); color: var(--text); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ===== About / Contact ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about p { font-size: clamp(17px, 1.5vw, 21px); color: #d6d6da; margin: 0 0 24px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.contact-big { font-size: clamp(36px, 7vw, 112px); }
.contact-mail { display: inline-block; margin-top: 24px; font-size: clamp(18px, 2.2vw, 30px); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .2s, color .2s; word-break: break-all; }
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ============================================================
   PROJECT PAGE
   ============================================================ */
.p-hero { position: relative; height: 88svh; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.3) 0%, rgba(11,11,12,0) 35%, var(--bg) 100%); }
.p-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 40px; }
.p-hero h1 { font-size: clamp(48px, 10vw, 160px); }
.p-hero .tile-cat { display: block; margin-bottom: 14px; font-size: 14px; color: #d6d6da; }

.p-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 6vw, 80px); } /* jen svisle – boční gutter drží .wrap */
.p-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; align-content: start; margin: 0; }
.p-meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p-meta dd { margin: 0; font-size: 15px; }
.p-meta .full { grid-column: 1 / -1; }
.p-summary { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; color: #e2e2e6; margin: 0 0 28px; }
.p-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .p-intro { grid-template-columns: 1fr; } .p-intro > :first-child { order: 2; } }

.toc { position: sticky; top: 64px; z-index: 30; background: rgba(11,11,12,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.toc a { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.toc a.active, .toc a:hover { background: var(--surface-2); color: var(--text); }

/* Navigace sekcí spojená s hlavičkou (desktop): původní lišta pod úvodem; když dojede k hlavičce,
   odkazy se objeví v hlavičce hned vedle jména (handle „sulc3d“ uvolní místo) a lišta v obsahu zmizí. */
.toc-in { display: none; }
.brand-handle { transition: opacity .25s, max-width .35s var(--ease); max-width: 80px; overflow: hidden; white-space: nowrap; }
@media (min-width: 1100px) {
  body:not(.nav-classic) .toc { position: relative; top: auto; transition: opacity .25s; }
  .site-header.show-toc ~ main .toc { opacity: 0; }
  .site-header.show-toc .brand-handle { opacity: 0; max-width: 0; }
  .site-header.has-toc .toc-in { display: flex; flex: 1; min-width: 0; justify-content: flex-start; gap: 2px; margin: 0 24px 0 20px; overflow-x: auto; scrollbar-width: none;
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .site-header.show-toc .toc-in { opacity: 1; transform: none; pointer-events: auto; }
  .toc-in a { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
  .toc-in a:hover, .toc-in a.active { background: var(--surface-2); color: var(--text); }
  .toc-in a.active { box-shadow: inset 0 0 0 1px var(--line); }
  .site-header.show-toc { background: rgba(11,11,12,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .p-section { scroll-margin-top: 90px; }
}

.p-section { padding: clamp(48px, 7vw, 96px) 0 0; scroll-margin-top: 120px; }
.p-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 6vw, 96px); margin-bottom: clamp(20px, 3vw, 36px); align-items: end; } /* text na stejné lince jako nadpis */
.p-section-head h2 { font-size: clamp(26px, 3.4vw, 48px); }
.p-section-head p { margin: 0; color: #cfcfd4; font-size: 17px; max-width: 640px; justify-self: end; } /* blok textu zarovnaný k pravému okraji obrázků */
@media (max-width: 860px) { .p-section-head { grid-template-columns: 1fr; } .p-section-head p { justify-self: start; } }

.gallery { display: grid; gap: clamp(10px, 1.4vw, 20px); }
.gallery.pair { grid-template-columns: 1fr 1fr; }
/* feature: první obrázek přes celou šířku, zbytek po dvou */
.gallery.feature { grid-template-columns: 1fr 1fr; }
.gallery.feature > :first-child { grid-column: 1 / -1; }
/* mosaic: střídá celou šířku a dvojici (1, 2+3, 4, 5+6…) */
.gallery.mosaic { grid-template-columns: 1fr 1fr; }
.gallery.mosaic > :nth-child(3n+1) { grid-column: 1 / -1; }
.gallery.pair > *, .gallery.feature > :not(:first-child), .gallery.mosaic > :not(:nth-child(3n+1)) { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .gallery.pair, .gallery.feature, .gallery.mosaic { grid-template-columns: 1fr; } }
.gallery button { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.02); }
.gallery button { position: relative; }
.g-cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: rgba(11,11,12,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text); }
/* Plánované záběry (jen během přípravy) */
.g-todo { position: absolute; right: 14px; top: 12px; z-index: 2; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.g-placeholder { position: relative; border-radius: var(--radius); border: 1px dashed #3a3a40; background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #18181b 14px 28px); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.g-placeholder .g-todo { position: static; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; text-align: center; max-width: 80%; }

/* Asset viewer: velký náhled + seznam vpravo */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 300px); gap: clamp(10px, 1.4vw, 20px); }
.v-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1d1d22, var(--surface) 70%); }
.v-media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: zoom-in; }
.v-media img, .v-stage video { width: 100%; height: 100%; object-fit: cover; }
.v-media.g-placeholder { aspect-ratio: auto; border-radius: 0; cursor: default; }
.v-in { animation: vIn .5s var(--ease); }
@keyframes vIn { from { opacity: 0; transform: scale(1.02); } }
.v-cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; pointer-events: none; padding: 8px 14px; border-radius: 10px; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.v-cap b { display: block; font-family: var(--font-display); font-size: 18px; }
.v-cap span { font-size: 12px; color: var(--muted); }
/* Šipky + počítadlo vpravo dole na velkém náhledu */
/* Hlavička bloku: nadpis vlevo, ovládání vpravo, na stejné spodní lince */
.v-block + .v-block { margin-top: clamp(48px, 6vw, 88px); }
.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(12px, 1.4vw, 18px); }
.v-nav { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.v-nav span { padding: 0 8px; min-width: 64px; text-align: center; }
.v-nav button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .2s, color .2s; }
.v-nav button:hover { background: var(--accent); color: var(--accent-ink); }

/* Seznam = mřížka 2 sloupce, výška = výška velkého náhledu */
.viewer { align-items: stretch; }
.v-title { margin: 0; line-height: 1.2; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; }
.viewer.single { grid-template-columns: 1fr; }
.viewer:not(.single) { grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 400px); }
.v-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 3), 1fr); gap: clamp(8px, .9vw, 12px); height: 0; min-height: 100%; }
.viewer.sq:not(.single) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } /* 16:10 set vedle 2×2 přesných čtverců */
.v-item { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface); text-align: left; isolation: isolate; }
.v-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.6); transform: scale(1.02); transition: opacity .35s, filter .35s, transform .8s var(--ease); }
.v-item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,11,12,0) 45%, rgba(11,11,12,.85)); }
.v-item::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .25s; pointer-events: none; }
.v-item:hover img { opacity: .85; filter: none; transform: scale(1.07); }
.v-item[aria-selected="true"] img { opacity: 1; filter: none; transform: scale(1.02); }
.v-item[aria-selected="true"]::before { box-shadow: inset 0 0 0 2px var(--accent); }
.v-item.empty { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, #18181b 10px 20px); }
.v-item.empty::before { box-shadow: inset 0 0 0 1px #34343a; }
.v-num { position: absolute; top: 10px; left: 12px; z-index: 2; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); transition: color .25s; }
.v-item[aria-selected="true"] .v-num { color: var(--accent); }
.v-txt { position: absolute; left: 12px; right: 10px; bottom: 9px; z-index: 2; }
.v-txt b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-txt small { display: block; font-size: 11px; color: var(--muted); }

/* Vegetace: vlevo set (16:10), vpravo sloupec = přepínač biomů + video pod ním (zbytek výšky). */
.viewer.vid { grid-template-columns: 2fr 1fr; } /* 2:1 → video vychází přesně 4:5 ve stejné výšce jako set */
.v-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.v-pills .v-item { text-align: center; }
.v-pills .v-item { position: static; overflow: visible; isolation: auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.v-pills .v-item::before, .v-pills .v-item::after { content: none; }
.v-pills .v-item:hover { color: var(--text); border-color: var(--text); }
.v-pills .v-item[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.v-video { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.v-video video, .v-video .g-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }

/* Jedno auto: render 16:10 + reel 9:16. Poměr sloupců 2.844 : 1 = obě části mají stejnou výšku. */
.viewer.carreel { grid-template-columns: minmax(0, 2.844fr) minmax(0, 1fr); }
.reel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.reel video, .reel .g-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.reel-sound { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 15px; transition: background .2s; }
.reel-sound:hover, .reel-sound[aria-pressed="true"] { background: var(--accent); }
@media (max-width: 860px) {
  .viewer.carreel { grid-template-columns: 1fr; }
  .viewer.carreel .reel { aspect-ratio: 9 / 16; width: min(100%, 360px); max-height: 80svh; justify-self: center; }
}

/* Auta: vlevo slider (16:10), vpravo 2 closeupy pod sebou (každý vychází 16:10) */
.viewer.cars { grid-template-columns: 2fr 1fr; }
.v-closes { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); height: 0; min-height: 100%; }
.v-close { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.v-close > *, .v-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-close .g-placeholder { aspect-ratio: auto; border-radius: 0; }
.v-zoom { display: block; cursor: zoom-in; }
.v-zoom img { transition: transform 1s var(--ease); }
.v-zoom:hover img { transform: scale(1.04); }
.v-stage .compare { position: absolute; inset: 0; margin: 0; border-radius: 0; }
.v-stage .compare > img { height: 100%; object-fit: cover; }
.v-stage > .g-todo { z-index: 3; }

/* Poškození: obrázek přes celou šířku, procenta vlevo nahoře, HUD s měřičem dole v obrázku */
.v-head-txt { max-width: 640px; }
.v-text { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.v-text-r { margin: 0; max-width: 640px; color: #cfcfd4; font-size: 17px; } /* jako text sekcí: vpravo, na lince nadpisu */
.dmg-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dmg-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.dmg-stage img.on { opacity: 1; }
.dmg-stage .g-placeholder { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.dmg-stage > .g-todo { z-index: 3; }
/* Materiály: nahoře koule (1:1, třetina) + laboratoř Tiling/Mapy (2:1, dvě třetiny) ve stejné výšce,
   pod nimi velký render skal (16:9) přes celou šířku */
.viewer.mat { grid-template-columns: 1fr 2fr; }
.mat-hero { grid-column: 1 / -1; aspect-ratio: 16 / 10; order: 3; } /* render setu pod koulí a laboratoří; 16:10 = stejně jako rendery z envira, nic se neořízne */
.mat-ball { aspect-ratio: 1; }
.mat-hero, .mat-ball { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.mat-hero > .v-zoom, .mat-hero > .g-placeholder, .mat-ball > .v-zoom, .mat-ball > .g-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.mat-hero .v-zoom img, .mat-ball .v-zoom img { width: 100%; height: 100%; object-fit: cover; }
.mat-hero .g-placeholder, .mat-ball .g-placeholder { aspect-ratio: auto; border-radius: 0; }
.mat-hero > .g-todo { z-index: 3; }
/* Živá 3D koule: pozadí (obrázek nebo vesmírný přechod), canvas přes něj */
.mat-sphere { position: absolute; inset: 0; cursor: grab; touch-action: none; background: radial-gradient(ellipse at 40% 35%, #3b2f8f 0%, #1d1752 45%, #0d0b24 100%); background-size: cover; background-position: center; }
.mat-sphere.grab { cursor: grabbing; }
.mat-sphere canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s; }
.mat-sphere.ready canvas { opacity: 1; }
.mat-sphere .mat-hint { top: auto; bottom: 14px; transform: translateX(-50%); }
.v-stage.mat-lab { aspect-ratio: auto; }
.v-head-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mat-lab .mat-strip span { bottom: 16px; }
.v-tabs { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.v-tabs button { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.v-tabs button:hover { color: var(--text); }
.v-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.v-media.contain img { object-fit: contain; background: #0d0c1c; }
.mat-tile { position: absolute; inset: 0; background-repeat: repeat; cursor: grab; touch-action: none; }
.mat-tile.grab { cursor: grabbing; }
.mat-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mat-zoom button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--text); transition: background .2s, color .2s; }
.mat-zoom button:hover { background: var(--accent); color: var(--accent-ink); }
.mat-hint { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); pointer-events: none; padding: 8px 14px; border-radius: 999px; background: rgba(11,11,12,.72); font-size: 13px; font-weight: 600; transition: opacity .4s; }
.mat-hint.off { opacity: 0; }
.mat-maps { position: absolute; inset: 0; display: flex; }
.mat-strip { position: relative; flex: 1; background-size: cover; background-position: center; transition: flex-grow .5s var(--ease); outline: none; }
.mat-strip + .mat-strip { box-shadow: inset 1px 0 0 rgba(11,11,12,.8); }
.mat-strip:hover, .mat-strip:focus { flex-grow: 2.6; }
.mat-strip span { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: rgba(11,11,12,.75); font-size: 12px; font-weight: 600; }
.mat-side { display: flex; flex-direction: column; gap: 12px; height: 0; min-height: 100%; }
.mat-graph { position: relative; flex: 1; min-height: 0; border-radius: var(--radius); overflow: hidden; background: #2b2b2b; }
.mat-graph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mat-graph.g-placeholder { aspect-ratio: auto; }
.mat-meta b { display: block; font-size: 14px; font-weight: 600; }
.mat-meta span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .viewer.mat { grid-template-columns: 1fr; }
  .mat-hero { aspect-ratio: 16 / 10; }
  .v-stage.mat-lab { aspect-ratio: 4 / 3; }
  .mat-lab .mat-strip span { writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); padding: 10px 5px; }
  .mat-lab .mat-strip:hover span, .mat-lab .mat-strip:focus span { writing-mode: horizontal-tb; transform: translateX(-50%); padding: 5px 10px; }
  .v-tabs { top: 8px; left: 8px; }
  .v-tabs button { padding: 5px 9px; font-size: 11px; }
  .mat-strip span { bottom: 52px; font-size: 11px; }
}

/* Occluder tool: vedle sebe render (16:10) | panel add-onu (scrolluje, body) | klikací seznam */
.occ-render { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.occ-panel { position: relative; height: 0; min-height: 100%; overflow-y: auto; scroll-behavior: smooth; border-radius: var(--radius); background: #282828; scrollbar-width: thin; }
.occ-panel .occ-pan { position: relative; }
.occ-panel img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.occ-render > .v-zoom, .occ-render > .g-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.occ-render .v-zoom img { width: 100%; height: 100%; object-fit: cover; }
.occ-render .g-placeholder { aspect-ratio: auto; border-radius: 0; }
.occ-labels { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); pointer-events: none; }
.occ-labels span { justify-self: center; padding: 5px 12px; border-radius: 999px; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; }
.viewer.occ { grid-template-columns: minmax(0, 1fr) clamp(180px, 17vw, 240px) clamp(200px, 19vw, 260px); }
.viewer.occ .occ-item { padding: 8px 10px; }
.viewer.occ .occ-txt b { font-size: 13px; }
@media (max-width: 1100px) {  /* úzké okno: render + panel vedle sebe, seznam pod nimi */
  .viewer.occ { grid-template-columns: minmax(0, 1fr) 200px; }
  .viewer.occ .occ-list { grid-column: 1 / -1; height: auto; min-height: 0; overflow: visible; display: grid; grid-template-columns: repeat(2, 1fr); }
}
.occ-dot { position: absolute; z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(198,244,50,.25), 0 4px 14px rgba(0,0,0,.5); transition: transform .3s var(--ease), opacity .3s; }
.occ-dot:hover { transform: scale(1.15); }
.picked .occ-dot { opacity: .35; }                                  /* vybraný bod vynikne, ostatní ustoupí */
.picked .occ-dot.on { opacity: 1; transform: scale(1.25); animation: occPulse 1.6s infinite; }
@keyframes occPulse { 50% { box-shadow: 0 0 0 10px rgba(198,244,50,0), 0 4px 14px rgba(0,0,0,.5); } }
.occ-list { position: relative; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: thin; }
.occ-item { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.occ-item:hover { background: var(--surface-2); }
.occ-item[aria-pressed="true"] { background: var(--surface-2); border-color: var(--accent); }
.occ-n { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); padding-top: 1px; }
.occ-item[aria-pressed="true"] .occ-n { color: var(--accent); }
.occ-txt b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.occ-txt small { display: none; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.occ-item[aria-pressed="true"] small { display: block; }
.occ-stats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.occ-stats em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(198,244,50,.12); color: var(--accent); }
@media (max-width: 860px) {
  .viewer.occ { grid-template-columns: 1fr; }
  .viewer.occ .occ-list { grid-template-columns: 1fr; }
  .occ-panel { height: 420px; min-height: 0; }
  .occ-labels span { padding: 4px 8px; font-size: 11px; }
  .occ-list { height: auto; min-height: 0; overflow: visible; }
}

/* Validace: text vlevo, „terminálová“ karta vpravo; řádky se postupně odškrtají */
.viewer.chk { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.chk-card { border-radius: var(--radius); background: #101012; border: 1px solid var(--line); padding: 0 0 6px; overflow: hidden; font-size: 14px; }
.chk-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chk-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.chk-top code { margin-left: 8px; font-size: 12px; color: var(--muted); }
.chk-row { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--muted); transition: color .3s; }.chk-row i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a3a40; position: relative; transition: background .25s, border-color .25s; }
.chk-row.run i { border-color: var(--accent); border-right-color: transparent; animation: chkSpin .6s linear infinite; }
@keyframes chkSpin { to { transform: rotate(360deg); } }
.chk-row.ok { color: var(--text); }
.chk-row.ok i { background: var(--accent); border-color: var(--accent); }
.chk-row.ok i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 16px 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.chk-res { font-size: 13px; font-weight: 700; color: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.chk-res.on { opacity: 1; transform: none; }
.chk-replay { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 999px; transition: color .2s, background .2s; }
.chk-replay:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 860px) { .viewer.chk { grid-template-columns: 1fr; } }

/* HUD uprostřed dole: [lišta s tečkami] [hodnota]. Jedna barva (akcent), vše na jedné ose = opticky vycentrované. */
.dmg-hud { position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); display: flex; align-items: center; gap: 20px; padding: 10px 14px 10px 24px; border-radius: 999px; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dmg-meter { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; }
.dmg-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255,255,255,.14); }
.dmg-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .25s var(--ease); }
.dmg-meter button { position: absolute; top: 50%; left: calc(var(--k) / var(--n) * 100%); transform: translate(-50%, -50%); width: 28px; height: 28px; display: grid; place-items: center; padding: 0; }
.dmg-meter i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #3a3a40; transition: transform .2s var(--ease), box-shadow .2s; }
.dmg-meter button:hover i { transform: scale(1.3); background: #55555c; }
.dmg-meter button.on i { background: var(--accent); }
.dmg-meter button.cur i { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(198,244,50,.22); }
.dmg-val { flex: none; min-width: 3.6em; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .dmg-hud { bottom: 10px; width: calc(100% - 20px); gap: 14px; padding: 8px 10px 8px 18px; }
  .dmg-meter button { width: 32px; height: 32px; } /* větší plocha pro prst */
}

@media (max-width: 860px) {
  .viewer.cars { grid-template-columns: 1fr; }
  .v-closes { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: auto; min-height: 0; }
  .v-close { aspect-ratio: 16 / 10; }
  .v-stage .compare .lbl { top: 10px; }
  .viewer:not(.single), .viewer, .viewer.sq:not(.single) { grid-template-columns: 1fr; }
  .viewer.vid { grid-template-columns: 1fr; }
  .viewer.vid .v-video { aspect-ratio: 4 / 5; max-height: 70svh; }
  .v-head .v-pills { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .v-pills .v-item { width: auto; aspect-ratio: auto; }
  .v-list { display: flex; overflow-x: auto; height: auto; min-height: 0; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .v-item { flex: none; width: 112px; aspect-ratio: 1; scroll-snap-align: start; }
  .v-txt small { display: none; }
  .v-stage { aspect-ratio: 4 / 3; }
  .v-cap { left: 10px; bottom: 10px; }
}

/* Compare slider */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(10px, 1.4vw, 20px); user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--surface); }
.compare img { width: 100%; display: block; pointer-events: none; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .before img { height: 100%; object-fit: cover; }
.compare.demo .before img { filter: grayscale(1) contrast(.85) brightness(1.15); } /* jen dokud chybí base render */
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--text); transform: translateX(-1px); }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%; background: var(--text); color: var(--bg); transform: translate(-50%, -50%); display: grid; place-items: center; font-size: 11px; font-weight: 700; box-shadow: 0 6px 30px rgba(0,0,0,.4); }
.compare .lbl { position: absolute; top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(11,11,12,.7); }
.compare .lbl.l { left: 16px; } .compare .lbl.r { right: 16px; }
.compare .demo-note { position: absolute; bottom: 14px; left: 16px; font-size: 12px; color: var(--accent); background: rgba(11,11,12,.75); padding: 4px 10px; border-radius: 6px; }

/* Video / embed facade */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-facade { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.embed-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.embed-facade:hover img { opacity: 1; }
.embed-facade .btn { position: relative; z-index: 2; }

/* Lightbox + modal */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,6,.94); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); }
.overlay.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.overlay .embed { width: min(1280px, 100%); }
.overlay-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 22px; line-height: 1; }
.overlay-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); font-size: 20px; z-index: 2; transition: background .2s, color .2s; }
.overlay-nav:hover { background: var(--accent); color: var(--accent-ink); }
.overlay-nav.ov-prev { left: 12px; } .overlay-nav.ov-next { right: 12px; }

/* All projects (bottom of project page) */
.more { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
/* Ostatní projekty bez aktuálního → 4 dlaždice, mřížka 2×2 */
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
/* Cizí assety v kreditech (shader apod.): pod jmény, menším písmem */
.credits-assets { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; font-size: 13px; color: var(--muted); }
.credits-assets em { font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-right: 10px; }
.credits-assets a, .credits-assets b { color: var(--text); font-weight: 600; }
.credits-assets a:hover { color: var(--accent); }
.credits-assets span { color: var(--muted); font-weight: 400; }
@media (max-width: 720px) { .credits-assets { justify-content: flex-start; } }
.more-grid .tile-media { aspect-ratio: 16 / 10; }
.more-grid .tile-title { font-size: clamp(15px, 1.3vw, 19px); }
.more-grid .tile-meta { padding-top: 10px; }
.more-grid .tile.current { pointer-events: none; }
.more-grid .tile.current .tile-media img { opacity: .35; filter: grayscale(.6); }
.more-grid .tile.current .tile-media::after {
  content: attr(data-current); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}

/* Prototype switcher (only for review) */
.proto {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  background: rgba(28,28,31,.92); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; color: var(--muted); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  max-width: calc(100vw - 32px);
}
.proto-name { min-width: 104px; color: var(--text); font-weight: 600; white-space: nowrap; }
.proto button { padding: 6px 12px; border-radius: 999px; font-weight: 600; color: var(--text); white-space: nowrap; transition: background .2s; }
.proto button:hover { background: var(--surface-2); }
.proto button.on { background: var(--accent); color: var(--accent-ink); }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--surface-2); transition: transform .2s var(--ease); flex: none; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--text); }
@media (max-width: 420px) { .proto-name { display: none; } .proto { padding-left: 6px; } }

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