/* ============================================================
   Štěpán Pánek — portfolio (dark)
   Fonts: Inter (body) + Clash Display (headings)
   Swap headings: nahraj webfont, přidej @font-face,
   přepiš --font-heading.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300 600; font-display:swap;
  src:url('../assets/fonts/Inter-latin.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:'Inter'; font-style:normal; font-weight:300 600; font-display:swap;
  src:url('../assets/fonts/Inter-latinext.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:'Clash Display'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../assets/fonts/ClashDisplay-400.woff2') format('woff2'); }
@font-face { font-family:'Clash Display'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../assets/fonts/ClashDisplay-500.woff2') format('woff2'); }
@font-face { font-family:'Clash Display'; font-style:normal; font-weight:600; font-display:swap;
  src:url('../assets/fonts/ClashDisplay-600.woff2') format('woff2'); }
@font-face { font-family:'Clash Display'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../assets/fonts/ClashDisplay-700.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --font-body: 'Inter', Helvetica, Arial, sans-serif;
  --font-heading: 'Clash Display', 'Inter', sans-serif;
  --container: 1280px;
  --gutter: 32px;
  --night: #0a0a0b;
  --ink: #ffffff;
  --muted: rgba(255,255,255,0.62);
  --line: rgba(255,255,255,0.12);
  --accent: #00FFD5; /* primary = shader green */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
