/* ==========================================================================
   Virtalia — veřejný web
   Jazyk webu je jazyk technického výkresu: tuš na papíře, kóty, rastr,
   značka stanoviště skeneru (červený kroužek s tečkou — stejná je v logu).
   Barvy: černá, papírová bílá, červená. Barevnou škálu (modrá → žlutá →
   červená) používají jen data: mračno obarvené podle výšky.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2191-2193; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

:root {
  --ink: #0d0d0e;
  --ink-2: #151517;
  --ink-3: #202024;
  --ink-line: rgba(255, 255, 255, 0.12);
  --paper: #f3f1ec;
  --paper-2: #e8e5de;
  --white: #ffffff;
  --line: rgba(13, 13, 14, 0.14);
  --line-strong: rgba(13, 13, 14, 0.85);
  --muted: #5d5b57;
  --muted-ink: #9a9893;
  --red: #ed1c24;
  --red-deep: #c3101a;

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --section: clamp(80px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
small { font-size: 0.82em; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; font-stretch: 100%; }
.text-red { color: var(--red); }
.kicker { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

.h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.section--ink .lead, .is-ink .lead { color: var(--muted-ink); }
mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 0.09em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }

/* Značka stanoviště */
.station { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border: 2px solid var(--red); border-radius: 50%; }
.station > span { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.station--sm { width: 12px; height: 12px; border-width: 1.5px; }
.station--sm > span { width: 4px; height: 4px; }

/* ── Tlačítka ─────────────────────────────────────────────────────────────── */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 600; font-stretch: 105%; font-size: 0.95rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1rem; }
.btn--red { --bg: var(--red); --bd: var(--red); }
.btn--red:hover { --bg: var(--red-deep); --bd: var(--red-deep); }
.btn--dark:hover { --bg: var(--ink-3); }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; }
.btn--ghost:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--line:hover { --bg: var(--ink); --fg: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ── Hlavička ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 132px; flex: none; }
.brand img { width: 100%; height: auto; }
.brand__dark { display: none !important; }
.site-header--over-dark { color: var(--white); }
.site-header--over-dark .brand__light { display: none !important; }
.site-header--over-dark .brand__dark { display: block !important; }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); color: var(--ink); border-bottom-color: var(--line); }
.site-header.is-scrolled .brand__light { display: block !important; }
.site-header.is-scrolled .brand__dark { display: none !important; }
body:not(.is-home):not(.is-dark) .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__list { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav__link { position: relative; display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 560; font-size: 0.95rem; padding: 6px 0; }
.nav__no { font-family: var(--mono); font-size: 0.62rem; opacity: 0.5; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active .nav__no { color: var(--red); opacity: 1; }
.nav__cta { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.nav__contact { display: none; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; padding: 8px 0; z-index: 2; }
  .nav-toggle__label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .nav-toggle__bars { display: grid; gap: 6px; width: 26px; }
  .nav-toggle__bars span { height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
  .nav-open .nav-toggle__bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle__bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px; background: var(--ink); color: var(--white);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease); overflow-y: auto;
  }
  .nav-open .nav { clip-path: inset(0 0 0 0); }
  .nav-open .site-header { color: var(--white); background: transparent; border-color: transparent; backdrop-filter: none; }
  .nav-open .site-header .brand__light { display: none !important; }
  .nav-open .site-header .brand__dark { display: block !important; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { font-size: clamp(2rem, 9vw, 3rem); font-weight: 760; font-stretch: 115%; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--ink-line); width: 100%; gap: 14px; }
  .nav__no { font-size: 0.75rem; }
  .nav__link::after { display: none; }
  .nav__cta { min-height: 56px; }
  .nav__contact { display: block; color: var(--muted-ink); line-height: 2; }
  .nav__contact a { text-decoration: none; }
  .nav-open { overflow: hidden; }
}

/* ── Sekce ────────────────────────────────────────────────────────────────── */
.section { padding: var(--section) 0; position: relative; }
.section--ink { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 860px; }
.section-head .lead { margin-top: 24px; }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; max-width: none; }
.section-head--split .lead { margin: 0 0 24px; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 90% at 75% 40%, #1c1b1f 0%, var(--ink) 62%); color: var(--white);
  overflow: hidden; padding: calc(var(--header-h) + 40px) 0 96px;
}
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 96px 96px; opacity: 0.35;
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero .eyebrow { color: var(--muted-ink); margin-bottom: 28px; }
/* H1: klidnější řez — střední váha, normální šířka, bez kontrastu tlustá/tenká */
.hero__title { font-size: clamp(3rem, 7.4vw, 7.6rem); font-weight: 560; font-stretch: 100%; letter-spacing: -0.045em; line-height: 1; margin-bottom: 36px; }
.hero__line { display: block; overflow: hidden; padding: 0 0.04em 0.14em 0; margin-bottom: -0.14em; }
.hero__title em { font-style: normal; color: var(--muted-ink); }
.hero__dot { color: var(--red); }
.hero__lead { max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #c9c7c2; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hud {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 48px;
  display: grid; grid-template-columns: repeat(2, auto); gap: 14px 32px; color: var(--muted-ink);
  padding: 18px 20px; border: 1px solid var(--ink-line); background: rgba(13, 13, 14, 0.55); backdrop-filter: blur(6px);
}
.hero__hud dt { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero__hud dd { color: var(--white); font-size: 0.95rem; font-variant-numeric: tabular-nums; min-width: 11ch; }

/* Hero — nástup titulku */
.hero__line > * , .hero__line { animation: rise 1.1s var(--ease) both; }
.hero__line:nth-child(2) { animation-delay: 0.08s; }
.hero__line:nth-child(3) { animation-delay: 0.16s; }
.hero__lead, .hero__actions, .hero .eyebrow { animation: fade 1.2s 0.35s var(--ease) both; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__line, .hero__lead, .hero__actions, .hero .eyebrow { animation: none; } }

@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-bottom: 120px; }
  .hero__canvas { opacity: 0.55; }
  .hero__hud { position: relative; right: auto; bottom: auto; margin: 32px var(--gutter) 0; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
}

