/* ------------------------------------------------------------------
   Jan Chalupník — osobní web
   Tokeny
------------------------------------------------------------------ */
:root {
  --ink: #0a0b10;        /* pozadí */
  --ink-2: #12141b;      /* karty, panely */
  --ink-3: #1a1d26;      /* hover panelů */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f7;
  --muted: #8b90a0;
  --accent: #f2a93b;     /* teplý jantar – ladí s podsvícením na fotce */
  --accent-ink: #0a0b10;
  --accent-soft: rgba(242, 169, 59, 0.14);

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  /* štítky a drobné popisky: stejný grotesk jako text, jen verzálky a prostrkání */
  --font-mono: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-alt: "Poppins", "Instrument Sans", system-ui, sans-serif;   /* barevné karty v O mně */

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------
   Základ
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------------
   Typografie
------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__lead {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 56ch;
}
.section__lead a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s;
}
.section__lead a:hover { border-color: var(--accent); }

/* ------------------------------------------------------------------
   Tlačítka
------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--accent-ink); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.btn--small { padding: 10px 16px; font-size: 14px; }

/* ------------------------------------------------------------------
   Navigace
------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 11, 16, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
  padding-block: 10px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 12px; }
.nav__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}
.nav__name { font-weight: 600; font-size: 15px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative; font-size: 15px; color: var(--muted);
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: var(--accent); transition: right 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }

.nav__links a { white-space: nowrap; }
/* burger + mobilní menu (Figma: Finál · Mobil 390) */
.nav__burger { display: none; }
.nav__menu { display: none; }
@media (max-width: 719px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .nav__burger span { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-open { background: rgba(10, 11, 16, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
  .nav__menu:not([hidden]) {
    display: grid; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px var(--gutter) 24px;
    background: rgba(10, 11, 16, 0.96); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .nav__menu a:not(.btn) { padding: 12px 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { justify-self: start; margin-top: 16px; }
}

/* ------------------------------------------------------------------
   Hero – střed (podle Figma „Hero A – Střed-custome“)
------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 96px; padding-bottom: 32px;
  overflow: hidden;
}
/* fialová záře vlevo dole: „pacman“ (výseč 267°, ústí ~93°) jako ve Figmě, pomalu se přelévá.
   Tvar dělá maska na ::before, rozmazání je na obalu, aby byl výřez měkký. */
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  left: -90px; bottom: -10px; width: 460px; height: 460px;
  opacity: 0.6;
  filter: blur(46px);
}
.hero__glow::before, .contact__glow--purple::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #a900f1, #3a0065);
  border-radius: 50%;
  -webkit-mask: conic-gradient(from var(--mouth, 15deg), transparent 0 93deg, #000 93deg 360deg);
          mask: conic-gradient(from var(--mouth, 15deg), transparent 0 93deg, #000 93deg 360deg);
  animation: blob 16s ease-in-out infinite alternate;
  will-change: border-radius, transform;
}
@keyframes blob {
  0%   { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; transform: translate(30px, -24px) rotate(10deg) scale(1.08, 0.96); }
  50%  { border-radius: 55% 45% 44% 56% / 46% 56% 44% 54%; transform: translate(60px, 14px) rotate(-6deg) scale(0.97, 1.06); }
  75%  { border-radius: 44% 56% 54% 46% / 52% 46% 54% 48%; transform: translate(24px, 36px) rotate(14deg) scale(1.05); }
  100% { border-radius: 52% 48% 46% 54% / 54% 48% 52% 46%; transform: translate(-16px, 8px) rotate(-10deg) scale(1.03, 0.95); }
}
.hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
/* fotka vpravo, 20 % jako pozadí; barva jen pod reflektorem */
.hero__media {
  position: absolute; z-index: 1; right: 0; bottom: 0;
  height: min(854px, calc(100% - 14px));
  pointer-events: none;
}
.spot {
  position: relative; height: 100%;
  --mx: 50%; --my: 38%; --r: 150px;
  --mouth: 30deg;   /* natočení „pusy“ pacmana; JS ho otáčí po směru pohybu myši */
  /* pacman: výseč s ústím ~95°, okraje ústí lehce rozmazané (80→100° a 340→360°) */
  --pac: conic-gradient(from var(--mouth) at var(--mx) var(--my), transparent 0deg 80deg, #000 100deg 340deg, transparent 360deg);
}
.spot picture { display: block; height: 100%; }
.spot img {
  display: block; width: auto; height: 100%; max-width: none;
  object-fit: contain; object-position: bottom;
  transform: scaleX(-1);          /* zrcadlově – kouká na text */
}
.spot__bw { opacity: 0.2; filter: grayscale(1) contrast(1.05); }
.spot__color {
  position: absolute; inset: 0; z-index: 1; opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 35%, transparent 100%), var(--pac);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 35%, transparent 100%), var(--pac);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.spot__glow {
  position: absolute; z-index: 0;
  left: var(--mx); top: var(--my);
  width: calc(var(--r) * 3.2); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242, 169, 59, 0.28), transparent 60%);
  -webkit-mask-image: conic-gradient(from var(--mouth), transparent 0deg 80deg, #000 100deg 340deg, transparent 360deg);
          mask-image: conic-gradient(from var(--mouth), transparent 0deg 80deg, #000 100deg 340deg, transparent 360deg);
  filter: blur(10px);
  pointer-events: none;
}
@media (max-width: 959px) {
  .hero__media { height: 56%; right: -30%; }
  .spot__bw { opacity: 0.14; }
  .spot__color { opacity: 0.28; }
  .hero__glow { left: -170px; bottom: auto; top: 46%; width: 360px; height: 360px; filter: blur(36px); }
}
@media (min-width: 960px) {
  .hero { padding-bottom: 0; }
  .hero__inner { padding-bottom: 72px; }
  .hero .hero__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin-top: 0; padding-bottom: 20px; }
}

.hero__eyebrow { margin-bottom: 28px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-inline: auto;
}
.hero__line { display: block; }
.hero__line:nth-child(2) { color: var(--text); }
@media (min-width: 960px) { .hero__title { max-width: none; } }

.hero__lead {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
}
.hero__lead strong { font-weight: 700; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
ul.hero__socials[role="list"] {
  display: flex; gap: 10px; margin-top: 44px; padding: 0; list-style: none;
}
.hero__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color var(--dur, .25s) var(--ease, ease), transform var(--dur, .25s) var(--ease, ease);
}
.hero__socials a:hover { border-color: #fff; transform: translateY(-2px); }
.hero__socials img { display: block; width: 18px; height: 18px; }

.hero__foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll-bar {
  display: inline-block; width: 48px; height: 1px; background: var(--line-strong);
  position: relative; overflow: hidden;
}
.hero__scroll-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%);
  animation: scrollbar 2.2s var(--ease) infinite;
}
@keyframes scrollbar {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@media (max-width: 720px) {
  .hero__foot .mono:last-child { display: none; }
}

/* --- Signatura: výběrový rámeček z grafického editoru --------------- */
.word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: var(--accent);
  vertical-align: baseline;
}
.word__text { display: inline-block; }

.frame {
  position: absolute;
  inset: 0.02em -0.08em -0.06em -0.08em;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.frame__h {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 2px;
}
.frame__h--tl { top: -6px; left: -6px; }
.frame__h--tr { top: -6px; right: -6px; }
.frame__h--bl { bottom: -6px; left: -6px; }
.frame__h--br { bottom: -6px; right: -6px; }
.frame__label {
  position: absolute;
  left: calc(100% + 0.8em); top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
}
@media (max-width: 720px) {
  .frame__h { width: 8px; height: 8px; }
  .frame__h--tl, .frame__h--tr { top: -5px; } .frame__h--tl, .frame__h--bl { left: -5px; }
  .frame__h--bl, .frame__h--br { bottom: -5px; } .frame__h--tr, .frame__h--br { right: -5px; }
  .frame__label { display: none; }
}

/* statická varianta pro portrét */
.frame--static { inset: -8px; border-width: 1.5px; opacity: 0.9; }
.frame--static .frame__h--tl { top: -6px; left: -6px; }

/* ------------------------------------------------------------------
   Sekce
------------------------------------------------------------------ */
.section { padding-block: clamp(80px, 10vw, 140px); }

.section__head {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 860px) {
  .section__head { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}
.section__foot { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }

/* ------------------------------------------------------------------
   Projekty
------------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .card:nth-child(even) { transform: translateY(72px); }
  .grid { padding-bottom: 72px; }
}

.card__link { display: block; color: inherit; }

.card__media {
  position: relative;
  aspect-ratio: 1616 / 1264;   /* poměr coverů na Behance */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.card__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* na hoveru se karta „vybere“ jako vrstva v editoru */
.card__frame {
  position: absolute; inset: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.3s, transform 0.5s var(--ease);
  pointer-events: none;
}
.card__frame::before, .card__frame::after,
.card__dim::before, .card__dim::after {
  content: ""; position: absolute; width: 8px; height: 8px;
  background: var(--ink); border: 1.5px solid var(--accent); border-radius: 2px;
}
.card__frame::before { top: -5px; left: -5px; }
.card__frame::after { top: -5px; right: -5px; }
.card__dim::before { bottom: -5px; left: -5px; }
.card__dim::after { bottom: -5px; right: -5px; }
.card__dim {
  position: absolute; inset: 0;
  font-size: 11px; letter-spacing: 0.04em; text-transform: none;
}
.card__dim-label {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 7px; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.2; white-space: nowrap;
}
.card__link:hover .card__frame,
.card__link:focus-visible .card__frame { opacity: 1; transform: scale(1); }

.card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 4px 0;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.25s;
}
.card__link:hover .card__title { color: var(--accent); }
.card__tags { white-space: nowrap; }
@media (max-width: 480px) {
  .card__meta { flex-direction: column; gap: 6px; }
}

/* ------------------------------------------------------------------
   O mně (Figma: O mně M4 · Svislá metro + karty)
------------------------------------------------------------------ */
.section--about { border-top: 1px solid var(--line); }
.about__head { display: grid; gap: 20px; }
.about__head .eyebrow { margin-bottom: 18px; }
.about__title { max-width: 22ch; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.about__intro { color: var(--muted); font-size: clamp(15px, 1.2vw, 16px); line-height: 1.6; max-width: 62ch; }
@media (min-width: 960px) {
  .about__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .about__intro { padding-top: 36px; }
}
.about__grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; gap: 56px;
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}

/* svislá metro osa */
.metro { list-style: none; margin: 0; padding: 0; }
.metro__stop {
  position: relative;
  display: grid; grid-template-columns: clamp(108px, 11vw, 160px) 1fr; column-gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding-left: 42px;
  padding-bottom: clamp(36px, 5vw, 68px);
}
.metro__stop:last-child { padding-bottom: 0; }
/* kolečko */
.metro__stop::before {
  content: ""; position: absolute; left: 0; top: 22px; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%;
  border: 4px solid var(--accent); background: var(--ink);
  box-sizing: border-box;
}
/* linka k další zastávce */
.metro__stop:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 32px; bottom: -32px;
  width: 6px; background: var(--accent); border-radius: 3px;
}
.metro__year {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em;
}
.metro__stop--dim .metro__year { opacity: 0.3; }
.metro__text { display: grid; gap: 4px; padding-top: 0.55em; }
.metro__range { color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.metro__role { font-family: var(--font-alt); font-weight: 700; font-size: 16px; line-height: 1.3; }
.metro__org { font-family: var(--font-alt); font-weight: 300; font-size: 14px; line-height: 1.3; color: var(--muted); }
@media (max-width: 479px) {
  .metro__stop { grid-template-columns: 96px 1fr; column-gap: 12px; padding-left: 34px; padding-bottom: 32px; }
  .metro__year { font-size: 40px; }
  .metro__stop::before { top: 12px; width: 18px; height: 18px; }
  .metro__stop:not(:last-child)::after { left: 6px; top: 22px; bottom: -22px; width: 5px; }
  .metro__text { padding-top: 2px; }
}

/* karty */
.story { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__card--wide { grid-column: span 2; }
}
.story__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  color: var(--text);
}
.story__card--amber  { background: var(--accent); color: var(--ink); }
.story__card--purple { background: linear-gradient(45deg, #a900f1 0%, #3a0065 100%); }
.story__card--dark   { background: var(--ink-2); border: 1px solid var(--line-strong); }
.story__num { font-family: var(--font-alt); font-weight: 300; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 12px; }
.story__title {
  font-family: var(--font-alt); font-weight: 700;
  font-size: clamp(24px, 2vw, 28px); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}
.story__title--display { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.story__text { color: var(--muted); font-size: 14px; line-height: 1.6; }

.story__card--photo { min-height: 380px; }
.story__card--stat { min-height: 230px; }
@media (min-width: 560px) { .story__card--photo, .story__card--stat { min-height: 400px; } }
.story__card--photo .story__title { max-width: 11ch; position: relative; z-index: 1; }
.story__photo { position: absolute; right: -6px; bottom: -8px; width: min(66%, 220px); pointer-events: none; }
.story__photo img { display: block; width: 100%; height: auto; }
.story__pill {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  padding: 7px 16px; border-radius: 999px;
  background: var(--ink); color: var(--text);
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.story__card--stat { justify-content: space-between; }
.story__big {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em;
}
.story__label { display: block; margin-top: 12px; color: var(--accent); }
.story__card--cv { min-height: 240px; justify-content: space-between; }
.story__card--cv .story__title { max-width: 16ch; position: relative; z-index: 1; }
.story__btn { align-self: flex-start; margin-top: 28px; position: relative; z-index: 1; background: var(--accent); color: var(--accent-ink); }
.story__btn:hover { background: var(--text); color: var(--ink); }
.story__ghost {
  position: absolute; right: -14px; bottom: -0.2em; z-index: 0;
  font-family: var(--font-alt); font-weight: 700;
  font-size: clamp(170px, 16vw, 216px); line-height: 1; letter-spacing: -0.06em;
  color: #fff; opacity: 0.18; pointer-events: none; user-select: none;
}
.story .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.story .chips li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; line-height: 1.3;
}

/* ------------------------------------------------------------------
   Kontakt (Figma: Kontakt C – Střed s tlačítkem)
------------------------------------------------------------------ */
.section--contact {
  position: relative; overflow: hidden;
  padding-block: clamp(120px, 16vw, 240px) clamp(96px, 12vw, 160px);
}
.contact { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.contact__glow--amber {
  left: 50%; top: 18%; width: min(1000px, 120vw); height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 169, 59, 0.35), rgba(242, 169, 59, 0));
  filter: blur(60px);
}
.contact__glow--purple { width: 460px; height: 460px; border-radius: 0; opacity: 0.6; filter: blur(46px); }
.contact__glow--tl { left: -70px; top: -60px; --mouth: 75deg; }
.contact__glow--br { right: -100px; bottom: -120px; --mouth: 345deg; }
.contact__glow--br::before { animation-delay: -8s; }
.contact__title {
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6.7vw, 96px); line-height: 1; letter-spacing: -0.035em;
  text-wrap: balance;
}
.contact__lead { margin-top: 32px; max-width: 560px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; }
.contact__mail {
  margin-top: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 36px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 2.1vw, 30px); letter-spacing: -0.01em; line-height: 1.1;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.contact__mail:hover { transform: translateY(-3px); background: var(--text); }
ul.socials[role="list"] { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500;
  transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.socials a:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 559px) {
  .contact__mail { align-self: stretch; padding: 18px 20px; }
  .contact__glow--purple { width: 300px; height: 300px; opacity: 0.45; filter: blur(36px); }
  .contact__glow--tl { left: -180px; top: 30%; }
  .contact__glow--br { right: -180px; bottom: -120px; }
  .contact__glow--amber { top: 6%; height: 420px; }
}

/* ------------------------------------------------------------------
   Patička
------------------------------------------------------------------ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 22px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer__partner { color: var(--muted); font-size: 13px; }
.footer__partner a { color: var(--text); font-weight: 600; }
.footer__partner a:hover { color: var(--accent); }
.footer__top { color: var(--text); }
.footer__top:hover { color: var(--accent); }
@media (max-width: 719px) {
  .footer__partner { order: 3; width: 100%; text-align: center; }
}

/* ------------------------------------------------------------------
   Animace: výchozí stavy (JS je přepíše). Bez JS je vše vidět.
------------------------------------------------------------------ */
.js [data-intro], .js [data-reveal] { opacity: 0; }
.js .frame { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-intro], .js [data-reveal], .js .frame { opacity: 1 !important; transform: none !important; }
  .hero__scroll-bar::after { animation: none; transform: none; }
  .hero__glow::before, .contact__glow--purple::before { animation: none; }
  .card__media img, .btn, .socials a, .contact__mail { transition: none; }
}


/* ------------------------------------------------------------------
   Pop-up: detail reference
------------------------------------------------------------------ */
.popup {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 11, 16, 0.96);
  color: var(--text);
  overflow: hidden;
}
.popup::backdrop { background: rgba(10, 11, 16, 0.6); backdrop-filter: blur(12px); }
.popup[open] { animation: popup-in 0.45s var(--ease); }
@keyframes popup-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.has-popup { overflow: hidden; }

.popup__scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(64px, 8vw, 96px) var(--gutter) clamp(48px, 6vw, 96px);
}
.popup__close {
  position: fixed; top: 24px; right: clamp(16px, 4vw, 64px); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10, 11, 16, 0.7); color: var(--accent);
  border: 1.5px solid var(--accent); cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.popup__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

.popup__head {
  width: min(640px, 100%); margin-inline: auto; text-align: center;
}
.popup__eyebrow { color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; font-weight: 500; }
.popup__title {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance;
}
.popup__intro { margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.3vw, 17px); line-height: 1.6; }
.popup__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.popup__tags { margin-top: 24px; color: var(--muted); font-size: 13px; }

.popup__gallery {
  width: min(920px, 100%); margin: clamp(40px, 5vw, 64px) auto 0;
  background: var(--ink-2);
  border-radius: 20px; overflow: hidden;
}
.popup__gallery img, .popup__gallery video { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .popup[open] { animation: none; }
  .popup__close:hover { transform: none; }
}
