/* =============================================================================================
   TABBED PAGES (Motion, Composites, Development, Stills Film, Stills Digital)
   ---------------------------------------------------------------------------------------------
   Page:   <main class="reel">               three equal columns: tabs | media | text
           <main class="reel reel--video">   Motion only: middle column never narrower than a
                                             full-height 9:16 video

   Each tab's panel is a <section> whose class picks its layout:
     reel__panel                  one item: media in the middle, text on the right
                                  (vertical 9:16 video, e.g. Curtain.lt)
     reel__panel reel__panel--photos
                                  several images stacked in the middle, each with its own text
                                  beside it, a line between each pair (Film, Digital, Composites;
                                  also videos: Motion Graphics, a wide 16:9 video then a 9:16 one)
     reel__panel reel__panel--wide
                                  one item across the middle AND right columns, text below
                                  (horizontal video or image, e.g. San Pellegrino)
     reel__panel reel__panel--photos reel__panel--wide
                                  several landscape images, each across both columns with its
                                  text below, then the next pair (Film: Les 3 Vallées, Lithuania)
     <div class="reel__duo">      two media + text pairs side by side inside a --photos panel, in
                                  two equal halves of the middle + right columns, text below each
                                  (Motion: Graphics); stacks video, text, video, text. Add
                                  reel__duo--no-text for two media without text (Cover Art
                                  Animations); anything after a pair starts below a line
     add reel__panel--no-text     to a --photos panel with no reel__info cells (Stills): vertical
                                  photos stay in the middle column, the right column is blank, the
                                  lines between photos run across both; wide ones span both columns.
                                  Photos start right under the top line and a line closes the last one
                                  (it merges into the footer's line when the tab fills the page)
     add reel__panel--two-up      to a --photos panel of covers with no reel__info cells (Composites:
                                  KNF): pieces fill both columns, two per row, one per row at 1140px
                                  and below. Rows keep their own height, so a short tab never
                                  stretches them into uneven gaps, and a line closes the last row
     reel__panel reel__panel--centred
                                  desktop: middle and right columns as one; each piece centred at
                                  one-column size with a shadow, text centred below, a line after
                                  each piece (Composites: WAVSTORE, Concepts & Experiments; every
                                  Development tab). At 1140px and below it stacks like covers and
                                  posters: 80% wide,
                                  text in the same block, a line before the next piece.
                                  Per piece: reel__media--no-shadow drops the shadow (logos, or a
                                  screenshot with its own); reel__media--shaped makes the shadow follow
                                  transparent edges (rounded window corners); reel__media--wide on a
                                  landscape image fills the width on desktop with the side gaps equal
                                  to the top gap (use it for practically every wide image here).
                                  <div class="reel__set"> of images in a reel__media: one piece made of
                                  several images, two per row on desktop (one per row at 1140px and below),
                                  each with the shadow (DOMNK posts). reel__set--five: five per row on
                                  desktop, two at 1140px and below, one on phones (Publify app screens).
                                  <div class="carousel"> in a reel__media: an Instagram-style carousel,
                                  one slide at a time, swiped or stepped with arrows (DOMNK: WESNA post).

   Inside a panel:
     <div class="reel__media"> ... </div>   the media cell, holding one of:
                                            (add reel__media--wide to make just that one item
                                            span both columns with its text below; for a
                                            landscape photo among vertical ones)
         <img class="reel__photo">          an image, shown at its own proportions (or a silent
                                            looping <video class="reel__photo">, started by
                                            script.js when its tab opens)
         <div class="reel__video"><iframe>  a Vimeo embed (add to the media cell:
                                            reel__media--video, plus reel__media--landscape
                                            if it is 16:9 or reel__media--4x5 if it is 4:5;
                                            without either, 9:16 is assumed)
     <div class="reel__info"><p class="reel__text"> ... </p></div>   the text cell
     <div class="reel__info"></div>          an empty text cell: keeps the right column blank
                                            beside a vertical piece on desktop, framed by the
                                            lines (Motion: Creative); hidden at 1140px and below

   Extras:
     data-type="cover" / "poster"          on a reel__media: shown at 80% with an even shadow
                                           (covers square, posters 4:5)
     data-type="..."                       also tags work by type, for a future filter view
     hidden on a <section>                 every panel except the open one; the open one's tab
                                           gets is-selected and aria-selected="true"

   Above 1140px the tab column is sticky: it stays under the navbar (and the Stills Back bar) while
   the page scrolls, and clicking a tab scrolls back to the top (script.js).
   Below 1140px wide everything stacks: tabs in a row on top, then media, text, media, text; the
   tab row scrolls away with the page.
   ============================================================================================= */

