/* ==========================================================================
   čtvrtečka. — styly webu
   Tmavý základ, tekutý chrom a holo fólie jako akcent.
   ========================================================================== */

/* ---------- Písma (self-hosted) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
@property --holo-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #060609;
  --bg-1: #0b0b11;
  --bg-2: #12121a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f3f6;
  --muted: #9b9ba9;
  --dim: #61616f;

  /* holo fólie: pastelové spektrum jako na holografické nálepce */
  --holo: linear-gradient(115deg, #ff9fd6 0%, #ffd590 17%, #d2ffa3 33%, #8ff3ff 50%, #a3adff 67%, #e8a3ff 84%, #ff9fd6 100%);
  --holo-conic: conic-gradient(from var(--holo-angle), #ff9fd6, #ffd590, #d2ffa3, #8ff3ff, #a3adff, #e8a3ff, #ff9fd6);
  /* tekutý chrom: odraz oblohy, ostrý horizont, odraz země */
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe1ea 26%, #9a9dad 44%, #26272f 51%, #4c4f5d 58%, #b9bcc9 76%, #f6f7fb 92%, #c4c7d3 100%);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --visual-display: "Instrument Serif", Georgia, serif; /* glass-type */

  --pad: clamp(20px, 4.2vw, 64px);
  --maxw: 1480px;
  --r: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* jemné zrno přes celou stránku */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #a3adff; color: #060609; }

:focus-visible {
  outline: 2px solid #a3adff;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Typografie ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--text); font-weight: 500; }

.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.h-xl {
  font-size: clamp(44px, 7.4vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 450;
  margin: 0;
}
.h-lg {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 450;
  margin: 0;
}
.h-md {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 450;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}
.lead strong { color: var(--text); font-weight: 500; }

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.holo-text {
  background: var(--holo);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holo-slide 8s linear infinite;
}
@keyframes holo-slide { to { background-position: -200% 0; } }

/* ---------- Holo tečka (logo) ---------- */
.dot {
  display: inline-block;
  width: 0.27em;
  height: 0.27em;
  margin-left: 0.05em;
  border-radius: 50%;
  vertical-align: baseline;
  position: relative;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0.25) 22%, transparent 46%),
    radial-gradient(circle at 70% 78%, rgba(6, 6, 9, 0.55), transparent 55%),
    var(--holo-conic);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35), 0 0 0.35em rgba(163, 173, 255, 0.35);
  animation: holo-spin 7s linear infinite;
}
@keyframes holo-spin { to { --holo-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .dot, .holo-text { animation: none; }
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 520;
  font-size: 22px;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Tlačítka ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }

.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; }

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

/* tlačítko s holo okrajem */
.btn--holo {
  position: relative;
  background: var(--bg-1);
  isolation: isolate;
}
.btn--holo::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--holo-conic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: holo-spin 6s linear infinite;
}

/* ---------- Navigace ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(14, 14, 21, 0.55);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav .btn { --h: 42px; padding: 0 18px; font-size: 14px; }

.nav__menu { display: none; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 74px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 20px;
    background: rgba(12, 12, 18, 0.92);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav__links a { padding: 14px 16px; font-size: 17px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__cta { display: none; }
  .nav__menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(14, 14, 21, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-size: 14px;
  }
  .nav__menu i {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform 0.3s;
  }
  .nav__menu i::after {
    content: "";
    position: absolute;
    left: 0; top: 5px;
    width: 100%; height: 100%;
    background: currentColor;
    transition: transform 0.3s, top 0.3s;
  }
  .nav.is-open .nav__menu i { transform: translateY(2.5px) rotate(45deg); }
  .nav.is-open .nav__menu i::after { top: 0; transform: rotate(-90deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 36px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* záře za tečkou */
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  right: -18vmax;
  top: -22vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 110, 255, 0.22), rgba(255, 120, 200, 0.08) 45%, transparent 70%);
  filter: blur(10px);
}
.hero::after {
  /* jemná mřížka */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 6vh, 72px);
}

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(60px, 16.2vw, 290px);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.hero__title .serif {
  display: block;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.14em 0.04em;
  color: var(--muted);
}
.hero__name {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

/* chromová kapka = tečka za jménem */
.hero__dot {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.07em;
  flex: none;
}
.hero__dot canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260%;
  height: 260%;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  touch-action: pan-y;
}
/* záložní tečka bez WebGL */
.hero__dot .dot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.hero__dot.has-gl .dot { display: none; }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: clamp(28px, 5vh, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__top { flex-direction: column; gap: 6px; }
}

