/* ==========================================================================
   Agnieszka Kuzaj – fotografia & grafika
   Styl: editorial / ciepły minimalizm. Animacje sterowane zmiennymi CSS (--p),
   które ustawia js/main.js w trakcie przewijania.
   ========================================================================== */

:root {
  --ink: #16140F;
  --ink-2: #24211B;
  --paper: #F4EFE7;
  --paper-2: #EAE1D3;
  --paper-3: #DDD0BC;
  --accent: #B5502F;
  --accent-2: #D9774F;
  --muted: #6F675C;
  --muted-light: #B9AE9E;
  --line: rgba(22, 20, 15, .14);
  --line-light: rgba(244, 239, 231, .16);

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

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 14px;
  --btn-radius: 999px;
  --card: #FFFFFF;
  --fs-base: 17px;
  --h-scale: 1;
  --h-weight: 340;
  --space-scale: 1;
  --anim-speed: 1;
  --logo-h: 40px;
  --topbar-h: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --header-h: 78px;
  --vh: 1vh;
}
@supports (height: 100svh) { :root { --vh: 1svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; transition: top .3s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: calc(clamp(88px, 12vw, 180px) * var(--space-scale)) 0; position: relative; }
.bg-paper { background: var(--paper); }
.bg-paper2 { background: var(--paper-2); }
.bg-white { background: var(--card); }
.bg-dark { background: var(--ink); color: var(--paper); }
.bg-accent { background: var(--accent); color: #fff; }
.space-large.section { padding: calc(clamp(110px, 16vw, 240px) * var(--space-scale)) 0; }
.space-compact.section { padding: calc(clamp(56px, 7vw, 110px) * var(--space-scale)) 0; }
.space-notop.section, .space-notop { padding-top: 0 !important; }
.space-nobottom.section, .space-nobottom { padding-bottom: 0 !important; }
.space-none.section { padding: 0; }
.kz-sec { position: relative; }
.is-draft-section { outline: 2px dashed var(--accent); outline-offset: -6px; }
.center { text-align: center; margin-top: 56px; }

/* --------------------------------------------------------------- Typografia */
.h2 {
  font-family: var(--serif);
  font-weight: var(--h-weight);
  font-variation-settings: "opsz" 120;
  font-size: calc(clamp(40px, 6.2vw, 96px) * var(--h-scale));
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 28px;
}
.h2 em, .h3 em { color: var(--accent); font-weight: 300; }
[data-dark] .h2 em, .bg-dark .h2 em { color: var(--accent-2); }
.bg-accent .h2 em { color: var(--ink); }
.h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.1; margin: 0 0 24px; font-weight: 400; }
.section-label {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); margin: 0 0 28px; display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .5; }
[data-dark] .section-label { color: var(--muted-light); }
.bg-accent .section-label { color: rgba(255,255,255,.8); }
.section-head { max-width: 920px; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head__lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); max-width: 640px; margin: 0; }
[data-dark] .section-head__lead { color: var(--muted-light); }
.bg-accent .section-head__lead { color: rgba(255,255,255,.85); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 28px; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(181, 80, 47, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(181, 80, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 80, 47, 0); } }

/* ------------------------------------------------------------------ Przyciski */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 30px; border-radius: var(--btn-radius); background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover, var(--accent)); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--accent { --bg: var(--accent); --fg: #fff; --hover: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); --hover: var(--accent); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --hover: var(--accent); }
.btn--light:hover { color: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --hover: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--paper); }
.btn--small { padding: 13px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.btn__arrow { width: 18px; height: 10px; position: relative; display: inline-block; }
.btn__arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.btn__arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .btn__arrow { animation: arrow .6s var(--ease); }
@keyframes arrow { 0% { transform: translateX(0); } 45% { transform: translateX(14px); opacity: 0; } 46% { transform: translateX(-14px); } 100% { transform: translateX(0); opacity: 1; } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; position: relative; padding-bottom: 4px; }
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform-origin: right; transform: scaleX(.3); transition: transform .5s var(--ease); }
.link-arrow:hover::before { transform-origin: left; transform: scaleX(1); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ----------------------------------------------------------- Media / obrazy */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); border-radius: var(--radius); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.media--paper { background: #fff; }
.media--paper img { object-fit: contain; }
.media.is-failed img { opacity: 0; }
.media.is-failed::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: url("../assets/svg/aperture.svg") center / min(64px, 30%) no-repeat;
  opacity: .32; filter: grayscale(.2);
}

/* --------------------------------------------------------------- Preloader */
.preloader { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: visibility 0s 1.4s; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; transition: opacity .5s, transform 1s var(--ease-io); }
.preloader__aperture { width: min(36vw, 180px); color: var(--paper); }
.preloader__aperture path { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.preloader__aperture path:nth-child(even) { fill: #9E4426; }
.preloader__meta { display: flex; gap: 24px; align-items: baseline; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.preloader__name { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 22px; }
.preloader__count { font-variant-numeric: tabular-nums; color: var(--muted-light); min-width: 4ch; }
.preloader__curtain { position: absolute; inset: 0; background: var(--paper); transform: translateY(100%); }
.preloader.is-done { visibility: hidden; background: transparent; transition: visibility 0s 1.4s, background 0s .7s; }
.preloader.is-done .preloader__inner { opacity: 0; transform: scale(1.4); }
.preloader.is-done .preloader__curtain { animation: curtain 1.4s var(--ease-io) forwards; }
@keyframes curtain { 0% { transform: translateY(100%); } 50% { transform: translateY(0); } 100% { transform: translateY(-100%); } }

/* ------------------------------------------------------------------ Kursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring {
  width: 40px; height: 40px; border: 1px solid rgba(22, 20, 15, .35);
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) translate(-50%, -50%);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background .3s, border-color .3s;
}
.cursor__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; border-color: var(--accent); }
.cursor.is-media .cursor__ring { width: 96px; height: 96px; background: var(--accent); border-color: var(--accent); }
.cursor.is-media .cursor__label { opacity: 1; }
.cursor.is-media .cursor__dot { opacity: 0; }
.cursor.on-dark .cursor__ring { border-color: rgba(244, 239, 231, .45); }

.scroll-progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 9999; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); }

.grain {
  position: fixed; inset: -50%; z-index: 800; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } }

/* ------------------------------------------------------------------ Header */
.header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 110; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .4s, color .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(244, 239, 231, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header.on-dark { color: var(--paper); }
.header.on-dark.is-scrolled { background: rgba(22, 20, 15, .78); box-shadow: 0 1px 0 var(--line-light); }
.header.on-dark .btn--dark { --bg: var(--paper); --fg: var(--ink); }
.header.on-dark .btn--dark:hover { color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .brand__ring { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.6s var(--ease-io) .2s; }
.is-ready .brand__mark .brand__ring { stroke-dashoffset: 0; }
.brand__mark .brand__dot { fill: var(--accent); stroke: none; }
.brand:hover .brand__ring { animation: spin 3s linear infinite; transform-origin: center; }
.brand__name { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; line-height: 1; }
.brand__name em { color: var(--accent); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav__list > li { position: relative; }
.nav .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; left: -14px; top: 100%; min-width: 220px; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(22, 20, 15, .35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .3s var(--ease); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; }
.nav .sub-menu a:hover { background: var(--paper); }
.nav .sub-menu a::after { display: none; }
.nav .menu-item-has-children > a { padding-right: 14px; }
.nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.nav a { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a.is-active::after, .nav .current-menu-item > a::after, .nav .current-menu-ancestor > a::after, .nav .current_page_parent > a::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--accent); }
.header.on-dark .nav a.is-active, .header.on-dark .nav .current-menu-item > a { color: var(--accent-2); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 44px) 39px); transition: clip-path .9s var(--ease-io); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 39px); visibility: visible; }
.menu-open .header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; counter-reset: mm; overflow-y: auto; max-height: 64vh; }
.mobile-menu__list > li { overflow: hidden; counter-increment: mm; }
.mobile-menu__list > li > a { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(36px, 9.5vw, 60px); line-height: 1.22; transform: translateY(110%); transition: transform .8s var(--ease); }
.mobile-menu__list > li > a::before { content: "0" counter(mm); font-family: var(--sans); font-size: 13px; color: var(--muted-light); }
.mobile-menu__list .current-menu-item > a { color: var(--accent-2); }
.mobile-menu__list .sub-menu { list-style: none; padding: 0 0 8px 36px; margin: 0; }
.mobile-menu__list .sub-menu a { font-size: 18px; color: var(--muted-light); display: block; padding: 4px 0; }
.menu-open .mobile-menu__list > li > a { transform: none; }
.mobile-menu__socials { display: flex; gap: 14px; margin-top: 10px; }
.mobile-menu__socials .icon { width: 22px; height: 22px; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .05s; } .menu-open .mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .15s; } .menu-open .mobile-menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu__foot { display: grid; gap: 6px; color: var(--muted-light); }

