@font-face {
  font-family: "Marcellus";
  src: url("fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@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-0: #0b1630;
  --navy-1: #0d1a33;
  --navy-2: #16294d;
  --ivory: #eef0f2;
  --ivory-2: #b9c3d4;
  --brass: #c9a86a;
  --engrave: #26190a;
  --ink: #13213f;
  --lit: #ffc56e;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 72px);
  --panel-room: 0px;
  --needle: -78deg;
  --brass-img: url("img/brass-brushed.webp");
  --turned-img: url("img/brass-turned.webp");
  --lacquer-img: url("img/lacquer.webp");
  --display: "Marcellus", "Times New Roman", serif;
  --text: "Jost", "Futura", "Century Gothic", sans-serif;
  color-scheme: dark;
  scrollbar-color: var(--brass) var(--navy-0);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 0;
  background: var(--navy-1) var(--lacquer-img) center top / 100% auto repeat-y;
  color: var(--ivory);
  font: 360 1.0625rem/1.65 var(--text);
  caret-color: var(--lit);
}

::selection { background: var(--brass); color: var(--ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--navy-0); }
::-webkit-scrollbar-thumb { background: var(--brass); border: 3px solid var(--navy-0); border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 4px; }
h1, h2, h3, h4, p, blockquote, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--navy-0);
  color: var(--ivory);
  font: 500 0.8125rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skip:focus { top: 12px; }

/* ---------- Floor indicator ---------- */

