/* ============================================================
   Filip · Óda na kávovar
   ============================================================ */
:root {
  --bg: #0c0806;
  --bg2: #140d09;
  --bg3: #1d130d;
  --ink: #f3e9dc;
  --ink2: rgba(243, 233, 220, 0.72);
  --ink3: rgba(243, 233, 220, 0.46);
  --line: rgba(243, 233, 220, 0.12);
  --gold: #d4a373;
  --gold2: #e8c79a;
  --gold3: #a8743f;
  --crema: #c8915a;
  --led: #ff3b30;
  --blue: #4aa3ff;
  --cold: #56b6ff;
  --hot: #ff8a3d;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #1a0f08; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 980px; }
.overline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.overline::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.overline .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; }
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.h2 em, .hero-title em { font-style: italic; color: var(--gold2); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0 0 14px; }
.sub { color: var(--ink2); max-width: 560px; font-size: clamp(16px, 1.2vw, 19px); margin: 0; }
.gold-text {
  background: linear-gradient(100deg, var(--gold2), var(--gold) 45%, var(--gold3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chip {
  padding: 10px 18px;
  border: 1px solid rgba(212, 163, 115, 0.45);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover, .chip:focus-visible { background: var(--gold); color: #1a0f08; border-color: var(--gold); }
.chip.ghost { border-color: var(--line); color: var(--ink2); }
.link-btn { text-decoration: underline; text-underline-offset: 4px; color: var(--ink3); font-size: 13px; }
.link-btn:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- preloader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 60%, #1f140d 0%, var(--bg) 60%);
  display: grid; place-items: center;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; padding: 24px; }
.loader-cup { width: 140px; height: 140px; margin: 0 auto 12px; overflow: visible; }
.loader-outline { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loader-steam path { fill: none; stroke: rgba(243, 233, 220, 0.5); stroke-width: 2; stroke-linecap: round; opacity: 0; }
#loader.full .loader-steam path { animation: steam 2.4s ease-in-out infinite; }
#loader.full .loader-steam path:nth-child(2) { animation-delay: 0.5s; }
#loader.full .loader-steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-14px); } }
.loader-msg { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 6px 0 2px; color: var(--ink); min-height: 1.4em; }
.loader-pct { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; margin: 0; }
.loader-start { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: fadeUp 1s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.loader-hint { margin: 0; color: var(--ink2); font-size: 15px; }
.loader-hint span { color: var(--gold); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-left: 6px; }
.pp-btn {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #26262a, #0b0b0c 70%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 6px rgba(212, 163, 115, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.pp-btn svg { width: 38px; fill: var(--ink); }
.pp-btn::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(212, 163, 115, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.pp-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(212, 163, 115, 0.14), 0 20px 60px rgba(0, 0, 0, 0.6); }

/* ---------- globální vrstvy ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
#aroma { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 210; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s; }
.has-cursor .cursor { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 7px; height: 7px; background: #f3e9dc; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid rgba(243, 233, 220, 0.85); transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s; }
.cursor.hover .cursor-ring { width: 64px; height: 64px; background: rgba(243, 233, 220, 0.12); }
@media (pointer: coarse) { .cursor { display: none; } }
/* běžná šipka se schová až ve chvíli, kdy vlastní kurzor opravdu běží */
.has-cursor, .has-cursor * { cursor: none !important; }

.cup-progress { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); width: 3px; height: 160px; background: var(--line); border-radius: 3px; z-index: 40; overflow: hidden; }
.cup-progress-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(to top, #3b2314, var(--crema)); border-radius: 3px; }
@media (max-width: 760px) { .cup-progress { display: none; } }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  pointer-events: none;
  transition: transform 0.5s var(--ease), background 0.5s;
}
.topbar > * { pointer-events: auto; }
.topbar.hide { transform: translateY(-110%); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: 0.01em; }
.logo small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink3); }
.logo-bean { width: 13px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #6b3f22, #2a170c); transform: rotate(28deg) translateY(1px); position: relative; align-self: center; }
.logo-bean::after { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1.5px; background: var(--gold); border-radius: 2px; transform: translateX(-50%) rotate(8deg); }
@media (max-width: 520px) { .logo small { display: none; } }
.topnav { display: flex; gap: 10px; align-items: center; }
.sound-btn, .menu-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(12, 8, 6, 0.4);
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.sound-btn span { width: 2px; height: 14px; background: var(--ink); border-radius: 2px; transform-origin: center; transform: scaleY(0.25); transition: transform 0.3s; }
.sound-btn.on span { animation: bars 1s ease-in-out infinite; }
.sound-btn.on span:nth-child(2) { animation-delay: 0.2s; } .sound-btn.on span:nth-child(3) { animation-delay: 0.4s; } .sound-btn.on span:nth-child(4) { animation-delay: 0.1s; }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.menu-btn { flex-direction: column; gap: 6px; }
.menu-btn span { width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
.menu-btn[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(12, 8, 6, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu ol { list-style: none; margin: 0; padding: 0 var(--gutter); columns: 2; column-gap: 8vw; }
@media (max-width: 760px) { .menu ol { columns: 1; } }
.menu li { break-inside: avoid; }
.menu a { display: flex; gap: 16px; align-items: baseline; text-decoration: none; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); font-weight: 300; line-height: 1.35; transition: color 0.3s, transform 0.4s var(--ease); }
.menu a i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--gold); letter-spacing: 0.15em; }
.menu a:hover { color: var(--gold2); transform: translateX(8px); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 8, 6, 0.86) 0%, rgba(12, 8, 6, 0.5) 38%, rgba(12, 8, 6, 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(12, 8, 6, 0) 22%); }
.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 760px; margin-top: 4vh; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(110px, 21vw, 300px); line-height: 0.82; letter-spacing: -0.045em; margin: 0 0 26px; padding-bottom: 0.2em; display: flex; cursor: default; user-select: none; }
.hero-title .ht-word { display: inline-block; }
.hero-title .ht-dot { color: var(--gold); }
.hero-lead { font-size: clamp(17px, 1.5vw, 22px); color: var(--ink2); max-width: 520px; margin: 0 0 20px; }
.hero-live { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--gold2); margin: 0; }
.hero-live time { font-family: var(--mono); font-style: normal; font-size: 0.75em; letter-spacing: 0.05em; color: var(--ink); }
.hero-hud { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; font-size: 11px; letter-spacing: 0.2em; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.hero-hud i { font-style: normal; color: var(--gold); }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 36px; z-index: 2; display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 12px; color: var(--ink3); }
.scroll-cue em { font-style: normal; line-height: 1.4; }
.scroll-cue .drop { width: 1px; height: 54px; background: linear-gradient(var(--line), var(--line)); position: relative; overflow: hidden; }
.scroll-cue .drop::after { content: ''; position: absolute; left: -2px; top: -10px; width: 5px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--crema); animation: drip 2.2s cubic-bezier(0.6, 0, 0.8, 1) infinite; }
@keyframes drip { 0% { top: -10px; } 70%, 100% { top: 60px; } }
@media (max-width: 760px) {
  .hero { align-items: flex-start; }
  .hero-content { margin-top: 8.5vh; }
  .hero .overline { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 8, 6, 0.85) 0%, rgba(12, 8, 6, 0.55) 26%, rgba(12, 8, 6, 0) 42%), linear-gradient(0deg, var(--bg) 0%, rgba(12, 8, 6, 0) 25%); }
  .hero-video { object-position: 50% 50%; transform-origin: 50% 100%; }
  .hero-hud { display: none; }
  .hero-title { font-size: 21vw; margin-bottom: 0; padding-bottom: 0.1em; }
  .hero-lead { display: none; }
  .hero-live { font-size: 16px; max-width: 290px; line-height: 1.35; }
  .overline { font-size: 10px; letter-spacing: 0.22em; }
}

