/*
 * Nik Mirus: the work, large and whole, and words only where they help,
 * after the reference Nik chose (katejackling.com): a small fixed header,
 * featured projects laid out across the screen, the index of all the work
 * under them, Info at the foot; a project one picture at a time. Garamond
 * throughout but his name, in a sans (fonts.css). Not in a layer, so it beats the Kit's rules.
 */

body {
    font-weight: var(--weight-body);
}

:root {
    /* Nik's pace: nothing hurries. */
    --nm-calm: .9s;
    --nm-slow: 1.6s;
    --nm-slower: 2.2s;
    --nm-ease: cubic-bezier(.16, 1, .3, 1);
    /* The Kit's motion at that pace: pictures fading in, page to page. */
    --fade-in-duration: var(--nm-slow);
    --page-transition-duration: .6s;
    --page-transition-ease: var(--nm-ease);
    /* Rising into view (the Kit's data-reveal): faded in at his pace, the
       move slower still, a little before it is fully on screen. */
    --reveal-duration: var(--nm-slow);
    --reveal-shift-duration: var(--nm-slower);
    --reveal-ease: var(--nm-ease);
    --reveal-shift: 1.25rem;
    --reveal-margin: -8%;
    /* The others fading back (the Kit's data-fade-others): out quickly,
       far, back calmly. */
    --fade-others-opacity: .28;
    --fade-out-duration: .3s;
    --fade-back-duration: var(--nm-calm);
    --fade-ease: var(--nm-ease);
    /* Three sizes that matter: the header's and the captions' (small, the
       reference's one size for every word but the titles), a block's title,
       a project's or a featured title (large). */
    --nm-small: 1.1rem;
    --nm-leading: 1.25;
    --nm-type: clamp(1.5rem, 1.15rem + 1vw, 2.05rem);
    --nm-title: clamp(2.6rem, 1.3rem + 4.4vw, 6rem);
    --nm-huge: clamp(3rem, 6.6vw, 9rem);
    /* His name, larger than the menu (the line's height). */
    --nm-name: clamp(1.65rem, 1.3rem + 1vw, 2.3rem);
    /* Set in Hanken Grotesk (--font-name), a size smaller than the line it
       keeps: a sans is larger than the Garamond at one size, and this gives
       it the Garamond's height of capitals. */
    --nm-name-type: calc(var(--nm-name) * .85);
    --nm-head-h: calc(var(--gutter) * 2 + var(--nm-name) * 1.1);
    --nm-screen: var(--vitrine-screen, 100svh);
    /* A picture to its caption, everywhere: compositions, Work, Process. */
    --nm-caption-gap: .55rem;
}

/* -- The header ------------------------------------------------------- *
 *
 * Fixed, on one line: his name top left, large; the menu top right,
 * small, its entries between commas, the part of the home page on screen
 * or the page open in italics. Each in black or white, whichever reads
 * best over what passes under it (kit.js sets data-on from the colour
 * of the picture there; on the paper, ink): no negative.
 */

.nm-head {
    position: fixed;
    inset: var(--preview-note-offset, 0px) 0 auto 0;
    z-index: var(--z-header);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--gutter);
    color: var(--ink);
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
    pointer-events: none;
}

.nm-head a,
.nm-head summary,
.nm-head button {
    pointer-events: auto;
}

.nm-mark,
.nm-nav,
.nm-head .langs {
    color: var(--ink);
    transition: color .3s var(--nm-ease);
}

.nm-head :is(.nm-word, .nm-links a, .nm-menu > summary, .langs) {
    color: var(--ink);
    /* Quick enough to keep up with a picture scrolled under it. */
    transition: color .3s var(--nm-ease), opacity var(--nm-calm) var(--nm-ease);
}

/* Over a dark picture: white; a comma between two entries takes the
   colour of the one before it, at the same pace. It names the parts as
   the rule above does, to outweigh it: as `.nm-head [data-on]` it
   weighed less, and only the commas turned white. */
.nm-head :is(.nm-word, .nm-links a, .nm-menu > summary, .langs)[data-on="dark"],
.nm-links li:has(> a[data-on="dark"])::after {
    color: #fff;
}

/* Over a film playing, whose light can't be read (nik.js): white with a
   soft shade, as a large title over a picture not known, so it reads over
   a dark frame and a light one alike (Nik, #917: Crown Royal). */
.nm-head :is(.nm-word, .nm-links a, .nm-menu > summary, .langs)[data-on="film"],
.nm-links li:has(> a[data-on="film"])::after {
    color: #fff;
    text-shadow: 0 0 .5em rgb(0 0 0 / .45), 0 0 1.5em rgb(0 0 0 / .25);
}

.nm-mark {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-name);
    font-weight: var(--weight-name);
    font-size: var(--nm-name-type);
    line-height: calc(var(--nm-name) * 1.1);
}

.nm-mark img {
    display: block;
    width: auto;
    height: calc(var(--nm-name) * 1.1);
}

.nm-nav {
    margin-left: auto;
}

.nm-links,
.nm-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nm-links li:not(:last-child)::after {
    content: ",\00a0";
    transition: color .3s var(--nm-ease);
}

.nm-links a,
.nm-mark {
    transition: opacity var(--nm-calm) var(--nm-ease), color var(--nm-calm) var(--nm-ease);
}

.nm-links a[aria-current],
.nm-links a.is-here {
    font-style: italic;
}

.nm-links .is-sub {
    opacity: .7;
}

/* Under the pointer, a hairline drawn in from the left under the word (in
   its own colour, black or white), and drawn out again. */
.nm-links a,
.nm-mark .nm-mark-name {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .45s var(--nm-ease), color .3s var(--nm-ease);
}

@media (hover: hover) {
    .nm-links a:hover,
    .nm-mark:hover .nm-mark-name {
        background-size: 100% 1px;
    }
}

/* On a phone: one word, Menu, opening every entry large over the paper. */
.nm-menu {
    display: none;
}

.nm-menu summary {
    list-style: none;
    cursor: pointer;
}

.nm-menu summary::-webkit-details-marker {
    display: none;
}

.nm-menu-close,
.nm-menu[open] .nm-menu-open {
    display: none;
}

.nm-menu[open] .nm-menu-close {
    display: inline;
}

/* On a phone, as the reference: his name left and Menu right, one line
   (the language switch after Menu, when there is one). */
@media (max-width: 760px) {
    :root {
        --nm-name: 1.5rem;
    }

    .nm-head .langs {
        position: static;
        margin-left: var(--space-4);
    }

    .nm-links {
        display: none;
    }

    .nm-menu {
        display: block;
    }
}

/* The menu open over the paper: ink, whatever is under the header. */
.nm-head:has(.nm-menu[open]) :is(.nm-mark, .nm-nav, .langs, [data-on]) {
    color: var(--ink);
    text-shadow: none;
}

.nm-menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg);
    pointer-events: auto;
}

.nm-menu-list {
    position: fixed;
    top: calc(var(--nm-head-h) + var(--space-5));
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: var(--space-1);
    font-size: var(--nm-title);
    line-height: 1.05;
    pointer-events: auto;
}

.nm-menu-list .is-sub {
    padding-left: .6em;
    font-size: var(--nm-type);
}

.nm-menu-list a[aria-current] {
    font-style: italic;
}

/* The language switch, after the menu. */
.nm-head .langs {
    margin-left: var(--space-4);
}

/* Room for the header over the first thing on every page, and over a part
   of the page the menu goes to (#work). */
main {
    padding-top: var(--nm-head-h);
}

html {
    scroll-padding-top: calc(var(--nm-head-h) + var(--space-3));
}

/* The scrollbar: a hairline of ink on the paper, no track, no arrows,
   darker only while it is held or pointed at; the page's and any panel's
   that scrolls (a project's Info, the phone's menu). scrollbar-width and
   scrollbar-color where the browser has them (Firefox, Chrome); the
   -webkit- parts for Safari, which reads only those. */
:root {
    --nm-scroll-thumb: color-mix(in srgb, var(--ink) 22%, transparent);
    --nm-scroll-thumb-on: color-mix(in srgb, var(--ink) 55%, transparent);
}

