/* ============================================================
   Ľubomír Miča — v3 "Expressive Contemporary Gallery"
   dark/light · Syne + Instrument Serif + Space Grotesk
   ============================================================ */

:root {
  --bg: #F4EEE2;              /* teplý papier — podklad z tvorby */
  --bg2: #EBE3D0;
  --surface: #FBF7F0;
  --surface2: #F0E8D8;
  --ink: #191512;             /* tmavý umbra / atrament */
  --ink2: #4E483D;
  --muted: #857E6E;
  --line: rgba(25, 21, 18, .13);
  --line2: rgba(25, 21, 18, .28);
  --accent: #E3401F;          /* červený pigment — kadmiová červeň */
  --accent-soft: rgba(227, 64, 31, .14);
  --accent2: #1F5E8C;         /* ultramarínová modrá z diel */
  --accent2-soft: rgba(31, 94, 140, .13);
  --gold: #B98A1D;            /* zlatý detail — rámovač */
  --gold-soft: rgba(185, 138, 29, .14);
  --green: #2F6B4F;           /* vavrín — ocenenia */
  --green-soft: rgba(47, 107, 79, .14);
  --shadow: 0 24px 70px -28px rgba(25, 21, 18, .35);
  --glass: rgba(251, 247, 240, .78);
  --glow: radial-gradient(1200px 700px at 80% -10%, rgba(227, 64, 31, .15), transparent 60%);
  --ease: cubic-bezier(.22, .8, .26, 1);
  --font-d: "Syne", "Space Grotesk", sans-serif;
  --font-s: "Instrument Serif", Georgia, serif;
  --font-b: "Space Grotesk", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0E0C09;
  --bg2: #14110C;
  --surface: #17130E;
  --surface2: #1C1711;
  --ink: #F3ECDF;
  --ink2: #B9B09E;
  --muted: #7E776A;
  --line: rgba(243, 236, 223, .13);
  --line2: rgba(243, 236, 223, .28);
  --accent: #FF5A2E;
  --accent-soft: rgba(255, 90, 46, .16);
  --accent2: #6FA3D6;
  --accent2-soft: rgba(111, 163, 214, .16);
  --gold: #E0B64E;
  --gold-soft: rgba(224, 182, 78, .16);
  --green: #7FB587;
  --green-soft: rgba(127, 181, 135, .16);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75);
  --glass: rgba(22, 19, 15, .72);
  --glow: radial-gradient(1200px 700px at 80% -10%, rgba(255, 90, 46, .2), transparent 60%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .45s var(--ease), color .45s var(--ease);
}

::selection { background: var(--accent); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- utilities ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; position: relative; }
.section--tint { background: var(--bg2); }
.section--card { background: var(--surface); }

.mono { font-family: var(--font-b); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }

.serif { font-family: var(--font-s); font-weight: 400; font-style: italic; }

.tnum, .stat b, .year-big, .yeartab, .lb-count, .lb-cap small, .grid-meta b, .sec-num, .cat-count { font-variant-numeric: tabular-nums; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.sec-num { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sec-num::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.sec-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.02em; margin-top: 14px; }
.sec-title em { font-family: var(--font-s); font-weight: 400; font-style: italic; color: var(--accent); }
.sec-side { max-width: 360px; color: var(--ink2); font-size: 15px; }
.sec-side a { color: var(--accent); }

/* ---------- grain ---------- */
.grain { position: fixed; inset: 0; z-index: 1400; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); }

/* ---------- progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); z-index: 1300; }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: transform .7s var(--ease), visibility .7s; }
.preloader.done { transform: translateY(-100%); visibility: hidden; }
.pre-word { font-family: var(--font-d); font-weight: 800; font-size: clamp(40px, 8vw, 90px); letter-spacing: -.03em; line-height: 1; }
.pre-word em { font-family: var(--font-s); font-style: italic; font-weight: 400; color: var(--accent); }
.pre-bar { width: min(320px, 70vw); height: 2px; background: var(--line); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.pre-num { font-size: 12px; letter-spacing: .3em; color: var(--muted); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform; }
.cursor-dot { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid var(--line2); transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s; }
.cursor-ring.is-on { width: 62px; height: 62px; border-color: var(--accent); background: var(--accent-soft); }
.cursor-ring.has-label { width: 96px; height: 96px; background: var(--accent); border-color: var(--accent); }
.cursor-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor-ring.has-label .cursor-label { opacity: 1; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s, box-shadow .4s; }
.site-header.scrolled { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .18); }
.h-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.logo { display: flex; flex-direction: column; line-height: 1.05; }
.logo-mark { font-family: var(--font-d); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.logo-mark em { font-family: var(--font-s); font-style: italic; font-weight: 400; color: var(--accent); }
.logo-tag { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h-nav { display: flex; align-items: center; gap: 4px; }
.h-nav a { position: relative; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--ink2); letter-spacing: .02em; white-space: nowrap; transition: color .25s; }
.h-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.h-nav a:hover, .h-nav a.active { color: var(--ink); }
.h-nav a:hover::after, .h-nav a.active::after { transform: scaleX(1); }
/* posledná položka menu = výrazné tlačidlo (Na predaj) */
.h-nav a.nav-cta { background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 20px; margin-left: 8px; }
.h-nav a.nav-cta::after { display: none; }
.h-nav a.nav-cta:hover, .h-nav a.nav-cta.active { color: #fff; background: var(--accent); box-shadow: 0 12px 30px -12px var(--accent); }
/* „3D prehliadka“ — „3D“ farebné (nowrap majú už všetky položky menu) */
.n3d { font-style: normal; background: linear-gradient(90deg, var(--accent2) 0%, var(--gold) 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-right { display: flex; align-items: center; gap: 12px; }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: border-color .25s, transform .3s var(--ease); }
.theme-btn:hover { border-color: var(--accent); transform: rotate(18deg) scale(1.06); }
.theme-btn svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.burger { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); display: none; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 1150; background: var(--bg); display: flex; flex-direction: column; padding: 110px 32px 40px; gap: 4px; transform: translateY(-100%); transition: transform .55s var(--ease); overflow: auto; }
.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-d); font-weight: 700; font-size: clamp(30px, 8vw, 46px); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.mobile-menu a.active em, .mobile-menu a.active { color: var(--accent); }
.mobile-menu a.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start; margin-top: 18px; padding: 14px 34px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: clamp(18px, 5vw, 24px); box-shadow: 0 16px 40px -14px var(--accent); }
.mobile-menu a.nav-cta:hover, .mobile-menu a.nav-cta.active { color: #fff; }

@media (max-width: 1150px) {
  .h-nav { display: none; }
  .burger { display: grid; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}
/* stredné šírky: 11 položiek menu + CTA tlačidlo sa kompaktne zmestia (do 1400px,
   aby sa pri 1201–1280px nelámali položky na dva riadky — wrap je max 1280px) */
@media (max-width: 1400px) {
  .h-nav { gap: 0; }
  .h-nav a { padding: 10px 8px; font-size: 12px; }
  .h-nav a.nav-cta { padding: 10px 14px; margin-left: 4px; }
  .logo-mark { font-size: 20px; }
  .h-inner { gap: 14px; }
}

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 14.5px; letter-spacing: .04em; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; will-change: transform; }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 34px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px var(--accent); }
.btn-ghost { border: 1.5px solid var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 150px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(244, 238, 226, .72) 55%, rgba(244, 238, 226, .18) 78%, transparent 100%), linear-gradient(to top, var(--bg) 0%, transparent 26%); pointer-events: none; }
[data-theme="dark"] .hero::after { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(14, 12, 9, .72) 55%, rgba(14, 12, 9, .16) 80%, transparent 100%), linear-gradient(to top, var(--bg) 0%, transparent 26%); }

