@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
/* Bodoni Moda draws its dashes as hairlines that vanish at reading sizes; Jost supplies them. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+002D, U+2010-2015;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+002D, U+2010-2015;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #13255a;
  --navy-deep: #0a1535;
  --pearl: #eceef2;
  --pearl-floor: #d9dde5;
  --ink: #13255a;
  --text: #27324d;
  --text-soft: #46526e;
  --gold: #c6a05a;
  --gold-on-velvet: #d9bd82;
  --gold-ink: #6f5428;
  --mist: #dfe3ee;
  --mist-soft: #c4cbdc;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Jost", "Avenir Next", "Avenir", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wall: clamp(8px, 1.6vw, 24px);
  --overlap: clamp(140px, 26vh, 260px);
  --pad-block: clamp(64px, 8vw, 120px);
  --pad-inline: clamp(18px, 5vw, 80px);
  --gap: clamp(12px, 1.8vw, 28px);
  --velvet: url("img/velvet.webp");
  --satin: url("img/satin-pearl.webp");
  --foil: url("img/gold-foil.webp");
  --foil-deep: url("img/gold-foil-deep.webp");
  --ribbon: url("img/ribbon-gold.webp");
  --focus: var(--navy);
  color-scheme: light;
  scrollbar-color: var(--navy) var(--pearl);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--navy) var(--velvet) 0 0 / 384px repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--navy);
}

::selection { background: var(--navy); color: #f4f5f7; }

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

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

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

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }

ul[role="list"], ol { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 12px 18px; background: var(--pearl); color: var(--navy);
  font: 500 0.875rem/1 var(--sans);
}
.skip:focus { top: 12px; }

/* Foil stamping: the raster shows only through the letterforms. */
.foil, .foil-deep { color: var(--gold-on-velvet); }
.foil-deep { color: var(--gold-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil, .foil-deep {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 320px;
  }
  .foil { background-image: var(--foil); }
  .foil-deep { background-image: var(--foil-deep); }
}

/* ---------- Tiers: every tray in the case ---------- */

.tier { position: relative; }

.lining {
  margin: var(--wall) var(--wall) 0;
  padding: var(--pad-block) var(--pad-inline);
  border-radius: 6px;
  background: var(--pearl) var(--satin) 0 0 / max(1100px, 110vw) repeat;
  border: 1px solid rgba(19, 37, 90, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* The shadow a tray casts on the one beneath it. Static when tiers stack, deepening as a tier lifts. */
.tier::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: calc(100% - 10px);
  height: 10px;
  z-index: -1;
  border-radius: 50%;
  box-shadow: 0 12px 26px 2px rgba(5, 11, 30, 0.38), 0 1px 3px 1px rgba(5, 11, 30, 0.5);
  clip-path: inset(10px -80px -120px -80px);
  opacity: calc(0.45 + var(--lift, 0) * 0.55);
  transform: scaleY(calc(0.6 + var(--lift, 0) * 0.5));
  transform-origin: 50% 0;
  pointer-events: none;
}

.tier-in { max-width: 1320px; margin: 0 auto; }

.lining { --focus: var(--navy); }

.lining h2, .about-copy h2 {
  font: 500 clamp(1.75rem, 3.1vw, 2.75rem)/1.12 var(--display);
  letter-spacing: 0.06em;
  font-variation-settings: "opsz" 30;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin-top: 1.1rem;
  max-width: 44ch;
  font: italic 400 clamp(1.125rem, 1.6vw, 1.375rem)/1.5 var(--display);
  color: var(--text-soft);
  text-wrap: pretty;
}
.lede-plain { font: 400 1.0625rem/1.65 var(--sans); max-width: 60ch; }

.sub {
  margin: clamp(48px, 5vw, 72px) 0 18px;
  font: 500 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.lining h2 + .insert, .lede + .insert { margin-top: clamp(40px, 4.5vw, 64px); }

/* ---------- Tray inserts: one dominant recess and its satellites per compartment ---------- */

.insert {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-auto-flow: dense;
  column-gap: var(--gap);
  row-gap: clamp(28px, 3vw, 44px);
  align-items: start;
}
/* The next compartment of the same tier, behind a stitched divider in the lining. */
.insert + .insert {
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: clamp(48px, 5vw, 80px);
  border-top: 1px solid rgba(19, 37, 90, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.insert > .piece {
  grid-column: var(--gc, auto / span 6);
  grid-row: var(--gr, auto);
  margin-top: calc(var(--drop, 0) * var(--gap));
}
.insert > .hero { align-self: center; }

/* ---------- Fitted recesses: each sized to its own photograph ---------- */

.piece { min-width: 0; }

/* On the satin the photo sits flush in its cavity: no rim, only the shadow cast onto it and a lit lip below. */
.lining .recess {
  position: relative;
  padding: 0;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.lining .recess::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 3px 10px rgba(5, 11, 30, 0.3);
  pointer-events: none;
}
.lining .seat { box-shadow: none; }

.recess {
  display: block;
  padding: 3px;
  border-radius: 3px;
  /* The lining folds down into the cavity: the same satin, a step deeper. */
  background: linear-gradient(rgba(19, 37, 90, 0.24), rgba(19, 37, 90, 0.24)), var(--pearl) var(--satin) 30% 30% / 900px;
  box-shadow: inset 0 3px 10px rgba(5, 11, 30, 0.3), 0 1px 0 rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.seat {
  position: relative;
  display: block;
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: #c9ced8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.3s ease;
}
.seat img { width: 100%; height: 100%; object-fit: cover; }
.seat img.cropped { position: absolute; max-width: none; object-fit: fill; }

a.recess:hover .seat, a.recess:focus-visible .seat, .vid:hover .seat {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), 0 14px 28px rgba(0, 0, 0, 0.16);
}

/* The photo has lifted into the viewer; the fitted recess stays behind, empty. */
.recess.is-lifted .seat { opacity: 0; transition: opacity 0.2s ease; }
.piece:has(.recess.is-lifted) .cap { visibility: hidden; }

.cap {
  display: block;
  margin-top: 0.7rem;
  font: 600 0.75rem/1.35 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  text-wrap: balance;
}
/* Foil-stamped captions on the satin. The deep foil's lightest band is dimmed so 12px capitals keep 4.5:1. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lining .cap {
    color: transparent;
    background: var(--foil-deep) 0 0 / 140px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    filter: brightness(0.75);
  }
}
.cap-pub .pub, .cap-pub .work { display: block; }
.cap-pub .work {
  margin-top: 0.2rem;
  font: italic 400 0.9375rem/1.35 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* ---------- The case: lid and top tray ---------- */

.case {
  --focus: #ecd9a8;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100svh;
  padding: var(--wall) var(--wall) 0;
  color: var(--mist);
}

.lid, .tray { position: relative; background: var(--navy) var(--velvet) 0 0 / 384px repeat; }

.lid {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.9rem;
  min-height: clamp(230px, 33svh, 320px);
  padding: 56px 20px 40px;
  border-radius: 8px 8px 2px 2px;
  text-align: center;
  box-shadow: inset 0 -36px 60px -20px rgba(0, 0, 0, 0.6);
}
.lid::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 160, 90, 0.5);
  border-radius: 4px;
  pointer-events: none;
}

.monogram { position: relative; display: grid; place-items: center; width: 68px; height: 68px; }
.monogram .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--foil) center / 200px;
  -webkit-mask: radial-gradient(circle, transparent 32px, #000 32.5px, #000 33.5px, transparent 34px);
  mask: radial-gradient(circle, transparent 32px, #000 32.5px, #000 33.5px, transparent 34px);
}
.mono-letters {
  font: 500 1.375rem/1 var(--display);
  letter-spacing: 0.04em;
  padding-left: 0.04em;
}

.name {
  font: 600 clamp(2.25rem, 6vw, 5.5rem)/1 var(--display);
  font-variation-settings: "opsz" 36;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-left: 0.07em;
}
.name .foil { background-size: 420px; }

.role {
  font: 500 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-on-velvet);
  padding-left: 0.32em;
}

.all-concepts {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--gold-on-velvet);
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.all-concepts:hover span { text-decoration: underline; }

.hinge { position: relative; height: 12px; background: #050b1f; }
.hinge span {
  position: absolute;
  top: 1px;
  width: clamp(48px, 7vw, 88px);
  height: 10px;
  border-radius: 5px;
  background: var(--foil) 0 50% / 160px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hinge span:first-child { left: 14%; }
.hinge span:last-child { right: 14%; }

.tray {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4svh, 48px) clamp(16px, 4vw, 64px) clamp(32px, 5svh, 56px);
  border-radius: 2px 2px 8px 8px;
  box-shadow: inset 0 30px 40px -24px rgba(0, 0, 0, 0.7);
}

.tray-insert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vw, 72px);
}
.tray-insert .piece { flex: none; --h: min(46svh, 520px); }
.tray-insert .t-left, .tray-insert .t-right { --h: min(28svh, 310px); }
.tray-insert .seat { height: var(--h); width: calc(var(--h) * var(--ar)); }
.tray-insert .recess { width: max-content; }
.tray-insert .piece { width: calc(var(--h) * var(--ar) + 6px); }

.case .recess {
  background: var(--navy-deep);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(120, 150, 220, 0.12);
}
.case .cap { color: var(--gold-on-velvet); text-align: center; }

.ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 34px 0 22px;
  background: var(--gold) var(--ribbon) 0 50% / cover;
  color: var(--navy-deep);
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.6s var(--ease);
}
.ribbon:hover { transform: translateX(6px); }
.ribbon:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; }

