/* =========================================================
   JAN POVAŽAN — PORTFOLIO
   Editorial / gallery design system · light · 3D + kinetic
   ========================================================= */

@import url('fonts.css');

/* ---- Accessibility: visible keyboard focus + skip link ---- */
:focus-visible { outline: 2px solid var(--accent, #ff4a1c); outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 3000;
  background: #16140f; color: #f3efe6; padding: 11px 18px; border-radius: 9px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #ff4a1c; outline-offset: 2px; }

:root {
  /* Surfaces */
  --paper: #f3efe6;
  --paper-2: #eae4d7;
  --paper-3: #e2dccc;
  --ink: #16140f;
  --ink-soft: rgba(22, 20, 15, 0.64);
  --ink-mute: rgba(22, 20, 15, 0.42);
  --line: rgba(22, 20, 15, 0.16);
  --line-soft: rgba(22, 20, 15, 0.09);

  /* Accent */
  --accent: #ff4a1c;
  --accent-ink: #d63610;

  /* System */
  --maxw: 1320px;
  --pad: 40px;
  --ease: cubic-bezier(0.6, 0.01, 0.05, 0.95);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html { overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Paper grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.display { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; }
.serif-it { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
em.ink-it, .ink-it { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* =========================================================
   PRELOADER / INTRO
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--accent);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transform-origin: top;
}
.loader.done { pointer-events: none; }
.loader-word {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(40px, 12vw, 150px); line-height: 0.9;
  text-transform: uppercase; letter-spacing: -0.03em;
  overflow: hidden;
}
.loader-word span { display: inline-block; transform: translateY(110%); }
.loader-count {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(28px, 5vw, 56px); font-variant-numeric: tabular-nums;
}
.loader-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0%;
  background: var(--accent);
}
/* ===== About liquid 3D band ===== */
.about-3d {
  position: relative; width: 100%;
  height: clamp(360px, 52vh, 580px);
  margin: 30px 0 10px; pointer-events: none;
}
.about-3d canvas { width: 100%; height: 100%; }
html.no-anim .about-3d { display: none; }

/* ===== Scroll snake (SVG weaving down the page) ===== */
.snake { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; overflow: visible; }
.snake-path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; opacity: 0.12; }

/* ===== Custom cursor + trail ===== */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor input, .has-cursor textarea, .has-cursor select, .has-cursor .lb-trigger { cursor: none; }
.cursor-trail { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--accent); z-index: 10000; pointer-events: none;
  transition: width .2s var(--ease-out), height .2s var(--ease-out);
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid var(--ink); border-radius: 50%; z-index: 9999; pointer-events: none;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, opacity .25s;
}
.cursor-hot .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }
.cursor-hot .cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.btn, .link-u { transition: transform .25s var(--ease-out), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s; }

