/* A · Pět v jednom — base, header, hero, marquee, five chapters */
:root {
  --red: #AB161B; --linen: #FAF0E6; --brown: #302009;
  --red-deep: #7E0F13; --wine: #4A0C0E; --blush: #F4D6CF; --crumb: #F3E2C7;
  --crust: #C98A3E; --crust-l: #F2C77E; --news: #D9D2C5; --news-d: #5E574C;
  --fd: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --ft: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gut: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
main, .ftr { overflow-x: clip; }
body { margin: 0; background: var(--linen); color: var(--brown); font: 400 17px/1.55 var(--ft); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fd); margin: 0; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--brown); color: var(--linen); padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
.kicker { font: 700 .78rem/1.3 var(--fd); letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 900; }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 .95rem/1 var(--fd); text-decoration: none; border: 2px solid currentColor; transition: translate .3s var(--spring), background-color .2s, color .2s; }
.btn-l { background: var(--linen); color: var(--red); border-color: var(--linen); }
.btn-o { color: var(--linen); }
.btn-r { background: var(--red); color: var(--linen); border-color: var(--red); }
.btn-b { color: inherit; }
@media (hover: hover) {
  .btn:hover { translate: 0 -3px; }
  .btn-o:hover { background: var(--linen); color: var(--red); }
  .btn-r:hover { background: var(--red-deep); border-color: var(--red-deep); }
  .btn-b:hover { background: var(--brown); color: var(--linen); }
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.hdr { position: fixed; z-index: 50; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 6px; background: var(--linen); border-radius: 999px; box-shadow: 0 8px 30px rgba(48, 32, 9, .18); transition: translate .45s var(--ease); }
.hdr.hide { translate: 0 calc(-100% - 16px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; border-radius: 999px; }
.brand img { width: 44px; height: 44px; }
.brand-t { font: 700 .95rem/1 var(--fd); color: var(--red); letter-spacing: .08em; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav .nav-all { color: var(--red); }
@media (hover: hover) { .nav a:hover { background: var(--crumb); } }
.hdr-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .hdr-r { margin-left: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--crumb); text-decoration: none; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--news-d); flex: none; position: relative; }
.is-open .dot { background: #1F8A3B; }
.is-open .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
.is-closed .dot { background: var(--red); }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.hdr-tel { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--linen); }
.hdr-tel svg { width: 20px; height: 20px; fill: currentColor; }
.lang { display: flex; background: var(--crumb); border-radius: 999px; padding: 3px; }
.lang button { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: none; font: 700 .8rem/1 var(--fd); color: var(--brown); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brown); color: var(--linen); }
.lang { padding: 0; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--brown); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--linen); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) { .pill-t { display: none; } .pill { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 10px; background: var(--linen); border-radius: 24px; box-shadow: 0 18px 40px rgba(48, 32, 9, .22); }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a { font: 700 1.1rem/1 var(--fd); min-height: 52px; }
}
@media (max-width: 420px) { .brand-t { display: none; } .hdr { gap: 6px; } }

/* hero */
.hero { background: var(--red); color: var(--linen); position: relative; }
.motion .hero { height: 215vh; }
.hero-pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 2vw; padding: 104px var(--gut) 48px; position: relative; overflow: hidden; }
.motion .hero-pin { position: sticky; top: 0; height: 100svh; }
.hero-txt { display: grid; gap: 22px; position: relative; z-index: 2; }
.h1 { font-size: clamp(1.75rem, 3.7vw, 4.1rem); font-weight: 700; line-height: 1.08; text-wrap: balance; }
.h1 mark { background: var(--linen); color: var(--red); padding: 0 .16em; border-radius: .28em; display: inline-block; font-weight: 900; line-height: 1.12; rotate: -1.5deg; }
.h1 .nw { white-space: nowrap; }
.h1 mark:nth-of-type(2n) { rotate: 1.8deg; background: var(--crust-l); color: var(--brown); }
.punch { font: 900 clamp(1.5rem, 3.2vw, 3rem)/1.05 var(--fd); color: var(--crust-l); }
.punch b { color: var(--linen); }
.lede { max-width: 34em; font-size: 1.06rem; }
.hero-obj { position: relative; height: min(76svh, 720px); display: grid; grid-template-rows: 1fr auto; }
.burek-stage { position: relative; min-height: 0; cursor: grab; }
.burek-stage.grabbing { cursor: grabbing; }
.burek-stage canvas { position: absolute; inset: -12% -8% -6% -16%; width: 124%; height: 118%; }
.burek-stage .fallback { width: 100%; height: 100%; }
.burek-stage.has3d .fallback { display: none; }
.fill-ui { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; position: relative; z-index: 2; }
.fill-l { font-weight: 500; }
.fill-l b { font-family: var(--fd); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--red-deep); }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--linen); font: 700 .9rem/1 var(--fd); cursor: pointer; transition: background-color .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--linen); color: var(--red); }
.drag-hint { width: 100%; text-align: center; font-size: .85rem; opacity: .85; }
.drag-hint::before { content: '⟲ '; }
.burek-stage:not(.has3d) ~ .fill-ui .drag-hint { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: calc(1 - var(--hp, 0) * 4); }
.scroll-cue span::after { content: ' ↓'; }
html:not(.motion) .scroll-cue { display: none; }