/* ── Manifest ─────────────────────────────────────────────────────────────── */
.manifest__text { font-size: clamp(1.7rem, 3.6vw, 3.3rem); font-weight: 480; font-stretch: 104%; line-height: 1.16; letter-spacing: -0.02em; max-width: 22em; text-wrap: pretty; margin-bottom: clamp(48px, 7vw, 96px); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.figure { padding: 24px 24px 0 0; border-right: 1px solid var(--line); }
.figure:last-child { border-right: 0; }
.figure + .figure { padding-left: 24px; }
.figure dt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; order: 2; }
.figure { display: flex; flex-direction: column-reverse; gap: 10px; }
.figure dd { font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 760; font-stretch: 120%; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.figure__unit { font-size: 0.32em; font-weight: 500; letter-spacing: 0; margin-left: 0.25em; font-stretch: 100%; }
.figure__pre { font-weight: 300; }
.figure__pre--sm { font-size: 0.32em; font-weight: 500; letter-spacing: 0; margin-right: 0.3em; font-stretch: 100%; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figure, .figure + .figure { padding: 20px 12px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ── PIPELINE ─────────────────────────────────────────────────────────────── */
.pipeline { position: relative; display: grid; grid-template-columns: minmax(380px, 0.95fr) 1.35fr; background: var(--ink); color: var(--white); }
.pipeline__stage { grid-column: 2; grid-row: 1; position: relative; }
.pipeline__sticky {
  --paper: 0;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: color-mix(in srgb, var(--paper-2) calc(var(--paper) * 100%), var(--ink-2));
  border-left: 1px solid var(--ink-line);
}
.pipeline__sticky::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(127, 127, 127, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 127, 127, 0.13) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pipeline__canvas { position: absolute; inset: 0; }
.pipeline__canvas canvas { width: 100% !important; height: 100% !important; }
.pipeline__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pipeline__hud { position: absolute; left: 24px; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 10px; color: color-mix(in srgb, var(--ink) calc(var(--paper) * 100%), var(--muted-ink)); }
.pipeline__legend { display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.4s; }
.pipeline__legend.is-on { opacity: 1; }
.pipeline__legend i { width: 120px; height: 6px; background: linear-gradient(90deg, #1a2a8c, #0d9eb8, #f2d940, #ed1c24); }
.pipeline__rail { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.pipeline__rail button {
  display: inline-flex; gap: 8px; align-items: center; cursor: pointer;
  padding: 8px 12px; border: 1px solid var(--ink-line); background: rgba(13, 13, 14, 0.55);
  color: var(--muted-ink); font-size: 0.82rem; font-weight: 560; backdrop-filter: blur(6px);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.pipeline__rail button .mono { font-size: 0.68rem; }
.pipeline__rail button.is-active { color: var(--white); border-color: var(--red); background: var(--red); }
.pipeline__rail button:not(.is-active) {
  background: color-mix(in srgb, var(--white) calc(var(--paper) * 100%), rgba(13, 13, 14, 0.6));
  color: color-mix(in srgb, var(--ink) calc(var(--paper) * 100%), var(--muted-ink));
  border-color: color-mix(in srgb, var(--line) calc(var(--paper) * 100%), var(--ink-line));
}
.pipeline__steps { grid-column: 1; grid-row: 1; padding: 0 clamp(20px, 3.5vw, 56px); }
.pipeline__intro { padding: var(--section) 0 20vh; }
.pipeline__intro .lead { margin-top: 24px; }
.pstep { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; border-top: 1px solid var(--ink-line); }
.pstep:last-child { min-height: 100vh; }
.pstep__no { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.pstep__title { font-size: clamp(2rem, 3.2vw, 3.3rem); font-weight: 740; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }
.pstep__text { color: #c9c7c2; max-width: 40ch; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.6; }
.pstep__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pstep__meta li { border: 1px solid var(--ink-line); padding: 4px 10px; color: var(--muted-ink); }

.slabel { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; line-height: 1.3; color: var(--white); will-change: transform, opacity; opacity: 0; }
.slabel > span, .slabel > small { display: block; }
.slabel--chip, .slabel--tag { padding: 6px 10px 6px 22px; margin: -14px 0 0 0; background: rgba(13, 13, 14, 0.84); border: 1px solid var(--ink-line); backdrop-filter: blur(4px); }
.slabel--chip::before, .slabel--tag::before { content: ''; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--c, var(--red)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--red)) 28%, transparent); }
.slabel--tag { border-left: 2px solid var(--c, var(--red)); }

/* Popisky výkresu: kóty, osy, místnosti, značky — jako na papíře */
.slabel--dim, .slabel--room, .slabel--axis, .slabel--tagsm, .slabel--sect, .slabel--lvl { color: var(--ink); translate: -50% -50%; text-align: center; }
.slabel--room { line-height: 1.25; }
.slabel--room span { font-weight: 600; font-size: 0.7rem; }
.slabel--room small { color: #57534c; font-size: 0.62rem; }
.slabel--dim { font-size: 0.6rem; letter-spacing: 0.02em; }
.slabel--dim--tight { font-size: 0.52rem; }
.slabel--axis { font-size: 0.68rem; font-weight: 600; }
.slabel--tagsm { font-size: 0.54rem; color: #4a4741; }
.slabel--sect { font-family: var(--sans); font-weight: 800; font-size: 0.82rem; color: var(--red); }
.slabel--lvl { font-size: 0.58rem; }

/* Vrstvy digitálního dvojčete: řada teček, aktivní se rozbalí s názvem */
.tlayers { position: absolute; left: 24px; top: calc(var(--header-h) + 44px); display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 48px); opacity: 0; pointer-events: none; transition: opacity 0.4s; font-size: 0.7rem; }
.tlayers.is-on { opacity: 1; pointer-events: auto; }
.tlayers button {
  position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; cursor: pointer;
  background: rgba(13, 13, 14, 0.66); border: 1px solid var(--ink-line); color: var(--white); backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s;
}
.tlayers button span { display: none; white-space: nowrap; }
.tlayers button:hover { border-color: var(--c); }
.tlayers i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; opacity: 0.6; }
.tlayers b { position: absolute; left: -1px; bottom: -1px; height: 2px; width: calc(var(--t, 0) * 100% + 2px); background: var(--c); opacity: 0; }
.tlayers .is-active { background: rgba(13, 13, 14, 0.92); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.tlayers .is-active span { display: inline; }
.tlayers .is-active i { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.tlayers .is-active b { opacity: 1; }

@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline__stage { grid-column: 1; grid-row: 1; height: 100%; position: absolute; inset: 0; }
  .pipeline__sticky { height: 62svh; top: var(--header-h); border-left: 0; border-bottom: 1px solid var(--ink-line); }
  .pipeline__steps { grid-row: 1; position: relative; z-index: 2; padding-top: 0; }
  .pipeline__intro { margin-top: 64svh; margin-inline: calc(-1 * clamp(20px, 3.5vw, 56px)); padding: 32px clamp(20px, 3.5vw, 56px) 40px; background: var(--ink); border-top: 1px solid var(--ink-line); }
  .pstep { min-height: 100svh; justify-content: flex-end; padding: 0 0 72px; border-top: 0; }
  .pstep__card { background: var(--ink); margin-inline: calc(-1 * clamp(20px, 3.5vw, 56px)); padding: 24px clamp(20px, 3.5vw, 56px) 8px; border-top: 1px solid var(--ink-line); }
  .pstep__title { font-size: 1.7rem; margin-bottom: 12px; }
  .pstep__text { font-size: 0.98rem; }
  .pstep__text { color: #dedcd8; }
  .pipeline__hud { top: 16px; left: 16px; }
  .pipeline__rail { left: 12px; right: 12px; bottom: 12px; }
  .pipeline__rail button { padding: 6px 8px; font-size: 0.72rem; }
  .pipeline__rail button .mono { display: none; }
  .slabel { font-size: 0.62rem; }
  .slabel--dim--minor, .slabel--tagsm, .slabel--lvl { display: none; }
  .slabel--dim, .slabel--axis { font-size: 0.5rem; }
  .slabel--room span { font-size: 0.56rem; }
  .slabel--room small { display: none; }
  .tlayers { left: 12px; top: 40px; max-width: calc(100% - 24px); }
  .tlayers button { height: 26px; padding: 0 8px; }
}

/* ── Index služeb ─────────────────────────────────────────────────────────── */
.sindex { border-top: 1px solid var(--line-strong); }
.sindex__item a {
  display: grid; grid-template-columns: 64px 48px 1fr auto 40px; align-items: center; gap: 20px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.sindex__item a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1; }
.sindex__item { position: relative; z-index: 0; }
.sindex__item a:hover { color: var(--white); padding-left: 20px; padding-right: 20px; }
.sindex__item a:hover::before { transform: scaleY(1); }
.sindex__no { color: var(--red); }
.sindex__icon { color: var(--red); }
.sindex__title { font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 720; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; }
.sindex__tag { color: var(--muted); text-align: right; }
.sindex__item a:hover .sindex__tag { color: var(--muted-ink); }
.sindex__arrow { justify-self: end; transition: transform 0.35s var(--ease); }
.sindex__item a:hover .sindex__arrow { transform: translate(3px, -3px); color: var(--red); }
@media (max-width: 760px) {
  .sindex__item a { grid-template-columns: 40px 1fr 28px; gap: 6px 12px; }
  .sindex__icon { display: none; }
  .sindex__tag { grid-column: 2; grid-row: 2; text-align: left; }
  .sindex__arrow { grid-column: 3; grid-row: 1; }
}

/* ── Karty projektů ───────────────────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.pgrid .pcard--wide { grid-column: 1 / -1; }
.pgrid .pcard--wide .pcard__media { aspect-ratio: 21 / 9; }
.pgrid--two .pcard { grid-column: auto !important; }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; } .pgrid .pcard--wide .pcard__media { aspect-ratio: 16 / 10; } }

.pcard { --fg: inherit; position: relative; }
.pcard__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.pcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); color: var(--ink); }
.section--ink .pcard__media { background: var(--ink-3); color: #d9d6d0; }
.pcard__media img, .pcard__media .cover-visual { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s; }
.pcard__link:hover .pcard__media img, .pcard__link:hover .cover-visual { transform: scale(1.04); }
/* Najetí: laser přejede shora dolů a za ním se objeví BIM model. */
.pcard__hover { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease); }
.pcard__scan { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 14px 2px rgba(237, 28, 36, 0.7); opacity: 0; pointer-events: none; transition: top 0.9s var(--ease), opacity 0.4s; }
.pcard__link:hover .pcard__hover, .pcard__link:focus-visible .pcard__hover { clip-path: inset(0 0 0 0); }
.pcard__link:hover .pcard__scan { opacity: 1; top: calc(100% - 2px); }
@media (prefers-reduced-motion: reduce) { .pcard__hover, .pcard__scan { transition: none; } }
.pcard__flag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--white); padding: 4px 9px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
.pcard__outputs { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__outputs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.76rem; font-weight: 560; }
.pcard__outputs li .icon { color: var(--red); }
@media (max-width: 600px) { .pcard__outputs li span { display: none; } .pcard__outputs li { padding: 6px; } }
.pcard__body { padding: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pcard__meta { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.section--ink .pcard__meta { color: var(--muted-ink); }
.pcard__title { font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.08; }
.pcard__summary { color: var(--muted); font-size: 0.98rem; max-width: 52ch; margin: 0; }
.section--ink .pcard__summary { color: var(--muted-ink); }
.pcard__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.pcard__more .icon { transition: transform 0.3s var(--ease); color: var(--red); }
.pcard__link:hover .pcard__more .icon { transform: translateX(5px); }

.cover-visual { color: inherit; }
.cover-visual__label { font-family: var(--mono); font-size: 13px; fill: currentColor; }
.cover-visual__station circle { stroke: var(--red); fill: var(--red); }
.cover-visual__station circle:first-child { fill: none; }

/* ── Pro koho ─────────────────────────────────────────────────────────────── */
.agrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.acard { padding: 28px 24px 32px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.acard + .acard { padding-left: 24px; }
.acard:last-child { border-right: 0; }
.acard__no { color: var(--red); }
.acard__title { font-size: 1.4rem; font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em; }
.acard p:not(.acard__no) { color: var(--muted); font-size: 0.96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags li { font-family: var(--mono); font-size: 0.68rem; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 1000px) { .agrid { grid-template-columns: 1fr 1fr; } .acard:nth-child(2n) { border-right: 0; } .acard:nth-child(3) { padding-left: 0; } .acard { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .agrid { grid-template-columns: 1fr; } .acard, .acard + .acard { padding-left: 0; border-right: 0; } }

/* ── Aplikace (úvod) ──────────────────────────────────────────────────────── */
.app-feature { background: var(--paper); overflow: hidden; }
.app-feature__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.app-feature .lead { margin: 24px 0; max-width: 50ch; }
.app-feature .lead strong { color: var(--ink); font-weight: 650; }
.checks { display: grid; gap: 10px; margin-bottom: 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--red); flex: none; margin-top: 3px; }
.app-feature__shots { position: relative; margin: 0 0 40px; }
.shot { box-shadow: 0 40px 80px -30px rgba(13, 13, 14, 0.45); }
.shot--mac { width: 100%; border: 1px solid var(--line); }
.shot--phone { position: absolute; width: 22%; right: -3%; bottom: -10%; border: 5px solid var(--ink); border-radius: 22px; }
@media (max-width: 900px) { .app-feature__grid { grid-template-columns: 1fr; } .shot--phone { right: 4%; } }

/* ── Proces ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step__dim { position: absolute; top: 0; left: 0; right: -32px; border-top: 1px solid var(--ink); }
.step:last-child .step__dim { right: 0; }
.step::before { content: ''; position: absolute; top: -6px; left: -6px; width: 12px; height: 12px; border: 2px solid var(--red); border-radius: 50%; background: var(--paper); }
.step__no { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.step__title { font-size: 1.45rem; font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 12px; }
.step p:not(.step__no):not(.step__meta) { color: var(--muted); font-size: 0.96rem; }
.step__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; } .step__dim { right: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__group + .faq__group { margin-top: 48px; }
.faq__group-title { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; font-size: 1.12rem; font-weight: 600; font-stretch: 104%; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { flex: none; transition: transform 0.35s var(--ease); color: var(--red); }
.qa[open] summary .icon { transform: rotate(45deg); }
.qa summary:hover { color: var(--red); }
.qa__a { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq .section-head { position: static; } }

/* ── Kontakt ──────────────────────────────────────────────────────────────── */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: radial-gradient(70% 70% at 10% 90%, #000, transparent 70%); -webkit-mask-image: radial-gradient(70% 70% at 10% 90%, #000, transparent 70%); }
.contact__grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact__title { font-size: clamp(2.6rem, 6vw, 5.6rem); margin-bottom: 28px; }
.contact__copy .lead { margin-bottom: 40px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.contact__list .icon { color: var(--red); margin-top: 4px; flex: none; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.contact__list a:hover { border-color: var(--red); }
.contact__list small { color: var(--muted-ink); }
.contact-page .contact { padding-top: calc(var(--header-h) + 64px); min-height: 100svh; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.cform { background: var(--ink-2); border: 1px solid var(--ink-line); padding: clamp(20px, 3vw, 40px); display: grid; gap: 20px; }
.cform__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink-line); }
.cform__tab { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px 12px; background: none; border: 0; cursor: pointer; color: var(--muted-ink); font-weight: 600; transition: background 0.25s, color 0.25s; }
.cform__tab .mono { opacity: 0.6; }
.cform__tab.is-active { background: var(--white); color: var(--ink); }
.cform__tab.is-active .mono { color: var(--red); opacity: 1; }
.cform__panel { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-ink); padding: 0; }
.field__label small { text-transform: none; letter-spacing: 0; opacity: 0.7; margin-left: 6px; }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field textarea {
  width: 100%; font: inherit; color: var(--white); background: transparent;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 0; border-radius: 0; resize: vertical;
  transition: border-color 0.25s;
}
.field textarea { border: 1px solid rgba(255, 255, 255, 0.22); padding: 12px 14px; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field ::placeholder { color: #75736f; }
.field__other { margin-top: 6px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.9rem; color: #d6d4cf; transition: all 0.2s; }
.chip:hover span { border-color: rgba(255, 255, 255, 0.6); }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.cform__note { font-size: 0.82rem; color: var(--muted-ink); max-width: 34ch; margin: 0; }
.cform__note a { color: var(--white); }
.cform.is-sending .cform__submit { opacity: 0.6; pointer-events: none; }
.cform__status:empty { display: none; }
.cform__status { margin: 0; padding: 14px 16px; border: 1px solid; font-size: 0.95rem; }
.cform__status[data-state='ok'] { border-color: rgba(120, 220, 150, 0.5); color: #9ee6b3; background: rgba(120, 220, 150, 0.08); }
.cform__status[data-state='error'] { border-color: rgba(255, 120, 120, 0.5); color: #ffb0b0; background: rgba(237, 28, 36, 0.1); }

/* ── Patička ──────────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--ink); color: var(--muted-ink); padding: clamp(64px, 8vw, 112px) 0 32px; }
.site-footer::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; height: 1px; background: linear-gradient(90deg, var(--red) 0 64px, var(--ink-line) 64px); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--ink-line); }
.site-footer__claim { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 4.6rem); font-weight: 560; font-stretch: 100%; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
.site-footer__claim span { color: var(--muted-ink); }
.site-footer__mark { width: 72px; height: 72px; opacity: 0.9; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0; }
.site-footer__logo { width: 140px; height: auto; margin-bottom: 24px; }
.site-footer__address { line-height: 1.7; font-size: 0.94rem; }
.site-footer__title { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 18px; }
.site-footer__list { display: grid; gap: 10px; font-size: 0.95rem; }
.site-footer__list a { text-decoration: none; color: #d6d4cf; }
.site-footer__list a:hover { color: var(--white); text-decoration: underline; }
.site-footer__coords { color: #6f6d69; padding-top: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 0.85rem; }
.site-footer__bottom a { text-decoration: none; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Hlavičky podstránek ──────────────────────────────────────────────────── */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero--ink { background: var(--ink); color: var(--white); border-color: var(--ink-line); }
.page-hero--compact { padding-bottom: 48px; }
.page-hero__scene { position: absolute; inset: 0; opacity: 0.8; }
.page-hero--ink .lead { color: #c9c7c2; }
.page-hero__scene canvas { width: 100% !important; height: 100% !important; }
.page-hero .wrap { position: relative; }
.page-hero__title { font-size: clamp(2.8rem, 7.6vw, 7.2rem); font-weight: 560; font-stretch: 100%; letter-spacing: -0.045em; line-height: 1; margin-bottom: 32px; }
.page-hero__title em { font-style: normal; color: var(--red); }
.page-hero__lead { max-width: 56ch; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.toc a { display: inline-flex; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; transition: all 0.2s; }
.toc a span { color: var(--red); }
.toc a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── Služby ───────────────────────────────────────────────────────────────── */
.service { padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); }
.service--alt { background: var(--paper); }
.service__grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(32px, 6vw, 112px); }
.service__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.service__no { color: var(--red); margin-bottom: 24px; }
.service__icon { display: block; color: var(--red); margin-bottom: 20px; }
.service__title { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 760; font-stretch: 115%; letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 16px; }
.service__tag { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.service__lead { font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.45; font-weight: 420; letter-spacing: -0.01em; margin-bottom: 40px; }
.service__specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); margin-bottom: 32px; }
.service__specs li { display: flex; gap: 12px; align-items: center; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.service__facts { display: flex; flex-wrap: wrap; gap: 32px; }
.service__facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; margin-bottom: 8px; }
.service__facts dd { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; }
.fmt { display: inline-block; font-family: var(--mono); font-size: 0.75rem; padding: 3px 8px; border: 1px solid var(--line-strong); line-height: 1.4; }
.fmt--link { text-decoration: none; }
.fmt--link:hover { background: var(--ink); color: var(--white); }
@media (max-width: 860px) { .service__grid { grid-template-columns: 1fr; } .service__head { position: static; } .service__specs { grid-template-columns: 1fr; } }

.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.reason { border-top: 2px solid var(--ink); padding-top: 20px; }
.reason__no { color: var(--red); margin-bottom: 32px; }
.reason h3 { font-size: 1.35rem; font-weight: 720; font-stretch: 108%; margin-bottom: 12px; letter-spacing: -0.02em; }
.reason p:not(.reason__no) { color: var(--muted); font-size: 0.96rem; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.certs li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); background: var(--white); }
.certs .icon { color: var(--red); }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

/* ── Portfolio ────────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 560; font-size: 0.92rem; transition: all 0.2s; }
.filter .icon { color: var(--red); }
.filter .mono { opacity: 0.6; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty { color: var(--muted); padding: 40px 0; }
.mex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.mex__item { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.mex__item .icon { color: var(--red); margin-bottom: 24px; }
.mex__item h3 { font-size: 1.25rem; font-stretch: 106%; margin-bottom: 10px; }
.mex__item p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .mex { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mex { grid-template-columns: 1fr; } }

/* ── Detail projektu ──────────────────────────────────────────────────────── */
.project-hero { position: relative; background: var(--ink); color: var(--white); padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.project-hero__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 96px 96px; opacity: 0.3; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); }
.project-hero .wrap { position: relative; }
.project-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; margin: 0; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(13, 13, 14, 0.6) 30%, transparent 65%), linear-gradient(0deg, var(--ink) 0%, transparent 25%); }
.project-hero__media figcaption { position: absolute; z-index: 2; right: var(--gutter); bottom: 24px; display: flex; align-items: center; gap: 8px; color: var(--muted-ink); }
.project-hero .project-hero__inner { z-index: 3; }
@media (min-width: 901px) {
  .project-hero--media .project-hero__inner { padding-right: calc(46% + var(--gutter)); }
  .project-hero--media .project-hero__title { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
  .project-hero--media .project-facts div { padding-right: 20px; margin-right: 20px; }
}
@media (max-width: 900px) {
  .project-hero__media { position: relative; width: auto; height: 46vw; margin: -24px 0 24px; order: -1; }
  .project-hero { display: flex; flex-direction: column; }
  .project-hero__media figcaption { display: none; }
}
.crumbs { color: var(--muted-ink); margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.06em; }
.crumbs a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.demo-flag { display: inline-flex; align-items: center; gap: 10px; color: #e3e1dc; border: 1px solid var(--ink-line); padding: 8px 12px; margin-bottom: 24px; }
.project-hero__title { font-size: clamp(2.6rem, 6.2vw, 5.8rem); font-weight: 560; font-stretch: 100%; letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; margin-bottom: 24px; }
.project-hero__lead { color: #c9c7c2; max-width: 60ch; }
.project-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 48px 0 28px; border-top: 1px solid var(--ink-line); }
.project-facts div { padding: 16px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--ink-line); }
.project-facts div:last-child { border-right: 0; }
.project-facts dt { color: var(--muted-ink); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.project-facts dd { color: var(--white); font-size: 0.95rem; }
@media (max-width: 560px) {
  .project-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 36px; }
  .project-facts div, .project-hero--media .project-facts div { padding: 14px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--ink-line); }
}
.outputs { display: flex; flex-wrap: wrap; gap: 8px; }
.outputs li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--ink-line); font-weight: 560; font-size: 0.92rem; }
.outputs .icon { color: var(--red); }

.module-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.module-nav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.module-nav__inner::-webkit-scrollbar { display: none; }
.module-nav__label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding-right: 12px; flex: none; }
.module-nav a { flex: none; display: inline-flex; gap: 8px; align-items: center; padding: 16px 12px; text-decoration: none; font-weight: 560; font-size: 0.92rem; border-bottom: 2px solid transparent; }
.module-nav a .mono { color: var(--muted); font-size: 0.68rem; }
.module-nav a.is-active { border-color: var(--red); }
.module-nav a.is-active .mono { color: var(--red); }

.module { padding: clamp(56px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.module:nth-child(even) { background: var(--paper); }
.module.module--deliverables { background: var(--white); }
.module__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.module__no { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.module__title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 760; font-stretch: 112%; letter-spacing: -0.035em; line-height: 1; margin-bottom: 16px; }
.module__intro { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.prose { font-size: 1.08rem; line-height: 1.7; max-width: 68ch; }
.prose h2 { font-size: 1.6rem; font-stretch: 108%; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose ul li { padding-left: 22px; position: relative; margin-bottom: 0.4em; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 8px; border: 1.5px solid var(--red); border-radius: 50%; }
.prose--narrow { max-width: 72ch; }
.mtext { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: clamp(32px, 6vw, 96px); }
.mtext__aside { border-top: 1px solid var(--line-strong); }
.mtext__aside p { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.mtext__aside .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
@media (max-width: 860px) { .mtext { grid-template-columns: 1fr; } }
.figures--project .figure dd { font-size: clamp(2.2rem, 3.8vw, 3.6rem); white-space: nowrap; }
@media (max-width: 560px) { .figures--project .figure dd { font-size: clamp(1.6rem, 8.4vw, 2.2rem); } }

.mtimeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 0; }
.mtimeline li { position: relative; padding-top: 28px; }
.mtimeline .station { position: absolute; top: -8px; left: 0; background: var(--white); }
.module:nth-child(even) .mtimeline .station { background: var(--paper); }
.mtimeline .mono { color: var(--red); margin-bottom: 8px; }
.mtimeline h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mtimeline p:not(.mono) { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 560px) {
  /* Svislá osa: tečky na jedné lince vlevo místo vodorovné čáry */
  .mtimeline { grid-template-columns: 1fr; gap: 28px; border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 6px; }
  .mtimeline li { padding: 0 0 0 24px; }
  .mtimeline .station { top: 1px; left: -6.5px; }
}

.docs { border-top: 1px solid var(--line-strong); }
.doc { display: grid; grid-template-columns: 72px 1fr auto 48px; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc__fmt { display: inline-grid; place-items: center; height: 40px; border: 1px solid var(--line-strong); font-weight: 500; }
.doc__name { font-weight: 600; display: grid; }
.doc__name small { color: var(--muted); font-weight: 400; }
.doc__size { color: var(--muted); }
.doc__dl { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--white); transition: background 0.2s; }
.doc__dl:hover { background: var(--red); }
.doc__locked { color: var(--muted); font-size: 0.66rem; text-transform: uppercase; text-align: center; }
@media (max-width: 560px) { .doc { grid-template-columns: 56px 1fr 44px; } .doc__size { display: none; } }

.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.sheets:has(> .sheet:only-child) { grid-template-columns: minmax(0, 880px); }
.sheet { margin: 0; border: 1px solid var(--line-strong); background: var(--white); }
.sheet__view { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; border-bottom: 1px solid var(--line-strong); }
.sheet__view img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform 0.5s var(--ease); }
.sheet__view:hover img { transform: scale(1.03); }
.sheet__cap { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 14px; align-items: center; }
.sheet__code { color: var(--red); }
.sheet__title { font-weight: 600; }
.sheet__scale { color: var(--muted); }
.sheet__files { grid-column: 1 / -1; display: flex; gap: 6px; }

.compare { position: relative; overflow: hidden; aspect-ratio: 16 / 9; user-select: none; background: var(--ink); }
.compare > img, .compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--red); pointer-events: none; }
.compare__handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; display: grid; place-items: center; background: var(--red); color: #fff; border-radius: 50%; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; top: 14px; padding: 5px 10px; background: rgba(13, 13, 14, 0.8); color: #fff; }
.compare__label--l { left: 14px; } .compare__label--r { right: 14px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery button { display: block; padding: 0; border: 0; cursor: zoom-in; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { color: var(--muted); margin-top: 8px; }

.embed { position: relative; aspect-ratio: var(--ratio); background: var(--ink); color: var(--white); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px); background-size: 16px 16px; }
.embed__placeholder > .icon { color: var(--red); }
.embed__provider { color: var(--muted-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.embed__note { color: var(--muted-ink); max-width: 46ch; font-size: 0.9rem; }
.embed__open { color: var(--muted-ink); display: inline-flex; align-items: center; gap: 6px; }

.deliverables { width: 100%; border-collapse: collapse; }
.deliverables th, .deliverables td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.deliverables thead th { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; border-bottom-color: var(--line-strong); }
.deliverables tbody th { font-weight: 650; }
.deliverables td.mono { display: flex; flex-wrap: wrap; gap: 6px; }
.deliverables td:last-child { color: var(--muted); }
@media (max-width: 640px) { .deliverables thead { display: none; } .deliverables tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); } .deliverables th, .deliverables td { border: 0; padding: 4px 0; } }

/* ── 3D prohlížeč a prohlídka ─────────────────────────────────────────────── */
.viewer { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.viewer:fullscreen { display: flex; flex-direction: column; }
.viewer:fullscreen .viewer__stage { flex: 1; height: auto; }
.viewer__stage { position: relative; height: min(var(--viewer-h), 78vh); background: radial-gradient(90% 90% at 50% 40%, #222126, var(--ink)); overflow: hidden; touch-action: none; }
.viewer__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted-ink); transition: opacity 0.5s; }
.viewer.is-ready .viewer__loading { opacity: 0; pointer-events: none; }
.viewer.is-failed .viewer__loading { opacity: 1; }
.viewer__progress { width: 200px; height: 2px; background: var(--ink-line); overflow: hidden; }
.viewer__progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
.viewer__hint { position: absolute; left: 16px; bottom: 14px; color: var(--muted-ink); transition: opacity 0.5s; pointer-events: none; }
.viewer__hint.is-hidden { opacity: 0; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.viewer.is-ready .viewer__stage::after { content: var(--points, ''); position: absolute; right: 16px; top: 14px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted-ink); pointer-events: none; }
.viewer__readout { position: absolute; left: 16px; top: 14px; display: grid; gap: 2px; padding: 10px 14px; background: rgba(13, 13, 14, 0.85); border: 1px solid var(--ink-line); }
.viewer__readout strong { font-size: 1.2rem; color: var(--white); font-weight: 500; }
.viewer__readout span { color: var(--muted-ink); }
.viewer__bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--ink-line); background: var(--ink-2); }
.vgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vgroup__label { color: var(--muted-ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.64rem; margin-right: 4px; }
.vgroup__label output { color: var(--white); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.vgroup--range { gap: 10px; }
.vgroup--range input { width: 140px; accent-color: var(--red); }
.vbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; background: transparent; border: 1px solid var(--ink-line); color: var(--muted-ink); font-size: 0.84rem; font-weight: 560; cursor: pointer; transition: all 0.2s; }
.vbtn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.vbtn.is-on { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.vbtn--icon { padding: 0 9px; }
.vbtn .icon { flex: none; }
.viewer__noscript { padding: 24px; }

.tour { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.tour__view { position: relative; height: min(640px, 76vh); overflow: hidden; }
.tour__pano, .tour__3d { position: absolute; inset: 0; }
.tour__pano { cursor: grab; touch-action: none; }
.tour__pano.is-dragging { cursor: grabbing; }
.tour__pano canvas, .tour__3d canvas { width: 100% !important; height: 100% !important; }
.tour__3d { background: radial-gradient(90% 90% at 50% 40%, #222126, var(--ink)); }
.tour__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-ink); }
.tour__top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; pointer-events: none; z-index: 3; }
.tour__top > * { pointer-events: auto; }
.tour__where { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(13, 13, 14, 0.82); border: 1px solid var(--ink-line); }
@media (max-width: 560px) {
  .tour__top { left: 10px; right: 10px; top: 10px; flex-direction: column; gap: 6px; }
  .tour__where { font-size: 0.7rem; padding: 7px 10px; gap: 8px; max-width: 100%; }
}
.tour__modes { display: flex; gap: 4px; background: rgba(13, 13, 14, 0.82); padding: 4px; border: 1px solid var(--ink-line); }
.tour__plan { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: min(300px, 42%); background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6); transition: transform 0.4s var(--ease); }
.tour__plan img { width: 100%; height: auto; }
.tour__plan.is-collapsed { transform: translateY(calc(100% - 30px)); }
.tour__plan-toggle { position: absolute; left: 0; top: -30px; height: 30px; padding: 0 12px; background: var(--ink); color: var(--white); border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; }
.tour__plan-marks { position: absolute; inset: 0; }
.pmark { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; border-radius: 50%; border: 2px solid var(--red); background: var(--paper); cursor: pointer; }
.pmark.is-on { background: var(--red); box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.25); }
.pmark__cone { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; pointer-events: none; background: conic-gradient(from 60deg, rgba(237, 28, 36, 0.38) 0deg 60deg, transparent 60deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 60%, transparent 62%); mask: radial-gradient(circle, #000 60%, transparent 62%); }
.hotspot { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin: -11px 0 0 -11px; padding: 0 12px 0 0; background: rgba(13, 13, 14, 0.82); border: 1px solid var(--ink-line); border-radius: 999px; color: var(--white); font-size: 0.82rem; cursor: pointer; white-space: nowrap; }
.hotspot__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(237, 28, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0); } }
.tour__hotspot { position: absolute; z-index: 4; left: 14px; bottom: 14px; max-width: 340px; padding: 18px 20px; background: var(--white); color: var(--ink); border-left: 3px solid var(--red); }
.tour__hotspot h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.tour__hotspot .mono { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; }
.tour__hotspot p:last-child { color: var(--muted); font-size: 0.94rem; }
.hotspot-card__close { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.tour__timeline { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; padding: 14px; border-top: 1px solid var(--ink-line); background: var(--ink-2); }
.tour__dates { display: flex; gap: 0; overflow-x: auto; position: relative; }
.tour__dates::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-line); }
.tdate { position: relative; display: grid; gap: 2px; text-align: left; padding: 8px 18px 8px 0; margin-right: 8px; background: var(--ink-2); border: 0; color: var(--muted-ink); cursor: pointer; }
.tdate .mono { display: inline-flex; align-items: center; gap: 8px; }
.tdate .mono::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.tdate small { font-size: 0.74rem; padding-left: 17px; }
.tdate.is-on { color: var(--white); }
.tdate.is-on .mono::before { border-color: var(--red); background: var(--red); }
.tdate:disabled { opacity: 0.3; cursor: not-allowed; }
.tour__stations { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tstation { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--ink-line); background: transparent; color: var(--muted-ink); cursor: pointer; font-size: 0.86rem; }
.tstation.is-on { color: var(--white); border-color: var(--white); }
.tstation:not(.is-on) .station { border-color: var(--muted-ink); }
.tstation:not(.is-on) .station > span { background: var(--muted-ink); }
.tour.is-failed .tour__view::after { content: 'Prohlídka potřebuje WebGL.'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-ink); }
@media (max-width: 640px) {
  .tour__view { height: 70vh; }
  .tour__plan { width: 46%; right: 8px; bottom: 8px; }
  .tour__top { left: 8px; right: 8px; top: 8px; flex-direction: column; }
  .tour__timeline { grid-template-columns: 1fr; }
  .vgroup--range input { width: 110px; }
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 13, 14, 0.96); color: var(--white); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox__bar { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.lightbox__close { width: 44px; height: 44px; border: 1px solid var(--ink-line); background: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }
.lightbox__stage { position: absolute; inset: 64px 20px 44px; display: grid; place-items: center; overflow: hidden; cursor: grab; touch-action: none; }
.lightbox__stage img { max-width: 100%; max-height: 100%; background: var(--paper); transform-origin: center; user-select: none; -webkit-user-drag: none; }
.lightbox__hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted-ink); }

/* ── Aplikace (podstránka) ────────────────────────────────────────────────── */
.app-detail__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.app-detail .lead { margin: 24px 0 16px; max-width: 52ch; }
.app-detail p:not(.lead):not(.mono) { color: var(--muted); max-width: 56ch; }
.app-detail .checks { margin-top: 28px; }
.app-id { display: flex; gap: 20px; align-items: center; }
.app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35); }
.app-id .mono { color: var(--muted); margin-bottom: 6px; }
.app-detail__shots { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.app-detail__shots img { width: 100%; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13, 13, 14, 0.4); }
.app-detail__shots img:nth-child(n+2) { width: calc(50% - 8px); display: inline-block; }
.app-detail__shots { grid-template-columns: 1fr 1fr; }
.app-detail__shots img:first-child { grid-column: 1 / -1; }
.app-detail__shots img:nth-child(n+2) { width: 100%; }
.app-detail__shots--svg img { background: var(--white); padding: 12px; }
.app-light { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); }
.app-light a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.badge-beta { background: var(--red); color: var(--white); padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 900px) { .app-detail__grid { grid-template-columns: 1fr; } .app-detail__shots { position: static; } }

/* ── Studio ───────────────────────────────────────────────────────────────── */
.company__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.company__data { border-top: 1px solid var(--line-strong); font-size: 0.92rem; }
.company__data div { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company__data dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; padding-top: 2px; }
@media (max-width: 760px) { .company__grid { grid-template-columns: 1fr; } }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.notfound { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--ink); color: var(--white); padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; }
.notfound__scene { position: absolute; inset: 0; }
.notfound .wrap { position: relative; }
.notfound .lead { margin-bottom: 32px; }

/* ── Odhalování při posunu ────────────────────────────────────────────────── */
/* Skryté jen když běží JS; kdyby se skript nenačetl, obsah se po chvíli ukáže sám. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js:not(.site-ready) [data-reveal] { animation: fade 0.6s 2.5s both; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; } }

@media print {
  .site-header, .site-footer, .contact, .pipeline, .hero__canvas, .module-nav { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
