/* Homepage — resume.html / surface.html still use styles.css.
   Title serif: Cormorant Garamond (variable wght, used by the
   letter-weight effect in effects.js). Labels and directory: Helvetica-style. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:wght@400;500;700;800&display=swap');

:root {
  --paper:   #f3f0e8;
  --paper-2: #e9e5da;
  --ink:     #141312;
  --ink-2:   #4a4744;
  --ink-3:   #8a857d;
  --rule:    #cfcac0;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter:  clamp(16px, 3vw, 32px);
  --ease:    cubic-bezier(.2, .7, .2, 1);
  /* every image on the site is shown in black and white */
  --mono:    grayscale(1) contrast(1.08) brightness(1.02);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ─── Title over the opening mosaic ───────────────────────────── */

.title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: end center;
  justify-items: center;
  gap: clamp(14px, 2.5vh, 24px);
  padding: 0 var(--gutter) clamp(56px, 12vh, 120px);
  color: #fff;
  text-align: center;
  pointer-events: auto;
}
.الاسم {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 10vw, 150px);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 50px rgba(0,0,0,.55);
}
.title-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.title-links a {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0,0,0,.18);
  transition: background .25s ease, color .25s ease;
}
.title-links a:hover { background: #fff; color: var(--ink); }

/* Letter swap (h1 hover, built by effects.js) */
.lsw { display: inline-flex; flex-wrap: nowrap; justify-content: center; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lsw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lsw-char { position: relative; display: inline-block; white-space: pre; }
.lsw-p { display: inline-block; transform: translateY(0); }
.lsw-s { position: absolute; left: 0; top: 0; transform: translateY(115%); font-style: italic; }
.lsw-p, .lsw-s { transition: transform .8s cubic-bezier(.3, 1.35, .45, 1); will-change: transform; }

/* ─── Off the record (Surface gate) ───────────────────────────── */

.offrecord { padding: 0 var(--gutter) 40px; max-width: 46rem; margin: 0 auto; }
.srf-gate { display: none; }
body.srf-unlocked .srf-gate { display: block; animation: srf-reveal .7s ease forwards; opacity: 0; }
body.srf-unlocked .srf-gate--delay-1 { animation-delay: .1s; }
@keyframes srf-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─── Directory of work ───────────────────────────────────────── */

.directory {
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
}
.dir-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.dir-head h2 { margin: 0; font-size: 12px; font-weight: 500; }
.dir-head span { color: var(--ink-3); }

.dir-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--rule);
}
.cell {
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--rule);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10%;
}
.cell:nth-child(2n) { border-right: 0; }
.cell:nth-child(n+3) { display: none; }   /* phones: two cells per strip */
.cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--mono);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 1s var(--ease), transform .6s var(--ease);
}
.cell img.is-in { opacity: .92; }
.cell:hover img { transform: scale(1.04); }

.dir-rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "nm yr" "kd kd";
  gap: 2px 12px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  transition: background .2s ease;
}
a.row:hover { background: var(--ink); color: var(--paper); }
a.row:hover .kd, a.row:hover .yr { color: var(--paper-2); }
.yr { grid-area: yr; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nm { grid-area: nm; font-weight: 700; font-size: clamp(17px, 2.2vw, 26px); letter-spacing: -.01em; }
.kd { grid-area: kd; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; margin-top: 4px; }

/* ─── The person — full-bleed portrait ────────────────────────── */

.person {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d0c0b;
  color: #fff;
}
.person-bg { position: absolute; inset: 0; }
.person-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: var(--mono) brightness(.72);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.person-bg img.is-on { opacity: 1; transform: scale(1); }
.person::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.person-lines {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 9.5vw, 112px);
  line-height: .98;
  letter-spacing: -.035em;
}
.person-lines li { display: flex; align-items: flex-start; gap: .25em; }
.person-lines sup {
  font-size: 12px;
  letter-spacing: .02em;
  font-weight: 500;
  margin-top: .9em;
  opacity: .8;
}
.pl-text { color: #fff; text-decoration: none; transition: opacity .35s ease; }
.pl-text:hover { font-style: italic; }
.person-lines.is-hovering .pl-text { opacity: .45; }
.person-lines.is-hovering li.is-active .pl-text { opacity: 1; }

/* ─── Four tiles ──────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--paper);
  font-family: var(--sans);
}
.tile { text-decoration: none; display: grid; }
.tile-img {
  aspect-ratio: 4 / 5;
  background: #e4e1dc;
  display: grid;
  place-items: center;
  padding: 14%;
  overflow: hidden;
}
.tile-img img {
  mix-blend-mode: multiply;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--mono) drop-shadow(0 14px 18px rgba(0, 0, 0, .18));
  transition: transform .6s var(--ease);
}
.tile:hover .tile-img img { transform: scale(1.05) rotate(-1.5deg); }
.tile-label {
  padding: 12px 0 14px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--paper);
}

/* ─── Footer ──────────────────────────────────────────────────── */

.foot {
  display: flex;
  justify-content: space-between;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
}


/* ─── Opening ─────────────────────────────────────────────────── */

.pan { position: relative; height: 100svh; overflow: hidden; background: #15120e; }
.pan-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.pan-img.is-in { opacity: 1; }

/* profile picture, beside the name in the portrait section */
.pfp {
  flex: none;
  align-self: center;
  width: .78em;
  height: .78em;
  margin-right: .12em;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 10px 30px rgba(0,0,0,.45);
}

.pan-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}
.pan-cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  opacity: .8;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translate(-50%, 6px); } }