/* ===== Page transition overlay ===== */
.page-transition {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.pt-mark {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(40px, 9vw, 120px); color: var(--paper); text-transform: uppercase;
  letter-spacing: -0.03em; opacity: 0;
}
.pt-mark .dot { color: var(--ink); }
/* Arriving via a click transition: cover the page from the very first paint
   (no content flash), and hide the index loader so only the orange wipe plays. */
html.pt-in .page-transition { transform: scaleY(1); transform-origin: top; }
html.pt-in .page-transition .pt-mark { opacity: 1; }
html.pt-in .loader { display: none !important; }

/* ===== Floating 3D accents ===== */
.accent-3d { position: absolute; z-index: 0; pointer-events: none; }
.accent-3d.acc-services {
  top: -40px; right: -10px; width: clamp(160px, 20vw, 280px); height: clamp(160px, 20vw, 280px);
}
.cta { overflow: hidden; position: relative; }
.accent-3d.acc-cta {
  top: 50%; right: 4%; transform: translateY(-50%);
  width: clamp(200px, 26vw, 380px); height: clamp(200px, 26vw, 380px); z-index: 1;
}
.cta .wrap { position: relative; z-index: 2; }

/* ===== Typography polish ===== */
.about-lead, .hero-lead, .sec-meta, .detail-sub, .cta p, .client-row .desc, .svc-desc, .contact-sub, .about-side p { text-wrap: pretty; }
.hero-title, .sec-title, .detail-title, .contact-big, .cta-title { text-wrap: balance; }
body { font-feature-settings: 'ss01', 'cv05', 'liga' 1, 'kern' 1; }
.eyebrow, .sec-ix, .info-label, .cards-label, .detail-tag, .client-row .tag, .reel-badge, .nav-menu a .ix { font-feature-settings: 'tnum' 1; }
.nav-logo:hover .mark .dot { color: var(--ink); transition: color 0.3s; }
.link-u, .footer-col a, .breadcrumb a, .contact-card { -webkit-tap-highlight-color: transparent; }
.detail-title { text-wrap: balance; }
/* hairline refinements */
.svc, .client-row, .contact-card, .info-item, .figure { transition-property: padding, color, transform, background, border-color; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  mix-blend-mode: normal;
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(243, 239, 230, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav.hide { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: 12px; z-index: 95; }
.nav-logo .mark {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase;
}
.nav-logo .dot { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-menu { display: flex; gap: 26px; }
.nav-menu a {
  position: relative; font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; padding: 6px 0;
  display: inline-flex; align-items: baseline; gap: 5px;
}
.nav-menu a .ix { font-size: 10px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.nav-menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.35s var(--ease-out);
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--accent-ink); }

.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch button {
  background: none; border: none; cursor: pointer;
  padding: 2px; line-height: 1;
  opacity: 0.35; transition: opacity 0.2s;
  border-radius: 3px;
}
.lang-switch button.active { opacity: 1; }
.lang-switch button:hover { opacity: 0.75; }
.lang-switch button img { display: block; border-radius: 2px; width: 24px; height: 16px; }
.lang-sep { color: var(--line); font-size: 11px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 95; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle span + span { margin-top: 6px; }

/* =========================================================
   BUTTONS / LINKS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.3s var(--ease), border-color 0.4s;
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

.link-u {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out); padding-bottom: 3px;
}
.link-u:hover { background-size: 100% 1.5px; }

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(70px, 11vh, 140px) 0; position: relative; }
.rule { height: 1px; background: var(--line); width: 100%; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; }
.sec-ix {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700;
  font-size: 13px; color: var(--accent-ink); letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.sec-ix::before { content: ''; width: 30px; height: 1.5px; background: var(--accent); }
.sec-title {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(34px, 6vw, 88px); line-height: 0.92;
  letter-spacing: -0.025em; text-transform: uppercase;
}
.sec-title .it { font-family: var(--f-serif); font-stretch: normal; font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -0.01em; }
.sec-meta { font-size: 14px; color: var(--ink-soft); max-width: 320px; text-align: right; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); overflow: hidden; }
/* Volumetric fog fills the whole viewport-width hero, behind the text */
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.hero-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft);
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 2.4s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

.hero-title {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(40px, 8.6vw, 124px); line-height: 0.86;
  letter-spacing: -0.035em; text-transform: uppercase;
}
.hero-title .line { display: block; overflow: visible; }
.hero-title .line > span { display: inline-block; will-change: transform, filter; }
.hero-title .it { font-family: var(--f-serif); font-stretch: normal; font-weight: 300; font-style: italic; text-transform: none; letter-spacing: -0.02em; }
.hero-title .accent { color: var(--accent); }
.hero-title .outline {
  -webkit-text-stroke: 2px var(--ink); color: transparent;
}

.hero-bottom {
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 48px;
  margin-top: clamp(28px, 5vh, 60px); flex-wrap: wrap; max-width: 760px;
}
.hero-lead { max-width: 400px; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.hero-lead .em { color: var(--ink); font-family: var(--f-serif); font-style: italic; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-photo {
  position: absolute; z-index: 2;
  right: var(--pad); top: 50%; transform: translateY(-50%);
  width: clamp(180px, 22vw, 300px); aspect-ratio: 4/5;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(22,20,15,0.5);
}
.hero-photo canvas, .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 5px 9px; border-radius: 2px;
}
/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-lead {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.3; letter-spacing: -0.01em;
}
.about-lead .hl { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-style: normal; text-transform: uppercase; font-size: 0.82em; color: var(--accent); }
.about-side { font-size: 16px; color: var(--ink-soft); line-height: 1.7; padding-top: 10px; }
.about-side p + p { margin-top: 18px; }

.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.about-imgs img { width: 100%; height: 460px; object-fit: cover; object-position: center top; border-radius: 8px; display: block; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--ink); }
.figure { padding: 26px 0 0; border-right: 1px solid var(--line); padding-right: 16px; }
.figure:last-child { border-right: none; }
.figure .n {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(46px, 6vw, 92px); line-height: 0.9; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figure .n .s { color: var(--accent); }
.figure .l { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; max-width: 160px; }

/* =========================================================
   SERVICES — numbered editorial list
   ========================================================= */
.svc-list { border-top: 1px solid var(--ink); }
.svc {
  position: relative; display: grid; grid-template-columns: 90px 1fr auto;
  gap: 24px; align-items: center; padding: 30px 0;
  border-bottom: 1px solid var(--line); cursor: default;
  transition: padding 0.5s var(--ease), color 0.4s;
}
.svc::before { content: ''; position: absolute; left: -100vw; right: -100vw; top: 0; bottom: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.svc > * { position: relative; }
.svc:hover { color: var(--paper); padding-left: 24px; padding-right: 24px; }
.svc:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-ix { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.svc:hover .svc-ix { color: var(--accent); }
.svc-name { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 3.4vw, 44px); text-transform: uppercase; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; }
.svc-name .pill { font-family: var(--f-body); font-stretch: normal; font-weight: 600; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid currentColor; padding: 3px 9px; border-radius: 100px; opacity: 0.6; }
.svc-desc { font-size: 14.5px; color: inherit; opacity: 0.7; max-width: 360px; text-align: right; }
.svc:hover .svc-desc { opacity: 0.85; }

/* =========================================================
   WORK — horizontal scroll gallery
   ========================================================= */
.h-scroll { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; min-height: 100svh; display: flex; align-items: center; }
.h-scroll::-webkit-scrollbar { display: none; }
html.no-anim .h-scroll { scroll-snap-type: x proximity; }
html.no-anim .h-piece { scroll-snap-align: center; }
.h-track { display: flex; gap: 44px; align-items: center; padding: 0 var(--pad); width: max-content; will-change: transform; }
.h-intro { flex: 0 0 auto; width: min(42vw, 500px); padding-right: 64px; }
.h-intro .sec-title { font-size: clamp(40px, 5.5vw, 84px); }
.h-piece {
  flex: 0 0 auto; position: relative; cursor: pointer;
  border-radius: 3px; overflow: hidden;
  height: clamp(360px, 64vh, 600px); width: auto;
}
.h-piece img { transition: transform 0.7s var(--ease); }
.h-piece:hover img { transform: scale(1.04); }
/* each piece hugs its media: full height, natural width → no letterbox, no crop */
.h-piece canvas, .h-piece img, .h-piece video { height: 100%; width: auto; max-width: 88vw; object-fit: cover; display: block; }
.h-piece .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  color: #fff; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  opacity: 0; transform: translateY(8px); transition: 0.4s var(--ease-out);
}
.h-piece:hover .cap { opacity: 1; transform: none; }
.h-piece .cap .c { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.h-piece .cap .t { font-size: 12px; opacity: 0.85; }
.h-piece .ix { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 12px; color: #fff; mix-blend-mode: difference; }
.h-flag { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 14px; }
.h-outro { flex: 0 0 auto; width: min(36vw, 380px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.h-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 24px; height: 2px; background: var(--line); z-index: 5; }
.h-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* =========================================================
   STATIC GALLERY (prace.html) — masonry editorial
   ========================================================= */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.25s var(--ease-out);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-count { opacity: 0.5; margin-left: 5px; font-variant-numeric: tabular-nums; }

.masonry { column-count: 3; column-gap: 22px; }
.work {
  break-inside: avoid; margin-bottom: 22px; position: relative;
  background: var(--paper-2); border-radius: 3px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft);
}
.work img, .work video { width: 100%; display: block; transition: transform 0.7s var(--ease); }
.work:hover img, .work:hover video { transform: scale(1.03); }
.work-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: #fff; background: linear-gradient(transparent 45%, rgba(0,0,0,0.7));
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.work:hover .work-info { opacity: 1; }
.work-info .client { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.work-info .title { font-size: 14px; }
.work-flag { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--paper); border-radius: 2px; padding: 3px 7px; font-size: 11px; font-weight: 700; }
.work.is-hidden { display: none; }

/* =========================================================
   MOTION REEL
   ========================================================= */
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.reel-item { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 3px; cursor: pointer; background: var(--paper-2); border: 1px solid var(--line-soft); }
.reel-item video, .reel-item img { width: 100%; height: 100%; object-fit: cover; }
.reel-item .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.reel-item .play span { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease-out), background 0.3s; }
.reel-item:hover .play span { transform: scale(1.12); background: var(--accent); color: #fff; }
.reel-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--paper); padding: 4px 8px; border-radius: 2px; }

/* ===== HERO ROLE LINE ===== */
.hero-role { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 22px; }
.hero-role::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); }

/* ===== REFERENCES ===== */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ref { margin: 0; padding: 36px 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); position: relative; overflow: hidden; }
.ref::before { content: '\201C'; font-family: var(--f-serif); font-size: 90px; line-height: 1; color: var(--accent); opacity: 0.35; position: absolute; top: 12px; left: 20px; }
.ref-quote { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.5; margin: 14px 0 26px; position: relative; }
.ref-author { display: flex; flex-direction: column; gap: 3px; }
.ref-author strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.ref-author span { font-size: 13px; color: var(--ink-mute); }
@media (max-width: 820px) { .refs { grid-template-columns: 1fr; } }

/* =========================================================
   CLIENT CARDS (prace.html overview)
   ========================================================= */
.clients { border-top: 1px solid var(--ink); }
.client-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.client-row .meta { display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.client-row .tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.client-row .name { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 6vw, 80px); text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.95; transition: transform 0.5s var(--ease); }
.client-row .desc { font-size: 15px; color: var(--ink-soft); max-width: 520px; }
.client-row:hover .name { transform: translateX(16px); color: var(--accent); }
.client-row .go { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; z-index: 2; }
.client-row .go svg { transition: transform 0.4s var(--ease-out); }
.client-row:hover .go svg { transform: translateX(6px); }
.client-row .peek {
  position: absolute; right: 200px; top: 50%; transform: translateY(-50%) rotate(-4deg) scale(0.9);
  width: 200px; aspect-ratio: 4/5; border-radius: 3px; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  box-shadow: 0 24px 50px -24px rgba(22,20,15,0.5); z-index: 1;
}
.client-row .peek img { width: 100%; height: 100%; object-fit: cover; }
.client-row:hover .peek { opacity: 1; transform: translateY(-50%) rotate(-4deg) scale(1); }
.client-row .badge { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* =========================================================
   PROJECT DETAIL
   ========================================================= */
.detail-head { padding-top: calc(var(--nav-h) + 50px); }
.breadcrumb { font-size: 13px; color: var(--ink-mute); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent-ink); }
.detail-tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 18px; }
.detail-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(48px, 11vw, 170px); line-height: 0.86; letter-spacing: -0.035em; text-transform: uppercase; }
.detail-sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 2.4vw, 30px); color: var(--ink-soft); margin-top: 16px; }
.proj-instagram { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.proj-instagram:hover { border-color: var(--accent); color: var(--accent); }
/* ===== Skeleton loaders ===== */
@keyframes sk-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk { background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: sk-shimmer 1.6s ease-in-out infinite; border-radius: 4px; display: block; }
.sk-line { height: .85em; margin-bottom: 8px; width: 100%; }
.sk-w75 { width: 75%; } .sk-w55 { width: 55%; } .sk-w40 { width: 40%; }
.sk-h-piece { flex: 0 0 auto; border-radius: 3px; width: clamp(220px, 26vw, 380px); height: clamp(360px, 64vh, 600px); }
.sk-reel { aspect-ratio: 9/16; border-radius: 3px; }
.sk-work { break-inside: avoid; margin-bottom: 22px; border-radius: 3px; width: 100%; }
.sk-client-row { display: flex; flex-direction: column; gap: 14px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.sk-detail-title { display: block; height: 0.86em; width: 65%; border-radius: 4px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 50px; }
.info-item { padding: 22px 0; border-right: 1px solid var(--line); padding-right: 16px; }
.info-item:last-child { border-right: none; }
.info-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.info-value { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 16px; }

.proj-review { margin: 0 auto; max-width: 820px; padding: 56px 56px 44px; background: var(--paper-alt, #edeae1); border-radius: 20px; position: relative; overflow: hidden; }
.proj-review::before { content: '\201C'; position: absolute; top: 4px; left: 36px; font-size: 140px; line-height: 1; font-family: Georgia, 'Times New Roman', serif; color: var(--accent); opacity: 0.9; pointer-events: none; }
.proj-review-text { display: block; font-size: clamp(17px, 2.4vw, 23px); line-height: 1.65; font-style: italic; margin: 24px 0 32px; color: var(--ink); }
.proj-review-cite { display: flex; flex-direction: column; gap: 3px; font-style: normal; }
.proj-review-author { font-size: 15px; font-weight: 700; color: var(--ink); }
.proj-review-role { font-size: 13px; color: var(--ink-mute); }
@media (max-width: 600px) { .proj-review { padding: 48px 28px 32px; } .proj-review::before { font-size: 100px; left: 20px; } }

.next-project { border-top: 1px solid var(--ink); }
.next-project a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 50px 0; }
.next-project .lbl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.next-project .t { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 6vw, 80px); text-transform: uppercase; letter-spacing: -0.025em; display: flex; align-items: center; gap: 16px; transition: transform 0.5s var(--ease); }
.next-project a:hover .t { transform: translateX(16px); color: var(--accent); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(52px, 13vw, 220px); line-height: 0.84; letter-spacing: -0.04em; text-transform: uppercase; }
.contact-big .it { font-family: var(--f-serif); font-stretch: normal; font-weight: 300; font-style: italic; text-transform: none; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; margin-top: 60px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 26px; }
.field { position: relative; }
.field label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--line);
  padding: 10px 0; font-size: 17px; font-family: var(--f-body); color: var(--ink);
  transition: border-color 0.3s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
.select { cursor: pointer; }
.select option { background: var(--paper); color: var(--ink); }
.textarea { resize: vertical; min-height: 90px; }

/* ===== Custom select dropdown ===== */
.select.cs-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.cselect { position: relative; }
.cselect-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: transparent; border: none; border-bottom: 1.5px solid var(--line);
  padding: 10px 0; font-size: 17px; font-family: var(--f-body); color: var(--ink);
  cursor: pointer; text-align: left; transition: border-color 0.3s;
}
.cselect.open .cselect-trigger, .cselect-trigger:focus-visible { border-color: var(--accent); outline: none; }
.cselect.is-placeholder .cselect-value { color: var(--ink-mute); }
.cselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-arrow { width: 20px; height: 20px; flex: none; color: var(--ink-mute); transition: transform 0.3s ease, color 0.3s ease; }
.cselect.open .cselect-arrow { transform: rotate(180deg); color: var(--accent); }
.cselect-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(22, 20, 15, 0.18);
  max-height: 280px; overflow: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cselect.open .cselect-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cselect-opt {
  padding: 11px 12px; border-radius: 8px; font-size: 15px; color: var(--ink); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cselect-opt:hover, .cselect-opt.active { background: rgba(22, 20, 15, 0.08); }
.cselect-opt.sel.active { background: var(--accent); }
.cselect-opt.is-ph { color: var(--ink-mute); }
.cselect-opt.sel { background: var(--accent); color: #fff; font-weight: 600; }
.cselect-opt.sel:hover { background: var(--accent); }
.cselect-opt.is-ph.sel { background: transparent; color: var(--ink-mute); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-message { font-size: 14px; padding: 12px 0; display: none; }
.form-message.success { color: #1a7a3a; display: block; }
.form-message.error { color: #b00020; display: block; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-side .cards-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease); }
.contact-card:hover { padding-left: 10px; }
.contact-card .k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.contact-card .v { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 18px; }
.contact-card svg { color: var(--ink-mute); transition: transform 0.4s var(--ease-out), color 0.3s; }
.contact-card:hover svg { transform: translate(4px, -4px); color: var(--accent); }
.location { margin-top: 8px; }
.location-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 4px 0; }
.location-row strong { color: var(--ink); font-weight: 600; }
.loc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta { background: var(--paper); color: var(--ink); padding: clamp(70px,12vh,150px) 0; position: relative; z-index: 2; border-top: 1px solid var(--line); }
.cta-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 8vw, 130px); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.cta-title .it { font-family: var(--f-serif); font-stretch: normal; font-weight: 300; font-style: italic; text-transform: none; color: var(--accent); }
.cta p { color: var(--ink-soft); max-width: 440px; margin: 24px 0 34px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--paper); color: var(--ink); padding: 60px 0 36px; border-top: 1px solid var(--ink); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-mark { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(48px, 12vw, 170px); line-height: 0.85; text-transform: uppercase; letter-spacing: -0.03em; }
.footer-mark .dot { color: var(--accent); }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .h { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 15px; color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-mute); flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-mute); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(18,17,13,0.94); display: none; align-items: center; justify-content: center; padding: 40px; opacity: 0; transition: opacity 0.3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox-body { display: flex; flex-direction: column; align-items: center; }
.lightbox-content img, .lightbox-content video { max-width: 88vw; max-height: 78vh; border-radius: 3px; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7); }
.lightbox-caption { color: var(--paper); margin-top: 18px; text-align: center; max-width: 88vw; }
.lightbox-caption .client { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.lightbox-caption .lb-title { display: block; font-size: 17px; line-height: 1.3; color: var(--paper); }
.lightbox-caption .lb-count { display: block; margin-top: 8px; font-size: 12px; color: rgba(243,239,230,0.5); font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; z-index: 510; width: 50px; height: 50px; border-radius: 50%; background: rgba(243,239,230,0.1); border: 1px solid rgba(243,239,230,0.3); color: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* =========================================================
   REVEAL (GSAP target; CSS fallback handled by .no-anim)
   ========================================================= */
.r-up, .r-mask span, .r-fade { will-change: transform, opacity; }
html.no-anim .r-up, html.no-anim .r-fade { opacity: 1 !important; transform: none !important; }
html.no-anim .hero-title .line > span, html.no-anim .loader-word span { transform: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  :root { --pad: 28px; }
  .masonry { column-count: 2; }
  .about-grid { gap: 40px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 14px;
    background: var(--paper); padding: var(--pad); font-size: 26px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-menu a { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; }
  .nav-menu a .ix { font-size: 12px; }
  .nav-toggle { display: block; }
  .nav-right { gap: 18px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-photo { display: none; }
  .hero-canvas { display: none; }
  .hero-inner { max-width: 100%; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec-meta { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { border-right: none; padding-right: 0; padding-bottom: 20px; }
  .figure:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .svc { grid-template-columns: 40px 1fr; }
  .svc-desc { display: none; }
  .svc:hover { padding-left: 14px; padding-right: 14px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-item:nth-child(2n) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 22px; }
  .client-row .peek { display: none; }
  .client-row { grid-template-columns: 1fr; gap: 18px; }
  .footer-top { flex-direction: column; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; } .lb-close { top: 14px; right: 14px; }
}
@media (max-width: 600px) {
  :root { --pad: 22px; }
  .hero-title { font-size: clamp(30px, 8.4vw, 46px); letter-spacing: -0.02em; }
  .hero-role { font-size: 11px; letter-spacing: 0; gap: 8px; flex-wrap: wrap; }
  .hero-role::before { width: 18px; }
  .h-intro { width: 78vw; padding-right: 24px; }
  .h-intro .sec-title { font-size: clamp(34px, 12vw, 56px); }
}
@media (max-width: 520px) {
  .masonry { column-count: 1; }
  .figures { grid-template-columns: 1fr; }
  .figure { border-right: none; }
  .figure:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