@supports (scrollbar-color: auto) {
    html,
    .nm-series-panel,
    .nm-menu-list {
        scrollbar-width: thin;
        scrollbar-color: var(--nm-scroll-thumb) transparent;
    }

    /* A panel's own, darker while the pointer is on it (the page's stays
       quiet: the pointer is always on the page). */
    .nm-series-panel:hover {
        scrollbar-color: var(--nm-scroll-thumb-on) transparent;
    }
}

@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
        background: transparent;
    }

    ::-webkit-scrollbar-track,
    ::-webkit-scrollbar-corner {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        /* A 3px line, centred in its 7px: the transparent border keeps a
           larger target for the pointer than the line it shows. */
        border: 2px solid transparent;
        border-radius: 7px;
        background: var(--nm-scroll-thumb);
        background-clip: padding-box;
    }

    ::-webkit-scrollbar-thumb:hover,
    ::-webkit-scrollbar-thumb:active {
        background-color: var(--nm-scroll-thumb-on);
    }

    ::-webkit-scrollbar-button {
        display: none;
    }
}

/* Selected words and the keyboard's place in Nik's colours: ink and
   paper, a hairline, never the browser's blue. */
::selection {
    background: var(--ink);
    color: var(--paper);
}

:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

/* Words linked in running text (Info, a project's Info, a page's text):
   a thin underline that drops a little further under the pointer. */
:is(.prose, .nm-info-columns, .nm-series-panel) a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .14em;
    transition: text-underline-offset .35s var(--nm-ease);
}

:is(.prose, .nm-info-columns, .nm-series-panel) a:hover,
:is(.share-cover-enter, .nm-notice-link):hover {
    text-underline-offset: .28em;
}

:is(.share-cover-enter, .nm-notice-link) {
    transition: text-underline-offset .35s var(--nm-ease);
}

html.nm-locked {
    overflow: hidden;
}

.page-blocks {
    --flow-gap: var(--space-8);
}

/* The home page breathes: wide space between its compositions. Its first
   one starts under the header when it fills a Full frame or a Half screen
   (Fill the frame), edge to edge; one whose picture is whole in it keeps
   the header's room above it and fits the rest of the screen, so the
   picture never meets the top of the screen behind the menu; any other
   keeps the header's room and some air. */
.nm-home {
    --page-grid-row-gap: clamp(5rem, 13vw, 12rem);
}

.nm-home main {
    padding-top: 0;
}

.nm-home .page-blocks > :first-child:not(:has(.nm-feature:is(.is-full, .is-half_left, .is-half_right))) {
    margin-top: calc(var(--nm-head-h) + var(--space-6));
}

.nm-home .page-blocks > :first-child .nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) {
    --nm-screen: calc(var(--vitrine-screen, 100svh) - var(--nm-head-h));
    padding-top: var(--nm-head-h);
}

/* -- Featured project, Free composition ------------------------------ *
 *
 * parts/feature: one composition, laid out across the screen as Nik's
 * sketch has them. Full frame and Half screen take the whole width, past
 * the page's margins, and the screen's height; Centred sits in the middle
 * with paper either side; Pair, Wide and Wide with a small one sit on four
 * columns; Pair the same size on two, paper around. The pictures are
 * whole, on the paper, unless the frame is filled (is-fill), the edges
 * cut. Each picture is its own link (.nm-feature-go): two projects in one
 * composition go to their own.
 */

.nm-feature {
    position: relative;
}

.nm-feature-frame {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: start;
}

.nm-feature figure {
    position: relative;
    margin: 0;
    min-width: 0;
}

.nm-feature-go {
    display: block;
}

.nm-feature :is(img, video) {
    display: block;
    width: 100%;
    height: auto;
}


/* The title under its picture, small, in capitals: each picture's own
   when two projects share a composition. */
.nm-caption {
    padding-top: var(--nm-caption-gap);
    text-wrap: balance;
    text-transform: uppercase;
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
}

/* The title large. Series: on the paper, in ink. Over a picture: black or
   white, whichever reads best over it (data-tone, from the picture's
   colour, parts/tone); white with a soft shade when it isn't known. */
.nm-feature-big {
    display: block;
    margin: 0;
    text-wrap: balance;
    font-size: var(--nm-huge);
    font-weight: var(--weight-display);
    line-height: .97;
    letter-spacing: 0;
}

.nm-feature:not(.is-series) .nm-feature-big {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    /* A little above the true centre, where the eye reads the middle. */
    padding: var(--gutter) var(--gutter) calc(var(--gutter) + 7%);
    color: #fff;
    text-shadow: 0 0 2rem rgb(0 0 0 / .25);
    text-align: center;
    pointer-events: none;
}

.nm-feature[data-tone="dark"]:not(.is-series) .nm-feature-big {
    color: #fff;
    text-shadow: none;
}

.nm-feature[data-tone="light"]:not(.is-series) .nm-feature-big {
    color: #000;
    text-shadow: none;
}

/* Full frame: the screen, edge to edge. */
.nm-feature:is(.is-full, .is-half_left, .is-half_right) .nm-feature-frame {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    gap: 0;
}

.nm-feature.is-full .nm-feature-frame {
    grid-template-columns: minmax(0, 1fr);
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right) .nm-feature-main > .nm-feature-go {
    height: var(--nm-screen);
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right) .nm-feature-go > :is(picture, .video-ambient),
.nm-feature:is(.is-full, .is-half_left, .is-half_right) .nm-feature-main .nm-feature-go > picture > img,
.nm-feature:is(.is-full, .is-half_left, .is-half_right) .nm-feature-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nm-feature.is-fill .nm-feature-main :is(img, video) {
    object-fit: cover;
}

/* Whole in a frame of another shape, a picture or a film is drawn at its
   own shape in the frame's middle, the paper around it: its box is what
   shows, so pointing at the paper beside it is pointing at nothing (the
   others fading back, below), and the colour Vitrine gives a picture while
   it loads (inline) never fills the frame as bands. One whose shape isn't
   known keeps the frame. */
.nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main > .nm-feature-go {
    display: grid;
    place-items: center;
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main .nm-feature-go > picture > img {
}

/* Edge to edge, its caption keeps the page's margin. */
.nm-feature:is(.is-full, .is-half_left, .is-half_right) .nm-caption {
    padding-inline: var(--gutter);
}

/* Its shape known (a picture's or a film's, parts/feature), the picture
   and its title are one block in the frame's middle, as wide as the
   picture: the title right under it, from its left edge to its right
   (Nik, #916), the picture leaving it a line of the screen. A picture as
   wide as the frame keeps the page's margin for its title. */
.nm-feature.has-below-title {
    --nm-title-room: calc(var(--nm-caption-gap) + var(--nm-small) * var(--nm-leading));
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main.is-shaped {
    --nm-whole: calc((var(--nm-screen) - var(--nm-title-room, 0px)) * var(--w) / var(--h));
    container-type: inline-size;
    display: grid;
    grid-template-columns: min(100%, var(--nm-whole));
    justify-content: center;
    align-content: center;
    min-height: var(--nm-screen);
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main.is-shaped > .nm-feature-go {
    display: block;
    height: auto;
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main.is-shaped .nm-feature-go > :is(picture > img, .video-ambient) {
    width: 100%;
    height: auto;
    aspect-ratio: var(--w) / var(--h);
}

.nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main.is-shaped .nm-caption {
    padding-inline: max(0px, var(--gutter) - (100cqw - min(100cqw, var(--nm-whole))) / 2);
}

/* Centred: one, medium, in the middle of the page, paper either side; a
   film as large as the screen's height lets it. */
.nm-feature.is-centred .nm-feature-frame {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.nm-feature.is-centred .nm-feature-main {
    width: min(66%, (var(--nm-screen) - var(--nm-head-h) * 2) * var(--w, 16) / var(--h, 9));
}

.nm-feature.is-centred .nm-feature-main .video-ambient[data-ratio] {
    width: 100%;
}

/* Half screen: one half the picture, the other the paper (or a small one
   centred on it). */
.nm-feature:is(.is-half_left, .is-half_right) .nm-feature-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.nm-feature.is-half_right .nm-feature-main {
    grid-column: 2;
    grid-row: 1;
}

.nm-feature:is(.is-half_left, .is-half_right) .nm-feature-second {
    justify-self: center;
    width: min(46%, 22rem);
    grid-row: 1;
}

.nm-feature.is-half_left .nm-feature-second {
    grid-column: 2;
}

.nm-feature.is-half_right .nm-feature-second {
    grid-column: 1;
}

/* Pair: a large one (two columns) and a small one (one), off the grid. */
.nm-feature.is-pair_left .nm-feature-main {
    grid-column: 1 / span 2;
}

.nm-feature.is-pair_left .nm-feature-second {
    grid-column: 4;
    grid-row: 1;
}

.nm-feature.is-pair_right .nm-feature-main {
    grid-column: 3 / span 2;
    grid-row: 1;
}

.nm-feature.is-pair_right .nm-feature-second {
    grid-column: 1;
    grid-row: 1;
    margin-top: 30%;
}

/* Pair, the same size: two side by side, each as wide as the other, the
   paper around them. */
.nm-feature.is-pair_even .nm-feature-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 6rem);
    /* Their feet on one line, so their captions read across as one. */
    align-items: end;
    padding-inline: clamp(0rem, 9vw, 10rem);
}

/* Their titles under them: two rows, the pictures' and the titles', each
   figure across both (subgrid). The pictures' feet stay on one line and
   the titles start on the next, whether both have one, one does (the
   second picture of the same project has none) or one runs longer (Nik,
   #921): a title never lifts its picture. */
.nm-feature.is-pair_even.has-below-title .nm-feature-frame {
    row-gap: 0;
}

.nm-feature.is-pair_even.has-below-title :is(.nm-feature-main, .nm-feature-second) {
    grid-row: 1 / span 2;
    align-self: stretch;
    display: grid;
    grid-template-rows: subgrid;
}

.nm-feature.is-pair_even.has-below-title :is(.nm-feature-main, .nm-feature-second) > .nm-feature-go {
    align-self: end;
}

/* Wide: three columns of four, on its side. */
.nm-feature:is(.is-wide_left, .is-wide_left_small) .nm-feature-main {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.nm-feature:is(.is-wide_right, .is-wide_right_small) .nm-feature-main {
    grid-column: 2 / span 3;
    grid-row: 1;
}

/* Wide and a small one: the small one centred in the quarter left. */
.nm-feature:is(.is-wide_left_small, .is-wide_right_small) .nm-feature-frame {
    align-items: center;
}

.nm-feature:is(.is-wide_left_small, .is-wide_right_small) .nm-feature-second {
    grid-row: 1;
    justify-self: center;
    width: 72%;
}

.nm-feature.is-wide_left_small .nm-feature-second {
    grid-column: 4;
}

.nm-feature.is-wide_right_small .nm-feature-second {
    grid-column: 1;
}

/* Their titles under them: the small one centred on the wide picture, not
   on the picture and its title; its own title hangs under it, out of the
   way, so it doesn't lift it either. */
@media (min-width: 761px) {
    .nm-feature.has-below-title:is(.is-wide_left_small, .is-wide_right_small) .nm-feature-frame {
        row-gap: 0;
    }

    .nm-feature.has-below-title:is(.is-wide_left_small, .is-wide_right_small) .nm-feature-main {
        grid-row: 1 / span 2;
        align-self: stretch;
        display: grid;
        grid-template-rows: subgrid;
    }

    .nm-feature.has-below-title:is(.is-wide_left_small, .is-wide_right_small) .nm-feature-second > .nm-caption {
        position: absolute;
        top: 100%;
        inset-inline: 0;
    }
}

/* Series: its title large, then every picture small, in one strip across
   the page: eight to the width, or as many as there are past eight (on a
   phone, three across, below). Each goes to the project at that picture. */
.nm-feature.is-series .nm-feature-frame {
    display: block;
}

.nm-strip {
    display: grid;
    grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr));
    gap: 2px;
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
    align-items: start;
}

/* On a phone, three across, as the reference: large enough to see. */
@media (max-width: 760px) {
    .nm-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* On a phone, every composition the width of the screen, one above the
   other, its small picture under it on the right: whatever side each takes
   on a computer (named here, so these beat the rules that place them). */
@media (max-width: 760px) {
    .nm-feature-frame,
    .nm-feature:is(.is-half_left, .is-half_right, .is-pair_even, .is-wide_left_small, .is-wide_right_small) .nm-feature-frame {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--gutter);
        padding-inline: 0;
        height: auto;
    }

    .nm-feature .nm-feature-main,
    .nm-feature:is(.is-centred, .is-half_left, .is-half_right, .is-pair_left, .is-pair_right, .is-pair_even, .is-wide_left, .is-wide_right, .is-wide_left_small, .is-wide_right_small) .nm-feature-main {
        grid-column: 1 / -1;
        grid-row: auto;
        width: auto;
    }

    /* A Full frame whole on a phone too: the picture at its own height, its
       title right under it, as Centred. A wide picture kept to the
       screen's height left a screen of paper around it (Nik, #939). Filled,
       it keeps the screen (below). */
    .nm-feature:is(.is-half_left, .is-half_right) .nm-feature-main > .nm-feature-go,
    .nm-feature.is-full:not(.is-fill) .nm-feature-main > .nm-feature-go {
        height: auto;
    }

    .nm-feature:is(.is-full, .is-half_left, .is-half_right):not(.is-fill) .nm-feature-main.is-shaped {
        min-height: 0;
    }

    .nm-feature .nm-feature-second,
    .nm-feature:is(.is-half_left, .is-half_right, .is-pair_left, .is-pair_right, .is-wide_left_small, .is-wide_right_small) .nm-feature-second {
        grid-column: 2;
        grid-row: auto;
        justify-self: stretch;
        width: auto;
        margin-top: 0;
    }

    /* Two the same size stay two: one column each, the paper's margin. */
    .nm-feature.is-pair_even .nm-feature-main,
    .nm-feature.is-pair_even .nm-feature-second {
        grid-column: auto;
    }

    .nm-feature.is-full.is-fill .nm-feature-main > .nm-feature-go {
        height: var(--nm-screen);
    }
}

/* A picture or film pointed at: every other one fades back toward the
   paper (the Kit's data-fade-others, on <body>; each picture marked in
   the templates: data-fade, data-fade-link, data-fade-media). */

/* -- Work: the index of every project --------------------------------- *
 *
 * parts/tile: each cover whole at its own shape, its title under it in
 * small capitals. Mosaic: rows of one height, each the page's width.
 * Grid: four across, each cover whole in its column.
 */

.nm-work {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A tile is its column's width, never its film's: a loop's file says how
   wide it is (1920), and an iPhone's WebKit (Nik's, iOS before 27) let that
   widen the tile's own column, the tile drawn ten times its size off the
   screen. The column holds nothing wider than itself. */
.nm-tile-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nm-caption-gap);
}

.nm-tile-media {
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: var(--w, 4) / var(--h, 3);
    background: var(--media-bg);
}

.nm-tile-media :is(picture, img, video, .video-ambient) {
    display: block;
    width: 100%;
    height: 100%;
}

.nm-tile-media img,
.nm-tile-media video {
    object-fit: contain;
}


.nm-tile-blank {
    display: block;
    height: 100%;
}

.nm-tile-title {
    text-transform: uppercase;
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
    text-wrap: balance;
}

.nm-work.is-mosaic {
    --row: clamp(8rem, 15vw, 15rem);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6) var(--gutter);
}

.nm-work.is-mosaic > .nm-tile {
    flex: calc(var(--w, 4) / var(--h, 3) * 100) 1 calc(var(--row) * var(--w, 4) / var(--h, 3));
    min-width: 0;
}

.nm-work.is-mosaic::after {
    content: "";
    flex: 1e4 1 0;
}

.nm-work.is-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-7) var(--gutter);
    align-items: start;
}

/* Index: a row for each project, its title over its pictures, every one
   of one height, spread from the page's left edge to its right, each
   counted beside its top. */
