/* ==========================================================================
   THE GALORE
   Quiet, cinematic, personal. White ground, black type, colour from the work.
   ========================================================================== */

:root {
  /* colour */
  --paper: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #55554f;          /* labels, secondary text (7:1 on paper) */
  --ink-dim: .45;            /* dimmed titles on paper (large text, >3:1) */
  --on-image: #ffffff;
  --on-image-dim: .55;
  --rule: #e6e6e2;
  --wash: #efefec;           /* media ground before an image has loaded */
  --line: #b9b9b3;           /* form field lines */
  --err: #b3261e;            /* form errors (6:1 on paper) */

  /* type */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-mega: clamp(3rem, 1.4rem + 6.4vw, 7.5rem);        /* 48 → 120 */
  --t-display: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem); /* 36 → 76 */
  --t-index: clamp(2rem, 1.05rem + 3.6vw, 4.25rem);     /* 32 → 68 */
  --t-xl: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);         /* 28 → 48 */
  --t-lg: clamp(1.25rem, 1.05rem + .8vw, 1.625rem);     /* 20 → 26 */
  --t-md: 1.0625rem;                                    /* 17 */
  --t-sm: .875rem;                                      /* 14 */
  --t-xs: .6875rem;                                     /* 11 */
  --t-hero: clamp(2.25rem, .6rem + 6vw, 5.75rem);       /* 36 → 92, the opening's titles */
  --track-label: .08em;
  --track-display: -.04em;   /* large titles sit tight */

  /* space */
  --gutter: clamp(16px, 3.2vw, 48px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --hdr-h: 56px;
  --section: clamp(72px, 12vw, 176px);

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.215, .61, .355, 1);   /* quick with a soft landing: hovers, fades, small moves */
  --ease-glide: cubic-bezier(.16, 1, .3, 1);      /* fast start, long settle: panels, pages, reveals */
  --ease-cross: cubic-bezier(.4, 0, .2, 1);
  --dur-preview: 420ms;
  --dur-panel: 520ms;
  --dur-panel-out: 300ms;
  --dur-drawer: 460ms;
  --dur-page-out: 180ms;
  --dur-page-in: 680ms;

  color-scheme: light;
}
@media (min-width: 900px) { :root { --hdr-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 48px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--paper); }
.hero ::selection { background: var(--on-image); color: var(--ink); }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-size: var(--t-sm); text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }
.noscript { padding: 120px var(--gutter); font-size: var(--t-lg); }

.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.label {
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-2); line-height: 1.3; font-weight: 400;
}

/* One underline for every text link: it draws in from the left and leaves to the right.
   --u-y places the line; links with a tall tap area measure from their middle instead. */
.link-u, .hdr__contact, .menu-btn__label, .menu__foot a, .filter, .spec__list a, .listen a,
.back, .routes a, .submit__ig a, .ftr a, .lb__close, .row__open {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 100% var(--u-y, 100%);
  transition: background-size .5s var(--ease-glide), color .25s var(--ease-out);
}
.hdr__contact, .filter, .listen a, .back, .routes a, .submit__ig a, .lb__close, .row__open { --u-y: calc(50% + .72em); }
.filter[aria-pressed="true"] { background-size: 100% 1px; background-position: 0 var(--u-y, 100%); }
@media (hover: hover) {
  .link-u:hover, .hdr__contact:hover, .menu-btn:hover .menu-btn__label, .menu__foot a:hover,
  .filter:hover, .spec__list a:hover, .listen a:hover, .back:hover, .routes a:hover,
  .submit__ig a:hover, .ftr a:hover, .lb__close:hover, .row__open:hover {
    background-size: 100% 1px; background-position: 0 var(--u-y, 100%);
  }
}
/* touch: a brief dip in place of a hover */
@media (hover: none) {
  a:active, button:active { opacity: .6; transition: opacity 80ms linear; }
}

/* Content further down the page settles into place as it is scrolled to (set by app.js) */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); }
.rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out) var(--rv-d, 0ms), transform 1.2s var(--ease-glide) var(--rv-d, 0ms);
}