/* ─── Plate — one drawing on the paper ───────────────────────── */

.plate-solo {
  display: grid;
  place-items: center;
  min-height: 110svh;
  padding: 12svh var(--gutter);
  background: var(--paper);
}
.plate-solo img {
  width: min(78vw, 720px);
  height: auto;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;   /* the drawing's own paper melts into the page */
}

/* ─── Wrap — words set around a drawing you can pick up (wrap.js) ─────
   The <p> is the real text and stays in the DOM; once wrap.js has laid it
   out, the canvas takes over visually. Without JS you get the drawing
   floated beside the paragraph, which is the page working as designed. */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14svh var(--gutter);
  background: var(--paper);
}
.wrap-fig { float: left; width: min(40%, 320px); margin: 0 clamp(16px, 3vw, 36px) 12px 0; }
.wrap-fig img {
  width: 100%;
  height: auto;
  filter: var(--mono);
  mix-blend-mode: multiply;
}
.wrap-src {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
}
.wrap-canvas { display: none; mix-blend-mode: multiply; }
.wrap-note {
  clear: both;
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: none;
}
.wrap.is-flowing .wrap-fig { display: none; }
.wrap.is-flowing .wrap-canvas { display: block; width: 100%; -webkit-user-select: none; user-select: none; }
.wrap.is-flowing .wrap-note { display: block; }
.wrap.is-flowing .wrap-canvas.can-grab { cursor: grab; }
.wrap.is-flowing .wrap-canvas.is-held { cursor: grabbing; }
.wrap.is-flowing .wrap-src {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wrap { position: relative; }

/* ─── Details — ornate things spiral out into one rosette (details.js) ───
   Pinned stage, everything centred and sized from the viewport (--cw, --ch,
   --ring are set by the script), so nothing is cut off. Without JS the cards
   are a plain grid; with reduced motion the finished ring is shown. */

.details { position: relative; height: 340svh; background: var(--paper); }
.details-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  --cw: 150px; --ch: 200px; --ring: 260px;
}
.details-word {
  grid-area: 1 / 1; z-index: 1; text-align: center; pointer-events: none;
  opacity: var(--formed, 0);
  transform: scale(calc(.94 + var(--formed, 0) * .06));
}
.details-word h2 {
  margin: 0 auto; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(20px, 4.6vw, 50px); line-height: 1.04; max-width: 11em;
  text-wrap: balance;
}
.details-word h2 em { font-style: italic; }
.details-word p {
  margin: .9em 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.d-card {
  position: absolute; left: 50%; top: 50%;
  width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  padding: calc(var(--cw) * .035);
  background: #fbf8f0;
  border: 1px solid rgba(20, 19, 18, .28);
  box-shadow: 0 1px 2px rgba(20, 19, 18, .18),
              calc(var(--tx, 0) * 7px) calc(10px + var(--ty, 0) * 7px) 26px -12px rgba(20, 19, 18, .45);
  will-change: transform;
}
.d-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(calc(1 - var(--c, 0))) contrast(1.04);
}
/* no JS: a quiet grid instead of a stack in the middle of the page */
.details:not(.is-live) { height: auto; padding: 12svh var(--gutter); }
.details:not(.is-live) .details-stage { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.details:not(.is-live) .d-card { position: static; margin: 0; width: 150px; height: 200px; }
.details:not(.is-live) .details-word { flex-basis: 100%; opacity: 1; }
.details:not(.is-live) .d-card img { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .details.is-live { height: auto; }
  .details.is-live .details-stage { position: relative; height: 100svh; }
  .d-card img { filter: none; }
}

/* ─── Mosaic bands ────────────────────────────────────────────── */

.band {
  position: relative;
  overflow: hidden;
  background: #0d0c0b;
  display: grid;
  place-items: center;
  color: #fff;
}
.band--tall  { min-height: 130svh; }
.band--short { min-height: 75svh; }
.band-img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  /* --bloom (0..1) is set by site.js as the band nears the middle of the screen */
  filter: grayscale(calc(1 - var(--bloom, 0))) contrast(1.06) brightness(calc(.62 + var(--bloom, 0) * .3));
  transform: translate3d(0, var(--py, 0px), 0) scale(1.04);
  will-change: transform, filter;
}
.band-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: .05em;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -.01em;
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
}
.band-text em { font-style: italic; color: #f1e3c0; }
.band-text span, .band-text em {
  opacity: var(--t, 0);
  transform: translateY(calc((1 - var(--t, 0)) * 30px));
  transition: opacity .2s linear;
}

/* ─── Procession (horizontal strip) ───────────────────────────── */

.procession { position: relative; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.procession-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.procession-track {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 64px);
  padding: 0 10vw;
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}
.procession-track figure { flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; }
.procession-track img {
  flex: none;
  height: clamp(260px, 62svh, 640px);
  width: auto;
  filter: var(--mono);
  mix-blend-mode: multiply;
}
.procession-track figure:nth-child(3n+2) img { height: clamp(200px, 46svh, 480px); }
.procession-track figure:nth-child(4n) img   { height: clamp(300px, 72svh, 720px); }

/* ─── Faint mosaic grounds behind the paper sections ──────────── */

.directory { position: relative; isolation: isolate; }
.directory::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  opacity: .07;
  pointer-events: none;
}
.directory::before { background-image: url('ornaments/lg/capitoline-doves.jpg'); opacity: .05; }

