/* ==========================================================================
   CU ART — landing page redesign
   Typography: Melodrama (display) + Switzer (body) — Fontshare
   ========================================================================== */

@font-face { font-family: 'PP Eiko'; src: url('../fonts/pp-eiko/PPEiko-Thin.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'PP Eiko'; src: url('../fonts/pp-eiko/PPEiko-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'PP Eiko'; src: url('../fonts/pp-eiko/PPEiko-Heavy.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'PP Eiko'; src: url('../fonts/pp-eiko/PPEiko-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'PP Eiko'; src: url('../fonts/pp-eiko/PPEiko-BlackItalic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --paper: #F3EFE7;
  --paper-dim: #EBE5D8;
  --ink: #17140F;
  --ink-soft: #4A4640;
  --accent: #F30000;
  --accent-2: #C9A227;
  --line: rgba(23, 20, 15, 0.14);

  /* Two deliberately colliding voices: PP Eiko (expressive/art) vs JetBrains Mono (structural/everyday) */
  --font-display: 'PP Eiko', 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'PP Eiko', 'Fraunces', 'Iowan Old Style', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --container: 1240px;
  --gutter: clamp(24px, 6vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 500;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.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: fixed; top: -60px; left: 12px; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: 4px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Loader ---------- */
.loader-mask {
  position: fixed; inset: 0; z-index: 300; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader-mask.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--font-display); color: var(--paper); font-size: 28px;
  letter-spacing: 0.3em; animation: cu-pulse 1.4s ease-in-out infinite;
}
@keyframes cu-pulse { 0%,100%{opacity:.35;} 50%{opacity:1;} }

/* ---------- Custom cursor ---------- */
.cu-cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); pointer-events: none; z-index: 250; mix-blend-mode: difference;
  transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
.cu-cursor span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: .08em; color: var(--paper); opacity: 0; text-transform: uppercase;
}
.cu-cursor.is-media { width: 64px; height: 64px; background: rgba(23,20,15,.85); }
.cu-cursor.is-media span { opacity: 1; }
@media (pointer: coarse) { .cu-cursor { display: none; } }

/* ---------- Mascot dog ---------- */
.cu-dog {
  /* z-index 2 is deliberate: below section content panels (z-index 3), above plain photo
     backgrounds — lets it duck behind text panels as it runs across, per the "integrate
     into the layout, don't confine to one spot" request. */
  position: fixed; top: 30vh; left: 50%; z-index: 2;
  opacity: 0; transition: opacity .5s var(--ease);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.35));
  pointer-events: none; will-change: transform, top, left;
}
.cu-dog-caption {
  position: fixed; z-index: 3; max-width: 220px; pointer-events: none;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.45; letter-spacing: .01em;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cu-dog-caption.is-visible { opacity: 1; transform: translateY(0); }
.cu-dog-caption::after {
  content: ""; position: absolute; bottom: -6px; left: 24px; width: 12px; height: 12px;
  background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.cu-dog-caption--left::after { left: auto; right: 24px; }
@media (max-width: 480px) { .cu-dog-caption { max-width: 168px; font-size: 10.5px; padding: 8px 12px; } }

.cu-dog--3d { width: 170px; height: 120px; display: none; }
.cu-dog--3d.is-active { display: block; }
.cu-dog--3d canvas { display: block; width: 100%; height: 100%; }
.cu-dog.is-visible { opacity: 1; }
@media (max-width: 480px) { .cu-dog { transform: scale(.78); transform-origin: top left; } }
@media (prefers-reduced-motion: reduce) { .cu-dog { display: none; } }

/* ---------- Grain overlay ---------- */
.cu-grain {
  position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
}

/* ---------- Cookie banner ---------- */
.cu-cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 260;
  max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--paper);
  padding: 20px 22px; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(140%); transition: transform .5s var(--ease);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
}
.cu-cookie.is-visible { transform: translateY(0); }
.cu-cookie p { margin: 0; font-size: 14px; flex: 1 1 260px; }
.cu-cookie button {
  background: var(--accent); color: #fff; border: 0; padding: 10px 20px; border-radius: 6px;
  font-family: var(--font-body); font-weight: 500; cursor: pointer;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  padding-top: 12px; padding-bottom: 12px; background: rgba(243,239,231,.92);
  backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-logo img { height: 38px; border-radius: 3px; display: block; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; z-index: 210;
}
.nav-toggle__bar { width: 26px; height: 2px; background: currentColor; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav__menu { list-style: none; display: flex; gap: clamp(14px, 1.8vw, 26px); padding: 0; margin: 0; flex-wrap: wrap; }
.site-nav__menu a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), color .25s var(--ease);
}
.site-header:not(.is-scrolled) .site-nav__menu a,
.site-header:not(.is-scrolled) .lang-switch a,
.site-header:not(.is-scrolled) .lang-switch span,
.site-header:not(.is-scrolled) .social-links a { color: var(--paper); }
.site-nav__menu a:hover { border-color: var(--accent-2); }
.site-nav__menu a.is-active { border-color: var(--accent-2); }

