/* ==========================================================================
   DANSTA — Všetko pre Vašu reklamu
   Dark, cinematic, editorial. Single theme by design.
   Type: Fraunces (display) + Manrope (text/UI), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format("woff2-variations");
  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: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format("woff2-variations");
  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: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext-italic.woff2) format("woff2-variations");
  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: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-italic.woff2) format("woff2-variations");
  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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format("woff2-variations");
  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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format("woff2-variations");
  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;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0c0d10;
  --ink-2: #111318;
  --char: #15171b;
  --slate: #2e2f33;
  --paper: #efe9df;
  --paper-2: rgba(239, 233, 223, 0.72);
  --ash: #9a968f;
  --ash-2: rgba(239, 233, 223, 0.38);
  --line: rgba(239, 233, 223, 0.10);
  --line-2: rgba(239, 233, 223, 0.18);
  --crimson: #ad1d33;
  --crimson-2: #e24a5e;
  --crimson-glow: rgba(173, 29, 51, 0.35);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --w: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 12vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t: 0.5s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* film grain */
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}
::selection { background: var(--crimson); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--crimson-2); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 350; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.5vw, 40px); }

/* Type scale */
.t-hero  { font-size: clamp(2.9rem, 8.2vw, 7.6rem); line-height: 0.96; letter-spacing: -0.03em; }
.t-1     { font-size: clamp(2.4rem, 5.6vw, 5rem); letter-spacing: -0.025em; }
.t-2     { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.t-3     { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.lede    { font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--paper-2); max-width: 36ch; font-weight: 400; }
.eyebrow { display: flex; font-family: var(--text); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ash); align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--crimson); }
.eyebrow.plain::before { display: none; }
em.i { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; color: var(--paper); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(12, 13, 16, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand .word { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.06em; font-weight: 500; line-height: 1; }
.brand .tag { display: block; font-family: var(--text); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); margin-top: 5px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: 0.86rem; font-weight: 500; color: var(--paper-2); position: relative; padding: 6px 0; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--paper); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .cta { margin-left: 8px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper); }
.nav .cta::after { display: none; }
.nav .cta:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--paper); transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-top: 120px; padding-bottom: clamp(48px, 6vw, 96px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(46px) saturate(1.2) brightness(0.45); transform: scale(1.35); opacity: 0.85; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 70% 20%, rgba(173,29,51,0.25), transparent 70%),
  linear-gradient(180deg, rgba(12,13,16,0.35) 0%, rgba(12,13,16,0.55) 55%, var(--ink) 100%); }
.hero-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(239,233,223,0.07), transparent 60%); transition: opacity 0.6s; }
.hero .wrap { position: relative; }
.hero-eyebrow { margin-bottom: clamp(20px, 3vw, 36px); }
.hero h1 { max-width: 12ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(0); }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: clamp(32px, 5vw, 64px); }
.hero-foot .lede { max-width: 44ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; border: 1px solid var(--line-2); color: var(--paper); transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(4px); }
.btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.primary:hover { background: #fff; }
.btn.ghost:hover { border-color: var(--paper); }
.btn.accent { background: var(--crimson); border-color: var(--crimson); color: #fff; box-shadow: 0 10px 40px -10px var(--crimson-glow); }
.btn.accent:hover { background: #c02239; }

/* Shelf of covers in hero */
.shelf { display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-end; justify-content: flex-end; perspective: 1200px; }
.shelf a { display: block; position: relative; flex: 0 0 auto; width: clamp(96px, 11vw, 150px); border-radius: 3px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06) inset; transform-style: preserve-3d; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.shelf a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0.18) 0%, transparent 28%, transparent 70%, rgba(255,255,255,0.06) 100%); pointer-events: none; }
.shelf a::before { content: ""; position: absolute; left: 4%; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,0.35); z-index: 2; }
.shelf a:nth-child(1) { transform: rotateY(-10deg) translateY(4px); }
.shelf a:nth-child(2) { transform: rotateY(-4deg) translateY(-8px); }
.shelf a:nth-child(3) { transform: rotateY(4deg) translateY(2px); }
.shelf a:nth-child(4) { transform: rotateY(10deg) translateY(-4px); }
.shelf a:hover { transform: rotateY(0) translateY(-12px) scale(1.03); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1) inset; z-index: 2; }
.shelf img { width: 100%; aspect-ratio: 121/170; object-fit: cover; }

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--ink); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--display); font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 350; color: var(--paper-2); padding: 0 34px; white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); flex: 0 0 auto; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section.tight { padding-block: calc(var(--section) * 0.6); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lede { justify-self: end; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Services list */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr) 48px; gap: clamp(12px, 2vw, 32px); align-items: baseline; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left 0.5s var(--ease); }
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -1px; background: linear-gradient(90deg, rgba(239,233,223,0.04), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.service:hover::before { opacity: 1; }
.service:hover { padding-left: 12px; }
.service .n { font-family: var(--text); font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--ash-2); letter-spacing: 0.1em; }
.service h3 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 350; transition: color 0.3s; }
.service p { color: var(--ash); font-size: 0.98rem; line-height: 1.55; max-width: 52ch; }
.service .arrow { justify-self: end; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--paper-2); transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease); align-self: center; }
.service .arrow svg { width: 14px; height: 14px; }
.service:hover .arrow { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(-45deg); }

