/* ============================================================
   TEREZA ČEHÁKOVÁ — portfolio
   Směr „Plakát": každý projekt je celoobrazovkový barevný panel
   ve vlastních barvách. Barvy panelů se editují v content.md
   (pXX.bg / pXX.fg), ne tady.
   ============================================================ */

/* ============ TOKENS ============ */
:root {
    --navy: #251a66;
    --orange: #ef5f18;
    --cream: #f2ede3;
    --green: #1fba6f;
    --pink: #ffc2d6;
    --yellow: #ffd83a;
    --black: #0e0a2a;

    /* pevné hodnoty pro prvky mimo panely (kurzor, error okno) */
    --ink: var(--black);
    --paper: var(--cream);
    --accent: var(--orange);

    /* barvy právě viditelného panelu — přepisuje JS */
    --now-bg: #251a66;
    --now-fg: #f7f5ef;
    /* barvy panelu přímo pod kurzorem (na rozhraní dvou panelů se liší
       od --now-*, které řídí navigaci nahoře) */
    --cursor-fg: #f7f5ef;
    --cursor-bg: #251a66;

    --ease-out-q: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-snap: cubic-bezier(0.7, 0, 0.3, 1);

    --pad: clamp(20px, 4vw, 64px);
    --maxw: 1560px;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    background: var(--now-bg);
    font-family: "Archivo", system-ui, -apple-system, sans-serif;
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-size: 16px;
    line-height: 1.45;
    color: var(--now-fg);
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: none;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--orange);
    color: #fff;
}

a,
button,
input,
textarea,
[role="button"] {
    cursor: none;
}

/* italika z content.md (_slovo_) — v textu poster, v „o mně" serif */
i,
em {
    font-style: italic;
    font-weight: inherit;
}

.mono {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.wrap {
    /* width:100% is load-bearing — .panel is a column flexbox, and an item with
       auto cross-axis margins shrinks to its content instead of stretching. */
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: calc(var(--pad) + 22px);
}

/* viditelný focus pro klávesnici */
:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 300;
    background: var(--orange);
    color: #fff;
    padding: 10px 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: top 0.2s;
}

.skip:focus {
    top: 12px;
}

/* ============ CURSOR ============ */
#cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* Výplň má barvu POZADÍ panelu, obrys barvu textu. Kdyby byl kurzor
       obarvený jako text, splynul by s písmeny a nešlo by je přečíst;
       takhle je proti textu vždycky kontrastní a na prázdné ploše ho
       drží obrys. Žádný mix-blend-mode: difference — z oranžové na
       tmavomodré dělal modro-červenou skvrnu. */
    background: var(--cursor-bg);
    border: 1.5px solid var(--cursor-fg);
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-out-q),
    height 0.25s var(--ease-out-q), background 0.3s, border-color 0.3s;
}

#cursor.is-hover {
    width: 44px;
    height: 44px;
    background: color-mix(in srgb, var(--cursor-bg) 82%, transparent);
    border-color: var(--cursor-fg);
}

#cursor.is-drag {
    width: 26px;
    height: 26px;
    background: color-mix(in srgb, var(--orange) 35%, transparent);
    border-color: var(--orange);
}

#cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9998;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--cursor-fg);
    /* tenká linka v barvě pozadí kolem prstence, aby se ani on nesléval
       s písmeny, přes která zrovna jede */
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--cursor-bg) 75%, transparent),
    inset 0 0 0 1.5px color-mix(in srgb, var(--cursor-bg) 75%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.3s;
}

#cursor.is-hover ~ #cursor-ring {
    opacity: 0;
}

@media (hover: none) {
    #cursor,
    #cursor-ring {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}

/* ============ SWATCH SPINE ============ */
.spine {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 22px;
    z-index: 80;
    display: flex;
    flex-direction: column;
}

.spine a {
    flex: 1;
    position: relative;
    transition: box-shadow 0.2s;
}

.spine a::after {
    content: attr(data-name);
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--now-fg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease-out-q);
}

.spine a:hover::after,
.spine a:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.spine a.on {
    box-shadow: inset 5px 0 0 var(--now-fg);
}

.spine .gap {
    flex: 0 0 16px;
    background: var(--now-bg);
}

/* ============ NAV ============ */
.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px var(--pad);
    color: var(--now-fg);
    background: color-mix(in srgb, var(--now-bg) 86%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--now-fg) 16%, transparent);
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.top .brand {
    font-size: 17px;
    line-height: 1;
    flex: 0 0 auto;
}

