/* karajkovski.com */
:root {
  --bg: #0a0908;
  --bg-2: #110f0d;
  --ink: #f1ece1;
  --dim: rgba(241, 236, 225, 0.56);
  --faint: rgba(241, 236, 225, 0.3);
  --line: rgba(241, 236, 225, 0.14);
  --accent: #ff4a1c;
  --paper: #ebe6d9;
  --paper-ink: #5d574b;
  --strip: #0e0c0a;
  --hole: #f4ead4;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 64px);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 20px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; }
.display { font-family: var(--display); font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.005em; }
.accent { color: var(--accent); }

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.82), rgba(10, 9, 8, 0));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.logo { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.logo i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav a { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); padding: 10px 0; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .nav .lg { display: none; } .nav a { letter-spacing: 0.18em; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
@media (max-width: 600px) { .btn { padding: 0 13px; letter-spacing: 0.18em; font-size: 10px; } .sec-tag::after { width: 18px; } }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.hot { border-color: var(--accent); color: var(--accent); }
.btn.hot:hover { background: var(--accent); color: #fff; }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: clamp(24px, 4vw, 48px); }
.sec-tag { display: flex; align-items: center; gap: 14px; color: var(--dim); }
.sec-tag b { color: var(--accent); font-weight: 500; }
.sec-tag::after { content: ""; order: 1; width: 36px; height: 1px; background: var(--faint); }
.sec-tag span { order: 2; }

/* ---------- HOME: lens hero ----------
   The lens opens with transforms and opacity only (set from js/home.js), so the browser can animate it
   on the GPU without redrawing the photo: an oval window is scaled up while its contents are scaled
   back down by the same amount, which keeps the photo still. */
.hero { position: relative; height: 210vh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  --rx0: 21vw; --ry0: 37vh;
}
@supports (height: 1svh) { .hero-sticky { --ry0: 37svh; } }
@media (max-aspect-ratio: 1/1) {
  .hero-sticky { --rx0: 36vw; --ry0: 27vh; }
  @supports (height: 1svh) { .hero-sticky { --ry0: 27svh; } }
}
.lens {
  position: absolute; left: 50%; top: 50%; width: calc(2 * var(--rx0)); height: calc(2 * var(--ry0));
  margin: calc(-1 * var(--ry0)) 0 0 calc(-1 * var(--rx0));
  border-radius: 50%; overflow: hidden; background: #000; will-change: transform; contain: layout paint;
}
.lens-in {
  position: absolute; left: 50%; top: 50%; width: 100vw; height: 100vh; height: 100svh;
  margin: -50vh 0 0 -50vw; will-change: transform;
}
@supports (height: 1svh) { .lens-in { margin-top: -50svh; } }
.lens-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.lens-in img.on { opacity: 1; animation: drift 7s linear forwards; }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.lens-in::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%), linear-gradient(to top, rgba(10, 9, 8, 0.75), rgba(10, 9, 8, 0) 34%); }
.lens-ring {
  position: absolute; left: 50%; top: 50%; width: calc(2 * var(--rx0) + 22px); height: calc(2 * var(--ry0) + 22px);
  margin: calc(-1 * var(--ry0) - 11px) 0 0 calc(-1 * var(--rx0) - 11px);
  border-radius: 50%; pointer-events: none; border: 1px solid rgba(241, 236, 225, 0.28); will-change: transform, opacity;
}
.hero-word {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -0.44em; text-align: center; white-space: nowrap;
  font-size: 16.6vw; mix-blend-mode: difference; color: var(--ink); pointer-events: none; will-change: transform, opacity;
}
.hero-meta { position: absolute; top: calc(50% + 7.2vw + 14px); color: var(--ink); mix-blend-mode: difference; opacity: 0.8; white-space: nowrap; will-change: opacity; }
.hero-meta.l { left: 3.4vw; }
.hero-meta.r { right: 3.4vw; text-align: right; }
@media (max-width: 640px) {
  .hero-meta { font-size: 9px; letter-spacing: 0.2em; top: calc(50% + 7.2vw + 12px); left: 0 !important; right: 0 !important; text-align: center !important; }
  .hero-meta.r { top: calc(50% + 7.2vw + 32px); }
}
.hero-cap { position: absolute; right: var(--gutter); bottom: 28px; text-align: right; color: var(--dim); opacity: 0; will-change: opacity; }
.hero-cap b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: "↓"; font-size: 13px; letter-spacing: 0; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- HOME: three panels ---------- */
.panels { display: flex; height: 100vh; height: 100svh; min-height: 520px; gap: 6px; padding: calc(var(--bar) + 6px) 6px 6px; }
.panel { position: relative; flex: 1 1 0; overflow: hidden; background: #000; transition: flex-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); isolation: isolate; }
.panel:hover { flex-grow: 1.7; }
.panel img, .panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter 0.6s; filter: saturate(0.85) brightness(0.72); }
.panel:hover img, .panel:hover video { transform: scale(1.04); filter: none; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, 0.82), rgba(10, 9, 8, 0) 55%); z-index: 1; }
.panel-txt { position: absolute; z-index: 2; left: clamp(16px, 2.2vw, 34px); right: 16px; bottom: clamp(18px, 2.4vw, 34px); }
.panel-txt .display { font-size: clamp(44px, 6.4vw, 104px); }
.panel-txt .mono { display: flex; gap: 12px; margin-top: 14px; color: var(--dim); }
.panel-txt .mono b { color: var(--accent); font-weight: 500; }
@media (max-width: 760px) {
  .panels { flex-direction: column; }
  .panel:hover { flex-grow: 1; }
  .panel img, .panel video { filter: saturate(0.9) brightness(0.8); }
  .panel-txt .display { font-size: clamp(40px, 13vw, 72px); }
  .panel-txt .display br { display: none; }
}

