/* ═══════════════════════════════════════════════════════════
   Klingon spine — Mgr. Alex Kling, Brno-Komín
   ═══════════════════════════════════════════════════════════ */

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

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --q { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --deg { syntax: '<integer>'; inherits: true; initial-value: 29; }

:root {
  --bg: #F2F0EB;
  --bg-alt: #E8E5DE;
  --paper: #FBFAF7;
  --ink: #0D1726;
  --muted: #5A6474;
  --line: rgba(13, 23, 38, 0.12);
  --blue: #2150D8;
  --blue-deep: #1A3FA8;
  --cyan: #22A6C3;
  --signal: #F2542D;
  --dark: #0A1220;
  --dark-2: #111C2E;
  --dark-text: #EEF1F5;
  --dark-muted: #8C97A8;
  --dark-line: rgba(238, 241, 245, 0.12);

  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --h2: clamp(2.6rem, 5.6vw, 5.4rem);
  --h3: clamp(1.8rem, 3vw, 2.8rem);
  --small: 0.84rem;

  --section: clamp(6rem, 12vw, 10.5rem);
  --wrap: min(1320px, 100% - 3.5rem);
  --r: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  interpolate-size: allow-keywords;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--blue); }
p { text-wrap: pretty; }

.wrap { width: var(--wrap); margin-inline: auto; }
.h2 { font-size: var(--h2); margin-bottom: 1.5rem; }
.h3 { font-size: var(--h3); letter-spacing: -0.03em; }
.lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.small { font-size: var(--small); color: var(--muted); }

/* štítek se segmentem páteře */
.tag {
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tag-seg {
  display: inline-grid; place-items: center;
  min-width: 2.6rem; height: 1.6rem; padding: 0 0.5rem;
  border: 1px solid currentColor; border-radius: 999px;
  color: var(--blue);
}
.tag--light { color: var(--dark-muted); }
.tag--light .tag-seg { color: var(--cyan); }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.95rem;
  background: var(--blue); color: #fff;
  border-radius: 999px;
  transition: background 0.3s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.btn svg { width: 1.15rem; height: 1.15rem; transition: transform 0.5s var(--ease); }
.btn:hover { background: var(--blue-deep); box-shadow: 0 2px 4px rgba(13,23,38,0.06), 0 14px 32px rgba(33,80,216,0.28); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cyan); color: var(--ink); }
.btn--full { width: 100%; }