/* ─── Footer over the unswept floor ───────────────────────────── */

.foot { position: relative; overflow: hidden; min-height: 40svh; align-items: flex-end; color: #e9e5da; border-top: 0; background: #0d0c0b; }
.foot span { position: relative; z-index: 1; }
.foot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); }

/* ─── Surface easter egg ──────────────────────────────────────── */

.srf-gem { position: fixed; bottom: 20px; left: 20px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.srf-gem.srf-active { opacity: 1; pointer-events: auto; }
.srf-gem-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 200, 30, .85); box-shadow: 0 0 10px rgba(255, 200, 30, .4); animation: srf-pulse 2.8s ease-in-out infinite; }
@keyframes srf-pulse { 50% { box-shadow: 0 0 14px rgba(255, 200, 30, .65), 0 0 28px rgba(255, 200, 30, .3); } }
.srf-gem-panel { position: absolute; bottom: 16px; left: 0; width: min(200px, calc(100vw - 56px)); display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: rgba(6, 6, 6, .94); border: 1px solid rgba(255, 220, 50, .18); text-decoration: none; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.srf-gem:hover .srf-gem-panel { opacity: 1; transform: none; pointer-events: auto; }
.srf-gem-eyebrow { font-family: var(--sans); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 220, 50, .6); }
.srf-gem-body { font-family: var(--serif); font-size: 16px; font-style: italic; color: #eee; margin: 0; }

/* ─── Tablet and up ───────────────────────────────────────────── */

@media (min-width: 760px) {
  .dir-images { grid-template-columns: repeat(4, 1fr); }
  .cell:nth-child(n+3) { display: grid; }
  .cell:nth-child(2n) { border-right: 1px solid var(--rule); }
  .cell:nth-child(4n) { border-right: 0; }

  .row {
    grid-template-columns: 90px 1fr 160px;
    grid-template-areas: "yr nm kd";
    align-items: baseline;
    gap: 16px;
  }
  .kd { margin-top: 0; text-align: right; }

  .tiles { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Album — stamps ──────────────────────────────────────────── */

.album { position: relative; height: 260svh; background: var(--paper); border-top: 1px solid var(--rule); }
.album-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: clamp(18px, 4vh, 44px);
}
.album-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  width: max-content;
  padding: 0 6vw;
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}

/* A stamp: paper margin with perforated edges. The holes come from a mask:
   a solid centre plus a band of dots that punches round holes along every edge. */
.stamp {
  --hole: 3px;
  --pitch: 10px;
  flex: none;
  margin: 0;
  padding: 11px;
  background: #fbf8f1;
  box-shadow: 0 8px 22px rgba(40, 30, 15, .16);
  -webkit-mask-image: linear-gradient(#000 0 0), radial-gradient(circle, transparent var(--hole), #000 calc(var(--hole) + .5px));
          mask-image: linear-gradient(#000 0 0), radial-gradient(circle, transparent var(--hole), #000 calc(var(--hole) + .5px));
  -webkit-mask-size: calc(100% - var(--pitch)) calc(100% - var(--pitch)), var(--pitch) var(--pitch);
          mask-size: calc(100% - var(--pitch)) calc(100% - var(--pitch)), var(--pitch) var(--pitch);
  -webkit-mask-position: center, calc(var(--pitch) / -2) calc(var(--pitch) / -2);
          mask-position: center, calc(var(--pitch) / -2) calc(var(--pitch) / -2);
  -webkit-mask-repeat: no-repeat, round;
          mask-repeat: no-repeat, round;
  transform: rotate(var(--tilt, 0deg)) translateY(30px) scale(.94);
  opacity: 0;
  transition: transform .9s var(--ease), opacity .9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.album.is-in .stamp { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.stamp img {
  display: block;
  height: clamp(110px, 17svh, 190px);
  width: auto;
  max-width: none;
}
.album-row:nth-child(2) .stamp img { height: clamp(130px, 21svh, 230px); }
.stamp-item:hover .stamp { transform: rotate(0deg) scale(1.08); transition-delay: 0ms; z-index: 1; }

/* ─── Weaves — textile tiles fill their frames ─────────────────── */

.tiles--weaves { border-top: 1px solid var(--rule); }
.tiles--weaves .tile-img { padding: 0; }
.tiles--weaves .tile-img img { width: 100%; height: 100%; object-fit: cover; filter: none; mix-blend-mode: normal; opacity: 0; transition: opacity .8s var(--ease), transform .6s var(--ease); }
.tiles--weaves .tile-img img.is-in { opacity: 1; }
.tiles--weaves .tile:hover .tile-img img { transform: scale(1.06); }

/* ─── Top bar — thin and frosted, fixed for the whole page ───── */

html { scroll-padding-top: 52px; }
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147480000;
  height: calc(44px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 240, 232, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(20, 19, 18, .08);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.topbar a { color: inherit; text-decoration: none; }
.tb-me { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tb-me img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.tb-links { display: flex; gap: clamp(18px, 3vw, 30px); }
.tb-links a { color: var(--ink-2); transition: color .2s ease; }
.tb-links a:hover, .tb-me:hover { color: var(--ink); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: rgba(243, 240, 232, .96); }
}

/* ─── Labels under the stamps and the statues ───────────────────── */

.stamp-item { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stamp-cap, .procession-track figcaption {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
}
.stamp-cap b, .procession-track figcaption b { font-weight: 500; }
.stamp-cap span, .procession-track figcaption span { color: var(--ink-3); }
.stamp-cap { opacity: 0; transition: opacity .9s var(--ease) .3s; }
.album.is-in .stamp-cap { opacity: 1; }
.procession-track figcaption { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .album { height: auto; }
  .album-stage { position: static; height: auto; padding: 10vh 0; }
  .stamp, .stamp-cap, .tiles--weaves .tile-img img { opacity: 1; transform: none; }
  .band-text span, .band-text em { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cell img { opacity: 1; }
}
