/* ============================================================
   SZYMON ŹRÓDŁOWSKI — DoP Portfolio
   Dark / cinematic / monochrome
   ============================================================ */

/* ---- Lenis smooth scroll required styles ---- */
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; }

/* ---- Tokens ---- */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f10;
  --fg: #ededea;
  --accent: #c6f24e;
  --muted: rgba(237, 237, 234, 0.56);
  --faint: rgba(237, 237, 234, 0.34);
  --line: rgba(237, 237, 234, 0.13);
  --line-strong: rgba(237, 237, 234, 0.26);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 6vw, 120px);
  --maxw: 1680px;

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

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
  cursor: none;
}

/* On touch / no fine-pointer, restore the normal cursor */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--fg); color: var(--bg); }

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

/* ============================================================
   FILM GRAIN + VIGNETTE OVERLAYS
   ============================================================ */
.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grain 0.5s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -2%); }
}
.vignette {
  background: radial-gradient(120% 120% at 50% 42%, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 190;
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}
.cursor-ring {
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
              border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.cursor-ring .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
body.cursor-hover .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
body.cursor-media .cursor-ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  background: #fff; border-color: #fff;
}
body.cursor-media .cursor-ring .label { opacity: 1; transform: scale(1); }
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--pad-x);
  padding-bottom: clamp(24px, 5vh, 56px);
}
.loader__name {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
}
.loader__count {
  font-family: var(--font-mono);
  font-size: clamp(48px, 14vw, 220px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.02em;
}
.loader__bar {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  bottom: clamp(20px, 4.4vh, 48px);
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.loader__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--fg);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.loader.is-done {
  transform: translateY(-101%);
  transition: transform 1.1s var(--ease);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { position: relative; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(60px, 12vh, 160px);
  padding-bottom: clamp(32px, 5vh, 64px);
  border-top: 1px solid var(--line);
}
.section__index {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}
.section__title {
  font-size: clamp(28px, 4.4vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.4vh, 30px) var(--pad-x);
  mix-blend-mode: difference;
}
.header { opacity: calc(1 - var(--p, 0) * 2.4); }
/* ---- Tone-match picker + filters ---- */
.tone-pick {
  position: absolute;
  top: clamp(74px, 12vh, 120px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: calc(1 - var(--p, 0) * 2.6);
  mix-blend-mode: difference;
}
/* auto-hide: fades out after a beat, reappears on hover of the top area */
.tone-pick.is-hidden { opacity: 0; }
.tone-pick { transition: opacity 0.5s var(--ease); }
.tone-pick__t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.tone-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.32);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tone-btn:hover { border-color: #fff; }
.tone-btn.is-active { background: #fff; color: #000; border-color: #fff; }
/* Mode A: main photo adopts the sky's warm sepia tone (container filter
   composites with the img's grayscale; survives the sliders' inline filter) */
.tone-main .hero__media { filter: sepia(0.5) saturate(0.92) brightness(1.02); }
/* Mode B: revealed sky goes neutral B&W to match the main photo */
.tone-reveal .reveal__img {
  filter: grayscale(1) contrast(1.04) brightness(0.96);
}
.header__brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.header__nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
}
.header__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding: 4px 0;
}
.header__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.header__status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff2d2d;
  mix-blend-mode: normal;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.22; } }