/* duotón pro starší fotky */
.duo { position: relative; overflow: hidden; background: #8EABF2; isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(1.08); mix-blend-mode: multiply; transition: filter 0.8s var(--ease), mix-blend-mode 0s; }
.duo::after { content: ''; position: absolute; inset: 0; background: #0F2350; mix-blend-mode: screen; pointer-events: none; }

/* ═══ pravá „páteř“ jako ukazatel průběhu ═══ */
.spine-progress {
  position: fixed; right: 20px; top: 50%; z-index: 90;
  width: 8px; height: min(46vh, 380px); translate: 0 -50%;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 3px, transparent 3.5px) 0 0 / 8px 15.8px repeat-y;
          mask: radial-gradient(circle at 50% 50%, #000 3px, transparent 3.5px) 0 0 / 8px 15.8px repeat-y;
  background: rgba(13,23,38,0.16);
  pointer-events: none;
}
.spine-progress i { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); }
@supports (animation-timeline: scroll()) {
  .spine-progress i { animation: fill linear both; animation-timeline: scroll(root); }
  @keyframes fill { to { transform: scaleY(1); } }
}

/* ═══ NAV ═══ */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 1.2rem 0; transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s var(--ease); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 1px 0 var(--line); padding: 0.75rem 0; }
.nav-inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; position: relative; z-index: 102; }
.brand-mark { width: 2rem; height: 2rem; color: var(--blue); flex-shrink: 0; }
.brand-text { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; font-weight: 300; }
.brand-text b { font-weight: 600; }
.brand-text small { display: block; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; font-weight: 400; }
.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-menu a:not(.btn) { font-size: 0.9rem; font-weight: 500; position: relative; }
.nav-menu a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 102; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span { top: 21.5px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(7rem, 14vh, 9rem) 0 clamp(3rem, 7vh, 5rem);
  display: flex; align-items: center;
  overflow: clip;
  --p: 0;
}
@supports (animation-timeline: scroll()) {
  .hero { animation: straighten linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
  @keyframes straighten { from { --p: 0; } to { --p: 1; } }
}
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  opacity: 0.55;
  -webkit-mask: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.hero-title {
  font-size: clamp(3.6rem, 8.8vw, 9.6rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem) -0.06em;
  font-variation-settings: 'opsz' 96;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .ln > span { display: inline-block; }
.hero-title em { color: var(--blue); position: relative; }
.hero-title em::after {
  content: ''; position: absolute; left: 0.04em; right: 0.12em; bottom: 0.08em; height: 0.07em;
  background: var(--signal); border-radius: 1em;
  transform: scaleX(calc(1 - var(--p))); transform-origin: left;
}
.js .hero-title .ln > span { transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.js .hero-title .ln:nth-child(2) > span { animation-delay: 0.1s; }
.js .hero-title .ln:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 34em; margin-bottom: 2.25rem; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.phone { font-family: var(--f-mono); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s, color 0.3s; }
.phone:hover { border-color: var(--blue); color: var(--blue); }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.hero-stats dd { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.js .hero-sub, .js .hero-actions, .js .hero-stats, .js .hero .tag { opacity: 0; transform: translateY(18px); animation: up 1s var(--ease) forwards; }
.js .hero .tag { animation-delay: 0.05s; }
.js .hero-sub { animation-delay: 0.45s; }
.js .hero-actions { animation-delay: 0.55s; }
.js .hero-stats { animation-delay: 0.7s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* páteř */
.spine-fig { position: relative; display: flex; flex-direction: column; align-items: center; justify-self: center; }
.spine { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0.5rem 0; }
.axis {
  position: absolute; left: 50%; top: -2.5rem; bottom: -1.5rem; width: 0;
  border-left: 1.5px dashed var(--blue);
  opacity: calc(0.25 + var(--p) * 0.6);
}
.seg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seg-lab {
  position: absolute; left: calc(50% + 72px); top: 2px; bottom: 2px;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: 0.7rem; border-left: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.seg-lab b { color: var(--ink); font-weight: 500; }
.v {
  display: block; position: relative;
  width: var(--w); height: var(--h);
  border: 1.5px solid var(--ink);
  border-radius: 45% 45% 38% 38% / 55% 55% 45% 45%;
  background: var(--paper);
  transform: translateX(calc(var(--x) * (1 - var(--p)) * 1px)) rotate(calc(var(--r) * (1 - var(--p)) * 1deg));
  will-change: transform;
}
/* příčné výběžky */
.v::before {
  content: ''; position: absolute; top: 50%; left: -26%; right: -26%; height: 1.5px;
  background: linear-gradient(90deg, var(--ink) 0 22%, transparent 22% 78%, var(--ink) 78%);
  translate: 0 -50%;
}
.v.hot {
  border-color: color-mix(in srgb, var(--signal) calc((1 - var(--p)) * 100%), var(--ink));
  background: color-mix(in srgb, var(--signal) calc((1 - var(--p)) * 18%), var(--paper));
}
.v.hot::after {
  content: ''; position: absolute; inset: -9px -14px; border-radius: 50%;
  border: 1.5px solid var(--signal);
  opacity: calc(1 - var(--p) * 1.4);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(0.7); } to { transform: scale(1.25); border-color: transparent; } }
.sacrum { display: block; width: 76px; height: 66px; margin-top: 2px; overflow: visible; }
.js .v, .js .sacrum { opacity: 0; translate: 0 -18px; animation: vIn 0.9s var(--ease) forwards; animation-delay: calc(0.35s + var(--d)); }
@keyframes vIn { to { opacity: 1; translate: 0 0; } }

.readout {
  position: absolute; left: -1rem; top: 12%;
  translate: -100% 0;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(13,23,38,0.04), 0 16px 40px rgba(13,23,38,0.08);
  font-family: var(--f-mono);
  --deg: calc(29 - 29 * var(--p));
  counter-reset: deg var(--deg);
  min-width: 8.5rem;
}
.ro-label { display: block; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ro-val { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--signal) calc((1 - var(--p)) * 100%), var(--blue)); }
.ro-val::before { content: counter(deg) "°"; }
.ro-state { position: relative; display: block; height: 1.1rem; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ro-state i { position: absolute; left: 0; font-style: normal; }
.s-bad { color: var(--signal); opacity: calc(1 - var(--p) * 1.7); }
.s-ok { color: var(--blue); opacity: calc(var(--p) * 1.7 - 0.7); }
.ro-state i::before { content: '● '; }
.spine-cap { margin-top: 2.25rem; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p) * 1.5); }

/* ═══ TICKER ═══ */
.ticker { background: var(--ink); color: var(--dark-text); overflow: hidden; white-space: nowrap; padding: 1.15rem 0; }
.ticker-track { display: flex; width: max-content; animation: tick 55s linear infinite; }
.ticker span { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ticker b { color: var(--cyan); font-weight: 400; margin: 0 1.6em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ═══ CESTY ═══ */
.paths { padding: var(--section) 0; }
.head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem 4rem; align-items: end; }
.head--split .h2 { margin-bottom: 0; }
.doors { display: flex; gap: 0.75rem; height: clamp(540px, 74vh, 740px); }
.door {
  flex: 1 1 0; min-width: 0;
  position: relative; overflow: hidden;
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: flex-grow 0.9s var(--ease);
  isolation: isolate;
}
.door.is-open { flex-grow: 2.7; cursor: default; }
.door-img { position: absolute; inset: 0; z-index: -1; background: #7F9FEF; isolation: isolate; }
.door-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.05); mix-blend-mode: multiply; transform: scale(1.06); transition: transform 1.4s var(--ease), filter 0.9s var(--ease); }
.door.is-open .door-img img { transform: scale(1); filter: grayscale(0.15) contrast(1.05); mix-blend-mode: normal; }
.door-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,32,0.05) 25%, rgba(10,18,32,0.85) 100%); }
.door-body { position: absolute; inset: auto 0 0 0; padding: clamp(1.4rem, 2.4vw, 2.4rem); }
.door-idx { position: absolute; z-index: 1; top: clamp(1.4rem, 2.4vw, 2.4rem); left: clamp(1.4rem, 2.4vw, 2.4rem); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; opacity: 0.8; }
.door-quote { font-family: var(--f-display); font-size: clamp(1.7rem, 2.7vw, 3rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; max-width: 12ch; }
.door.is-open .door-quote { max-width: 16ch; }
.door-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.8s var(--ease), opacity 0.5s; }
.door-more > * { min-height: 0; }
.door.is-open .door-more { grid-template-rows: 1fr; opacity: 1; transition-delay: 0.15s; }
.door-more-in { overflow: hidden; }
.door-more h3 { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin: 1.4rem 0 0.6rem; }
.door-more p { max-width: 40em; color: rgba(255,255,255,0.85); }
.door-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 1.4rem; }
.door-meta li { font-family: var(--f-mono); font-size: 0.75rem; padding: 0.4rem 0.75rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; }
.door-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; border-bottom: 1.5px solid rgba(255,255,255,0.4); padding-bottom: 3px; transition: border-color 0.3s, gap 0.4s var(--ease); }
.door-link svg { width: 1.1rem; height: 1.1rem; }
.door-link:hover { border-color: #fff; gap: 0.9rem; }

/* ═══ VÝSLEDKY ═══ */
.results { background: var(--dark); color: var(--dark-text); padding: var(--section) 0; position: relative; overflow: clip; }
.results::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.35;
  -webkit-mask: linear-gradient(180deg, #000, transparent 60%); mask: linear-gradient(180deg, #000, transparent 60%);
}
.results .tag { color: var(--dark-muted); }
.results .tag-seg { color: var(--cyan); }
.results .h2 em { color: var(--cyan); }
.results .lead { color: var(--dark-muted); }
.results-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; position: relative; }
.note { margin-top: 1.5rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); }
.xray { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.xray-item { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.xray-item img { width: 100%; aspect-ratio: 754 / 950; object-fit: cover; filter: contrast(1.1) brightness(0.95); }
.xray-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.1rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}
.xray-item figcaption span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dark-muted); }
.xray-item figcaption b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.9; color: var(--signal); }
.xray-item + .xray-item figcaption b { color: var(--cyan); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(4rem, 8vw, 7rem); padding-top: 2.5rem; border-top: 1px solid var(--dark-line); }
.fact-num { display: block; font-family: var(--f-display); font-size: clamp(3.4rem, 6.5vw, 6.2rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.9; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.fact p { color: var(--dark-muted); max-width: 26em; font-size: 0.95rem; }
.ba { display: grid; grid-template-columns: 0.9fr 0.9fr 1.4fr; gap: 0.75rem; margin-top: clamp(3rem, 6vw, 5rem); }
.ba figure { border-radius: 12px; overflow: hidden; background: var(--dark-2); }
.ba { align-items: start; }
.ba img { width: 100%; height: auto; }
.ba figcaption { padding: 0.8rem 1rem; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark-muted); }

/* ═══ O MNĚ ═══ */
.about { padding: var(--section) 0; }
.confession { font-family: var(--f-display); font-size: clamp(1.6rem, 3.1vw, 2.9rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.12; color: var(--muted); max-width: 26em; }
.strike { position: relative; color: var(--ink); white-space: normal; }
.strike::after {
  content: ''; position: absolute; left: -0.1em; right: -0.1em; top: 55%; height: 0.09em;
  background: var(--signal); border-radius: 1em;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-io) 0.5s;
}
.confession.in .strike::after { transform: scaleX(1); }
.punch {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 13.5rem);
  letter-spacing: -0.065em; line-height: 0.85;
  margin: 0.25em 0 clamp(4rem, 8vw, 7rem) -0.06em;
  font-variation-settings: 'opsz' 96;
}
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.about-media { position: relative; padding-bottom: 4rem; }
.portrait { border-radius: var(--r); aspect-ratio: 4 / 5; width: 82%; }
.portrait img { object-position: 30% 20%; }
.portrait-2 { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border-radius: 14px; border: 6px solid var(--bg); }
.fun-chip {
  position: absolute; left: 6%; bottom: 1.25rem; max-width: 15rem;
  background: var(--ink); color: var(--dark-text);
  font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.02em;
  padding: 0.9rem 1.1rem; border-radius: 12px;
  rotate: -3deg;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(13,23,38,0.25);
}
.about-copy .h3 { margin-bottom: 1.75rem; }
.story { columns: 2 16rem; column-gap: 2.5rem; color: var(--muted); }
.story p { margin-bottom: 1.1rem; break-inside: avoid; }
.creds { margin: 2.5rem 0; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 2.75rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.creds li span { font-family: var(--f-mono); font-size: 0.72rem; color: var(--blue); padding-top: 0.2rem; }
.principle { font-family: var(--f-display); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; padding-left: 1.5rem; border-left: 3px solid var(--blue); }

/* ═══ PROCES + DORN ═══ */
.process { padding: var(--section) 0 0; background: var(--bg-alt); overflow: clip; }
.process-head { max-width: 980px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.three li { background: var(--paper); border-radius: var(--r); padding: clamp(1.75rem, 3vw, 2.75rem); position: relative; overflow: hidden; min-height: 21rem; display: flex; flex-direction: column; justify-content: flex-end; }
.three-n {
  position: absolute; top: -0.12em; right: 0.08em;
  font-family: var(--f-display); font-weight: 600; font-size: 12rem; line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--blue) 45%, transparent);
}
.three h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.three h3 small { display: block; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-top: 0.6rem; }
.three p { color: var(--muted); }
.three li:nth-child(3) { background: var(--blue); color: #fff; }
.three li:nth-child(3) p { color: rgba(255,255,255,0.85); }
.three li:nth-child(3) h3 small { color: var(--cyan); }
.three li:nth-child(3) .three-n { -webkit-text-stroke-color: rgba(255,255,255,0.35); }

.dorn { padding: clamp(5rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem); }
.dorn-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.dorn-head .h3 { margin: 0; }
.dorn-quote { font-size: 1.05rem; color: var(--muted); max-width: 30em; padding: 1.25rem 1.4rem; background: var(--paper); border-radius: 14px; position: relative; }
.dorn-quote::before { content: 'Poznatek z praxe'; position: absolute; top: -0.7rem; left: 1.2rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--signal); color: #fff; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-inline: max(1.75rem, calc((100vw - 1320px) / 2)); scroll-padding-inline: max(1.75rem, calc((100vw - 1320px) / 2)); }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.dragging * { pointer-events: none; }
.strip-track { display: flex; gap: 0.75rem; width: max-content; }
.card { width: clamp(220px, 19vw, 270px); scroll-snap-align: start; }
.card figure { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #8EABF2; }
.card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.06); mix-blend-mode: multiply; transition: filter 0.6s var(--ease), transform 1s var(--ease); }
.card:hover img { filter: none; mix-blend-mode: normal; transform: scale(1.04); }
.card-n { display: block; margin: 0.9rem 0 0.35rem; font-family: var(--f-mono); font-size: 0.7rem; color: var(--blue); letter-spacing: 0.06em; }
.card p { font-size: 0.92rem; line-height: 1.45; }
.strip-hint { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.strip-hint i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.strip-hint i::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--sp, 0.12)); transition: transform 0.2s linear; }