/* The homepage's header starts transparent-over-dark-video, so its nav text defaults to
   paper-colored until scrolled. Secondary pages like Kolekcja have a plain light hero
   underneath instead, so force the always-legible ink-on-paper treatment there regardless
   of scroll state. */
body#collection .site-header:not(.is-scrolled) .site-nav__menu a,
body#collection .site-header:not(.is-scrolled) .lang-switch a,
body#collection .site-header:not(.is-scrolled) .lang-switch span,
body#collection .site-header:not(.is-scrolled) .social-links a { color: var(--ink); }

.site-nav__meta { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.lang-switch .is-active { color: var(--accent-2); }
.social-links { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; }
.social-links a { opacity: .75; }
.social-links a:hover { opacity: 1; }

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0; background: var(--ink); color: var(--paper);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
    padding: 100px var(--gutter) 40px; transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav__menu { flex-direction: column; gap: 16px; }
  .site-nav__menu a { color: var(--paper); font-size: 22px; }
  .site-nav__meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lang-switch, .social-links { color: var(--paper); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,15,.55) 0%, rgba(23,20,15,.35) 45%, rgba(23,20,15,.75) 100%); }

.hero__content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 0 var(--gutter); color: var(--paper);
}
.hero__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; margin-bottom: 26px; }
.hero__headline { position: relative; font-size: clamp(42px, 8vw, 108px); line-height: 1.2; font-weight: 800; }
/* No overflow:hidden here — that was only needed for the old vertical-slide-in reveal
   (replaced by the typewriter effect) and was clipping descenders like the "f". */
.hero-line { display: block; }
.hero-line--accent { color: var(--accent); font-style: italic; font-weight: 400; }
[data-typewriter].is-typing::after {
  content: ""; display: inline-block; width: 3px; height: 0.82em; background: currentColor;
  margin-left: 5px; vertical-align: -0.08em; animation: cu-caret-blink .9s step-end infinite;
}
@keyframes cu-caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* The final "." becomes a looping animated-WebP dog ("Kropka" — Polish for "dot," also a
   common dog name) once it barks, right before the whole headline walks off to the right.
   Real transparency (see hero-dot-dog.webp), since the hero's own backdrop is a moving video,
   not a flat color — unlike the Contact section's placement, a flat-composited clip would
   show here as a mismatched box no matter what color it was matched to. */
.hero__dot { display: inline-block; }
.hero__dot-dog { display: inline-block; height: 0.75em; width: auto; vertical-align: -0.05em; }