/* ---------- HOME: about on a film strip ---------- */
.about { padding: clamp(60px, 10vw, 140px) 0 0; }
.chapter { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1fr; gap: clamp(28px, 6vw, 110px); padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; }
.strip {
  position: relative; background: var(--strip); padding: 0 46px; justify-self: end; width: min(100%, 470px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}
.strip::before, .strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='46' height='44'><rect x='11' y='7' width='24' height='30' rx='7' fill='%23f4ead4' fill-opacity='0.16'/><rect x='13' y='9' width='20' height='26' rx='5' fill='%23f4ead4'/></svg>") repeat-y center top;
}
.strip::before { left: 0; } .strip::after { right: 0; }
.cell { position: relative; padding: 13px 0; }
.cell img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: #1a1714; }
.cell .edge {
  position: absolute; z-index: 2; top: 50%; writing-mode: vertical-rl; rotate: 180deg; translate: 0 -50%;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.3em; color: #c9a45b; background: var(--strip); padding: 14px 3px; white-space: nowrap;
}
.cell .edge.l { left: -30px; } .cell .edge.r { right: -30px; rotate: 0deg; color: var(--accent); }
.chapter-copy { position: sticky; top: calc(50vh - 190px); align-self: start; padding: 60px 0; max-width: 560px; }
.chapter-copy p.mono { color: var(--accent); margin-bottom: 18px; font-size: 11px; max-width: none; }
.chapter-copy h2 { font-size: clamp(54px, 7.2vw, 112px); margin-bottom: 22px; }
.chapter-copy p { color: rgba(241, 236, 225, 0.86); font-size: clamp(19px, 1.6vw, 23px); margin-bottom: 26px; max-width: 31ch; }
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .chapter-copy { position: static; order: -1; padding: 44px var(--gutter) 30px; max-width: none; }
  .strip { justify-self: center; width: min(86vw, 400px); }
}