/* Fonts come from the Adobe Fonts web project linked in each page's <head> (use.typekit.net/uco2wrn.css):
   "univers-next-pro" 400 for text, "univers-next-pro-extended" 600 for tabs, the active nav link and
   titles. Extended 600 is the closest match to the Univers 63 Bold Extended used before (same width and
   cap height); 700 is visibly heavier. Self-hosting Adobe Fonts files is not allowed. */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #ffffff;
}

html {
  scroll-padding-top: 56px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
}

site-navbar,
site-footer {
  display: contents;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #000000;
  box-sizing: border-box;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
}

.navbar__link {
  color: #000000;
  text-decoration: none;
  font-family: "univers-next-pro", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  /* Univers Next sits 3px lower in its line box than the Univers LT Std it replaced; this keeps the
     text where it was (19px below the top, 25px above the line), which the tab spacing is matched to. */
  transform: translateY(-3px);
  transition: opacity 0.15s ease;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  opacity: 0.55;
}

.navbar__link.is-active {
  font-family: "univers-next-pro-extended", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 1;
}

.navbar__brand {
  justify-self: center;
  display: block;
}

.navbar__social {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.navbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  transition: opacity 0.15s ease;
}

.navbar__social-link:hover,
.navbar__social-link:focus-visible {
  opacity: 0.55;
}

/* All icons share one height and keep their own proportions, so a square glyph (Instagram) and a
   wide one (mail) stand the same height. The icon files are cropped tight to the glyph. */
.navbar__icon {
  display: block;
  height: 18px;
  width: auto;
}