.hero__bark-bubble {
  position: absolute; z-index: 2; pointer-events: none; white-space: nowrap;
  font-family: var(--font-mono); font-style: normal; font-weight: 600; font-size: 14px;
  color: var(--ink); background: var(--paper); padding: 7px 14px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(6px) scale(.85); transform-origin: left bottom;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hero__bark-bubble::after {
  content: ""; position: absolute; bottom: -5px; left: 14px; width: 10px; height: 10px;
  background: var(--paper); transform: rotate(45deg);
}
.hero__bark-bubble.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.hero__subline {
  font-family: var(--font-mono); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .08em;
  text-transform: uppercase; margin-top: 22px; opacity: .85;
}

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85;
}
.hero__scroll-line { width: 1px; height: 44px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent-2);
  animation: cu-scroll-line 1.8s ease-in-out infinite;
}
@keyframes cu-scroll-line { 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }

/* ---------- About ---------- */
.about {
  position: relative; padding: clamp(90px, 14vw, 170px) var(--gutter);
  background-size: cover; background-position: center; color: var(--paper);
}
.about__scrim { position: absolute; inset: 0; background: rgba(23,20,15,.72); }
.about__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.about__title { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25; margin-bottom: 28px; }
.about__text { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; color: rgba(243,239,231,.92); }

/* ---------- Selected Work: image-forward case-study cards ---------- */
.work { padding: clamp(60px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--line); background: var(--paper); text-align: center; }
.work__kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.work__heading { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.work__heading--accent { color: var(--accent); }
.work__lede { max-width: 620px; margin: 0 auto clamp(40px, 5vw, 64px); color: var(--ink-soft); font-size: 17px; }

.work__grid { list-style: none; margin: 0 auto; padding: 0; max-width: var(--container); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 30px); text-align: left; }
.work__card-link { display: block; }

.work__figure { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); margin-bottom: 18px; }
.work__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work__card-link:hover .work__figure img { transform: scale(1.05); }

/* The two cases without usable project photography get a big outlined-type card
   instead of an unrelated stock photo — reuses the same ghost-text device as
   everywhere else on the site rather than faking a photo that doesn't exist. */
.work__placeholder {
  aspect-ratio: 4/3; margin-bottom: 18px; background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 10px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 52px);
  color: transparent; -webkit-text-stroke: 1.5px var(--line); text-align: center;
  transition: -webkit-text-stroke-color .3s var(--ease);
}
.work__card-link:hover .work__placeholder { -webkit-text-stroke-color: var(--accent); }

.work__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.work__desc { display: block; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 10px; }
.work__scope { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 900px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work__grid { grid-template-columns: 1fr; } }

/* ---------- What We Do: condensed replacement for the old full chapter sections ---------- */
.what-we-do { padding: clamp(60px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--line); background: var(--paper-dim); text-align: center; }
.what-we-do__kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.what-we-do__heading { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: clamp(40px, 5vw, 64px); }

.what-we-do__grid { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; border-top: 1px solid var(--line); text-align: left; }
.what-we-do__item { padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); }
.what-we-do__num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); flex: 0 0 auto; }
.what-we-do__body { flex: 1 1 auto; min-width: 0; }
.what-we-do__title { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 8px; }
.what-we-do__lede { color: var(--ink-soft); font-size: 15px; margin: 0; }
.what-we-do__item .btn-magnetic { margin-top: 16px; padding: 10px 22px; font-size: 11px; }

@media (max-width: 640px) { .what-we-do__item { flex-direction: column; gap: 8px; } }

.btn-magnetic {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 10px;
  padding: 16px 34px; background: var(--ink); color: var(--paper); border-radius: 2px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}