/* ---------- HOME: polaroid gallery ---------- */
.gallery { padding: clamp(80px, 12vw, 170px) 0 clamp(40px, 6vw, 90px); }
.pile { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 34px) clamp(10px, 1.5vw, 24px); padding: 10px var(--gutter) 40px; max-width: 1560px; margin: 0 auto; }
.pol { flex: 0 0 calc((100% - 6 * clamp(10px, 1.5vw, 24px)) / 7); }
.pol {
  position: relative; background: var(--paper); padding: 7% 7% 0; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  rotate: var(--r, 0deg); translate: var(--x, 0px) var(--y, 0px); transition: rotate 0.35s, scale 0.35s, box-shadow 0.35s; touch-action: none; user-select: none; -webkit-user-select: none;
}
.pol img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; background: #cfc9bb; }
.pol span { display: block; text-align: center; padding: 11% 0 12%; font-family: var(--mono); font-size: clamp(7px, 0.56vw, 9px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pol:hover, .pol.drag { rotate: 0deg; scale: 1.06; z-index: 5; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7); }
.pol.drag { transition: none; }
@media (max-width: 1000px) { .pol { flex-basis: calc((100% - 3 * clamp(10px, 1.5vw, 24px)) / 4); } .pol span { font-size: 8px; } }
@media (max-width: 600px) { .pile { gap: 22px 16px; padding-inline: 26px; } .pol { flex-basis: calc((100% - 16px) / 2); touch-action: pan-y; } .pol span { font-size: 8.5px; } }

/* ---------- HOME: film ---------- */
.film { padding: clamp(40px, 6vw, 90px) 0; }
.stage { position: relative; margin: 0 var(--gutter); height: min(86vh, 900px); min-height: 520px; overflow: hidden; background: #000; border: 1px solid var(--line); isolation: isolate; }
.stage-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(44px) brightness(0.42) saturate(1.2); z-index: -1; transition: opacity 0.5s; }
.stage video { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 84%; max-width: 62%; object-fit: contain; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); cursor: pointer; }
.stage-tag { position: absolute; left: 24px; top: 22px; display: flex; gap: 14px; align-items: center; color: var(--dim); }
.stage-tag b { color: var(--accent); font-weight: 500; }
.stage-tag i { font-style: normal; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.stage-tag i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.stage .btn.all { position: absolute; right: 24px; top: 14px; }
.stage-title { position: absolute; left: 24px; bottom: 70px; max-width: 30%; }
.stage-title h3 { font-size: clamp(38px, 5vw, 78px); }
.stage-title .mono { color: var(--dim); margin-top: 12px; }
.stage .mute { position: absolute; left: 24px; bottom: 20px; }
.reel { position: absolute; right: 24px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; max-width: 30%; list-style: none; margin: 0; padding: 0; }
.reel button { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: clamp(16px, 1.7vw, 25px); text-transform: uppercase; letter-spacing: 0.02em; color: var(--faint); text-align: right; line-height: 1.2; padding: 3px 0; transition: color 0.2s, letter-spacing 0.3s; }
.reel button small { display: block; font-family: var(--mono); font-weight: 400; font-size: 8.5px; letter-spacing: 0.22em; color: var(--faint); transition: color 0.2s; margin-top: 1px; }
.reel button:hover, .reel button[aria-current="true"] { color: var(--ink); }
.reel button[aria-current="true"] small { color: var(--accent); }
@media (max-width: 760px) {
  .stage { height: auto; min-height: 0; padding: 64px 16px 20px; display: flex; flex-direction: column; }
  .stage video { position: static; translate: none; height: 52svh; max-width: 100%; margin: 0 auto; }
  .stage-title { position: static; max-width: none; margin-top: 22px; }
  .stage .mute { position: static; align-self: flex-start; margin-top: 16px; }
  .reel { position: static; translate: none; max-width: none; align-items: flex-start; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
  .reel button { text-align: left; font-size: 19px; }
  .stage-tag { left: 16px; } .stage-tag i { display: none; } .stage .btn.all { right: 16px; }
}

/* ---------- HOME: index ---------- */
.index { padding: clamp(60px, 9vw, 130px) 0; }
.index-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 80px); padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; align-items: start; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: clamp(10px, 1.3vw, 18px) 0; border-bottom: 1px solid var(--line); }
.index-list .no { color: var(--accent); }
.index-list .nm { display: grid; font-size: clamp(26px, 4vw, 58px); text-transform: uppercase; line-height: 1; }
.index-list .nm b, .index-list .nm i { grid-area: 1 / 1; transition: opacity 0.18s; }
.index-list .nm b { font-family: var(--display); font-weight: 800; font-stretch: 100%; color: rgba(241, 236, 225, 0.42); }
.index-list .nm i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); opacity: 0; }
.index-list .ct { color: var(--dim); white-space: nowrap; }
.index-list a:hover .nm b, .index-list a:focus-visible .nm b { opacity: 0; }
.index-list a:hover .nm i, .index-list a:focus-visible .nm i { opacity: 1; }
.index-list a:hover .ct { color: var(--accent); }
.index-peek { position: sticky; top: 110px; background: var(--paper); padding: 12px 12px 0; rotate: 1.5deg; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); max-width: 380px; justify-self: center; }
.index-peek img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #cfc9bb; }
.index-peek span { display: block; text-align: center; padding: 14px 0 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-ink); }
@media (max-width: 860px) { .index-grid { grid-template-columns: 1fr; } .index-peek { display: none; } }

