@font-face {
    font-family: "Urbanist";
    src: url("../fonts/urbanist.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    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: "Urbanist";
    src: url("../fonts/urbanist-ext.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    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: "Cormorant";
    src: url("../fonts/cormorant-i.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
    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: "Cormorant";
    src: url("../fonts/cormorant-i-ext.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
    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;
}

p, li, dd, .call-lead { text-wrap: pretty; } /* méně osiřelých slov na konci odstavců */
:root {
    --ink: #1c2224;
    --ink-2: #454c4f;
    --muted: #5f6568;
    --line: #e2dacb;
    --card: #ede7db;
    --bg: #f6f2ea;
    --accent: #d97757;           /* claudí terakota */
    --accent-soft: #f5ddd2;
    --accent-ink: #a3462a;       /* akcentový text na --bg (5.4:1), na --card 4.9:1 */
    --accent-on-dark: #f0a284;   /* akcent na tmavém pozadí (7.8:1 na --ink) */
    --on-accent: #1c2224;        /* text na plném akcentu (5.2:1) */
    --clay: var(--accent);
    --clay-soft: var(--accent-soft);
    --band: color-mix(in srgb, var(--accent) 30%, var(--bg)); /* jádro oblouku v úvodu */
    --line-dark: #3a4245;        /* dělicí čáry na tmavém */
    --text-on-dark: #c9c3b8;
    --muted-on-dark: #b3ada2;
    --sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
    --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    /* Typografické role (drobný text); velké nadpisy mají vlastní clamp */
    --fs-label: .78rem;   /* verzálkové popisky */
    --fs-small: .9rem;    /* metadata, patička, drobné texty */
    --fs-body: 1rem;      /* běžný text v kartách */
    --fs-lead: 1.125rem;  /* úvodní a vysvětlující odstavce */
    --fs-title: clamp(1.3rem, 1.9vw, 1.6rem); /* nadpisy karet, kroků, FAQ */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 6px;
}

.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-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
    text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Typografické dvojice: geometrický sans + kurzíva serif */
.t-sans {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: -0.035em;
}
.t-serif {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px var(--gutter);
}
/* S JS je hlavička fixní: při scrollu dolů se schová, při scrollu nahoru vyjede */
.js .header {
    transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.js .header.no-anim { transition: none; }
.js .header.is-pinned {
    position: fixed;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
}
.js .header.is-hidden { transform: translateY(-110%); }
.js .subpage { padding-top: var(--header-h, 89px); }
@media (prefers-reduced-motion: reduce) { .js .header { transition: none; } }
.brand-mark { display: block; line-height: 0; }
.brand-mark img { height: 40px; width: auto; filter: brightness(0); opacity: .88; }
.menu-btn {
    position: relative;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(17, 19, 17, .18);
    background: rgba(255, 255, 255, .85);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: transform .3s var(--ease);
}
.menu-btn:hover { transform: scale(1.05); }
.header-social {
    margin-left: auto;
    margin-right: 10px;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(17, 19, 17, .18);
    background: rgba(255, 255, 255, .85);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: transform .3s var(--ease), color .3s var(--ease);
}
.header-social:hover { transform: scale(1.05); color: var(--accent-ink); }
/* Tlačítko v hlavičce: jen na desktopu a jen u přišpendlené hlavičky (po scrollu nahoru) */
.header .header-cta { display: none; margin-left: auto; margin-right: 10px; padding: 12px 22px 12px 18px; font-size: .95rem; box-shadow: none; }
@media (min-width: 821px) {
    /* Tlačítko je v hlavičce pořád (nic neposkakuje), jen se plynule rozsvítí u přišpendlené hlavičky */
    .js .header .header-cta { display: inline-flex; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
    .js .header .header-cta + .header-social { margin-left: 0; }
    .js .header.is-pinned .header-cta { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    position: absolute; left: 50%; top: 50%;
    width: 18px; height: 1.6px; margin-left: -9px;
    background: var(--ink); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; margin-left: 0; top: 0; }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); background: var(--ink); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); background: var(--ink); }

.menu {
    position: absolute;
    top: 82px; right: var(--gutter);
    width: min(300px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 20px 50px -20px rgba(17, 19, 17, .25);
}
.menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}
.menu a:hover, .menu a:focus-visible { background: var(--accent-soft); }
/* Otevřené menu na mobilu: rozmazané a ztlumené pozadí */
@media (max-width: 900px) {
    body.menu-open::before {
        content: "";
        position: fixed; inset: 0;
        z-index: 19; /* pod hlavičkou s menu (20) */
        background: rgba(28, 34, 36, .18);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        animation: menu-veil .25s var(--ease);
    }
}
@keyframes menu-veil { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.menu-open::before { animation: none; } }
.menu .menu-cta { padding: 8px 6px 6px; margin-top: 6px; border-top: 1px solid var(--line); }
.menu .menu-cta .btn-dark { display: flex; justify-content: center; font-size: 1rem; padding: 14px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.menu .menu-cta .btn-dark:hover, .menu .menu-cta .btn-dark:focus-visible { background: var(--clay); color: var(--ink); }
.menu .menu-cta-note { margin: 8px 0 2px; text-align: center; font-size: .9rem; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 120px var(--gutter) 0;
    text-align: center;
    background: var(--bg);
    isolation: isolate;
    overflow: hidden;
}
/* Tvar úvodu: velký kruhový oblouk (slunce/obzor) za portrétem + tenký soustředný kruh.
   Bez obrázků, čisté CSS; vše je pod textem (z-index: -1). */
.hero::before, .hero::after {
    content: "";
    position: absolute;
    left: 50%;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.hero::before {
    top: 24%;
    width: min(1040px, 118vw);
    aspect-ratio: 1;
    translate: -50% 0;
    background:
        radial-gradient(circle at 50% 46%, var(--band) 0%, color-mix(in srgb, var(--clay) 16%, var(--bg)) 52%, transparent 71%);
}
.hero::after {
    top: calc(24% + 70px);
    width: min(760px, 92vw);
    aspect-ratio: 1;
    translate: -50% 0;
    border: 1.5px solid color-mix(in srgb, var(--clay) 38%, transparent);
    background: conic-gradient(from 210deg at 50% 50%, transparent 0 62%, color-mix(in srgb, var(--clay) 22%, transparent) 78%, transparent 92%);
    animation: heroOrbit 60s linear infinite;
}
@keyframes heroOrbit { to { rotate: 360deg; } }
.hero-title {
    position: relative;
    z-index: 3;
    margin: 0;
    font-weight: 500;
    line-height: .95;
}
.hero-title .t-sans { font-size: clamp(2.4rem, 6.4vw, 5.8rem); }
.hero-title .t-serif {
    font-size: clamp(2.6rem, 7.2vw, 6.6rem);
    line-height: .9;
    margin-top: -.02em;
}

.hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px) 1fr;
    align-items: end;
    max-width: var(--max);
    margin: calc(-1 * clamp(10px, 2.4vw, 42px)) auto 0;
    text-align: left;
}
.hero-portrait {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 4; /* hlava je před nadpisem: tah „g“ jí zajíždí za vlasy */
    width: 100%;
    height: auto;
    filter: grayscale(1) contrast(1.08) brightness(1.12);
    display: block;
}
 .hero-right {
    grid-row: 1;
    position: relative;
    z-index: 2;
}
.hero-right {
    grid-column: 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 30px;
    padding: 0 0 70px 0;
    margin-left: -56px; /* text smí zajet do volného místa vedle ramene, ať je řádek širší */
}
.hero-sub strong { font-weight: 600; }
.hero-sub {
    max-width: 430px;
    font-size: 1.12rem;
    line-height: 1.45;
    font-weight: 400;
}

.btn-dark {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px 16px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0 0 4px rgba(255,255,255,.6), 0 12px 30px -12px rgba(0,0,0,.5);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-dark:hover { transform: translateY(-2px); background: var(--clay); color: var(--ink); }
.contact-panel .btn-dark:hover { transform: translateY(-2px); background: var(--bg); color: var(--ink); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn-dark:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Logo marquee ---------- */
.logos {
    position: relative;
    z-index: 2;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow: hidden;
    padding: 26px 0 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee {
    display: flex;
    width: max-content;
    animation: marquee 114s linear infinite;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
    padding-right: clamp(48px, 7vw, 96px);
}
.marquee img {
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.2);
    opacity: .62;
}
.marquee img.logo-lg { height: 64px; max-width: 170px; margin: -15px 0; }
.marquee img.logo-wide { height: 22px; max-width: 200px; }
.work-logo.logo-lg { height: 48px; margin: -11px 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* ---------- Ocenění pod logy ---------- */
.awards { padding: 8px var(--gutter) 16px; text-align: center; background: var(--bg); position: relative; z-index: 2; }
.awards-h { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.awards-list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px clamp(28px, 5vw, 64px); }
.awards-item { display: flex; align-items: center; gap: 10px; }
.awards-list img { height: 34px; width: auto; filter: grayscale(1); opacity: .7; }
/* optické vyvážení log */
.awards-list img[src$="effie.webp"] { height: 38px; }
.awards-list img[src$="adc.webp"] { height: 28px; }
.awards-list img[src$="webtop.webp"] { height: 30px; }
.awards-list img[src$="lupa.webp"] { height: 36px; }
.awards-list img[src$="shoproku.webp"] { height: 32px; }
.awards-list img[src$="mediar.webp"] { height: 20px; }
@media (max-width: 600px) { .awards-list { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; gap: 18px 32px; } }
.awards-count { font-size: 1.05rem; font-weight: 600; color: var(--accent-ink); }
.awards-item--stack { flex-direction: column; gap: 2px; }
.awards-item--stack .awards-sub { line-height: 1; margin-top: -1px; }
.awards-sub { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a857c; }
/* Pauza při najetí řeší JS (Web Animations API), aby pás neskočil na začátek */

/* ---------- Sections ---------- */
section { scroll-margin-top: 20px; }

.section-head {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.035em;
}
.lead {
    margin: 18px auto 0;
    max-width: 620px;
    color: var(--ink-2);
    font-size: 1.1rem;
}

/* About */
.about {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(32px, 4.5vw, 64px) var(--gutter) clamp(50px, 7vw, 90px);
    display: grid;
    grid-template-columns: 1fr minmax(0, 680px) 1fr;
    column-gap: 24px;
    text-align: center;
}
.about .about-more { grid-row: 3; }
.statement {
    grid-column: 2;
    grid-row: 2;
    font-size: clamp(1.6rem, 2.9vw, 2.5rem);
    line-height: 1.18;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.statement .statement-accent { color: var(--accent-ink); }
.about-more {
    grid-column: 2;
    max-width: 520px;
    margin: 28px auto 0;
    color: var(--ink-2);
}
.chips {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 6px;
}
.chips-left { grid-column: 1; align-items: flex-start; }
.chips-right { grid-column: 3; align-items: flex-end; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 500;
    box-shadow: 0 6px 16px -10px rgba(0,0,0,.25);
}
.chips-left .chip:nth-child(1) { transform: rotate(-4deg); }
.chips-left .chip:nth-child(2) { transform: rotate(3deg) translateX(18px); }
.chips-left .chip:nth-child(3) { transform: rotate(-2deg); }
.chips-right .chip:nth-child(1) { transform: rotate(4deg); }
.chips-right .chip:nth-child(2) { transform: rotate(-3deg) translateX(-18px); }
.chips-right .chip:nth-child(3) { transform: rotate(2deg); }
.ic {
    width: 18px; height: 18px; border-radius: 5px;
    display: inline-block;
}
.ic-a { background: #1c2224; }
.ic-b { background: #596064; }
.ic-c { background: var(--accent); }
.ic-d { background: #8f8a80; }
.ic-e { background: #b9b2a5; }
.ic-f { background: var(--ink-2); }

/* Thinking – tilted cards */
.thinking {
    position: relative;
    padding: clamp(50px, 7vw, 90px) var(--gutter) clamp(60px, 8vw, 110px);
}
.path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 80px);
    max-width: 1120px;
    margin: clamp(56px, 7vw, 96px) auto 0;
}
.path-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    z-index: 1;
}
.step { position: relative; }
.step-node {
    position: relative;
    z-index: 2;
    display: block;
    width: 18px; height: 18px;
    margin-bottom: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 2.2px solid var(--accent-ink);
    box-shadow: 0 0 0 5px var(--bg);
}
.step h3 {
    font-size: clamp(1.45rem, 2.1vw, 1.8rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.step p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; max-width: 30em; }

/* Services – velké řádky */
.services {
    padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 110px);
}
.services-grid {
    max-width: var(--max);
    margin: clamp(40px, 6vw, 64px) auto 0;
    border-bottom: 1px solid var(--line);
}
.service { border-top: 1px solid var(--line); }
.service summary {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(12px, 3vw, 40px);
    padding: clamp(22px, 3vw, 34px) 0;
    cursor: pointer;
    list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--accent-ink);
}
.service-title {
    font-size: clamp(1.5rem, 3.4vw, 3rem);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.03em;
    transition: color .25s, translate .4s var(--ease);
}
.service summary:hover .service-title { color: var(--accent-ink); translate: 8px 0; }
.plus {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    flex: none;
    transition: background .25s, transform .4s var(--ease);
}
.plus::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plus::after { content: none; }
.service summary:hover .plus { background: var(--accent-soft); }
details[open] > summary .plus { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
details[open] > summary .plus::before { background: var(--on-accent); }
.service > p {
    margin: 0 0 clamp(24px, 3vw, 36px);
    padding-left: calc(56px + clamp(12px, 3vw, 40px));
    max-width: calc(56px + 40px + 40em);
    color: var(--ink-2);
    font-size: 1.08rem;
}

/* Works */
.works {
    padding: clamp(50px, 7vw, 90px) var(--gutter) clamp(60px, 8vw, 110px);
}
.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 3vw, 44px);
    max-width: 1120px;
    margin: clamp(40px, 6vw, 64px) auto 0;
}
.work {
    display: block;
    text-decoration: none;
    border-radius: 26px;
}
.work-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    background: var(--card);
    border-radius: 26px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.work-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
/* Můj Albert: ruka vychází z pravého okraje rámu, takže není vidět, kde je fotka useknutá */
.work-frame img.hand {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 97%;
    object-fit: contain;
    transform-origin: right center;
}
.work:hover .work-frame img { transform: scale(1.03); }
.work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 10px;
}
.work-logo { height: 26px; width: auto; max-width: 120px; object-fit: contain; object-position: left; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tags span {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-2);
}
.work h3 {
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.work p { color: var(--ink-2); font-size: 1rem; }

/* FAQ */
.faq { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 100px); }
.faq-list {
    max-width: 820px;
    margin: clamp(32px, 5vw, 56px) auto 0;
    border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; }
.faq-item .plus { width: 34px; height: 34px; }
.faq-item > p { padding: 0 60px 24px 0; color: var(--ink-2); }
.faq-item a { text-underline-offset: 3px; }
.service > p a { color: var(--accent-ink); text-underline-offset: 3px; }
.service > p a:hover { color: var(--ink); }

/* Contact */
.contact { padding: 0 var(--gutter) clamp(40px, 5vw, 60px); }
.contact-panel {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 80px);
    text-align: center;
    border-radius: 36px;
    background: var(--accent);
    color: var(--on-accent);
}
.contact-panel h2 { color: var(--on-accent); }
.contact-panel h2 .t-serif { color: var(--on-accent); }
.contact-panel .btn-dark { background: var(--ink); color: var(--bg); box-shadow: none; }
.contact-panel h2 { font-weight: 500; line-height: 1; }
.contact-panel h2 .t-sans { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.contact-panel h2 .t-serif { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; }
.contact-text {
    max-width: 560px;
    margin: 22px auto 30px;
    font-size: 1.08rem;
    color: var(--on-accent);
}
.contact-panel .btn-dark { align-self: center; }
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.contact-links a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 35%, transparent);
    border: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent);
    color: var(--on-accent);
    text-decoration: none;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.contact-links a:hover { background: var(--bg); color: var(--ink); }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px var(--gutter) 40px;
    color: var(--ink-2);
    font-size: .92rem;
    flex-wrap: wrap;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink-2); text-underline-offset: 3px; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-logo img { height: 36px; }

/* ---------- Motion ---------- */
.js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js .path-line path { transition: stroke-dashoffset 2s var(--ease) .3s; }
.js .path:not(.is-in) .path-line path { stroke-dashoffset: var(--len, 0); }
/* Hero nečeká na scroll: vstupní animace běží hned a končí viditelná */
.js .hero .reveal { opacity: 1; translate: 0 0; transition: none; animation: heroIn .9s var(--ease) both; }
.js .hero-title .t-sans { animation-delay: .05s; }
.js .hero-title .t-serif { animation-delay: .16s; }
.js .hero-right { animation-delay: .3s; }
@keyframes heroIn { from { opacity: 0; translate: 0 24px; } }
.js .step-2 { transition-delay: .15s; }
.js .step-3 { transition-delay: .3s; }

/* Shopify jako pátý řádek služeb */
.t-serif-inline { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--accent-ink); font-size: 1.15em; line-height: .8; }

/* Shopify blok (dřív samostatný) */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee-track[aria-hidden="true"] { display: none; }
    .marquee-track:first-child img:nth-child(n+10) { display: none; }
    .logos { -webkit-mask-image: none; mask-image: none; }
    .js .reveal { opacity: 1; translate: none; transition: none; animation: none; }
    .js .path-line path { transition: none; stroke-dashoffset: 0 !important; }
    .hero::after { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 1024px) {
    .hero-stage { grid-template-columns: 1fr minmax(260px, 420px) 1fr; }
    .hero-right { padding: 0 0 56px 0; margin-left: -24px; gap: 24px; }
    .hero-sub { font-size: 1rem; }
}

@media (max-width: 820px) {
    .hero { padding-top: 104px; }
    .hero-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -28px;
    }
    .hero-portrait {
        order: 1;
        width: min(92%, 400px);
        -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
        mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
    }
    .hero-right {
        order: 2;
        align-items: center;
        text-align: center;
        padding: 0 0 26px;
        margin-top: -30px;
        gap: 22px;
    }
    .hero-sub { max-width: 440px; }
    .hero-right .btn-dark { align-self: center; }

    .path { grid-template-columns: 1fr; row-gap: 48px; padding-left: 36px; }
    .step-node { position: absolute; left: -36px; top: 4px; margin: 0; }
    .service summary { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .plus { width: 42px; height: 42px; }
    .service > p { padding-left: 0; }
    .about { grid-template-columns: 1fr; }
     .statement, .about-more { grid-column: 1; }
     .about .about-more { grid-row: auto; }
    .statement { grid-row: auto; }
    .chips { grid-row: auto; grid-column: 1 !important; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; }
    .chips .chip { transform: none !important; }

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

@media (max-width: 480px) {
    .hero-title .t-sans { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .hero-title .t-serif { font-size: clamp(2.2rem, 9.5vw, 2.8rem); }
    .hero::before { top: 30%; width: 150vw; }
    .hero::after { top: calc(30% + 40px); width: 108vw; }
    body { font-size: 16px; }
    .header { padding-top: 18px; }
    .work-meta { flex-wrap: wrap; }
    .faq-item h3 { font-size: 1.12rem; }
    .faq-item > p { padding-right: 0; }
    .contact-panel { border-radius: 26px; }
    .footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Podstránky (case studies, blog) ---------- */
.subpage .header {
    position: relative;
    border-bottom: 1px solid var(--line);
}
.subpage .menu { top: 82px; }
.js .subpage .header { position: absolute; background: var(--bg); }
.js .subpage .header.is-pinned { position: fixed; }
.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 110px);
}
.breadcrumbs { font-size: .92rem; color: var(--muted); margin-bottom: clamp(24px, 4vw, 40px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); }

/* ---------- Formulář „Domluvit úvodní sezení“ ---------- */
.call-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(var(--vvh, 100dvh) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 30px 80px -20px rgba(28, 34, 36, .45);
}
.call-dialog::backdrop { background: rgba(28, 34, 36, .55); }
html:has(.call-dialog[open]) { overflow: hidden; }
.call-form { position: relative; display: grid; gap: 16px; padding: 36px 32px 32px; }
.call-form h2 { font-weight: 500; line-height: 1; font-size: clamp(2rem, 5vw, 2.6rem); padding-right: 48px; }
.call-form h2:focus { outline: none; }
.call-form h2 .t-serif { color: var(--accent-ink); }
.call-lead { color: var(--ink-2); }
.call-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.call-form [hidden] { display: none; }
.call-opt { color: var(--ink-2); font-weight: 400; }
.call-form input, .call-form textarea {
    font: inherit;
    font-size: max(16px, 1rem); /* pod 16 px iOS při kliknutí přibližuje stránku */
    font-weight: 400;
    color: var(--ink);
    background: #fff;
    border: 1px solid #8f877a;
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
}
.call-form textarea { resize: vertical; min-height: 110px; }
.call-form input:focus-visible, .call-form textarea:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: transparent; }
.call-form [aria-invalid="true"] { border-color: #a3301c; border-width: 2px; }
.call-form .btn-dark { justify-self: start; font-family: inherit; border: 0; cursor: pointer; }
.call-form .btn-dark:disabled { opacity: .6; cursor: progress; }
.call-close {
    position: absolute; top: 12px; right: 12px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent;
    font: inherit; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.call-close:hover { background: var(--card); }
.call-field { display: grid; gap: 6px; }
.call-field > label { font-weight: 500; font-size: .95rem; }
.call-tel { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.call-form select {
    font: inherit; font-size: max(16px, 1rem); color: var(--ink);
    background: #fff; border: 1px solid #8f877a; border-radius: 12px;
    padding: 12px 10px; max-width: 9.5em;
}
.call-form select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: transparent; }
/* Viditelný posuvník (desktop, Android) */
.call-dialog { scrollbar-width: thin; scrollbar-color: #8f877a transparent; }
.call-dialog::-webkit-scrollbar { width: 8px; }
.call-dialog::-webkit-scrollbar-thumb { background: #8f877a; border-radius: 8px; }
/* Náznak, že je pod okrajem další obsah */
.call-more {
    position: sticky; bottom: -32px; /* -padding formuláře, aby seděla ke spodní hraně dialogu */
    margin: -56px -32px -32px; height: 56px;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
    background: linear-gradient(to bottom, rgba(246, 242, 234, 0), var(--bg) 70%);
    pointer-events: none; opacity: 0; transition: opacity .2s;
}
.call-more span { font-size: 1.1rem; color: var(--ink-2); animation: call-bob 1.4s ease-in-out infinite; }
.has-more .call-more { opacity: 1; }
@keyframes call-bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .call-more span { animation: none; } }
/* Stavy: odesílání a odesláno */
.call-stage { position: relative; }
.call-body { display: grid; gap: 16px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.is-sending .call-body { opacity: 0; transform: translateY(6px); pointer-events: none; }
.is-sent .call-stage { display: none; }
.call-sending {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    color: var(--accent-ink);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease) .15s;
}
.is-sending .call-sending { opacity: 1; }
.is-sending .call-plane { animation: call-fly 1.6s var(--ease) infinite; }
@keyframes call-fly {
    0% { transform: translate(-14px, 10px) rotate(-6deg); opacity: 0; }
    25% { opacity: 1; }
    70% { transform: translate(10px, -8px) rotate(4deg); opacity: 1; }
    100% { transform: translate(22px, -18px) rotate(6deg); opacity: 0; }
}
.call-dots { display: flex; gap: 6px; }
.call-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .25; animation: call-dot 1s infinite; }
.call-dots i:nth-child(2) { animation-delay: .15s; }
.call-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes call-dot { 40% { opacity: 1; transform: translateY(-3px); } }
.call-done { display: grid; gap: 18px; justify-items: start; animation: call-in .45s var(--ease); }
.call-done p { font-size: 1.15rem; color: var(--ink); }
.call-check { color: var(--accent-ink); }
.call-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: call-draw .6s var(--ease) forwards; }
.call-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: call-draw .35s var(--ease) .5s forwards; }
@keyframes call-draw { to { stroke-dashoffset: 0; } }
@keyframes call-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
    .is-sending .call-plane, .call-dots i, .call-done { animation: none; }
    .call-check circle, .call-check path { animation: none; stroke-dashoffset: 0; }
}
.call-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.call-note { font-size: .85rem; color: var(--ink-2); }
.call-status:empty { display: none; }
.call-status:focus { outline: none; }
.call-status.is-err { color: #a3301c; }
.call-status.is-ok { color: var(--ink); font-size: 1.15rem; font-weight: 500; }
.call-status a { color: inherit; }
@media (max-width: 600px) {
    .call-dialog { top: var(--vvt, 0px); bottom: auto; margin: 16px auto 0; }
    .call-form { padding: 28px 20px 24px; gap: 14px; }
    .call-form h2 { font-size: 2rem; }
    .call-more { bottom: -24px; margin: -56px -20px -24px; }
}

/* ---------- Sjednocená typografická škála (přebíjí dílčí velikosti výše) ---------- */
.awards-h, .awards-sub, .tags span { font-size: var(--fs-label); }
.header .header-cta, .footer, .breadcrumbs, .chip, .menu .menu-cta-note,
.call-form label, .call-field > label, .call-note { font-size: var(--fs-small); }
.btn-dark, .step p, .work p, .menu .menu-cta .btn-dark { font-size: var(--fs-body); }
.hero-sub, .lead, .contact-text, .service > p, .menu a, .call-done p, .faq-item > p, .awards-count { font-size: var(--fs-lead); }
.step h3, .work h3, .faq-item h3 { font-size: var(--fs-title); }
@media (max-width: 820px) { .hero-sub { font-size: var(--fs-body); } .faq-item h3 { font-size: 1.15rem; } }