.top .brand b {
    display: inline-block;
    transition: transform 0.3s var(--ease-out-q);
}

.top .brand:hover b {
    transform: rotate(72deg);
}

.top ul {
    list-style: none;
    display: flex;
    gap: clamp(12px, 2vw, 30px);
    margin-left: auto;
    flex-wrap: nowrap;
}

.top ul a {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

.top ul a:hover {
    border-bottom-color: currentColor;
}

/* ============ PŘEPÍNAČ JAZYKA ============ */
.lang {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: clamp(12px, 2vw, 26px);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 500;
}

.lang span {
    opacity: 0.4;
}

.lang button {
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
}

.lang button:hover {
    opacity: 1;
    border-bottom-color: currentColor;
}

.lang button.on {
    opacity: 1;
    border-bottom-color: var(--orange);
}

.menu-btn {
    display: none;
    margin-left: auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid currentColor;
}

/* ============ PANELY ============ */
.panel {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 92px 0 56px;
    background: var(--panel-bg, var(--navy));
    color: var(--panel-fg, #f7f5ef);
    scroll-margin-top: 0;
}

.panel-band {
    min-height: 0;
    padding: 34px 0;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    opacity: 0.85;
}

/* ============ HERO ============ */
.hero-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 5vh, 60px);
    min-height: calc(100svh - 148px);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.85;
}

.poster {
    font-weight: 900;
    font-variation-settings: "wdth" 122;
    font-size: clamp(52px, 13.2vw, 208px);
    /* Pod ~1.05 najede háček nad Č a čárka nad Á do TEREZA. 1.16 dává
       zřetelnou mezeru mezi jménem a příjmením, ne jen těsné minimum. */
    line-height: 1.16;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.poster .l1,
.poster .l2 {
    display: block;
}

.poster .l2 {
    color: var(--orange);
}

.poster-sm {
    font-size: clamp(38px, 7.4vw, 116px);
    line-height: 0.92;
    text-transform: none;
    font-variation-settings: "wdth" 112;
    font-weight: 800;
}

.poster-sm i {
    color: var(--orange);
    font-variation-settings: "wdth" 100;
    font-weight: 600;
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
    align-items: end;
}

.claim {
    font-size: clamp(18px, 1.9vw, 27px);
    line-height: 1.25;
    font-weight: 500;
    max-width: 24ch;
}

.hero-facts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    opacity: 0.85;
}

.scroll-cue {
    animation: nudge 2.6s var(--ease-out-q) infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 14px 22px;
    border: 1.5px solid currentColor;
    transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out-q);
}

/* Tmavý text, ne bílý: bílá na oranžové má kontrast 3.3:1, což je na
   drobné verzálky málo. Tmavá dá 5.4:1 a oranžová zůstane tvoje. */
.btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: #2a0f06;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #ff7434;
    border-color: #ff7434;
}

/* Jemné dolití barvou panelu místo úplného převrácení — hover má být
   náznak, ne blikanec. */
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: color-mix(in srgb, var(--panel-fg, #f7f5ef) 15%, transparent);
}

/* ============ TOOLKIT ============ */
.tk-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    padding: 9px 0;
    border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.tk-label {
    flex: 0 0 auto;
    opacity: 0.7;
}

.tk-label i {
    font-family: "Instrument Serif", serif;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.tk-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 15px;
    font-weight: 500;
}

.tk-list li {
    position: relative;
}

.tk-list li + li::before {
    content: "●";
    position: absolute;
    left: -13px;
    opacity: 0.4;
    font-size: 8px;
    top: 6px;
}

/* ============ HLAVIČKA SEKCE (uvnitř prvního panelu) ============ */
.divider {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 2px solid currentColor;
    padding-top: 14px;
    margin-bottom: clamp(26px, 6vh, 72px);
}

.divider h2 {
    font-weight: 800;
    font-variation-settings: "wdth" 118;
    font-size: clamp(26px, 4.4vw, 62px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.divider h2 i {
    color: var(--orange);
    font-variation-settings: "wdth" 100;
    font-weight: 600;
}

.divider .meta {
    opacity: 0.75;
    text-align: right;
}

/* ============ PROJEKT ============ */
.panel-title {
    font-weight: 800;
    font-variation-settings: "wdth" 118;
    font-size: clamp(34px, 6.2vw, 96px);
    line-height: 0.94;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    margin: 18px 0 4px;
    text-wrap: balance;
}

.panel-title i {
    font-variation-settings: "wdth" 100;
    font-weight: 500;
    opacity: 0.92;
}

.proj-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(20px, 3vw, 46px);
    align-items: start;
    margin-top: clamp(16px, 3vh, 34px);
}

.proj-side .role {
    opacity: 0.8;
    margin-bottom: 10px;
}

.proj-side .desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 42ch;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    padding: 4px 8px;
    opacity: 0.85;
}

.watch {
    margin-top: 16px;
}

.watch a {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 2px;
}

/* pás obrázků — každý v přirozeném poměru, nikdy oříznutý */
.strip-wrap {
    position: relative;
    min-width: 0;
}

.strip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, currentColor 40%, transparent) transparent;
}