/* placeholder marker (draft mode only) */
.ph {
  position: absolute; z-index: 3; left: 12px; bottom: 12px;
  font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 8px; background: rgba(255, 255, 255, .92); color: var(--ink);
  pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--hdr-fg, var(--ink));
  background: var(--hdr-bg, var(--paper));
  transition: color .35s var(--ease-out), background-color .35s var(--ease-out), transform .5s var(--ease-glide);
}
/* slides away on the way down the page, returns on the way back up */
.hdr.is-hidden { transform: translate3d(0, -100%, 0); transition-duration: .35s, .35s, .4s; transition-timing-function: var(--ease-out); }
.hdr[data-tone="image"] { --hdr-fg: var(--on-image); --hdr-bg: transparent; }
.hdr[data-tone="paper"] { --hdr-fg: var(--ink); --hdr-bg: var(--paper); }
.hdr.is-instant, .hdr.is-instant * { transition: none !important; }
.hdr__bar {
  height: var(--hdr-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
}
.menu-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 6px 0 0; margin-left: -2px;
  background: none; border: 0; cursor: pointer;
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase;
}
.menu-btn__icon { position: relative; display: block; width: 22px; height: 10px; }
.menu-btn__icon span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform var(--dur-panel) var(--ease-glide), top var(--dur-panel) var(--ease-glide);
}
.menu-btn__icon span:first-child { top: 0; }
.menu-btn__icon span:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-btn__label { display: inline-block; text-align: left; padding-block: 3px; }

.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 500; letter-spacing: .26em; padding-left: .26em;
  text-decoration: none; white-space: nowrap;
}
.wordmark svg { height: 18px; width: auto; fill: currentColor; }
.hdr__contact {
  justify-self: end; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase;
  transition: opacity .3s var(--ease-out), visibility 0s, background-size .5s var(--ease-glide);
}
.is-menu-open .hdr__contact { opacity: 0; visibility: hidden; transition: opacity .2s var(--ease-out), visibility 0s .2s; }

/* ==========================================================================
   Menu panel
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 55;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear var(--dur-panel-out);
}
.menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu__scrim {
  position: absolute; inset: 0; background: rgba(11, 11, 11, .42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity var(--dur-panel-out) var(--ease-out);
}
.menu.is-open .menu__scrim { opacity: 1; transition-duration: var(--dur-panel); }
.menu__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-panel-out) var(--ease-out);
}
.menu.is-open .menu__panel { clip-path: inset(0 0 0 0); transition: clip-path var(--dur-panel) var(--ease-glide); }
.menu__list { display: flex; flex-direction: column; gap: .1em; font-size: var(--t-display); }
.menu__link {
  display: inline-block; font-weight: 500; line-height: 1.04; letter-spacing: var(--track-display);
  text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), color .35s var(--ease-out);
}
.menu.is-open .menu__link {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease-out), transform 760ms var(--ease-glide), color .35s var(--ease-out);
  transition-delay: calc(90ms + var(--i, 0) * 55ms), calc(90ms + var(--i, 0) * 55ms), 0s;
}
.menu__list li:nth-child(1) { --i: 0; } .menu__list li:nth-child(2) { --i: 1; }
.menu__list li:nth-child(3) { --i: 2; } .menu__list li:nth-child(4) { --i: 3; }
.menu__list li:nth-child(5) { --i: 4; }
.menu__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .14em; }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--t-sm); color: var(--ink-2);
  opacity: 0; transition: opacity 180ms var(--ease-out);
}
.menu.is-open .menu__foot { opacity: 1; transition: opacity 600ms var(--ease-out) 340ms; }
.menu__foot a { color: var(--ink); }

@media (min-width: 900px) {
  .menu__panel {
    inset: 0 0 auto 0;
    padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vh, 56px));
    padding-bottom: clamp(28px, 5vh, 44px);
    max-height: 100%;
    border-bottom: 1px solid var(--rule);
  }
}
@media (hover: hover) and (pointer: fine) {
  .menu__list:hover .menu__link:not(:hover) { color: rgba(11, 11, 11, .45); }
}

/* ==========================================================================
   Main + page transitions
   ========================================================================== */
.main { display: block; min-height: 60vh; }
/* The page and the footer leave together, so nothing is left behind to jump when the
   next page starts at the top. */
.is-page-leaving .main, .is-page-leaving .ftr { opacity: 0; transition: opacity var(--dur-page-out) var(--ease-out); }
.is-page-entering .main { animation: page-in var(--dur-page-in) var(--ease-glide) both; }
.is-page-entering .ftr { animation: page-fade var(--dur-page-in) var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }

.page { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vw, 80px)); padding-bottom: var(--section); }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 6vw, 88px); }
.page-title { font-size: var(--t-lg); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.page-lede { font-size: var(--t-md); color: var(--ink-2); max-width: 52ch; }

/* ==========================================================================
   Media layers — shared by the opening, Explore and Journal previews
   ========================================================================== */
.stage { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.layer {
  position: absolute; inset: 0; background: var(--c, var(--wash));
  opacity: 0; transform: scale(1.025);
  transition: opacity var(--dur-preview) var(--ease-cross), transform 1.6s var(--ease-glide);
}
.layer.is-on { opacity: 1; transform: none; }
/* a project's other pictures, blended in by app.js as the pointer slides across its title */
.layer > .layer__alt { opacity: 0; will-change: opacity; }
.layer__shade { position: absolute; inset: 0; background: #000; pointer-events: none; }
.layer > img, .layer > video,
.cover-media > img, .cover-media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.fade { opacity: 0; transition: opacity 600ms var(--ease-out); }
.fade.is-loaded { opacity: 1; }
.fade.is-cached { transition: none; }

/* ==========================================================================
   The stacked index — the defining element
   ========================================================================== */
.stack { display: flex; flex-direction: column; gap: calc(var(--fs) * .34); --fs: var(--t-index); }
.row { scroll-margin-top: calc(var(--hdr-h) + 16px); scroll-margin-bottom: 24px; }
.row__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.row__link {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: calc(var(--fs) * .16);
  width: fit-content; max-width: 100%; min-width: 0;
  font-size: var(--fs); font-weight: 500; line-height: 1; letter-spacing: var(--track-display);
  text-decoration: none;
  transition: opacity var(--dur-preview) var(--ease-out);
}
.row__title { display: block; min-width: 0; text-wrap: balance; padding-block: .02em; }
.row__meta {
  display: flex; flex-direction: column; gap: 2px;
  font-size: var(--t-xs); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase;
  line-height: 1.3; max-width: 34ch; opacity: .8;
}
/* Project subtitle: the year in a solid block, then one short line, sized to the title */
.row__meta--line {
  display: block; max-width: none; opacity: 1;   /* flows as text: a long line wraps after the year, never under it */
  font-size: clamp(11px, calc(var(--fs) * .19), 17px); line-height: 1.5; letter-spacing: .07em;
}
.row__year {
  display: inline-block; margin-right: .65em; line-height: 1.2;
  padding: .2em .42em .14em; font-variant-numeric: tabular-nums; letter-spacing: .05em;
  background: var(--year-bg, var(--ink)); color: var(--year-ink, var(--paper));
}
.row__line { opacity: .72; }
.stack.is-engaged .row:not(.is-active) .row__link,
.stack.has-open .row:not(.is-open) .row__link { opacity: var(--ink-dim); }

/* Preview toggle (touch, narrow screens, no-hover) */
.row__toggle {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  margin-top: max(0px, calc(var(--fs) * .51 - 18px));
  background: transparent; cursor: pointer;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 32%, transparent);
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1;
  white-space: nowrap; transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.row__toggle::after { content: ""; position: absolute; inset: -5px -4px; }
.row__toggle:hover, .row__toggle[aria-expanded="true"] { border-color: currentColor; }
.row__toggle-icon { position: relative; width: 9px; height: 9px; transition: transform var(--dur-drawer) var(--ease-glide); }
.row__toggle-icon::before, .row__toggle-icon::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 1px; background: currentColor;
}
.row__toggle-icon::after { transform: rotate(90deg); }
.row__toggle[aria-expanded="true"] .row__toggle-icon { transform: rotate(45deg); }
.row__toggle-text { min-width: 4.4em; }

.row__drawer {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows var(--dur-drawer) var(--ease-glide), opacity 240ms var(--ease-out), visibility 0s linear var(--dur-drawer);
}
.row.is-open .row__drawer {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows var(--dur-drawer) var(--ease-glide), opacity 520ms var(--ease-out) 80ms, visibility 0s;
}
.row__drawer-inner { min-height: 0; overflow: hidden; }
.row__drawer-body { display: grid; gap: 4px; padding: 14px 0 20px; }
.row__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c, var(--wash)); }
.row__media > img, .row__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content;
  font-size: var(--t-sm); text-decoration: none;
}
.row__open span { transition: transform .5s var(--ease-glide); }
.row__open:hover span { transform: translateX(4px); }

/* Desktop with a real pointer: hover/focus previews replace the toggles */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .row__toggle, .row__drawer { display: none; }
  .row__meta:not(.row__meta--line) { max-width: 22ch; }
}