/* ---------------------------------------------------- Reveal (IntersectionObserver) */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal].is-in { opacity: 1; transform: none; }

[data-split] .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .line__inner { display: block; transform: translateY(105%) rotate(2deg); transform-origin: left bottom; transition: transform 1.3s var(--ease) calc(var(--i, 0) * .09s + var(--d, 0s)); }
[data-split].is-in .line__inner { transform: none; }

/* ======================================================================= HERO */
.hero {
  --p: 0; --t: 0; --e1: 0; --e2: 0; --rot: 0deg;
  --it: 15; --ir: 9; --ib: 12; --il: 60;  /* pozycja kadru: top/bottom w vh, left/right w vw */
  height: 280vh; position: relative;
}
.hero__stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; }
.hero__content {
  position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(54vw, 760px);
  display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h);
  transform: translateY(calc(var(--t) * -14vh)); opacity: calc(1 - var(--t) * 1.6); z-index: 3;
}
.hero__title { font-family: var(--serif); font-weight: var(--h-weight); font-variation-settings: "opsz" 144; font-size: calc(clamp(48px, 7.4vw, 124px) * var(--h-scale)); line-height: .98; letter-spacing: -.035em; margin: 0 0 32px; }
.hero__title em { color: var(--accent); font-weight: 300; }
.scribble-word { position: relative; display: inline-block; }
.scribble-word svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .22em; overflow: visible; }
.scribble-word path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s var(--ease-io) 1.1s; }
.hero__title.is-in .scribble-word path { stroke-dashoffset: 0; }
.hero__lead { font-size: clamp(17px, 1.35vw, 21px); max-width: 540px; color: var(--muted); margin: 0 0 36px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.hero__note::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; width: 7px; height: 7px; border-radius: 50%; background: #5FA36A; }

.hero__frame {
  position: absolute; z-index: 2; overflow: hidden;
  top: calc(var(--it) * var(--vh) * (1 - var(--e1)));
  bottom: calc(var(--ib) * var(--vh) * (1 - var(--e1)));
  left: calc(var(--il) * 1vw * (1 - var(--e1)));
  right: calc(var(--ir) * 1vw * (1 - var(--e1)));
  border-radius: calc(var(--radius) * (1 - var(--e1)));
  box-shadow: 0 40px 80px -30px rgba(22, 20, 15, .45);
}
.hero__frame .media { position: absolute; inset: 0; border-radius: 0; }
.hero__frame .media img { transform: scale(calc(1.18 - var(--e1) * .18)); transition: none; }
.is-ready .hero__frame { animation: frameIn 1.6s var(--ease) both; }
@keyframes frameIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero__viewfinder { position: absolute; inset: 6% 7%; width: 86%; height: 88%; object-fit: fill; opacity: calc(.9 - var(--e1) * 2); pointer-events: none; }
.hero__statement {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) calc(var(--vh) * 12); color: var(--paper);
  background: linear-gradient(to top, rgba(22, 20, 15, .78), rgba(22, 20, 15, .1) 60%, transparent);
  opacity: var(--e2); pointer-events: none;
}
.hero__statement-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; transform: translateY(calc((1 - var(--e2)) * 40px)); }
.hero__statement-title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 8vw, 136px); line-height: .95; letter-spacing: -.03em; margin: 0; transform: translateY(calc((1 - var(--e2)) * 80px)); }
.hero__statement-title em { color: var(--accent-2); }

.hero__side { position: absolute; z-index: 3; }
.hero__side .media { aspect-ratio: 2 / 3; box-shadow: 0 30px 60px -20px rgba(22, 20, 15, .4); }
.hero__side--a { left: 51vw; top: calc(var(--vh) * 54); width: 12vw; transform: translate(calc(var(--e1) * -40vw), calc(var(--e1) * 40vh)) rotate(-7deg); opacity: calc(1 - var(--e1) * 1.8); }
.hero__side--b { right: 3.5vw; top: calc(var(--vh) * 9); width: 9vw; transform: translate(calc(var(--e1) * 30vw), calc(var(--e1) * -40vh)) rotate(6deg); opacity: calc(1 - var(--e1) * 1.8); }
.is-ready .hero__side .media { animation: popIn 1.4s var(--ease) .5s both; }
.is-ready .hero__side--b .media { animation-delay: .7s; }
@keyframes popIn { from { transform: translateY(80px) scale(.8); opacity: 0; } }

.badge { position: absolute; z-index: 4; width: 150px; height: 150px; left: calc(60vw - 75px); top: calc(var(--vh) * 15 - 40px); opacity: calc(1 - var(--e1) * 2.5); }
.badge__text { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__text text { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; fill: var(--ink); font-family: var(--sans); }
.badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--paper); z-index: -1; box-shadow: 0 10px 30px -10px rgba(22, 20, 15, .3); }
.badge__core { position: absolute; inset: 32%; width: 36%; transform: rotate(var(--rot)); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); z-index: 3; opacity: calc(1 - var(--t) * 4); }
.scroll-hint i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--ink); animation: hint 1.8s var(--ease-io) infinite; }
@keyframes hint { to { top: 100%; } }

/* =================================================================== MANIFEST */
.manifest__text {
  font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 4.3vw, 68px); line-height: 1.14; letter-spacing: -.02em;
  margin: 0 0 56px; max-width: 1180px;
}
.manifest__text .w { opacity: .14; transition: opacity .25s linear; }
.manifest__text .w.on { opacity: 1; }
.manifest__text .w.hl { color: var(--accent); font-style: italic; }
.manifest__sign { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(72px, 9vw, 130px); }
.manifest__signature { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--accent); }
.manifest__role { font-size: 14px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 0 0; display: grid; gap: 10px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat strong { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 96px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 15px; max-width: 240px; }

/* ==================================================================== MARQUEE */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
[data-dark].marquee { border-color: var(--line-light); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 40px; transform: translate3d(var(--mx, 0), 0, 0) skewX(var(--skew, 0deg)); will-change: transform; }
.marquee span { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 68px); font-weight: 300; letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--accent); }
.marquee i { font-style: normal; color: var(--accent); font-size: 24px; }