@media (max-width: 860px) {
  .header__nav { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
/* the home page is pinned; scrolling scrubs film → menu dwell → showreel film */
.home-pin { position: relative; height: 560svh; }
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
  contain: paint;
}
/* revealed beneath: hidden now (covered by the sticky hero) — avoids a second loop.mp4 layer */
.reveal { display: none; }
.reveal--legacy { position: absolute; inset: 0; overflow: hidden; background: #8a8a8a; }
.reveal__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.reveal__marquee {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
}
.reveal__track {
  display: inline-flex;
  align-items: center;
  animation: reel-marquee 30s linear infinite;
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(46px, 11vw, 168px);
  line-height: 1;
  color: #fff;
  mix-blend-mode: difference;
  will-change: transform;
}
.reveal__track span { padding: 0 38px; }
.reveal__track .sep { font-style: normal; opacity: 0.7; padding: 0 6px; }
@keyframes reel-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reveal__track { animation: none; } }

.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: var(--pad-x);
  padding-bottom: clamp(26px, 5vh, 54px);
  overflow: hidden;
  transform-origin: 0 0;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.32);
  will-change: transform;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media .parallax {
  position: absolute;
  inset: -12% 0;
  height: 124%;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0) contrast(1.06) brightness(0.86);
  transition: filter 0.32s ease;
}
.hero__reveal {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Cut-out of the subject, layered ABOVE the reveal so the effect stays behind
   the person. Same dimensions + object-fit as the base photo → aligns 1:1.
   Matches the base tone so the foreground person is seamless. */
.hero__fg { z-index: 1; }
.hero__fg img {
  filter: grayscale(0) contrast(1.06) brightness(0.86);
  transition: filter 0.32s ease;
}

/* ---- Plain white-out (working name: "wybielanie") — currently DISABLED ---- */
.hero__whiteout {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}
.hero__media::after { transition: opacity 0.4s var(--ease); }
/* Name + kicker stay white with a shadow legible on both dark & white card */
.hero__name, .hero__kicker .t {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45), 0 0 2px rgba(0,0,0,0.5);
}
/* Top meta + scroll hint auto-adapt (white on dark → black on white) */
.hero__meta, .hero__scroll { mix-blend-mode: difference; color: #fff; }
.hero__kicker .rule { mix-blend-mode: difference; background: #fff; }
/* Sliders fade out as the page shrinks/whitens */
.cam-panel { opacity: calc(1 - var(--p, 0) * 2.2); }
.hero.w-sealed .cam-panel { pointer-events: none; }

/* ---- Cursor tools (lens overlay + menu) ---- */
.cursor-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cursor-erase {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cursor-hblur {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.film-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.film-word {
  position: absolute;
  color: var(--c, #89cff0);
  opacity: 0;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-shadow: none;
  transition: opacity 0.28s ease, text-shadow 0.28s ease;
}
.film-word.lit {
  opacity: 1;
  text-shadow: 0 0 4px var(--g), 0 0 9px var(--g), 0 0 18px var(--g);
}
/* Fullscreen showreel (triggered by the sticker-peel transition) */
.reel-fs {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.reel-fs.is-in { opacity: 1; }
.peel-fly {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  object-fit: cover;
  transform-origin: 50% 100%;
  will-change: transform;
  filter: grayscale(0) contrast(1.06) brightness(0.9) drop-shadow(0 18px 26px rgba(0,0,0,0.45));
}
/* Hero → showreel transition picker */
@media (hover: none), (pointer: coarse) { .xfade-pick { display: none; } }
.reel-fs video { width: 100%; height: 100%; object-fit: contain; }
.reel-fs__close {
  position: fixed;
  top: clamp(18px, 3vh, 32px);
  right: var(--pad-x);
  z-index: 1000;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
}
.reel-fs__close:hover { border-color: #fff; }
/* ===== end-of-pin cinematic (IZU → drift scrub → about) ===== */
.cine-fs { position: fixed; inset: 0; z-index: 1001; background: #000; opacity: 0; transition: opacity 0.4s var(--ease); }
.cine-fs.is-in { opacity: 1; }
.cine-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-vid.is-hidden { opacity: 0; transition: opacity 0.45s var(--ease); }
.cine-vid--drift { opacity: 0; transition: opacity 0.5s var(--ease); }
.cine-vid--drift.is-on { opacity: 1; }
.cine-scroll {
  position: absolute; left: 50%; bottom: clamp(28px, 7vh, 66px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 11px; z-index: 3;
  opacity: 0; transition: opacity 0.55s var(--ease); pointer-events: none;
}
.cine--drift .cine-scroll { opacity: 1; }
.cine-scroll__mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.85); border-radius: 14px; position: relative; }
.cine-scroll__wheel {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%);
  animation: cineWheel 1.5s var(--ease) infinite;
}
@keyframes cineWheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  25%  { opacity: 1; }
  75%  { opacity: 1; transform: translate(-50%, 15px); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}
.cine-scroll__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
body.tool-active { cursor: none; }
.tool-menu {
  position: fixed;
  left: var(--pad-x);
  bottom: clamp(18px, 3.5vh, 34px);
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 4px;
  mix-blend-mode: difference;
}
.tool-menu__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.tool-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease);
}
.tool-btn__n {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s var(--ease);
}
.tool-btn:hover { color: #fff; }
.tool-btn.is-active { color: #fff; }
.tool-btn.is-active .tool-btn__n { color: #fff; }
.tool-btn.is-active::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  margin-right: -4px;
}
@media (hover: none), (pointer: coarse) { .tool-menu { display: none; } }

/* ---- Analog-camera sliders ---- */
.cam-defs { position: absolute; }
.cam-panel {
  position: absolute;
  right: var(--pad-x);
  bottom: calc(clamp(18px, 3.5vh, 36px) + 0.4cm);
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 13px;
  mix-blend-mode: difference;
}
.cam-row { display: flex; align-items: center; gap: 13px; }
.cam-ico { width: 18px; height: 18px; color: #fff; display: flex; flex: none; }
.cam-svg { width: 18px; height: 18px; }
.cam-slider {
  -webkit-appearance: none; appearance: none;
  width: 124px; height: 14px; background: transparent; cursor: pointer;
}
.cam-slider::-webkit-slider-runnable-track { height: 1px; background: rgba(255,255,255,0.42); }
.cam-slider::-moz-range-track { height: 1px; background: rgba(255,255,255,0.42); }
.cam-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; margin-top: -4px;
}
.cam-slider::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #fff; }
.cam-val {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: #fff; min-width: 50px;
}
@media (hover: none), (pointer: coarse) { .cam-panel { display: none; } }
/* Reveal-FX quality toggle */
.fx-toggle {
  position: fixed;
  left: var(--pad-x);
  bottom: clamp(16px, 3vh, 28px);
  z-index: 130;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.fx-toggle:hover { color: var(--fg); border-color: var(--fg); }
@media (hover: none), (pointer: coarse) { .fx-toggle { display: none; } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.12) 38%, rgba(10,10,11,0.55) 78%, rgba(10,10,11,0.9) 100%);
}
.hero__meta {
  position: absolute;
  top: clamp(80px, 14vh, 150px);
  left: var(--pad-x); right: var(--pad-x);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(16px, 2.4vh, 28px);
}
/* Centered hero composition */
.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Fixed titles overlay — stays put while the home card zooms out */
.home-titles {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: var(--pad-x);
  padding-bottom: clamp(70px, 11vh, 130px);
  pointer-events: none;
}
.hero.in ~ .home-titles .fade { opacity: 1; transform: none; }
/* scroll-scrubbed transition film, above the home, below fixed titles */
.scrub {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  will-change: opacity;
}
.scrub__video { width: 100%; height: 100%; object-fit: cover; }
/* Showreel intro overlay — chmury-pustynia.mp4 with a slow parallax drift */
.srintro {
  position: fixed;
  inset: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  background: transparent;
}
.srintro__video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}
.srintro__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Directional choice menu shown when the film ends */
/* End-of-film menu (over the last parallax frame) */
.endmenu {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,5,4,0.42) 0%, rgba(8,5,4,0.64) 100%);
}
.endmenu.is-on { pointer-events: auto; }
/* blur-hit when entering the menu: fades from blur to sharp */
@keyframes menuBlurHit { 0% { filter: blur(22px); } 100% { filter: blur(0px); } }
.endmenu.menu-blurhit { animation: none; }
/* parallax cloud depth layers between the video and the text */
.endmenu__depth { position: absolute; inset: -8%; z-index: 0; pointer-events: none; overflow: hidden; }
.cloudlayer { position: absolute; inset: -10%; will-change: transform; background-repeat: no-repeat; }
.cloudlayer--far {
  opacity: 0.32; filter: blur(7px);
  background-image:
    radial-gradient(38% 26% at 22% 32%, rgba(232,224,214,0.7), rgba(232,224,214,0) 70%),
    radial-gradient(30% 22% at 70% 24%, rgba(210,200,188,0.55), rgba(210,200,188,0) 72%),
    radial-gradient(42% 30% at 84% 62%, rgba(224,214,202,0.5), rgba(224,214,202,0) 70%);
}
.cloudlayer--mid {
  opacity: 0.42; filter: blur(4px);
  background-image:
    radial-gradient(34% 24% at 12% 66%, rgba(245,238,228,0.75), rgba(245,238,228,0) 70%),
    radial-gradient(40% 26% at 58% 74%, rgba(228,216,202,0.6), rgba(228,216,202,0) 72%),
    radial-gradient(26% 20% at 88% 20%, rgba(246,239,230,0.6), rgba(246,239,230,0) 72%);
}
.cloudlayer--near {
  opacity: 0.5; filter: blur(2px);
  background-image:
    radial-gradient(30% 22% at 32% 84%, rgba(252,247,239,0.85), rgba(252,247,239,0) 68%),
    radial-gradient(24% 18% at 78% 88%, rgba(238,226,212,0.7), rgba(238,226,212,0) 70%),
    radial-gradient(20% 16% at 6% 28%, rgba(252,247,239,0.7), rgba(252,247,239,0) 72%);
}
.endmenu__stage { will-change: transform; }
/* once the entrance finishes, JS drives the transform directly (no transition
   delay) so EVERY item reacts to the cursor, not just the first one */
.endmenu.par-on .endmenu__item { transition: color 0.35s var(--ease); }
/* looping clouds behind the menu */
.endmenu__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: none;
}
/* foreground cloud overlays on top of loop.mp4: fly in across the TOP of the page */
/* ============ MOODY SKY (menu) ============
   Dark, dramatic, near-monochrome cloudscape (ref: brooding storm clouds).
   The cloud video is graded to high-contrast B&W and darkened so the silver
   cloud highlights pop against deep shadow; a cool charcoal vignette adds the
   moody cast and keeps the white menu text legible. Ignites in parallel with
   the blur burst (.menu-blurhit). */
@keyframes skyMoody {
  0%   { filter: grayscale(0.3) contrast(1.04) brightness(1)    saturate(1); }
  100% { filter: grayscale(1)   contrast(1.72) brightness(0.42) saturate(1); }
}
.endmenu.menu-blurhit .endmenu__bg { animation: none; }

/* seamless cross-document navigation (Chrome 126+/Safari 18.2+): the browser
   cross-fades old page → new page, removing any arrival flash. Progressive enhancement. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.4s; }
::view-transition-new(root) { animation-duration: 0.4s; }

/* ---- SEALED: menu shows the full-colour sky (warszawa_1.png) over the grayscale bg ---- */
.endmenu__color {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
  display: none;
}

/* darkening REMOVED — menu shows the clean full-colour sky (warszawa_1.png).
   (was a heavy steel vignette; disabled per request) */
@keyframes washIn { from { opacity: 0; } to { opacity: 1; } }
.endmenu::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;                    /* no darkening overlay */
  background: none;
  opacity: 0;
}
.endmenu.menu-blurhit::after { animation: none; }
/* keep the menu text + hint above the sky layers */
.endmenu__stage { z-index: 2; }
.endmenu__hint  { position: relative; z-index: 2; }
/* leaving the menu for the showreel — mirror of the entry, run in reverse:
   the SAME blur burst, PLUS the cloud grade easing back to normal, PLUS the dark
   overlay fading out. menu-blurhit is removed when sr-exit is added, so there is
   no cascade clash and every animation fires cleanly. */