.hero-bg { position: absolute; inset: 0; background-image: url("../img/studio-2.jpg"); background-size: cover; background-position: center 30%; opacity: .22; mix-blend-mode: multiply; pointer-events: none; }
[data-theme="dark"] .hero-bg { opacity: .28; mix-blend-mode: screen; }

.canvas-grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23c)' opacity='1'/%3E%3C/svg%3E"); }
.canvas-grain::after { content: ""; position: absolute; inset: 0; opacity: .4;
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(25, 21, 18, .02) 2px 3px), repeating-linear-gradient(0deg, transparent 0 2px, rgba(25, 21, 18, .02) 2px 3px); }

.hero--sep { border-bottom: 1px solid var(--line); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; animation: blobFloat 14s ease-in-out infinite alternate; }
.blob--a { width: 480px; height: 480px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -120px; right: -80px; }
.blob--b { width: 360px; height: 360px; background: radial-gradient(circle, var(--accent2), transparent 70%); bottom: -60px; left: -60px; animation-delay: -5s; }
@keyframes blobFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.15); } }

.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink2); font-weight: 700; }
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--accent); }
.hero-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(58px, 10.5vw, 132px); line-height: .92; letter-spacing: -.035em; margin: 26px 0 28px; }
.hero-title i { font-style: normal; }
.hero-title .l2 { display: block; font-family: var(--font-s); font-style: italic; font-weight: 400; color: var(--accent); }
.hero-title .line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-title.in .line > span { transform: translateY(0); transition: transform .85s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.hero-sub { max-width: 460px; color: var(--ink2); font-size: 17px; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 46px; margin-top: 54px; flex-wrap: wrap; }
.stat b { font-family: var(--font-d); font-weight: 800; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.02em; display: block; line-height: 1; }
.stat b sup { font-size: .55em; color: var(--accent); }
.stat span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; z-index: 2; }
.hero-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.6deg); transition: transform .6s var(--ease); }
  .hero-frame img, .projgrid figure img, .split figure img { cursor: zoom-in; }