.strip figure {
    flex: 0 0 auto;
    scroll-snap-align: start;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s var(--ease-out-q);
}

.strip figure:hover {
    transform: translateY(-5px);
}

.strip img {
    height: clamp(210px, 46vh, 430px);
    width: auto;
    max-width: none;
}

.strip-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    opacity: 0.7;
}

/* ============ ABOUT ============ */
.panel-about {
    padding-top: 112px;
}

.panel-about .panel-title {
    text-transform: none;
    font-variation-settings: "wdth" 108;
}

.panel-about .panel-title i,
.panel-about .quote i,
.panel-about .bio i,
.sticker i {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
}

.panel-about .panel-title i {
    color: var(--orange);
}

.quote {
    font-family: "Instrument Serif", serif;
    font-size: clamp(24px, 3.4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 24ch;
    margin: clamp(20px, 4vh, 46px) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

.bio p {
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 46ch;
}

.bio p + p {
    margin-top: 16px;
}

.bio .nav {
    background: var(--navy);
    color: var(--cream);
    padding: 0 5px;
}

.facts-head {
    margin-bottom: 12px;
    opacity: 0.7;
}

.stickers {
    position: relative;
    min-height: 560px;
    border: 1.5px dashed rgba(37, 26, 102, 0.25);
    border-radius: 14px;
    transition: opacity 0.35s var(--ease-out-q);
}

/* nasazuje JS, než rozhodí pozice — bez JS se třída nikdy nepřidá */
.stickers.pre-scatter .sticker {
    opacity: 0;
}

.stickers .sticker {
    transition: opacity 0.35s var(--ease-out-q),
    box-shadow 0.25s var(--ease-out-q);
}

.sticker {
    position: absolute;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    box-shadow: 0 14px 24px -14px rgba(37, 26, 102, 0.35);
    max-width: 240px;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.25s var(--ease-out-q);
    will-change: transform;
}

.sticker:hover {
    box-shadow: 0 22px 30px -14px rgba(37, 26, 102, 0.45);
    z-index: 10;
}

.sticker.dragging {
    transition: none;
    cursor: none;
    z-index: 20;
    box-shadow: 0 30px 40px -14px rgba(37, 26, 102, 0.55);
}

.sticker i {
    font-size: 18px;
}

.sticker .em {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Samolepky si berou barvy panelů projektů — „o mně" je pak vzorník
   stejných barev, jaké má zbytek webu. Všechny páry ≥ 4.5:1. */
.sticker.s1 { background: #1b4fa6; color: #f2f6ff; }   /* kobalt — Dům barev */
.sticker.s2 { background: #f2b8cd; color: #0e3f2b; }   /* růžová — Illegal beans */
.sticker.s3 { background: #4a6b33; color: #f4f3e4; }   /* oliva — Dog's Journey */
.sticker.s4 { background: #f0b255; color: #2a1d0c; }   /* jantar — Srovnej dřevo */
.sticker.s5 { background: #0fa9a2; color: #04231f; }   /* tyrkys — Connect it */
.sticker.s6 { background: var(--cream); color: var(--navy); border: 2px solid var(--navy); }
.sticker.s7 { background: var(--navy); color: #f7f5ef; }
.sticker.s8 { background: #f0511f; color: #2a0f06; }   /* vermilion — Něco jako */
.sticker.s9 { background: var(--cream); color: var(--navy); border: 2px solid var(--orange); }
.sticker.s10 { background: #14161a; color: #f5f3ee; }  /* černá — Piráti */

.sticker.s-photo {
    padding: 12px 12px 14px;
    background: var(--cream);
    color: var(--navy);
    border: 2px solid var(--navy);
    max-width: none;
    width: 176px;
}

.sticker.s-photo .frame {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--cream);
    box-shadow: inset 0 0 0 1px rgba(37, 26, 102, 0.12);
    display: grid;
    place-items: center;
}

.sticker.s-photo .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sticker.s-photo .frame .ph {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.7;
    opacity: 0.5;
}

.sticker.s-photo .cap {
    display: block;
    margin-top: 9px;
    text-align: center;
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 18px;
}

.panel-about .reset {
    position: absolute;
    bottom: -50px;
    right: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    background: var(--navy);
    color: var(--cream);
    padding: 8px 14px;
    border-radius: 999px;
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: start;
    margin-top: clamp(24px, 4vh, 52px);
}

.mail {
    display: block;
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: clamp(22px, 3.2vw, 46px);
    line-height: 1.1;
    color: var(--orange);
    word-break: break-word;
}

.mail:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.mail-phone {
    display: block;
    margin-top: 10px;
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.contact-grid .col h4 {
    opacity: 0.7;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-grid .col a {
    display: block;
    font-size: 19px;
    font-weight: 600;
    padding: 3px 0;
}

/* Podtržení místo přebarvení: oranžová na navy má 4.46:1, těsně pod
   hranicí, a jako podtržení je to stejně čitelný signál. */
.contact-grid .col a:hover,
.contact-grid .col a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--orange);
}

.contact-grid .col a i {
    font-size: 14px;
    opacity: 0.7;
}

.panel-contact footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: clamp(34px, 7vh, 90px);
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    opacity: 0.7;
}

/* ============ ERROR WINDOW EASTER EGG ============ */
.error-win {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-2deg) scale(0.9);
    width: min(440px, 86vw);
    background: var(--green);
    border: 2px solid var(--ink);
    border-radius: 8px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ease-snap);
    font-family: "JetBrains Mono", monospace;
    color: var(--ink);
    box-shadow: 14px 14px 0 var(--ink);
}

.error-win.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(-2deg) scale(1);
}

.error-win .bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ink);
    color: var(--paper);
    padding: 6px 10px;
    border-radius: 6px 6px 0 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.error-win .bar button {
    font-family: inherit;
    background: var(--orange);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.error-win .body {
    padding: 22px 18px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.error-win .icon {
    width: 42px;
    height: 42px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    flex: 0 0 auto;
}

.error-win h3 {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.error-win p {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.error-win .actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.error-win .actions button {
    background: var(--ink);
    color: var(--paper);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.error-win .actions button.alt {
    background: var(--paper);
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

/* ============ REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease-out-q), transform 0.6s var(--ease-out-q);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .proj-body {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .spine {
        display: none;
    }

    .wrap {
        padding-right: var(--pad);
    }

    .top ul {
        position: fixed;
        inset: 52px 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: var(--now-bg);
        border-bottom: 1px solid color-mix(in srgb, var(--now-fg) 20%, transparent);
        padding: 8px var(--pad) 18px;
        display: none;
    }

    .top ul.open {
        display: flex;
    }

    .top ul a {
        display: block;
        padding: 12px 0;
        font-size: 13px;
        border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    }

    /* na mobilu: hvězda vlevo, pak jazyk a nakonec menu */
    .lang {
        order: 2;
        margin-left: auto;
    }

    .menu-btn {
        display: block;
        order: 3;
        margin-left: 12px;
    }

    .panel {
        min-height: 0;
        padding: 84px 0 48px;
    }

    .panel-hero {
        min-height: 100svh;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-facts {
        text-align: left;
    }

    .hero-top {
        gap: 6px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .strip img {
        height: clamp(200px, 42vh, 320px);
    }

    /* Na mobilu se samolepky skládají pod sebe — absolutní pozice by se na
       úzké obrazovce překrývaly. Tahání je vypnuté (viz scripts.js). */
    .stickers {
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .stickers .sticker {
        position: static !important;
        transform: none !important;
        max-width: none;
        flex: 1 1 150px;
    }

    .stickers .sticker.s-photo {
        flex: 0 0 176px;
    }

    .panel-about .reset {
        display: none;
    }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
