/* Úvodní stránka v11 (2026-11-07). Barvy, písma, hlavička a kontakt jsou v site.css.
   Interaktivita je v home.js; bez JavaScriptu je všechno vidět a ukázky zůstanou jako snímky. */

:root {
  --text-hero: clamp(2.5rem, 1.4rem + 3.3vw, 4.1rem);
  --text-section: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
p, ul, ol, dl, dd { margin: 0; }

/* Úvod */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 5vh, 4rem) var(--space-5); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -120px -50vw 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 60% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 60% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero-byline { display: flex; align-items: center; gap: 1rem; }
.hero-portrait { flex: none; width: 88px; height: 88px; border-radius: 14px; border: 1px solid var(--rule-strong); object-fit: cover; background: var(--surface-2); }
.hero-name { margin-bottom: .45rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.hero-status { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .8rem .3rem .65rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .88rem; }
.status-light { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ccf8e; }
.status-light::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ccf8e; animation: sk-pulse 2.4s ease-out infinite; }
@keyframes sk-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.hero h1 { margin-top: var(--space-3); font-size: var(--text-hero); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.hero-lede { margin-top: var(--space-3); max-width: 34ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule); max-width: 34rem; }
.hero-meta dt { color: var(--muted); font-size: .82rem; }
.hero-meta dd { margin-top: .2rem; font-size: .95rem; line-height: 1.4; }