.navbar__logo {
  height: 22px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Stacked navbar. 1140px is where the widest link row (DEVELOPMENT active) would reach the logo. */
@media (max-width: 1140px) {
  .navbar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px;
    row-gap: 12px;
    justify-items: center;
  }

  .navbar__brand {
    order: -1;
  }

  .navbar__links {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .navbar__social {
    justify-self: center;
  }

  .navbar__logo {
    height: 18px;
  }
}

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.centered {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
}

.centered .card {
  max-width: 420px;
}

/* Home page: landscape poster, twice the width of the About portrait card. */
.centered .card--wide {
  max-width: 840px;
}

.card {
  width: 100%;
  margin: 0;
  border: 1px solid #000000;
  background: #ffffff;
  box-sizing: border-box;
}

.card__image {
  display: block;
  width: 100%;
  height: auto;
}

.card__caption {
  border-top: 1px solid #000000;
  /* Visually 12px above and below: Univers Next sits 3px lower than the previous font, so the
     padding is shifted rather than the box (which would move the border line too). */
  padding: 9px 16px 15px;
  font-family: "univers-next-pro", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
}

/* About: portrait on the left, bio on the right, a line between them; the same 840px as the home
   poster card. Stacks (photo, then text below, 420px wide) at 860px and below. */
.centered .card--side {
  max-width: 840px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* If the bio runs a little taller than the photo, the photo fills the height (cropping a sliver)
   instead of leaving a white gap under it. */
.card--side .card__image {
  height: 100%;
  object-fit: cover;
}

.card--side .card__bio {
  border-top: none;
  border-left: 1px solid #000000;
  /* 32px 24px visually; the 3px shift is the same Univers Next compensation as .card__caption. */
  padding: 29px 24px 35px;
}

.card__bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: left; /* a bio reads as a list; the home caption stays centred */
}

.card__bio p {
  margin: 0;
}

/* About, trial: a second photo to the right of the bio. Three equal columns on desktop (1260px,
   three times the 420px column); from 1140px down it stacks: portrait, bio, photo. */
@media (min-width: 1141px) {
  .centered .card--trio {
    max-width: 1260px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card--trio .card__bio {
    border-right: 1px solid #000000;
  }
}

@media (max-width: 1140px) {
  .centered .card--trio {
    max-width: 420px;
    grid-template-columns: 1fr;
  }

  .card--trio .card__bio {
    border-left: none;
    border-top: 1px solid #000000;
    padding: 21px 16px 27px;
  }

  /* The line between bio and photo sits on the bio: on the photo it would add 1px to an image
     that already fills its row, which then covered the card's bottom border. */
  .card--trio .card__bio {
    border-bottom: 1px solid #000000;
  }
}

/* How to say the surname, tucked under the name: capitals mark the stressed syllable (the usual
   dictionary convention), so "shev-TSOV". */
.card__say {
  margin: 8px 0 0;
}

/* Keeps a short phrase on one line (e.g. a degree subject) so lines break after the "|". */
.card__nowrap {
  white-space: nowrap;
}

/* The name heads the bio in the tabs' style: bold extended capitals. */
.card__name {
  margin: 0;
  font-family: "univers-next-pro-extended", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.subbar {
  position: sticky;
  top: 56px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #000000;
  box-sizing: border-box;
}

.subbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #006cd0;
  text-decoration: none;
  font-family: "univers-next-pro", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.subbar__link:hover,
.subbar__link:focus-visible {
  opacity: 0.55;
}

.subbar__label {
  display: block;
  transform: translateY(-0.5px); /* centres the capitals on the arrow */
}

.subbar__arrow {
  display: block;
  height: 8px;
  width: auto;
}

.reel__tab {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #000000;
  font-family: "univers-next-pro-extended", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px; /* same as the selected navbar link */
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* Hover greys a tab the same way as the navbar links (black at 55%); the selected tab stays blue. */
.reel__tab:hover,
.reel__tab:focus-visible {
  opacity: 0.55;
}

.reel__tab.is-selected {
  color: #006cd0;
  opacity: 1;
}

/* Motion, Stills film and Composites: tabs | media | description, in three equal columns. */
.reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: calc(100vh - 112px);
  min-height: calc(100dvh - 112px);
}

/* Motion: the middle column never gets narrower than a full-height 9:16 video;
   past that, only the sides shrink. */
.reel--video {
  grid-template-columns: minmax(0, 1fr) max(100% / 3, (100vh - 112px) * 9 / 16) minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) max(100% / 3, (100dvh - 112px) * 9 / 16) minmax(0, 1fr);
}

.reel__tab {
  text-align: left;
}

.reel__tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Top padding and gap match the navbar: the first tab sits as far below the line, and the
     tabs as far apart, as the navbar text sits above its line (about 24px of visible space). */
  gap: 22px;
  padding: 23px 24px 32px;
  /* Desktop: the tab column stays in place under the navbar while the page scrolls. Its resting
     position is the same spot, so it never jumps. Static again in the stacked layout. */
  position: sticky;
  top: 56px;
  align-self: start;
}

/* Stills sub-pages: stay below the sticky Back bar too (navbar 56px + bar 56px). */
.subbar + .reel .reel__tabs {
  top: 112px;
}

.reel__panel {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.reel__panel[hidden] {
  display: none;
}

.reel__media,
.reel__info {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #000000;
  box-sizing: border-box;
}

.reel__info,
.reel__media .reel__text {
  padding: 32px 24px;
}

/* The video cell is held open at 9:16 of its width (so the section can run taller than the
   screen and scroll), and the video is pinned to all four edges, so it always fills it. */
.reel__media--video {
  position: relative;
  background: #000000; /* hides sub-pixel seams between the player and the column lines */
}

.reel__media--video::before {
  content: "";
  padding-top: calc(100% * 16 / 9);
}

/* Horizontal (16:9) video: spans the media and description columns, with the text below.
   The video row keeps its own height; the text row takes whatever space is left. */
.reel__panel--wide {
  grid-template-rows: auto 1fr;
}

.reel__panel--wide > .reel__media,
.reel__panel--wide > .reel__info {
  grid-column: 1 / -1;
}

.reel__panel--wide > .reel__info {
  border-top: 1px solid #000000;
}

.reel__media--landscape::before {
  padding-top: calc(100% * 9 / 16);
}

/* 4:5 video (e.g. a social feed cut: Old's Heatso video). On desktop it is shorter than the screen while the row
   stretches to full height, so rather than filling its cell (black bars above and below) it sits
   at a true 4:5, centred on white like a photo. */
.reel__media--4x5 {
  background: none;
}

.reel__media--4x5::before {
  content: none;
}

.reel__media--4x5 .reel__video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000000; /* hides sub-pixel seams around the player */
}

.reel__video {
  position: absolute;
  inset: 0;
}

.reel__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Photo series (Film page): photos stacked edge to edge in the middle column, each with its
   text level with it on the right; a line between each photo/text pair. */
.reel__photo {
  display: block;
  width: 100%;
  height: auto;
}

.reel__panel--photos > :nth-child(n + 3) {
  border-top: 1px solid #000000;
}

/* One landscape photo inside a photo series: it spans the middle and right columns, and its
   text goes in a row below it; the vertical photos around it keep the normal layout. */
.reel__media--wide,
.reel__media--wide + .reel__info {
  grid-column: 1 / -1;
}

.reel__media--wide + .reel__info {
  border-top: 1px solid #000000;
}

/* A wide item with no text (Motion: Creative): the next piece still starts below a line. */
.reel__media--wide + .reel__media {
  border-top: 1px solid #000000;
}

/* A pair side by side (Motion: Graphics): two media + text pairs wrapped in reel__duo, each with
   its text below it and a line between. The pair splits the middle and right columns into two
   equal halves (not the page's own columns: on Motion the middle one can be wider, which would
   leave the right video in a stretched box), so both videos are always the same size and exactly
   9:16. Filling column by column keeps each video next to its own text in the source, so stacked
   (phones) they read video, text, video, text. */
.reel__duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
}

