/* Kristofer Kamberg — portfolio. Dark by default; light via html[data-theme="light"]. */
:root {
  --bg: #000;
  --fg: #f1f1f1;
  --muted: rgba(241, 241, 241, .5);
  --faint: rgba(241, 241, 241, .1);
  --line: rgba(241, 241, 241, .16);
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: 24px;
  --gap: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #fff;
  --fg: #111;
  --muted: rgba(17, 17, 17, .5);
  --faint: rgba(17, 17, 17, .06);
  --line: rgba(17, 17, 17, .14);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font: 400 13px/1.45 var(--sans);
  letter-spacing: .01em;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  animation: fadein .6s var(--ease);
  transition: background-color .4s, color .4s;
}
@keyframes fadein { from { opacity: 0; } }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
ol, ul { list-style: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -60px; z-index: 200; padding: 8px 12px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 12px; }
.mono, .label, .section-head, .info h3, .card h3, .contact h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.muted, .label { color: var(--muted); }

/* ---------- header / footer ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px var(--pad);
  color: #fff; pointer-events: none;
}
/* a soft shadow from the top edge down, behind the text (Kristofer, 24.11.2026; a little darker on his second
   word the same day): the white text stays readable over any picture; over the black page it is invisible */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .72), rgba(0, 0, 0, .56) 30%, rgba(0, 0, 0, .3) 60%,
                                         rgba(0, 0, 0, .1) 85%, rgba(0, 0, 0, 0));
}
/* light theme: the same, mirrored — a light veil, dark text */
html[data-theme="light"] .site-header { color: #111; }
html[data-theme="light"] .site-header::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .82), rgba(255, 255, 255, .65) 30%,
                                         rgba(255, 255, 255, .34) 60%, rgba(255, 255, 255, .1) 85%, rgba(255, 255, 255, 0));
}
/* Film (Kristofer, 24.11.2026): at the top the bar sits on the black page, in its own room (the first spread
   starts under it); once the page moves, the spreads pass under it and the shadow comes in under the text,
   growing over the first 60 px of scrolling (site.js sets --shade; without it the shadow is simply there) */
.deck-page .site-header { position: sticky; }
.deck-page .site-header::before { opacity: var(--shade, 1); }
html[data-theme="light"] .theme { border-left-color: rgba(17, 17, 17, .3); }
.site-header a, .site-header button { pointer-events: auto; }
.brand { letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; align-items: baseline; }
.nav a { opacity: .45; transition: opacity .25s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.theme {
  margin-left: 6px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .3);
  font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  opacity: .45; transition: opacity .25s;
}
.theme:hover { opacity: 1; }

/* the end of a page: no footer any more (Kristofer, 27.11.2026: «убрать снизу год, копирайтинг, моё имя и mail»);
   the room it took (164 px) stays as air under the last work, so Film and Work end where they did */
.site-header + main { padding-bottom: 164px; }

/* ---------- mosaic (home): rows of equal height, tiles picked by Kristofer ---------- */
.mosaic { display: flex; flex-direction: column; gap: var(--gap); padding: 64px var(--pad) 0; }
.mrow { display: flex; gap: var(--gap); }
.mline { display: contents; }   /* phone lines: invisible on a computer, the row stays one line */
.tile { position: relative; flex: var(--ar) 1 0; min-width: 0; aspect-ratio: var(--ar); overflow: hidden; background: var(--faint); }
.tile img, .tile video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity .4s;
}
.tile:hover img, .tile:hover video, .tile:focus-visible img, .tile:focus-visible video { transform: scale(1.025); }
.tile .tag {
  position: absolute; left: 10px; right: 10px; bottom: 9px; color: #fff;
  font: 400 11px/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile .tag .n { margin-right: 10px; opacity: .7; }
.tile:hover .tag, .tile:focus-visible .tag { opacity: 1; transform: none; }
.tile:focus-visible { outline-offset: -1px; }

/* ---------- full-screen pages (photo projects): one line that moves sideways ---------- */
.fs { height: 100vh; height: 100svh; overflow: hidden; }
.fs main { position: relative; height: 100%; }
.fs .site-header + main { padding-bottom: 0; }
.mail { transition: opacity .25s; }
.mail:hover { opacity: .6; }
.strip-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 20px; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}