/* Okno s živými ukázkami */
.showcase { position: relative; border: 1px solid var(--rule-strong); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 55%); }
:root[data-theme="light"] .showcase { box-shadow: 0 30px 70px -35px rgb(18 22 20 / 28%); }
.showcase::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; z-index: 2; }
.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: .55rem .6rem .55rem .6rem; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.showcase-tabs { position: relative; display: flex; gap: .25rem; }
.showcase-tabs button { position: relative; z-index: 1; min-height: 36px; padding: 0 .9rem; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.showcase-tabs button:hover { color: var(--ink); }
.showcase-tabs button[aria-selected="true"] { color: var(--ink); }
.showcase-tabs .tab-pill { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; border-radius: 8px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--rule-strong); transition: transform .35s var(--ease); }
.showcase-note { padding: .6rem .9rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; }
.showcase-stage { position: relative; overflow: hidden; background: #e9ece8; }
.showcase-stage > img { width: 100%; transition: opacity .3s ease; }
.showcase-stage .live-frame { position: absolute; inset: 0 auto auto 0; opacity: 0; transition: opacity .35s ease; }
.showcase-stage .live-frame.is-ready { opacity: 1; }
.showcase-stage.is-live > img { opacity: 0; position: absolute; inset: 0; pointer-events: none; }
.showcase-stage iframe { display: block; border: 0; transform-origin: 0 0; background: transparent; }
.showcase-open { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: 0 .8rem; border-radius: 8px; color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.showcase-open:hover { color: var(--accent); background: var(--surface-3); }
.showcase-loading { position: absolute; inset: auto 0 0 0; height: 2px; background: var(--accent); transform-origin: left; animation: sk-load 1.2s var(--ease) infinite; z-index: 2; }
@keyframes sk-load { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0; } }

/* Čísla */
.metrics ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.metrics li { display: grid; gap: .5rem; align-content: start; padding: var(--space-3) var(--space-3) var(--space-3) 0; }
.metrics li + li { padding-left: var(--space-3); border-left: 1px solid var(--rule); }
.metrics strong { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); font-weight: 650; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metrics li:first-child strong { color: var(--accent); }
.metrics span { color: var(--muted); font-size: .92rem; line-height: 1.45; max-width: 24ch; }

/* Sekce */
.section { padding-top: var(--space-6); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: end; margin-bottom: var(--space-4); }
.section-head h2, .practice-side h2, .about h2 { font-size: var(--text-section); font-weight: 700; letter-spacing: -0.04em; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Světlo pod kurzorem na kartách (home.js nastaví --mx, --my) */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.spot:hover::before { opacity: 1; }

/* Praxe */
.practice { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
.practice-side { position: sticky; top: 100px; }
.role { margin-top: var(--space-4); padding: var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.role h3 { font-size: 1.5rem; }
.role-where { margin-top: .5rem; color: var(--ink-soft); }
.role-now { margin-top: var(--space-3); color: var(--ink-soft); }
.plant { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }
.practice-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); font-size: .95rem; }
.outcomes { list-style: none; padding: 0; }
.outcomes li { position: relative; padding: 0 0 var(--space-4) var(--space-4); }
.outcomes li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 11px; height: 11px; border-radius: 3px; border: 2px solid var(--accent); }
.outcomes li::after { content: ""; position: absolute; left: 5px; top: 1.6rem; bottom: .4rem; width: 1px; background: var(--rule-strong); }
.outcomes h3 { font-size: 1.3rem; }
.outcomes p { margin-top: .5rem; color: var(--ink-soft); max-width: 60ch; }
.outcomes .sk-link { display: inline-block; margin-top: .5rem; font-size: .95rem; }
.facts { margin-top: var(--space-4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.facts > div { padding: var(--space-3); background: var(--surface); }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts dt { font-weight: 600; }
.facts dd { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.facts-line { margin-top: var(--space-3); color: var(--ink-soft); }

/* O mně */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
.about-text p { color: var(--ink-soft); max-width: 62ch; }
.about-text p + p { margin-top: 1rem; }
.about-text .about-free { color: var(--muted); }

/* Projekty */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.project { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .3s ease, translate .4s var(--ease); }
/* Zvednutí přes "translate", aby se nepralo s náklonem karty (.tilt v site.css používá "transform"). */
.project:hover { border-color: var(--rule-strong); }
.project:not(.tilt):hover { translate: 0 -3px; }
.project-shot { display: block; margin: var(--space-2) var(--space-2) 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: #e9ece8; }
.project-shot img { transition: transform .7s var(--ease); }
.project:hover .project-shot img { transform: scale(1.035); }
.project-text { display: flex; flex-direction: column; gap: .6rem; padding: var(--space-3); flex: 1; }
.project-text h3 { font-size: 1.5rem; }
.project-text h3 a { text-decoration: none; }
.project-text h3 a:hover { color: var(--accent); }
.project-text p { color: var(--ink-soft); max-width: 56ch; }
.project-text .sk-link { margin-top: auto; padding-top: .4rem; align-self: flex-start; }
.project-phone { flex-direction: row; align-items: center; gap: var(--space-2); padding: var(--space-3) 0 var(--space-3) var(--space-3); }
.project-phone .project-text { padding-left: var(--space-1); }
.project-phone .live { flex: none; width: min(46%, 280px); }
.project-phone .live > img { border-radius: 28px; }

/* Živá okna telefonů (stejný princip jako v10) */
.live { position: relative; }
.live-frame { display: block; width: 100%; overflow: hidden; }
.live-frame iframe { display: block; border: 0; transform-origin: 0 0; background: transparent; }
.live > .live-frame { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.live.is-live > .live-frame { position: relative; opacity: 1; pointer-events: auto; transition: opacity 0.3s ease; }
.live.is-live > img { display: none; }

/* Další projekty */
.index { margin-top: var(--space-5); }
.index h3 { padding-bottom: var(--space-2); font-size: 1.25rem; }
.index dl { border-top: 1px solid var(--rule); }
.index dl > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--space-3); padding-block: 1rem; border-bottom: 1px solid var(--rule); transition: background-color .25s ease, box-shadow .25s ease; }
.index dl > div:hover { background: var(--surface); box-shadow: calc(-1 * var(--space-2)) 0 0 var(--surface), var(--space-2) 0 0 var(--surface); }
.index dt { font-weight: 600; }
.index dt a { color: var(--accent); text-underline-offset: .2em; }
.index dd { color: var(--muted); }

/* Kopírování e-mailu */
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: var(--space-4); }
.mail-row .sk-mail { margin-top: 0; }
.copy { min-height: 36px; padding: 0 .8rem; border: 1px solid var(--rule-strong); border-radius: 8px; background: transparent; color: var(--ink); font-size: .85rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.copy:hover { background: var(--surface-2); }
.copy.is-done { border-color: #3ccf8e; color: #3ccf8e; }
:root[data-theme="light"] .copy.is-done { color: #157a4c; border-color: #157a4c; }

/* Postupné odhalení při posunu: jen s JS (třída js), bez JS je vše vidět hned */
/* v12: posun přes "translate", ne "transform", aby karta po odhalení mohla dostat náklon (.tilt). */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease) var(--d, 0s), translate .7s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: none; }
.js [data-reveal].tilt { transition: opacity .7s var(--ease) var(--d, 0s), translate .7s var(--ease) var(--d, 0s), transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.js .hero-text > * { animation: sk-rise .8s var(--ease) both; }
.js .hero-text > :nth-child(2) { animation-delay: .06s; }
.js .hero-text > :nth-child(3) { animation-delay: .12s; }
.js .hero-text > :nth-child(4) { animation-delay: .18s; }
.js .hero-text > :nth-child(5) { animation-delay: .24s; }
.js .showcase { animation: sk-rise 1s var(--ease) .15s both; }
.js:not(.fonts-ready) .hero-text > *, .js:not(.fonts-ready) .showcase { animation-play-state: paused; }
@keyframes sk-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .project-phone { flex-direction: column; align-items: stretch; padding: var(--space-3) 0 0; }
  .project-phone .live { width: min(80%, 300px); margin-inline: auto; }
  .project-phone .project-text { padding-left: var(--space-3); }
}
@media (max-width: 960px) {
  .hero, .section-head, .practice, .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hero { padding-top: var(--space-3); }
  .practice-side { position: static; }
  .metrics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics li:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .projects, .facts { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .index dl > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .index dl > div:hover { background: none; box-shadow: none; }
}
@media (max-width: 480px) {
  .hero-portrait { width: 76px; height: 76px; }
  .hero-status { border-radius: 14px; }
}
@media (max-width: 420px) {
  .metrics li { padding: var(--space-2) var(--space-2) var(--space-2) 0; }
  .metrics li + li { padding-left: var(--space-2); }
  .metrics li:nth-child(3) { padding-left: 0; }
  .metrics strong { font-size: 1.85rem; }
  .metrics span { font-size: .85rem; }
  .showcase-tabs button { padding: 0 .65rem; }
  .showcase-open { padding-inline: .5rem; }
}
@media (hover: none) {
  .project:hover { translate: none; }
  .spot::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; }
  .status-light::after { display: none; }
}
