:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --ink: #f3f1ec;
  --ink-dim: #8a8780;
  --ink-faint: #4a4844;
  --accent: #ff3b3b;
  --accent-2: #ffd23f;
  --accent-3: #3fcf8e;
  --accent-4: #4d8cff;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.18);
  --pad-x: clamp(20px, 4vw, 64px);
  --maxw: 1480px;
}

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

html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* App scaffold ----------------------------------------------------------- */

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.about, .reviews, .skills, .gallery, .footer {
  background: #161618;
  position: relative;
  z-index: 1;
}

/* Nav ------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 18px var(--pad-x) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-back {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: var(--ink-faint);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}
.nav-back:hover {
  color: var(--ink);
  transform: translateX(-3px);
}

.nav-logo {
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav-logo span { color: var(--ink); margin-left: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}

/* Hero ------------------------------------------------------------------ */

.hero-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(100px, 14vh, 160px) var(--pad-x) clamp(60px, 8vh, 100px);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  margin-bottom: 32px;
}
.hero-tag-dot { width: 8px; height: 8px; border-radius: 999px; }

.hero-title {
  font-family: "Archivo Black", "Helvetica Neue", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
}

.hero-title--stacked {
  font-size: clamp(36px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 32px;
}
.hero--stacked .hero-sub { max-width: 560px; color: var(--ink-dim); font-size: 17px; line-height: 1.5; }
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.hero-meta-key { color: var(--ink-faint); margin-right: 6px; }

.hero-title--inline {
  font-size: clamp(28px, 5.5vw, 90px);
  margin-bottom: 64px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.hero-meta--col { flex-direction: column; gap: 12px; margin-top: 0; }

.hero-title--outline {
  font-size: clamp(36px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 32px;
}
.outline-word {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.outline-word.filled {
  -webkit-text-stroke: 0;
  color: var(--ink);
}

.hero-title--massive {
  font-size: clamp(48px, 9vw, 150px);
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 64px;
}
.hero-massive-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-massive-index {
  font-family: "Archivo Black", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-dim);
  text-align: right;
}
.hero--inline .hero-sub,
.hero--outline .hero-sub,
.hero--massive .hero-sub { color: var(--ink-dim); max-width: 460px; }

/* Section heads --------------------------------------------------------- */

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-head-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.section-head-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.section-head-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

.about {
  position: relative;
  overflow: hidden;
  padding: 50px 0 70px;
}

.about-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Video fills the remaining 33% exactly */
.about-video-wrap {
  position: absolute;
  top: 0;
  left: 67%;
  height: 100%;
  width: 33%;
  z-index: 0;
}

.about-video {
  display: block;
  width: 90%;
  height: 115%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 25px;
}

/* Text left panel */
.about-left {
  position: relative;
  z-index: 2;
  width: 67%;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
}

.about .section-head {
  max-width: none;
  margin: 0 0 56px;
  padding: 0 0 20px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}

.about-text p:not(:first-child) {
  opacity: 0.75;
}

/* Reviews --------------------------------------------------------------- */

.reviews {
  padding: 50px 0;
  position: relative;
}

.reviews-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: #1a1a1c;
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s;
}
.review-card:hover {
  border-color: var(--rule-strong);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar span {
  font-family: "Archivo Black", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.review-name {
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.review-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.review-stars {
  display: flex;
  gap: 3px;
}
.review-star {
  font-size: 16px;
  line-height: 1;
}
.review-star--on  { color: #ffd23f; }
.review-star--off { color: var(--ink-faint); }

.review-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  flex: 1;
}

.review-link {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: #7ac4f7;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.review-link:hover { color: #aadcff; }

/* Skills ---------------------------------------------------------------- */

.skills {
  padding: 50px 0;
  position: relative;
}
.skill-groups {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.skill-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.skill-group-num {
  font-family: "Archivo Black", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.skill-group-label {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.skill-group-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}
.skill-group-line { flex: 1; height: 1px; opacity: 0.5; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.skill-card {
  background: rgba(10,10,11,0.78);
  backdrop-filter: blur(2px);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: background 0.2s;
  cursor: default;
}
.skill-card:hover {
  background: rgba(20,20,22,0.85);
}
.skill-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,0,0,0.5));
}
.skill-icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.skill-icon--svg svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}
.skill-fallback {
  width: 36px; height: 36px;
  border: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.skill-card-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* Gallery --------------------------------------------------------------- */

.gallery { padding: 50px 0; }
.gallery-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  display: block;
  position: relative;
  cursor: pointer;
}
.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1c;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover .gallery-thumb {
  border-color: var(--rule-strong);
  transform: translateY(-4px);
}
.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover .gallery-thumb-img { transform: scale(1.04); }
.gallery-thumb-empty {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #1a1a1c,
    #1a1a1c 10px,
    #141416 10px,
    #141416 20px
  );
}
.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
}
.gallery-meta {
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: baseline;
}
.gallery-meta-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.gallery-meta-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.gallery-item-title {
  padding: 10px 0 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.gallery-meta-foot {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
}

/* Project modal --------------------------------------------------------- */

/* Detail projektu -------------------------------------------------------- */

.pm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 6, 7, 0.86);
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.5vw, 34px);
}

.pm {
  position: relative;
  width: min(1240px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(18px, 2.4vw, 30px);
}

/* Horní lišta ------------------------------------------------------------ */

.pm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pm-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  min-width: 0;
}

.pm-switch-sep {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
  flex-shrink: 0;
}

.pm-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.pm-nav:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.pm-nav-arrow { font-size: 16px; line-height: 1; flex-shrink: 0; }

.pm-nav-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pm-close:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.05);
}