.nm-index {
    --pic: clamp(4.5rem, 8.5vw, 10rem);
    display: grid;
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A row off screen is not laid out or painted until the reader nears it
   (a project's worth of pictures each): its room kept, a title's line and
   a picture's height, so the page's length and the scrollbar don't jump. */
.nm-index-row {
    content-visibility: auto;
    contain-intrinsic-size: auto calc(var(--pic) + var(--nm-small) * var(--nm-leading));
}

.nm-index-title {
    margin: 0;
    font-size: var(--nm-small);
    font-weight: var(--weight-body);
    line-height: var(--nm-leading);
    text-transform: uppercase;
}

.nm-index-pictures {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3) var(--gutter);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-index-picture {
    display: flex;
    align-items: flex-start;
    gap: .3em;
    line-height: var(--nm-leading);
}

.nm-index-picture a {
    display: block;
}

/* Each at its own shape (--r, from the template) and the row's height:
   its width known before it arrives, so the browser fetches the file that
   size and the row never shifts. */
.nm-index-picture :is(img, video, .video-ambient) {
    display: block;
    width: calc(var(--pic) * var(--r, 1.778));
    height: var(--pic);
    object-fit: contain;
}


@media (max-width: 760px) {
    .nm-work.is-mosaic {
        --row: 7rem;
    }

    .nm-work.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-index {
        --pic: 4.5rem;
    }

    .nm-index-pictures {
        justify-content: flex-start;
    }
}

/* -- Process: a loose wall --------------------------------------------- *
 *
 * Behind the scenes, sketches, tests, over two or three columns, each set
 * a little apart from the last, as Nik's sketch lays them.
 */

.nm-process-wall {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(3rem, 8vw, 7rem) var(--gutter);
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: start;
}

.nm-process.is-three .nm-process-item:nth-child(5n + 1) { grid-column: 1 / span 2; }
.nm-process.is-three .nm-process-item:nth-child(5n + 2) { grid-column: 4 / span 2; margin-top: 12vw; }
.nm-process.is-three .nm-process-item:nth-child(5n + 3) { grid-column: 2 / span 2; }
.nm-process.is-three .nm-process-item:nth-child(5n + 4) { grid-column: 5 / span 2; margin-top: 6vw; }
.nm-process.is-three .nm-process-item:nth-child(5n + 5) { grid-column: 1 / span 3; margin-top: 4vw; }

.nm-process.is-two .nm-process-item:nth-child(4n + 1) { grid-column: 1 / span 3; }
.nm-process.is-two .nm-process-item:nth-child(4n + 2) { grid-column: 5 / span 2; margin-top: 10vw; }
.nm-process.is-two .nm-process-item:nth-child(4n + 3) { grid-column: 2 / span 2; }
.nm-process.is-two .nm-process-item:nth-child(4n + 4) { grid-column: 4 / span 3; margin-top: 5vw; }

.nm-process-link {
    display: grid;
    gap: var(--nm-caption-gap);
}

.nm-process-link :is(img, video) {
    display: block;
    width: 100%;
    height: auto;
}


.nm-process-title {
    text-transform: uppercase;
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
    text-wrap: balance;
}

@media (max-width: 760px) {
    .nm-process .nm-process-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-7) var(--gutter);
    }

    /* As specific as the computer's placements above (0,4,0), so these win:
     * left at one of those, an item asks for column 5 of a two-column grid
     * and the wall falls apart into slivers. */
    .nm-process:is(.is-three, .is-two) .nm-process-item:nth-child(n) {
        grid-column: auto;
        margin-top: 0;
    }

    .nm-process:is(.is-three, .is-two) .nm-process-item:nth-child(3n + 1) {
        grid-column: 1 / -1;
    }
}

/* -- Info, the section --------------------------------------------- *
 *
 * The menu's Info page holds it: drawn as Nik's own page (parts/info,
 * below), in the page's grid.
 */

.nm-info-block {
    scroll-margin-top: var(--nm-head-h);
}

#work {
    scroll-margin-top: var(--nm-head-h);
}

/* -- A project, one picture at a time (Series) ------------------------ *
 *
 * project/series: the picture centred on the paper, as large as the screen
 * allows, whole; its title and where the reader is, small, bottom left;
 * Info beside it bringing the words up over the picture.
 */

.nm-is-series main {
    padding-top: 0;
}

.nm-series {
    position: relative;
    padding: 0 var(--gutter);
}

.nm-slides {
    display: grid;
    gap: var(--space-8);
    padding: var(--nm-head-h) 0 var(--space-8);
}

.nm-slide {
    margin: 0;
}

.nm-slide :is(img, video) {
    display: block;
    width: 100%;
    height: auto;
}

/* As a viewer (the script before the first paint): one slide, the screen. */
.nm-series.is-viewer .nm-slides {
    display: grid;
    place-items: center;
    height: var(--nm-screen);
    padding: calc(var(--nm-head-h) + var(--space-3)) calc(var(--gutter) * 2) calc(var(--nm-head-h) + var(--space-5));
    /* A picture to take in the hand, as on the reference: dragged sideways
       (nik.js), a vertical swipe left to the page (scrolling closes). The
       pointer says which way a click goes (below, is-back). */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.nm-series.is-viewer .nm-slides.is-dragging {
    cursor: grabbing;
}

.nm-series.is-viewer .nm-slide img {
    -webkit-user-drag: none;
}

/* Let go short of the next one: back where it was. */
.nm-series.is-viewer .nm-slide.is-settling {
    transition: transform .4s var(--nm-ease);
}

/* Scrolled away: the picture and its words fade as the page before comes
   back. */
.nm-series.is-leaving :is(.nm-slides, .nm-series-foot) {
    opacity: 0;
    transform: translateY(-1.5vh);
    transition: opacity .32s var(--nm-ease), transform .32s var(--nm-ease);
}

.nm-series.is-viewer .nm-slide[hidden] {
    display: none;
}

.nm-series.is-viewer .nm-slide {
    width: min(100%, calc((var(--nm-screen) - var(--nm-head-h) * 2 - var(--space-8)) * var(--ratio, 16 / 9)));
    max-height: 100%;
}

.nm-series.is-viewer .nm-slide.is-image img {
    max-height: calc(var(--nm-screen) - var(--nm-head-h) * 2 - var(--space-8));
    width: 100%;
    object-fit: contain;
}

/* A film at its own shape (--ratio, from the template, as a picture's; a
   Vimeo or YouTube film 16:9), never taller than the stage: the player
   takes the film's shape (the Kit's), so a 4:3 or portrait film sized as
   16:9 ran into the foot. */
.nm-series.is-viewer .nm-slide:is(.is-video, .is-embed) {
    width: min(100%, calc((var(--nm-screen) - var(--nm-head-h) * 2 - var(--space-8)) * var(--ratio, 16 / 9)));
    cursor: auto;
}

.nm-series.is-viewer .nm-slide.is-video .video {
    max-width: 100%;
    max-height: calc(var(--nm-screen) - var(--nm-head-h) * 2 - var(--space-8));
}

.nm-series:not(.is-viewer) .nm-slide[hidden] {
    display: block;
}

.nm-series-foot {
    display: flex;
    align-items: baseline;
    gap: var(--space-5);
    padding: var(--space-4) 0 var(--space-6);
    font-size: var(--nm-small);
}

.nm-series-title {
    text-transform: uppercase;
}

/* "9/12" to "10/12" doesn't push Info aside: figures of one width, and
   room kept for the longest count (its width, from the template). */
.nm-series-where [data-nm-count] {
    display: inline-block;
    min-width: var(--nm-count-w, 0);
    font-variant-numeric: tabular-nums lining-nums;
}

.nm-series.is-viewer .nm-series-foot {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    z-index: 3;
    padding: var(--gutter) 0;
}

.nm-series-where {
    margin: 0;
}

.nm-series-info summary {
    list-style: none;
    cursor: pointer;
}

.nm-series-info summary::-webkit-details-marker {
    display: none;
}

.nm-series-info[open] summary {
    font-style: italic;
}

.nm-series-panel {
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--nm-small);
    line-height: 1.4;
}

/* Open over the work: a sheet of paper, whole (nothing of the picture
   through it), from under the header to the foot's line (the title, Info);
   its words scroll in it, by the wheel, a trackpad or a finger anywhere on
   it. It sits in the foot (fixed), so it stops short of the foot's line
   rather than going under it. */
.nm-series.is-viewer .nm-series-panel {
    position: fixed;
    /* Under the header, wherever the preview's note (signed in) puts it. */
    inset: calc(var(--nm-head-h) + var(--preview-note-offset, 0px)) 0 calc(var(--nm-head-h) + var(--space-3)) 0;
    z-index: 2;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-6) var(--gutter);
    background: var(--bg);
}

.nm-series-tagline {
    margin: 0 0 var(--space-4);
    font-size: var(--nm-type);
    line-height: 1.2;
}

/* Info open: the picture or film under it is out of sight, so none of it
   shows between the sheet and the foot's line. */