/* ---------- HOME: contact slate ---------- */
.contact { padding: clamp(60px, 9vw, 130px) 0 clamp(70px, 9vw, 120px); }
.slate { max-width: 780px; margin: 0 auto; background: #131110; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); }
.slate-wrap { padding: 0 var(--gutter); }
.clap { position: relative; height: 84px; display: grid; place-items: center; background: repeating-linear-gradient(-55deg, #efe8d8 0 26px, #0c0b0a 26px 52px); }
.clap h2 { background: #0c0b0a; padding: 12px 22px; font-size: clamp(22px, 3vw, 30px); font-stretch: 84%; letter-spacing: 0.06em; }
.clap h2::before { content: "■ "; color: var(--accent); font-size: 0.5em; vertical-align: middle; }
.slate-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.slate-row div { padding: 14px 18px; border-left: 1px solid var(--line); }
.slate-row div:first-child { border-left: 3px solid var(--accent); }
.slate-row small, .field label { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.slate-row b { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; font-weight: 500; text-transform: uppercase; }
.slate form { padding: 26px 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--faint); color: var(--ink); font-family: var(--serif); font-size: 19px; padding: 6px 0 8px; border-radius: 0; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.slate-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.slate-foot .note { color: var(--dim); font-size: 16px; flex: 1 1 100%; min-height: 1.3em; }
.direct { max-width: 780px; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; color: var(--dim); }
.direct a { color: var(--ink); border-bottom: 1px solid var(--faint); padding-bottom: 2px; }
.direct a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) { .slate form { grid-template-columns: 1fr; } .slate-row { grid-template-columns: 1fr 1fr 1fr; } .slate-row div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); } .slate-row div:nth-child(2) { border-left: 0; } }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--strip); padding: 40px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; color: var(--dim); }
.foot::before, .foot::after { content: ""; position: absolute; left: 0; right: 0; height: 24px; opacity: 0.5; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='24'><rect x='9' y='6' width='16' height='12' rx='3' fill='%23f4ead4'/></svg>") repeat-x left center; }
.foot::before { top: 0; } .foot::after { bottom: 0; }
.foot a:hover { color: var(--ink); }
.foot .logo { color: var(--ink); }

/* ---------- home: side dots + frame counter ---------- */
.dots { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 50; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.dots a { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: transparent; height: 10px; }
.dots a::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); transition: width 0.25s, background 0.25s, border-radius 0.25s; }
.dots a.on { color: var(--dim); } .dots a.on::after { width: 22px; height: 1px; border-radius: 0; background: var(--accent); }
.dots a:hover { color: var(--ink); }
.counter { position: fixed; left: 16px; bottom: 26px; z-index: 50; color: var(--faint); font-size: 9px; pointer-events: none; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; }
.counter b { color: var(--dim); font-weight: 400; }
@media (max-width: 900px) { .dots, .counter { display: none; } }