.dial { display: block; overflow: visible; }
.dial-band, .dial-plinth { fill: url(#m-brass); }
.dial-face { fill: url(#m-lacquer); }
.dial-ticks line { stroke: var(--engrave); stroke-width: 2.4; stroke-linecap: round; }
.dial-num text { font-family: var(--display); font-size: 29px; text-anchor: middle; dominant-baseline: central; fill: #2a1c08; }
.dial-num .hl { fill: rgba(255, 242, 208, 0.6); }
.needle { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(var(--needle)); transition: transform 1600ms var(--ease); }
.needle path { fill: url(#m-brass); stroke: rgba(40, 25, 5, 0.85); stroke-width: 1.2; }
.needle circle { fill: url(#m-turned); stroke: rgba(40, 25, 5, 0.7); stroke-width: 1.2; }

/* ---------- Lobby ---------- */

.lobby { position: relative; display: flex; flex-direction: column; align-items: center; padding: clamp(20px, 3.4vh, 40px) var(--pad) 0; }

.all-concepts {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 2px;
  background: #b89a5c var(--brass-img) left center / 600px auto;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.7), 0 8px 18px -8px rgba(0, 0, 0, 0.7);
  color: var(--engrave);
  text-shadow: 0 1px 0 rgba(255, 242, 208, 0.62);
  font: 500 0.75rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.all-concepts:hover { box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.9), 0 10px 22px -8px rgba(0, 0, 0, 0.8); filter: brightness(1.06); }
.dial-hero { width: clamp(280px, 36vw, 560px); height: auto; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55)); }

.plaque {
  position: relative;
  z-index: 2;
  margin-top: clamp(14px, 2.4vh, 26px);
  padding: 20px 52px 18px;
  border-radius: 3px;
  background: #b89a5c var(--brass-img) center / 900px auto;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.8), inset 0 -2px 0 rgba(60, 40, 12, 0.4), 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  text-align: center;
  color: var(--engrave);
  text-shadow: 0 1px 0 rgba(255, 242, 208, 0.62), 0 -1px 0 rgba(40, 25, 5, 0.3);
}

.plaque h1 { font: 400 clamp(1.5rem, 1.1rem + 1.7vw, 2.75rem)/1.1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; margin-right: -0.16em; }
.plaque p { margin-top: 10px; font: 500 0.8125rem/1.2 var(--text); letter-spacing: 0.26em; text-transform: uppercase; margin-right: -0.26em; }

.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--turned-img) center / cover;
  box-shadow: inset 0 1px 1px rgba(40, 25, 5, 0.6), 0 1px 0 rgba(255, 242, 208, 0.6);
}

.screw::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 4px;
  height: 1px;
  background: rgba(40, 25, 5, 0.75);
  transform: rotate(35deg);
}

.screw:nth-child(1) { top: 8px; left: 8px; }
.screw:nth-child(2) { top: 8px; right: 8px; }
.screw:nth-child(3) { bottom: 8px; left: 8px; }
.screw:nth-child(4) { bottom: 8px; right: 8px; }
.hero-lift { width: 100%; margin-top: clamp(18px, 3vh, 32px); }
.hero-lift .lift { width: min(100%, calc(clamp(420px, 80svh, 820px) * var(--sar))); }

/* ---------- Lift shaft and doors ---------- */

.lift { position: relative; width: min(100%, calc(74vh * var(--sar))); margin-inline: auto; }

.architrave {
  padding: clamp(8px, 0.9vw, 14px) clamp(8px, 0.9vw, 14px) 0;
  border-radius: 2px 2px 0 0;
  background: #b89a5c var(--brass-img) center / cover;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.75), 0 30px 60px -28px rgba(0, 0, 0, 0.85);
}

.shaft { position: relative; aspect-ratio: var(--sar); overflow: hidden; background: #060c1a; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8); }
.shaft .lead { position: absolute; inset: 0 15%; display: block; }
.shaft .lead .pic, .shaft .lead img { width: 100%; height: 100%; }
.shaft .lead img { object-fit: cover; }

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--navy-2) var(--lacquer-img) center / cover;
  pointer-events: none;
  transition: transform 1700ms var(--ease) 260ms;
}

.door::before {
  content: "";
  position: absolute;
  inset: 7% 16%;
  border-radius: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(150, 175, 220, 0.16), 0 1px 0 rgba(150, 175, 220, 0.12);
}

.door::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(5px, 0.5vw, 8px);
  background: #b89a5c var(--brass-img) center / auto 100%;
  box-shadow: inset 1px 0 0 rgba(255, 244, 212, 0.6);
}

.door-l { left: 0; background-position: 3% 0; transform: translateX(-70%); box-shadow: 10px 0 22px -6px rgba(0, 0, 0, 0.65); }
.door-l::after { right: 0; }
.door-r { right: 0; background-position: 97% 0; transform: translateX(70%); box-shadow: -10px 0 22px -6px rgba(0, 0, 0, 0.65); }
.door-r::after { left: 0; }
.shaft.is-shut .door { transform: none; transition-delay: 0ms; }

.sill {
  display: block;
  height: clamp(10px, 1vw, 14px);
  margin-inline: clamp(-20px, -1.4vw, -10px);
  border-radius: 1px;
  background: #b89a5c var(--brass-img) center / cover;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.85), inset 0 -1px 0 rgba(60, 40, 12, 0.5), 0 14px 22px -10px rgba(0, 0, 0, 0.8);
}

.rail {
  display: block;
  height: 10px;
  margin-inline: var(--pad) calc(var(--pad) + var(--panel-room));
  border-radius: 1px;
  background: #b89a5c var(--brass-img) center / cover;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.85), inset 0 -1px 0 rgba(60, 40, 12, 0.5), 0 12px 20px -10px rgba(0, 0, 0, 0.8);
}

.lobby + .rail { margin-top: clamp(72px, 9vw, 128px); }

/* ---------- Floors ---------- */

.floor { padding: clamp(80px, 10vw, 160px) calc(var(--pad) + var(--panel-room)) clamp(88px, 10vw, 150px) var(--pad); }
.floor > * { max-width: 1240px; margin-inline: auto; }
.landing { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(32px, 5vw, 88px); align-items: center; margin-bottom: clamp(72px, 9vw, 136px); }
.landing.flip { grid-template-columns: 4fr 8fr; }
.landing.flip .lift { order: 2; }
.landing-text.solo { display: flex; justify-content: center; margin-bottom: clamp(56px, 7vw, 96px); }

.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.45em 1.1em 0.45em 0.7em;
  border-radius: 2px;
  background: #b89a5c var(--brass-img) center / 900px auto;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.8), inset 0 -2px 0 rgba(60, 40, 12, 0.4), 0 14px 26px -12px rgba(0, 0, 0, 0.75);
  color: var(--engrave);
  text-shadow: 0 1px 0 rgba(255, 242, 208, 0.62), 0 -1px 0 rgba(40, 25, 5, 0.3);
  font: 400 clamp(1.35rem, 0.95rem + 1.2vw, 2.15rem)/1.15 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plate .fl {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  flex: none;
  border-radius: 50%;
  font-size: 1.15em;
  letter-spacing: 0;
  box-shadow: inset 0 2px 3px rgba(40, 25, 5, 0.5), 0 1px 0 rgba(255, 242, 208, 0.6);
}

/* ---------- Gallery: photographs hung from brass picture rails, rows share one height ---------- */

.gallery { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.row { position: relative; display: flex; gap: clamp(16px, 2.4vw, 36px); align-items: flex-start; }
.row .hang { flex: var(--a) 1 0; min-width: 0; }
.row, .boards { --rail-h: 8px; --drop: clamp(22px, 2.4vw, 34px); }
.row .hang, .boards .hang { position: relative; padding-top: calc(var(--rail-h) + var(--drop)); }

.row::before, .boards::before {
  content: "";
  position: absolute;
  top: 0;
  left: -14px;
  right: -14px;
  height: var(--rail-h);
  border-radius: 2px;
  background: #b89a5c var(--brass-img) center / cover;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.85), inset 0 -1px 0 rgba(60, 40, 12, 0.5), 0 10px 16px -8px rgba(0, 0, 0, 0.85);
}

/* Two brass hanging rods drop from the rail to the top of each frame. */
.row .hang::after, .boards .hang::after {
  content: "";
  position: absolute;
  top: var(--rail-h);
  left: 24%;
  right: 24%;
  height: var(--drop);
  border-inline: 2px solid #b08f52;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6));
}
.shot { display: block; text-decoration: none; }
.pic { display: block; position: relative; overflow: hidden; background: var(--navy-0); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.9); }
.pic img { width: 100%; transition: filter 400ms var(--ease); }
.pic.igc { aspect-ratio: var(--ar); }
.pic.igc img { position: absolute; max-width: none; width: var(--iw); left: var(--il); height: var(--ih); top: var(--it); }
.shot:hover img { filter: brightness(1.07) saturate(1.04); }
/* Each caption is a small brass plate under its frame, lettering engraved with an inset shadow. */
.hang figcaption {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 6px 14px 5px;
  border-radius: 2px;
  background: #b89a5c var(--brass-img) center / 700px auto;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.8), inset 0 -1px 0 rgba(60, 40, 12, 0.45), 0 8px 14px -8px rgba(0, 0, 0, 0.8);
  color: var(--engrave);
  text-shadow: 0 1px 0 rgba(255, 242, 208, 0.62), 0 -1px 0 rgba(40, 25, 5, 0.3);
  font: 400 0.8125rem/1.35 var(--display);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.shot:hover + figcaption { filter: brightness(1.08); }

/* ---------- Lacquer panel: Published in ---------- */

.panel-lacquer {
  position: relative;
  margin-top: clamp(80px, 10vw, 140px);
  padding: 60px 52px 64px;
  background: var(--navy-2) var(--lacquer-img) center / cover;
  box-shadow: 0 36px 70px -36px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(150, 175, 220, 0.12);
}

.panel-lacquer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: #b89a5c var(--brass-img) center / cover;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.85), 0 6px 12px -6px rgba(0, 0, 0, 0.8);
}

h3 { font: 400 clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem)/1.25 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.published h3 { text-align: center; }

.pubs {
  list-style: none;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  align-items: end;
}

.pubs figcaption { margin-top: 16px; }
.pubs h4 { font: 500 0.8125rem/1.4 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); }
.pubs p { margin-top: 4px; color: var(--ivory-2); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- Her voice ---------- */

.voice { max-width: 36ch; margin: clamp(64px, 8vw, 112px) auto 0; text-align: center; }
.voice p { font: 400 clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem)/1.45 var(--display); color: var(--ivory); }
.voice p::before { content: "\201C"; }
.voice p::after { content: "\201D"; }
.voice footer { margin-top: 16px; color: var(--ivory-2); font: 450 0.8125rem/1 var(--text); letter-spacing: 0.22em; text-transform: uppercase; }
.voice-lead { margin: 0 auto clamp(64px, 8vw, 112px); }

/* ---------- Beyond the lens ---------- */

.beyond .lede { max-width: 60ch; margin-bottom: clamp(48px, 6vw, 80px); color: var(--ivory); }
.beyond h3 { margin: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 36px); }
.beyond .lede + h3 { margin-top: 0; }
.boards { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.reel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 36px); }
.reel-item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }

.reel-thumb {
  position: relative;
  display: block;
  margin-bottom: 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-0);
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.9);
}

.reel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter 400ms var(--ease); }

.play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  padding: 10px 9px 10px 11px;
  border-radius: 50%;
  background: var(--navy-0);
  color: var(--ivory);
  box-shadow: 0 0 0 2px var(--brass), 0 6px 14px -4px rgba(0, 0, 0, 0.8);
}

.reel-item:hover img { filter: brightness(1.08); }
.reel-title { color: var(--ivory); line-height: 1.35; }
.reel-item:hover .reel-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.reel-for { color: var(--ivory-2); font: 450 0.8125rem/1.4 var(--text); letter-spacing: 0.12em; text-transform: uppercase; }
.past { max-width: 70ch; margin-top: clamp(40px, 5vw, 64px); color: var(--ivory-2); font-size: 0.9375rem; }
.past span { color: var(--ivory); }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.bio { max-width: 62ch; }
.bio h3 + p { margin-top: 16px; }
.bio p + h3 { margin-top: clamp(40px, 5vw, 64px); }
.bio .edu { margin-top: clamp(36px, 4vw, 52px); color: var(--ivory-2); font: 450 0.9375rem/1.6 var(--text); letter-spacing: 0.04em; }
.about-side .voice { margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Kind words ---------- */

.words { --words-gap: clamp(44px, 5vw, 64px); list-style: none; margin: 0 0 calc(-1 * var(--words-gap)); padding: 0; columns: 3 18rem; column-gap: clamp(32px, 4vw, 64px); }
.words li { break-inside: avoid; padding-bottom: var(--words-gap); }
.words p::before { content: "\201C"; display: block; height: 0.62em; margin-bottom: 10px; color: var(--brass); font: 400 3.2rem/1 var(--display); }
.words footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; }
.words .who { font: 400 1.125rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.words .kind { color: var(--ivory-2); font: 450 0.8125rem/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Concierge ---------- */

.desk { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }

.stationery {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
  border-radius: 2px;
  background: var(--ivory) url("img/paper.webp") center / cover;
  color: var(--ink);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35), 0 34px 60px -26px rgba(0, 0, 0, 0.85);
}

.stationery ::selection { background: var(--ink); color: var(--ivory); }

.crest { display: block; width: 76px; height: auto; margin: 0 auto clamp(24px, 3vw, 36px); }
.crest-ring { fill: none; stroke: url(#m-brass); stroke-width: 5; }
.crest-ring.inner { stroke-width: 2.5; }
.crest text { font-family: var(--display); font-size: 33px; letter-spacing: 1px; text-anchor: middle; dominant-baseline: central; }
.crest-mono { fill: url(#m-brass); }
.crest-shade { fill: rgba(40, 25, 5, 0.45); }

.stationery h3 { color: var(--ink); margin-bottom: 18px; }
.stationery .kindly { margin-top: 28px; font-weight: 500; }
.asks { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: ask; }
.asks li { counter-increment: ask; display: flex; align-items: baseline; gap: 16px; padding: 6px 0; }
.asks li::before { content: counter(ask); width: 1.4em; flex: none; font: 400 1.25rem/1 var(--display); color: #7a5c22; }

.send {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 28px;
  border-radius: 26px;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: inset 0 0 0 2px var(--brass), 0 10px 20px -10px rgba(0, 0, 0, 0.6);
  font: 500 0.875rem/1.3 var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 250ms var(--ease);
}

.send:hover { background: var(--navy-2); }
.send:focus-visible { outline-color: #b06f00; }
.invitations dl { margin-top: 24px; }
.invitations dt { margin-top: 28px; font: 400 1.125rem/1.3 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.invitations dt:first-child { margin-top: 0; }
.invitations dd { margin-top: 8px; color: var(--ivory-2); }
.social { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }

.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.875rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 6px;
}

.social a:hover { color: var(--brass); }
.key-rack { margin-top: clamp(88px, 11vw, 150px); }
.key-rack h3 { text-align: center; }

/* The key rack: each line of fobs hangs from its own brass rail. Each fob li carries a rail
   segment that meets its neighbours across the gap, plus a hook; the fob plate hangs hole-up
   from a ring on that hook, at a slight static tilt. */
.fobs {
  --gap-x: 16px;
  --rail-h: 8px;
  list-style: none;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 32px 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px var(--gap-x);
  background: var(--navy-2) var(--lacquer-img) center / cover;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.55), 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}

.fob { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--rail-h) + 22px); }

.fob::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--gap-x) / -2);
  right: calc(var(--gap-x) / -2);
  height: var(--rail-h);
  background: #b89a5c var(--brass-img) center / 600px auto;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.85), inset 0 -1px 0 rgba(60, 40, 12, 0.5), 0 8px 12px -6px rgba(0, 0, 0, 0.8);
}

.fob::after {
  content: "";
  position: absolute;
  top: calc(var(--rail-h) - 1px);
  left: 50%;
  width: 6px;
  height: 9px;
  margin-left: -3px;
  border-radius: 0 0 3px 3px;
  background: var(--turned-img) center / cover;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

.fob span {
  position: relative;
  display: block;
  min-width: 7.5em;
  padding: 30px 18px 14px;
  border-radius: 20px 20px 5px 5px;
  background: #c3a467 var(--brass-img) center / 700px auto;
  background-blend-mode: soft-light;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.8), inset 0 -1px 0 rgba(60, 40, 12, 0.45), 0 12px 16px -8px rgba(0, 0, 0, 0.8);
  color: var(--engrave);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 242, 208, 0.55);
  font: 550 0.8125rem/1.2 var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 50% 14px;
}