.nm-series.is-viewer:has(.nm-series-info[open]) .nm-slides {
    visibility: hidden;
}

/* Its words larger than the rest of the site's small type: the
   description at a block title's size, the credits a step over the small
   size. */
.nm-series-panel .prose {
    font-size: var(--nm-type);
    line-height: 1.25;
}

.nm-series-panel > * {
    max-width: 52rem;
}

/* Its headings at the credits' size: "Credits" and a group's title, set
   apart by italics, not size. */
.nm-series-panel :is(.project-credits-title, .credits-group-title) {
    margin: 0 0 var(--space-3);
    font-size: var(--nm-credit);
    font-weight: inherit;
    font-style: italic;
    line-height: 1.4;
}

.nm-series-panel .project-credits {
    --nm-credit: 1.25rem;
    margin-top: var(--space-6);
    font-size: var(--nm-credit);
    line-height: 1.35;
}

/* Credits in columns, as many as the sheet holds (chosen with Nik,
   November 2026): each credit the role, small, in italics, over the names;
   no indent (a <dl>'s own is the browser's). Compact for a long crew. */
.nm-series-panel .credits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
    gap: .9rem 1.4rem;
    margin: 0;
}

.nm-series-panel .credits-row {
    min-width: 0;
}

.nm-series-panel :is(.credits-role, .credits-name) {
    margin: 0;
}

.nm-series-panel .credits-role {
    color: var(--muted);
    font-size: .82em;
    font-style: italic;
}

/* A credit with no role keeps the role's line, so its name sits level
   with its neighbours'. */
.nm-series-panel .credits-role:empty::before {
    content: "\00a0";
}

.nm-series-panel .credits-group + .credits-group {
    margin-top: var(--space-5);
}

/* The way around, with script: ← and → at the sides, small, in the
   page's margin (always on the paper, so in ink); and under the picture,
   faint, the word that says a scroll leaves. A click on either half of the
   picture walks too, the pointer saying which way. */
.nm-step,
.nm-series-hint {
    display: none;
}

.nm-series.is-viewer .nm-step {
    position: fixed;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: calc(var(--gutter) * 2);
    height: 4rem;
    margin-top: -2rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: .55;
    transition: opacity var(--nm-calm) var(--nm-ease);
}

.nm-series.is-viewer .nm-step:hover,
.nm-series.is-viewer .nm-step:focus-visible {
    opacity: 1;
}

.nm-series.is-viewer .nm-step.is-prev {
    left: 0;
}

.nm-series.is-viewer .nm-step.is-next {
    right: 0;
}

.nm-series.is-viewer .nm-series-hint {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 1;
    display: block;
    margin: 0;
    padding: var(--gutter) 0;
    transform: translateX(-50%);
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
    white-space: nowrap;
    opacity: .4;
    pointer-events: none;
}

/* Bottom right, the way to the Process page (back to the picture when the
   project was opened from it: nik.js), in the foot's type, as Info is. */
.nm-series:not(.is-viewer) .nm-series-back {
    display: none;
}

.nm-series.is-viewer .nm-series-back {
    position: fixed;
    right: var(--gutter);
    bottom: 0;
    z-index: 3;
    padding: var(--gutter) 0;
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
    white-space: nowrap;
    text-decoration: none;
    /* Under the pointer, the menu's hairline drawn in under the words. */
    background-image: linear-gradient(currentColor, currentColor);
    background-origin: content-box;
    background-clip: content-box;
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .45s var(--nm-ease);
}

.nm-series.is-viewer .nm-series-back:focus-visible {
    background-size: 100% 1px;
}

@media (hover: hover) {
    .nm-series.is-viewer .nm-series-back:hover {
        background-size: 100% 1px;
    }
}

/* On a phone the foot's line is full: it stops short of the Process link
   (its width, from the template). */
@media (max-width: 760px) {
    .nm-series.is-viewer:has(.nm-series-back) .nm-series-foot {
        right: calc(var(--gutter) + var(--nm-back-w, 9ch) + var(--space-5));
    }
}

.nm-series.is-leaving .nm-series-back {
    opacity: 0;
    transition: opacity .32s var(--nm-ease);
}

/* Info open: neither the arrows, the hint nor the way back over its words. */
.nm-series.is-viewer:has(.nm-series-info[open]) :is(.nm-step, .nm-series-hint, .nm-series-back) {
    visibility: hidden;
}

.nm-series.is-viewer .nm-slides {
    cursor: e-resize;
}

.nm-series.is-viewer .nm-slides.is-back {
    cursor: w-resize;
}

/* A long title stops short of the hint, on two lines if it must: the
   foot's line ends where the hint begins (its width, from the template).
   Not on a phone, where the hint gives way (below), nor in the editor,
   which has none. */
@media (min-width: 761px) {
    .nm-series.is-viewer:has(.nm-series-hint) .nm-series-foot {
        right: calc(50% + var(--nm-hint-w, 10ch) / 2 + var(--space-5));
        /* Info on the title's last line, beside the count and the hint. */
        align-items: last baseline;
    }

    .nm-series.is-viewer:has(.nm-series-hint) .nm-series-where {
        text-wrap: balance;
    }
}

/* On a phone the foot's line is full: the hint gives way, a swipe is
   the phone's own way out. */
@media (max-width: 760px) {
    .nm-series.is-viewer .nm-series-hint {
        display: none;
    }

    .nm-series.is-viewer .nm-step {
        width: var(--gutter);
        font-size: 1.1rem;
    }
}

/* The arrows at the foot are for a reader without script; the viewer
   walks with a click, the keys and a swipe. */
.nm-series .pager {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-7);
}

.nm-series.is-viewer .pager {
    display: none;
}

/* Words over a picture or film (a film's controls, its Play): black or
   white, whichever reads best over it, from its colour (data-tone, set
   by the template where it knows it, else by nik.js). */
[data-tone="dark"] {
    --nm-over: #fff;
}

[data-tone="light"] {
    --nm-over: #000;
}

/* -- A film's player ----------------------------------------------- *
 *
 * The Kit's player in its words (data-video-look="words" on <body>): the
 * still on the paper, "Play" at its foot; once played, its controls are
 * words along that foot, over the film in black or white, whichever reads
 * best over it (data-tone, --nm-over). Here only Nik's colours and size.
 */