/* Název ------------------------------------------------------------------ */

.pm-title {
  font-family: 'Archivo Black', Impact, sans-serif;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.pm-date { color: var(--ink-dim); font-weight: 400; }

/* Tělo — vlevo informace, vpravo screenshoty ------------------------------ */

.pm-body {
  display: grid;
  grid-template-columns: minmax(200px, 270px) 1fr;
  gap: clamp(20px, 2.6vw, 38px);
  padding-top: 22px;
}

.pm-aside {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-right: 1px solid var(--rule);
  padding-right: clamp(16px, 2vw, 30px);
}

.pm-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pm-note {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-dim);
}

.pm-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-tool {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.pm-tool .skill-icon { width: 17px; height: 17px; object-fit: contain; }

.pm-tool-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* Screenshoty ------------------------------------------------------------ */

.pm-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pm-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(90px, auto);
  gap: 10px;
}

/* Hlavní screen zabírá čtverec 2×2, ostatní se dosypou kolem něj */
.pm-shot--main { grid-column: span 2; grid-row: span 2; }

.pm-shot {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.18s ease;
}

.pm-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pm-shot:hover { border-color: var(--rule-strong); }
.pm-shot:hover img { transform: scale(1.04); }

.pm-foot { margin-top: auto; display: flex; justify-content: flex-end; }

.pm-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  border-radius: 8px;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.pm-link:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* Responzivita ----------------------------------------------------------- */