/* ==================================================================== PILLARS */
.pillars { overflow-x: clip; }
.pillars__grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(24px, 3vw, 48px); }
.pillar { display: grid; gap: 32px; align-content: start; }
.pillar:nth-child(2) { margin-top: clamp(0px, 10vw, 160px); }
.pillar__media { aspect-ratio: 4 / 3.2; display: block; }
.pillar__media:hover img { transform: scale(1.06); }
.pillar__body { position: relative; padding-left: 64px; }
.pillar__no { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.015em; }
.pillar p { margin: 0 0 22px; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* ========================================================= HORIZONTAL SCROLL */
.hscroll { --p: 0; position: relative; height: 500vh; }
.hscroll.bg-paper .pcard p, .hscroll.bg-paper2 .pcard p, .hscroll.bg-white .pcard p, .hscroll.bg-paper .hscroll__intro p, .hscroll.bg-paper2 .hscroll__intro p { color: var(--muted); }
.hscroll:not([data-dark]) .pcard__media { background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); }
.hscroll:not([data-dark]) .hscroll__bar { background: var(--line); }
.hscroll:not([data-dark]) .hscroll__hint, .hscroll:not([data-dark]) .hscroll__intro .section-label { color: var(--muted); }
.hscroll__sticky { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; display: flex; align-items: center; }
.hscroll__track { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(24px, 3vw, 56px); padding: 0 var(--gutter); will-change: transform; transform: translate3d(var(--tx, 0), 0, 0); }
.hscroll__intro { flex: 0 0 min(560px, 82vw); padding-right: 4vw; }
.hscroll[data-dark] .hscroll__intro .h2 em { color: var(--accent-2); }
.hscroll__intro p { color: var(--muted-light); max-width: 440px; }
.hscroll__intro .section-label { color: var(--muted-light); }
.hscroll__hint { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.hscroll__hint i { width: 60px; height: 1px; background: currentColor; position: relative; }
.hscroll__hint i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(8px) rotate(45deg); } }
.pcard { flex: 0 0 clamp(280px, 27vw, 420px); position: relative; }
.pcard__media { display: block; aspect-ratio: 4 / 4.6; margin-bottom: 22px; background: linear-gradient(135deg, #2c2822, #3b342b); }
.pcard--tall .pcard__media { aspect-ratio: 4 / 5.6; }
.pcard__media img { transform: scale(1.15) translateX(var(--px, 0)); transition: transform 1.2s var(--ease); }
.pcard__media:hover img { transform: scale(1.22) translateX(var(--px, 0)); }
.pcard__no { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 12px; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: rgba(22, 20, 15, .55); backdrop-filter: blur(6px); color: var(--paper); }
.pcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); margin: 0 0 10px; letter-spacing: -.01em; }
.pcard p { color: var(--muted-light); font-size: 15px; margin: 0 0 16px; }
.hscroll__end { flex: 0 0 min(440px, 80vw); text-align: left; padding: 0 4vw; }
.hscroll__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 1px; background: var(--line-light); }
.hscroll__bar span { display: block; height: 100%; background: var(--accent-2); transform-origin: left; transform: scaleX(var(--p)); }

/* ===================================================================== MOSAIC */
.mosaic { overflow: hidden; }
.mosaic__title { position: relative; z-index: 2; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 8vw, 140px); line-height: .95; letter-spacing: -.04em; margin: 0 0 72px; text-align: center; }
.mosaic__title em { color: var(--accent); }
.mosaic__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.mosaic__col { display: grid; gap: clamp(12px, 2vw, 28px); transform: translate3d(0, var(--y, 0), 0); will-change: transform; }
.mosaic__col:nth-child(2) { margin-top: 12vh; }
.mosaic__col .media { aspect-ratio: 3 / 4; }
.mosaic__col .media:nth-child(2) { aspect-ratio: 4 / 3.4; }

/* ===================================================================== DESIGN */
.services { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0; border-top: 1px solid var(--line); }
[data-dark] .services { border-color: var(--line-light); }
.service { padding: 40px 32px 40px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
[data-dark] .service + .service { border-color: var(--line-light); }
.service .link-arrow { margin-top: 18px; }
.service__icon { width: 64px; height: 64px; margin-bottom: 28px; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.service p { color: var(--muted); margin: 0; font-size: 15.5px; }
[data-dark] .service p { color: var(--muted-light); }
.draw path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.8s var(--ease-io); }
.draw path.accent { stroke: var(--accent); }
[data-dark] .draw path.accent { stroke: var(--accent-2); }
.service__icon--simple { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); }
.service__icon--simple .icon { width: 28px; height: 28px; }
[data-dark] .service__icon--simple { border-color: var(--line-light); color: var(--accent-2); }
.is-in .draw path { stroke-dashoffset: 0; }
.is-in .draw path:nth-child(2) { transition-delay: .15s; } .is-in .draw path:nth-child(3) { transition-delay: .3s; }
.is-in .draw path:nth-child(4) { transition-delay: .45s; } .is-in .draw path:nth-child(n+5) { transition-delay: .6s; }
.service:hover .draw path { animation: redraw 1.6s var(--ease-io); }
@keyframes redraw { 0% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 160; } 100% { stroke-dashoffset: 0; } }

.portfolio { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(12px, 2vw, 28px); }
.portfolio__item { margin: 0; perspective: 900px; }
.portfolio__item .media { aspect-ratio: 1; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .5s var(--ease); }
.portfolio__item .media img { padding: 8%; }
.portfolio__item figcaption { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--serif); font-size: 20px; }
.portfolio__item figcaption span { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; align-self: center; }

/* ======================================================================== WHY */
.why__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.why__sticky { position: sticky; top: calc(var(--header-h) + 10vh); }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 44px 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .6s var(--ease); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item.is-active { opacity: 1; }
.why__no { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.why__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.015em; }
.why__item p { margin: 0; color: var(--muted); }