/* ═══ METODY ═══ */
.methods { padding: var(--section) 0; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.7s var(--ease), content-visibility 0.7s allow-discrete; }
.acc-item[open]::details-content { block-size: auto; }
.acc-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto 2.5rem; align-items: center; gap: 1rem;
  padding: clamp(1.3rem, 2.3vw, 2rem) 0;
  transition: padding 0.6s var(--ease), color 0.3s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { padding-left: 0.75rem; }
.acc-item summary:hover .acc-t { color: var(--blue); }
.acc-n { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.acc-t { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; transition: color 0.3s; }
.acc-t small { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-left: 0.6rem; vertical-align: middle; }
.acc-k { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.acc-item:nth-child(-n+3) .acc-k { background: var(--ink); border-color: var(--ink); color: var(--dark-text); }
.acc-i { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 50%; border: 1px solid var(--line); transition: transform 0.6s var(--ease), background 0.3s, color 0.3s; }
.acc-item[open] .acc-i { transform: rotate(45deg); background: var(--blue); color: #fff; border-color: var(--blue); }
.acc-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 5rem); padding: 0 0 clamp(2rem, 3.5vw, 3rem) 4.5rem; }
.acc-body p { color: var(--muted); max-width: 40em; margin-bottom: 1rem; }
.acc-body p.small { font-size: var(--small); }
.dx { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.25rem; }
.dx li { font-size: 0.82rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.acc-fig img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; }
.acc-fig figcaption { margin-top: 0.6rem; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }

/* ═══ PERLY ═══ */
.pearls { position: relative; background: var(--blue); color: #fff; padding: clamp(7rem, 14vw, 12rem) 0 clamp(6rem, 11vw, 9rem); overflow: clip; --q: 0; }
@supports (animation-timeline: view()) {
  .pearls { animation: align linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  @keyframes align { from { --q: 0; } to { --q: 1; } }
}
.pearl-string { position: absolute; left: 0; right: 0; top: clamp(3rem, 6vw, 5rem); height: 80px; display: flex; justify-content: space-between; align-items: center; padding-inline: 2vw; }
.pearl-string::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,0.35); opacity: var(--q); }
.pearl-string i {
  width: clamp(18px, 2.6vw, 34px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 12%, #E8F1FF 30%, #B9CCF4 70%, #8FA9E8 100%);
  box-shadow: 0 6px 14px rgba(10,18,32,0.25);
  transform: translateY(calc(var(--y) * (1 - var(--q)) * 1px));
  position: relative;
}
.pearls-copy { position: relative; }
.pearls-big { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.8rem, 7vw, 7rem); letter-spacing: -0.05em; line-height: 0.95; max-width: 13ch; margin-bottom: 2rem; }
.pearls-small { font-size: clamp(1.1rem, 1.4vw, 1.3rem); max-width: 34em; color: rgba(255,255,255,0.85); }
.pearls .tag { color: rgba(255,255,255,0.75); }
.pearls .tag-seg { color: #fff; }

/* ═══ TERMÍNY ═══ */
.dates { padding: var(--section) 0; }
.dates-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.sched-h { font-size: 1.6rem; margin: 0 0 1rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.sched-h small { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rows { border-top: 1px solid var(--line); margin-bottom: 3rem; }
.rows li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.rows li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 6%, transparent), transparent); }
.rows time { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 500; color: var(--blue); padding-top: 0.2rem; }
.rows b { display: block; font-weight: 600; font-size: 1.05rem; }
.rows span { display: block; font-size: 0.88rem; color: var(--muted); }
.price { position: sticky; top: 6rem; background: var(--ink); color: var(--dark-text); border-radius: var(--r); padding: clamp(1.75rem, 3vw, 2.5rem); }
.price h3 { font-size: 2rem; margin-bottom: 1.25rem; }
.price dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--dark-line); }
.price dt { font-weight: 500; font-size: 0.95rem; }
.price dt small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--dark-muted); }
.price dd { font-family: var(--f-mono); font-size: 0.9rem; white-space: nowrap; color: var(--cyan); }
.price-note { font-size: 0.78rem; color: var(--dark-muted); margin: 1.25rem 0 1.5rem; }