.no-js { scroll-behavior: smooth; }
/* Lenis base (must not fight native smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: var(--font-body); font-weight: 400;
  background: var(--night); color: var(--ink); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
::selection { background: #fff; color: var(--night); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
/* service names read as headings too */
.offer__row-name { font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ============================================================ Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background 0.35s ease; }
/* po scrollu: černé sklo (transparentní černá + backdrop blur) */
.site-header.is-scrolled { background: rgba(10,10,11,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; transition: padding 0.35s ease; }
.site-header.is-scrolled .container { padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 21px; letter-spacing: 0.01em; color: rgba(255,255,255,0.95); }
.brand__logo { width: 2rem; height: 2rem; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 5rem; font-size: 14.5px; color: rgba(255,255,255,0.7); }
.nav a { text-transform: uppercase; letter-spacing: 0.075em; font-weight: 600; }
.nav a:hover { color: #fff; }
.nav .nav-cta { padding: 14px 32px; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; color: #fff; transition: background 0.2s ease, color 0.2s ease; }
.nav .nav-cta:hover { background: #fff; color: var(--night); }

/* hamburger (mobile only) */
.hamburger { display: none; position: relative; z-index: 60; width: 44px; height: 44px; margin: -10px -8px -10px 0; padding: 0; border: none; background: none; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { position: absolute; right: 8px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), width 0.25s ease, opacity 0.25s ease; }
/* vrchní čárka delší než spodní, zarovnané doprava */
.hamburger span:nth-child(1) { width: 28px; transform: translateY(-4px); }
.hamburger span:nth-child(2) { width: 18px; transform: translateY(4px); }
.hamburger.is-active span { width: 22px; }
.hamburger.is-active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* fullscreen mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: #050506; opacity: 0; pointer-events: none; transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1); display: flex; align-items: center; }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 2rem; padding: 0 var(--gutter); width: 100%; }
.mobile-menu__nav a { font-family: var(--font-heading); font-weight: 600; font-size: clamp(38px, 12vw, 60px); line-height: 1.1; color: #fff; overflow: hidden; }
.mobile-menu__nav a span { display: block; transform: translateX(-110%); opacity: 0; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease; }
.mobile-menu.is-open .mobile-menu__nav a span { transform: translateX(0); opacity: 1; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) span { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) span { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) span { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) span { transition-delay: 0.36s; }
/* Kontakt: zelené podtržení, písmo zůstává bílé */
.mobile-menu__nav a:last-child span { display: inline-block; width: fit-content; border-bottom: 3px solid var(--accent); padding-bottom: 2px; }

/* ============================================================ 1. Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; background: var(--night); overflow: hidden; }
@media (min-width: 769px) { .hero { min-height: max(850px, 100svh); } }
#mist-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
/* shadery startují až po window.load — do té doby černé pozadí, pak fade-in */
#mist-canvas, #cta-canvas, #modal-canvas { opacity: 0; transition: opacity 1.2s ease; }
#mist-canvas.is-on, #cta-canvas.is-on, #modal-canvas.is-on { opacity: 1; }
/* CSS bloby jen jako fallback při selhání WebGL */
.hero__fallback { position: absolute; inset: -10%; z-index: 0; filter: blur(80px); opacity: 0; transition: opacity 0.6s ease; }
.hero.mist-failed .hero__fallback { opacity: 1; }
.hero__fallback span { position: absolute; border-radius: 50%; }
.hero__fallback .b1 { top: 2%; left: -8%; width: 62vw; height: 62vw; background: radial-gradient(circle at 50% 50%, oklch(0.62 0.14 255 / 0.85), transparent 65%); animation: drift1 24s ease-in-out infinite; }
.hero__fallback .b2 { top: 18%; right: -12%; width: 58vw; height: 58vw; background: radial-gradient(circle at 50% 50%, oklch(0.58 0.12 300 / 0.7), transparent 65%); animation: drift2 31s ease-in-out infinite; }
.hero__fallback .b3 { bottom: -18%; left: 18%; width: 66vw; height: 66vw; background: radial-gradient(circle at 50% 50%, oklch(0.66 0.11 205 / 0.6), transparent 66%); animation: drift3 38s ease-in-out infinite; }
.hero__scrim { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.12) 42%, rgba(10,10,11,0.7) 100%); }
.hero__inner { position: relative; z-index: 3; width: 100%; padding-top: clamp(96px, 19vh, 190px); text-align: center; }
.hero__title { margin: 0 auto; max-width: 24ch; font-size: clamp(44px, 8vw, 6rem); line-height: 0.96; letter-spacing: 0; color: #fff; text-wrap: balance; }
.hero__lead { margin: 26px auto 0; max-width: 44ch; font-size: 17.5px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.7); }
.hero__btn { margin-top: clamp(22px, 4vh, 40px); padding: 1.125rem 2.5rem; }

/* Hero glass card cluster (absolute, staggered) */
.hero__cluster { position: relative; width: 100%; max-width: 1080px; height: 340px; margin: -22px auto 0; }
.gpos { position: absolute; will-change: transform, opacity, filter; }
.gpos--code  { left: 1%;  top: 14px; }
.gpos--wp    { left: 20%; top: 112px; }
.gpos--photo { left: 40%; top: 156px; }
.gpos--ai    { left: 60%; top: 112px; }
.gpos--auto  { left: 79%; top: 14px; }
.gfloat--1  { animation: float1 8.4s ease-in-out 2.6s infinite; }
.gfloat--2  { animation: float2 8s   ease-in-out 2s   infinite; }
.gfloat--2b { animation: float2 7.6s ease-in-out 2.4s infinite; }
.gfloat--3  { animation: float3 6.4s ease-in-out 2.2s infinite; }
.gcard {
  position: relative; width: 168px; height: 168px; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 26px 54px -18px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.35);
}
.gcard--rot-a { transform: rotate(-6deg); }
.gcard--rot-b { transform: rotate(-4deg); }
.gcard--rot-c { transform: rotate(7deg); }
.gcard--rot-d { transform: rotate(6deg); }
/* photo card scaled up 20% */
.gcard--photo { width: 150px; height: 186px; padding: 9px; gap: 0; overflow: hidden; transform: rotate(-6deg) scale(1.2); }
.gcard__portrait { display: block; width: 100%; height: 100%; border-radius: 18px;
  background-image: url('../assets/img/portret.jpg'), repeating-linear-gradient(135deg, #e9e9e6 0 14px, #f4f4f2 14px 28px);
  background-size: cover; background-position: center; }
.gcard__name { position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 1; padding: 14px 6px 7px; text-align: center; font-size: 12px; font-weight: 600; color: #fff; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.62)); text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
/* Kódování chip icon (metallic key with </>) */
.gcard__chip { position: relative; width: 59px; height: 45px; margin-top: 6px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; transform: scale(0.8); background: linear-gradient(160deg, #fff 0%, #dbe4ef 38%, #8593a8 72%, #eef3f9 100%); box-shadow: 0 8px 14px rgba(0,0,0,0.45), inset 0 -4px 8px rgba(0,0,0,0.18); }
.gcard__chip-dots { position: absolute; top: 6px; left: 7px; display: flex; gap: 3px; }
.gcard__chip-dots i { width: 3px; height: 3px; border-radius: 50%; background: rgba(22,24,29,0.55); }
.gcard__chip-dots i:last-child { background: rgba(22,24,29,0.35); }
.gcard__bracket { width: 10px; height: 10px; margin-top: 5px; border-radius: 2px; transform: rotate(45deg); }
.gcard__bracket--l { border-left: 2.5px solid #16181d; border-bottom: 2.5px solid #16181d; }
.gcard__bracket--r { border-right: 2.5px solid #16181d; border-top: 2.5px solid #16181d; }
.gcard__slash { width: 2.5px; height: 16px; margin-top: 5px; border-radius: 2px; background: #16181d; transform: rotate(16deg); opacity: 0.75; }
.gcard__glow { position: absolute; top: 34px; width: 84px; height: 84px; border-radius: 50%; background: var(--glow, transparent); filter: blur(26px); }
/* only the icon graphic shrinks 20% (box + label stay) */
.gcard__icon { position: relative; display: block; transform: scale(0.8); filter: brightness(0) invert(1) drop-shadow(0 8px 12px rgba(0,0,0,0.55)); }
.gcard__label { position: relative; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.88); }
.gcard__code { position: relative; font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 31px; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(160deg, #fff 0%, #dbe4ef 34%, #7f8ea4 62%, #f2f6fb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5)); }
.gcard__robot { position: relative; width: 56px; height: 45px; margin-top: 8px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 11px; transform: scale(0.8);
  background: linear-gradient(160deg, #fff 0%, #dbe4ef 38%, #8593a8 70%, #eef3f9 100%); box-shadow: 0 8px 14px rgba(0,0,0,0.45), inset 0 -4px 8px rgba(0,0,0,0.18); }
.gcard__antenna { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: oklch(0.75 0.14 190); box-shadow: 0 0 10px oklch(0.75 0.14 190 / 0.9); }
.gcard__antenna::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 13px; background: linear-gradient(180deg, #f4f7fb, #8593a8); }
.gcard__eye { width: 10px; height: 10px; border-radius: 50%; background: #16181d; box-shadow: inset 0 2px 3px rgba(255,255,255,0.35); }

.scroll-hint { position: absolute; bottom: 34px; right: var(--gutter); z-index: 3; display: none; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); animation: scrollhint 2.4s ease-in-out infinite; }
.scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent); }

/* ============================================================ 2. Úvod (scroll reveal) */
.reveal-sec { background: var(--night); padding: 7.5rem 0; }
.reveal-lead { max-width: 1120px; margin: 0 auto; text-align: center; font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.28; letter-spacing: -0.022em; text-wrap: pretty; }
.reveal-lead span { color: #fff; transition: color 0.45s ease; }
.js .reveal-lead span { color: rgba(255,255,255,0.14); }
.reveal-cta { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; white-space: nowrap; transition: opacity 0.2s ease; }
.reveal-cta:hover { color: var(--accent); opacity: 0.75; }

/* ============================================================ 3. Co nabízím (service list) */
.offer { background: var(--night); padding: 7.5rem 0; }
.offer__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.offer__head h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: 0; color: #fff; }
.offer__head p { max-width: 40ch; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.55); }
.offer__cta { display: inline-flex; align-items: center; gap: 9px; padding: 14px 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background 0.4s cubic-bezier(0.16,1,0.3,1), color 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s cubic-bezier(0.16,1,0.3,1); }
.offer__cta:hover { background: var(--accent); color: var(--night); border-color: transparent; }
.offer__cta span { font-size: 16px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.offer__cta:hover span { transform: translateX(5px); }

.offer__list { display: flex; flex-direction: column; }
.offer__row:first-child { border-top: none; }
.offer__row { display: grid; grid-template-columns: 60px minmax(0, 0.7fr) minmax(0, 1fr) 96px 132px 34px; align-items: center; gap: 20px;
  padding: 28px; border-top: 1px solid rgba(255,255,255,0.1); color: #fff; text-decoration: none;
  transition: background 0.4s cubic-bezier(0.16,1,0.3,1), padding-left 0.4s cubic-bezier(0.16,1,0.3,1); }
.offer__row { position: relative; }
.offer__row-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1); }
.offer__row-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.offer__row--shader > :not(.offer__row-bg) { position: relative; z-index: 1; }
.offer__row-num { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; letter-spacing: 0.1em; opacity: 0.5; transition: color 0.3s ease, opacity 0.3s ease; }
.offer__row-name { position: relative; display: block; font-family: var(--font-heading); font-size: clamp(20px, 2vw, 29px); line-height: 1.04; letter-spacing: 0; white-space: nowrap; }
.offer__row-title { display: block; transition: opacity 0.3s ease; }
.offer__row-cta { position: absolute; left: 0; top: 0; display: block; white-space: nowrap; font-style: italic; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.25em; line-height: 1; opacity: 0; color: #0a0a0b; transition: opacity 0.3s ease; }
.offer__row-meta { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.62); min-height: 3.2em; display: flex; align-items: center; transition: opacity 0.3s ease; }
.offer__row-term { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); text-align: right; transition: opacity 0.3s ease; }
.offer__row-price { font-family: var(--font-heading); font-size: clamp(17px, 1.5vw, 22px); line-height: 1; color: #fff; text-align: right; white-space: nowrap; transition: opacity 0.3s ease; }
.offer__row-price small { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.offer__row-arrow { font-size: 20px; text-align: right; transform-origin: 100% 50%; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), color 0.3s ease; }
/* hover efekt jen na zařízeních s myší (PC) — mobil/tablet bez hoveru */
@media (hover: hover) and (pointer: fine) {
  /* hover: whole row turns primary green, text goes black, popisek + doba dodání skryty */
  .offer__row:hover { background: var(--accent); padding-left: 40px; color: #fff; }
  /* shader řádky: canvas místo flat green, bílý text */
  .offer__row--shader:hover { background: transparent; }
  .offer__row--shader:hover .offer__row-bg { opacity: 1; }
  .offer__row--shader:hover .offer__row-num,
  .offer__row--shader:hover .offer__row-cta,
  .offer__row--shader:hover .offer__row-arrow { color: #fff !important; opacity: 1 !important; }
  .offer__row:hover .offer__row-num { color: #0a0a0b; opacity: 0.55; }
  .offer__row:hover .offer__row-title { opacity: 0; }
  .offer__row:hover .offer__row-cta { opacity: 1; }
  .offer__row:hover .offer__row-meta, .offer__row:hover .offer__row-term, .offer__row:hover .offer__row-price { opacity: 0; }
  .offer__row:hover .offer__row-arrow { transform: scale(2); }
}

/* ============================================================ 5. Ceník */
.pricing { background: var(--night); padding: 7.5rem 0; }
.pricing__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.pricing__head h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: 0; color: #fff; }
.pricing__head p { max-width: 40ch; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.55); }
.pricing__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pricing__card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
.pricing__eyebrow { margin: 0 0 14px; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.pricing__name { margin: 0 0 12px; font-family: var(--font-heading); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; color: #fff; }
.pricing__desc { margin: 0; max-width: 34ch; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.6); }
.pricing__price { display: flex; align-items: baseline; gap: 8px; }
.pricing__amount { font-family: var(--font-heading); font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: 0; color: #fff; }
.pricing__amount--sm { font-size: clamp(36px, 4.4vw, 60px); }
.pricing__unit { font-size: 16px; color: rgba(255,255,255,0.5); }
.pricing__note { margin: 26px 0 0; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.5); }

/* ============================================================ 4. Reference (marquee) */
.refs { background: var(--night); padding: 7.5rem 0; }
.refs__head { text-align: center; margin-bottom: 56px; }
.refs__head h2 { max-width: 26ch; margin: 0 auto; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.06; letter-spacing: 0; color: #fff; text-wrap: balance; }
.refs__head p { max-width: 46ch; margin: 18px auto 0; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.55); }
/* grid of reference logos — hover flips to a white card with a short blurb */
.refs__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; overflow: hidden; }
.refs__cell { position: relative; display: flex; align-items: center; justify-content: center; min-height: 164px; padding: 32px; background: var(--night); overflow: hidden; cursor: default; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); transition: background 0.4s cubic-bezier(0.16,1,0.3,1); }
.refs__cell:nth-child(3n) { border-right: none; }
.refs__cell:nth-child(n+4) { border-bottom: none; }
.refs__logo { display: flex; align-items: center; opacity: 0.5; white-space: nowrap; transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
/* scroll reveal: armed by JS (.refs--anim); logos/labels hidden until their cell enters */
.refs--anim .refs__cell:not(.is-in) .refs__logo,
.refs--anim .refs__cell:not(.is-in) .refs__more { opacity: 0; transform: translateX(-24px); }
.refs__logo img { height: 34px; width: auto; display: block; }
/* per-logo optical size tweaks */
.refs__logo img[alt="Prima"] { transform: scale(1.3); }
.refs__logo img[alt="Olomouc"] { transform: scale(1.2); }
.refs__logo img[alt="WebGod"] { transform: scale(1.1); }
.refs__logo img[alt="Base"] { transform: scale(0.9); }
.refs__logo img[alt="Vortex Store"] { transform: scale(1.15); }
.refs__desc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 28px; text-align: center; font-size: 16px; font-weight: 500; line-height: 1.5; color: #0a0a0b; opacity: 0; transform: translateX(-16px); transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.refs__cell:hover, .refs__cell:focus-visible { background: #fff; outline: none; }
.refs__cell:hover .refs__logo, .refs__cell:focus-visible .refs__logo { opacity: 0 !important; }
.refs__cell:hover .refs__desc, .refs__cell:focus-visible .refs__desc { opacity: 1; transform: translateX(0); }
.refs__more { font-family: var(--font-heading); font-size: clamp(20px, 2vw, 26px); color: rgba(255,255,255,0.5); transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.refs__cell--more:hover .refs__more, .refs__cell--more:focus-visible .refs__more { opacity: 0 !important; }

/* ============================================================ 5. Kontakt */
.contact { background: var(--night); padding: 7.5rem 0 48px; }
.contact__cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(32px, 5vw, 56px); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: #0d0e11; }
/* liquid shader (same as hero) fills the CTA card */
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.contact__cta-scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.3) 50%, rgba(10,10,11,0.55) 100%); }
.contact__cta-body { position: relative; z-index: 1; }
.contact__cta-body h2 { margin: 0 0 16px; max-width: 18ch; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: 0; color: #fff; }
.contact__cta-body p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.95); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; border-radius: 999px; background: #fff; color: var(--night); font-size: 16px; font-weight: 500; transition: background 0.4s cubic-bezier(0.16,1,0.3,1), color 0.4s cubic-bezier(0.16,1,0.3,1); }
.btn:hover { background: var(--accent); color: var(--night); }
.btn .arrow { font-size: 18px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.btn:hover .arrow { transform: translateX(6px); }
.contact__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.contact__label { margin-bottom: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.contact__mail { display: block; margin-top: 6px; font-size: 16.5px; color: #fff; }
.contact__tel { display: block; margin-top: 6px; font-size: 16.5px; color: #fff; }
.contact__strong { font-size: 16.5px; color: #fff; }
.contact__muted { margin-top: 6px; font-size: 16.5px; color: #fff; }
/* odkazy v kontaktu: hover zeleně + podtržení */
.contact__mail:hover, .contact__tel:hover, .contact__muted a:hover {
  color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.contact__social { display: flex; align-items: center; gap: 12px; }
.contact__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); color: #fff; transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.contact__social a:hover { background: #fff; color: var(--night); transform: translateY(-2px); }
.contact__social-letter { font-weight: 600; font-size: 17px; line-height: 1; }
.contact__foot { margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ============================================================ Popup poptávka */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,7,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s ease; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96);
  width: min(1080px, 94vw); max-height: 92vh; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  border-radius: 18px; background: #0d0e11; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9);
  opacity: 0; transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.modal.is-open .modal__box { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; font-size: 14px; transition: background 0.2s ease; }
.modal__close:hover { background: rgba(255,255,255,0.16); }

.modal__left { padding: clamp(28px, 4vw, 46px); overflow-y: auto; }
.modal__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; color: #fff; }
.modal__text { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.66); max-width: 42ch; }
.modal__contacts { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.modal__contact { display: flex; flex-direction: column; font-size: 18px; font-weight: 500; color: #fff; }
.modal__contact span { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.modal__contact:hover { color: var(--accent); }

.modal__form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal__form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.modal__form input, .modal__form textarea, .modal__form select {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modal__form input::placeholder, .modal__form textarea::placeholder { color: rgba(255,255,255,0.3); }
.modal__form input:focus, .modal__form textarea:focus, .modal__form select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.08); }
/* custom select: native arrow off, chevron drawn via the wrapper */
.modal__select { position: relative; display: block; }
.modal__form select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.modal__form select option { background: #14161a; color: #fff; }
.modal__select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid rgba(255,255,255,0.55); border-bottom: 1.5px solid rgba(255,255,255,0.55); transform: rotate(45deg); pointer-events: none; }
.modal__submit { margin-top: 4px; justify-content: center; padding: 15px 24px; }
.modal__note { font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; }
.modal__status { margin-top: 2px; font-size: 13.5px; text-align: center; color: var(--accent); }
.modal__status.is-error { color: #ff7a7a; }
.modal__submit[disabled] { opacity: 0.6; cursor: default; }

.modal__right { position: relative; overflow: hidden; background: var(--night); }
#modal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.modal__right-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 80% at 50% 45%, rgba(10,10,11,0.25) 0%, rgba(10,10,11,0.55) 100%); }
.modal__right-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 30px; }
/* glass photo frame (same as hero card, not rotated) */
.modal__photo { position: relative; width: 168px; height: 208px; border-radius: 24px; padding: 9px; overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 26px 54px -18px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.modal__photo-img { display: block; width: 100%; height: 100%; border-radius: 16px;
  background-image: url('../assets/img/portret.jpg'), repeating-linear-gradient(135deg, #e9e9e6 0 14px, #f4f4f2 14px 28px);
  background-size: cover; background-position: center; }
.modal__photo-name { position: absolute; left: 9px; right: 9px; bottom: 9px; padding: 14px 6px 7px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.62)); text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.modal__id { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.modal__id a { color: rgba(255,255,255,0.9); font-size: 15.5px; }
.modal__id a:hover { color: var(--accent); }
.modal__id-name { display: none; }

body.modal-open, body.menu-open { overflow: hidden; }
@media (max-width: 760px) {
  .modal__box { grid-template-columns: 1fr; max-height: 94vh; }
  .modal__right { min-height: 148px; order: -1; }
  .modal__form-row { grid-template-columns: 1fr; }
  /* mobile: no blurb, compact photo left + name/tel/mail beside */
  .modal__text { display: none; }
  .modal__right-body { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 18px 22px; }
  .modal__photo { width: 88px; height: 108px; padding: 6px; border-radius: 16px; flex: none; }
  .modal__photo-name { display: none; }
  .modal__id { align-items: flex-start; text-align: left; gap: 3px; }
  .modal__id-name { display: block; color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 2px; }
  .modal__id a { font-size: 14.5px; }
}

/* ============================================================ Headings: per-letter rise-in */
.js .anim-head .w { display: inline-block; }
.js .anim-head .c { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: 0.14em; margin-block: -0.14em; }
.js .anim-head .c > i { display: inline-block; font-style: normal; will-change: transform; }

/* ============================================================ Hero intro: skryté od prvního paintu do startu gsap
   (třídu .preintro přidá inline script v <head>, sundá ji main.js po nastavení výchozích stavů) */
.preintro .site-header .container,
.preintro [data-hero],
.preintro .hero__cluster { opacity: 0; }

/* ============================================================ Reveal (GSAP toggles .is-in) */
[data-reveal] { will-change: transform, opacity; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================ Mist tuner (dev UI) */
.mist-tuner { position: fixed; right: 18px; bottom: 18px; z-index: 40; font-family: var(--font-body); }
.mist-tuner__toggle { padding: 9px 15px; border-radius: 999px; cursor: pointer; font-size: 12.5px; letter-spacing: 0.04em; color: #fff; background: rgba(20,18,30,0.72); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background 0.2s ease; }
.mist-tuner__toggle:hover { background: rgba(40,36,60,0.85); }
.mist-tuner__panel { position: absolute; right: 0; bottom: 46px; width: 288px; max-height: 76vh; overflow-y: auto; padding: 16px; border-radius: 14px; color: #eee; background: rgba(16,14,24,0.92); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8); display: flex; flex-direction: column; gap: 12px; }
.mist-tuner__head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.mist-tuner__close { background: none; border: 0; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 14px; }
.mist-tuner__close:hover { color: #fff; }
.mist-tuner__row { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: rgba(255,255,255,0.72); }
.mist-tuner__row span { display: flex; justify-content: space-between; }
.mist-tuner__row em { font-style: normal; color: rgba(255,255,255,0.5); }
.mist-tuner__row select, .mist-tuner__row input[type="range"] { width: 100%; }
.mist-tuner__row select { padding: 7px 8px; border-radius: 8px; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); font-size: 12.5px; }
.mist-tuner__row input[type="range"] { accent-color: #00FFD5; }
.mist-tuner__colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mist-tuner__colors label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: rgba(255,255,255,0.6); }
.mist-tuner__colors input[type="color"] { width: 100%; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,0.18); border-radius: 7px; background: none; cursor: pointer; }
.mist-tuner__actions { display: flex; gap: 8px; }
.mist-tuner__actions button { flex: 1; padding: 9px; border-radius: 8px; cursor: pointer; font-size: 12px; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.mist-tuner__actions button:hover { background: rgba(255,255,255,0.18); }
.mist-tuner__actions [data-copy] { background: #00FFD5; color: #04201c; border-color: transparent; font-weight: 600; }
.mist-tuner__out { width: 100%; min-height: 128px; margin-top: 2px; padding: 8px; font: 11px/1.4 ui-monospace, Menlo, monospace; color: #d8d8e0; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; resize: vertical; }

/* ============================================================ Keyframes */
@keyframes drift1 { 0%,100% { transform: translate3d(-6%,-4%,0) scale(1.1); } 50% { transform: translate3d(12%,10%,0) scale(1.35); } }
@keyframes drift2 { 0%,100% { transform: translate3d(10%,6%,0) scale(1.3); } 50% { transform: translate3d(-12%,-8%,0) scale(1.05); } }
@keyframes drift3 { 0%,100% { transform: translate3d(4%,12%,0) scale(1.15); } 50% { transform: translate3d(-8%,-14%,0) scale(1.45); } }
@keyframes hueshift { 0%,100% { filter: blur(80px) hue-rotate(0deg); } 50% { filter: blur(80px) hue-rotate(24deg); } }
@keyframes scrollhint { 0%,100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(6px); } }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes floatM2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floatM3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes marqueea { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeb { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================================================ Responsive */
@media (max-width: 992px) {
  .nav { gap: 3.5rem; }
  /* service list: stack each row (num+name / popis / termín+cena) */
  .offer__row { grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 7px; padding: 22px 4px; align-items: start; }
  .offer__row:hover { padding-left: 4px; background: rgba(255,255,255,0.04); }
  .offer__row-num { grid-column: 1; grid-row: 1; align-self: center; }
  .offer__row-name { grid-column: 2; grid-row: 1; align-self: center; font-size: 24px; white-space: normal; }
  .offer__row-arrow { display: block; grid-column: 3; grid-row: 1; align-self: center; }
  .offer__row-meta { grid-column: 2 / -1; grid-row: 2; margin-bottom: 12px; }
  .offer__row-term { display: block; grid-column: 2 / 3; grid-row: 3; text-align: left; align-self: center; }
  .offer__row-price { grid-column: 3 / 4; grid-row: 3; text-align: right; justify-self: end; align-self: center; }
  .offer__row-cta { display: none; }
  .offer__row:hover .offer__row-title { opacity: 1; }
  .offer__row:hover .offer__row-meta, .offer__row:hover .offer__row-term, .offer__row:hover .offer__row-price { opacity: 1; }
  /* move the "Mám zájem" button below the list */
  .offer .container { display: flex; flex-direction: column; }
  .offer__head { display: contents; }
  .offer__head h2 { order: 0; margin-bottom: 24px; }
  .offer__list { order: 1; }
  .offer__cta { order: 2; align-self: stretch; justify-content: center; margin-top: 28px; }
  /* kontakt: sloupce pod sebe, CTA box do sloupce s menším gapem */
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact__cta { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 960px) {
  .hero__cluster { max-width: 760px; height: 310px; }
  .gpos--code { left: 0; top: 4px; } .gpos--wp { left: 22%; top: 104px; }
  .gpos--photo { left: 43%; top: 144px; } .gpos--ai { left: 64%; top: 104px; } .gpos--auto { left: 82%; top: 4px; }
  .gcard { width: 132px; height: 132px; } .gcard--photo { width: 120px; height: 150px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .refs__grid { grid-template-columns: repeat(2, 1fr); }
  .refs__cell:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.1); }
  .refs__cell:nth-child(n+4) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .refs__cell:nth-child(2n) { border-right: none; }
  .refs__cell:nth-child(n+5) { border-bottom: none; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  /* halve the section spacing on mobile */
  .reveal-sec, .offer, .refs, .pricing { padding: 3.75rem 0; }
  .contact { padding: 3.75rem 0 40px; }
  /* tighter heading margins on mobile */
  .refs__head, .pricing__head { margin-bottom: 24px; }
  .contact__cta-body h2 { margin-bottom: 14px; }
  /* mobile: center everything */
  .offer__head h2, .pricing__head { text-align: center; }
  .contact__cta-body { text-align: center; }
  .contact__grid { text-align: center; }
  .contact__social { justify-content: center; }
  .contact__foot { flex-direction: column-reverse; align-items: center; gap: 8px; text-align: center; }
  .pricing__card { padding: 32px; }
  /* Reference: one logo per row */
  .refs__grid { grid-template-columns: 1fr; }
  .refs__cell { min-height: 118px; padding: 22px; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  .refs__cell:last-child { border-bottom: none !important; }
  .refs__desc { font-size: 13.5px; padding: 18px; }
  /* hero mobile = varianta 2c (dle artifactu): 3 karty nahoře, nadpis + CTA, 2 karty dole */
  .hero .container { padding-inline: 16px; }
  .hero__inner { padding-top: 0; display: flex; flex-direction: column; align-items: center; }
  .scroll-hint { display: flex; left: 0; right: 0; bottom: 20px; }
  .hero__cluster { display: contents; }
  /* horní řada: relativní kontejner, boční karty na krajích, foto uprostřed vpředu */
  .hero__cluster-row--top { order: -2; position: relative; width: 100%; max-width: 430px;
    height: clamp(132px, 41vw, 168px); margin: 14px auto 0; }
  .hero__title { order: -1; margin-top: 24px; font-size: 2.25rem; max-width: 16ch; }
  .hero__btn { order: 0; margin-top: 22px; padding: 0.9375rem 2.75rem; }
  .hero__cluster-row--bottom { order: 1; display: flex; align-items: center; justify-content: center;
    gap: 22px; margin-top: clamp(30px, 7vh, 64px); }
  .gpos { position: static; display: block; width: auto; }
  .hero__cluster-row--top .gpos { position: absolute; inset: auto; }
  .hero__cluster-row--top .gpos--code { left: 0; top: clamp(34px, 10.5vw, 44px); }
  /* centrování marginem, ne transformem — scroll fade v main.js přepisuje transform */
  .hero__cluster-row--top .gpos--photo { left: 50%; top: 0; margin-left: calc(clamp(98px, 30vw, 116px) / -2); z-index: 2; }
  .hero__cluster-row--top .gpos--wp { right: 0; top: clamp(34px, 10.5vw, 44px); }
  /* float animace dle návrhu (jemnější zdvih, různé delaye) */
  .gpos--code  .gfloat { animation: floatM2 8s   ease-in-out infinite; }
  .gpos--photo .gfloat { animation: floatM3 7.4s ease-in-out 0.6s infinite; }
  .gpos--wp    .gfloat { animation: floatM2 7.8s ease-in-out 1s   infinite; }
  .gpos--ai    .gfloat { animation: floatM3 7.6s ease-in-out 0.9s infinite; }
  .gpos--auto  .gfloat { animation: floatM2 8.2s ease-in-out 1.3s infinite; }
  /* glass skill boxes — 86×86 @320, škáluje do 102 */
  .gcard { width: clamp(86px, 26.5vw, 102px); height: clamp(86px, 26.5vw, 102px);
    border-radius: 20px; gap: 7px; padding: 0 3px;
    box-shadow: 0 14px 26px -14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
  .gcard--rot-a { transform: rotate(-7deg); }
  .gcard--rot-b { transform: rotate(7deg); }
  .gcard--rot-c { transform: rotate(5deg); }
  .gcard--rot-d { transform: rotate(-6deg); }
  .gcard__glow { top: 18px; width: 48px; height: 48px; filter: blur(20px); }
  /* SVG ikony: reálná velikost místo transform scale, ať label sedí hned pod ikonou */
  .gcard__icon { width: 33px; height: 33px; transform: none; }
  .gcard__chip { transform: scale(0.54); margin: -8px 0; }
  .gcard__robot { transform: scale(0.54); margin: -4px 0 -2px; }
  .gcard__label { font-size: 10.5px; letter-spacing: -0.01em; color: rgba(255,255,255,0.86); }
  /* photo card — 98×124 @320, rotate 3°, bez jmenovky */
  .gcard--photo { width: clamp(98px, 30vw, 116px); height: auto; aspect-ratio: 98 / 124;
    border-radius: 22px; padding: 7px; gap: 0; transform: rotate(3deg);
    box-shadow: 0 16px 30px -16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
  .gcard__portrait { border-radius: 15px; }
  .gcard__name { display: block; left: 7px; right: 7px; bottom: 7px; padding: 10px 4px 5px; font-size: 10px; border-radius: 0 0 15px 15px; }
  .reveal-lead { font-size: clamp(24px, 6.4vw, 34px); }
}

/* ============================================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .no-js { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .reveal-lead span { color: #fff !important; }
  .refs__row { animation: none !important; }
}