/* ---------- prolog ---------- */
.prolog { position: relative; padding: 22vh 0; overflow: hidden; }
.prolog-bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; opacity: 0.16; filter: blur(2px) saturate(0.8); }
.prolog::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(12, 8, 6, 0.4) 30%, rgba(12, 8, 6, 0.4) 70%, var(--bg)); }
.prolog .wrap { position: relative; z-index: 1; }
.prolog-text { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.16; letter-spacing: -0.01em; margin: 0; }
.prolog-text .w { opacity: 0.14; transition: opacity 0.2s linear; }

/* ---------- čísla ---------- */
.stats { padding: 6vh 0 16vh; }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.stats-list li { padding: 28px 18px 0 0; border-right: 1px solid var(--line); margin-right: 18px; }
.stats-list li:last-child { border-right: 0; }
.stat-n { font-family: var(--serif); font-size: clamp(44px, 4.6vw, 76px); font-weight: 300; line-height: 1; display: block; }
.stat-n small { font-size: 0.42em; color: var(--gold); margin-left: 4px; font-family: var(--mono); letter-spacing: 0.05em; }
.stat-l { display: block; margin-top: 10px; font-size: 13px; color: var(--ink2); line-height: 1.45; }
@media (max-width: 980px) { .stats-list { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } .stats-list li:nth-child(3n) { border-right: 0; } }
@media (max-width: 560px) { .stats-list { grid-template-columns: repeat(2, 1fr); } .stats-list li:nth-child(3n) { border-right: 1px solid var(--line); } .stats-list li:nth-child(2n) { border-right: 0; } }