/* ==================================================================== PROCESS */
.process { --p: 0; }
.process__wrap { position: relative; }
.process__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.process__line path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.process__path-bg { stroke: var(--line); stroke-dasharray: 4 8; }
.process__path { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(48px, 7vw, 110px); }
.step { width: min(440px, 44%); position: relative; padding: 32px; border-radius: var(--radius); background: rgba(244, 239, 231, .85); backdrop-filter: blur(6px); border: 1px solid var(--line); transition: transform .8s var(--ease), box-shadow .8s, border-color .6s; transform: translateY(30px) scale(.97); opacity: .35; }
.step:nth-child(even) { justify-self: end; }
.step.is-active { transform: none; opacity: 1; border-color: rgba(181, 80, 47, .35); box-shadow: 0 30px 60px -30px rgba(22, 20, 15, .25); }
.step { transition-property: transform, box-shadow, border-color, opacity; transition-duration: .8s; }
.step__no { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; margin-bottom: 18px; transition: background .5s; }
.step.is-active .step__no { background: var(--accent); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ==================================================================== REVIEWS */
.stack { display: grid; gap: 0; }
.review {
  --k: 0;
  position: sticky; top: calc(var(--header-h) + 6vh + var(--i) * 22px);
  margin: 0 0 12vh; padding: clamp(32px, 5vw, 72px); border-radius: 24px;
  background: var(--paper-2); border: 1px solid var(--line);
  min-height: min(56vh, 520px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transform: scale(calc(1 - var(--k) * .06)); transform-origin: center top;
  filter: brightness(calc(1 - var(--k) * .12));
  box-shadow: 0 -20px 50px -30px rgba(22, 20, 15, .25);
}
.review:last-child { margin-bottom: 0; }
.review--dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.review--accent { background: var(--accent); color: #fff; border-color: transparent; }
.review blockquote { margin: 0; font-family: var(--serif); font-weight: 350; font-size: clamp(24px, 2.8vw, 44px); line-height: 1.2; letter-spacing: -.015em; max-width: 1000px; }
.review figcaption { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.review figcaption strong { display: block; font-size: 17px; }
.review figcaption > span:last-child { opacity: .75; }
.review figcaption > span:last-child strong { opacity: 1; }
.review__logo { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.review__logo img { padding: 6px; }

/* ====================================================================== EBOOK */
.ebook { --p: 0; overflow: hidden; }
.ebook__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
.ebook__cover-wrap { position: relative; perspective: 1400px; display: grid; justify-items: center; }
.ebook__cover {
  width: min(420px, 80%); aspect-ratio: 791 / 1024; border-radius: 6px 14px 14px 6px;
  background: linear-gradient(150deg, var(--accent), #6E2C17);
  transform: rotateY(calc(-32deg + var(--p) * 32deg)) rotateX(calc(8deg - var(--p) * 8deg)) translateY(calc((1 - var(--p)) * 60px));
  box-shadow: 30px 40px 80px -20px rgba(0, 0, 0, .6), inset 6px 0 0 rgba(0, 0, 0, .18);
  transform-style: preserve-3d;
}
.ebook__cover img { position: relative; z-index: 2; }
.ebook__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12%; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; color: #fff; }
.ebook__free { position: absolute; top: 4%; right: 10%; width: 108px; height: 108px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; transform: rotate(calc(-14deg + var(--p) * 28deg)); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); z-index: 3; }
.ebook__body p { color: var(--muted); max-width: 560px; }
.ebook__body p strong { color: var(--ink); }
[data-dark] .ebook__body p { color: var(--muted-light); }
[data-dark] .ebook__body p strong { color: var(--paper); }
.checks { list-style: none; padding: 0; margin: 28px 0 40px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ======================================================================== FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 8vw, 120px); }
.faq__more { color: var(--muted); }
.faq__more a { color: var(--accent); font-weight: 600; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 28px 56px 28px 0; position: relative; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 27px); line-height: 1.25; transition: color .3s; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--accent); }
.faq__list summary::after, .faq__list summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq__list summary::before { transform: rotate(90deg); }
.faq__list details[open] summary::before { transform: rotate(0); }
.faq__list details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__list details[open] > div { grid-template-rows: 1fr; }
.faq__list details > div > .faq__answer { overflow: hidden; color: var(--muted); max-width: 680px; }
.faq__answer > *:first-child { margin-top: 0; }
.faq__list details[open] > div > .faq__answer { padding-bottom: 28px; }
[data-dark] .faq__answer { color: var(--muted-light); }

/* ======================================================================== CTA */
.cta { --p: 0; color: #fff; overflow: hidden; padding: clamp(110px, 16vw, 240px) var(--gutter); text-align: center; position: relative; }
.cta::before { content: ""; position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); transform: translate(-50%, -50%) scale(calc(.4 + var(--p) * .6)); }
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 24px; opacity: .8; }
.cta__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 13vw, 230px); line-height: .9; letter-spacing: -.045em; }
.cta__title span { display: block; transform: translateX(calc((1 - var(--p)) * -18vw)); }
.cta__title span + span { transform: translateX(calc((1 - var(--p)) * 18vw)); }
.cta__btn { margin-top: clamp(36px, 5vw, 64px); width: 168px; height: 168px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; position: relative; font-weight: 600; line-height: 1.2; transition: transform .4s var(--ease); isolation: isolate; }
.cta__btn img { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); opacity: .9; animation: spin 20s linear infinite; z-index: -1; }
.cta__btn span { position: relative; z-index: 1; background: var(--ink); width: 72%; height: 72%; border-radius: 50%; display: grid; place-items: center; text-align: center; }

/* ==================================================================== CONTACT */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__info > p { color: var(--muted); max-width: 440px; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact__list li > span:first-child { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact__list a { font-weight: 600; }
.contact__list a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 16px; }
.form { background: var(--card); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 40px 80px -50px rgba(22, 20, 15, .35); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2316140F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(181, 80, 47, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C0392B; }
.field--radio { display: flex; flex-wrap: wrap; gap: 10px; }
.field--radio legend { margin-bottom: 8px; width: 100%; }
.field--radio label { cursor: pointer; }
.field--radio label { position: relative; }
.field--radio input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.field--radio span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; transition: all .3s; }
.field--radio input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field--radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin-top: 1px; }
.consent a { text-decoration: underline; }
.consent.is-invalid { color: #C0392B; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok { color: #2E7D4F; }
.form__status.is-err { color: #C0392B; }
.form.is-sending button { opacity: .6; pointer-events: none; }

/* ===================================================================== FOOTER */
.footer { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0 32px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--line-light); }
.footer__claim { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.05; letter-spacing: -.02em; margin: 0; max-width: 820px; }
.footer__claim em { color: var(--accent-2); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 56px 0; }
.footer__cols h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin: 0 0 18px; font-weight: 600; }
.footer__cols a, .footer__cols span { display: block; padding: 4px 0; color: rgba(244, 239, 231, .85); }
.footer__menu, .footer__legal { list-style: none; margin: 0; padding: 0; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__note { color: var(--muted-light); font-size: 14px; margin-bottom: 32px; }
.footer__cols a:hover { color: var(--accent-2); }
.footer__giant { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 13.6vw, 250px); line-height: .9; letter-spacing: -.05em; margin: 0 0 32px; white-space: nowrap; text-align: center; }
.footer__giant .ch { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); transition-delay: calc(var(--i) * .035s); }
.footer__giant.is-in .ch { transform: none; opacity: 1; }
.footer__giant .ch--last { font-style: italic; color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted-light); padding-top: 24px; border-top: 1px solid var(--line-light); }
.footer__bottom a:hover { color: var(--paper); }

.mobile-cta { display: none; }

/* ================================================================ RESPONSIVE */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__phone { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header__actions .btn { display: none; }
  .section-head--split, .why__grid, .faq__grid, .contact__grid, .ebook__grid, .pillars__grid { grid-template-columns: 1fr; }
  .pillar:nth-child(2) { margin-top: 0; }

  .hero { --it: 60; --ib: 3; --il: 5; --ir: 5; height: 220vh; }
  .hero__content { width: auto; right: var(--gutter); justify-content: flex-start; padding-top: calc(var(--header-h) + 3vh); }
  .hero__title { font-size: clamp(40px, 11vw, 72px); margin-bottom: 18px; }
  .hero__lead { font-size: 16px; margin-bottom: 22px; }
  .hero__cta .btn--ghost, .hero__note, .hero__side, .scroll-hint { display: none; }
  .hero__cta .btn { padding: 16px 24px; }
  .badge { width: 96px; height: 96px; left: auto; right: calc(var(--gutter) - 4px); top: calc(var(--vh) * 60 - 48px); }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 28px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .portfolio { grid-template-columns: 1fr 1fr; }

  .why__sticky { position: static; }
  .process__line { display: none; }
  .steps { gap: 20px; padding-left: 28px; }
  .steps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
  .steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); }
  .step, .step:nth-child(even) { width: 100%; justify-self: stretch; }

  .review { min-height: 0; top: calc(var(--header-h) + 3vh + var(--i) * 14px); margin-bottom: 6vh; }
  .ebook__cover-wrap { order: -1; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }

  .mosaic__cols { grid-template-columns: 1fr 1fr; }
  .mosaic__col:nth-child(3) { display: none; }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 100;
    padding: 8px; border-radius: 999px; background: rgba(22, 20, 15, .9); backdrop-filter: blur(10px);
    transform: translateY(150%); transition: transform .6s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a { text-align: center; padding: 14px; border-radius: 999px; color: var(--paper); font-weight: 600; font-size: 15px; }
  .mobile-cta a.is-accent { background: var(--accent); color: #fff; }
  .footer { padding-bottom: 100px; }
}