.fob:nth-child(3n + 1) span { background-position: 20% 30%; --tilt: -1.2deg; }
.fob:nth-child(3n + 2) span { background-position: 70% 60%; --tilt: 0.8deg; }
.fob:nth-child(4n) span { --tilt: 1.5deg; }
.fob:nth-child(5n) span { --tilt: -0.5deg; }

/* The hole, punched near the top of the plate. */
.fob span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--navy-0);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 242, 208, 0.6);
}

/* The split ring, from the hook through the hole. */
.fob span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 14px;
  height: 30px;
  margin-left: -7px;
  border: 2px solid #b08f52;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.45), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ---------- Footer ---------- */

.foot { padding: 0 0 clamp(40px, 5vw, 64px); }
.foot p { max-width: 70ch; margin: clamp(32px, 4vw, 48px) auto 0; padding-inline: var(--pad); text-align: center; color: var(--ivory-2); font-size: 0.875rem; }

/* ---------- Button panel: the navigation ---------- */

.panel {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 72px;
  padding: 14px 0 16px;
  border-radius: 36px;
  background: var(--navy-2) var(--lacquer-img) center / cover;
  box-shadow: inset 0 0 0 2px rgba(201, 168, 106, 0.7), inset 0 0 0 3px rgba(20, 12, 2, 0.6), 0 20px 40px -14px rgba(0, 0, 0, 0.85);
  transform: translateY(-58%);
}