/* ---------- 3D anatomie ---------- */
.anatomy { position: relative; height: 620vh; }
.anatomy-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#m3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.m3d-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m3d-labels { position: absolute; inset: 0; pointer-events: none; }
.m3d-label { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity 0.3s; padding: 2px 6px; opacity: 0; }
.m3d-label b { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.1; color: var(--ink); }
.m3d-label small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.m3d-label.left { text-align: right; }
.m3d-label.hot b { color: var(--gold2); }
.m3d-label p { display: none; margin: 6px 0 0; max-width: 260px; white-space: normal; font-size: 13px; line-height: 1.5; color: var(--ink2); background: rgba(16, 10, 7, 0.86); border: 1px solid rgba(212, 163, 115, 0.25); border-radius: 10px; padding: 10px 12px; text-align: left; }
.m3d-label.hot p { display: block; }
.m3d-label.hot { z-index: 3; }
.anatomy.overview .anatomy-card { opacity: 0; transform: translateY(12px); pointer-events: none; }
.anatomy-hint { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold2); opacity: 0; transition: opacity 0.6s; white-space: nowrap; pointer-events: none; }
.anatomy.overview .anatomy-hint { opacity: 0.9; }
@media (max-width: 760px) { .anatomy.overview .anatomy-card { opacity: 1; transform: none; } .anatomy-hint { display: none; } }
.m3d-line { fill: none; stroke: rgba(212, 163, 115, 0.7); stroke-width: 1; transition: opacity 0.3s; opacity: 0; }
.m3d-dot { fill: var(--gold2); transition: opacity 0.3s; opacity: 0; }
.anatomy-head { position: absolute; left: var(--gutter); top: 13vh; max-width: 420px; pointer-events: none; transition: opacity 0.6s; }
.anatomy-head .sub { font-size: 16px; }
.anatomy-card {
  position: absolute; left: var(--gutter); bottom: 9vh; width: min(400px, calc(100vw - 2 * var(--gutter)));
  padding: 22px 24px 20px;
  background: linear-gradient(160deg, rgba(36, 24, 16, 0.78), rgba(16, 10, 7, 0.78));
  border: 1px solid rgba(212, 163, 115, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.anatomy-card.swap { opacity: 0; transform: translateY(10px); }
.ac-step { font-size: 11px; color: var(--gold); letter-spacing: 0.2em; margin: 0 0 8px; }
.ac-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 0 0 10px; }
.ac-desc { margin: 0 0 12px; color: var(--ink2); font-size: 15px; line-height: 1.6; }
.ac-spec { margin: 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold2); }
.anatomy-list { position: absolute; right: calc(var(--gutter) + 14px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink3); text-align: right; transition: opacity 0.5s; }
.anatomy-list li { padding: 3px 0; transition: color 0.3s, transform 0.3s var(--ease); }
.anatomy-list li.on { color: var(--gold2); transform: translateX(-6px); }
.anatomy-list li.done { color: var(--ink2); }
.anatomy-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.anatomy-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold3), var(--gold2)); }
.anatomy.overview .anatomy-list { opacity: 0; }
@media (max-width: 1100px) { .anatomy-list { display: none; } }
@media (max-width: 760px) {
  .anatomy-head { top: 11vh; right: var(--gutter); }
  .anatomy-head .sub { display: none; }
  .anatomy-card { bottom: 4vh; padding: 16px 18px; }
  .ac-title { font-size: 26px; }
  .ac-desc { font-size: 14px; }
}