/* intro stagger — plays once on the first visit to the opening */
.stack.is-intro .row { animation: rise 1100ms var(--ease-glide) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
/* changing the filter: the list lets go, then the new set settles in */
.stack.is-swapping .row { opacity: 0; transition: opacity 160ms var(--ease-out); }
.stack.is-filtering .row:not([hidden]) { animation: rise 820ms var(--ease-glide) both; animation-delay: calc(var(--n, 0) * 55ms); }

/* ==========================================================================
   Home — the opening
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-image); background: #151515;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.34), rgba(0,0,0,0) 150px),
    radial-gradient(120% 85% at 0% 100%, rgba(0,0,0,.46), rgba(0,0,0,0) 62%),
    linear-gradient(to top, rgba(0,0,0,.32), rgba(0,0,0,0) 55%);
}
/* --hero-drop: extra room above the list so more of the preview shows at the top (none on phones,
   where the titles wrap and the list already runs past the first screen) */
.hero { --hero-drop: clamp(40px, 9vh, 120px); }
@media (max-width: 699px) { .hero { --hero-drop: 0px; } }
.hero__content { padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 40px + var(--hero-drop)) var(--gutter) clamp(28px, 7vh, 76px); }
/* the opening's titles shrink as projects are added, so the whole list (titles, subtitles, gaps) fits on the first screen */
.stack--hero {
  --fs: max(1.75rem, min(var(--t-hero), calc((100vh - var(--hdr-h) - 40px - var(--hero-drop, 0px) - clamp(28px, 7vh, 76px) - var(--rows, 5) * 24px) / (var(--rows, 5) * 1.36))));
  --ink-dim: var(--on-image-dim); max-width: 1280px; gap: calc(var(--fs) * .22);
}
@supports (height: 100svh) {
  .stack--hero { --fs: max(1.75rem, min(var(--t-hero), calc((100svh - var(--hdr-h) - 40px - var(--hero-drop, 0px) - clamp(28px, 7vh, 76px) - var(--rows, 5) * 24px) / (var(--rows, 5) * 1.36)))); }
}
/* the image trails the page slightly as the opening scrolls away */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .hero__media > .stage { animation: hero-drift linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    @keyframes hero-drift { to { transform: translate3d(0, 14%, 0); } }
  }
}
.stack--hero { --year-bg: var(--on-image); --year-ink: var(--ink); } /* white block on the image */
.stack--hero .row__meta:not(.row__meta--line) { font-size: .75rem; opacity: .88; }
.stack--hero .row__line { opacity: .9; }
.hero .ph { left: auto; right: var(--gutter); bottom: auto; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 12px); }

.home-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px;
  padding: var(--section) var(--gutter);
  align-items: start;
}
.cta {
  width: fit-content;
  display: inline-flex; align-items: baseline; gap: .4em;
  font-size: var(--t-xl); font-weight: 500; letter-spacing: -.03em; line-height: 1.05;
  text-decoration: none;
}
.cta .arrow { display: inline-block; font-weight: 400; transition: transform .6s var(--ease-glide); }
.cta:hover .arrow { transform: translateX(8px); }
.home-intro .cta { grid-column: 1 / -1; }
.home-intro__text { grid-column: 1 / -1; font-size: var(--t-lg); line-height: 1.42; max-width: 34ch; text-wrap: pretty; }
@media (min-width: 900px) {
  .home-intro .cta { grid-column: 1 / span 6; }
  .home-intro__text { grid-column: 7 / span 6; }
}

/* ==========================================================================
   Explore + Journal index pages
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 0 22px; }
.filter {
  display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0;
  background-color: transparent; border: 0; cursor: pointer;
  font-size: var(--t-sm); color: var(--ink-2);
}
.filter sup { font-size: 10px; line-height: 0; position: relative; top: -.45em; vertical-align: baseline; font-variant-numeric: tabular-nums; }
.filter:hover, .filter[aria-pressed="true"] { color: var(--ink); }

.index { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.index__list { grid-column: 1 / -1; }
.index__aside { display: none; }
.stack--journal { --fs: var(--t-xl); gap: calc(var(--fs) * .3); }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .index__list { grid-column: 1 / span 7; }
  .index__aside {
    display: block; grid-column: 8 / -1;
    position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 12px);
  }
}
.index__frame {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 4 / 5; max-height: calc(100vh - var(--hdr-h) - 128px);
  background: var(--wash);
}
.index__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; min-height: 1.3em; }
.index__cap .label:first-child { color: var(--ink); }

.empty { display: grid; gap: 22px; max-width: 44ch; }
.empty p { font-size: var(--t-lg); line-height: 1.4; }
.empty__kinds { font-size: var(--t-sm) !important; color: var(--ink-2); }

/* ==========================================================================
   Project page
   ========================================================================== */
.work { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }
.lead { position: relative; background: var(--c, var(--wash)); }
.lead--image .cover-media { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - var(--hdr-h)); width: 100%; overflow: hidden; }
@media (min-width: 700px) { .lead--image .cover-media { aspect-ratio: 16 / 9; } }
button.cover-media { display: block; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: zoom-in; }

/* lead image that steps through the project as the cursor moves across it */
.scrubber { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.scrubber__layers { position: absolute; inset: 0; pointer-events: none; }
/* opacity is set by app.js from the pointer's position, so the pictures blend rather than switch */
.scrubber__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; opacity: 0; }
.scrubber.is-scrubbing .scrubber__img { will-change: opacity; }
.scrubber__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .26), rgba(0, 0, 0, 0));
  display: flex; align-items: center; gap: 12px; pointer-events: none;
  opacity: .8; transition: opacity .35s var(--ease-out);
}
.scrubber:hover .scrubber__ui, .scrubber:focus-visible .scrubber__ui { opacity: 1; }
.scrubber__ticks { flex: 1; display: flex; gap: 4px; }
.scrubber__ticks span { flex: 1; height: 2px; background: rgba(255, 255, 255, calc(.36 + .64 * var(--a, 0))); box-shadow: 0 0 3px rgba(0, 0, 0, .3); }
.scrubber__count {
  font-size: 10px; font-weight: 500; letter-spacing: .1em; color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums;
}
.scrubber .ph { top: 12px; bottom: auto; }
.lead--film { background: #000; }
.lead--film video { width: 100%; max-height: calc(100vh - var(--hdr-h)); aspect-ratio: var(--ar, 16 / 9); background: #000; }
.lead .ph { bottom: auto; top: 12px; left: var(--gutter); }

.work__head { padding-top: clamp(36px, 6vw, 88px); row-gap: 28px; }
.work__title { font-size: var(--t-display); font-weight: 500; letter-spacing: var(--track-display); line-height: .98; text-wrap: balance; }
.work__head > * { grid-column: 1 / -1; }
.facts { display: grid; align-content: start; }
.facts > div, .spec__list > div {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px;
  padding-block: 10px; border-top: 1px solid var(--rule);
}
.facts > div:last-child, .spec__list > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt, .spec__list dt { font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.facts dd, .spec__list dd { font-size: var(--t-sm); display: grid; justify-items: start; gap: 2px; }

/* portrait lead: the full image beside the title */
.work__split { padding-top: clamp(12px, 2vw, 32px); row-gap: 32px; align-items: end; }
.work__portrait { grid-column: 1 / -1; }
.work__portrait .g-btn { width: fit-content; max-width: 100%; }
.work__portrait img { width: auto; max-width: 100%; height: auto; }
/* a vertical film in the same place: as tall as the screen allows, never wider than its column */
.work__portrait--film { position: relative; width: fit-content; max-width: 100%; }
.work__portrait--film video {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; max-height: 80svh;
  aspect-ratio: var(--ar, 9 / 16); background: var(--c, #000);
}
.work__intro { grid-column: 1 / -1; display: grid; gap: 28px; align-content: end; }
.work__intro .work__lede { max-width: 34ch; }

.work__body { padding-top: clamp(48px, 7vw, 112px); row-gap: 48px; }
.work__main, .work__aside { grid-column: 1 / -1; display: grid; gap: clamp(36px, 4vw, 56px); align-content: start; }
.work__lede { font-size: var(--t-lg); line-height: 1.42; max-width: 36ch; text-wrap: pretty; }
.prose { display: grid; gap: 1em; max-width: 62ch; }
.prose p { font-size: var(--t-md); line-height: 1.65; text-wrap: pretty; }
.prose-section { display: grid; gap: 16px; }
.prose-section h2, .spec h2 {
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-2); font-weight: 400;
}
.spec h2 { margin-bottom: 10px; }
@media (min-width: 900px) {
  .work__head > .work__title { grid-column: 1 / span 8; }
  .work__head > .facts { grid-column: 9 / -1; padding-top: .35em; }
  .work__portrait { grid-column: 1 / span 6; }
  .work__portrait img, .work__portrait--film video { max-height: calc(100vh - var(--hdr-h) - 48px); }
  .work__intro { grid-column: 8 / -1; padding-bottom: 4px; }
  .work__main { grid-column: 1 / span 7; }
  .work__aside { grid-column: 9 / -1; }
}

.draft {
  grid-column: 1 / -1; max-width: 46ch; padding: 14px 16px;
  border: 1px dashed #b9b9b3; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5;
}
.draft strong {
  display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500;
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase;
}

/* listen + release */
.release { padding-top: clamp(24px, 4vw, 48px); row-gap: 28px; align-items: end; }
.release__art { grid-column: 1 / -1; position: relative; aspect-ratio: 1; background: var(--c, var(--wash)); overflow: hidden; }
.release__art img { width: 100%; height: 100%; object-fit: cover; }
.release__side { grid-column: 1 / -1; display: grid; gap: 28px; }
@media (min-width: 900px) {
  .release__art { grid-column: 1 / span 6; }
  .release__side { grid-column: 8 / -1; }
}
.listen { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--t-sm); }
.listen a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }

.player { display: grid; gap: 14px; }
.player__main { display: flex; align-items: center; gap: 16px; }
.player__play {
  flex: none; width: 56px; height: 56px; border: 1px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.player__play:hover { background: var(--ink); color: var(--paper); }
.player__icon { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.player.is-playing .player__icon { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.player__title { font-size: var(--t-md); font-weight: 500; }
.player__time { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.player__seek { width: 100%; accent-color: var(--ink); height: 28px; margin: 0; cursor: pointer; }
.player__tracks { border-top: 1px solid var(--rule); }
.player__tracks button {
  width: 100%; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 8px; align-items: center;
  min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: none;
  text-align: left; cursor: pointer; font-size: var(--t-sm); font-variant-numeric: tabular-nums;
}
.player__tracks button[aria-current="true"] { font-weight: 500; }
.player__tracks button span:first-child, .player__tracks button span:last-child { color: var(--ink-2); }

/* gallery */
.gallery { padding-top: clamp(64px, 10vw, 160px); row-gap: clamp(40px, 8vw, 144px); }
.g { grid-column: 1 / -1; }
.g-pair, .g-trio { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 8vw, 144px) var(--col-gap); }
@media (min-width: 700px) {
  .g-pair { grid-template-columns: 1fr 1fr; }
  .g-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-left { grid-column: 1 / span 7; }
  .g-right { grid-column: 6 / -1; }
}
.g figure { display: grid; gap: 10px; }
.g-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--c, var(--wash)); cursor: zoom-in; }
.g-btn img { width: 100%; height: auto; }
.g figure { justify-items: start; }
.g-right figure { justify-items: end; }
.g figure .g-btn { width: fit-content; max-width: 100%; }
.g figure .g-btn img { width: auto; max-width: 100%; max-height: calc(100vh - var(--hdr-h) - 48px); }
.g-btn:focus-visible { outline-offset: 6px; }

/* A gallery in sets: each kind of work under its own rule, name and count */
.gallery--sets { display: grid; row-gap: clamp(72px, 11vw, 168px); }
.gset { display: grid; row-gap: clamp(20px, 3vw, 40px); scroll-margin-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 20px); }
.gset__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--ink); }
.gset__title { font-size: var(--t-xl); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.gset__title:focus { outline: none; }
.gset__flow { row-gap: clamp(32px, 5vw, 88px); }
/* an even grid: product and studio work, where the images are a series */
.gset__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--col-gap); }
.gset__grid--fit {
  max-width: calc((100vh - var(--hdr-h) - 48px) * var(--ar, 2 / 3) * var(--cols, 2) + var(--col-gap) * (var(--cols, 2) - 1));
  margin-inline: auto;
}
.gset__grid--fit .g-btn img { aspect-ratio: var(--ar, 2 / 3); object-fit: cover; }
.gset__grid--down { grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 2), auto); } /* fills each column top to bottom */
.gset__grid figure { display: grid; gap: 8px; align-content: start; }
.gset__grid .g-btn { overflow: hidden; }
.gset__grid .g-btn img.fade { transition: opacity 600ms var(--ease-out), transform 1.6s var(--ease-glide); }
.gset__grid figcaption { font-size: var(--t-xs); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .gset__grid .g-btn:hover img { transform: scale(1.02); }
}
/* Sets shown as sliders: one frame each, side by side; slide across a frame to move through it */
@media (min-width: 900px) {
  .gallery--slides { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
}
.gset--slide { row-gap: clamp(16px, 2vw, 24px); }
.slide {
  display: block; width: 100%; aspect-ratio: var(--ar, 2 / 3); padding: 0; border: 0; overflow: hidden;
  background: var(--c, var(--wash)); cursor: zoom-in; font: inherit; color: inherit;
}
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide:focus-visible { outline-offset: 6px; }
.slide__ui { display: flex; align-items: center; gap: 12px; margin-top: -4px; }
.slide__ticks span { height: 1.5px; background: rgba(11, 11, 11, calc(.16 + .84 * var(--a, 0))); box-shadow: none; }
.slide__count { color: var(--ink-2); text-shadow: none; font-size: var(--t-xs); font-weight: 400; letter-spacing: var(--track-label); min-width: 3.6em; text-align: right; }
.jump { padding: 0; border: 0; background-color: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.g figure .g-btn { overflow: hidden; }
.g figure .g-btn img.fade { transition: opacity 600ms var(--ease-out), transform 1.6s var(--ease-glide); }
@media (hover: hover) and (pointer: fine) {
  .g figure .g-btn:hover img { transform: scale(1.02); }
}
.g figcaption { font-size: var(--t-sm); color: var(--ink-2); max-width: 60ch; }

.pager { padding-top: var(--section); padding-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 36px; }
.next { display: grid; gap: 14px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--ink); text-decoration: none; }
.next__title {
  display: inline-flex; align-items: baseline; gap: .3em;
  font-size: var(--t-display); font-weight: 500; letter-spacing: var(--track-display); line-height: 1;
}
.next__title .arrow { font-weight: 400; transition: transform .6s var(--ease-glide); }
.next:hover .next__title .arrow { transform: translateX(10px); }
.back { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; font-size: var(--t-sm); gap: 8px; }

/* ==========================================================================
   Journal entry
   ========================================================================== */
.entry__head { padding-top: clamp(36px, 6vw, 88px); row-gap: 18px; }
.entry__head > * { grid-column: 1 / -1; }
.entry__title { font-size: var(--t-display); font-weight: 500; letter-spacing: var(--track-display); line-height: .98; text-wrap: balance; }
.entry__excerpt { font-size: var(--t-lg); line-height: 1.4; max-width: 40ch; }
.entry__body { padding-top: clamp(40px, 6vw, 88px); row-gap: clamp(32px, 5vw, 72px); }
.entry__body > * { grid-column: 1 / -1; }
.b-text { font-size: var(--t-md); line-height: 1.65; max-width: 62ch; }
.b-quote { font-size: var(--t-xl); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; max-width: 24ch; text-wrap: balance; }
@media (min-width: 900px) {
  .entry__head > *, .entry__body > .b-text, .entry__body > .b-quote { grid-column: 4 / span 7; }
}

/* ==========================================================================
   About + Contact
   ========================================================================== */
.about { row-gap: 40px; }
/* the frame takes the portrait's own shape (--ar, set from its w and h), so nothing is cropped */
.about__portrait { grid-column: 1 / -1; position: relative; aspect-ratio: var(--ar, 4 / 5); overflow: hidden; background: var(--c, var(--wash)); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__text { grid-column: 1 / -1; display: grid; gap: 32px; align-content: start; }
.about__statement { font-size: var(--t-xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; max-width: 16ch; }
.about__body { display: grid; gap: 1em; max-width: 58ch; }
.about__body p { font-size: var(--t-md); line-height: 1.6; }
.about__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--col-gap); max-width: 58ch; }
.about__lists h2 { font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); font-weight: 400; padding-top: 10px; border-top: 1px solid var(--rule); margin-bottom: 10px; }
.about__lists li { font-size: var(--t-sm); line-height: 1.7; }
@media (min-width: 900px) {
  .about__portrait {
    grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--hdr-h) + 24px);
    /* never taller than the screen: narrow the frame instead of cropping the picture */
    width: min(100%, calc((100vh - var(--hdr-h) - clamp(28px, 5vw, 80px) - 24px) * var(--ar, 4 / 5)));
  }
  .about__text { grid-column: 7 / -1; }
}

.contact { row-gap: clamp(36px, 6vw, 80px); }
.contact__heading { grid-column: 1 / -1; font-size: var(--t-mega); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.contact__body { grid-column: 1 / -1; display: grid; gap: 1em; font-size: var(--t-lg); line-height: 1.42; max-width: 34ch; }
.routes { grid-column: 1 / -1; align-self: start; }
.routes > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--rule); }
.routes > div:last-child { border-bottom: 1px solid var(--rule); }
.routes dt { font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.routes dd { display: grid; gap: 2px; font-size: var(--t-md); }
.routes a { width: fit-content; min-height: 32px; display: inline-flex; align-items: center; }
.copy { margin-left: 12px; padding: 4px 10px; border: 1px solid var(--rule); background: none; cursor: pointer; font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; }
@media (min-width: 900px) {
  .contact__body { grid-column: 1 / span 6; }
  .routes { grid-column: 8 / -1; }
}
.contact__cta { margin-top: .5em; }

/* ==========================================================================
   Submit a Project
   ========================================================================== */
.submit { row-gap: clamp(36px, 5vw, 72px); }
.submit__head { grid-column: 1 / -1; display: grid; gap: 18px; }
.submit__title { font-size: var(--t-display); font-weight: 500; letter-spacing: var(--track-display); line-height: .98; text-wrap: balance; }
.submit__lede { font-size: var(--t-lg); line-height: 1.42; max-width: 38ch; text-wrap: pretty; }
.submit__main { grid-column: 1 / -1; display: grid; gap: 28px; align-content: start; }
.submit__aside { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; align-self: start; font-size: var(--t-sm); }
.submit__aside h2 {
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2);
  font-weight: 400; padding-top: 10px; border-top: 1px solid var(--rule);
}
.submit__aside h2 ~ h2 { margin-top: 18px; }
.submit__aside li { line-height: 1.5; padding-block: 3px; max-width: 40ch; }
.submit__ig { display: flex; flex-wrap: wrap; gap: 0 18px; }
.submit__ig a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
@media (min-width: 900px) {
  .submit__main { grid-column: 1 / span 7; }
  .submit__aside { grid-column: 9 / -1; position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 24px); }
}

.form { position: relative; display: grid; gap: 34px; max-width: 720px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; margin: 0; padding: 8px 0 10px;
  font: inherit; font-size: var(--t-lg); line-height: 1.35; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  -webkit-appearance: none; appearance: none; box-shadow: none;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea {
  min-height: 11em; resize: vertical; padding: 14px 16px;
  font-size: var(--t-md); line-height: 1.55; border: 1px solid var(--line);
}
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field input:focus { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field.is-invalid input:focus { box-shadow: 0 1px 0 0 var(--err); }
.field.is-invalid textarea:focus { box-shadow: 0 0 0 1px var(--err); }
.field__hint { font-size: var(--t-sm); color: var(--ink-2); }
.field__err { font-size: var(--t-sm); color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 0; background: var(--ink); color: var(--paper);
  font-size: var(--t-sm); letter-spacing: .02em; cursor: pointer;
  transition: background-color .3s var(--ease-out), opacity .3s var(--ease-out);
}
.btn:hover { background: #2e2e2b; }
.btn:focus-visible { outline-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }
.form__status { font-size: var(--t-sm); color: var(--ink-2); }
.form__status.is-error { color: var(--err); }
.form__note { font-size: var(--t-sm); color: var(--ink-2); }
.form-done { display: grid; gap: 14px; padding-block: 8px; outline: none; }
.form-done__title { font-size: var(--t-xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.form-done p:not(.form-done__title) { font-size: var(--t-lg); line-height: 1.42; max-width: 34ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px var(--col-gap);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2);
}
.ftr > * { grid-column: 1 / -1; }
.ftr__mark { color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-decoration: none; width: fit-content; }
.ftr__nav, .ftr__social { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ftr a { color: var(--ink); }
.ftr__draft { color: var(--ink-2); }
@media (min-width: 900px) {
  .ftr__mark { grid-column: 1 / span 3; }
  .ftr__nav { grid-column: 4 / span 4; }
  .ftr__social { grid-column: 8 / span 3; }
  .ftr__meta { grid-column: 11 / -1; text-align: right; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
}
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: lb-in 420ms var(--ease-out); }
.lb[open] .lb__figure { animation: lb-rise 760ms var(--ease-glide) both; }
.lb.is-closing { opacity: 0; transition: opacity 220ms var(--ease-out); }
.lb::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { transform: translate3d(0, 14px, 0); } to { transform: none; } }
.lb__bar {
  display: flex; justify-content: space-between; align-items: center;
  height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
}
.lb__count { font-size: var(--t-xs); letter-spacing: var(--track-label); font-variant-numeric: tabular-nums; }
.lb__close { min-height: 44px; padding: 0; border: 0; background-color: transparent; cursor: pointer; font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; }
.lb__stage {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px));
  touch-action: pan-y;
}
.lb__figure { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
/* images are stacked in the frame so one can fade out while the next fades in */
.lb__frame { position: relative; flex: 1 1 auto; min-height: 0; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 380ms var(--ease-out); }
.lb__img.is-loaded { opacity: 1; }
.lb__cap { flex: none; font-size: var(--t-sm); color: var(--ink-2); text-align: center; min-height: 1.4em; }
.lb__nav {
  width: clamp(48px, 9vw, 132px); padding: 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2);
}
.lb__nav { transition: color .3s var(--ease-out); }
.lb__nav:hover { color: var(--ink); }
.lb__nav[hidden] { display: block !important; visibility: hidden; }

/* ==========================================================================
   Cursor (desktop)
   ========================================================================== */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.has-cursor textarea, html.has-cursor [contenteditable="true"] { cursor: text !important; }
html.has-cursor select { cursor: default !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 2147483647;
  width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-field { opacity: 0; }
/* A thin plus. It shows whatever is behind it in greyscale, inverted and pushed to
   pure black or white: white over dark areas, black over light ones. The two
   mask layers keep the line weight fixed while the arms grow over links. */
.cursor__mark {
  --s: 18px;
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s);
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: grayscale(1) invert(1) contrast(14);
          backdrop-filter: grayscale(1) invert(1) contrast(14);
  -webkit-mask:
    linear-gradient(#000 0 0) center / 100% 1.5px no-repeat,
    linear-gradient(#000 0 0) center / 1.5px 100% no-repeat;
          mask:
    linear-gradient(#000 0 0) center / 100% 1.5px no-repeat,
    linear-gradient(#000 0 0) center / 1.5px 100% no-repeat;
  transition: width .35s var(--ease-glide), height .35s var(--ease-glide);
}
.cursor.is-link .cursor__mark { --s: 30px; }
.cursor.is-down .cursor__mark { --s: 12px; }
.cursor.is-link.is-down .cursor__mark { --s: 24px; }
@supports not ((backdrop-filter: invert(1)) or (-webkit-backdrop-filter: invert(1))) {
  .cursor { mix-blend-mode: difference; }
  .cursor__mark { background: #fff; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-preview: 1ms; --dur-panel: 1ms; --dur-panel-out: 1ms; --dur-drawer: 1ms; --dur-page-out: 1ms; --dur-page-in: 1ms; }
  .rv { opacity: 1; transform: none; }
  .layer { transform: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