/* hero intro + coil-linked punchline */
.js.motion .h1 .w { display: inline-block; translate: 0 .6em; opacity: 0; transition: translate .8s var(--spring), opacity .5s; transition-delay: calc(var(--i) * 45ms); }
.js.motion .ready .h1 .w { translate: 0 0; opacity: 1; }
.js.motion .hero .punch { opacity: var(--pp, 0); translate: 0 calc((1 - var(--pp, 0)) * 28px); scale: calc(.9 + var(--pp, 0) * .1); transform-origin: left center; }
.js.motion .hero .lede, .js.motion .hero .cta, .js.motion .hero .kicker { opacity: 0; translate: 0 16px; transition: opacity .7s .55s, translate .8s .55s var(--ease); }
.js.motion .ready .lede, .js.motion .ready .cta, .js.motion .ready .kicker { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .hero-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 6px; padding-top: 92px; padding-bottom: 20px; }
  .hero-txt { gap: 12px; }
  .hero-obj { height: auto; min-height: 0; }
  .burek-stage { min-height: 200px; }
  .motion .hero .lede { display: none; }
  .hero .cta { order: 5; }
  .hero .cta .btn { min-height: 44px; padding: 10px 16px; font-size: .85rem; }
  .drag-hint { display: none; }
  .burek-stage canvas { inset: -10% -14%; width: 128%; height: 120%; }
}
@media (max-width: 860px) and (max-height: 700px) { .hero .cta { display: none; } }

/* marquee */
.marq { overflow: hidden; background: var(--brown); color: var(--linen); padding: 16px 0; rotate: -2deg; margin: -18px -20px 0; position: relative; z-index: 3; }
.marq-t { display: flex; width: max-content; gap: 28px; align-items: center; font: 700 clamp(1.3rem, 2.6vw, 2.2rem)/1 var(--fd); white-space: nowrap; animation: marq 26s linear infinite; }
.marq-t span { text-transform: lowercase; }
.marq-b { background: var(--red); rotate: 1.5deg; margin: 0 -20px; }
.marq-b .marq-t { animation-direction: reverse; animation-duration: 20s; }
.marq-b .marq-t span { text-transform: uppercase; }
@keyframes marq { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .marq-t { animation: none; } }