.reel__duo > .reel__info {
  border-top: 1px solid #000000;
}

/* A media-only pair (Motion: Cover Art Animations): two pieces side by side in equal halves, no
   text, filled row by row. */
.reel__duo--no-text {
  grid-template-rows: auto;
  grid-auto-flow: row;
}

/* Whatever follows a pair in the same panel starts below a line. */
.reel__duo ~ .reel__media,
.reel__duo ~ .reel__info,
.reel__duo ~ .reel__duo {
  border-top: 1px solid #000000;
}

/* Covers and posters (Composites): shown at 80% of the cell width, with an even shadow all round
   and the same space on all four sides (percentage padding is always measured against the width,
   so 10% is equal top, bottom and sides). */
.reel__media[data-type="cover"],
.reel__media[data-type="poster"] {
  padding: 10%;
}

.reel__media[data-type="cover"] .reel__photo,
.reel__media[data-type="poster"] .reel__photo {
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
}

/* Centred series (WAVSTORE, Concepts & Experiments), every width: the covers' shadow, except on a
   piece marked no-shadow (e.g. a logo, or a transparent screenshot that brings its own shadow,
   where a box-shadow would outline the invisible edges). */
.reel__panel--centred .reel__photo {
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
}

.reel__panel--centred .reel__media--no-shadow .reel__photo {
  box-shadow: none;
}

/* Per piece: an image with transparent edges (e.g. a browser-window screenshot with rounded
   corners) gets the same shadow, but following its shape. drop-shadow's blur value is the
   Gaussian's standard deviation, half of box-shadow's, so 16px here matches the 32px above
   (measured). */