/* Portfolio tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.tile { position: relative; overflow: hidden; border-radius: 6px; background: var(--char); border: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.6vw, 36px); isolation: isolate; transition: border-color 0.4s, transform 0.6s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile.big { grid-column: span 7; min-height: 520px; }
.tile.mid { grid-column: span 5; min-height: 520px; }
.tile.third { grid-column: span 4; }
.tile .bg { position: absolute; inset: 0; z-index: -1; }
.tile .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(0.55) saturate(1.15); transform: scale(1.3); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.tile:hover .bg img { transform: scale(1.36); filter: blur(22px) brightness(0.62) saturate(1.25); }
.tile .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,16,0.1), rgba(12,13,16,0.85) 80%); }
.tile .art { position: absolute; right: clamp(20px, 3vw, 44px); top: clamp(20px, 3vw, 44px); display: flex; gap: 12px; align-items: flex-start; perspective: 900px; }
.tile .art img { width: clamp(84px, 9vw, 132px); border-radius: 2px; box-shadow: 0 24px 40px -16px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.07); transform: rotateY(-8deg) rotateX(2deg); transition: transform 0.7s var(--ease); }
.tile .art img:nth-child(2) { transform: rotateY(6deg) translateY(28px); }
.tile:hover .art img { transform: rotateY(-2deg) translateY(-6px); }
.tile:hover .art img:nth-child(2) { transform: rotateY(2deg) translateY(20px); }
.tile .art.wide img { width: clamp(150px, 16vw, 230px); }
.tile .eyebrow { margin-bottom: 14px; }
.tile h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.tile p { color: var(--paper-2); max-width: 40ch; font-size: 0.98rem; }
.tile .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; color: var(--paper); }
.tile .more svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.tile:hover .more svg { transform: translateX(5px); }
.tile.text-only { background: radial-gradient(120% 90% at 100% 0%, rgba(173,29,51,0.14), transparent 55%), linear-gradient(160deg, var(--char), var(--ink-2)); }
.tile.text-only h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

/* About band */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.about .big { font-family: var(--display); font-weight: 350; letter-spacing: -0.02em; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; text-wrap: balance; font-variation-settings: "opsz" 144, "SOFT" 30; }
.about .big em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
.stat { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 40px; flex-wrap: wrap; }
.stat div { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--display); font-weight: 350; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); font-weight: 600; }
.about .list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.about .list li:last-child { border-bottom: 1px solid var(--line); }
.about .list b { font-family: var(--display); font-weight: 450; font-size: 1.15rem; }
.about .list span { color: var(--ash); font-size: 0.96rem; line-height: 1.55; }

/* Contact band */
.contact-band { position: relative; overflow: hidden; background: var(--char); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-band::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(173,29,51,0.22), transparent 62%); pointer-events: none; }
.contact-band .inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.contact-band .mail { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 4.6rem); font-weight: 350; letter-spacing: -0.02em; line-height: 1; display: block; width: max-content; max-width: 100%; position: relative; word-break: break-all; }
.contact-band .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--crimson); transform: scaleX(0.18); transform-origin: left; transition: transform 0.6s var(--ease); }
.contact-band .mail:hover::after { transform: scaleX(1); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; font-size: 1rem; }
.dl dt { color: var(--ash); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; padding-top: 5px; }
.dl dd { margin: 0; }
.dl a:hover { color: var(--crimson-2); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; color: var(--ash); font-size: 0.82rem; }
.footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--paper); }