.tray > .ribbon { position: absolute; right: clamp(16px, 5vw, 72px); bottom: clamp(22px, 5svh, 52px); }
.tray > .ribbon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgba(0, 0, 0, 0.4);
}

.clasp {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 64px;
  height: 12px;
  margin-left: -32px;
  border-radius: 2px 2px 4px 4px;
  background: var(--foil) 30% 50% / 180px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

/* ---------- Tier contents ---------- */

.vid { display: block; text-decoration: none; color: var(--ink); }
.vid .seat img { filter: saturate(0.92); }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  color: #f6f1e4;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.vid-title { display: block; margin-top: 0.7rem; font: 500 0.9375rem/1.35 var(--sans); }
.vid-by {
  display: block;
  margin-top: 0.15rem;
  font: 500 0.75rem/1.35 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.vid:hover .vid-title { text-decoration: underline; }

.past { margin-top: 36px; max-width: 70ch; font-size: 0.9375rem; color: var(--text-soft); }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-portrait .piece { --ar: 0.715; }
.about-copy { max-width: 62ch; }
.about-copy p { margin-top: 1.1rem; }
.about-copy h2 + p { margin-top: 1.6rem; }
.about-copy h3 {
  margin-top: 2.4rem;
  font: italic 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.35 var(--display);
  color: var(--ink);
}
.edu {
  font: 500 0.9375rem/1.6 var(--sans);
  letter-spacing: 0.02em;
  color: var(--gold-ink);
}
.voice { margin-top: 2.6rem; padding-top: 1.6rem; position: relative; }
.voice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--gold-ink);
}
.voice p { font: italic 400 clamp(1.25rem, 2vw, 1.625rem)/1.45 var(--display); color: var(--ink); }