.hero-frame:hover { transform: rotate(0deg) scale(1.015); }
.hero-frame img { width: 100%; height: min(68vh, 620px); object-fit: cover; object-position: center top; }
.hero-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; pointer-events: none; }
.hero-cap { margin-top: 16px; margin-left: 4px; font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }
.hero-badge { position: absolute; top: -34px; right: -16px; width: 128px; height: 128px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; animation: spin 18s linear infinite; box-shadow: var(--shadow); z-index: 3; }
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinR 18s linear infinite; }
.hero-badge svg text { font-family: var(--font-b); font-size: 8.2px; font-weight: 700; letter-spacing: 2.2px; fill: var(--bg); text-transform: uppercase; }
.hero-badge i { position: absolute; font-style: normal; font-size: 26px; color: var(--accent); font-weight: 800; font-family: var(--font-d); animation: spinR 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinR { to { transform: rotate(-360deg); } }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; position: relative; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 3vw, 30px); letter-spacing: .02em; padding: 0 26px; white-space: nowrap; text-transform: uppercase; }
.marquee-track em { font-family: var(--font-s); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cat cards ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.07); }
.cat-media .chip { position: absolute; top: 16px; left: 16px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--line2); padding: 7px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.cat-media .cat-title { position: absolute; left: 16px; bottom: 16px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--line2); color: var(--ink); font-family: var(--font-d); font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; padding: 8px 16px; border-radius: 12px; }
.cat-body { display: block; padding: 26px 26px 30px; }
.cat-no { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.cat-name { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); margin: 10px 0 4px; letter-spacing: -.02em; }
.cat-sub { display: block; color: var(--ink2); font-size: 14.5px; margin-bottom: 16px; }
.cat-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.cat-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.cat-go { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.cat-card:hover .cat-go { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }

/* ---------- pills / filters ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line2); font-weight: 600; font-size: 14px; color: var(--ink2); transition: all .3s var(--ease); }
.pill small { font-size: 11px; color: var(--muted); background: var(--line); border-radius: 999px; padding: 2px 9px; transition: inherit; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.active small { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- year tabs ---------- */
.yeartabs { position: sticky; top: 78px; z-index: 1050; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 12px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .25); }
.yeartab { padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink2); transition: all .3s var(--ease); }
.yeartab small { font-size: 11px; color: var(--muted); margin-left: 8px; }
.yeartab:hover { border-color: var(--accent); color: var(--accent); }
.yeartab.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.yeartab.active small { color: inherit; opacity: .6; }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.work { position: relative; cursor: pointer; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.work-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.work:hover .work-media img { transform: scale(1.08); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 42%); opacity: 0; transition: opacity .4s; }
.work:hover .work-media::after { opacity: 1; }
.work-view { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 11px 20px; border-radius: 999px; opacity: 0; transition: all .35s var(--ease); z-index: 2; }
.work:hover .work-view { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-cap { padding: 16px 18px 20px; }
.work-title { font-weight: 700; font-size: 15.5px; line-height: 1.25; margin-bottom: 4px; }
.work-sub { font-size: 13px; color: var(--muted); }
.work-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.work-chip { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.grid-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.grid-meta b { color: var(--ink); }
.work-more { display: flex; align-items: center; gap: 10px; margin: 34px auto 0; padding: 15px 30px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--ink2); font-weight: 700; font-size: 14px; transition: all .3s var(--ease); }
.work-more:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- abstrakcia by years ---------- */
.abstr-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.abstr-intro .big-note { font-family: var(--font-s); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--ink2); margin: 20px 0 28px; }
.abstr-intro .big-note strong { color: var(--accent); font-weight: 400; }
.ytabs { display: flex; gap: 10px; }
.ytab { padding: 18px 30px; border-radius: 18px; border: 1px solid var(--line2); font-family: var(--font-d); font-weight: 800; font-size: 22px; display: flex; align-items: baseline; gap: 10px; transition: all .35s var(--ease); }
.ytab small { font-size: 12px; color: var(--muted); font-weight: 600; }
.ytab:hover { border-color: var(--accent); transform: translateY(-2px); }
.ytab.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 16px 40px -14px var(--accent); }
.ytab.active small { color: rgba(255, 255, 255, .8); }
.year-stage { min-height: 340px; }
.year-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.year-head { display: flex; align-items: center; gap: 14px; margin: 46px 0 20px; }
.year-big { font-family: var(--font-d); font-weight: 800; font-size: clamp(40px, 6vw, 70px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.year-big i { font-family: var(--font-s); font-style: normal; color: var(--accent); }
.year-line { flex: 1; height: 1px; background: var(--line2); }
.year-count { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- video cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vcard { text-align: left; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.vmedia { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vmedia img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.vcard:hover .vmedia img { transform: scale(1.06); }
.vplay { position: absolute; inset: 0; display: grid; place-items: center; }
.vplay i { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 77, 0, .92); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 18px; padding-left: 4px; transition: transform .35s var(--ease), background .3s; box-shadow: 0 12px 30px -8px rgba(255, 77, 0, .7); }
.vcard:hover .vplay i { transform: scale(1.12); background: var(--accent); }
.vbody { padding: 18px 20px 22px; }
.vyear { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.vtitle { font-weight: 700; font-size: 16.5px; margin: 6px 0 2px; }
.vwhere { font-size: 13px; color: var(--muted); }
.vcard--feature { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 22px; overflow: hidden; width: 100%; }
.vcard--feature .vmedia { aspect-ratio: 16 / 9; }
.vc-info { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--surface); border-left: 1px solid var(--line); }
.vc-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; }
.vc-title em { font-family: var(--font-s); font-style: italic; font-weight: 400; color: var(--accent); }
.vc-desc { color: var(--ink2); font-size: 15.5px; line-height: 1.7; }
.vc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- video timeline ---------- */
.vtimeline { position: relative; margin-bottom: 40px; padding: 14px 0 6px; overflow: hidden; }
.vt-axis { position: relative; height: 92px; margin: 0 48px; }
.vt-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--line2), var(--accent), var(--line2)); }
.vt-node { position: absolute; top: 8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; width: 74px; padding: 0; background: none; border: 0; cursor: pointer; }
.vt-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line2); transition: all .3s var(--ease); }
.vt-node:hover .vt-dot { border-color: var(--accent); transform: scale(1.15); }
.vt-node.active .vt-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.vt-year { font-family: var(--font-d); font-weight: 800; font-size: 13px; color: var(--ink2); transition: color .25s; }
.vt-node:hover .vt-year, .vt-node.active .vt-year { color: var(--accent); }
.vt-count { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--line); border-radius: 999px; padding: 2px 8px; transition: all .3s var(--ease); }
.vt-node.active .vt-count { background: var(--accent); color: #fff; }
@media (max-width: 920px) {
  .vtimeline { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
  .vtimeline::-webkit-scrollbar { display: none; }
  .vt-axis { min-width: 800px; margin: 0 48px; }
  .vt-year { font-size: 12px; }
}

/* ---------- split / editorial ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.split-intro { position: sticky; top: 110px; }
.label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-bottom: 18px; }
.pullquote { font-family: var(--font-s); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: var(--ink); }
.pullquote .qmark { color: var(--accent); }
.split-body p { margin-bottom: 18px; color: var(--ink2); }
.split-body p strong { color: var(--ink); }
.byline { display: block; margin-top: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.split-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.split figure { margin: 28px 0 0; }
.split figure img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.split figure figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.author-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.author-badge::before { content: "✦"; font-size: 11px; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line2); }
.tl-item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 30px; padding: 20px 0 20px 26px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 32px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); }
.tl-year { font-family: var(--font-d); font-weight: 800; font-size: 26px; color: var(--accent); }
.tl-body h3 { font-family: var(--font-d); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.tl-body p { color: var(--ink2); margin-top: 6px; font-size: 15px; }

/* ---------- multi-axis timeline (výstavy) ---------- */
.tl-axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.tl-lane { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 26px 22px 20px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.tl-lane:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lane-c); }
.tl-lane-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.tl-lane-no { width: 42px; height: 42px; border-radius: 12px; background: var(--lane-soft); color: var(--lane-c); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.tl-lane-name { font-family: var(--font-d); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.tl-lane-count { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.tl-lane-body { position: relative; margin-top: 16px; padding-left: 20px; }
.tl-lane-body::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, var(--lane-c), var(--line2)); }
.tl-lane .tl-item { position: relative; padding: 12px 0 12px 18px; grid-template-columns: 1fr; gap: 6px; }
.tl-lane .tl-item::before { content: ""; position: absolute; left: -22px; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--lane-c); transition: background .25s, transform .25s; }
.tl-lane .tl-item:hover::before { background: var(--lane-c); transform: scale(1.25); }
.tl-lane .tl-year { font-family: var(--font-d); font-weight: 800; font-size: 18px; color: var(--lane-c); }
.tl-lane .tl-body h3 { font-family: var(--font-d); font-weight: 700; font-size: 14.5px; line-height: 1.4; letter-spacing: -.01em; }
.tl-lane .tl-body h3 + h3 { margin-top: 8px; }
.tl-lane .tl-body p { color: var(--ink2); margin-top: 3px; font-size: 12.5px; line-height: 1.5; }
.tl-lane .tl-item { animation: tlIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes tlIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.tl-hidden { display: none; }
.tl-more { display: flex; align-items: center; gap: 8px; margin: 8px auto 0; padding: 10px 20px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--ink2); font-weight: 700; font-size: 13px; transition: all .3s var(--ease); }
.tl-more:hover { border-color: var(--lane-c); color: var(--lane-c); }
.tl-more .arr { display: inline-block; transition: transform .3s var(--ease); }
.tl-more:hover .arr { transform: translateY(3px); }
.tl-more small { font-size: 11px; color: var(--muted); font-weight: 600; }

@media (max-width: 1100px) {
  .tl-axes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tl-axes { grid-template-columns: 1fr; }
}

/* ---------- accordion lists ---------- */
.vlist { display: flex; flex-direction: column; gap: 14px; }
.vl-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; transition: border-color .3s; }
.vl-item[open] { border-color: var(--accent); }
.vl-item summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 24px 28px; cursor: pointer; font-weight: 700; font-size: 17px; transition: color .25s; }
.vl-item summary::-webkit-details-marker { display: none; }
.vl-item summary:hover { color: var(--accent); }
.vl-no { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.vl-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.vl-go { transition: transform .35s var(--ease); color: var(--accent); font-size: 20px; font-weight: 400; }
.vl-item[open] .vl-go { transform: rotate(45deg); }
.vl-body { padding: 4px 28px 26px 86px; }
.vl-body p { padding: 7px 0; color: var(--ink2); font-size: 15px; border-bottom: 1px dashed var(--line); }
.vl-body p:last-child { border-bottom: 0; }
.vl-body b { color: var(--ink); font-weight: 700; }

/* ---------- contact ---------- */
.contact-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.contact-main, .contact-aside { display: flex; flex-direction: column; gap: 26px; }
.contact-card { border: 1px solid var(--line); border-radius: 20px; padding: 34px; background: var(--surface); min-width: 0; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.contact-card--big { position: relative; overflow: hidden; }
.contact-card--big::after { content: ""; position: absolute; inset: auto -60px -90px auto; width: 240px; height: 240px; border-radius: 50%; background: var(--accent-soft); filter: blur(60px); pointer-events: none; }
.c-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.c-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-big { font-family: var(--font-d); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; margin: 14px 0 20px; }
.cc-big a { transition: color .25s; overflow-wrap: anywhere; word-break: break-word; }
.cc-big a:hover { color: var(--accent); }
.cc-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.cc-visit { margin-top: 6px; padding-top: 20px; border-top: 1px dashed var(--line); color: var(--ink2); font-size: 15px; line-height: 1.6; }
.cc-visit strong { color: var(--ink); }
.cc-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
/* mapa */
.cmap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); line-height: 0; box-shadow: var(--shadow); background: var(--surface); }
.cmap iframe { width: 100%; height: 360px; border: 0; filter: saturate(.85); }
/* formulár */
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform[hidden] { display: none; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cf-field input, .cf-field textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted); opacity: .7; }
.cf-submit { justify-content: center; }
.cf-done { text-align: center; padding: 20px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cf-done[hidden] { display: none; }
.cf-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.cf-done h3 { font-family: var(--font-d); font-weight: 800; font-size: 24px; }
.cf-done p { color: var(--ink2); font-size: 15px; max-width: 320px; }
.cf-back { margin-top: 4px; }
/* karty v rade */
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
/* mobil — kontakt */
@media (max-width: 560px) {
  .contact-card { padding: 26px 22px; }
  .contact-row { grid-template-columns: 1fr; }
  .cc-actions { flex-direction: column; align-items: stretch; }
  .cc-actions .btn { justify-content: center; }
  .cmap iframe { height: 280px; }
}

/* ---------- sale (na predaj) ---------- */
.sale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sale-card { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.sale-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent); }
.sale-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface2); }
.sale-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; cursor: zoom-in; }
.sale-card:hover .sale-media img { transform: scale(1.06); }
.sale-status { position: absolute; top: 14px; left: 14px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line2); color: var(--ink); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 999px; z-index: 2; }
.sale-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sale-kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sale-title { font-family: var(--font-d); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.sale-desc { color: var(--ink2); font-size: 14.5px; line-height: 1.6; flex: 1; }
.sale-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--line); }
.sale-price { font-family: var(--font-d); font-weight: 800; font-size: 22px; color: var(--accent); white-space: nowrap; }
.sale-btn { padding: 13px 22px; font-size: 13.5px; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 30px 30px 34px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent2); }
.how-no { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 18px; }
.how-title { font-family: var(--font-d); font-weight: 800; font-size: 20px; margin: 18px 0 8px; letter-spacing: -.01em; }
.how-text { color: var(--ink2); font-size: 14.5px; line-height: 1.65; }