@media (max-width: 560px) {
  .brand__name { font-size: 18px; }
  .pcard { flex-basis: 78vw; }
  .portfolio__item figcaption { font-size: 16px; flex-direction: column; gap: 2px; }
  .portfolio__item figcaption span { align-self: flex-start; }
  .footer__cols { grid-template-columns: 1fr; }
  .cta__btn { width: 136px; height: 136px; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
.reduced-motion .hero { height: auto; }
.reduced-motion .hero__stage { position: relative; height: auto; min-height: calc(var(--vh) * 100); }
.reduced-motion .hscroll { height: auto; }
.reduced-motion .hscroll__sticky { position: relative; height: auto; padding: 120px 0; }
.reduced-motion .hscroll__track { flex-wrap: wrap; transform: none; }
.reduced-motion .manifest__text .w { opacity: 1; }
.reduced-motion .step { opacity: 1; transform: none; }
.reduced-motion .why__item { opacity: 1; }
.reduced-motion .hscroll__hint { display: none; }

/* ==========================================================================
   MOTYW WORDPRESS – rozszerzenia
   ========================================================================== */

/* --------------------------------------------------------- Struktura strony */
.has-topbar { --topbar-h: 40px; }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 111; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; padding: 0 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .icon { width: 16px; height: 16px; }
.header.is-hidden { transform: translateY(calc(-100% - var(--topbar-h))); }
.admin-bar .header { top: calc(var(--topbar-h) + 32px); }
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: calc(var(--topbar-h) + 46px); } .admin-bar .topbar { top: 46px; } .admin-bar .header.is-scrolled { top: var(--topbar-h); } }
.header:not(.header--blur).is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
.header:not(.header--blur).on-dark.is-scrolled { background: var(--ink); }
.header-right .nav { margin-left: auto; margin-right: 28px; }

/* logo graficzne */
.brand__logo { display: block; }
.brand__logo img { height: var(--logo-h); width: auto; display: block; }
.brand__logo--dark { display: none; }
.header.on-dark .brand__logo--light, .menu-open .header .brand__logo--light { display: none; }
.header.on-dark .brand__logo--dark, .menu-open .header .brand__logo--dark { display: block; }
.brand__letters { font-family: var(--serif); font-size: 44px; fill: currentColor; stroke: none; }

.kz-main { display: block; min-height: 60vh; }
.kz-main > .kz-sec:first-child:not(.kz-sec--hero):not(.kz-sec--page_header):not(.kz-sec--hscroll) { padding-top: calc(var(--header-h) + var(--topbar-h) + clamp(48px, 8vw, 120px)); }
.kz-main > .kz-sec--hscroll:first-child .hscroll__sticky { padding-top: var(--header-h); }
.only-mobile { display: none !important; }
@media (max-width: 900px) { .only-mobile { display: block !important; } .only-desktop { display: none !important; } }

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1600px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row .h2 { margin-bottom: 0; }
.section-label__num { margin-right: .6em; }
.empty-note { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Akcentowe tło sekcji */
.bg-accent .btn--accent { --bg: var(--ink); --fg: var(--paper); --hover: var(--paper); }
.bg-accent .btn--accent:hover { color: var(--ink); }
.bg-accent .link-arrow, .bg-accent .section-label::after { color: #fff; }
[data-dark] .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--line-light); --hover: var(--paper); }
[data-dark] .btn--ghost:hover { color: var(--ink); }
[data-dark] .btn--dark { --bg: var(--paper); --fg: var(--ink); }
[data-dark] .btn--dark:hover { color: #fff; }
[data-dark] .tags li { border-color: var(--line-light); }
[data-dark] .pillar p, [data-dark] .why__item p, [data-dark] .step p, [data-dark] .split__body .prose { color: var(--muted-light); }
[data-dark] .why__item, [data-dark] .stats, [data-dark] .stat + .stat, [data-dark] .faq__list details { border-color: var(--line-light); }
[data-dark] .stat > span, [data-dark] .manifest__role, [data-dark] .faq__more { color: var(--muted-light); }
[data-dark] .step { background: rgba(255, 255, 255, .04); border-color: var(--line-light); }
[data-dark] .process__path-bg { stroke: var(--line-light); }
[data-dark] .media:not(.media--paper) { background: linear-gradient(135deg, #2c2822, #3b342b); }
[data-dark] .pillar__no { border-color: var(--line-light); }
[data-dark] .portfolio__item figcaption span { color: var(--muted-light); }
[data-dark] .contact__list li { border-color: var(--line-light); }
[data-dark] .contact__info > p, [data-dark] .contact__list li > span:first-child { color: var(--muted-light); }

/* ------------------------------------------------------------ Hero warianty */
.hero.hero--short { height: 200vh; }
.hero.hero--static { height: auto; }
.hero--static .hero__stage { position: relative; min-height: calc(var(--vh) * 100); }
.hero__note { margin-top: 24px; }
.hero__note strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------- Nagłówek podstrony */
.page-header { position: relative; overflow: hidden; padding: calc(var(--header-h) + var(--topbar-h) + clamp(40px, 7vw, 110px)) 0 clamp(64px, 8vw, 120px); }
.page-header__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; z-index: 2; }
.page-header--simple .page-header__grid, .page-header--center .page-header__grid, .page-header--cover .page-header__grid { grid-template-columns: 1fr; }
.page-header--simple .page-header__text, .page-header--cover .page-header__text { max-width: 980px; }
.page-header--center .page-header__grid { text-align: center; justify-items: center; }
.page-header--center .page-header__text { max-width: 980px; }
.page-header--center .page-header__lead { margin-inline: auto; }
.page-header--center .breadcrumbs ol, .page-header--center .eyebrow { justify-content: center; }
.page-header__title { font-family: var(--serif); font-weight: var(--h-weight); font-variation-settings: "opsz" 144; font-size: calc(clamp(44px, 7vw, 112px) * var(--h-scale)); line-height: .98; letter-spacing: -.035em; margin: 0 0 28px; }
.page-header__title em { color: var(--accent); font-weight: 300; }
[data-dark] .page-header__title em { color: var(--accent-2); }
.page-header__lead { font-size: clamp(17px, 1.35vw, 21px); color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.page-header__lead p { margin: 0 0 12px; }
[data-dark] .page-header__lead { color: rgba(244, 239, 231, .82); }
.page-header__media .media { aspect-ratio: 4 / 5; max-height: 74vh; margin-left: auto; box-shadow: 0 40px 80px -40px rgba(22, 20, 15, .45); }
.page-header__media .media img { transform: scale(1.12) translateY(var(--py, 0)); transition: none; }
.page-header--cover { min-height: calc(var(--vh) * 100); display: flex; align-items: flex-end; color: var(--paper); }
.page-header--cover .page-header__bg { position: absolute; inset: -10% 0 0; z-index: 0; transform: translateY(var(--py, 0)); }
.page-header--cover .page-header__bg .media { position: absolute; inset: 0; border-radius: 0; }
.page-header--cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(22, 20, 15, .85), rgba(22, 20, 15, .25) 60%, rgba(22, 20, 15, .35)); }
.page-header--cover .page-header__grid { width: 100%; }
.page-header--cover .eyebrow, .page-header--cover .breadcrumbs { color: rgba(244, 239, 231, .8); }
.page-header__aperture { position: absolute; z-index: 1; width: clamp(180px, 22vw, 340px); right: -60px; top: calc(var(--header-h) + 20px); opacity: .1; transform: rotate(var(--rot, 0deg)); pointer-events: none; }
.page-header--split .page-header__aperture { right: auto; left: 46%; top: auto; bottom: -80px; opacity: .08; }
.scroll-hint--static { position: absolute; z-index: 3; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--accent); }