/* ---------- cesta vody ---------- */
.flow { position: relative; height: 560vh; }
.flow-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.flow-head { position: absolute; left: var(--gutter); top: 12vh; z-index: 2; }
.flow-stage { position: absolute; top: 18vh; bottom: 12vh; left: 34vw; right: 4vw; }
.flow-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-steps { position: absolute; left: var(--gutter); top: 50%; width: min(31vw, 420px); transform: translateY(-20%); z-index: 2; }
.fs { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s var(--ease); pointer-events: none; }
.fs.on { opacity: 1; transform: none; }
.fs .fs-num { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.2em; }
.fs h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.05; margin: 6px 0 12px; }
.fs p { margin: 0; color: var(--ink2); }
.fs .fs-temp { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.fs .fs-temp i { width: 8px; height: 8px; border-radius: 50%; }
/* schéma */
.sch-pipe { fill: none; stroke: rgba(243, 233, 220, 0.1); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.sch-flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 16; }
.sch-flow.cold { stroke: var(--cold); }
.sch-flow.hot { stroke: var(--hot); }
.sch-flow.steam { stroke: #f3e9dc; stroke-dasharray: 3 12; }
.sch-comp { transition: opacity 0.5s; }
.sch-comp .body { fill: rgba(243, 233, 220, 0.04); stroke: rgba(243, 233, 220, 0.5); stroke-width: 1.5; }
.sch-comp.on .body { stroke: var(--gold2); fill: rgba(212, 163, 115, 0.09); }
.sch-label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink3); }
.sch-comp.on .sch-label { fill: var(--gold2); }
.sch-temp { font-family: var(--mono); font-size: 15px; fill: var(--ink); }
.sch-dim .sch-comp:not(.on) { opacity: 0.35; }
@media (max-width: 860px) {
  .flow-stage { top: 17vh; bottom: 35vh; left: 4vw; right: 4vw; }
  .flow-steps { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 5vh; transform: none; height: 28vh; }
  .fs h3 { font-size: 30px; margin: 4px 0 8px; }
  .fs p { font-size: 14px; }
  .flow-head { top: 10vh; }
  .flow-head .h2 { font-size: 40px; }
}

/* ---------- proč teče horká hned ---------- */
.hot { padding: 18vh 0 16vh; background: radial-gradient(ellipse at 70% 30%, rgba(86, 182, 255, 0.07), transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(255, 138, 61, 0.08), transparent 55%); }
.hot-intro { max-width: 720px; margin-bottom: 7vh; }
.pp-inline { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid rgba(243, 233, 220, 0.4); vertical-align: -0.35em; background: #111; }
.pp-inline::before { content: ''; width: 0.75em; height: 0.6em; background: var(--ink); clip-path: polygon(0 0, 45% 50%, 0 100%, 0 0, 58% 0, 72% 0, 72% 100%, 58% 100%, 58% 0, 86% 0, 100% 0, 100% 100%, 86% 100%, 86% 0); }
.hot-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5vw; align-items: center; }
.hot-sim { position: relative; aspect-ratio: 1 / 0.86; border-radius: 26px; background: linear-gradient(160deg, #1a110c, #0f0a07); border: 1px solid var(--line); overflow: hidden; }
.hot-sim svg { width: 100%; height: 100%; }
.hot-explain { position: relative; min-height: 260px; }
.he-step { padding: 18px 0 18px 22px; border-left: 1px solid var(--line); opacity: 0.32; transition: opacity 0.5s, border-color 0.5s; }
.he-step.is-on { opacity: 1; border-left-color: var(--gold); }
.he-step h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 6px; }
.he-step p { margin: 0; color: var(--ink2); font-size: 15px; }
.sim-btn {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  padding: 13px 26px; border-radius: 999px; background: var(--gold); color: #1a0f08;
  font-weight: 600; font-size: 14px; letter-spacing: 0.03em; white-space: nowrap;
  box-shadow: 0 10px 40px rgba(212, 163, 115, 0.35);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.sim-btn:hover { transform: translateX(-50%) scale(1.05); }
.sim-btn[hidden] { display: block; opacity: 0; pointer-events: none; }
.sim-btn.cold { background: var(--cold); box-shadow: 0 10px 40px rgba(86, 182, 255, 0.35); }
.physics { margin-top: 12vh; display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 26px; background: rgba(243, 233, 220, 0.02); }
.slider { display: block; margin: 22px 0 0; }
.slider > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink2); margin-bottom: 10px; gap: 10px; }
.slider b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold) var(--fill, 50%), var(--line) var(--fill, 50%)); border-radius: 3px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.phys-bar { position: relative; height: 54px; border-radius: 14px; background: rgba(243, 233, 220, 0.05); border: 1px solid var(--line); overflow: hidden; }
.phys-need { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, var(--cold), var(--hot)); transition: width 0.5s var(--ease); }
.phys-max { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.phys-max span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--ink); mix-blend-mode: difference; }
.phys-result { margin: 18px 0 0; display: flex; flex-direction: column; gap: 4px; }
.phys-result b { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; }
.phys-result span { color: var(--ink2); }
@media (max-width: 900px) { .hot-grid, .physics { grid-template-columns: 1fr; } .physics { padding: 24px; } .hot-sim { aspect-ratio: 1 / 1.05; } }