/* ═══ KONTAKT ═══ */
.contact { background: var(--dark); color: var(--dark-text); padding: var(--section) 0; }
.contact .h2 em { color: var(--cyan); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.big-phone { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.8rem, 6vw, 5.4rem); letter-spacing: -0.05em; line-height: 1; margin: 2rem 0 0.75rem; transition: color 0.3s; }
.big-phone:hover { color: var(--cyan); }
.mail { font-family: var(--f-mono); font-size: 1rem; color: var(--dark-muted); border-bottom: 1px solid var(--dark-line); transition: color 0.3s, border-color 0.3s; }
.mail:hover { color: var(--dark-text); border-color: var(--cyan); }
.where { margin-top: 3rem; border-top: 1px solid var(--dark-line); }
.where > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--dark-line); }
.where dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); padding-top: 0.25rem; }
.where dd small { display: block; color: var(--dark-muted); font-size: 0.85rem; }
.book { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(1.75rem, 3.2vw, 2.75rem); box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.book h3 { font-size: 2.1rem; margin-bottom: 1.5rem; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chips legend { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.f { display: flex; flex-direction: column; gap: 0.35rem; }
.f--wide { grid-column: 1 / -1; }
.f span { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.f input, .f textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 0.25s, box-shadow 0.25s; resize: vertical; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.f.invalid input { border-color: var(--signal); }
.form-note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--muted); }
.form-note.ok { color: var(--blue); font-weight: 500; }
.place { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.75rem; margin-top: clamp(3.5rem, 7vw, 6rem); }
.place figure, .map { border-radius: var(--r); overflow: hidden; height: clamp(260px, 30vw, 420px); background: var(--dark-2); }
.place img { width: 100%; height: 100%; object-fit: cover; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) hue-rotate(180deg) contrast(0.9) brightness(0.95); }

/* ═══ FOOTER ═══ */
.footer { padding: clamp(5rem, 10vw, 8rem) 0 2rem; }
.footer-big { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.4rem, 10vw, 10rem); letter-spacing: -0.06em; line-height: 0.88; margin-bottom: clamp(3rem, 6vw, 5rem); }
.footer-big em { font-style: normal; color: var(--blue); }
.footer-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.footer-row a:hover { color: var(--blue); }
.footer-legal { padding-top: 1.5rem; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }

