@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400 600;font-display:swap;src:url('/assets/fonts/inter-tight-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400 600;font-display:swap;src:url('/assets/fonts/inter-tight-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* mateuszkot.com — one stylesheet for every page. */
:root {
  --bg: #0a0a09;
  --fg: #edebe6;
  --mute: #8e8b84;
  --body: #c9c6bf;
  --tile: #161614;
  --line: #262522;
  --accent: #ff3b1f;
  --gap: 4px;
  --pad: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
img, video, picture { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav a { display: inline-block; padding-block: 12px; }
.nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav sup { font-size: 9px; margin-left: 2px; color: var(--mute); }
.nav .contact, .contact-link { color: var(--accent); }

.underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 10px);
  transition: background-size 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .underline:hover { background-size: 100% 1px; }
}

/* One header on every page: who · how to reach · where to go. */
.site-header {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 12px; align-items: baseline; padding: 2px var(--pad) 0;
}
.brand { grid-column: 1 / span 4; display: flex; flex-wrap: wrap; gap: 0 14px; align-items: baseline; padding-block: 12px; }
.brand b { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.brand span { color: var(--mute); }
.site-header .reach { grid-column: 5 / span 3; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-header .reach a { display: inline-block; padding-block: 12px; }
.site-header .reach .phone { color: var(--mute); }
.site-header .nav { grid-column: 8 / span 5; justify-content: flex-end; }
@media (max-width: 900px) {
  .brand { grid-column: 1 / span 6; }
  .site-header .reach { grid-column: 7 / span 6; justify-content: flex-end; }
  .site-header .nav { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .brand { grid-column: 1 / -1; padding-bottom: 0; }
  .brand b { font-size: 20px; }
  .site-header .reach { grid-column: 1 / -1; justify-content: space-between; }
  .site-header .reach a { padding-block: 8px; }
  .nav { gap: 0 20px; }
}

.masthead {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 6px 8px 14px;
  font-size: clamp(40px, 16vw, 272px); line-height: 0.8; font-weight: 600; letter-spacing: -0.06em;
  white-space: nowrap; overflow: hidden;
}

/* Big page title that crosses into the first row of images (negative on top of the picture). */
.cross-title {
  position: relative; z-index: 2;
  font-size: clamp(44px, 14vw, 232px); line-height: 0.8; font-weight: 600; letter-spacing: -0.06em;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
/* Project names are long: size them by the smaller of width and height so a laptop screen keeps some air. */
.project-title { font-size: clamp(40px, min(8.5vw, 15vh), 168px); max-width: 100%; }

.label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}

/* ---------- Image walls ---------- */
.rows { display: flex; flex-direction: column; gap: var(--gap); padding: 0 var(--pad); }
.row, .wall { display: flex; flex-wrap: wrap; gap: var(--gap); }
.wall { padding: 0 var(--pad); }
.wall::after { content: ''; flex: 999 1 0px; }
.tile {
  position: relative; display: block; overflow: hidden; min-width: 0;
  flex: var(--ar) 1 calc(var(--ar) * var(--h, 110px));
  aspect-ratio: var(--ar);
  background: var(--tile);
}
/* Frames is the dense wall; the home wall is half as large again. */
.frames-wall { --h: 110px; }
.home-wall { --h: 258px; }
.home-wall .still { display: none; }
@media (max-width: 700px) {
  .frames-wall { --h: 70px; }
  .home-wall { --h: 149px; }
  .home-wall .still { display: block; }
  .home-wall video { display: none; }
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s ease; }
.tile picture { width: 100%; height: 100%; }
.tile[hidden] { display: none; }
.is-dim img, .is-dim video { filter: brightness(0.89); }
/* Work wall: frames lifted 5% and 5% more saturated; the hover dimming stays 11% below that. */
.home-wall .tile img, .home-wall .tile video { filter: brightness(1.05) saturate(1.05); }
.home-wall .is-dim img, .home-wall .is-dim video { filter: brightness(0.935) saturate(1.05); }

.reveal { animation: reveal 0.45s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hover-cap { position: sticky; bottom: 0; height: 0; z-index: 5; pointer-events: none; }
.hover-cap > div {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hover-cap[hidden] { display: none; }
.hover-cap .label { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.hover-cap .name { font-size: clamp(48px, 8vw, 132px); line-height: 0.88; font-weight: 600; letter-spacing: -0.05em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 120px; padding: 40px var(--pad) 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 72px; }
.site-footer .cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; scroll-margin-top: 24px; }
.site-footer .mail { font-size: clamp(36px, 7.4vw, 128px); line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; overflow-wrap: anywhere; transition: color 0.25s ease; }
.site-footer .tel { font-size: 17px; color: var(--mute); padding-block: 10px; }
.site-footer .worked { display: grid; grid-template-columns: minmax(160px, 1fr) 4fr; gap: 16px 24px; align-items: baseline; }
.brands { display: flex; flex-wrap: wrap; gap: 0 0.45em; font-size: clamp(22px, 3vw, 44px); line-height: 1.15; font-weight: 500; letter-spacing: -0.035em; color: var(--body); }
.brands span[aria-hidden] { color: #3a3934; }
.site-footer .cols { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr 1.2fr; gap: 40px 24px; }
.site-footer .cols > * { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.site-footer .cols .label { margin-bottom: 12px; }
.site-footer .cols a { padding-block: 6px; font-size: 15px; }
.site-footer .works { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
.site-footer .works .label { grid-column: 1 / -1; }
.site-footer .works a { display: flex; flex-direction: column; gap: 1px; padding-block: 5px; }
.site-footer .works a > span + span { color: var(--mute); font-size: 12px; }
.site-footer .where { color: var(--mute); padding-top: 16px; line-height: 1.5; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mute); }
.site-footer .bottom a { color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .site-footer .mail:hover { color: var(--accent); }
}
@media (max-width: 800px) {
  .site-footer { gap: 56px; }
  .site-footer .worked, .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .works { grid-template-columns: 1fr 1fr; }
}

/* ---------- Project page ---------- */
.hero { position: relative; height: clamp(520px, 60vw, 900px); background: #000; }
.hero picture, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img, .hero video { width: 100%; height: 100%; object-fit: cover; }
.hero .caption {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.hero .label { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.hero h1 { transform: translateY(0.42em); }

.about-project { display: flex; flex-wrap: wrap; gap: 40px 48px; padding: clamp(84px, 9vw, 150px) var(--pad) 64px; }
.about-project p { flex: 2 1 420px; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--body); }
.facts { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; align-content: start; font-size: 15px; }
.facts dt { color: var(--mute); margin-bottom: 3px; }

.credits-block { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 88px var(--pad); }
.credits-block h2 { flex: 1 1 200px; }
.credits-block dl { flex: 4 1 640px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 24px; font-size: clamp(16px, 1.35vw, 19px); letter-spacing: -0.01em; }
.credits-block dt { font-size: 13px; color: var(--mute); margin-bottom: 2px; }

.watch { padding: 0 var(--pad) 72px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.watch .ext { align-self: center; }
.yt { position: relative; display: block; width: min(100%, max(880px, 78vw)); aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt picture, .yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt img { object-fit: cover; filter: brightness(0.6); transition: filter 0.4s ease; }
.yt .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.yt .btn { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); position: relative; transition: transform 0.25s var(--ease-out); }
.yt .btn::after { content: ''; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.yt.is-playing .play { display: none; }
.watch .ext { color: var(--mute); padding-block: 8px; }
@media (hover: hover) and (pointer: fine) {
  .yt:hover img { filter: brightness(0.9); }
  .yt:hover .btn { transform: scale(1.08); }
}
.yt:active .btn { transform: scale(0.96); }

.others { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; padding: 24px var(--pad) 0; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
/* Same convention as the project hero: the label sits on the picture, the name crosses its lower edge. */
.other { --fs: clamp(32px, 4.2vw, 68px); position: relative; display: block; padding-bottom: calc(var(--fs) * 0.42); }
.other .media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile); }
.other .media picture { display: block; width: 100%; height: 100%; }
.other img, .other video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out), filter 0.4s ease; }
.other .caption { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
.other .label { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.other .name { position: relative; z-index: 2; font-size: var(--fs); line-height: 0.8; font-weight: 600; letter-spacing: -0.05em; color: #fff; mix-blend-mode: difference; }
.others .all { align-self: flex-start; color: var(--mute); padding-block: 10px; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .other:hover img, .other:hover video { transform: scale(1.025); }
}
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Frames page ---------- */
.page-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding: 24px var(--pad) 18px; }
.page-top .cross-title { transform: translateY(0.2em); }
.filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 22px; font-size: 14px; }
.filters button {
  min-height: 44px; padding: 12px 0 2px; border: 0; border-bottom: 1px solid transparent;
  background: none; cursor: pointer; color: var(--mute);
}
.filters button[aria-pressed='true'] { color: var(--fg); border-bottom-color: var(--fg); }
.filters sup { font-size: 9px; margin-left: 2px; color: var(--mute); }

/* ---------- Photography ---------- */
.photo-title { margin: 0 0 -0.2em; padding: 24px 8px 0; }
/* Series covers use the same caption as Other projects: label on the picture, name across its lower edge. */
.series { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px var(--gap); padding: 0 var(--pad); }
.series .other { min-width: 0; }
.series .media picture { width: 100%; height: 100%; }
@media (max-width: 700px) { .series { grid-template-columns: 1fr; } }
.series .cap { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.series .cap b { font-size: 17px; font-weight: 500; }
.series .cap span { color: var(--mute); }
.intro { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 96px var(--pad) 28px; }
.intro h2 { flex: 1 1 200px; }
.intro p { flex: 3 1 480px; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--body); }
.photo { flex: var(--ar) 1 calc(var(--ar) * 160px); aspect-ratio: var(--ar); min-width: 0; background: var(--tile); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Info ---------- */
.info-main { display: flex; flex-direction: column; }
.info-strip { overflow: hidden; padding: 0 0 0 var(--pad); }
.track { display: flex; gap: var(--gap); width: max-content; animation: drift 120s linear infinite; }
.track-part { display: flex; gap: var(--gap); }
.track a { display: block; height: clamp(180px, 24vw, 380px); aspect-ratio: var(--ar); background: var(--tile); overflow: hidden; }
.track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes drift { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@media (hover: hover) and (pointer: fine) {
  .info-strip:hover .track { animation-play-state: paused; }
}
@media (max-width: 700px) {
  .bio { order: -1; padding-top: 24px !important; }
  .track a { height: 150px; }
}
.bio { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 64px var(--pad) 72px; }
.bio .side { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.bio .side img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; }
.bio p { flex: 4 1 640px; max-width: 1040px; font-size: clamp(24px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; }
.bio p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.lists { display: grid; grid-template-columns: 2fr 1fr; gap: 40px 48px; padding: 32px var(--pad) 0; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .lists { grid-template-columns: 1fr; } }
.lists > div { display: flex; flex-direction: column; gap: 10px; }
.lists .work { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 8px 0; border-bottom: 1px solid #1e1d1a; }
.lists .work > span + span { color: var(--mute); font-size: 13px; text-align: right; }
.lists .plain { font-size: 16px; line-height: 1.7; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 0 var(--pad) 48px; }
.notfound h1 { font-size: clamp(64px, 16vw, 272px); line-height: 0.8; font-weight: 600; letter-spacing: -0.06em; }
.notfound a { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .track { animation: none; }
  .info-strip { overflow-x: auto; }
  .tile img, .tile video, .underline { transition: none; }
}