.video {
    --video-frame: var(--bg);
    --video-fg: var(--nm-over, #fff);
    --video-accent: var(--nm-over, #fff);
    --video-words-color: var(--nm-over, #fff);
    --video-words-size: var(--nm-small);
    --video-gap: 1.1em;
}

.video .video-controls {
    transition: opacity var(--nm-calm) var(--nm-ease);
}

/* -- A project laid out freely (Free) --------------------------------- */

.nm-free {
    padding: var(--space-6) var(--gutter) var(--section);
}

.nm-free-head {
    margin-bottom: var(--space-8);
}

.nm-free-head h1 {
    margin: 0 0 var(--space-4);
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1;
}

.nm-free-tagline {
    margin: 0 0 var(--space-4);
    font-size: var(--nm-type);
}

.nm-free-head .prose {
    max-width: 34rem;
}

.nm-free-credits {
    margin-top: var(--section);
    font-size: var(--nm-small);
}

/* -- Info: Nik's own page ------------------------------------------- *
 *
 * parts/info, the menu's Info and his artist page alike: the bio on the
 * left; who represents him, how to reach him and his links beside it; his
 * clients and editorial work, when listed, in columns under those; all at
 * the one small size. No title: the header says Nik Mirus (#927).
 */

/* Under the header as a page's blocks are (the menu's Info). */
.nm-info {
    padding: 0 var(--gutter) var(--section);
}

.nm-info-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--gutter);
    align-items: start;
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
}

.nm-info-bio {
    grid-row: span 2;
}

.nm-info-bio .prose {
    max-width: var(--width-text);
}

.nm-info-side {
    grid-column: 2 / -1;
    display: grid;
    gap: calc(var(--nm-small) * var(--nm-leading));
}

.nm-info-group p {
    margin: 0;
}

.nm-info-columns a {
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

.nm-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-info-heading {
    margin: 0;
    font-size: inherit;
    font-weight: var(--weight-body);
    text-transform: uppercase;
}

.nm-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 760px) {
    .nm-info-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-info-bio,
    .nm-info-side {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* -- Never cropped ---------------------------------------------------- *
 *
 * Nik's work is never cut to fit a frame. Wherever the Kit or a block
 * would fill a frame by cropping (a film's loop, a Vimeo poster, a card, a
 * list's cover, a uniform or justified grid, a share's banner), the picture
 * shows whole inside it, on the paper rather than its placeholder colour.
 */

:root {
    --media-fit: contain;
}

/* On the paper, never its loading colour (the Kit's --placeholder). */
img {
    background-color: transparent;
}

/* A Vimeo or YouTube poster too (the Kit crops it). */
.embed-link img {
    object-fit: contain;
}

/* A film whole on the paper, no colour round it; its first frame is held
   behind it as the loop turns (the Kit's, video-player.js). */
.video-ambient,
.embed {
    background-color: transparent;
}

/* -- Pages, presentations and reels: the editor's blocks ------------ *
 *
 * What Nik builds in the control panel, in his site's look: a title as
 * large as a project's, words at reading size, the work whole and with air
 * around it, no boxes, borders or rules. Where the blocks go is Vitrine's
 * (its twelve-column grid); this is only how they look.
 */

:root {
    --page-grid-gap: clamp(1rem, 3vw, 2.5rem);
    --page-grid-row-gap: clamp(3rem, 8vw, 7rem);
    --page-stack-gap: clamp(1.5rem, 4vw, 3rem);
}

/* A page's own title, and a presentation's: as a project's. */
.page-freeform > h1,
.share-presentation > h1 {
    margin: var(--space-5) 0 var(--space-6);
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1;
    letter-spacing: 0;
}

/* Text: a title alone, a title with its text, text alone. */
.block-title {
    margin: 0;
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1.05;
    letter-spacing: 0;
}

.block-title-text .block-title {
    margin-bottom: .6em;
    font-size: var(--nm-type);
    line-height: 1.15;
}

.block-paragraph {
    max-width: 36rem;
    font-size: var(--text-lg);
    line-height: 1.45;
}

.block-paragraph.is-center {
    margin-inline: auto;
}

.block-paragraph.is-right {
    margin-left: auto;
}

.block-paragraph :is(p, ul, ol) + :is(p, ul, ol) {
    margin-top: .75em;
}

.block-paragraph a {
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

/* A list's filter (by discipline, by tag): words, not pills; the one
   chosen in ink and underlined, the others quiet. */
.filter .chips {
    gap: var(--space-2) var(--space-5);
    margin-bottom: var(--space-6);
}

.filter .chip {
    --chip-height: auto;
    --chip-padding: 0;
    --chip-border: 0;
    --chip-radius: 0;
    --chip-size: var(--nm-small);
    --chip-current-bg: none;
    --chip-current-ink: var(--ink);
    --chip-current-decoration: underline;
    transition: color var(--nm-calm) var(--ease);
}

/* Pictures and films: whole, as little air between them as a gallery's,
   no captions. */
.block-media-grid {
    --grid-gap: clamp(.5rem, 1.2vw, 1rem);
}

/* Lists of artists and projects (Artists & projects), in every layout but
   the feed (a list of projects alone is the feed: blocks/records). */
.block-records ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.block-records .record-link {
    display: grid;
    gap: var(--space-2);
}

/* Its own shape, never the Kit's frame (4:3, 16:10 featured, 3:2 in
   rows): a portrait stays whole, not cut at the frame's foot. */
.record-media {
    display: block;
    aspect-ratio: auto;
    overflow: visible;
}

.record-media img,
.record-media > .video-ambient {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
}

.record-title {
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
    text-transform: uppercase;
}

.record-meta,
.record-excerpt {
    color: var(--muted);
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
}

.record-text {
    display: grid;
    gap: var(--space-1);
}

/* Pointed at, the others fade back (the site's hover, above). */

/* Cards, the default: four across at most (as Work's Grid), fewer where
   the list is narrow, each cover whole. */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(11rem, (100% - 3 * var(--gutter)) / 4)), 1fr));
    gap: var(--space-7) var(--gutter);
    align-items: start;
}

/* Rows: a small cover beside the words, a line of air between. */
.records-list {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.records-list .record-link {
    grid-template-columns: 10rem minmax(0, 1fr);
    align-items: start;
    gap: var(--space-5);
}

/* Featured: large, one or two across. */
.records-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
    gap: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

/* Index: names, large, one under the other; what each is, quiet, beside. */
.records-index {
    display: grid;
    gap: var(--space-3);
}

.records-index .record-link {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: var(--space-1) var(--space-5);
}

.records-index-title {
    font-size: var(--nm-type);
    line-height: 1.15;
}

.records-index-meta,
.records-index-tags {
    color: var(--muted);
    font-size: var(--nm-small);
}

.records-index-tags {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .records-list .record-link {
        grid-template-columns: 6rem minmax(0, 1fr);
        gap: var(--space-4);
    }
}

/* -- Shares: what Nik sends ------------------------------------------ *
 *
 * A gallery, a presentation, a reel, a delivery, and the door some of
 * them have (a password, a link that has expired): in the site's look.
 * The starter's share styles keep their structure (style.css, which shares
 * still load); this sets their colours, type and air to Nik's, and the
 * work whole.
 */

.share-body,
.share-body.is-gallery {
    --share-canvas: var(--bg);
    --share-ink: var(--ink);
    --share-muted: var(--muted);
    --share-gap: clamp(.5rem, 1.2vw, 1rem);
    --share-edge: var(--gutter);
    --share-viewer-bg: var(--bg);
    background: var(--bg);
    color: var(--ink);
}

/* Shares in Nik's corners (a presentation, a reel, the door): the page
   under them. The gallery and the delivery draw their own top and keep
   their own margins. */
.share-body:not(.is-gallery):not(.is-delivery) .share-main {
    max-width: none;
    padding: var(--nm-head-h) var(--gutter) var(--section);
}

/* The gallery and the delivery have no corners over them (their cover,
   their own top): no room kept for them. */
.share-body:is(.is-gallery, .is-delivery) main {
    padding-top: 0;
}

/* A delivery: its files, on the paper, in Nik's type, from the page's
   left edge as the gallery: no column in the middle, no boxes. */
.share-body.is-delivery {
    --dl-canvas: var(--bg);
    --dl-ink: var(--ink);
    --dl-muted: var(--muted);
    --dl-line: var(--line);
    --dl-line-strong: color-mix(in srgb, var(--ink) 25%, transparent);
    --dl-tile: color-mix(in srgb, var(--ink) 4%, var(--bg));
    --dl-edge: var(--gutter);
    --dl-radius: 0;
}

.dl-top {
    border-bottom: 0;
    padding: var(--gutter);
}

.dl-brand {
    font-family: var(--font-name);
    font-weight: var(--weight-name);
    font-size: var(--nm-name-type);
    line-height: calc(var(--nm-name) * 1.1);
}

/* Every word but its title at the one small size. */
.share-body.is-delivery :is(.dl-from, .dl-facts, .dl-facts *, .dl-btn, .dl-btn-note, .dl-name, .dl-type, .dl-size, .dl-views, .dl-viewer-bar) {
    font-size: var(--nm-small);
    letter-spacing: 0;
}

.dl-id h1 {
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1;
    letter-spacing: 0;
}

.share-body.is-delivery .share-main {
    max-width: none;
    padding: 0 var(--gutter) var(--section);
}

/* Its title, who sent it and what it holds, then what to do with it, one
   under the other on the left. */
.dl-head {
    display: block;
    padding: calc(var(--nm-head-h) + var(--space-5)) 0 var(--space-6);
    border-bottom: 0;
}

.dl-id {
    max-width: none;
}

.dl-from,
.dl-facts {
    margin: 0;
    line-height: var(--nm-leading);
}

.dl-actions {
    gap: 1.5em;
    margin-top: calc(var(--nm-small) * var(--nm-leading));
}

/* Its buttons as words, underlined as a link is here; the icons go. */
.dl-btn,
.dl-btn.is-primary,
.dl-btn.is-small {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--ink);
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

.dl-btn:hover,
.dl-btn.is-primary:hover {
    background: none;
    color: var(--ink);
    opacity: .6;
}

.dl-btn > svg {
    display: none;
}

/* Side by side from the left, on a phone too (the Kit stretches them). */
.dl-actions .dl-btn {
    flex: none;
    justify-content: flex-start;
}

.dl-actions {
    justify-content: flex-start;
}

.dl-btn .dl-btn-note {
    color: var(--muted);
    text-decoration: none;
}

/* Grid or list: two words, the one shown underlined. */
.dl-bar {
    padding: 0 0 var(--space-4);
}

.dl-views {
    gap: 1em;
    border: 0;
    border-radius: 0;
    background: none;
}

.dl-views button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font: inherit;
}