.words { margin-top: clamp(40px, 4.5vw, 64px); columns: 2 340px; column-gap: clamp(40px, 6vw, 96px); }
.words li { break-inside: avoid; padding-bottom: clamp(36px, 4vw, 56px); }
.words blockquote p { font: italic 400 clamp(1.1875rem, 1.6vw, 1.375rem)/1.5 var(--display); color: var(--ink); text-wrap: pretty; }
.words figcaption { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; align-items: baseline; }
.words .who {
  font: 500 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.words .what { font-size: 0.9375rem; color: var(--text-soft); }

#clients .tier-in { text-align: center; }
.names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1120px;
  margin: clamp(36px, 4vw, 56px) auto 0;
  gap: 0.55rem clamp(1.4rem, 2.6vw, 2.6rem);
}
.names li {
  font: 600 clamp(1.5rem, 2.2vw, 1.875rem)/1.3 var(--display);
  font-variation-settings: "opsz" 11;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.names .foil-deep { background-size: 720px; }

/* ---------- The lid pocket and the card tucked in it ---------- */

.pocket {
  --focus: #ecd9a8;
  margin: var(--wall) var(--wall) 0;
  padding: var(--pad-block) var(--pad-inline) clamp(56px, 6vw, 88px);
  border-radius: 6px 6px 0 0;
  background: var(--navy) var(--velvet) 0 0 / 384px repeat;
  box-shadow: inset 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  color: var(--mist);
}
.pocket-in { max-width: 1240px; margin: 0 auto; }
.pocket h2 {
  max-width: 26ch;
  font: 500 clamp(1.75rem, 3.4vw, 3rem)/1.18 var(--display);
  font-variation-settings: "opsz" 30;
  text-wrap: balance;
}
.pocket h2 .foil { background-size: 380px; }

.pocket-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
  align-items: start;
}