/* ------------------------------------------------------- Odsłanianie (clip) */
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] > .media { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) var(--d, 0s); }
[data-reveal="clip"].is-in > .media { clip-path: inset(0 0 0 0); }
.reveal-fade [data-reveal]:not([data-reveal="clip"]) { transform: none; }
.no-anim [data-reveal], .no-anim [data-reveal="clip"] > .media, .reduced-motion [data-reveal="clip"] > .media { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.no-anim [data-split] .line__inner { transform: none !important; }
[data-reveal], [data-split] .line__inner { transition-duration: calc(1.1s * var(--anim-speed)); }

/* ------------------------------------------------------------ Filtry */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters__btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: all .3s var(--ease); background: transparent; }
.filters__btn:hover { border-color: var(--ink); }
.filters__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__btn sup { font-size: 10px; opacity: .6; margin-left: 2px; }
[data-dark] .filters__btn { border-color: var(--line-light); }
[data-dark] .filters__btn.is-active { background: var(--paper); color: var(--ink); }

/* ---------------------------------------------------------- Karty galerii */
.gcards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.gcards--masonry { display: block; columns: var(--cols, 3); column-gap: clamp(16px, 2.4vw, 32px); }
.gcards--masonry .gcard { break-inside: avoid; margin-bottom: clamp(16px, 2.4vw, 32px); }
.gcards--masonry .gcard:nth-child(3n+1) .gcard__media { aspect-ratio: 4 / 5.4; }
.gcards--masonry .gcard:nth-child(3n+2) .gcard__media { aspect-ratio: 4 / 3.4; }
.gcards--list { grid-template-columns: 1fr; }
.gcards--list .gcard__media { aspect-ratio: 16 / 8; }
.gcard.is-filtered { display: none; }
.gcard.is-appearing { animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.gcard__link { display: block; position: relative; }
.gcard__media { aspect-ratio: 4 / 5; }
.gcard__media img { transition: transform 1.2s var(--ease); }
.gcard__link:hover .gcard__media img { transform: scale(1.06); }
.gcard__body { position: relative; padding: 18px 48px 0 0; }
.gcard__cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.gcard__title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; margin: 6px 0 4px; letter-spacing: -.01em; }
.gcard__meta { font-size: 14px; color: var(--muted); }
.gcard__arrow { position: absolute; right: 0; top: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .4s var(--ease); }
.gcard__arrow .icon { width: 18px; height: 18px; }
.gcard__link:hover .gcard__arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }
[data-dark] .gcard__meta { color: var(--muted-light); }
[data-dark] .gcard__arrow { border-color: var(--line-light); }

/* ------------------------------------------------------------ Galeria zdjęć */
.kz-gallery { --gap: 16px; padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }
.kz-gallery__item { margin: 0; position: relative; }
.kz-gallery__item.is-hidden { display: none; }
.kz-gallery__link { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); }
.kz-gallery__link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease), filter .8s var(--ease); }
.kz-gallery__item figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; }
.kz-gallery__item.is-failed .kz-gallery__link::before { content: ""; position: absolute; inset: 0; background: url("../svg/aperture.svg") center / 56px no-repeat; opacity: .3; }
.kz-gallery__item.is-failed img { opacity: 0; }
.kz-gallery__item.is-failed .kz-gallery__link { min-height: 220px; }

/* masonry */
.kz-gallery--masonry { columns: var(--cols, 3); column-gap: var(--gap); }
.kz-gallery--masonry .kz-gallery__item { break-inside: avoid; margin-bottom: var(--gap); }
.kz-gallery--masonry .kz-gallery__link img { height: auto; }
/* justified */
.kz-gallery--justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.kz-gallery--justified::after { content: ""; flex-grow: 999999; }
.kz-gallery--justified .kz-gallery__item { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * clamp(180px, 22vw, 320px)); }
.kz-gallery--justified .kz-gallery__link { aspect-ratio: var(--ar); }
/* grid */
.kz-gallery--grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap); }
.kz-gallery--grid .kz-gallery__link { aspect-ratio: var(--ratio, 4/5); }
/* editorial */
.kz-gallery--editorial { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 19vw, 320px); grid-auto-flow: dense; gap: var(--gap); }
.kz-gallery--editorial .kz-gallery__item { grid-column: span 2; }
.kz-gallery--editorial .kz-gallery__item:nth-child(5n+1) { grid-column: span 4; grid-row: span 2; }
.kz-gallery--editorial .kz-gallery__item:nth-child(5n+4), .kz-gallery--editorial .kz-gallery__item:nth-child(5n+5) { grid-column: span 3; }
.kz-gallery--editorial .kz-gallery__link { height: 100%; }
.kz-gallery--editorial figcaption { display: none; }
/* stack */
.kz-gallery--stack { display: grid; gap: calc(var(--gap) * 3); max-width: 1180px; }
.kz-gallery--stack .kz-gallery__item:nth-child(3n+2) { width: 72%; justify-self: end; }
.kz-gallery--stack .kz-gallery__item:nth-child(3n+3) { width: 72%; }
.kz-gallery--stack .kz-gallery__link img { height: auto; }
/* poziomy scroll */
.kz-gallery-hscroll { position: relative; height: 400vh; }
.kz-gallery-hscroll .hscroll__sticky { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; display: flex; align-items: center; }
.kz-gallery--hscroll { display: flex; gap: var(--gap); padding: 0 var(--gutter); max-width: none; margin: 0; will-change: transform; transform: translate3d(var(--tx, 0), 0, 0); }
.kz-gallery--hscroll .kz-gallery__item { flex: 0 0 auto; height: min(72vh, 760px); }
.kz-gallery--hscroll .kz-gallery__link { height: 100%; aspect-ratio: var(--ar); }
.kz-gallery-hscroll .hscroll__bar { background: var(--line); }