/* ---------- virtuální Filip ---------- */
.barista { position: relative; padding: 18vh 0; overflow: hidden; }
.barista-bg { position: absolute; inset: 0; opacity: 0.18; }
.barista-bg video { width: 100%; height: 100%; object-fit: cover; filter: blur(3px); }
.barista::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--bg), rgba(12, 8, 6, 0.55) 25%, rgba(12, 8, 6, 0.55) 75%, var(--bg)); }
.barista .wrap { position: relative; z-index: 2; }
.barista-intro { max-width: 680px; margin-bottom: 8vh; }
.barista-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.panel-wrap { max-width: 980px; width: 100%; margin: 0 auto; }
.vpanel {
  position: relative; width: 100%; aspect-ratio: 2.85 / 1;
  border-radius: 28px;
  background: linear-gradient(180deg, #121214, #050506 55%, #0b0b0c);
  box-shadow: 0 0 0 2px #8f8f93, 0 0 0 4px #2b2b2e, 0 0 0 5px #b9b9bd, 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  container-type: inline-size;
  overflow: hidden;
}
.vpanel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 38%); pointer-events: none; }
.vp-btn { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ece8e2; transition: opacity 0.4s, filter 0.4s, background 0.3s, transform 0.2s; border-radius: 1.2cqw; }
.vp-btn .ico { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vp-btn .ico .f { fill: currentColor; stroke: none; }
.vp-btn:active { transform: scale(0.96); }
.vp-tile { background: #16161a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.vp-tile:hover { background: #1e1e23; }
.vp-tile .lbl { font-size: 1.5cqw; margin-top: 0.4cqw; white-space: nowrap; letter-spacing: 0.01em; }
.vp-led { width: 0.75cqw; height: 0.75cqw; border-radius: 50%; background: #3a1311; margin-top: 0.5cqw; transition: background 0.3s, box-shadow 0.3s; }
.vpanel.on .vp-led { background: var(--led); box-shadow: 0 0 0.8cqw var(--led); }
.vp-tile.sel .vp-led { animation: blink 0.8s infinite; }
.vp-tile.sel { background: #24242a; box-shadow: inset 0 0 0 1px rgba(212, 163, 115, 0.6); }
.vp-round { border-radius: 50%; width: 5.6cqw; height: 5.6cqw; background: #121215; box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.22); }
.vp-round .ico { width: 2.8cqw; height: 2.8cqw; }
.vp-round.glow { box-shadow: inset 0 0 0 0.25cqw var(--gold), 0 0 2cqw rgba(212, 163, 115, 0.5); }
.vp-mcc-title { position: absolute; left: 52%; width: 15.6%; top: 16%; text-align: center; font-size: 1.25cqw; color: #a9a6a0; letter-spacing: 0.04em; }
.vp-mcc-title::before, .vp-mcc-title::after { content: ''; position: absolute; top: 50%; width: 12%; height: 1px; background: #a9a6a0; }
.vp-mcc-title::before { left: 0; } .vp-mcc-title::after { right: 0; }
.vp-seg { position: absolute; right: 8%; top: 22%; display: flex; flex-direction: column-reverse; gap: 0.5cqw; }
.vp-seg i { width: 0.35cqw; height: 1.4cqw; background: #3b3a37; border-radius: 1px; transition: background 0.3s; }
.vp-seg i.on { background: #e7e3dc; }
.vp-mcc .ico { width: 3cqw; height: 3cqw; margin-right: 1cqw; }
.vp-ind { position: absolute; left: 79%; width: 2.6cqw; height: 2.6cqw; color: #7a7874; transition: color 0.3s, filter 0.3s; }
.vp-ind .ico { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vp-ind.alert { color: var(--led); filter: drop-shadow(0 0 0.6cqw var(--led)); animation: blink 0.7s infinite; }
.vp-blue { position: absolute; width: 0.8cqw; height: 0.8cqw; border-radius: 50%; background: #10304f; left: 58.2%; top: 65%; transition: background 0.3s, box-shadow 0.3s; }
.vpanel.on .vp-blue { background: var(--blue); box-shadow: 0 0 0.9cqw var(--blue); }
.vpanel:not(.on) .vp-btn:not(.vp-power) { opacity: 0.18; filter: grayscale(1); pointer-events: none; }
.vpanel:not(.on) .vp-ind { opacity: 0.3; }
.vpanel:not(.on) .vp-power { animation: powerPulse 2s ease-in-out infinite; color: var(--gold2); }
@keyframes powerPulse { 0%, 100% { box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.22), 0 0 0 0 rgba(212, 163, 115, 0.5); } 50% { box-shadow: inset 0 0 0 0.25cqw var(--gold), 0 0 0 1.6cqw rgba(212, 163, 115, 0); } }
.vpanel.busy .vp-tile, .vpanel.busy .vp-mcc { pointer-events: none; opacity: 0.55; }
.vpanel.warming .vp-tile { animation: warm 1.2s infinite; }
@keyframes warm { 50% { opacity: 0.35; } }
.vpanel-msg { text-align: center; color: var(--gold2); font-size: 12px; letter-spacing: 0.14em; margin: 26px 0 0; min-height: 1.5em; text-transform: uppercase; }
.cup-stage { display: grid; place-items: center; min-height: 360px; }
.cup-stage svg { width: min(360px, 80vw); height: auto; overflow: visible; }
.drink-card { max-width: 720px; margin: 0 auto; text-align: center; }
.drink-card h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 6px; }
.drink-card p { color: var(--ink2); margin: 0 auto; max-width: 560px; }
.drink-card .dc-meta { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.drink-card .dc-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold2); }
@media (min-width: 1100px) {
  .barista-grid { grid-template-columns: 1.4fr 1fr; grid-template-areas: 'panel panel' 'cup card'; align-items: center; }
  .panel-wrap { grid-area: panel; }
  .cup-stage { grid-area: cup; }
  .drink-card { grid-area: card; text-align: left; margin: 0; }
  .drink-card p { margin: 0; }
  .drink-card .dc-meta { justify-content: flex-start; }
}

/* ---------- latte art ---------- */
.latte { padding: 16vh 0; }
.latte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.latte-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.latte-cup-wrap { position: relative; width: min(520px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.saucer { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fbf8f3 0%, #e9e3da 55%, #cfc6ba 72%, #b9afa2 74%, #e8e2d8 76%, #f6f2ec 86%, #d7cfc4 100%); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.latte-cup { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffffff, #ece6dd 60%, #cfc6b9); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 -6px 20px rgba(0, 0, 0, 0.12); }
.latte-cup canvas { position: absolute; inset: 7%; width: 86%; height: 86%; border-radius: 50%; touch-action: none; box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.55); }
.latte-rim { position: absolute; inset: 7%; border-radius: 50%; box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 -2px 6px rgba(255, 255, 255, 0.25); pointer-events: none; }
.latte-handle { position: absolute; right: 2%; top: 44%; width: 16%; height: 12%; border-radius: 40px; background: linear-gradient(180deg, #ffffff, #d9d2c7); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35); z-index: -0; }
.latte-hint { position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold2); margin: 0; transition: opacity 0.5s; }
@media (max-width: 900px) { .latte-grid { grid-template-columns: 1fr; } }

/* ---------- od zrnka k šálku ---------- */
.bean { position: relative; }
.bean-pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.bean-track { display: flex; gap: 4vw; padding: 0 var(--gutter); will-change: transform; }
.bean-panel { flex: 0 0 auto; width: min(78vw, 1040px); height: 74vh; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3vw; align-items: center; }
.bean-intro { width: min(60vw, 640px); display: flex; flex-direction: column; justify-content: center; }
.bean-arrow { font-family: var(--serif); font-size: 64px; color: var(--gold); margin-top: 20px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(16px); } }
.bp-media { height: 100%; border-radius: 22px; overflow: hidden; position: relative; }
.bp-media video { width: 100%; height: 100%; object-fit: cover; }
.bp-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(243, 233, 220, 0.08); border-radius: 22px; }
.bp-num { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; }
.bp-text h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.6vw, 76px); line-height: 1; margin: 8px 0 18px; }
.bp-text p { color: var(--ink2); margin: 0; max-width: 440px; }
.roast { margin-top: 26px; display: grid; grid-template-columns: 74px 1fr; gap: 6px 18px; align-items: center; max-width: 440px; }
.roast-bean { grid-row: span 2; }
.roast-bean svg { width: 74px; height: 96px; }
.roast-bean ellipse { fill: var(--rc, #6b4a2b); transition: fill 0.3s; }
.roast-bean path { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-width: 5; stroke-linecap: round; }
.roast-out { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.roast-out b { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.roast-out span { color: var(--ink2); font-size: 14px; }
.roast-out i { font-style: normal; font-size: 12px; color: var(--gold); }
@media (max-width: 860px) {
  .bean-panel { width: 86vw; height: 80vh; grid-template-columns: 1fr; grid-template-rows: 42% 1fr; gap: 20px; align-items: start; }
  .bean-intro { width: 80vw; }
  .bp-text h3 { font-size: 40px; margin: 4px 0 10px; }
  .bp-text p { font-size: 14px; }
}

/* ---------- anatomie nápojů ---------- */
.drinks { padding: 16vh 0; }
.drinks-grid { margin-top: 8vh; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 56px 24px; }
.drink { text-align: center; position: relative; }
.drink svg { width: 100%; max-width: 270px; height: 225px; margin: 0 auto; overflow: visible; transition: transform 0.6s var(--ease); }
.drink:hover svg { transform: translateY(-8px) scale(1.04); }
.drink h4 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 14px 0 2px; }
.drink p { margin: 0; font-size: 13px; color: var(--ink3); }
.drink .badge { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--gold); color: #1a0f08; }
.drink .layer-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; fill: var(--ink2); opacity: 0; transition: opacity 0.4s; text-transform: uppercase; }
.drink .layer-line { stroke: rgba(243, 233, 220, 0.4); stroke-width: 1; opacity: 0; transition: opacity 0.4s; }
.drink:hover .layer-lbl, .drink:hover .layer-line, .drink.show .layer-lbl, .drink.show .layer-line { opacity: 1; }

/* ---------- historie ---------- */
.history { padding-bottom: 14vh; }
.history-hero { position: relative; height: 92vh; overflow: hidden; display: flex; align-items: flex-end; }
.history-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.history-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(12, 8, 6, 0.35) 45%, rgba(12, 8, 6, 0.6)); }
.history-hero-text { position: relative; z-index: 2; padding-bottom: 8vh; }
.timeline { list-style: none; margin: 8vh 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 140px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), var(--line) 30%, var(--line) 70%, var(--gold)); }
.tl { display: grid; grid-template-columns: 140px 1fr; gap: 0 46px; padding: 26px 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 136px; top: 40px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.tl.star::before { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.tl-year { font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1; text-align: right; padding-right: 26px; color: var(--gold2); }
.tl-body h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 4px 0 6px; line-height: 1.2; }
.tl-body p { margin: 0; color: var(--ink2); max-width: 620px; }
@media (max-width: 700px) {
  .timeline::before { left: 8px; }
  .tl { grid-template-columns: 1fr; padding: 18px 0 18px 32px; }
  .tl::before { left: 4px; top: 28px; }
  .tl-year { text-align: left; font-size: 32px; padding: 0; }
}

/* ---------- kalkulačka ---------- */
.joy { padding: 16vh 0; background: radial-gradient(ellipse at 80% 20%, rgba(212, 163, 115, 0.08), transparent 55%); }
.joy-grid { margin-top: 7vh; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6vw; }
.joy-form label { display: block; font-size: 14px; color: var(--ink2); margin-bottom: 26px; }
.joy-form input[type=date] { display: block; margin-top: 10px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(243, 233, 220, 0.04); color: var(--ink); font: 500 16px var(--mono); color-scheme: dark; }
.joy-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.joy-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(243, 233, 220, 0.025); }
.joy-card.wide { grid-column: span 2; background: linear-gradient(140deg, rgba(212, 163, 115, 0.16), rgba(212, 163, 115, 0.03)); border-color: rgba(212, 163, 115, 0.35); }
.joy-card b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4vw, 60px); line-height: 1; }
.joy-card span { display: block; margin-top: 8px; color: var(--ink2); font-size: 14px; }
.joy-card em { display: block; margin-top: 10px; font-size: 13px; color: var(--gold2); font-style: italic; font-family: var(--serif); font-size: 17px; }
@media (max-width: 900px) { .joy-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .joy-out { grid-template-columns: 1fr; } .joy-card.wide { grid-column: auto; } }

/* ---------- premiéra ---------- */
.premiere { position: relative; padding-top: 6vh; }
.curtain-stage { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 12vh var(--gutter); }
.curtain { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 3; background: repeating-linear-gradient(90deg, #4a0b0b 0, #7a1414 3%, #9c1d1d 5%, #6a1010 7.5%, #3a0707 10%); box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.6); transition: transform 2.4s cubic-bezier(0.7, 0, 0.2, 1); }
.curtain::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.5)); }
.curtain.left { left: 0; transform-origin: left; }
.curtain.right { right: 0; transform-origin: right; }
.curtain-stage.open .curtain.left { transform: translateX(-92%) scaleX(0.6); }
.curtain-stage.open .curtain.right { transform: translateX(92%) scaleX(0.6); }
.premiere-inner { position: relative; z-index: 2; width: min(1100px, 100%); text-align: center; }
.premiere-inner .overline { justify-content: center; }
.premiere-inner .overline::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.premiere-title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 140px); line-height: 0.9; margin: 0 0 5vh; letter-spacing: -0.02em; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(212, 163, 115, 0.3), 0 50px 140px rgba(0, 0, 0, 0.8), 0 0 120px rgba(212, 163, 115, 0.15); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); transition: opacity 0.5s; }
.screen-play span { width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(243, 233, 220, 0.6); display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(12, 8, 6, 0.3); transition: transform 0.4s var(--ease), background 0.4s; }
.screen-play span::before { content: ''; margin-left: 6px; border-left: 24px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.screen-play em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.screen-play:hover span { transform: scale(1.08); background: rgba(212, 163, 115, 0.35); }
.screen.playing .screen-play { opacity: 0; pointer-events: none; }
.premiere-note { color: var(--ink3); margin: 22px 0 0; font-size: 14px; }
.poster-wrap { padding: 12vh var(--gutter); display: grid; place-items: center; perspective: 1200px; }
.poster { position: relative; width: min(520px, 88vw); aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); transform-style: preserve-3d; transition: transform 0.2s ease-out; }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.poster::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 14%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 74%, rgba(0,0,0,0.9) 92%); pointer-events: none; }
.poster::after { content: ''; position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.18), transparent 45%); mix-blend-mode: overlay; pointer-events: none; }
.poster-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6% 7%; }
.pt-top { font-family: var(--mono); font-size: clamp(8px, 1.5vw, 10px); letter-spacing: 0.4em; text-transform: uppercase; margin: 0; color: var(--ink2); }
.pt-title { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 11vw, 84px); letter-spacing: 0.2em; line-height: 1; margin: 1.5% 0 0 0.2em; background: linear-gradient(180deg, #fff6e6, #e8c79a 50%, #a8743f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)); }
.pt-sub { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 3.2vw, 24px); margin: 0; color: var(--gold2); text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.pt-credits { margin-top: auto; font-family: var(--sans); font-size: clamp(7px, 1.3vw, 9px); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7; color: rgba(243, 233, 220, 0.75); }
.pt-date { font-family: var(--mono); font-size: clamp(9px, 1.6vw, 11px); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold2); margin: 6px 0 0; }
.credits { position: relative; height: 100vh; overflow: hidden; background: #000; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.credits-roll { position: absolute; left: 0; right: 0; top: 100%; text-align: center; padding: 0 var(--gutter); }
.cr-big { font-family: var(--serif); font-weight: 600; letter-spacing: 0.3em; font-size: clamp(48px, 8vw, 96px); margin: 0 0 0 0.3em; line-height: 1; }
.cr-sub { font-family: var(--serif); font-style: italic; color: var(--gold2); font-size: 28px; margin: 6px 0 12vh; }
.credits dl { margin: 0 auto; max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.credits dt { text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink3); padding-top: 6px; }
.credits dd { margin: 0; text-align: left; font-family: var(--serif); font-size: 24px; }
.cr-note { margin: 14vh 0 0; color: var(--ink3); font-size: 14px; line-height: 1.8; }
.cr-next { margin: 10vh 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink2); }
.cr-next em { display: block; margin-top: 10px; font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 34px; color: var(--gold2); }
.cr-thanks { margin: 22vh 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 6vw, 80px); font-weight: 300; }
@media (max-width: 600px) { .credits dl { grid-template-columns: 1fr; gap: 4px; } .credits dt, .credits dd { text-align: center; } .credits dd { margin-bottom: 16px; } }

/* ---------- footer ---------- */
.footer { padding: 10vh 0 8vh; border-top: 1px solid var(--line); text-align: center; }
.foot-heart { font-family: var(--serif); font-style: italic; font-size: 24px; margin: 0 0 10px; }
.foot-tip { color: var(--gold); font-size: 13px; margin: 0 0 22px; }
.foot-legal { color: var(--ink3); font-size: 12px; margin: 0; }

/* ---------- easter egg ---------- */
#beanRain { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 30px); z-index: 85; padding: 14px 22px; border-radius: 999px; background: rgba(20, 13, 9, 0.92); border: 1px solid rgba(212, 163, 115, 0.4); font-family: var(--serif); font-style: italic; font-size: 20px; opacity: 0; transition: opacity 0.5s, transform 0.5s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* sdílené animace schémat */
@keyframes schDash { to { stroke-dashoffset: -52; } }
@keyframes schVib { 50% { transform: translateX(1.5px); } }

/* ---------- reveal ---------- */
.reveal-up { opacity: 0; transform: translateY(30px); }
.no-js .reveal-up, .reduced .reveal-up { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .reveal-up { opacity: 1; transform: none; }
}