/* ═══ REVEAL ═══ */
.js .reveal, .js .reveal-group .reveal-item { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in, .js .reveal-group.in .reveal-item { opacity: 1; transform: none; }
.js .reveal-group.in .reveal-item:nth-child(2) { transition-delay: 0.08s; }
.js .reveal-group.in .reveal-item:nth-child(3) { transition-delay: 0.16s; }
.js .reveal-group.in .reveal-item:nth-child(4) { transition-delay: 0.24s; }
.js .reveal-group.in .reveal-item:nth-child(5) { transition-delay: 0.32s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1180px) {
  .spine-progress { display: none; }
  .nav-menu { gap: 1.1rem; }
  .nav-menu a:nth-child(3) { display: none; }
}
@media (max-width: 960px) {
  :root { --wrap: min(1320px, 100% - 2.5rem); }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 101;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem;
    padding: 6rem 1.5rem 3rem;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transition: opacity 0.4s; }
  .nav-menu a:not(.btn), .nav-menu a:nth-child(3) { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
  .nav-menu .btn { margin-top: 1.5rem; }

  .hero { min-height: auto; padding-top: 7.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .spine-fig { justify-self: end; margin-right: 3.5rem; margin-top: 1rem; }
  .readout { left: -1.5rem; }

  .head--split, .results-grid, .about-grid, .dorn-head, .dates-grid, .contact-grid, .place, .acc-body { grid-template-columns: 1fr; }
  .doors { flex-direction: column; height: auto; }
  .door, .door.is-open { flex: none; min-height: 460px; cursor: default; }
  .door-more { grid-template-rows: 1fr; opacity: 1; }
  .door .door-img img { filter: grayscale(0.15) contrast(1.05); mix-blend-mode: normal; transform: none; }
  .facts { grid-template-columns: 1fr; gap: 2rem; }
  .ba { grid-template-columns: 1fr 1fr; }
  .ba figure:last-child { grid-column: 1 / -1; }
  .three { grid-template-columns: 1fr; }
  .three li { min-height: 15rem; }
  .acc-body { padding-left: 0; }
  .acc-item summary { grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem; }
  .acc-k { display: none; }
  .acc-t small { display: block; margin: 0.35rem 0 0; }
  .price { position: static; }
  .footer-row { grid-template-columns: 1fr; }
}
@supports (animation-timeline: view()) {
  @media (max-width: 960px) {
    .hero { timeline-scope: --spine; animation-timeline: --spine; animation-range: entry 85% contain 75%; }
    .spine-fig { view-timeline-name: --spine; }
  }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 0; }
  .hero-title { font-size: clamp(3.3rem, 16vw, 4.6rem); }
  .spine-fig { transform: scale(0.82); transform-origin: top right; margin-right: 2.5rem; margin-bottom: -6rem; }
  .seg-lab { left: calc(50% + 50px); font-size: 0.58rem; }
  .readout { left: -0.5rem; top: 4%; }
  .xray { gap: 0.5rem; }
  .fields { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; gap: 0.25rem; }
  .where > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .ba { grid-template-columns: 1fr; }
  .pearl-string i:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .ticker-track { animation: none !important; }
  .hero { animation: none !important; --p: 1; }
  .pearls { animation: none !important; --q: 1; }
}