.dial-mini { width: 56px; height: auto; }
.dial-mini .dial-num { display: none; }
.panel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 8px; }

.btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--turned-img) center / cover;
  box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 244, 212, 0.5);
  color: var(--ivory-2);
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #0a1429;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(40, 25, 5, 0.6);
  transition: background-color 600ms var(--ease), box-shadow 600ms var(--ease);
}

.btn .num { position: relative; font: 500 0.9375rem/1 var(--text); transition: color 600ms var(--ease); }
.btn:hover .num { color: var(--ivory); }
.btn.is-lit::before { background: var(--lit); box-shadow: inset 0 0 6px rgba(255, 250, 235, 0.7), 0 0 0 1px rgba(40, 25, 5, 0.6), 0 0 16px 3px rgba(255, 190, 96, 0.5); }
.btn.is-lit .num { color: var(--ink); font-weight: 600; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lit), 0 0 18px 4px rgba(255, 190, 96, 0.45); }

.btn .name {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 7px 12px;
  border-radius: 2px;
  background: var(--navy-0);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(201, 168, 106, 0.5);
  color: var(--ivory);
  font: 450 0.8125rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 250ms var(--ease);
}

.btn:hover .name, .btn:focus-visible .name { opacity: 1; }

/* ---------- Call button ---------- */