@media (max-width: 1100px) {
  .sale-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sale-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .sale-grid { grid-template-columns: 1fr; }
  .sale-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sale-btn { width: 100%; justify-content: center; }
}

/* ---------- projects ---------- */
.projgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.projgrid figure { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; }
.projgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.projgrid figure:hover img { transform: scale(1.07); }
.projgrid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 13.5px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.f-splashes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.f-splashes svg { position: absolute; width: 190px; height: 190px; overflow: visible; opacity: 1; }
.fs--a { top: 3%; left: 3%; transform: rotate(-16deg); }
.fs--b { top: 1%; right: 5%; transform: rotate(12deg) scale(1.15); }
.fs--c { bottom: 12%; left: 8%; transform: rotate(24deg) scale(1.1); }
.fs--d { bottom: 6%; right: 2%; transform: rotate(-10deg); }
.fs--e { top: 38%; left: 26%; transform: rotate(8deg) scale(.9); opacity: .9; }
.fs--f { top: 34%; right: 24%; transform: rotate(-14deg) scale(.9); opacity: .9; }
@media (max-width: 760px) { .f-splashes svg { width: 120px; height: 120px; opacity: .9; } .fs--c { bottom: 20%; left: 5%; } .fs--d { bottom: 4%; right: 1%; } .fs--e, .fs--f { display: none; } }
.f-word { font-family: "Permanent Marker", cursive; font-weight: 400; font-size: clamp(84px, 16vw, 230px); line-height: .95; letter-spacing: .05em; text-align: center; padding: 74px 20px 34px; user-select: none; color: transparent; -webkit-text-fill-color: transparent; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1400'%20height%3D'300'%3E%3Cdefs%3E%3Cfilter%20id%3D'br'%20x%3D'-20%25'%20y%3D'-20%25'%20width%3D'140%25'%20height%3D'140%25'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.012%200.085'%20numOctaves%3D'3'%20seed%3D'7'%20result%3D'n'%2F%3E%3CfeDisplacementMap%20in%3D'SourceGraphic'%20in2%3D'n'%20scale%3D'30'%20xChannelSelector%3D'R'%20yChannelSelector%3D'G'%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D'url(%23br)'%20fill%3D'none'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'M-30%2C52%20Q120%2C30%20290%2C50%20T560%2C44%20T830%2C54%20T1100%2C46%20T1430%2C52'%20stroke%3D'%23E3401F'%20stroke-width%3D'40'%2F%3E%3Cpath%20d%3D'M-30%2C108%20Q160%2C86%20350%2C108%20T640%2C100%20T930%2C112%20T1220%2C102'%20stroke%3D'%231F5E8C'%20stroke-width%3D'32'%2F%3E%3Cpath%20d%3D'M-30%2C166%20Q150%2C144%20340%2C166%20T640%2C156%20T940%2C170%20T1240%2C160'%20stroke%3D'%23B98A1D'%20stroke-width%3D'34'%2F%3E%3Cpath%20d%3D'M-30%2C224%20Q190%2C204%20400%2C226%20T720%2C216%20T1020%2C230%20T1320%2C220'%20stroke%3D'%23A89C85'%20stroke-width%3D'28'%2F%3E%3Cpath%20d%3D'M-30%2C262%20Q140%2C248%20320%2C264%20T620%2C256%20T920%2C268'%20stroke%3D'%23E3401F'%20stroke-width%3D'14'%2F%3E%3C%2Fg%3E%3Cg%20filter%3D'url(%23br)'%3E%3Ccircle%20cx%3D'230'%20cy%3D'42'%20r%3D'6'%20fill%3D'%23E3401F'%2F%3E%3Ccircle%20cx%3D'520'%20cy%3D'178'%20r%3D'5'%20fill%3D'%23B98A1D'%2F%3E%3Ccircle%20cx%3D'765'%20cy%3D'88'%20r%3D'7'%20fill%3D'%231F5E8C'%2F%3E%3Ccircle%20cx%3D'1055'%20cy%3D'202'%20r%3D'6'%20fill%3D'%23E3401F'%2F%3E%3Ccircle%20cx%3D'1295'%20cy%3D'152'%20r%3D'5'%20fill%3D'%23B98A1D'%2F%3E%3Ccircle%20cx%3D'385'%20cy%3D'252'%20r%3D'6'%20fill%3D'%231F5E8C'%2F%3E%3Ccircle%20cx%3D'700'%20cy%3D'252'%20r%3D'5'%20fill%3D'%23A89C85'%2F%3E%3Ccircle%20cx%3D'985'%20cy%3D'262'%20r%3D'7'%20fill%3D'%23B98A1D'%2F%3E%3Ccircle%20cx%3D'150'%20cy%3D'120'%20r%3D'4'%20fill%3D'%23E3401F'%2F%3E%3Ccircle%20cx%3D'1250'%20cy%3D'64'%20r%3D'4'%20fill%3D'%231F5E8C'%2F%3E%3Cellipse%20cx%3D'600'%20cy%3D'246'%20rx%3D'4'%20ry%3D'9'%20fill%3D'%23E3401F'%2F%3E%3Cellipse%20cx%3D'880'%20cy%3D'252'%20rx%3D'3.5'%20ry%3D'8'%20fill%3D'%231F5E8C'%2F%3E%3Cellipse%20cx%3D'1145'%20cy%3D'240'%20rx%3D'4'%20ry%3D'10'%20fill%3D'%23B98A1D'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); -webkit-background-clip: text; background-clip: text; background-size: cover; background-repeat: no-repeat; background-position: center; filter: url(#brushFilter); transform: rotate(-1.6deg); transition: opacity .4s var(--ease); opacity: .95; }
.f-word em { font-style: normal; -webkit-text-fill-color: var(--accent); }
.f-word:hover { opacity: 1; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 50px 0; border-top: 1px solid var(--line); }
.f-brand p { color: var(--ink2); max-width: 320px; margin: 14px 0 20px; font-size: 15px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 50%; display: grid; place-items: center; font-size: 12px; letter-spacing: .06em; font-weight: 700; transition: all .3s var(--ease); }
.f-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.f-h { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.f-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.f-links a, .f-contact p, .f-contact a { font-size: 14.5px; color: var(--ink2); transition: color .25s, transform .25s; display: inline-block; }
.f-links a:hover, .f-contact a:hover { color: var(--accent); transform: translateX(3px); }
.f-contact p { display: block; margin-bottom: 8px; }
.f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.f-bottom a { color: var(--ink2); }
.f-bottom a:hover { color: var(--accent); }
.f-credit { display: inline-flex; align-items: center; gap: 10px; color: var(--ink2); }
.f-credit::before, .f-credit::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.f-credit b { color: var(--accent); font-weight: 700; }
.f-bottom span:last-child { text-align: right; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1800; background: rgba(8, 7, 5, .93); backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 20px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-imgwrap { max-width: 100%; max-height: 100%; width: 100%; height: 100%; display: grid; place-items: center; }
.lb-imgwrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: lbIn .45s var(--ease); }
@media (max-width: 560px) { .lightbox { padding: 10px; } }
@keyframes lbIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-cap { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); text-align: center; color: #EDE6D8; max-width: 80vw; }
.lb-cap b { font-family: var(--font-d); font-size: 18px; font-weight: 700; }
.lb-cap small { display: block; margin-top: 4px; color: rgba(237, 230, 216, .6); font-size: 13px; }
.lb-count { position: absolute; right: 30px; top: 26px; color: rgba(237, 230, 216, .55); font-size: 13px; letter-spacing: .2em; font-weight: 600; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 22px; display: grid; place-items: center; transition: all .3s var(--ease); z-index: 5; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 26px; right: 30px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- video modal ---------- */
.vmodal { position: fixed; inset: 0; z-index: 1800; background: rgba(8, 7, 5, .93); backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 30px; }
.vmodal.open { opacity: 1; visibility: visible; }
.vmodal-box { width: min(1000px, 94vw); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.vmodal-box iframe { width: 100%; height: 100%; border: 0; }
.v-cap { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(237, 230, 216, .7); font-size: 14px; max-width: 84vw; text-align: center; }

/* ---------- back to top ---------- */
.back-top { position: fixed; right: 26px; bottom: 26px; z-index: 1100; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 1px solid var(--line2); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .4s var(--ease); }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .projgrid { grid-template-columns: repeat(2, 1fr); }
  .abstr-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 130px; }
  .hero::after { background: linear-gradient(to top, var(--bg) 0%, transparent 22%), linear-gradient(180deg, rgba(244, 238, 226, .1), rgba(244, 238, 226, .05)); }
  [data-theme="dark"] .hero::after { background: linear-gradient(to top, var(--bg) 0%, transparent 22%), linear-gradient(180deg, rgba(14, 12, 9, .1), rgba(14, 12, 9, .05)); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-frame img { height: 52vh; }
  .hero-badge { width: 104px; height: 104px; top: -20px; right: 0; }
  .hero-badge span { width: 104px; height: 104px; }
  .hero-badge i { font-size: 22px; }
  .cats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-intro { position: static; }
  .f-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard--feature { grid-template-columns: 1fr; }
  .vc-info { padding: 26px; border-left: 0; border-top: 1px solid var(--line); }
  .year-row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .vl-body { padding: 4px 20px 22px; }
  /* year tabs → horizontálny posúvateľný rad (nemrhať výškou mriežkou) */
  .yeartabs { display: flex; flex-wrap: nowrap; gap: 8px; padding: 10px 12px; margin-bottom: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 12px), transparent 100%); }
  .yeartabs::-webkit-scrollbar { display: none; }
  .yeartab { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 15px; font-size: 13px; white-space: nowrap; scroll-snap-align: start; border-radius: 999px; }
  .yeartab small { font-size: 10.5px; margin-left: 5px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .contact-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .projgrid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 56px); letter-spacing: -.03em; }
  .yeartabs { padding: 8px 10px; margin-bottom: 14px; }
  .yeartab { padding: 8px 13px; font-size: 12.5px; }
  .yeartab small { margin-left: 4px; font-size: 10px; }
}