/* ---------- Clients: "Rejestr" — a ruled ledger grid, not a logo marquee ---------- */
.clients { padding: clamp(50px, 7vw, 90px) var(--gutter) clamp(60px, 8vw, 100px); border-top: 1px solid var(--line); text-align: center; background: #FFFFFF; }
.clients__kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.clients__heading { font-size: clamp(24px, 3vw, 34px); margin-bottom: 40px; }

.clients__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--container);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  position: relative; z-index: 3; /* sits level with other content panels so the mascot ducks behind it too */
}
.clients__plaque {
  position: relative; aspect-ratio: 4/3;
  opacity: 0; transform: scale(.92) rotate(var(--r, 0deg));
}
.clients__plaque-link {
  position: absolute; inset: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: box-shadow .25s var(--ease);
}
/* The one client without a confirmed live case-study page stays a plain (unlinked) plaque. */
.clients__plaque:not(:has(.clients__plaque-link)) {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.clients__mark {
  /* Fixed cap, not a % height: some logos (e.g. Museum Jerke) are tall/portrait rather than
     wide, and a percentage max-height doesn't reliably resolve against this grid's
     aspect-ratio-derived tile height, letting a portrait logo blow out past its tile. */
  max-height: clamp(46px, 8vw, 80px); max-width: 70%; width: auto; height: auto;
  object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: opacity .25s, filter .25s;
}
.clients__label {
  position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: left;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clients__plaque::before, .clients__plaque::after {
  content: ""; position: absolute; width: 9px; height: 9px; opacity: 0; transition: opacity .25s var(--ease);
  border: 1px solid var(--accent);
}
.clients__plaque::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.clients__plaque::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.clients__plaque:hover, .clients__plaque:focus-within {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.clients__plaque:hover .clients__mark, .clients__plaque:focus-within .clients__mark { filter: none; opacity: 1; }
.clients__plaque:hover::before, .clients__plaque:hover::after,
.clients__plaque:focus-within::before, .clients__plaque:focus-within::after { opacity: 1; }

@media (max-width: 900px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__index { font-size: 10px; }
  .clients__label { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .clients__plaque { opacity: 1; transform: none; }
}

/* ---------- Contact: condensed team + address (folded together, no photo grid) ---------- */
.contact { padding: clamp(70px, 10vw, 130px) var(--gutter); border-top: 1px solid var(--line); text-align: center; background: var(--ink); color: var(--paper); }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__heading { font-size: clamp(30px, 4vw, 48px); margin-bottom: clamp(40px, 5vw, 64px); }
.contact__list { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px;
  border-bottom: 1px solid rgba(243,239,231,.14); padding-bottom: 18px;
}
.contact__row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__person-name { font-family: var(--font-display); font-size: 19px; flex: 1 1 100%; }
.contact__row a { font-family: var(--font-mono); font-size: 13px; color: rgba(243,239,231,.72); border-bottom: 1px solid transparent; }
.contact__row a:hover { border-color: var(--accent); color: var(--paper); }
.contact__address { font-size: 14px; color: rgba(243,239,231,.65); }
.contact__address a { color: inherit; border-bottom: 1px solid rgba(243,239,231,.3); }

/* PL-only variant: same light background as the footer, instead of the dark one EN still uses. */
.contact--paper { background: var(--paper); color: var(--ink); }
.contact--paper .contact__row { border-bottom-color: var(--line); }
.contact--paper .contact__row a { color: var(--ink-soft); border-bottom-color: transparent; }
.contact--paper .contact__row a:hover { color: var(--ink); border-color: var(--accent); }
.contact--paper .contact__address { color: var(--ink-soft); }
.contact--paper .contact__address a { border-bottom-color: var(--line); }

.contact__heading--accent { color: var(--accent); }
.contact__dog { display: inline-block; height: 2.4em; width: auto; vertical-align: -0.6em; margin-left: 0.08em; }
/* Its background is composited to the exact --paper value (see dog-contact.mp4), not left at
   the source footage's own slightly-cooler off-white, so the video's frame edges disappear
   into .contact--paper's section background at this larger size instead of reading as a
   mismatched white box. */

/* ---------- Footer ---------- */
.site-footer { padding: 30px var(--gutter); text-align: center; font-size: 13px; color: var(--ink-soft); }
.site-footer__links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
}
.site-footer__links a { color: var(--ink-soft); }
.site-footer__links a:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer; z-index: 150;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal base states (JS adds .is-visible / animates inner line-wraps) ---------- */
[data-reveal-fade] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal-fade].is-visible { opacity: 1; transform: translateY(0); }
/* data-reveal-lines: parent stays visible; SplitType inner line-wraps animate instead (see main.js). No-JS fallback below. */
[data-reveal-lines].no-split { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal-lines].no-split.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal-fade], [data-reveal-lines] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cu-grain, .cu-cursor { display: none !important; }
}