.call {
  position: fixed;
  right: 8px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--turned-img) center / cover;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 244, 212, 0.6);
  color: var(--ink);
  text-decoration: none;
}

.call::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: inset 0 0 12px rgba(150, 172, 206, 0.75), 0 0 0 1px rgba(40, 25, 5, 0.6), 0 0 14px 2px rgba(220, 230, 245, 0.28);
  transition: box-shadow 400ms var(--ease);
}

.call span { position: relative; width: 70px; text-align: center; font: 600 0.75rem/1.25 var(--text); letter-spacing: 0.14em; text-transform: uppercase; }
.call:hover::before { box-shadow: inset 0 0 8px rgba(150, 172, 206, 0.5), 0 0 0 1px rgba(40, 25, 5, 0.6), 0 0 22px 5px rgba(220, 230, 245, 0.4); }
.call:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lit), 0 0 22px 5px rgba(255, 190, 96, 0.45); }

/* ---------- Photo viewer ---------- */

.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--navy-0) var(--lacquer-img) center / cover;
  color: var(--ivory);
  overflow: hidden;
}

.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.viewer::backdrop { background: rgba(5, 10, 22, 0.85); }
.viewer-stage { display: grid; place-items: center; min-height: 0; padding: 32px 96px 8px; container-type: size; }

.viewer-frame {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--ar, 0.6667)));
  aspect-ratio: var(--ar, 0.6667);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}

.viewer-img { position: absolute; max-width: none; object-fit: cover; }
.viewer-cap { padding: 18px 96px 28px; text-align: center; }
.viewer-title { font: 400 clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem)/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.viewer-credit { max-width: 80ch; margin: 8px auto 0; color: var(--ivory-2); font-size: 0.9375rem; line-height: 1.5; }

.viewer-count {
  margin-top: 8px;
  color: var(--ivory-2);
  font: 450 0.8125rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.vbtn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--turned-img) center / cover;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.8);
  color: var(--ivory);
  cursor: pointer;
}

.vbtn::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0a1429; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85); }
.vbtn svg { position: relative; }
.vbtn:hover::before { background: var(--navy-2); }
.v-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.v-next { right: 24px; top: 50%; transform: translateY(-50%); }
.v-close { top: 20px; right: 24px; }

/* ---------- Desktop room for the panel ---------- */

@media (min-width: 900px) {
  :root { --panel-room: 96px; }
}