/* ---------- Subpage header ---------- */
.page-head { padding-top: calc(84px + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 88px); position: relative; overflow: hidden; }
.page-head .bg { position: absolute; inset: 0; z-index: -1; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) brightness(0.35) saturate(1.2); transform: scale(1.4); opacity: 0.9; }
.page-head .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,16,0.2), var(--ink) 100%); }
.page-head .grid { align-items: end; }
.page-head .title { grid-column: 1 / span 8; }
.page-head .title .eyebrow { margin-bottom: 22px; }
.page-head .lede { grid-column: 9 / -1; }
.page-head .intro { grid-column: 1 / span 8; margin-top: 28px; display: grid; gap: 16px; }
.page-head .intro p { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--paper-2); max-width: 64ch; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--ash); margin-bottom: 24px; }
.crumbs a:hover { color: var(--paper); }
.crumbs span { opacity: 0.5; }

/* ---------- Works (subpages) ---------- */
.work { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.5vw, 40px); row-gap: 28px; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); align-items: center; }
.work:last-of-type { border-bottom: 1px solid var(--line); }
.work .media { grid-column: 1 / span 6; }
.work .body { grid-column: 8 / span 5; }
.work:nth-child(even) .media { grid-column: 7 / span 6; order: 2; }
.work:nth-child(even) .body { grid-column: 1 / span 5; }
.work .media a, .work .media div.frame { display: block; position: relative; }
.frame { position: relative; border-radius: 6px; overflow: hidden; background: var(--char); border: 1px solid var(--line); isolation: isolate; }
.frame .blur { position: absolute; inset: 0; z-index: 0; }
.frame .blur img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) brightness(0.5) saturate(1.2); transform: scale(1.3); }
.frame .stage { position: relative; z-index: 1; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); min-height: 360px; perspective: 1100px; }
.frame .stage img { max-height: min(60vh, 460px); width: auto; max-width: 100%; border-radius: 2px; box-shadow: 0 40px 70px -24px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.08); transition: transform 0.8s var(--ease); transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg)); }
.frame:hover .stage img { transform: rotateY(0) rotateX(0) translateY(-4px); }
.frame .count { position: absolute; z-index: 2; right: 16px; bottom: 14px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--paper-2); background: rgba(12,13,16,0.55); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.frame .count svg { width: 12px; height: 12px; }
.work .kind { margin-bottom: 18px; }
.work h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 18px; }
.work p { color: var(--paper-2); font-size: 1.02rem; line-height: 1.65; max-width: 48ch; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.specs li { font-size: 0.74rem; letter-spacing: 0.06em; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper-2); font-weight: 500; }
.credit { margin-top: 16px; font-size: 0.8rem; color: var(--ash); }
.work .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Process strip (Letáky / Pohľadnice) */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.process li { background: var(--ink-2); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 40px; min-height: 220px; transition: background 0.4s; }
.process li:hover { background: var(--char); }
.process .n { font-variant-numeric: tabular-nums; font-size: 0.74rem; letter-spacing: 0.2em; color: var(--crimson-2); font-weight: 700; }
.process b { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.15; margin-top: auto; }
.related { margin-top: clamp(40px, 6vw, 80px); }
.related .eyebrow { margin-bottom: 20px; }
.related ul { display: flex; gap: 12px; flex-wrap: wrap; }
.related a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.88rem; font-weight: 500; transition: background 0.3s, color 0.3s; }
.related a:hover { background: var(--paper); color: var(--ink); }
.related a svg { width: 13px; height: 13px; }