/* ---------- prístupnosť: viditeľný focus pre klávesnicu ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* pri formulárových poliach zachovať jemnejší focus cez border+shadow (nie duplicitný outline) */
.cf-field input:focus-visible, .cf-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   v3.37 — vizuálny balík: masonry, blur-up, hero rotácia,
   lightbox zoom/swipe, sun/moon morph, shuffle, tilt, scroll
   ============================================================ */

/* ---------- masonry work grid ---------- */
.grid { display: block; columns: 4; column-gap: 22px; }
.grid--3 { columns: 3; }
.grid .work { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 22px; }
@media (max-width: 1100px) { .grid { columns: 3; } }
@media (max-width: 860px)  { .grid { columns: 2; } }
@media (max-width: 560px)  { .grid { columns: 1; } }

/* ---------- blur-up (vykreslenie z thumbu do plnej) ---------- */
.work-media img { filter: blur(18px) saturate(1.15); transform: scale(1.08); transition: filter .8s var(--ease), transform 1.1s var(--ease); }
.work-media img.loaded { filter: blur(0) saturate(1); transform: scale(1); }

/* ---------- hero: crossfade + dots ---------- */
.hero-frame img { transition: opacity .65s var(--ease), transform .6s var(--ease); }
.hero-frame img.hf-out { opacity: 0; }
.hero-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hd-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.25); padding: 0; cursor: pointer; transition: width .35s var(--ease), background .35s, border-color .35s; }
.hd-dot.on { width: 26px; background: var(--accent); border-color: var(--accent); }