/* five in one */
.pet { position: relative; }
.pet-pin { --bg: var(--crumb); --fg: var(--brown); --ac: var(--red); --tx: var(--brown); position: relative; }
.pet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 110px var(--gut) 24px; }
.pet-title { font: 700 .82rem/1.2 var(--fd); letter-spacing: .14em; text-transform: uppercase; }
.rail { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rail button { min-height: 44px; padding: 0 14px; border: 2px solid transparent; border-radius: 999px; background: none; color: inherit; font: 600 .85rem/1 var(--fd); cursor: pointer; opacity: .7; transition: opacity .2s, background-color .3s, color .3s; }
.rail button[aria-current="true"] { opacity: 1; border-color: currentColor; }
@media (hover: hover) { .rail button:hover { opacity: 1; } }
.ch { --bg: var(--crumb); --fg: var(--red); --tx: var(--brown); background: var(--bg); color: var(--tx); padding: 48px var(--gut) 72px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.ch[data-ch="1"] { --bg: var(--brown); --fg: var(--crust-l); --tx: var(--linen); }
.ch[data-ch="2"] { --bg: var(--blush); --fg: var(--red); --tx: var(--brown); }
.ch[data-ch="3"] { --bg: var(--wine); --fg: var(--crust-l); --tx: var(--linen); }
.ch[data-ch="4"] { --bg: var(--red); --fg: var(--linen); --tx: var(--linen); }
.ch-n { font: 700 .8rem/1 var(--fd); letter-spacing: .12em; }
.ch-word { font-size: clamp(2.6rem, 10.5vw, 10.5rem); font-weight: 900; color: var(--fg); line-height: .92; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ch-line { max-width: 30em; font-size: 1.08rem; }
.ch-items { list-style: none; margin: 0; padding: 0; max-width: 560px; display: grid; }
.ch-items li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--tx) 30%, transparent); font-weight: 500; }
.ch-items b { font-family: var(--fd); font-weight: 700; white-space: nowrap; color: var(--fg); }
.ch-photo { width: min(220px, 40vw); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 6px solid var(--linen); rotate: 4deg; box-shadow: 0 18px 40px rgba(20, 8, 2, .3); }
.ch-icon { width: 96px; height: 96px; fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pet-3d { display: none; }

/* pinned mode */
.motion .pet { height: 560vh; }
.motion .pet-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); color: var(--tx); transition: background-color .7s var(--ease), color .5s; }
.motion .pet-pin[data-ch="1"] { --bg: var(--brown); --tx: var(--linen); }
.motion .pet-pin[data-ch="2"] { --bg: var(--blush); --tx: var(--brown); }
.motion .pet-pin[data-ch="3"] { --bg: var(--wine); --tx: var(--linen); }
.motion .pet-pin[data-ch="4"] { --bg: var(--red); --tx: var(--linen); }
.motion .pet-head { position: relative; z-index: 3; padding-top: 92px; padding-bottom: 0; }
.motion .pet-3d { display: block; position: absolute; z-index: 2; right: 0; top: 14svh; width: 54vw; height: 76svh; pointer-events: none; }
.motion .pet-3d canvas { width: 100%; height: 100%; display: block; }
.motion .chs { position: absolute; inset: 0; }
.motion .ch { position: absolute; inset: 0; background: transparent; color: inherit; padding: 0 var(--gut); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 6svh; align-content: end; gap: 14px 4vw; visibility: hidden; transition: visibility 0s .6s; }
.motion .ch.on { visibility: visible; transition: none; }
.motion .ch > * { grid-column: 1; }
.motion .ch-n { grid-row: 2; }
.motion .ch-word { position: absolute; left: var(--gut); top: 22svh; z-index: 1; white-space: nowrap; font-size: clamp(3rem, 11.2vw, 12rem); }
.motion .ch-line { grid-row: 3; position: relative; z-index: 3; }
.motion .ch-items { grid-row: 4; position: relative; z-index: 3; }
.motion .ch-photo { position: absolute; right: 4vw; bottom: 7svh; top: auto; z-index: 1; grid-area: auto; align-self: end; width: clamp(130px, 13vw, 200px); height: auto; }
.motion .ch-icon { display: none; }
.motion .ch .ch-word .l { display: inline-block; translate: 0 110%; opacity: 0; transition: translate .7s var(--spring), opacity .3s; transition-delay: calc(var(--i) * 35ms); }
.motion .ch.on .ch-word .l { translate: 0 0; opacity: 1; }
.motion .ch .ch-n, .motion .ch .ch-line, .motion .ch .ch-items li, .motion .ch .ch-photo { opacity: 0; translate: 0 24px; transition: opacity .35s, translate .5s var(--ease); }
.motion .ch.on .ch-n, .motion .ch.on .ch-line, .motion .ch.on .ch-items li, .motion .ch.on .ch-photo { opacity: 1; translate: 0 0; transition: opacity .5s .25s, translate .7s .25s var(--ease); }
.motion .ch.on .ch-items li:nth-child(2) { transition-delay: .33s; }
.motion .ch.on .ch-items li:nth-child(3) { transition-delay: .41s; }
.motion .pet-3d:not(.has3d) ~ .chs .ch-icon { display: block; position: absolute; right: 12vw; top: 40svh; width: 22vw; height: 22vw; opacity: .9; }
@media (max-width: 860px) {
  .motion .pet-head { padding-top: 84px; gap: 8px; }
  .pet-head { flex-wrap: wrap; }
  .rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .rail::-webkit-scrollbar { display: none; }
  .rail button { padding: 0 12px; font-size: .74rem; white-space: nowrap; }
  .motion .pet-3d { left: 0; width: 100%; top: 30svh; height: 34svh; }
  .motion .ch { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto 3svh; gap: 10px; }
  .motion .ch-word { top: 23svh; font-size: clamp(2.2rem, 11.5vw, 5rem); }
  .motion .ch-photo { display: none; }
  .motion .ch-line { font-size: .95rem; }
  .motion .ch-items li { padding: 8px 0; font-size: .92rem; }
  .motion .pet-3d:not(.has3d) ~ .chs .ch-icon { right: 50%; translate: 50% 0; top: 34svh; width: 120px; height: 120px; }
}
@media (max-width: 860px) and (max-height: 720px) { .motion .ch-line { display: none; } }
@media (min-width: 861px) {
  html:not(.motion) .ch { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: 5vw; align-items: start; }
  html:not(.motion) .ch > * { grid-column: 1; }
  html:not(.motion) .ch-photo, html:not(.motion) .ch-icon { grid-column: 2; grid-row: 1 / span 4; justify-self: center; align-self: center; }
  html:not(.motion) .ch-photo ~ .ch-icon { display: none; }
  html:not(.motion) .ch-icon { width: 180px; height: 180px; }
}