.reel__panel--centred .reel__media--shaped .reel__photo {
  box-shadow: none;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.25));
}

/* A set: several images shown as one piece, two per row on desktop (one per row when stacked), each
   with the shadow, no lines between them (e.g. a run of social posts).
   The cell is a size container, so the gap can be an exact share of the cell's width (cqw): on
   desktop 5% of the joined column, the same as the space above the piece at any screen width; the
   set then leaves one gap each side. Stacked, it fills the padded cell and the gap is 10% of the
   cell, like the padding round the covers. */
.reel__panel--centred > .reel__media {
  container-type: inline-size;
}

.reel__set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  --set-gap: 5cqw;
  gap: var(--set-gap);
  width: 100%;
}

.reel__panel--centred .reel__set .reel__photo {
  width: 100%;
}

/* A five-across set (Development: Publify Digital app screens): five per row on desktop, two per
   row at 1140px and below, one per row on phones (a phone screenshot one cell wide on a tablet
   would be about 2,000px tall). Same gaps as the two-across set. */
.reel__set--five {
  grid-template-columns: repeat(5, 1fr);
}

/* Carousel (Composites: DOMNK, the WESNA post): an Instagram carousel shown as one piece, one slide
   at a time, swiped sideways. The slides sit edge to edge in a row that scrolls with snap points,
   so a panorama runs on across slides and touch or trackpad swipes work natively; script.js adds
   the arrows (one slide per press, hidden at either end) and the dots (current one in the accent
   blue). The piece is the size of the other pieces (see the desktop rules) and carries their shadow. */
.carousel {
  width: 100%;
}

.carousel__viewport {
  position: relative;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; /* a swipe at the last slide doesn't go back a page */
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always; /* a fast swipe moves one slide, as on Instagram */
}

.carousel__button {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  color: #000000;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.carousel__button[hidden] {
  display: none;
}

.carousel__button:hover {
  background: #ffffff;
}

.carousel__button svg {
  width: 16px;
  height: 16px;
}

.carousel__button--prev {
  left: 12px;
}

.carousel__button--next {
  right: 12px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8c8c8;
  transition: background 0.15s ease;
}

.carousel__dot.is-current {
  background: #006cd0;
}

/* Centred series (Composites: WAVSTORE), desktop only: the middle and right columns act as one.
   Each piece sits centred at its usual one-column size with the covers' shadow, its description
   centred straight below, then a line before the next piece: the desktop version of how the Cover
   art tab stacks on mobile. At 1140px and below it stacks like covers and posters (see the stacked
   rules). */