@media (max-width: 900px) {
  .pm-body { grid-template-columns: 1fr; gap: 24px; }

  .pm-aside {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-bottom: 24px;
    gap: 22px;
  }

  .pm-shots { grid-template-columns: repeat(2, 1fr); }
  .pm-shot--main { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
}

@media (max-width: 620px) {
  /* Na úzkém displeji zabírají názvy sousedních projektů moc místa */
  .pm-nav-name { display: none; }
  .pm-nav { padding: 6px 10px; }
  .pm { padding: 16px; }
}

/* Image lightbox -------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: rgba(255,255,255,0.5); }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.lightbox-arrow:hover { color: var(--ink); }
.lightbox-arrow--prev { left: 20px; }
.lightbox-arrow--next { right: 20px; }
.lightbox-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-dot--on { background: var(--ink); }

/* Footer ---------------------------------------------------------------- */

.footer {
  margin-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--rule);
  background: rgba(0,0,0,0.4);
}
.footer-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.footer-marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad-x);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.footer-key {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #d9d9d9;
  margin-bottom: 16px;
}
.footer-big {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.footer-big:hover { border-bottom-color: var(--accent); }
.footer-list { list-style: none; }
.footer-list li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.footer-list a { font-size: 14px; color: #d9d9d9; transition: color 0.15s; }
.footer-list a:hover { color: var(--ink); }
.footer-text { color: #d9d9d9; font-size: 13px; line-height: 1.6; }

/* Hero scroll button (mobile only) --------------------------------------- */

.hero-scroll-btn { display: none; }

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* Canvas touch ----------------------------------------------------------- */

#fluid-canvas { touch-action: none; }

/* Liquid BG — desktop: canvas, mobile: video ----------------------------- */

.liquid-video-mobile { display: none; }
.liquid-canvas-desktop { display: block; }

@media (max-width: 760px) {
  .liquid-video-mobile { display: block; }
  .liquid-canvas-desktop { display: none !important; }
}

/* Hamburger button (hidden on desktop) ----------------------------------- */

.nav-toggle {
  display: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, top 0.25s;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }
.hamburger--open { background: transparent; }
.hamburger--open::before { top: 0; transform: rotate(45deg); }
.hamburger--open::after  { top: 0; transform: rotate(-45deg); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1200px) {
  /* Vedle textu se video už nevejde → skládáme na sebe (text nahoře, video pod ním) */
  .about-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .about-left { width: 100%; padding: 0 var(--pad-x); }

  /* Video zpátky do toku stránky — už není absolutně pozicované,
     takže nemizí a drží svůj původní poměr stran. */
  .about-video-wrap {
    position: static;
    width: 100%;
    height: auto;
    padding: 0 var(--pad-x);
    display: flex;
    justify-content: center;
  }
  /* Výška max 600 px. Šířka se dopočítá z poměru stran (width: auto),
     takže video nezabírá celou šířku stránky. max-width: 100 % ho pak
     ještě zmenší na úzkých telefonech, aby nepřetékalo. */
  .about-video {
    width: auto;
    height: auto;
    max-height: 600px;
    max-width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 760px) {
  /* Nav — hamburger */
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    gap: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 var(--pad-x);
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links--open {
    max-height: 320px;
    opacity: 1;
    padding: 16px var(--pad-x) 20px;
    pointer-events: auto;
  }
  .nav-inner { gap: 16px; }
  .nav-link { font-size: 13px; letter-spacing: 0.12em; }

  /* Hero — interaktivní část max 80 % výšky displeje.
     svh = výška bez lišt prohlížeče, aby to nepřetékalo; vh je fallback. */
  .hero-shell {
    min-height: 80vh;
    min-height: 80svh;
  }
  .hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    min-height: 80svh;
    padding-top: clamp(90px, 12vh, 130px);
    padding-bottom: clamp(48px, 7vh, 80px);
  }

  /* Scroll button */
  .hero-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: clamp(32px, 8vw, 56px);
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: var(--ink);
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .hero-scroll-btn:active {
    background: rgba(255, 255, 255, 0.08);
  }
  .hero-scroll-arrow {
    font-size: 20px;
  }
  .hero-sub { max-width: 100% !important; }
  .hero-meta { justify-content: center; }
  .hero-title--stacked { font-size: clamp(54px, 15vw, 90px); }
  .hero-title--inline  { font-size: clamp(36px, 10vw, 70px); }
  .hero-title--outline { font-size: clamp(54px, 15vw, 90px); }
  .hero-title--massive { font-size: clamp(56px, 16vw, 100px); }
  .hero-massive-index  { text-align: center; }
  .hero-row, .hero-massive-foot { grid-template-columns: 1fr; gap: 24px; }

  /* Modal */

  /* Dekorace — skryté na telefonech */
  /* About text */
  .about-text p { font-size: 17px; }

  /* AOS — vypnuto na telefonech */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Sekce */
  .about    { padding: 20px 0; }
  .reviews  { padding: 20px 0; }
  .skills   { padding: 20px 0; }
  .gallery  { padding: 20px 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer       { margin-top: 20px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 24px; padding: 32px var(--pad-x); }
  .footer-marquee { font-size: 20px; }
  .footer-big { font-size: clamp(14px, 5vw, 20px); }
}

/* iPhone SE a podobná malá rozlišení — vše o 2px menší ------------------- */

@media (max-width: 375px) {
  .nav-logo                 { font-size: 11px; }
  .nav-link                 { font-size: 11px; }
  .hero-title--stacked      { font-size: clamp(46px, 13vw, 80px); }
  .hero-title--inline       { font-size: clamp(32px, 9vw, 62px); }
  .hero-title--outline      { font-size: clamp(46px, 13vw, 80px); }
  .hero-title--massive      { font-size: clamp(48px, 14vw, 88px); }
  .hero-sub                 { font-size: 15px; }
  .hero-meta                { font-size: 9px; }
  .section-head-title       { font-size: clamp(28px, 8vw, 60px); }
  .section-head-num         { font-size: 10px; }
  .section-head-meta        { font-size: 9px; }
  .about-text p             { font-size: 15px; }
  .about-text p:first-child { font-size: 18px; }

  .skill-group-label        { font-size: 18px; }
  .skill-card-name          { font-size: 10px; }
  .review-name              { font-size: 12px; }
  .review-text              { font-size: 13px; }
  .gallery-meta-title       { font-size: 12px; }
  .footer-big               { font-size: clamp(13px, 4.5vw, 18px); }
  .footer-list a            { font-size: 13px; }
  .footer-marquee           { font-size: 18px; }
}