@media (min-width: 900px) and (max-height: 760px) {
  .panel { gap: 8px; padding: 10px 0 12px; }
  .panel ol { gap: 4px; }
  .dial-mini { width: 48px; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 899px) {
  body { padding-bottom: 68px; background-size: 260% auto; }
  .landing, .landing.flip, .about, .desk { grid-template-columns: minmax(0, 1fr); }
  .landing.flip .lift { order: 0; }
  .landing { gap: 28px; }
  .lift { width: min(100%, calc(64vh * var(--sar))); }
  /* The call button sits on the wall beside the lift doors, so it shows in the first screen
     without covering the hero photograph. */
  .hero-lift { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: end; column-gap: 10px; }
  .hero-lift .lift { width: min(calc(100vw - 2 * var(--pad) - 94px), calc(52svh * var(--sar))); }
  .lobby { padding-top: 76px; }
  .plaque { padding-inline: 28px; }
  .panel-lacquer { padding: 40px 20px 44px; }
  .dial-hero { width: min(80vw, 420px); }
  .row { flex-wrap: wrap; justify-content: center; row-gap: 32px; }
  .row .hang { flex: 0 1 calc(50% - 12px); }
  .boards { row-gap: 32px; }
  .pubs, .boards, .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* No photograph hangs alone on a line: two-up rows always pair a landscape, so they stack,
     and the odd one out of an all-upright three spans the line. Upright frames that span are
     cropped to a landscape window. */
  .row .hang.landscape,
  .row.n2 .hang,
  .row.n3 .hang:first-child:not(.landscape) ~ .hang:last-child { flex-basis: 100%; }
  .boards li:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .row.n2 .hang:not(.landscape) .pic,
  .row.n3 .hang:first-child:not(.landscape) ~ .hang:last-child:not(.landscape) .pic,
  .boards li:last-child:nth-child(odd) .pic { aspect-ratio: 3 / 2; }

  .row.n2 .hang:not(.landscape) .pic:not(.igc) img,
  .row.n3 .hang:first-child:not(.landscape) ~ .hang:last-child:not(.landscape) .pic:not(.igc) img,
  .boards li:last-child:nth-child(odd) .pic img { height: 100%; object-fit: cover; object-position: 50% 28%; }

  .row.n2 .hang:not(.landscape) .pic.igc img,
  .row.n3 .hang:first-child:not(.landscape) ~ .hang:last-child:not(.landscape) .pic.igc img { height: auto; top: 50%; transform: translateY(-50%); }

  /* Wrapped lines each hang from their own rail: every frame carries a rail segment that
     meets its neighbour halfway across the gap. */
  .row::before, .boards::before { display: none; }

  .row .hang::before, .boards .hang::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    right: -12px;
    height: var(--rail-h);
    background: #b89a5c var(--brass-img) center / 600px auto;
    box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.85), inset 0 -1px 0 rgba(60, 40, 12, 0.5), 0 10px 16px -8px rgba(0, 0, 0, 0.85);
  }

  .panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    flex-direction: row;
    justify-content: center;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    transform: none;
    box-shadow: 0 -12px 28px -10px rgba(0, 0, 0, 0.8);
  }

  .panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #b89a5c var(--brass-img) center / cover;
    box-shadow: inset 0 1px 0 rgba(255, 244, 212, 0.8);
  }

  .dial-mini { display: none; }
  .panel ol { flex-direction: row; gap: 2px; }
  .btn .name { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .call { position: relative; right: auto; bottom: auto; z-index: 1; margin-bottom: 24px; width: 84px; height: 84px; }
  .call::before { inset: 7px; }
  .call span { width: 64px; }
  .viewer-stage { padding: 64px 12px 8px; }
  .viewer-cap { padding: 14px 20px 92px; }
  .v-prev, .v-next { top: auto; bottom: 20px; transform: none; }
  .v-prev { left: calc(50% - 64px); }
  .v-next { right: calc(50% - 64px); }
  .v-close { top: 8px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .needle, .door { transition: none; }
}