@media (min-width: 1141px) {
  /* Rows keep their own height even when the tab is shorter than the screen (one piece), so the
     description stays straight under its piece; the inset shadow keeps the column line running to
     the footer through the empty space below. */
  .reel__panel--centred {
    grid-auto-rows: min-content;
    box-shadow: inset 1px 0 0 #000000;
  }

  .reel__panel--centred > .reel__media,
  .reel__panel--centred > .reel__info {
    grid-column: 1 / -1;
  }

  /* A line after the last piece too. When the tab fills the page this line lands exactly on the
     footer's top border (the -1px margin), so it never shows as a double line. */
  .reel__panel--centred::after {
    content: "";
    grid-column: 1 / -1;
    border-top: 1px solid #000000;
    margin-bottom: -1px;
  }

  /* 5% of the joined width = 10% of one column: the same space as around the Cover art covers. */
  .reel__panel--centred > .reel__media {
    padding: 5% 0;
  }

  /* Text keeps the same side gaps as the pieces: 5% of the joined column, like the gap round a
     wide image or a set (percentage padding is measured against that width, as 5cqw is in the
     media cell above), so long descriptions line up with the images (Development). */
  .reel__panel--centred > .reel__info {
    padding: 0 5% 5%;
  }

  .reel__panel--centred > .reel__info + .reel__media {
    border-top: 1px solid #000000;
  }

  .reel__panel--centred .reel__photo,
  .reel__panel--centred .carousel {
    width: 50%; /* one column wide, the size it had before the columns were joined */
  }

  /* Per piece: a wide (landscape) image fills the joined column, leaving the same gap left and
     right as above it (5% of the column: 5cqw of the cell, the same as its top padding), like the
     DOMNK set. The owner wants this for practically every wide image in a centred tab. The base
     --wide rule's line between image and text doesn't apply in this layout. */
  .reel__panel--centred .reel__media--wide .reel__photo {
    width: calc(100% - 10cqw);
  }

  .reel__panel--centred > .reel__media--wide + .reel__info {
    border-top: none;
  }

  /* As wide as the joined column minus one gap each side, so the space to the left line, between
     the images, to the right edge and above is the same at every width (48px at 1440px). */
  .reel__panel--centred .reel__set {
    width: calc(100% - 2 * var(--set-gap));
  }

  /* Photo series without text (Stills): every photo's cell spans the middle and right columns, so
     the line between photos runs the full width. A vertical photo sits in the middle column (the
     left half of its cell) with a line down its right edge, and the right column stays blank; wide
     photos fill both columns. The pairs' line rule above starts at the third child, so no-text
     panels add one from the second. */
  /* A short series (one photo) mustn't stretch its row and float the photo mid-screen: rows keep
     their own height so photos start right under the top line, and the inset shadow keeps the
     column line running down to the footer through any space below. */
  .reel__panel--no-text {
    grid-template-rows: none;
    grid-auto-rows: min-content;
    box-shadow: inset 1px 0 0 #000000;
  }

  /* A line under the last photo too, framing it when the tab is shorter than the screen. When the
     tab fills the page it lands exactly on the footer's top border (-1px), so it never doubles. */
  .reel__panel--no-text::after {
    content: "";
    grid-column: 1 / -1;
    border-top: 1px solid #000000;
    margin-bottom: -1px;
  }

  .reel__panel--no-text > .reel__media {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  /* The cell's content box is two columns less its 1px left border, so 50% less half a pixel ends
     the photo exactly on the column boundary; the 1px shadow draws the line just past it. */
  .reel__panel--no-text:not(.reel__panel--wide) > .reel__media:not(.reel__media--wide) .reel__photo {
    width: calc(50% - 0.5px);
    box-shadow: 1px 0 0 #000000;
  }

  .reel__panel--no-text > :nth-child(n + 2) {
    border-top: 1px solid #000000;
  }

  /* Two-up covers (KNF): with only a couple of rows the tab can be shorter than the screen, and
     stretched rows would make the space above and below each cover larger than at its sides. Rows
     keep their own height instead; the inset shadow carries the column line down to the footer and
     a line closes the last row (it lands on the footer's border when the tab fills the page). */
  .reel__panel--two-up {
    grid-auto-rows: min-content;
    box-shadow: inset 1px 0 0 #000000;
  }

  .reel__panel--two-up::after {
    content: "";
    grid-column: 1 / -1;
    border-top: 1px solid #000000;
    margin-bottom: -1px;
  }
}

.reel__text {
  margin: 0;
  font-family: "univers-next-pro", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translateY(-2px); /* same height as with the previous font (Univers Next sits lower) */
}

.reel__link {
  color: #006cd0;
  text-decoration: none;
}

.reel__link:hover,
.reel__link:focus-visible {
  text-decoration: underline;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 64px;
  box-sizing: border-box;
}

.gallery__row {
  display: grid;
  gap: 16px;
}

.gallery__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery__row--2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery__row--1 {
  grid-template-columns: 1fr;
}

.gallery__photo {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: #ffffff;
  border-top: 1px solid #000000;
  box-sizing: border-box;
}

.footer__text {
  margin: 0;
  font-family: "univers-next-pro", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px; /* line-height and nudge keep both lines where Univers LT Std put them */
  letter-spacing: 0.02em;
  text-align: center;
  transform: translateY(-1px);
}

.footer__text--status {
  color: #7b1626; /* dark cherry */
}

/* Fills exactly the space between navbar and footer (body is a full-height flex column),
   whatever height those two end up at, so the page never scrolls. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.split__half {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
}

.split__half + .split__half {
  border-left: 1px solid #000000;
}

.split__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.split__link:hover,
.split__link:focus-visible {
  color: #006cd0;
}

.split__title {
  margin: 0;
  font-family: "univers-next-pro-extended", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 7vw, 96px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(-0.125em); /* same height as with the previous font (Univers Next sits lower) */
}