/* Info page */
.info-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); }
.info-grid .lead { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 350; line-height: 1.2; }
.offer { border-top: 1px solid var(--line); }
.offer li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.offer b { font-family: var(--display); font-weight: 450; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.15; }
.offer span { color: var(--paper-2); line-height: 1.6; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.contact-grid .mail { font-family: var(--display); font-size: clamp(1.7rem, 4.6vw, 4.2rem); font-weight: 350; letter-spacing: -0.02em; line-height: 1; word-break: break-all; display: block; width: max-content; max-width: 100%; position: relative; }
.contact-grid .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--crimson); transform: scaleX(0.18); transform-origin: left; transition: transform 0.6s var(--ease); }
.contact-grid .mail:hover::after { transform: scaleX(1); }
.contact-grid .phone { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.8rem); font-weight: 350; display: block; margin-top: 24px; font-variant-numeric: tabular-nums; }
.contact-grid .phone:hover { color: var(--crimson-2); }
.card { background: var(--char); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(173,29,51,0.25), transparent 65%); pointer-events: none; }
.card .logo { width: 88px; height: 88px; margin-bottom: 28px; border-radius: 4px; box-shadow: 0 20px 40px -18px rgba(0,0,0,0.9); }
.card .dl { margin-top: 4px; }
.card .btn { margin-top: 28px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 11, 0.94); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); color: var(--paper-2); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.lb-top .title { color: var(--paper); font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 400; }
.lb-close { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.lb-close:hover { background: var(--paper); color: var(--ink); }
.lb-close svg { width: 16px; height: 16px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(56px, 8vw, 120px); min-height: 0; }
.lb-stage img { max-width: 100%; height: min(calc(100vh - 210px), 700px); width: auto; object-fit: contain; border-radius: 3px; box-shadow: 0 60px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.08); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); image-rendering: auto; }
.lb-stage img.is-switching { opacity: 0; transform: scale(0.985); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--paper); transition: background 0.3s, color 0.3s; background: rgba(12,13,16,0.4); }
.lb-nav:hover { background: var(--paper); color: var(--ink); }
.lb-nav svg { width: 18px; height: 18px; }
.lb-nav.prev { left: clamp(10px, 2vw, 28px); } .lb-nav.next { right: clamp(10px, 2vw, 28px); }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--gutter) 22px; color: var(--ash); font-size: 0.8rem; }
.lb-bottom .counter { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; color: var(--paper-2); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 60vw; scrollbar-width: none; padding: 4px; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 auto; width: 54px; height: 40px; border-radius: 3px; overflow: hidden; opacity: 0.45; transition: opacity 0.3s, transform 0.3s var(--ease); outline-offset: 2px; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button.active, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button.active { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--crimson-2); }
body.lb-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.15s + var(--i, 0) * 0.11s); }
.js .hero .fade { opacity: 0; animation: fade 1s var(--ease) forwards; animation-delay: var(--d, 0.6s); }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tile.big, .tile.mid { grid-column: span 6; min-height: 460px; }
  .tile.third { grid-column: span 6; }
}
@media (max-width: 900px) {
  .header .wrap { height: 72px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0; background: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--gutter); gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s; z-index: -1; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 350; padding: 8px 0; color: var(--paper); }
  .nav a::after { display: none; }
  .nav .cta { margin: 22px 0 0; font-family: var(--text); font-size: 0.95rem; padding: 14px 22px; }
  .hero { padding-top: 110px; min-height: 92svh; }
  .hero-foot { grid-template-columns: 1fr; }
  .shelf { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .service { grid-template-columns: 36px minmax(0, 1fr) 44px; grid-template-areas: "n h a" "n p a"; row-gap: 8px; align-items: start; }
  .service .n { grid-area: n; padding-top: 10px; }
  .service h3 { grid-area: h; }
  .service p { grid-area: p; }
  .service p:empty { display: none; }
  .service .arrow { grid-area: a; align-self: center; }
  .about, .info-grid, .contact-grid, .contact-band .inner { grid-template-columns: 1fr; }
  .page-head .title, .page-head .lede, .page-head .intro { grid-column: 1 / -1; }
  .work .media, .work .body, .work:nth-child(even) .media, .work:nth-child(even) .body { grid-column: 1 / -1; order: initial; }
  .lb-thumbs { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .tile.big, .tile.mid, .tile.third { grid-column: span 12; min-height: 380px; }
  .tile .art img { width: 76px; }
  .tile .art.wide img { width: 130px; }
  .shelf a { width: 22vw; }
  .shelf a:nth-child(4) { display: none; }
  .about .list li, .offer li { grid-template-columns: 1fr; gap: 6px; }
  .dl { grid-template-columns: 1fr; gap: 4px 0; }
  .dl dt { padding-top: 12px; }
  .lb-stage { padding: 0 12px; }
  .lb-nav { width: 44px; height: 44px; top: auto; bottom: -58px; transform: none; }
  .lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
  .lb-bottom { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero h1 .line > span { transform: none; animation: none; }
  .js .hero .fade { opacity: 1; animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