.dl-views button[aria-pressed="true"] {
    background: none;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

.dl-views svg {
    display: none;
}

.dl-views .sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: nowrap;
}

/* In the grid, as many across as the gallery, a little air between, the
   name whole under its picture. */
.dl-files.is-grid .dl-list {
    grid-template-columns: repeat(auto-fill, minmax(min(45%, 15rem), 1fr));
    gap: var(--space-6) var(--share-gap);
}

.dl-files.is-grid :is(.dl-name, .dl-type, .dl-size) {
    padding-inline: 0;
}

.dl-files.is-grid .dl-name {
    padding-top: var(--space-2);
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: var(--nm-leading);
}

/* Its files as the work is everywhere: no boxes, the picture whole; a file
   chosen for download is marked by a thin line around it. */
.dl-files.is-grid .dl-file {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    outline: 1px solid transparent;
    outline-offset: var(--space-2);
    transition: outline-color var(--nm-calm) var(--ease), opacity var(--nm-calm) var(--ease);
}

.dl-files.is-grid .dl-file:hover {
    box-shadow: none;
    opacity: .8;
}

.dl-files.is-grid .dl-file.is-selected {
    box-shadow: none;
    outline-color: var(--ink);
}

/* Whole in its frame (4:3 in the grid, a square in the list): a portrait
   fitted, not cut at the frame's foot. One row and column that may shrink,
   so the frame's height is one the picture can measure itself against (as
   the gallery's rows). */
.dl-files .dl-thumb {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

.dl-files.is-grid .dl-thumb {
    background: none;
}

.dl-files .dl-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left bottom;
    box-shadow: none;
}

.dl-message {
    padding: 0;
    background: none;
    font-size: var(--nm-small);
}

/* A gallery's cover: the picture whole on the paper, with the site's name,
   the gallery's title and the way in in Nik's corners; no wash over it, no
   frame drawn on it. */
.share-cover {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    padding: calc(var(--gutter) * 2 + var(--nm-small) * var(--nm-leading) + var(--nm-title) + var(--space-5)) var(--gutter) calc(var(--gutter) * 2 + var(--nm-small) * var(--nm-leading));
    background: var(--bg);
    color: var(--ink);
}

.share-cover::after {
    content: none;
}

.share-cover > picture {
    display: contents;
}

.share-cover img {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.share-cover-frame {
    inset: 0;
    left: 0;
    width: auto;
    transform: none;
    grid-template-rows: auto auto 1fr auto;
    justify-items: start;
    align-items: start;
    gap: var(--space-3);
    padding: var(--gutter);
    border: 0;
    text-align: left;
    pointer-events: none;
}

.share-cover-frame a {
    pointer-events: auto;
}

.share-cover-mark,
.share-cover-enter {
    color: var(--ink);
    font-size: var(--nm-small);
    letter-spacing: 0;
    line-height: var(--nm-leading);
    text-transform: none;
}

/* His name as the site's header sets it, larger than the rest: the
   gallery's cover, its bar, a delivery's top (the Kit's own pages draw it
   themselves). */
.share-cover-mark {
    font-family: var(--font-name);
    font-weight: var(--weight-name);
    font-size: var(--nm-name-type);
    line-height: calc(var(--nm-name) * 1.1);
}

.share-cover-title {
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1;
    letter-spacing: 0;
    text-shadow: none;
}

.share-cover-enter {
    grid-row: 4;
    align-self: end;
    padding: 0;
    border: 0;
    text-decoration: underline;
    text-underline-offset: .15em;
    text-decoration-thickness: 1px;
}

/* The bar over the grid: the gallery's name and the site's, one under the
   other as the header has them, on the paper, no rule under it. */
.share-bar {
    padding: var(--gutter);
    background: var(--bg);
    border: 0;
}

.share-bar h1 {
    font-size: var(--nm-small);
    font-weight: var(--weight-display);
    line-height: var(--nm-leading);
    letter-spacing: 0;
}

.share-bar-by {
    margin-top: 0;
    color: var(--ink);
    font-family: var(--font-name);
    font-weight: var(--weight-name);
    font-size: var(--nm-name-type);
    line-height: calc(var(--nm-name) * 1.1);
    letter-spacing: 0;
    text-transform: none;
}

.share-zip,
.share-presentation-downloads .share-zip {
    color: var(--muted);
    font-size: var(--nm-small);
}

.share-zip.is-icon svg {
    width: calc(var(--nm-small) * 1.2);
    height: calc(var(--nm-small) * 1.2);
    stroke-width: 1.4;
}

.share-thumb {
    background: none;
}

/* Its viewer: on the paper, plain arrows, the name and where in the set in
   the corners' type. */
.share-lightbox {
    --viewer-ink: var(--ink);
    --viewer-muted: var(--muted);
    background: var(--bg);
    color: var(--ink);
}

.share-lightbox :is(.share-lightbox-close, .share-lightbox-nav, .share-lightbox-action) {
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--ink);
    box-shadow: none;
}

.share-lightbox-foot {
    font-size: var(--nm-small);
}

.share-lightbox-index {
    opacity: 1;
    color: var(--muted);
}

/* A reel: its name as large as a project's, then who, in the corners'
   type, what each does quiet beside them. */
.reel-title {
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1;
    letter-spacing: 0;
}

.reel-artist {
    font-size: var(--nm-small);
    font-weight: var(--weight-display);
    text-transform: uppercase;
}

.reel-disciplines {
    color: var(--muted);
    font-size: var(--nm-small);
    letter-spacing: 0;
    text-transform: none;
}

.reel-credits,
.reel-credits li {
    border: 0;
}

/* Who, square as every picture here (its crop the one chosen for it), not
   in a circle; the bio a column as wide as the Info page's, in ink. */
.reel-rows .reel-portrait {
    border-radius: 0;
}

.reel-bio {
    max-width: var(--width-text);
    color: var(--ink);
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
}

/* The door: a password, a link that has expired. Not a card: a few words
 * composed in the middle of the paper, as a project's picture is, a little
 * above the centre (the eye's centre, not the ruler's). The title at a
 * project's size, balanced over its lines; under it, small, what to do;
 * then the field, a line to write on, and Unlock as a word, as "View
 * gallery" is. Every door the same (a share's, a locked page's), so none
 * tells which kind of link was sent.
 */

main:has(> .auth-card) {
    display: grid;
    min-height: var(--nm-screen);
    place-items: center;
    padding: var(--nm-head-h) var(--gutter) calc(var(--nm-head-h) * 2.5);
    box-sizing: border-box;
}

.auth-card {
    width: min(100%, 46rem);
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
}

.auth-head {
    margin: 0 0 var(--space-7);
}

.auth-card h1 {
    margin: 0;
    font-size: var(--nm-title);
    font-weight: var(--weight-display);
    line-height: 1;
    letter-spacing: 0;
    text-wrap: balance;
}

/* A long title (an expired link's sentence) set as a short stanza, a few
   words to the line, at any width: its measure in its own size. */
.auth-card h1 {
    max-width: 7.6em;
    margin-inline: auto;
}

/* A page that isn't there (404): the way out under its words, a word
   underlined as Unlock and View gallery are. */
.nm-notice .nm-notice-link {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: .15em;
    text-decoration-thickness: 1px;
}

/* What to do, small, a line of air under the title. */
.auth-intro,
.auth-card > p {
    max-width: 26rem;
    margin: var(--space-5) auto 0;
    color: var(--muted);
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
}

.auth-card > p + p {
    margin-top: calc(var(--nm-small) * var(--nm-leading));
}