/* Motion, Stills film and Composites stack at the same width as the navbar (see the 1140px navbar
   query above). */
@media (max-width: 1140px) {
  .reel,
  .reel__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .reel__tabs {
    position: static; /* scrolls away with the page here; sticky only on desktop */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding: 24px 16px;
  }

  .reel__panel {
    grid-column: auto;
  }

  /* One column: video, text, video, text. Each cell already has its own top line, so the pair's
     own line (from the --photos rule) would double the first one. */
  .reel__duo {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .reel__panel > .reel__duo {
    border-top: none;
  }

  .reel__media,
  .reel__info {
    border-left: none;
    border-top: 1px solid #000000;
  }

  /* An empty text cell (<div class="reel__info"></div>) only keeps the right column blank beside a
     vertical piece on desktop (Motion: Creative); stacked it would be a bare strip, so it goes. */
  .reel__info:empty {
    display: none;
  }

  .reel__info,
  .reel__media .reel__text {
    padding: 24px 16px;
  }

  /* Covers and posters: the description sits in the same block as the artwork, straight after
     its padding, with no line between them; the space below it matches the 10% around the art. */
  .reel__media[data-type="cover"] + .reel__info,
  .reel__media[data-type="poster"] + .reel__info {
    border-top: none;
    padding-top: 0;
    padding-bottom: 10%;
  }

  /* Centred series stack like covers and posters: each piece at 80% with 10% round it, its
     description in the same block straight below, then the line before the next piece. */
  .reel__panel--centred > .reel__media {
    padding: 10%;
  }

  /* Stacked, the text gets the pieces' 10% at the sides too (the space round them in the cell). */
  .reel__panel--centred > .reel__media + .reel__info {
    border-top: none;
    padding: 0 10% 10%;
  }

  /* A set's images go one after another (two per row is desktop only), as wide as a cover and
     spaced like the 10% padding round the covers (10% of the cell = 12.5% of its padded width). */
  .reel__set {
    grid-template-columns: 1fr;
    --set-gap: 12.5cqw;
  }

  .reel__set--five {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .page {
    padding: 48px 20px 72px;
  }

  .subbar {
    position: static;
    height: auto;
    padding: 14px 20px;
  }

  .gallery {
    gap: 12px;
    padding: 12px 16px 48px;
  }

  .gallery__row {
    gap: 12px;
  }

  .footer {
    height: auto;
    padding: 14px 20px;
  }

  .footer__text {
    font-size: 11px;
    line-height: 1.5;
    transform: translateY(-2px);
  }

  .split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .split__half + .split__half {
    border-left: none;
    border-top: 1px solid #000000;
  }

  .split__title {
    font-size: clamp(32px, 12vw, 64px);
  }

  .centered .card--side {
    max-width: 420px;
    grid-template-columns: 1fr;
  }

  .card--side .card__bio {
    border-left: none;
    border-top: 1px solid #000000;
    padding: 21px 16px 27px; /* 24px visually, with the same 3px compensation */
  }

  .about__intro {
    font-size: 16px;
  }

  .about__portrait {
    margin-top: 36px;
  }
}

@media (max-width: 600px) {
  .gallery__row--3,
  .gallery__row--2 {
    grid-template-columns: 1fr;
  }

  .reel__set--five {
    grid-template-columns: 1fr;
  }
}