/* ==========================================================================
   Kolekcja / Collection page
   ========================================================================== */

/* ---------- Collection hero ---------- */
.collection-hero { padding: clamp(130px, 16vw, 190px) var(--gutter) clamp(60px, 8vw, 100px); text-align: center; background: var(--paper); }
.collection-hero__kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 18px; }
.collection-hero__title { font-size: clamp(34px, 6vw, 64px); line-height: 1.15; max-width: 820px; margin: 0 auto 22px; }
.collection-hero__subtitle { max-width: 620px; margin: 0 auto; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: var(--ink-soft); }

/* ---------- Pull-quote ---------- */
.collection-quote { padding: clamp(70px, 9vw, 120px) var(--gutter); background: var(--paper-dim); border-top: 1px solid var(--line); text-align: center; }
.collection-quote__text {
  max-width: 780px; margin: 0 auto 26px; font-family: var(--font-display); font-style: italic;
  font-weight: 300; font-size: clamp(21px, 2.8vw, 32px); line-height: 1.5; color: var(--ink);
}
.collection-quote__cite { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Collection grid: A-Z index + dense by-artist tiles ---------- */
.collection-grid { padding: clamp(60px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--line); background: var(--paper); text-align: center; }
.collection-grid__kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.collection-grid__heading { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: clamp(32px, 4vw, 48px); }

.collection-index {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 16px;
  max-width: var(--container); margin: 0 auto clamp(40px, 5vw, 64px); padding: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
}
.collection-index a { color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.collection-index a:hover { color: var(--accent); border-color: var(--accent); }

.collection-tiles { list-style: none; margin: 0 auto; padding: 0; max-width: var(--container); display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 18px); text-align: left; }
.collection-tile-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
.collection-tile-figure { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--ink); margin-bottom: 10px; }
.collection-tile-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.collection-tile-btn:hover .collection-tile-figure img { transform: scale(1.06); }
.collection-tile-name { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); line-height: 1.35; }
.collection-tile-badge { display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--accent); }

@media (max-width: 991px) { .collection-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .collection-tiles { grid-template-columns: repeat(2, 1fr); } .collection-index { font-size: 11px; gap: 6px 12px; } }

/* ---------- Lightbox ---------- */
.collection-lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; padding: var(--gutter);
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.collection-lightbox.is-open { opacity: 1; visibility: visible; }
.collection-lightbox__scrim { position: absolute; inset: 0; background: rgba(23, 20, 15, .92); }
.collection-lightbox__panel {
  position: relative; z-index: 1; width: 100%; max-width: 1080px; max-height: 90vh;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
  background: var(--paper); padding: clamp(24px, 3vw, 40px); overflow: auto;
}
.collection-lightbox__media { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; background: var(--ink); min-height: 240px; }
.collection-lightbox__media img { max-width: 100%; max-height: 70vh; width: auto; height: auto; display: block; margin: 0 auto; }
.collection-lightbox__info { flex: 1 1 280px; min-width: 0; }
.collection-lightbox__artist { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 10px; }
.collection-lightbox__work { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.collection-lightbox__bio { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.collection-lightbox__counter { display: block; margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); }
.collection-lightbox__close, .collection-lightbox__nav {
  position: absolute; border-radius: 50%; background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.collection-lightbox__close { top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; font-size: 20px; }
.collection-lightbox__nav { top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; font-size: 22px; }
.collection-lightbox__nav--prev { left: 10px; }
.collection-lightbox__nav--next { right: 10px; }
body.collection-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .collection-lightbox { padding: 0; }
  .collection-lightbox__panel { max-height: 100vh; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-lightbox, .collection-lightbox * { transition: none !important; }
}