/* ---------- hero: scroll indikátor ---------- */
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll span { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.hero-scroll i { width: 1.5px; height: 38px; border-radius: 2px; background: var(--line2); position: relative; overflow: hidden; display: block; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--accent); animation: heroScrollDrop 1.9s var(--ease) infinite; }
@keyframes heroScrollDrop { 0% { top: -100%; } 55% { top: 100%; } 100% { top: 100%; } }
@media (max-width: 860px) { .hero-scroll { display: none; } }

/* ---------- sun / moon morph ---------- */
.theme-btn { position: relative; overflow: hidden; }
.theme-btn svg { position: absolute; inset: 0; margin: auto; width: 19px; height: 19px; transition: opacity .5s var(--ease), transform .65s var(--ease); }
.tb-sun svg, .tb-moon svg { opacity: 0; }
[data-theme="light"] .tb-sun svg { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .tb-moon svg { opacity: 0; transform: rotate(120deg) scale(.3); }
[data-theme="dark"] .tb-sun svg { opacity: 0; transform: rotate(-120deg) scale(.3); }
[data-theme="dark"] .tb-moon svg { opacity: 1; transform: rotate(0deg) scale(1); }

/* ---------- shuffle button (náhodné dielo) ---------- */
.grid-meta { justify-content: space-between; flex-wrap: wrap; }
.shuffle-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--ink2); font-weight: 700; font-size: 12.5px; letter-spacing: .05em; transition: all .3s var(--ease); cursor: pointer; }
.shuffle-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.shuffle-btn .die { font-size: 15px; line-height: 1; }