/* ---------- PHOTOGRAPHY ---------- */
.page-head { padding: calc(var(--bar) + clamp(28px, 6vw, 80px)) var(--gutter) 0; }
.page-head h1 { font-size: clamp(54px, 11vw, 170px); }
.page-head .mono { color: var(--dim); margin-top: 16px; }
.tabs { position: sticky; top: 0; z-index: 40; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: calc(var(--bar) - 8px) var(--gutter) 14px; margin-top: clamp(18px, 3vw, 34px); background: linear-gradient(to bottom, var(--bg) 78%, rgba(10, 9, 8, 0)); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; line-height: 1; padding: 0 15px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(241, 236, 225, 0.72); white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.tab sup { position: static; vertical-align: baseline; line-height: 1; font-size: 8.5px; letter-spacing: 0.1em; color: var(--faint); }
.tab { border-color: rgba(241, 236, 225, 0.22); }
.tab:hover { color: var(--ink); border-color: var(--dim); }
.tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab[aria-pressed="true"] sup { color: rgba(255, 255, 255, 0.8); }
.wall { columns: 3; column-gap: clamp(8px, 1.2vw, 18px); padding: 14px var(--gutter) 100px; max-width: 1700px; margin: 0 auto; }
@media (max-width: 1000px) { .wall { columns: 2; } }
@media (max-width: 420px) { .wall { column-gap: 8px; padding-inline: 10px; } }
.print { display: block; width: 100%; break-inside: avoid; margin: 0 0 clamp(8px, 1.2vw, 18px); background: var(--paper); padding: clamp(5px, 0.7vw, 11px) clamp(5px, 0.7vw, 11px) 0; rotate: var(--r, 0deg); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); transition: rotate 0.3s, scale 0.3s, box-shadow 0.3s; position: relative; }
.print:hover, .print:focus-visible { rotate: 0deg; scale: 1.015; z-index: 2; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7); }
.print img { width: 100%; height: auto; background: #cfc9bb; }
.print span { display: block; text-align: center; padding: clamp(7px, 0.9vw, 12px) 0; font-family: var(--mono); font-size: clamp(7px, 0.7vw, 9px); letter-spacing: 0.42em; color: #8d8676; }

/* ---------- photo viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(6, 5, 5, 0.96); display: none; grid-template-rows: auto 1fr auto; }
.viewer.open { display: grid; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: var(--dim); }
.viewer-top button { width: 44px; height: 44px; font-size: 24px; line-height: 1; color: var(--ink); }
.viewer-main { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(8px, 5vw, 70px); }
.viewer-frame { background: var(--paper); padding: clamp(6px, 0.8vw, 12px) clamp(6px, 0.8vw, 12px) 0; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8); max-width: 100%; max-height: 100%; display: flex; flex-direction: column; min-height: 0; }
.viewer-frame img { display: block; max-width: 100%; max-height: calc(100vh - 250px); max-height: calc(100svh - 250px); width: auto; height: auto; object-fit: contain; background: #cfc9bb; }
.viewer-frame span { display: block; text-align: center; padding: 10px 0 11px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: #7d7667; }
.viewer-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 80px; font-size: 26px; color: var(--dim); z-index: 2; }
.viewer-arrow:hover { color: var(--ink); }
.viewer-arrow.prev { left: 4px; } .viewer-arrow.next { right: 4px; }
.viewer-strip { display: flex; gap: 5px; overflow-x: auto; padding: 14px 18px 18px; scrollbar-width: none; }
.viewer-strip::-webkit-scrollbar { display: none; }
.viewer-strip button { flex: none; width: 46px; height: 58px; opacity: 0.45; border: 1px solid transparent; transition: opacity 0.2s; }
.viewer-strip button img { width: 100%; height: 100%; object-fit: cover; }
.viewer-strip button:hover { opacity: 0.85; }
.viewer-strip button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
@media (max-width: 600px) { .viewer-arrow { display: none; } .viewer-frame img { max-height: calc(100svh - 220px); } .viewer-strip button { width: 40px; height: 50px; } }

/* ---------- VIDEOGRAPHY ---------- */
.vid-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--bar); }
.pills { display: flex; justify-content: center; margin: 10px 0 0; }
.pills div { display: flex; background: var(--paper); padding: 3px; }
.pill { padding: 8px 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: #2a2620; text-transform: lowercase; }
.pill sup { font-size: 7.5px; margin-left: 3px; color: #8d8676; }
.pill[aria-pressed="true"] { background: var(--accent); color: #fff; } .pill[aria-pressed="true"] sup { color: rgba(255, 255, 255, 0.85); }
.mosaic { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px; padding: 26px var(--gutter) 150px; }
.tile { position: relative; height: clamp(230px, 40vh, 420px); aspect-ratio: var(--ar); overflow: hidden; background: #111; transition: opacity 0.3s, filter 0.3s, scale 0.3s; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video { opacity: 0; transition: opacity 0.3s; } .tile.live video { opacity: 1; }
.mosaic:hover .tile:not(:hover) { filter: brightness(0.45) saturate(0.7); }
.tile:hover { scale: 1.02; z-index: 2; }
.tile-cap { display: none; }
.vid-title { position: fixed; left: var(--gutter); bottom: 26px; z-index: 30; pointer-events: none; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }
.vid-title h1 { font-size: clamp(34px, 4.4vw, 64px); font-stretch: 84%; }
.vid-title .mono { color: var(--dim); margin-top: 10px; }
.shuffle { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 30; background: var(--paper); color: #2a2620; padding: 10px 10px 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; display: grid; justify-items: center; gap: 4px; }
.shuffle svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 12px 30px; }
  .tile { height: auto; width: 100%; }
  .tile.wide { grid-column: 1 / -1; }
  .mosaic:hover .tile:not(:hover) { filter: none; }
  .tile-cap { display: block; position: absolute; left: 8px; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 1px 8px #000; z-index: 2; }
  .tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); }
  .vid-title { position: static; padding: 18px var(--gutter) 0; order: -1; }
  .pills { order: -1; margin-top: 16px; }
  .shuffle { display: none; }
}

/* ---------- video player ---------- */
.player { position: fixed; inset: 0; z-index: 85; background: rgba(6, 5, 5, 0.97); display: none; grid-template-rows: auto 1fr; }
.player.open { display: grid; }
.player-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 16px; }
.player-top .mono b { color: var(--ink); font-weight: 500; } .player-top .mono { color: var(--dim); }
.player-top button { width: 44px; height: 44px; font-size: 24px; line-height: 1; flex: none; }
.player-main { min-height: 0; display: grid; place-items: center; padding: 0 12px 22px; }
.player video { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8); }

/* ---------- camera pointer (mouse only) ----------
   Real cursor images, drawn by the system itself: no script, so it cannot lag behind or point at the wrong thing. */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("../media/ui/cam.png") 16 17, auto;
    cursor: -webkit-image-set(url("../media/ui/cam.png") 1x, url("../media/ui/cam-2x.png") 2x) 16 17, auto;
    cursor: image-set(url("../media/ui/cam.png") 1x, url("../media/ui/cam-2x.png") 2x) 16 17, auto;
  }
  a, button, [role="button"], .stage video {
    cursor: url("../media/ui/cam-hot.png") 16 17, pointer;
    cursor: -webkit-image-set(url("../media/ui/cam-hot.png") 1x, url("../media/ui/cam-hot-2x.png") 2x) 16 17, pointer;
    cursor: image-set(url("../media/ui/cam-hot.png") 1x, url("../media/ui/cam-hot-2x.png") 2x) 16 17, pointer;
  }
  input, textarea { cursor: text; }
  video[controls] { cursor: auto; }
}
img, a { -webkit-user-drag: none; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; translate: 0 26px; transition: opacity 0.9s ease, translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rv.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }
