/* ==========================================================================
   Chapman Digital — 2026 refresh
   Black. White. Grey. Colour arrives only through the photographs.
   ========================================================================== */

/* ---- tokens ---- */
:root {
  --paper: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #1c1c1c;
  --ash: #6d6d6d;
  --ash-light: #9a9a9a;
  --line: #dcdcda;
  --line-soft: #ececea;
  --wash: #f5f4f2;

  --hdr: 84px;
  --gut: clamp(1.15rem, 4vw, 3.25rem);
  --maxw: 1560px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  --fs-micro: .625rem;
  --fs-label: .6875rem;
}

@media (min-width: 900px) {
  :root { --hdr: 104px; }
}

/* ---- reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---- film grain: a whisper of texture over everything ---- */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- type helpers ---- */
.eyebrow,
.nav a,
.btn-stack a,
.frame-cap,
.rail-nav,
.meta {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
}

.eyebrow {
  font-size: var(--fs-micro);
  color: var(--ash);
  letter-spacing: .28em;
  margin: 0;
}

.serif {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.lede {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.lede + .lede { margin-top: 1em; }

.fineprint {
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--ash);
  max-width: 62ch;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.2rem;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.skip:focus { left: 0; }

/* ==========================================================================
   HEADER  — logo left, nav right (unchanged placement)
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head__in {
  height: var(--hdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: block; flex: none; }
.logo img {
  height: clamp(46px, 6.5vw, 66px);
  width: auto;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 1.9rem); }

.nav a {
  font-size: var(--fs-label);
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
}
.nav-toggle .bars {
  display: inline-block;
  width: 20px;
  height: 9px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--hdr);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.4rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    width: 100%;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .8125rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { padding-left: .9rem; box-shadow: inset 2px 0 0 var(--ink); }
}

/* ==========================================================================
   HERO — full-bleed frame, three black buttons dead centre (as before)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.04);
  animation: heroIn 2.4s var(--ease) both;
}

@keyframes heroIn {
  from { transform: scale(1.12); opacity: 0; }
  to   { transform: scale(1.04); opacity: 1; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.48) 42%, rgba(0,0,0,.20) 100%);
  z-index: 1;
}

.hero__in {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--hdr) * .6) var(--gut) 4rem;
  width: 100%;
  min-width: 0;
}

.hero__kicker {
  font-size: var(--fs-micro);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 auto 1.6rem;
  max-width: min(100%, 34ch);
  opacity: .78;
  animation: rise .9s var(--ease) both .15s;
}

.btn-stack {
  display: inline-flex;
  flex-direction: column;
  gap: .55rem;
  width: min(100%, 320px);
}

.btn-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  letter-spacing: .2em;
  padding: 1.05rem 1.15rem;
  position: relative;
  overflow: hidden;
  animation: rise .9s var(--ease) both;
}
.btn-stack a:nth-child(1) { animation-delay: .28s; }
.btn-stack a:nth-child(2) { animation-delay: .40s; }
.btn-stack a:nth-child(3) { animation-delay: .52s; }

.btn-stack a span:last-child {
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  color: var(--ash-light);
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.btn-stack a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn-stack a span { position: relative; z-index: 1; transition: color .35s var(--ease); }
.btn-stack a:hover::before,
.btn-stack a:focus-visible::before { transform: translateY(0); }
.btn-stack a:hover span,
.btn-stack a:focus-visible span { color: var(--ink); }
.btn-stack a { border: 1px solid var(--ink); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: var(--fs-micro);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  mix-blend-mode: difference;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: currentColor;
  animation: drop 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drop {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PAGE HEADS (interior pages)
   ========================================================================== */
.page-head {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(1.8rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1,
.group h2 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: .95;
  margin: .5rem 0 0;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
}

.page-head .lede { margin-top: 1.6rem; }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}

/* ==========================================================================
   HOMEPAGE GROUP BLOCKS
   ========================================================================== */
.group {
  padding: clamp(3.2rem, 8vw, 7rem) 0 clamp(2.6rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.group:last-of-type { border-bottom: 0; }

.group__head {
  display: grid;
  gap: 1.1rem 3rem;
  align-items: end;
  grid-template-columns: 1fr;
  margin-bottom: clamp(1.6rem, 3.4vw, 2.6rem);
}

@media (min-width: 900px) {
  .group__head { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem) auto; }
}

.group__num {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--ash);
  display: block;
  margin-bottom: .1rem;
}

.linkline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  transition: gap .35s var(--ease);
}
.linkline:hover, .linkline:focus-visible { gap: 1.1rem; }

/* ---- the rail (essential carousel) ---- */
.rail-shell { position: relative; }

.rail {
  display: flex;
  gap: clamp(.5rem, 1vw, .85rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: .25rem;
}
.rail::-webkit-scrollbar { display: none; }

.rail > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: clamp(240px, 74vw, 340px);
}

@media (min-width: 720px)  { .rail > * { width: 40vw; max-width: 460px; } }
@media (min-width: 1100px) { .rail > * { width: 27vw; max-width: 480px; } }

.shot {
  position: relative;
  display: block;
  background: var(--wash);
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
a.shot:hover img,
a.shot:focus-visible img { transform: scale(1.045); }

.shot--wide  { aspect-ratio: 3 / 2; }
.shot--tall  { aspect-ratio: 4 / 5; }
.shot--film  { aspect-ratio: 16 / 9; }

.rail .shot { aspect-ratio: 3 / 2; }

/* video cards */
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.play::before {
  content: "";
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  position: absolute;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.play::after {
  content: "";
  position: relative;
  width: 0; height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 4px;
  transition: border-left-color .5s var(--ease);
}
a.shot:hover .play::before { transform: scale(1.12); background: #fff; }
a.shot:hover .play::after { border-left-color: var(--ink); }

.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem .9rem .75rem;
  color: #fff;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
}

/* rail arrows — desktop only */
.rail-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.rail-nav:hover { background: var(--ink); color: #fff; }
.rail-nav[hidden] { display: none !important; }
.rail-nav--prev { left: calc(var(--gut) * -1 + .35rem); }
.rail-nav--next { right: calc(var(--gut) * -1 + .35rem); }

@media (min-width: 1100px) and (hover: hover) {
  .rail-nav { display: grid; }
}

.rail-rule {
  margin-top: 1rem;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rail-rule i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: var(--ink);
  width: 22%;
  transform-origin: left;
  transition: transform .18s linear, width .18s linear;
}

/* ---- subsection frames, grouped ---- */
.frames {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.frames--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.frame {
  display: block;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.frame:hover,
.frame:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(0,0,0,.55);
}

.frame__mat {
  display: block;
  padding: 9px;
  background: var(--paper);
}
.frame__win {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wash);
}
.frame__win img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.frame__win--contain { background: var(--paper); }
.frame__win--contain img { object-fit: contain; padding: 8%; }
.frame:hover .frame__win img { transform: scale(1.04); }
.frame:hover .frame__win--contain img { transform: scale(1.02); }

.frame-cap {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: .78rem .9rem;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  line-height: 1.25;
}
.frame-cap span:last-child {
  color: var(--ash-light);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  flex: none;
}

/* ==========================================================================
   SECTION PAGES — subsection blocks + galleries
   ========================================================================== */
.sub {
  padding: clamp(2.6rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.sub:last-of-type { border-bottom: 0; }

.sub__head {
  display: grid;
  gap: 1.2rem 3.5rem;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: clamp(1.6rem, 3.4vw, 2.6rem);
}
@media (min-width: 980px) {
  .sub__head { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
}

.sub__head h2 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.02;
  margin: .35rem 0 0;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
}

.gallery {
  display: grid;
  gap: clamp(.55rem, 1.1vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}

/* fine-art prints already carry their own frame + mat: give them air, never crop */
.gallery--prints {
  gap: clamp(1rem, 2.4vw, 2.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.gallery--prints .tile { background: var(--paper); }
.gallery--prints .tile img { object-fit: contain; }

/* design work sits on its own ground — never crop a layout */
.gallery--flat .tile {
  background: var(--paper);
  border: 1px solid var(--line);
}
.gallery--flat .tile img { object-fit: contain; padding: 6%; }
.gallery--flat .tile:hover img { transform: scale(1.02); }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wash);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .5s var(--ease);
}
.tile:hover img { transform: scale(1.035); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,.06);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.tile:hover::after { opacity: 1; }

/* video grid */
.films {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.film {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.film__frame--tall { aspect-ratio: 9 / 16; max-width: 380px; }
.film__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film h3 {
  margin: .9rem 0 0;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
}

/* ==========================================================================
   ABOUT / CONTACT
   ========================================================================== */
.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
  padding: clamp(2.6rem, 7vw, 5.5rem) 0;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .split--flip > *:first-child { order: 2; }
}

.bio { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.bio + .bio { margin-top: clamp(2rem, 4vw, 3rem); }
.bio h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: .5rem 0 1rem;
}

.portrait {
  filter: grayscale(1) contrast(1.04);
  width: 100%;
  transition: filter .8s var(--ease);
}
.portrait:hover { filter: grayscale(0) contrast(1); }

/* form */
.form {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  margin-top: 2.4rem;
}
.field { display: grid; gap: .5rem; }
.field label {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ash);
}
.field input,
.field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
  border-radius: 0;
  transition: border-color .35s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }

.submit {
  justify-self: start;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 1rem 2.4rem;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 500;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.submit:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot {
  border-top: 1px solid var(--ink);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.4rem, 5vw, 4rem) 0 2.2rem;
}
.foot-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, auto)); }
}
.foot-grid h2 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  margin: .6rem 0 1.2rem;
  max-width: 16ch;
}
.foot-nav { display: grid; gap: .55rem; }
.foot-nav a {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--ash);
  transition: color .3s var(--ease);
}
.foot-nav a:hover { color: var(--ink); }

.foot-meta {
  display: grid;
  gap: .55rem;
  align-content: start;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
}

.colophon {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(255,255,255,.985);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lb[data-open="true"] { opacity: 1; visibility: visible; }

.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gut);
  font-size: var(--fs-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}
.lb__stage {
  display: grid;
  place-items: center;
  padding: 0 var(--gut);
  min-height: 0;
}
.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 1.2rem var(--gut) 1.8rem;
}
.lb__btn {
  border: 1px solid var(--ink);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lb__btn:hover { background: var(--ink); color: #fff; }
.lb__close {
  font-size: var(--fs-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .2rem;
  color: var(--ink);
}

/* ==========================================================================
   REVEALS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rail { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__img { animation: none; transform: scale(1); }
}