/* efekty najechania */
.hover-zoom .kz-gallery__link:hover img { transform: scale(1.06); }
.hover-lift .kz-gallery__link { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.hover-lift .kz-gallery__link:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(22, 20, 15, .5); }
.hover-darken .kz-gallery__link::after { content: ""; position: absolute; inset: 0; background: rgba(22, 20, 15, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 40px no-repeat; opacity: 0; transition: opacity .4s; }
.hover-darken .kz-gallery__link:hover::after { opacity: 1; }
.hover-gray .kz-gallery__link img { filter: grayscale(1); }
.hover-gray .kz-gallery__link:hover img { filter: none; }

/* animacja pojawiania */
.greveal-rise .kz-gallery__item { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease) calc(var(--i) * .04s), transform 1.2s var(--ease) calc(var(--i) * .04s); }
.greveal-fade .kz-gallery__item { opacity: 0; transition: opacity 1.2s var(--ease) calc(var(--i) * .04s); }
.greveal-curtain .kz-gallery__link { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-io) calc(var(--i) * .05s); }
.kz-gallery .kz-gallery__item.is-in { opacity: 1; transform: none; }
.kz-gallery .kz-gallery__item.is-in .kz-gallery__link { clip-path: inset(0 0 0 0); }
.no-anim .kz-gallery__item, .reduced-motion .kz-gallery__item { opacity: 1 !important; transform: none !important; }
.no-anim .kz-gallery__link, .reduced-motion .kz-gallery__link { clip-path: none !important; }
.kz-gallery-hscroll .kz-gallery__item { opacity: 1; transform: none; }
.kz-gallery__more { text-align: center; margin-top: 40px; }
.kz-gallery__more span { opacity: .6; margin-left: 4px; }
.is-protected img { -webkit-user-drag: none; user-select: none; }

/* ----------------------------------------------------------------- Lightbox */
.lb { position: fixed; inset: 0; z-index: 100000; background: rgba(14, 13, 10, .97); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lb__top { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 3vw, 32px); gap: 16px; font-size: 14px; }
.lb__counter { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--muted-light); }
.lb__tools { display: flex; gap: 6px; }
.lb__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); background: rgba(255, 255, 255, .06); transition: background .3s; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__btn .icon { width: 20px; height: 20px; }
.lb__btn.is-active { background: var(--accent); }
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.lb__img { max-width: calc(100vw - 160px); max-height: calc(var(--vh) * 100 - 190px); object-fit: contain; border-radius: 6px; transition: transform .5s var(--ease), opacity .4s var(--ease); user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lb.is-zoomed .lb__img { cursor: grab; transition: none; }
.lb__img.is-leaving { opacity: 0; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); background: rgba(255, 255, 255, .06); z-index: 2; transition: background .3s; }
.lb__nav:hover { background: var(--accent); }
.lb__nav--prev { left: clamp(10px, 2vw, 28px); }
.lb__nav--next { right: clamp(10px, 2vw, 28px); }
.lb__nav .icon { width: 22px; height: 22px; }
.lb__loader { position: absolute; width: 56px; height: 56px; opacity: 0; transition: opacity .3s; animation: spin 2s linear infinite; }
.lb.is-loading .lb__loader { opacity: .8; }
.lb__watermark { position: absolute; bottom: 16px; right: 24px; font-family: var(--serif); font-style: italic; opacity: .55; pointer-events: none; font-size: 15px; }
.lb__bottom { padding: 10px clamp(16px, 3vw, 32px) 18px; display: grid; gap: 12px; }
.lb__caption { text-align: center; color: var(--muted-light); min-height: 1.4em; font-size: 15px; }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding-bottom: 4px; scrollbar-width: thin; }
.lb__thumbs button { flex: 0 0 auto; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; opacity: .45; transition: opacity .3s, outline-color .3s; outline: 2px solid transparent; outline-offset: 2px; }
.lb__thumbs button.is-active { opacity: 1; outline-color: var(--accent-2); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb__progress { position: absolute; left: 0; top: 0; height: 2px; background: var(--accent-2); width: 0; }
@media (max-width: 700px) { .lb__img { max-width: 100vw; border-radius: 0; } .lb__nav { display: none; } .lb__thumbs { display: none; } }
body.lb-open { overflow: hidden; }

/* -------------------------------------------------- Pojedyncza galeria */
.gallery-single .page-header { padding-bottom: clamp(48px, 6vw, 90px); }
.gallery-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.gallery-cta__inner p { color: var(--muted); max-width: 560px; margin: 0; }
.gallery-cta .h2 { margin-bottom: 12px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; margin-bottom: 48px; font-size: 14px; }
.share > span { color: var(--muted); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; transition: all .3s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share .icon { width: 16px; height: 16px; }
.gnav { display: grid; grid-template-columns: 1fr 1fr; }
.gnav__item { position: relative; min-height: clamp(220px, 30vw, 380px); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 56px); color: var(--paper); overflow: hidden; background: var(--ink); }
.gnav__item .media { position: absolute; inset: 0; border-radius: 0; opacity: .5; }
.gnav__item .media img { transition: transform 1.4s var(--ease); }
.gnav__item:hover .media img { transform: scale(1.06); }
.gnav__item--next { text-align: right; }
.gnav__label { position: relative; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.gnav__title { position: relative; font-family: var(--serif); font-size: clamp(26px, 3vw, 44px); line-height: 1.1; margin-top: 8px; }
.gnav__item--empty { background: var(--ink-2); }

/* ------------------------------------------------------------- Usługi */
.service-body__grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.service-box { position: sticky; top: calc(var(--header-h) + 30px); background: var(--card); border-radius: 22px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -50px rgba(22, 20, 15, .4); }
.service-box__title { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.service-box .checks { margin: 18px 0 28px; }
.service-box__phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; }
.service-box__phone .icon { width: 18px; height: 18px; color: var(--accent); }
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.scard { display: block; position: relative; }
.scard .media { aspect-ratio: 4 / 4.4; margin-bottom: 18px; }
.scard .media img { transition: transform 1.2s var(--ease); }
.scard:hover .media img { transform: scale(1.06); }
.scard .media--paper img { padding: 10%; }
.scard__no { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(22, 20, 15, .55); color: var(--paper); backdrop-filter: blur(6px); }
.scard__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); margin: 0 0 8px; }
.scard p { color: var(--muted); margin: 0 0 14px; }

/* ------------------------------------------------------------ Pakiety */
.pricing__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price { position: relative; background: var(--card); border-radius: 22px; padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price--hl { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-12px); }
.price__badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.price h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 18px; }
.price__value { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 54px); line-height: 1; margin: 0; letter-spacing: -.02em; }
.price__note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.price--hl .price__note { color: var(--muted-light); }
.price .checks { flex: 1; margin: 28px 0; }
.pricing__foot { text-align: center; color: var(--muted); margin-top: 32px; }

/* ------------------------------------------------------------ Logotypy */
.logos__title { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 32px; }
.logos__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 72px); }
.logos__list img { max-height: 64px; width: auto; max-width: 160px; object-fit: contain; transition: filter .4s, opacity .4s; border-radius: 8px; }
.logos--gray img { filter: grayscale(1); opacity: .65; }
.logos--gray img:hover { filter: none; opacity: 1; }

/* ---------------------------------------------------- Zdjęcie + tekst */
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { margin: 0; position: relative; }
.split__media .media { aspect-ratio: 4 / 5; }
.split__media--landscape .media { aspect-ratio: 3 / 2; }
.split__media--square .media { aspect-ratio: 1; }
.split__media--auto .media { aspect-ratio: auto; }
.split__media--auto .media img { height: auto; }
.split__media .media img { transform: scale(1.12) translateY(var(--py, 0)); transition: none; }
.split__media figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--paper); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.split__body .checks { margin: 24px 0 32px; }