/* ---------- Sekce ---------- */
.section { padding: clamp(96px, 14vh, 168px) 0; position: relative; }
.section--tight { padding: clamp(64px, 9vh, 112px) 0; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 2fr;
  gap: 24px 40px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-head .label { align-self: start; padding-top: 0.9em; }
.sec-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.count {
  font-family: var(--f-mono);
  font-size: 0.32em;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.2em;
}
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .label { padding: 0; }
}

/* ---------- Statement (text se rozsvěcuje při scrollu) ---------- */
.statement p {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 420;
  max-width: 19em;
}
.statement .w { color: rgba(243, 243, 246, 0.16); transition: color 0.35s; }
.statement .w.on { color: var(--text); }
.statement .w.serif { font-size: 1.08em; }
.no-js .statement .w,
.statement.done .w { color: var(--text); }

/* ---------- Práce (karty) ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.work { grid-column: span 6; }
.work--wide { grid-column: span 7; }
.work--narrow { grid-column: span 5; }
.work--third, .work--s4 { grid-column: span 4; }
.work--s3 { grid-column: span 3; }
@media (max-width: 900px) {
  .work, .work--wide, .work--narrow { grid-column: span 12; }
  .work--third, .work--s3, .work--s4 { grid-column: span 6; }
}
@media (max-width: 560px) { .work--third, .work--s3, .work--s4 { grid-column: span 12; } }

.work__link { display: block; }
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.work--third .work__media { aspect-ratio: 4 / 5; }
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
}
.work__link:hover .work__media img { transform: scale(1.04); }

.work__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px 4px 0;
}
.work__title { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.025em; }
.work__cat { color: var(--muted); font-size: 15px; }
.work__year { font-family: var(--f-mono); font-size: 13px; color: var(--muted); align-self: start; padding-top: 5px; }
.work__arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.work__arrow svg { width: 18px; height: 18px; }
.work__link:hover .work__arrow,
.work__link:focus-visible .work__arrow { transform: none; opacity: 1; }
.work__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- Holo efekt (karty, vizitky, nálepky) ---------- */
.holo {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --o: 0;
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.holo.is-active { transition: transform 0.12s linear; }
.holo__shine,
.holo__glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--o);
  transition: opacity 0.5s;
}
.holo__shine {
  mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(115deg,
      #ff7ac6 0%, #ffcf6e 4%, #b9ff7f 8%, #6cf0ff 12%, #8a8cff 16%, #ff7ac6 20%),
    repeating-linear-gradient(25deg, rgba(0, 0, 0, 0.6) 0 1px, transparent 1px 3px);
  background-size: 400% 400%, 100% 100%;
  background-position: calc(var(--mx) * 1.5) calc(var(--my) * 1.5), 0 0;
  filter: brightness(0.55) contrast(1.6) saturate(1.1);
}
.holo__glare {
  mix-blend-mode: overlay;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.12) 30%, rgba(0, 0, 0, 0.35) 90%);
}
.work .holo__shine { opacity: calc(var(--o) * 0.55); }
@media (hover: none) {
  .holo { transform: none; }
}

/* ---------- Služby + glass-type ---------- */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

.svc { border-top: 1px solid var(--line); }
.svc__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.svc__num { font-family: var(--f-mono); font-size: 13px; color: var(--dim); padding-top: 9px; }
.svc__item h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 460; letter-spacing: -0.03em; }
.svc__item p { grid-column: 2; margin: 0; color: var(--muted); max-width: 30em; }

.glass-card {
  position: sticky;
  top: 96px;
}
.glass-card__frame {
  position: relative;
  aspect-ratio: 1344 / 620;
  border-radius: var(--r);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 80px -30px rgba(120, 110, 255, 0.35);
}
.glass-card__frame > div,
.glass-card__frame canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.glass-card__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

/* ---------- Nástroje (marquee) ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(18px, 3vw, 34px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.05;
  white-space: nowrap;
}
.marquee__track .dot { width: 0.22em; height: 0.22em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- O mně ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about__text p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); margin: 0 0 1em; max-width: 30em; }
.about__text p strong { color: var(--text); font-weight: 500; }
.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about__facts dt { font-family: var(--f-mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.about__facts dd { margin: 6px 0 0; font-size: 17px; }

/* holo průkaz / nálepka */
.idcard {
  width: min(100%, 420px);
  aspect-ratio: 5 / 7;
  margin-inline: auto;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(163, 173, 255, 0.25), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(255, 159, 214, 0.18), transparent 60%),
    #0d0d14;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.idcard .holo__shine { opacity: calc(0.35 + var(--o) * 0.65); }