/* ---------- work: the list of clients, plain text (as it was on Contact) ---------- */
.work-page, .contact-page { display: flex; flex-direction: column; }
.work-page main, .contact-page main { flex: 1; }
.clients { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding: 140px var(--pad) 0; }
.client-list li { margin-bottom: 7px; max-width: 52ch; }
.client-list a { transition: opacity .25s; }
.client-list a:hover { opacity: .6; }

/* ---------- client page: big name, then the client's own dark-to-light mosaic ---------- */
.client-head { display: grid; justify-items: start; gap: 14px; padding: 88px var(--pad) 36px; }
.client-head a { transition: color .25s; }
.client-head a:hover { color: var(--fg); }
.client-head h1 { font-size: clamp(42px, 7vw, 124px); line-height: 1.02; letter-spacing: -.03em; }
.client-head + .mosaic { padding-top: 0; }

/* ---------- film project ---------- */
.client-films .film-block + .film-block { margin-top: 140px; }   /* films of one client, one after another */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; color: #fff; }
.hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
}
.hero-meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-title { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; }
.hero-title .n { font: 400 11px/1.45 var(--mono); opacity: .6; }
.hero-title .client { letter-spacing: .08em; text-transform: uppercase; }
.hero-title .sub { grid-column: 2; font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.play { display: flex; gap: 14px; align-items: baseline; letter-spacing: .08em; text-transform: uppercase; transition: opacity .25s; white-space: nowrap; }
.play .dur { font: 400 11px/1 var(--mono); opacity: .6; }
.play:hover { opacity: .65; }
.player { position: fixed; inset: 0; z-index: 100; background: #000; }
.player[hidden] { display: none; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.player .close {
  position: absolute; top: 18px; right: var(--pad); z-index: 2; color: #fff;
  font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 0;
}

.section { padding: 100px var(--pad) 0; }
.section-head { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.clips video { aspect-ratio: var(--ar, 16 / 9); object-fit: cover; background: var(--faint); }

.info { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 32px; padding: 120px var(--pad) 0; }
.info h3 { color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.info p { max-width: 52ch; font-size: 14px; line-height: 1.5; }
.info > div:only-child, .info > div:first-child:not(.about) { grid-column: 1 / 2; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.credits dt { color: var(--muted); white-space: nowrap; }
.credits dd { overflow-wrap: anywhere; }

.next {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 140px var(--pad) 0; padding-top: 26px; border-top: 1px solid var(--line);
}
.next a { transition: opacity .25s; }
.next a:hover { opacity: .6; }
.next .go { letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.next .go .label { margin-right: 12px; }
.next .go .n { font: 400 11px/1 var(--mono); color: var(--muted); margin-right: 10px; }

/* ---------- photo project: photos at full height in one line that moves sideways ---------- */
.strip {
  position: absolute; top: 64px; bottom: 56px; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 0 var(--pad);
}
.strip::-webkit-scrollbar { display: none; }
.shot {
  flex: none; aspect-ratio: var(--ar); background: var(--faint);
  height: min(100%, calc((100vw - 2 * var(--pad)) / var(--ar)), var(--maxh, 100%));
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.card { flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.card.intro { width: min(340px, calc(100vw - 2 * var(--pad))); padding-right: 30px; overflow-y: auto; scrollbar-width: none; }
.card.intro::-webkit-scrollbar { display: none; }
.card.intro .n { color: var(--muted); margin-bottom: 12px; }
.card.intro .client { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.card.intro .title { margin-top: 10px; font-size: 15px; }
.card.intro .meta { margin-top: 10px; color: var(--muted); }
.card.intro .blocks { display: grid; gap: 22px; margin-top: 44px; }
.card h3 { color: var(--muted); margin-bottom: 10px; font-weight: 400; }
.card .about p { max-width: 52ch; }
.card.chapter { width: 112px; padding: 0 0 2px 8px; }
.card.outro { width: min(380px, 80vw); padding-left: 40px; justify-content: center; gap: 12px; }
.card.outro .go { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -.015em; transition: opacity .25s; }
.card.outro .go:hover { opacity: .6; }
.card.outro .go .n { display: block; margin-bottom: 8px; color: var(--muted); }
.strip-foot .counter { position: absolute; left: 50%; transform: translateX(-50%); }
.strip-foot .back { transition: color .25s; }
.strip-foot .back:hover { color: var(--fg); }

/* ---------- film tab: spreads of two pages (film | its frames), each at the shape of a PDF page (1979 x 1359) ---------- */
.deck { background: var(--bg); }
/* both pages of a spread have the same shape, so the line between them is in the middle of every spread
   (--split only if a grid page ever gets another shape: then the columns follow the two shapes) */
.spread { display: grid; grid-template-columns: var(--split, 1fr 1fr); gap: 0 var(--gap); }
/* reached by its address (film.html#nene — from Work, 27.11.2026, or back from the full film) a spread stands right
   under the top bar, as the first one does */
.deck .spread { scroll-margin-top: 59px; }
a.slide:focus-visible { outline-offset: -1px; }   /* the film page is a link to its source (new tab) */
.slide {   /* each spread in its film's own format (--ar): 16:9, 4:3, 5:4 — no frame is cropped */
  position: relative; width: 100%; aspect-ratio: var(--ar, 1979 / 1359); overflow: hidden; background: #000;
  display: grid; grid-template: 1fr / 1fr;
}
/* under every spread, below the main video: its caption — title, then role · year. Kristofer's placement:
   11 px, at most half as wide as the column with the main video. The block keeps the room between spreads
   it had before the captions (three lines of 13 px text). */
.caption {
  grid-column: 1; max-width: 50%; min-height: calc(13px * 1.45 * 3);
  padding: 8px 0 0 var(--pad); font-size: 11px; line-height: 1.45;
}
.caption p + p { color: var(--muted); }
/* the spread whose film plays is lit, the others dim (Kristofer, 24.11.2026): a veil of the page colour over
   both its pages (film and frames) and its caption fading too; site.js marks the lit spread (.is-lit) and turns
   the dimming on (.deck.dim) when the first film starts */
.deck .slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--bg); opacity: 0; transition: opacity .6s var(--ease);
}
.caption { transition: opacity .6s var(--ease); }
.deck.dim .spread:not(.is-lit):not(:focus-within) .slide::after { opacity: .68; }
.deck.dim .spread:not(.is-lit):not(:focus-within) .caption { opacity: .35; }
/* under the frames, on the right (in line with the menu): ↗ to where the film was published, and the spread's
   number, as on Work (24.11.2026) */
.spread-meta { grid-column: 2; justify-self: end; align-self: start; display: flex; align-items: baseline; gap: 16px;
  padding: 8px var(--pad) 0 0; line-height: 1.45; transition: opacity .6s var(--ease); }
.spread-num { color: var(--muted); }
.spread-src { font-size: 12px; color: var(--muted); transition: color .25s; }
.spread-src:hover, .spread-src:focus-visible { color: var(--fg); }
/* the link sign (28.11.2026, Kristofer's chain-link picture instead of ↗): as tall as the number's figures and a
   little more, standing on their line, in the text's colour (grey, white under the pointer) */
.spread-src { display: inline-flex; align-self: center; }
.spread-src .i-link { display: block; width: 12px; height: 12px; fill: currentColor; }
.deck.dim .spread:not(.is-lit):not(:focus-within) .spread-meta { opacity: .35; }

/* ---------- film: the full-screen page of one film (film/<id>.html), 24.11.2026 ---------- */
.viewer-page { overflow: hidden; }
.viewer { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; background: #000; }
.viewer-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px var(--pad) 16px; }
.viewer-cap { font-size: 11px; line-height: 1.45; }
.viewer-cap p + p { color: var(--muted); }
.viewer-close { opacity: .6; transition: opacity .25s; }
.viewer-close:hover, .viewer-close:focus-visible { opacity: 1; }
.viewer-stage { position: relative; min-height: 0; }
.viewer-stage video, .viewer-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  object-fit: contain; background: #000; }
/* the same view opened over the Film page by a click (it plays with sound at once); the page stays still under it */
.viewer-layer { z-index: 100; }
html.watching, html.watching body { overflow: hidden; }
/* right page: equal cells, edge to edge (the grid shares the pixels out, so no hairline gaps) */
.slide.grid { grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); }
.slide .cell { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.slide .cell video, .slide .cell img { position: absolute; display: block; max-width: none; object-fit: cover; }

/* ---------- work tab: the pages of the Editorials & E-Commerce PDF, one after another, each as designed there
   (Kristofer, 24.11.2026): the page's shape and colour, every photo in its frame, at its place, with its crop.
   Laid out like a presentation (the idea of gleb-bondarenko.com/work/marcelomiracles): the pages in a column in the
   middle, each fitting the screen with room around it; a strip of little pages on the right. (The share scrolled, at
   the bottom left, was taken away on 27.11.2026 — Kristofer: «по сути та же графа», as the strip.) ---------- */
.plates-page { --sheet-w: min(58vw, calc((100vh - 230px) * 1.4562)); }
.plates { padding-top: max(40px, calc((100vh - 59px - var(--sheet-w) / 1.4562) / 2 - 40px)); }
.plate { width: var(--sheet-w); margin: 0 auto 64px; }
.plate.opens { margin-top: 100px; }   /* a new part of the PDF (jewelry, outerwear, denim, footwear, collaborations) */
.sheet { position: relative; display: block; width: 100%; aspect-ratio: 1979 / 1359; overflow: hidden; }
.sheet .fr { position: absolute; display: block; overflow: hidden; }
.sheet .fr img { position: absolute; display: block; max-width: none; object-fit: cover; }
/* the caption as on Film (11 px, second line grey), under the page's left edge, at most half as wide as its left
   half; it shows when the pointer is over the page (its room is kept) */
.plate .caption { padding-left: 0; max-width: 25%; opacity: 0; transition: opacity .2s ease; }
/* under the page: the caption on the left, the page's number on the site on the right, always there, quiet */
.plate-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.plate-num { padding-top: 8px; line-height: 1.45; color: var(--muted); }
.plate:hover .caption, .plate:focus-within .caption { opacity: 1; }
@media (hover: none) { .plate .caption { opacity: 1; } }
/* the strip of little pages, in the middle of the room right of the column: the page in view is marked */
.pages-nav {
  position: fixed; z-index: 40; top: 96px; bottom: 96px; width: 64px; padding: 4px; overflow: hidden;
  right: calc((100vw - var(--sheet-w)) / 4 - 32px);
}
.pages-nav {   /* little pages leaving the strip fade out instead of being cut */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.pages-list { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; will-change: transform; }
.pages-item { display: block; width: 100%; padding: 0; opacity: .5; outline: 1px solid transparent; outline-offset: 3px;
  transition: opacity .25s, outline-color .25s; }
.pages-item.opens { margin-top: 10px; }
.pages-item:hover, .pages-item.is-on { opacity: 1; }
.pages-item.is-on { outline-color: var(--fg); }
.pages-item:focus-visible { opacity: 1; outline: 1px solid var(--fg); }
@media (max-width: 860px) {   /* the phone version comes later: for now the pages simply fill the width */
  .plates-page { --sheet-w: 100vw; }
  .plates { padding-top: 0; }
  .plate .caption { padding-left: var(--pad); max-width: 50%; }
  .pages-nav { display: none; }
}
/* a page is a link to its whole series (Kristofer, 25.11.2026); back from the series (Close → work.html#page-N) the
   page comes to the middle of the screen under the top bar, where J / K put it */
.sheet-link { display: block; }
.plates-page .plate { scroll-margin-top: calc((100vh + 59px - var(--sheet-w) / var(--ar, 1.4562)) / 2); }

/* ---------- work: the whole series of a page (series/page-N.html), 25.11.2026: like the film's own page — the
   caption at the top left, Close at the top right — then every photo whole, one under another in the column of Work,
   as large as the screen allows (never larger than the photo itself); the strip of little photos as on Work ---------- */
.series-page { --sheet-w: min(58vw, calc((100vh - 230px) * 1.4562)); }
.series-bar { position: sticky; top: 0; z-index: 45; background: var(--bg); }
.pics { padding: 24px 0 120px; }
.pic { width: min(var(--sheet-w), calc((100vh - 150px) * var(--ar)), calc(var(--nh, 100000px) * var(--ar)));
  margin: 0 auto 64px; }
@media (max-width: 860px) {
  .series-page { --sheet-w: 100vw; }
  .pics { padding-top: 0; }
  .pic { width: min(100vw, calc(var(--nh, 100000px) * var(--ar))); margin-bottom: 4px; }
}

/* ---------- diary (in place of home, 24.11.2026; the idea of noahpdillon.com/photographs): the photos one under
   another in a column in the middle of the page, all the same width, whole, without captions ---------- */
.diary-page { --col: min(48vw, 760px); }
.diary { padding-top: 16px; }
.dset + .dset { margin-top: 96px; }   /* a little more room where one shoot ends and the next begins */
.dshot { width: var(--col); margin: 0 auto 16px; }
.dshot img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); }
@media (max-width: 860px) {   /* the phone version comes later: for now the column fills the width */
  .diary-page { --col: 100vw; }
  .diary { padding-top: 0; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding: 140px var(--pad) 0; }
.statement p { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.35; letter-spacing: -.005em; max-width: 34em; }
.statement p + p { margin-top: .25em; }
.email {
  display: inline-block; margin-top: 64px; padding-bottom: 4px;
  font-size: clamp(22px, 3.2vw, 40px); letter-spacing: -.015em;
  border-bottom: 1px solid var(--line); transition: border-color .25s;
}
.email:hover { border-color: var(--fg); }
.socials { display: flex; gap: 24px; margin-top: 22px; }
.socials a:hover { color: var(--fg); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .nav { gap: 16px; }
  .theme { padding-left: 12px; margin-left: 0; }
  /* each mosaic row becomes 2–3 short lines, pictures keep their shape, no captions over them */
  .mrow { flex-direction: column; }
  .mline { display: flex; gap: var(--gap); }
  .tile .tag { display: none; }
  .strip { top: 56px; bottom: 52px; gap: 8px; }
  .card.intro { width: calc(100vw - 2 * var(--pad)); padding-right: 0; }
  .card.outro { padding-left: 16px; }
  .strip-foot .mail { display: none; }
  .strip-foot .counter { position: static; transform: none; }
  .clips { grid-template-columns: repeat(2, 1fr); }
  .info, .contact, .clients { grid-template-columns: 1fr; }
  /* (Film on a phone: its own block below) */
  .client-head { padding-top: 76px; }
  .info > div { grid-column: auto !important; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .next { flex-direction: column; }
  .next .go { text-align: left; }
}
/* ---------- Film on a phone (26.11.2026 — Kristofer: «3 × 3 скриншоты под видео или отказаться от них совсем для
   мобильной»; «на телефоне оч хорошо» — the frames stay): every film full width in its own format; under it, after the
   same 4 px seam, its 3 × 3 frames in the same format; then one line — the caption on the left, the link sign and the
   number on the right (as on the computer); then air before the next film. (Until 28.11.2026 a TEST switch at the
   bottom could hide the frames, for him to compare; taken off for the launch.) */
@media (max-width: 860px) {
  .spread { grid-template-columns: 1fr; row-gap: 0; padding-bottom: 40px; }
  .spread > .slide.grid { margin-top: var(--gap); }
  .spread > .caption { grid-column: 1; grid-row: 3; max-width: none; min-height: 0;
    padding: 10px calc(var(--pad) + 64px) 0 var(--pad); }
  .spread > .spread-meta { grid-column: 1; grid-row: 3; padding: 10px var(--pad) 0 0; }
}
@media (max-width: 420px) {
  .brand { font-size: 12px; }
  .nav { gap: 12px; font-size: 12px; }
}
@media (hover: none) {
  .strip { scroll-snap-type: x mandatory; }
  .shot, .card { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Work and Film: grid or list (Kristofer, 27.11.2026: «фильтр для work и для film… две кнопки — лист, то
   есть лейаут, который у нас сейчас, и сетка, как на скриншоте»; «для десктопной можно попробовать»). Two signs after
   the menu, across a thin line (where Light once was): the one in use white, the other as quiet as the menu. The
   list is the page as it was. The grid: every work at once, three in a row on the lines of the name and the menu,
   equal cells, each work whole in its cell, the captions always shown; a click does what it does in the list.
   On Film all the films stand still in colour — no veil (Kristofer: «пускай все заставки будут в цвете») — and only
   the one under the pointer plays (site.js). G switches. Since 28.11.2026 each visit starts as a grid on a computer and a
   list on a phone (the choice holds for the visit only). At first a computer only;
   since 28.11.2026 on a phone too (Kristofer: «можешь сделать телефонную с последним апдейтом — хочу посмотреть,
   работает ли это»): the same two signs, the grid two in a row; nothing plays there (no pointer) — a tap opens the
   work as in the list. ---------- */
.bar-right { display: flex; align-items: baseline; }
.views { display: flex; align-self: center; gap: 12px; margin-left: 24px; padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .3); }
.view-btn { display: block; padding: 2px; line-height: 0; opacity: .45; transition: opacity .25s; }
.view-btn:hover, .view-btn:focus-visible, .view-btn[aria-pressed="true"] { opacity: 1; }
.view-btn svg { display: block; width: 15px; height: 15px; }

/* Work as a grid: the pages in cells of the PDF's shape (a page of another shape whole in it, centred) */
.view-grid .plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--pad);
  padding: 24px var(--pad) 0; }
.view-grid .plate, .view-grid .plate.opens { width: auto; margin: 0; }
.view-grid .plates-page .plate { scroll-margin-top: 96px; }
.view-grid .sheet-box { display: flex; align-items: center; justify-content: center; aspect-ratio: 1979 / 1359; }
.view-grid .sheet-box > * { flex: none; width: calc(var(--fit, 1) * 100%); }
.view-grid .plate .caption { opacity: 1; max-width: none; padding-left: 0; }
.view-grid .pages-nav { display: none; }

/* Film as a grid: only the film of each spread (its frames stay in the list), in a 16:9 cell, whole. (Not in use
   since 28.11.2026: Kristofer took the switch off Film — «пускай их только скролить можно»; Work keeps it. The rules
   stay, to bring it back.) */
.view-grid .deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--pad);
  padding: 24px var(--pad) 0; }
.view-grid .deck .spread { grid-template-columns: minmax(0, 1fr) auto; scroll-margin-top: 96px; padding-bottom: 0; }
.view-grid .spread > a.slide { grid-column: 1 / -1; grid-row: 1; width: calc(var(--fit, 1) * 100%); justify-self: center; }
.view-grid .spread > .slide.grid { display: none; }
/* the cover over each film (28.11.2026): only in the grid — always the chosen frame, never where a film stopped;
   it fades while the film plays under the pointer */
.slide .cell .thumb { display: none; }
.view-grid .slide .cell .thumb { display: block; z-index: 1; transition: opacity .35s var(--ease); }
.view-grid a.slide.is-playing .thumb { opacity: 0; }
.view-grid .spread > .caption { grid-column: 1; grid-row: 2; max-width: none; min-height: 0; padding: 8px 0 0; }
.view-grid .spread > .spread-meta { grid-column: 2; grid-row: 2; padding: 8px 0 0; }
.view-grid .deck.dim .spread:not(.is-lit):not(:focus-within) .slide::after { opacity: 0; }
.view-grid .deck.dim .spread:not(.is-lit):not(:focus-within) .caption,
.view-grid .deck.dim .spread:not(.is-lit):not(:focus-within) .spread-meta { opacity: 1; }

@media (max-width: 860px) {   /* a phone: the signs a little closer, the grid two in a row */
  .views { gap: 8px; margin-left: 14px; padding-left: 12px; }
  .view-grid .plates, .view-grid .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px;
    padding: 12px var(--pad) 0; }
  .view-grid .spread > .caption, .view-grid .spread > .spread-meta { padding-top: 6px; }
}
@media (max-width: 360px) {   /* the narrowest phones (320 px): the top bar a little tighter, so the name has room */
  .nav { gap: 10px; }
  .views { gap: 4px; margin-left: 8px; padding-left: 8px; }
}

/* ---------- the home page (Kristofer, 27.11.2026: «landing page / home page сделаем в виде того logo — kristofer
   kamberg, которое стоит у нас в левом углу верхнем; пускай при запуске сайта оно появляется из тени в середине
   экрана; небольшим его оставим; пускай это выглядит дорого, как у какого-то fashion brand»). A black screen; the
   name in the middle, small, in the letters of the top bar; after a breath of black it comes slowly out of the dark
   and out of focus, its letters closing in, as a title comes into focus; then the menu fades in where it is on every
   page. The intro waits for the site's font (html.intro-wait, build.py). The same day, his second word: «в 1,3 раза
   больше лого, чуть меньше чёрного в начале, текст чуть пожирнее» — 14 → 18.2 px, weight 400 → 500, the black
   before it .7 → .3 s (the menu 0.4 s sooner too). His third word: «не нравится, что буквы на дистанции друг от друга
   и потом сближаются — мне нужен только fade in; и буквально на 0,3 меньше всё же сделаем» — now only a fade (no
   letters closing in, no blur), and the size back from 1.3 to 1 (14 px), the weight kept at 500. ---------- */
.landing-page { height: 100vh; height: 100svh; overflow: hidden; }
.landing-page .brand { visibility: hidden; }            /* the name is in the middle here */
.landing-page .site-header + main { padding-bottom: 0; }
.landing { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; font: inherit; }
.landing-logo {
  display: block; padding: 24px; font-size: 14px; font-weight: 500; letter-spacing: .08em; margin-right: -.08em;   /* (the space after
  the last letter taken back, so the name sits in the very middle) */
  text-transform: uppercase; color: var(--fg); white-space: nowrap;
  animation: from-the-dark 2s cubic-bezier(.4, 0, .2, 1) .3s both;   /* only a fade, out of the black */
}
@keyframes from-the-dark { from { opacity: 0; } to { opacity: 1; } }
.landing-page .nav { animation: menu-in 1.6s ease 2.1s both; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.intro-wait .landing-logo, .intro-wait .landing-page .nav { animation-play-state: paused; }

/* ---------- Inquiries (Kristofer, 28.11.2026: «давай просто сделаем как у Нико inquiries и пока не будем ничего
   писать туда»): as on Nico Ballesteros's site — the title, then the form, light fields on the black page, each
   marked (required); in the site's own letters. The same day, his second word: «чуть-чуть покомпактнее, на обоих
   устройствах; на десктопе поменьше и посередине; на мобильном тоже — чтобы не на всю была растянута; чтобы всё
   поаккуратнее, подороже выглядело — люкс». So: a narrow column (at most 460 px) in the middle of the screen — on a
   computer in the middle both ways, on a phone with wide margins; the title small, in spaced capitals like the
   name on the home page; fields lower, letters smaller; the group title «Name» kept for screen readers only;
   SUBMIT a thin-framed button the width of the column, turning white under the pointer. Fields are 16 px on a phone,
   so it does not zoom in when one is tapped. His third word: «inquiries и submit — в левую сторону, а не посередине,
   и на телефоне, и на десктопе; на телефоне убери рамку вокруг submit; на телефоне — в одну строчку имя и фамилию».
   So the title and SUBMIT stand at the column's left edge (the column itself stays in the middle); on a computer
   SUBMIT is a small framed button, on a phone only the word; the two name fields side by side there too. ---------- */
.inquiries-page .site-header + main { padding-bottom: 0; }
.inquiries { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh;
  width: min(460px, 100% - 2 * var(--pad)); margin: 0 auto; padding: 104px 0 72px; }
.inq-title { margin: 0 0 44px; font-size: 13px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.inq-form { display: grid; gap: 20px; }
.inq-name { border: 0; margin: 0; padding: 0; min-width: 0; }
.inq-name legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inq-field { display: grid; gap: 7px; }
.inq-label { font-size: 11px; letter-spacing: .03em; }
.req { margin-left: 3px; color: var(--muted); }
.inq-form input, .inq-form textarea {
  display: block; width: 100%; margin: 0; padding: 11px 13px; border: 1px solid #cdcdcd; border-radius: 0;
  background: #f5f5f5; color: #111; font: 400 14px/1.4 var(--sans); -webkit-appearance: none; appearance: none;
}
.inq-form input { height: 44px; }
.inq-form textarea { min-height: 150px; resize: vertical; }
.inq-form input:focus-visible, .inq-form textarea:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.inq-submit { justify-self: start; margin-top: 10px; height: 46px; padding: 0 34px 0 calc(34px + .22em);
  border: 1px solid rgba(241, 241, 241, .55); color: var(--fg);
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s; }
/* white under the pointer (only where there is one: on a phone a tap would leave it white) or when reached by Tab;
   a tap on a phone just dims it for a moment */
.inq-submit:focus-visible { background: var(--fg); color: #000; border-color: var(--fg); outline: none; }
@media (hover: hover) { .inq-submit:hover { background: var(--fg); color: #000; border-color: var(--fg); } }
.inq-submit:active { opacity: .7; }
.inq-submit[disabled] { opacity: .4; cursor: default; }
.inq-note { min-height: 1.45em; margin: 0; font-size: 11px; color: var(--muted); }
.inq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .inquiries { justify-content: flex-start; min-height: 0; width: min(460px, 100% - 64px); padding: 96px 0 72px; }
  .inq-title { margin-bottom: 36px; }
  .inq-row { gap: 12px; }   /* first and last name side by side on a phone too */
  .inq-form input, .inq-form textarea { font-size: 16px; }
  /* (28.11.2026: SUBMIT was only the word on a phone for a moment — Kristofer: «верни на телефонную версию такой же
     submit, с рамкой, как на десктопе» — so it is the framed button there too) */
}
@media (max-width: 380px) {   /* the narrowest phones (320–380 px; 28.11.2026 — with Inquiries the bar got a third
  item): on Work the two signs go under the menu, on its right, so the name keeps its one line; the bar there is a
  little taller to hold them */
  .views { position: absolute; top: 48px; right: var(--pad); margin: 0; padding: 0; border-left: 0; gap: 10px; }
  .plates-page .site-header { padding-bottom: 40px; }
}

/* ---------- a series of one photo, the whole screen (Kristofer, 28.11.2026, Work 01: «убираем остальные — оставляем
   только заглавную на весь экран»): as large as the screen allows under the bar, never larger than the photo; no strip
   (build.py: "full" in series.json "show") ---------- */
.series-full .pics { padding: 12px 0 24px; }
.series-full .pic { width: min(calc(100vw - 2 * var(--pad)), calc((100vh - 110px) * var(--ar)),
  calc(var(--nh, 100000px) * var(--ar))); margin-bottom: 0; }
@media (max-width: 860px) {
  .series-full .pic { width: min(100vw, calc(var(--nh, 100000px) * var(--ar))); }
}