/* ---------- lightbox: pinch-zoom + swipe ---------- */
.lb-imgwrap { touch-action: none; cursor: zoom-in; }
.lb-imgwrap img { transform-origin: 50% 50%; will-change: transform; transition: transform .4s var(--ease); }
.lb-imgwrap:not(.lb-anim) img { transition: none; }

/* ---------- 3D galéria ---------- */
.g3d { position: relative; min-height: 82vh; background: var(--bg); overflow: hidden; }
.g3d-stage { position: absolute; inset: 0; cursor: grab; }
.g3d-stage:active { cursor: grabbing; }
.g3d-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.g3d-top { position: relative; z-index: 3; padding: 56px 28px 0; max-width: 720px; pointer-events: none; }
.g3d-top a, .g3d-top .btn { pointer-events: auto; }
.g3d-title { font-family: var(--font-d); font-size: clamp(34px, 6vw, 64px); line-height: 1; margin: 10px 0 14px; }
.g3d-title em { color: var(--accent); font-style: italic; }
.g3d-sub { color: var(--muted); max-width: 460px; margin-bottom: 18px; }
.g3d-back { font-size: 13.5px; }
.g3d-ui { position: absolute; z-index: 4; left: 0; right: 0; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; text-align: center; }
.g3d-loading { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line2); }
.g3d-meta { font-size: 12.5px; color: var(--muted); }
.g3d-hint { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease); font-size: 13.5px; color: var(--ink2); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(6px); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line2); }
.g3d-hint.show { opacity: 1; transform: translateY(0); }
.g3d-fs { pointer-events: auto; font: inherit; font-size: 12.5px; color: var(--ink2); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all .3s var(--ease); }
.g3d-fs:hover { color: var(--accent); border-color: var(--accent); }
/* kurátorské výstavy (chips) */
.g3d-chips { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.g3d-chip { font: inherit; font-size: 12.5px; color: var(--ink2); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: all .3s var(--ease); }
.g3d-chip:hover { color: var(--accent); border-color: var(--accent); }
.g3d-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* predajný chip — zlatý, výrazný */
.g3d-chip--sale { border-color: var(--gold); color: var(--gold); }
.g3d-chip--sale:hover { border-color: var(--accent); color: var(--accent); }
.g3d-chip--sale.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.g3d-fallback, .g3d-noscript { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; padding: 20px; }
.g3d-fallback[hidden] { display: none; }
.g3d-fallback p { color: var(--muted); margin: 0; }
.g3d-noscript { align-content: center; }
@media (max-width: 640px) {
  .g3d { min-height: max(92vh, 480px); }
  /* kompaktný top blok: titulok, popis a tlačidlo „Späť" nesmú kolidovať s UI dole */
  .g3d-top { padding: 56px 18px 0; }
  .g3d-title { font-size: clamp(28px, 8.5vw, 44px); margin: 6px 0 10px; }
  .g3d-sub { font-size: 13.5px; line-height: 1.45; margin-bottom: 14px; max-width: 92%; }
  .g3d-back { font-size: 12px; padding: 9px 16px; gap: 8px; }
  .g3d-ui { bottom: 14px; gap: 8px; }
  .g3d-meta { font-size: 12px; }
  /* hint na mobile je redundantný s popisom → kompaktnejší, len jedna linka */
  .g3d-hint { font-size: 11.5px; padding: 7px 14px; max-width: 94vw; line-height: 1.35; }
  .g3d-chip { font-size: 12px; padding: 5px 12px; }
  .g3d-fs { font-size: 12px; padding: 6px 14px; }
}

/* ---------- 3D galéria: header sa prispôsobuje téme stránky (dark/light) ----------
   Premenné sa preklopia podľa data-theme — vo svetlej téme rovnaké hodnoty ako
   pôvodné tvrdé farby, v tmavej téme tmavý sklenený header so svetlým textom. */
body.page-3d .site-header {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .18);
}
body.page-3d .logo-mark { color: var(--ink); }
body.page-3d .logo-mark em { color: var(--accent); }
body.page-3d .logo-tag { color: var(--muted); }
body.page-3d .h-nav a { color: var(--ink2); }
body.page-3d .h-nav a:hover, body.page-3d .h-nav a.active { color: var(--ink); }
body.page-3d .h-nav a.nav-cta { color: #fff; }
body.page-3d .h-nav a.nav-cta:hover, body.page-3d .h-nav a.nav-cta.active { color: #fff; }
body.page-3d .theme-btn { border-color: var(--line2); }
body.page-3d .theme-btn svg { stroke: var(--ink); }
body.page-3d .burger { border-color: var(--line2); }
body.page-3d .burger span, body.page-3d .burger span::before, body.page-3d .burger span::after { background: var(--ink); }
/* text nad scénou: čitateľný vždy — jemný scrim za textom (deň) aj tmavý (noc) */
body.page-3d .g3d::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 64%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 240, 228, .88) 0%, rgba(246, 240, 228, .5) 45%, transparent 100%);
}
body.page-3d .g3d-top .sec-num { color: #857E6E; }
body.page-3d .g3d-title { color: #191512; }
body.page-3d .g3d-title em { color: #E3401F; }
body.page-3d .g3d-sub { color: #4E483D; }
body.page-3d .g3d-meta { color: #4E483D; }
body.page-3d .g3d-back { color: #191512; background: rgba(251, 247, 240, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(25, 21, 18, .16); box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .4); }
body.page-3d .g3d-back:hover { color: #E3401F; border-color: #E3401F; background: rgba(255, 255, 255, .98); }
/* ---------- Vyskúšať v izbe (room preview) ---------- */ */
.room-btn { font-size: 13px; }
.room-modal { position: fixed; inset: 0; z-index: 1700; background: rgba(8, 7, 5, .8); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.room-modal.open { opacity: 1; visibility: visible; }
.rm-box { background: var(--bg); border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow); width: min(960px, 96vw); max-height: 92vh; overflow: auto; }
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 14px; border-bottom: 1px solid var(--line); }
.rm-title { font-family: var(--font-d); font-size: 26px; margin: 4px 0 2px; }
.rm-dims { color: var(--muted); font-size: 13px; margin: 0; }
.rm-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--ink); font-size: 16px; cursor: pointer; transition: all .3s var(--ease); flex: none; }
.rm-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.rm-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; padding: 22px 26px 26px; }
.rm-stage { border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #2a2620; display: grid; place-items: center; min-height: 260px; }
.rm-stage canvas { display: block; touch-action: none; cursor: move; max-width: 100%; }
.rm-stage canvas.rm-dragging { cursor: grabbing; }
.rm-panel { display: flex; flex-direction: column; gap: 14px; }
.rm-upload { font-size: 13.5px; width: 100%; }
.rm-samples { display: flex; gap: 8px; flex-wrap: wrap; }
.room-sample { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; color: var(--ink2); background: none; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .3s var(--ease); }
.room-sample:hover { border-color: var(--accent); color: var(--accent); }
.room-sample.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sw { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.sw--w { background: linear-gradient(135deg, #efe9dc, #d9d0bd); }
.sw--b { background: repeating-linear-gradient(0deg, #c2a98f 0 26px, #a98f76 26px 30px); }
.sw--d { background: linear-gradient(135deg, #8a6a4a, #6f5338); }
.rm-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.rm-field input[type="range"] { accent-color: var(--accent); }
.rm-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.rm-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.rm-export { font-size: 13.5px; }
.rm-tip { font-size: 12px; color: var(--muted); margin: 0; }
body.rm-lock { overflow: hidden; }
@media (max-width: 720px) {
  .rm-body { grid-template-columns: 1fr; padding: 16px; }
  .rm-head { padding: 18px 16px 12px; }
}