/* ----------------------------------------------------------- Tekst / prose */
.prose { font-size: clamp(16px, 1.1vw, 18.5px); line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 1.8em 0 .6em; }
.prose h2 { font-size: clamp(30px, 3vw, 44px); }
.prose h3 { font-size: clamp(24px, 2.2vw, 32px); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.35em; line-height: 1.4; font-style: italic; }
.prose img { border-radius: var(--radius); height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose .alignwide { margin-inline: calc(-1 * clamp(0px, 8vw, 160px)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; display: block; }
.rich .h2 { margin-bottom: 32px; }

/* ------------------------------------------------------------ Wideo */
.video { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ------------------------------------------------------------ Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.post-grid--list { grid-template-columns: 1fr; }
.post-grid--list .post-card__link { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
.post-card__media { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.post-card__media img { transition: transform 1.2s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.post-card__meta span:first-child { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.post-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; margin: 0 0 10px; }
.post-card p { color: var(--muted); margin: 0 0 14px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.article__tags a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.pager, .pagination { margin-top: 56px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; padding: 0 14px; }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers .icon { width: 18px; height: 18px; }
.search-form { display: flex; max-width: 520px; border: 1px solid var(--line); border-radius: 999px; padding: 6px; background: var(--card); }
.search-form__input { flex: 1; border: 0; background: transparent; font: inherit; padding: 10px 16px; outline: none; color: var(--ink); }
.search-form__btn { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.search-form__btn .icon { width: 18px; height: 18px; }
.search-again { margin-bottom: 40px; }
.comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.comments__list { list-style: none; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--card); }
.widget { margin-top: 40px; }
.widget__title { font-family: var(--serif); font-weight: 400; }

/* ------------------------------------------------------------ 404 */
.error404-page { min-height: calc(var(--vh) * 100); display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; position: relative; }
.error404-page__inner { position: relative; }
.error404-page__aperture { position: absolute; right: -10%; top: -20%; width: min(60vw, 640px); opacity: .1; animation: spin 40s linear infinite; pointer-events: none; }
.error404-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

/* ------------------------------------------------------------ Formularz */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__grid > .field { grid-column: 1 / -1; }
.form__grid > .field--half { grid-column: span 1; }
.field--choice { display: flex; flex-wrap: wrap; gap: 10px; }
.field--choice legend { margin-bottom: 8px; width: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }
.field--choice label { cursor: pointer; position: relative; }
.field--choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field--choice span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; transition: all .3s; }
.field--choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field--choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--choice.is-invalid span { border-color: #C0392B; }
.contact__grid--single { grid-template-columns: 1fr; max-width: 820px; }
.contact__response { margin-top: 24px; font-size: 14px; color: var(--muted); }
.contact__response strong { color: var(--ink); }
.contact__map { margin-top: 64px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; background: var(--paper-2); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.cf-turnstile { margin: 4px 0; }

/* ------------------------------------------------------------ Opinie: siatka i karuzela */
.reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.reviews__grid .review, .slider .review { position: relative; top: auto; margin: 0; min-height: 0; transform: none; filter: none; }
.reviews__grid .review blockquote, .slider .review blockquote { font-size: clamp(20px, 1.8vw, 28px); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider .review { scroll-snap-align: start; }
.slider-nav { display: flex; gap: 8px; }
.slider-nav__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s; }
.slider-nav__btn:hover { background: var(--ink); color: var(--paper); }
.slider-nav__btn .icon { width: 20px; height: 20px; }
.review__stars { display: flex; gap: 4px; color: var(--accent); }
.review--dark .review__stars, .review--accent .review__stars { color: #fff; }
.review__stars .icon { width: 18px; height: 18px; fill: currentColor; }
.review__logo .media { width: 100%; height: 100%; border-radius: 50%; }

/* ------------------------------------------------------------ Cookies */
.cookie { position: fixed; z-index: 990; left: 16px; bottom: 16px; max-width: 460px; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); transform: translateY(20px); opacity: 0; transition: all .6s var(--ease); }
.cookie.is-visible { transform: none; opacity: 1; }
.cookie p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(244, 239, 231, .85); }
.cookie a { text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--line-light); }
@media (max-width: 900px) { .cookie { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; } }

/* ------------------------------------------------------- Przejścia stron */
.page-transition { position: fixed; inset: 0; z-index: 9000; background: var(--ink); pointer-events: none; transform: translateY(100%); }
.is-leaving .page-transition { transition: transform .55s var(--ease-io); transform: translateY(0); }
.is-ready .page-transition { animation: pageIn .7s var(--ease-io) both; }
@keyframes pageIn { from { transform: translateY(0); } to { transform: translateY(-100%); } }
.has-preloader .page-transition { animation: none; }

/* preloader pominięty (sesja) */
.preloader-skip .preloader { display: none; }

/* ------------------------------------------------------- Edycja z frontu */
.kz-edit { position: absolute; z-index: 60; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; opacity: 0; transform: translateY(-6px); transition: all .3s var(--ease); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.kz-edit .icon { width: 14px; height: 14px; }
.kz-sec:hover > .kz-edit, .kz-edit:focus { opacity: 1; transform: none; }
.hero > .kz-edit, .hscroll > .kz-edit, .page-header--cover > .kz-edit { top: calc(var(--header-h) + 14px); }

/* ------------------------------------------------------- Strona „wkrótce” */
.maint-page { overflow: hidden; }
.maint { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); max-width: 980px; margin: 0 auto; position: relative; }
.maint__aperture { position: absolute; right: -20%; top: 10%; width: min(70vw, 680px); opacity: .1; animation: spin 50s linear infinite; }
.maint__contact { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }

/* ------------------------------------------------------- Responsywność */
@media (max-width: 1100px) {
  .post-grid, .scards { grid-template-columns: 1fr 1fr; }
  .gcards { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
  .gcards--masonry { columns: 2; }
  .kz-gallery--masonry { columns: min(var(--cols, 3), 3); }
}
@media (max-width: 900px) {
  .page-header__grid, .split__grid, .service-body__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .page-header__media .media { max-height: 60vh; margin: 0; }
  .service-box { position: static; }
  .pricing__grid, .reviews__grid { grid-template-columns: 1fr; }
  .price--hl { transform: none; }
  .services { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .kz-gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kz-gallery--masonry { columns: 2; }
  .kz-gallery--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .kz-gallery--editorial .kz-gallery__item, .kz-gallery--editorial .kz-gallery__item:nth-child(5n+4), .kz-gallery--editorial .kz-gallery__item:nth-child(5n+5) { grid-column: span 1; grid-row: span 1; }
  .kz-gallery--editorial .kz-gallery__item:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
  .kz-gallery--stack .kz-gallery__item { width: 100% !important; }
  .kz-gallery--hscroll .kz-gallery__item { height: 60vh; }
  .gnav { grid-template-columns: 1fr; }
  .gnav__item--empty { display: none; }
  .form__grid { grid-template-columns: 1fr; }
  .form__grid > .field--half { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-head--split { display: block; }
  .page-header__aperture { display: none; }
}
@media (max-width: 600px) {
  .post-grid, .scards, .gcards { grid-template-columns: 1fr; }
  .gcards--masonry { columns: 1; }
  .kz-gallery--masonry { columns: 1; }
  .kz-gallery--grid { grid-template-columns: 1fr 1fr; --gap: 8px; }
  .kz-gallery { --gap: 10px; }
  .post-grid--list .post-card__link { grid-template-columns: 1fr; }
  .contact__map { aspect-ratio: 4 / 3; }
}
.reduced-motion .kz-gallery-hscroll { height: auto; }
.reduced-motion .kz-gallery-hscroll .hscroll__sticky { position: relative; height: auto; overflow-x: auto; padding: 20px 0; }
.reduced-motion .hero--short, .reduced-motion .hero--full { height: auto; }
.admin-bar .lb { top: 32px; }
@media (max-width: 782px) { .admin-bar .lb { top: 46px; } }