.auth-card > p a,
.auth-card button {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

/* The field: as wide as a password needs, its name over it, quiet. */
.auth-card form {
    display: grid;
    justify-items: center;
    gap: var(--space-5);
    width: min(100%, 18rem);
    margin: 0 auto;
}

.auth-card label {
    display: grid;
    gap: var(--space-2);
    width: 100%;
    color: var(--muted);
    font-size: var(--nm-small);
    letter-spacing: 0;
    text-transform: none;
}

.auth-card input {
    width: 100%;
    padding: .35rem 0;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
    border-radius: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    /* 16px at least: under it, a phone zooms in on the field. */
    font-size: max(1rem, var(--nm-small));
    letter-spacing: .15em;
    text-align: center;
    transition: border-color var(--nm-calm) var(--nm-ease);
}

.auth-card input:hover,
.auth-card input:focus {
    border-bottom-color: var(--ink);
}

.auth-card input:focus-visible {
    outline: 0;
    box-shadow: 0 1px 0 var(--ink);
}

.auth-card input[aria-invalid="true"] {
    border-bottom-color: var(--danger);
}

.auth-card button {
    margin: 0;
    padding: .25rem 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: var(--nm-small);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: opacity var(--nm-calm) var(--nm-ease);
}

.auth-card button:hover {
    background: none;
    color: var(--ink);
    opacity: .6;
}

/* A wrong password: said under the words, in the same small type, no rule
   in the margin. */
.auth-card .error {
    margin: 0 auto var(--space-6);
    padding: 0;
    border: 0;
    color: var(--danger);
    font-size: var(--nm-small);
    line-height: var(--nm-leading);
}

/* -- Vimeo and YouTube films ----------------------------------------- *
 *
 * Pressed play, the poster stays, its play button breathing, while the
 * player loads out of sight over it; once the film plays, the player fades
 * in (nik.js). No blank frame between the two.
 */

/* The film's cover alone, with its play button: no "Vimeo" and title
   over it, and no shade along its foot for them to sit on. Out of sight
   only: a screen reader still says which film. */
.embed-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.embed-link::after {
    content: none;
}

.embed[data-embed-waiting] .embed-link,
.embed[data-embed-revealing] .embed-link {
    display: block;
    pointer-events: none;
}

/* Out of sight at once (no fade on the way out: it was never seen), in
   slowly. */
.embed[data-embed-waiting] iframe {
    opacity: 0;
    transition: none;
}

.embed[data-embed-revealing] iframe {
    transition: opacity var(--nm-calm) var(--ease);
}

.embed[data-embed-waiting] .embed-title {
    opacity: 0;
    transition: opacity var(--nm-calm) var(--ease);
}

/* "Play" at the poster's foot, as a film of Nik's own opens: no round
   button (parts/embed). Gone once the player is in. */
.nm-embed {
    position: relative;
}

.nm-embed .embed-play {
    display: none;
}

.nm-embed-play {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: var(--space-3) var(--space-4);
    color: var(--nm-over, #fff);
    font-size: var(--nm-small);
    pointer-events: none;
}

.nm-embed:has(.embed-link:hover) .nm-embed-play {
    font-style: italic;
}

.nm-embed:has(iframe):not(:has(.embed[data-embed-waiting])) .nm-embed-play {
    display: none;
}

@keyframes nm-breathe {
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: no-preference) {
    .embed[data-embed-waiting] .embed-play,
    .nm-embed:has(.embed[data-embed-waiting]) .nm-embed-play {
        animation: nm-breathe 2.2s ease-in-out infinite;
    }
}

/* -- Motion ----------------------------------------------------------- *
 *
 * Small and slow, at Nik's pace: compositions and rows rise into view,
 * pictures fade in over the paper once they arrive, a slide comes in from
 * the side it came from, pages hand over to each other. Only with script
 * (kit-motion, set by the Kit) and never for a reader who asked for less
 * motion.
 */

@keyframes nm-rise {
    from { opacity: 0; transform: translateY(12px); }
}

@keyframes nm-fade {
    from { opacity: 0; }
}

/* The phone's Menu: its words rise one after the other. */
html.kit-motion .nm-menu[open]::before {
    animation: nm-fade var(--nm-calm) var(--nm-ease) both;
}

html.kit-motion .nm-menu[open] .nm-menu-list li {
    animation: nm-rise var(--nm-slow) var(--nm-ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

/* A project's Info: the sheet fades in and rises a little, then its words
   follow, one after the other. */
html.kit-motion .nm-series-info[open] .nm-series-panel {
    animation: nm-rise .55s var(--nm-ease) both;
}

html.kit-motion .nm-series-info[open] .nm-series-panel > * {
    animation: nm-rise var(--nm-slow) var(--nm-ease) both;
}

html.kit-motion .nm-series-info[open] .nm-series-panel > :nth-child(1) { animation-delay: .08s; }
html.kit-motion .nm-series-info[open] .nm-series-panel > :nth-child(2) { animation-delay: .16s; }
html.kit-motion .nm-series-info[open] .nm-series-panel > :nth-child(3) { animation-delay: .24s; }

/* From one picture of a project to the next (nik.js): the one before stays
   underneath, the next fades in over it once it has arrived, quickly, and
   the one before fades out behind it, slow to start: the paper never shows
   between them. Of another shape or size, the frame turns from one into
   the other instead (nm-stepping, below). Both in the stage's one cell. */
@keyframes nm-cross {
    from { opacity: 0; transform: translateX(var(--nm-from, 0)); }
}

@keyframes nm-uncross {
    to { opacity: 0; }
}

.nm-series.is-viewer .nm-slides > .nm-slide {
    grid-area: 1 / 1;
}

html.kit-motion .nm-slide.is-under {
    z-index: 0;
    pointer-events: none;
}

html.kit-motion .nm-slide.is-under.is-going {
    animation: nm-uncross .5s cubic-bezier(.6, 0, .9, .4) both;
}

html.kit-motion .nm-slide.is-over {
    z-index: 1;
    animation: nm-cross .5s var(--nm-ease) both;
}

/* Not arrived yet: held out of sight, the one before still showing. */
html.kit-motion .nm-slide.is-over.is-waiting {
    animation: none;
    opacity: 0;
}

/* A picture come to by a step fades in as a whole (above), not again inside
   itself: the soft arrival from the paper is the project's first picture's
   alone. */
html.kit-motion .nm-slide.is-crossed picture > img {
    transition: none;
    opacity: 1;
}

/* The arrows: there while the pointer moves, away once it rests, as a
   film's controls are; always for the keyboard, and on a touch screen. */
@media (hover: hover) {
    .nm-series.is-viewer .nm-step {
        transition: opacity .6s var(--nm-ease);
    }

    html.kit-motion .nm-series.is-viewer:not(.is-moving) .nm-step:not(:focus-visible) {
        opacity: 0;
    }
}

/* One page hands over to the next with a short cross-fade, the header
   holding still, where the browser can (view transitions). */
@media (prefers-reduced-motion: no-preference) {
    /* The menu's Featured and Work glide to their place, the header's room
       kept above it. */
    html {
        scroll-behavior: smooth;
    }

    /* The picture clicked grows into the project's first picture (and back,
       to the tile it came from): nik.js names the two (nm-picture). */
    ::view-transition-group(nm-picture) {
        animation-duration: .7s;
        animation-timing-function: cubic-bezier(.16, 1, .3, 1);
    }

    ::view-transition-old(nm-picture),
    ::view-transition-new(nm-picture) {
        height: 100%;
        object-fit: contain;
    }

    /* In a project, from a picture to one of another shape (nik.js): the
       frame turns from the one into the other, both pictures filling it
       as they cross, so it is never empty nor two frames. */
    html.nm-stepping::view-transition-group(nm-picture),
    html.nm-stepping::view-transition-old(nm-picture),
    html.nm-stepping::view-transition-new(nm-picture) {
        animation-duration: .6s;
        animation-timing-function: cubic-bezier(.65, 0, .35, 1);
    }

    html.nm-stepping::view-transition-group(nm-picture) {
        overflow: hidden;
    }

    html.nm-stepping::view-transition-old(nm-picture),
    html.nm-stepping::view-transition-new(nm-picture) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Only the picture moves: the page round it and the header stay as
       they are, not crossed with themselves. */
    html.nm-stepping::view-transition-old(root),
    html.nm-stepping::view-transition-old(nm-head) {
        display: none;
    }

    html.nm-stepping::view-transition-new(root),
    html.nm-stepping::view-transition-new(nm-head) {
        animation: none;
    }

    .nm-head {
        view-transition-name: nm-head;
    }
}