.card-slot { position: relative; }
.card-slot::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: -2px;
  height: 76px;
  border-top: 1px solid rgba(198, 160, 90, 0.6);
  border-radius: 0 0 4px 4px;
  background: var(--navy) var(--velvet) 0 0 / 384px repeat;
  box-shadow: 0 -10px 18px -10px rgba(0, 0, 0, 0.6);
}

.card {
  --focus: var(--navy);
  position: relative;
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px) 112px;
  border-radius: 3px;
  background: var(--pearl) var(--satin) 40% 20% / 900px;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(111, 84, 40, 0.45);
  border-radius: 2px;
  pointer-events: none;
}
.card-note { font: italic 400 1.3125rem/1.4 var(--display); color: var(--ink); }
.asks { margin-top: 1.2rem; counter-reset: ask; }
.asks li {
  counter-increment: ask;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(19, 37, 90, 0.14);
  color: var(--ink);
}
.asks li:last-child { border-bottom: 1px solid rgba(19, 37, 90, 0.14); }
.asks li::before {
  content: counter(ask);
  min-width: 1ch;
  font: 500 1.125rem/1 var(--display);
  color: var(--gold-ink);
}
.ribbon-card { margin-top: 1.8rem; }
.address { margin-top: 1.1rem; }
.address a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; }

.invite .message { font: italic 400 clamp(1.1875rem, 1.6vw, 1.375rem)/1.55 var(--display); color: var(--mist); text-wrap: pretty; }
.invite h3 {
  margin-top: 2.2rem;
  font: 500 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-on-velvet);
}
.invite h3 + p { margin-top: 0.5rem; color: var(--mist-soft); max-width: 58ch; }

.social { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: clamp(40px, 5vw, 64px); }
.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-on-velvet);
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot {
  --focus: #ecd9a8;
  padding: 36px var(--pad-inline) 44px;
  text-align: center;
  color: #bcc4d6;
  font-size: 0.8125rem;
}
.foot .tag { margin-top: 0.4rem; color: var(--gold-on-velvet); letter-spacing: 0.12em; }

/* ---------- Ribbon bookmark once the case is open ---------- */

.bookmark {
  position: fixed;
  top: 0;
  right: clamp(14px, 4vw, 56px);
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 132px;
  min-height: 64px;
  padding: 16px 18px 26px;
  background: var(--gold) var(--ribbon) 0 50% / cover;
  color: var(--navy-deep);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 12px), 0 100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0s linear 0.7s;
}
.bookmark.is-shown { transform: none; visibility: visible; transition: transform 0.7s var(--ease), visibility 0s; }
.bookmark:hover { padding-top: 20px; }
.bookmark:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Viewer: the photo lifted out of its recess ---------- */

.viewer {
  --focus: #ecd9a8;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(5, 11, 30, 0.72); }
.viewer[open]::backdrop { animation: fade-in 0.4s ease both; }

.viewer-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 88px 20px; }
.viewer-fig { display: grid; justify-items: center; gap: 16px; }
.viewer-frame {
  --ar: 0.6665;
  position: relative;
  aspect-ratio: var(--ar);
  width: min(calc(100vw - 200px), calc((100svh - 210px) * var(--ar)));
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 8px 22px rgba(0, 0, 0, 0.35);
  transform-origin: 0 0;
}
.viewer-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.viewer-cap {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: min(360px, calc(100vw - 48px));
  max-width: min(72ch, calc(100vw - 48px));
  padding: 10px 20px;
  border-radius: 2px;
  background: rgba(5, 11, 30, 0.88);
  text-align: center;
}
.viewer-title { font: 500 1.25rem/1.25 var(--display); color: #ecd9a8; }
.viewer-credit { font-size: 0.8125rem; line-height: 1.5; color: var(--mist-soft); }
.viewer-count { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-soft); }

.vbtn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(198, 160, 90, 0.6);
  border-radius: 2px;
  background: rgba(10, 21, 53, 0.7);
  color: #ecd9a8;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.vbtn:hover { background: rgba(19, 37, 90, 0.95); border-color: var(--gold); }
.v-close { top: 16px; right: 16px; }
.v-prev { left: 20px; top: calc(50% - 24px); }
.v-next { right: 20px; top: calc(50% - 24px); }

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

/* ---------- Tier lift (enabled by main.js) ---------- */

.js-lift main > .tier:first-child, .js-lift main > .tier + .tier {
  margin-top: calc(-1 * var(--overlap));
  padding-top: calc(var(--pad-block) + var(--overlap) * 0.6);
}
.js-lift .tier.is-moving { will-change: transform; }

/* ---------- Responsive ---------- */

@media (max-width: 759px) {
  .lid { min-height: 200px; padding: 60px 16px 30px; gap: 0.6rem; }
  .all-concepts { top: 14px; left: 14px; }
  .monogram { width: 48px; height: 48px; }
  .monogram .ring {
    -webkit-mask: radial-gradient(circle, transparent 22px, #000 22.5px, #000 23.5px, transparent 24px);
    mask: radial-gradient(circle, transparent 22px, #000 22.5px, #000 23.5px, transparent 24px);
  }
  .mono-letters { font-size: 1rem; }
  .name { font-size: clamp(1.5rem, 7.4vw, 2.25rem); font-variation-settings: "opsz" 11; }
  .role { font-size: 0.75rem; letter-spacing: 0.26em; padding-left: 0.26em; }
  .hinge span:first-child { left: 10%; }
  .hinge span:last-child { right: 10%; }

  .tray { padding-top: 22px; padding-bottom: 28px; }
  .tray-insert {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: "main left" "main right";
    justify-content: center;
    align-items: start;
    gap: 14px;
  }
  .tray-insert .t-main { grid-area: main; --h: min(36svh, 280px); }
  .tray-insert .t-left { grid-area: left; --h: min(14svh, 112px); }
  .tray-insert .t-right { grid-area: right; --h: min(17svh, 140px); }
  .tray-insert .t-left, .tray-insert .t-right { justify-self: center; }
  .tray-insert .t-left .cap, .tray-insert .t-right .cap { letter-spacing: 0.1em; }
  .tray > .ribbon { position: relative; right: auto; bottom: auto; align-self: flex-end; margin-top: 18px; }

  .insert { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 14px; row-gap: 24px; }
  .insert > .piece { grid-column: auto / span 3; grid-row: auto; margin-top: 0; }
  .insert > .piece:nth-child(odd):not(.hero, .wide) { margin-top: 36px; }
  .insert > .hero { grid-column: 1 / span 5; }
  .insert-flip > .hero { grid-column: 2 / span 5; }
  .insert > .hero.wide { grid-column: 1 / -1; }
  .insert > .wide:not(.hero, .piece-vid) { grid-column: 1 / -1; width: 80%; }
  .insert > .wide:not(.hero, .piece-vid):nth-child(odd) { justify-self: end; }
  .insert > .piece-vid:nth-child(odd):not(.hero) { margin-top: 36px; }
  /* A satellite left without a partner takes the row alone, centred, instead of leaving half of it empty. */
  .insert > .piece:not(.hero):last-child:nth-child(even):not(.wide:not(.piece-vid)),
  .insert > .piece:nth-child(even):not(.hero, .wide):has(+ .wide:not(.piece-vid)) {
    grid-column: 1 / -1;
    width: 66%;
    justify-self: center;
    margin-top: 0;
  }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { max-width: 300px; }
  .pocket-body { grid-template-columns: minmax(0, 1fr); }
  .card-slot::after { left: -12px; right: -12px; }

  .viewer-stage { padding: 64px 16px 88px; }
  .viewer-cap { background: rgba(5, 11, 30, 0.96); }
  .viewer-frame { width: min(calc(100vw - 32px), calc((100svh - 260px) * var(--ar))); }
  .v-prev, .v-next { top: auto; bottom: 16px; }
  .v-prev { left: calc(50% - 60px); }
  .v-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .seat, .ribbon, .bookmark { transition: opacity 0.3s ease, visibility 0s; }
  a.recess:hover .seat, a.recess:focus-visible .seat, .vid:hover .seat, .ribbon:hover { transform: none; }
  .bookmark { transform: none; opacity: 0; }
  .bookmark.is-shown { opacity: 1; }
}