@keyframes srBlurBurst { 0% { filter: blur(22px); } 100% { filter: blur(0px); } }
@keyframes washOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes skyUngrade {
  0%   { filter: grayscale(1)   contrast(1.72) brightness(0.42); }   /* = the menu's moody grade */
  100% { filter: grayscale(0.3) contrast(1.04) brightness(1); }      /* = the clouds' normal look */
}
.endmenu.sr-exit { animation: srBlurBurst 1s ease-out; }
.endmenu.sr-exit .endmenu__bg { animation: skyUngrade 1s var(--ease) both; }
.endmenu.sr-exit::after { animation: washOut 1s var(--ease) both; }

/* stage spans the viewport so items can sit at the home-page text positions */
.endmenu__stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
}
.endmenu__item {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%,-50%) translateY(18px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s var(--ease) var(--d,0s), transform 0.7s var(--ease) var(--d,0s),
              color 0.35s var(--ease), letter-spacing 0.4s var(--ease);
}
.endmenu.is-on .endmenu__item { opacity: 1; transform: translate(-50%,-50%); }
.endmenu__item:nth-of-type(2){--d:0.10s;}
.endmenu__item:nth-of-type(3){--d:0.18s;}
.endmenu__item:nth-of-type(4){--d:0.26s;}
.endmenu__t {
  line-height: 0.94;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7), 0 0 3px rgba(0,0,0,0.55);
  /* cinematic "rack focus" entrance (driven by .endmenu.is-on) — title rises
     from below while pulling into focus (blur → sharp). Independent of the
     item-level transform, which JS owns for the cursor parallax. */
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(13px);
  transition:
    opacity 0.72s var(--ease) var(--dt, 0s),
    transform 0.92s cubic-bezier(0.18, 1.04, 0.3, 1) var(--dt, 0s),
    filter 0.82s var(--ease) var(--dt, 0s),
    letter-spacing 0.9s var(--ease) var(--dt, 0s);
}
.endmenu.is-on .endmenu__t { opacity: 1; transform: translateY(0); filter: blur(0); }
/* feature item (Showreel) gets a touch more lift + a beat-later focus snap */
.endmenu__item.is-feature .endmenu__t { transform: translateY(34px) scale(0.96); transform-origin: left bottom; }
.endmenu.is-on .endmenu__item.is-feature .endmenu__t { transform: translateY(0) scale(1); }
.endmenu__sub {
  font-family: var(--font-mono);
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  /* sub-label fades up just after its title settles */
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition:
    opacity 0.6s var(--ease) var(--ds, 0.2s),
    transform 0.66s var(--ease) var(--ds, 0.2s),
    filter 0.6s var(--ease) var(--ds, 0.2s);
}
.endmenu.is-on .endmenu__sub { opacity: 1; transform: translateY(0); filter: blur(0); }
/* respect reduced-motion: keep it a plain, instant fade */
@media (prefers-reduced-motion: reduce) {
  .endmenu__t, .endmenu__sub,
  .endmenu__item.is-feature .endmenu__t {
    transform: none !important;
    filter: none !important;
    transition: opacity 0.3s linear;
  }
}
.endmenu__item:hover { color: #fff; }
.endmenu__item:hover .endmenu__t { text-shadow: 0 2px 22px rgba(0,0,0,0.5); }
.endmenu__item.is-feature { color: #fff; }

/* home-mirrored anchor positions (shared by all layouts) */
.endmenu__item.it-portfolio { --x: var(--pad-x); --dt: 0s;     --ds: 0.18s; top: calc(clamp(80px,14vh,150px) + 3cm); left: var(--pad-x); transform: translateY(18px); }
.endmenu.is-on .endmenu__item.it-portfolio { transform: none; }
.endmenu__item.it-showreel  { --dt: 0.10s;  --ds: 0.30s; left: auto; right: calc(var(--pad-x) + 0.5cm); top: calc(clamp(80px,14vh,150px) - 2.5cm); transform: translateY(18px); }
.endmenu.is-on .endmenu__item.it-showreel { transform: none; }
.endmenu__item.it-about     { --dt: 0.30s;  --ds: 0.48s; left: 50%; top: min(calc(50% + 10cm), calc(100% - clamp(118px,18vh,190px))); transform: translate(-50%,-50%) translateY(18px); }
.endmenu__item.it-kontakt   { --dt: 0.19s;  --ds: 0.36s; left: auto; right: var(--pad-x); bottom: clamp(40px,7vh,84px); top: auto; transform: translateY(18px); }
.endmenu.is-on .endmenu__item.it-kontakt { transform: none; }
.endmenu__item.it-portfolio, .endmenu__item.it-showreel, .endmenu__item.it-kontakt { align-items: baseline; }

/* ============ LAYOUT 01 — all mono (matches "CINEMATOGRAPHY · WARSAW, PL"), bigger ============ */
.endmenu[data-design="1"] .endmenu__t {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.endmenu[data-design="1"] .it-portfolio .endmenu__t { font-size: clamp(20px, 2.4vw, 40px); }
.endmenu[data-design="1"] .it-showreel  .endmenu__t { font-size: clamp(22px, 2.8vw, 46px); }
.endmenu[data-design="1"] .it-about     .endmenu__t { font-size: clamp(34px, 6vw, 96px); letter-spacing: -0.01em; }
.endmenu[data-design="1"] .it-kontakt   .endmenu__t { font-size: clamp(20px, 2.4vw, 40px); }

/* ============ LAYOUT 02 — mixed home type: grotesk display + mono captions ============ */
.endmenu[data-design="2"] .endmenu__t { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.endmenu[data-design="2"] .it-portfolio .endmenu__t { font-size: clamp(26px, 3.4vw, 58px); }
.endmenu[data-design="2"] .it-portfolio { flex-direction: column; align-items: flex-start; gap: 4px; }
.endmenu[data-design="2"] .it-showreel  .endmenu__t { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 40px); letter-spacing: 0.06em; }
.endmenu[data-design="2"] .it-about     .endmenu__t { font-size: clamp(46px, 8vw, 150px); }
.endmenu[data-design="2"] .it-kontakt   { flex-direction: column; align-items: flex-end; gap: 4px; }
.endmenu[data-design="2"] .it-kontakt   .endmenu__t { font-size: clamp(26px, 3.4vw, 58px); }
.endmenu[data-design="2"] .it-about .endmenu__t {
  background: linear-gradient(180deg,#fff,#cdbfad);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.6));
}

/* ============ LAYOUT 03 — Bodoni editorial italics, dramatic scale ============ */
.endmenu[data-design="3"] .endmenu__t { font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-weight: 600; }
.endmenu[data-design="3"] .it-portfolio .endmenu__t { font-size: clamp(28px, 3.6vw, 64px); }
.endmenu[data-design="3"] .it-showreel  .endmenu__t { font-family: var(--font-mono); font-style: normal; font-weight: 500; text-transform: uppercase; font-size: clamp(18px, 2.2vw, 34px); letter-spacing: 0.1em; }
.endmenu[data-design="3"] .it-about     .endmenu__t { font-size: clamp(54px, 9vw, 168px); }
.endmenu[data-design="3"] .it-kontakt   .endmenu__t { font-size: clamp(28px, 3.6vw, 64px); }
.endmenu[data-design="3"] .endmenu__sub { font-style: normal; }

.endmenu__hint {
  margin-top: clamp(14px, 3vh, 28px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.endmenu__designs {
  margin-top: clamp(12px, 2vh, 20px);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.endmenu__designs-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-right: 4px;
}
.endmenu__design {
  width: 30px; height: 26px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.endmenu__design:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.endmenu__design.is-active { color: #160f0a; background: #f1ede7; border-color: #f1ede7; }

@media (max-width: 720px){
  .endmenu[data-design="2"] .it-about .endmenu__t,
  .endmenu[data-design="3"] .it-about .endmenu__t { font-size: clamp(40px, 13vw, 80px); }
  .endmenu{padding:0 max(18px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));}
  .endmenu__item.it-portfolio{top:clamp(92px,18vh,140px);left:22px;}
  .endmenu__item.it-about{top:58%;}
  .endmenu__item.it-kontakt{right:22px;bottom:clamp(64px,10vh,92px);}
  .endmenu__sub{display:none;}
  .endmenu__hint{font-size:9px;letter-spacing:.1em;text-align:center;}
}
.hero__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  margin-bottom: clamp(20px, 3.4vh, 40px);
}
.hero__kicker .t {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hero__kicker .rule {
  width: clamp(26px, 6vw, 90px);
  height: 1px;
  background: var(--line-strong);
}
@media (max-width: 560px) {
  .hero__kicker .t { letter-spacing: 0.18em; white-space: normal; }
  .hero__kicker .rule { width: clamp(16px, 5vw, 30px); }
}
.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(38px, 10vw, 152px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow: visible;
  position: relative;
}
/* pink neon copy of the name, revealed only inside the pixel-lens circle */
.hero__neon {
  position: absolute;
  pointer-events: none;
  color: #ff5fb0;
  text-shadow: 0 0 6px rgba(255,95,176,0.95), 0 0 16px rgba(255,47,159,0.85), 0 0 34px rgba(255,47,159,0.5);
  --r: 0px; --mx: -200px; --my: -200px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 86%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 86%, rgba(0,0,0,0) 100%);
}
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  margin-top: clamp(24px, 4vh, 48px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero__desc {
  max-width: 38ch;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--muted);
  line-height: 1.5;
}
.hero__scroll {
  position: relative;
  z-index: 2;
  margin-top: clamp(30px, 6vh, 72px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hero__scroll .arrow {
  display: inline-block;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Physics name */
.hero__name {
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
}
.hero__name .char {
  display: inline-block;
  will-change: transform;
  position: relative;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.in .line > span,
.line.in > span { transform: translateY(0); }

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.fade.in, .in .fade { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .line > span, .fade { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   SHOWREEL — expanding-frame transition (reveal via clip-path)
   ============================================================ */
.reelframe {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
/* full-viewport film, hidden until the zoom reaches full black */
.reelframe__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  z-index: 2;
  will-change: opacity;
}
/* pure-black layer the dolly-zoom fades into (guarantees a clean black) */
.reelframe__black {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 1;
  will-change: opacity;
}
.reelframe__ui {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  bottom: clamp(26px, 6vh, 64px);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.reelframe__no {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}
.reelframe__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.reelframe__sound {
  position: absolute;
  top: clamp(80px, 13vh, 130px); right: var(--pad-x);
  z-index: 4;
  display: flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 14px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), border-color 0.3s var(--ease);
}
.reelframe__sound.is-shown { opacity: 1; pointer-events: auto; }
.reelframe__sound:hover { border-color: #fff; }
.reelframe__sound.is-on { border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .home-pin { height: auto; }
  .hero { position: relative; }
  .reelframe__video { opacity: 1; }
  .reelframe__ui { opacity: 1; }
}
.reel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.reel__frame .parallax {
  position: absolute;
  inset: -10% 0;
  height: 120%;
}
.reel__frame img,
.reel__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0) contrast(1.05) brightness(0.7);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.reel__frame:hover img,
.reel__frame:hover video { transform: scale(1.04); filter: grayscale(0) contrast(1.08) brightness(0.76); }
.reel__frame.is-playing .reel__play { opacity: 0; pointer-events: none; }
.reel__play { transition: opacity 0.4s var(--ease); }
.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.reel__play .ring {
  width: clamp(72px, 9vw, 132px);
  height: clamp(72px, 9vw, 132px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
  transition: transform 0.6s var(--ease), background 0.5s var(--ease);
}
.reel__frame:hover .reel__play .ring { transform: scale(1.08); }
.reel__play .tri {
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 5px;
}
.reel__caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SELECTED WORK GRID
   ============================================================ */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 80px) clamp(24px, 4vw, 64px);
  padding-bottom: clamp(40px, 8vh, 120px);
}
.tile { position: relative; display: block; }
.tile.is-tall { margin-top: clamp(0px, 9vw, 130px); }
.tile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.tile.is-wide .tile__media { aspect-ratio: 3 / 2; }
.tile__media .parallax {
  position: absolute;
  inset: -9% 0;
  height: 118%;
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0) contrast(1.04) brightness(0.86);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.06); filter: grayscale(0) contrast(1.06) brightness(0.92); }
.tile__no {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  mix-blend-mode: difference;
}
.tile__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
}
.tile__name {
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  position: relative;
}
.tile__name::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.tile:hover .tile__name::after { transform: scaleX(1); transform-origin: left; }
.tile__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.tile__year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
  white-space: nowrap;
  padding-top: 4px;
}
@media (max-width: 720px) {
  .work { grid-template-columns: 1fr; }
  .tile.is-tall { margin-top: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
  padding-bottom: clamp(60px, 12vh, 160px);
}
/* ===== scroll-revealed statement (words sweep from green blocks to text) ===== */
.about__statement {
  margin: clamp(8px, 3vh, 36px) 0 clamp(48px, 9vh, 120px);
  max-width: 24ch;
  font-family: "Archivo Black", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 76px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.about__statement .rw { position: relative; display: inline-block; }
/* the word text — hidden, then wiped in left→right as the bar recedes */
.about__statement .rw__t {
  display: inline-block;
  color: var(--fg);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.about__statement .rw.key .rw__t {
  color: var(--accent);
  font-family: "Bodoni Moda", Georgia, serif;
}
/* the green bar — wipes IN left→right, then OUT left→right, leaving the word.
   it overhangs right (and a touch left) so neighbouring bars meet with NO gaps. */
.about__statement .rw__bar {
  position: absolute;
  inset: 0.05em -0.32em 0.09em -0.05em;
  background: var(--accent);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
@media (prefers-reduced-motion: reduce) {
  .about__statement .rw__t { clip-path: none; }
  .about__statement .rw__bar { display: none; }
}
.about__portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  position: sticky;
  top: 14vh;
}
.about__portrait .parallax { position: absolute; inset: -8% 0; height: 116%; }
.about__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0) contrast(1.04) brightness(0.9);
}
.about__body p {
  font-size: clamp(18px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: clamp(20px, 3vh, 36px);
  text-wrap: pretty;
}
.about__body p.dim { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.6; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(24px, 4vh, 48px);
  background: var(--line);
  border: 1px solid var(--line);
}
.about__stat {
  background: var(--bg);
  padding: clamp(18px, 2.4vw, 28px);
}
.about__stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.about__stat dd {
  font-size: clamp(15px, 1.4vw, 20px);
  color: var(--fg);
  line-height: 1.35;
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-height: 70vh; }
}

/* ============================================================
   AWARDS
   ============================================================ */
.awards { padding-bottom: clamp(60px, 12vh, 160px); }
.award {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: clamp(16px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(20px, 3vh, 36px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), background 0.5s var(--ease);
}
.award:last-child { border-bottom: 1px solid var(--line); }
.award:hover { padding-left: clamp(8px, 1.5vw, 24px); }
.award__year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.award__title {
  font-size: clamp(18px, 2.4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.award__title em { font-style: normal; color: var(--muted); }
.award__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
}
@media (max-width: 720px) {
  .award { grid-template-columns: 64px 1fr; }
  .award__meta { grid-column: 2; text-align: left; }
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 12vh, 140px);
  padding-bottom: clamp(32px, 5vh, 56px);
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact__lead {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vh, 36px);
}
.contact__mail {
  display: inline-block;
  font-size: clamp(34px, 9vw, 168px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  position: relative;
}
.contact__mail span { display: block; overflow: hidden; }
.contact__mail .ul {
  position: absolute; left: 0; bottom: 0.04em;
  width: 100%; height: clamp(2px, 0.5vw, 7px);
  background: var(--fg);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.contact__mail:hover .ul { transform: scaleX(1); }
.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 80px);
  margin-top: clamp(40px, 7vh, 90px);
}
.contact__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 400;
}
.contact__col a, .contact__col p {
  display: block;
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--fg);
  line-height: 1.7;
}
.contact__col a { position: relative; width: fit-content; }
.contact__col a::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.contact__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 8vh, 110px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.to-top { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top .arrow { display: inline-block; animation: bobUp 2.4s ease-in-out infinite; }
@keyframes bobUp { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