.idcard__top, .idcard__bottom { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 3; }
.idcard__mark {
  position: relative;
  z-index: 3;
  font-size: clamp(130px, 17vw, 200px);
  font-weight: 560;
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.idcard__mark .dot { width: 0.3em; height: 0.3em; }
.idcard__name { font-size: 22px; letter-spacing: -0.03em; font-weight: 500; line-height: 1.15; }

/* ---------- Kontakt ---------- */
.contact {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  margin: 0 var(--pad);
  padding: clamp(56px, 9vw, 128px) clamp(24px, 6vw, 96px);
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(130, 120, 255, 0.22), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(255, 150, 210, 0.12), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line);
}
.contact__mail {
  display: inline-block;
  margin: 28px 0 40px;
  font-size: clamp(20px, 5.4vw, 84px);
  overflow-wrap: anywhere;
  font-weight: 460;
  letter-spacing: -0.045em;
  line-height: 1;
  word-break: break-all;
  background: var(--chrome);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.8s var(--ease);
}
.contact__mail:hover { background-image: var(--holo); background-size: 200% 100%; animation: holo-slide 4s linear infinite; }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact__row a { display: inline-flex; flex-direction: column; gap: 4px; font-size: 18px; }
.contact__row a span { font-family: var(--f-mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.contact__row a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.contact__row strong { font-weight: 450; }

/* ---------- Patička ---------- */
.footer { padding: clamp(64px, 10vw, 120px) 0 28px; overflow: hidden; }
.footer__word {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: clamp(64px, 19.5vw, 340px);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.8;
  white-space: nowrap;
  user-select: none;
}
.footer__word .chrome-text { padding-bottom: 0.06em; }
.footer__word .dot { width: 0.24em; height: 0.24em; }
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer__row a:hover { color: var(--text); }
.footer__row nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lb {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 4, 7, 0.94);
  color: var(--text);
}
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: fade 0.3s; }
.lb img {
  max-width: min(92vw, 1600px);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 12px;
}
.lb__cap { position: fixed; left: 24px; bottom: 20px; font-size: 15px; color: var(--muted); }
.lb__cap strong { color: var(--text); font-weight: 500; }
.lb__close {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.lb__close:hover { background: rgba(255, 255, 255, 0.08); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Detail projektu ---------- */
.case-hero { padding: 150px 0 0; }
.case-hero__title {
  margin: 18px 0 0;
  font-size: clamp(52px, 10vw, 168px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.case-hero__title .dot { width: 0.2em; height: 0.2em; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.case-meta dt { font-family: var(--f-mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.case-meta dd { margin: 8px 0 0; font-size: 17px; }
.case-meta a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.case-meta a:hover { text-decoration-color: currentColor; }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }

.case-cover {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}
.case-cover img { width: 100%; }

.case-text {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2fr);
  gap: 24px 40px;
}
.case-text h2 { margin: 0 0 18px; }
.case-text p { margin: 0 0 1em; font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); max-width: 34em; }
.case-text p strong { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .case-text { grid-template-columns: minmax(0, 1fr); } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li {
  list-style: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
}
.tags { padding: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.gallery figure { margin: 0; grid-column: span 6; }
.gallery .g-full { grid-column: span 12; }
.gallery .g-4 { grid-column: span 4; }
.gallery .g-8 { grid-column: span 8; }
.gallery button { display: block; width: 100%; padding: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 4px 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .gallery figure, .gallery .g-4, .gallery .g-8 { grid-column: span 12; }
}

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.swatch { border-radius: 16px; aspect-ratio: 1 / 1.1; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 13px; color: #111; }
.swatch b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .swatch b { font-size: 13px; } }
@media (max-width: 600px) { .swatches { grid-template-columns: repeat(3, 1fr); } }

.next-case {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.next-case strong { display: block; font-size: clamp(40px, 7vw, 110px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: 10px; transition: color 0.3s; }
.next-case:hover strong { color: #fff; }
.next-case svg { width: clamp(40px, 6vw, 80px); height: auto; transition: transform 0.5s var(--ease); }
.next-case:hover svg { transform: translate(6px, -6px); }
