/* Pawfolio — two-pet photo album */
body.album-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 560px at 92% -8%, rgba(223, 230, 217, 0.68), transparent 64%),
    radial-gradient(780px 520px at 2% 18%, rgba(242, 221, 206, 0.55), transparent 62%),
    var(--paper);
}

.album-header {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 230, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 40px);
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 12px;
}

.header-edition {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  white-space: nowrap;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: var(--ink-soft);
  background: rgba(255, 250, 242, 0.56);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.admin-entry .icon {
  width: 14px;
  height: 14px;
}

.admin-entry:hover {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.wordmark--light .wordmark__mark {
  color: var(--ink);
  background: var(--cream);
}

.wordmark--light .wordmark__copy strong {
  color: var(--cream);
}

.wordmark--light .wordmark__copy span {
  color: rgba(255, 250, 242, 0.55);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 7vw, 108px);
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 4vw, 40px) clamp(54px, 7vw, 92px);
}

.hero-copy {
  max-width: 590px;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.15em;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.7vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-amp {
  position: relative;
  top: -0.03em;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.58em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 420px;
  margin-top: clamp(26px, 3.5vw, 38px);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--muted-light);
  border-radius: 50%;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-bottom: 6px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.hero-scroll .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.hero-scroll:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.hero-scroll:hover .icon {
  transform: translateY(3px);
}

/* Hero duet photos */
.hero-duet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(12px, 1.8vw, 22px);
  min-height: 490px;
  isolation: isolate;
}

.hero-duet::before {
  content: "";
  position: absolute;
  inset: -8% 4% 3% -5%;
  z-index: -1;
  border-radius: 48% 52% 38% 62% / 54% 45% 55% 46%;
  background: linear-gradient(145deg, rgba(223, 230, 217, 0.72), rgba(242, 221, 206, 0.4));
  transform: rotate(3deg);
}

.duet-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--paper-deep);
  border: 0;
  cursor: pointer;
}

.duet-card--one {
  align-self: end;
}

.duet-card--two {
  align-self: end;
  margin-bottom: clamp(20px, 4vw, 56px);
}

.duet-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(231, 222, 207, 0.7) 20%, rgba(244, 237, 226, 0.95) 48%, rgba(231, 222, 207, 0.7) 76%);
  background-size: 220% 100%;
  animation: duet-pending 1.7s linear infinite;
}

.duet-card--one .duet-frame {
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px 26px 26px;
}

.duet-card--two .duet-frame {
  aspect-ratio: 3 / 4;
  border-radius: 26px 26px 96px 26px;
}

@keyframes duet-pending {
  to {
    background-position: -220% 0;
  }
}

.duet-frame__backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  opacity: 0.58;
  filter: blur(28px) brightness(0.52) saturate(0.9);
  transform: scale(1.08);
  pointer-events: none;
}

.duet-frame__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    transform 0.8s var(--ease),
    opacity 0.4s var(--ease);
}

.duet-card:hover .duet-frame__photo {
  transform: scale(1.015);
}

.duet-frame::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(25, 19, 12, 0.54));
  pointer-events: none;
}

.duet-caption {
  position: absolute;
  left: clamp(15px, 2vw, 22px);
  right: clamp(15px, 2vw, 22px);
  bottom: clamp(16px, 2vw, 22px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: var(--cream);
}

.duet-caption__name {
  display: grid;
  gap: 4px;
}

.duet-caption__name strong {
  font-family: var(--serif);
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.duet-caption__name small {
  color: rgba(255, 250, 242, 0.72);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.duet-caption__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 242, 0.42);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
}

.duet-skeleton {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    rgba(231, 222, 207, 0.55) 20%,
    rgba(244, 237, 226, 0.92) 48%,
    rgba(231, 222, 207, 0.55) 76%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.7s linear infinite;
}

.duet-skeleton--tall {
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px 26px 26px;
}

.duet-skeleton--short {
  aspect-ratio: 3 / 4;
  margin-bottom: clamp(20px, 4vw, 56px);
  border-radius: 26px 26px 96px 26px;
}

/* Sticky album switch */
.pet-switch {
  position: sticky;
  top: 0;
  z-index: 90;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 230, 0.86);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.pet-switch__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 10px clamp(20px, 4vw, 40px);
}

.pet-switch__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pet-switch__label {
  margin-right: auto;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pet-switch__loading {
  padding: 14px 0;
  color: var(--muted);
  font-size: 11px;
}

.pet-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(340px, 27vw);
  min-width: 0;
  min-height: 52px;
  padding: 7px 13px 7px 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 242, 0.58);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.pet-tab:hover {
  background: var(--cream);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.pet-tab[aria-selected="true"] {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.pet-tab--duo {
  color: var(--ink-soft);
  background: rgba(242, 221, 206, 0.58);
  border-color: rgba(179, 76, 39, 0.24);
}

.pet-tab--duo:hover {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: rgba(179, 76, 39, 0.38);
}

.pet-tab--duo .pet-tab__number {
  color: var(--accent-deep);
}

.pet-tab__photo--empty {
  display: grid;
  place-items: center;
  color: var(--accent-deep);
}

.pet-tab__photo--empty .icon {
  width: 18px;
  height: 18px;
}

.pet-tab__photo {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 11px;
}

.pet-tab__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-tab__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pet-tab__copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-tab__copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-tab[aria-selected="true"] .pet-tab__copy small {
  color: rgba(255, 250, 242, 0.52);
}

.pet-tab__number {
  margin-left: auto;
  padding-left: 8px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.pet-tab[aria-selected="true"] .pet-tab__number {
  color: rgba(255, 250, 242, 0.72);
}

/* Album shell */
.album {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 78px) clamp(20px, 4vw, 40px) clamp(38px, 5vw, 62px);
  scroll-margin-top: 82px;
}

.album-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(200px, 290px);
  align-items: end;
  gap: clamp(20px, 3vw, 38px);
  padding-bottom: clamp(25px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.album-index {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.album-index__total {
  color: var(--muted-light);
  font-size: 11px;
}

.album-heading-copy .eyebrow {
  margin-bottom: 13px;
}

.album-title {
  font-family: var(--serif);
  font-size: clamp(46px, 5.7vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.album-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-note {
  padding-bottom: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.8;
  text-align: right;
}

.album-content {
  animation: album-in 0.45s var(--ease) both;
}

@keyframes album-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.album-content.is-switching {
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

/* Group photos */
.duo-album {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) clamp(74px, 9vw, 118px);
  scroll-margin-top: 82px;
}

.duo-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(200px, 290px);
  align-items: end;
  gap: clamp(20px, 3vw, 38px);
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(25px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.duo-index {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.duo-heading-copy .eyebrow {
  margin-bottom: 13px;
}

.duo-title {
  font-family: var(--serif);
  font-size: clamp(46px, 5.7vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.duo-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.duo-note {
  padding-bottom: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.8;
  text-align: right;
}

.duo-gallery {
  columns: 2 300px;
  column-gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(26px, 3.4vw, 40px);
}

.duo-gallery.is-single {
  columns: 1;
}

.duo-gallery.is-single .duo-card {
  max-width: 820px;
  margin-inline: auto;
}

.duo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  color: var(--cream);
  background: #211b15;
  border: 0;
  border-radius: clamp(16px, 2vw, 24px);
  box-shadow: 0 22px 52px -40px rgba(52, 36, 20, 0.9);
  text-align: left;
  isolation: isolate;
  transform: translateZ(0);
}

.duo-card img {
  width: 100%;
  height: auto;
  transition: transform 0.65s var(--ease), filter 0.4s var(--ease);
}

.duo-card:hover img,
.duo-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.duo-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(18, 14, 10, 0.9), rgba(18, 14, 10, 0.12) 52%, transparent 74%),
    linear-gradient(to bottom, rgba(18, 14, 10, 0.28), transparent 28%);
  pointer-events: none;
}

.duo-card__badge {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  color: rgba(255, 250, 242, 0.78);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.duo-card__copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.duo-card__copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.duo-card__copy small {
  overflow: hidden;
  color: rgba(255, 250, 242, 0.66);
  font-size: 9.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duo-card__open {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  color: rgba(255, 250, 242, 0.88);
  background: rgba(26, 21, 16, 0.46);
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.duo-card__open .icon {
  width: 12px;
  height: 12px;
}

.duo-card:hover .duo-card__open,
.duo-card:focus-visible .duo-card__open {
  opacity: 1;
  transform: translateY(0);
}

.duo-card:focus-visible {
  outline-offset: 4px;
}

.duo-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(36px, 5vw, 64px) 24px;
  background: rgba(255, 250, 242, 0.54);
  border: 1px dashed var(--line-strong);
  border-radius: clamp(20px, 2.4vw, 30px);
  text-align: center;
}

.duo-empty__icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  margin-bottom: 5px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 50%;
}

.duo-empty__icon .icon {
  width: 21px;
  height: 21px;
}

.duo-empty h3 {
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.duo-empty > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.duo-empty .btn {
  margin-top: 7px;
}

/* Viewer */
.viewer {
  margin-top: clamp(24px, 3vw, 34px);
}

.viewer-frame {
  position: relative;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 34px);
  background: #211b15;
  box-shadow: 0 30px 70px -50px rgba(52, 36, 20, 0.75);
  touch-action: pan-y;
  cursor: zoom-in;
}

.viewer-frame.is-dragging {
  cursor: grabbing;
}

.viewer-track {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline-offset: -3px;
}

.viewer-track::-webkit-scrollbar {
  display: none;
}

.viewer-track:focus-visible {
  outline: 2px solid var(--cream);
}

.viewer-slide {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.viewer-slide img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.viewer-slide__backdrop {
  position: absolute;
  inset: -46px;
  width: calc(100% + 92px);
  height: calc(100% + 92px);
  z-index: 0;
  object-fit: cover;
  opacity: 0.64;
  filter: blur(34px) brightness(0.62) saturate(0.92);
  transform: scale(1.04);
}

.viewer-slide__photo {
  /* Absolute sizing keeps height:100% tied to the slide, so a portrait
     photo is contained instead of expanding to its intrinsic height and
     being clipped by the carousel. */
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 17, 12, 0.43), transparent 24%),
    linear-gradient(0deg, rgba(22, 17, 12, 0.55), transparent 27%);
}

.viewer-top {
  position: absolute;
  top: clamp(13px, 2vw, 18px);
  left: clamp(13px, 2vw, 18px);
  right: clamp(13px, 2vw, 18px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(255, 250, 242, 0.9);
  background: rgba(29, 23, 16, 0.42);
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease);
}

.viewer-pill:hover {
  background: rgba(29, 23, 16, 0.62);
}

.viewer-pill .icon {
  width: 12px;
  height: 12px;
}

.viewer-pill.is-paused {
  color: rgba(255, 250, 242, 0.75);
}

.viewer-counter {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 10px;
  color: rgba(255, 250, 242, 0.9);
  background: rgba(29, 23, 16, 0.42);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.viewer-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.65);
  transform: translateY(-50%);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.viewer-arrow .icon {
  width: 17px;
  height: 17px;
}

.viewer-arrow:hover {
  background: var(--cream);
}

.viewer-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.viewer-arrow--prev {
  left: clamp(12px, 2vw, 20px);
}

.viewer-arrow--next {
  right: clamp(12px, 2vw, 20px);
}

.viewer-expand {
  position: absolute;
  right: clamp(13px, 2vw, 18px);
  bottom: clamp(13px, 2vw, 18px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.88);
  border: 0;
  border-radius: 50%;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.viewer-expand .icon {
  width: 14px;
  height: 14px;
}

.viewer-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 2vw, 22px);
  z-index: 4;
  color: rgba(255, 250, 242, 0.7);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.viewer-strip {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.viewer-thumb {
  position: relative;
  width: 78px;
  height: 88px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  background: var(--paper-deep);
  border: 2px solid transparent;
  border-radius: 12px;
  opacity: 0.56;
  transition:
    opacity 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #211b15;
}

.viewer-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.viewer-thumb[aria-current="true"] {
  border-color: var(--accent);
  opacity: 1;
}

/* Contact sheet */
.contact-sheet {
  margin-top: clamp(52px, 7vw, 88px);
}

.contact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: clamp(18px, 3vw, 34px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.contact-head h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.contact-note {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.contact-count {
  padding-bottom: 4px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.contact-grid {
  --contact-gap: clamp(11px, 1.5vw, 18px);
  display: flex;
  flex-direction: column;
  gap: var(--contact-gap);
  margin-top: clamp(22px, 3vw, 30px);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--contact-gap);
  min-width: 0;
}

.contact-row .photo-tile {
  flex: var(--photo-ratio, 0.8) 1 0;
  width: 0;
  min-width: 0;
}

.contact-row.is-last .photo-tile {
  flex: 0 0 calc(var(--photo-ratio, 0.8) * var(--last-row-height, 260px));
  width: auto;
}

.photo-tile {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: var(--photo-ratio, 0.8);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #211b15;
  border: 0;
  border-radius: 18px;
  cursor: zoom-in;
  isolation: isolate;
}

.photo-tile__backdrop {
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(24px) brightness(0.58) saturate(0.9);
  transform: scale(1.06);
  pointer-events: none;
}

.photo-tile img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(24, 18, 12, 0.54), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.photo-tile:hover img {
  transform: scale(1.012);
}

.photo-tile:hover::after {
  opacity: 1;
}

.photo-tile__number {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  color: rgba(255, 250, 242, 0.9);
  background: rgba(28, 22, 15, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.photo-tile__open {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-size: 10px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.photo-tile__open .icon {
  width: 13px;
  height: 13px;
}

.photo-tile:hover .photo-tile__open {
  opacity: 1;
  transform: translateY(0);
}

/* Next pet */
.next-pet-wrap {
  margin-top: clamp(48px, 6vw, 76px);
}

.next-pet {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  width: 100%;
  padding: 14px clamp(16px, 2.5vw, 26px) 14px 14px;
  color: var(--cream);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(196, 93, 55, 0.23), transparent 70%),
    var(--ink);
  border: 0;
  border-radius: 26px;
  text-align: left;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.next-pet:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.next-pet__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #17130e;
  border-radius: 17px;
}

.next-pet__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}

.next-pet:hover .next-pet__photo img {
  transform: scale(1.015);
}

.next-pet__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.next-pet__eyebrow {
  color: var(--gold);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.next-pet__copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-pet__copy small {
  color: rgba(255, 250, 242, 0.48);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.next-pet__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--cream);
  border-radius: 50%;
}

.next-pet__arrow .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}

.next-pet:hover .next-pet__arrow .icon {
  transform: translateX(3px);
}

/* Loading / error */
.album-skeleton {
  margin-top: 24px;
}

.skeleton-stage,
.skeleton-strip span,
.skeleton-grid span {
  background: linear-gradient(
    110deg,
    rgba(231, 222, 207, 0.56) 20%,
    rgba(244, 237, 226, 0.94) 48%,
    rgba(231, 222, 207, 0.56) 76%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.7s linear infinite;
}

.skeleton-stage {
  aspect-ratio: 16 / 9;
  border-radius: 32px;
}

.skeleton-strip {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}

.skeleton-strip span {
  width: 78px;
  height: 88px;
  border-radius: 12px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.skeleton-grid span {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.skeleton-grid span:nth-child(2),
.skeleton-grid span:nth-child(5) {
  aspect-ratio: 4 / 5;
}

@keyframes skeleton-shimmer {
  to {
    background-position: -220% 0;
  }
}

.album-error {
  display: grid;
  justify-items: center;
  padding: clamp(48px, 8vw, 86px) 24px;
  text-align: center;
}

.album-error__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 17px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 50%;
}

.album-error__icon .icon {
  width: 27px;
  height: 27px;
}

.album-error h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.album-error p {
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.album-error .btn {
  margin-top: 18px;
}

/* Footer */
.album-footer {
  color: rgba(255, 250, 242, 0.68);
  background: #1d1a15;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) clamp(20px, 4vw, 40px);
}

.footer-brand > p {
  max-width: 330px;
  margin-top: 15px;
  color: rgba(255, 250, 242, 0.58);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.footer-side {
  display: grid;
  justify-items: end;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 11px;
  font-weight: 650;
}

.footer-links a {
  color: rgba(255, 250, 242, 0.62);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-side > p {
  color: rgba(255, 250, 242, 0.58);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.4vw, 26px);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 13, 9, 0.94);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.lightbox.is-open .lightbox__backdrop {
  opacity: 1;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  height: calc(100dvh - clamp(20px, 4.8vw, 52px));
  color: var(--cream);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.lightbox.is-open .lightbox__panel {
  opacity: 1;
  transform: translateY(0);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  padding: 0 2px 13px;
}

.lightbox__bar .eyebrow {
  color: var(--gold);
  font-size: 8px;
}

.lightbox__bar h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.lightbox__counter {
  margin-left: auto;
  color: rgba(255, 250, 242, 0.58);
  font-family: var(--mono);
  font-size: 10px;
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--cream);
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 50%;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 250, 242, 0.17);
}

.lightbox__close .icon {
  width: 16px;
  height: 16px;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  touch-action: pan-y;
  cursor: grab;
}

.lightbox__stage.is-dragging {
  cursor: grabbing;
}

.lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.38));
}

.lightbox__stage img.is-changing {
  animation: lightbox-photo-in 0.4s var(--ease) both;
}

@keyframes lightbox-photo-in {
  from {
    opacity: 0.55;
    transform: scale(0.992);
  }
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 25px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
}

.lightbox__arrow:hover {
  background: var(--white);
}

.lightbox__arrow .icon {
  width: 17px;
  height: 17px;
}

.lightbox__arrow--prev {
  left: 6px;
}

.lightbox__arrow--next {
  right: 6px;
}

.lightbox__bottom {
  flex: 0 0 auto;
  padding-top: 12px;
}

.lightbox__caption {
  min-height: 18px;
  color: rgba(255, 250, 242, 0.48);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.lightbox__thumbs {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  overflow-x: auto;
  padding: 2px 1px 3px;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 250, 242, 0.25) transparent;
}

.lightbox__thumb {
  width: 52px;
  height: 61px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  background: #2a241d;
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: 0.54;
  transition:
    opacity 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__thumb:hover {
  opacity: 0.9;
}

.lightbox__thumb[aria-current="true"] {
  border-color: var(--cream);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    gap: 48px;
  }

  .hero-duet {
    min-height: 420px;
  }

  .pet-switch__label {
    display: none;
  }

  .pet-tab {
    width: min(420px, 30vw);
  }

}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-duet {
    width: min(100%, 660px);
    min-height: 0;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(58px, 11vw, 92px);
  }

  .album-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .album-note {
    grid-column: 2;
    padding-bottom: 0;
    text-align: left;
  }

  .duo-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .duo-note {
    grid-column: 2;
    padding-bottom: 0;
    text-align: left;
  }

  .viewer-track {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 12px;
    padding-block: 14px;
  }

  .header-edition {
    display: none;
  }

  .admin-entry {
    margin-left: auto;
    min-height: 37px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .admin-entry__label {
    display: none;
  }

  .pet-switch__inner {
    gap: 7px;
    padding-block: 9px;
  }

  .pet-switch__tabs {
    flex: 1 1 auto;
    gap: 7px;
  }

  .pet-switch__tabs .pet-tab,
  .pet-tab--duo {
    width: auto;
    flex: 1 1 0;
    gap: 9px;
    padding-right: 9px;
  }

  .pet-tab__copy small {
    display: none;
  }

  .pet-tab__number {
    font-size: 7px;
  }

  .hero {
    padding-bottom: 44px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .album {
    padding-top: 36px;
    scroll-margin-top: 68px;
  }

  .album-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .duo-album {
    scroll-margin-top: 68px;
  }

  .duo-head {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 36px;
  }

  .duo-index {
    font-size: 21px;
  }

  .duo-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .duo-note {
    display: none;
  }

  .duo-gallery {
    columns: 2;
  }

  .album-index {
    font-size: 21px;
  }

  .album-heading-copy {
    display: grid;
  }

  .album-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .album-note {
    display: none;
  }

  .viewer-track {
    aspect-ratio: 4 / 4.7;
  }

  .viewer-arrow {
    width: 38px;
    height: 38px;
  }

  .viewer-arrow--prev {
    left: 9px;
  }

  .viewer-arrow--next {
    right: 9px;
  }

  .viewer-hint {
    display: none;
  }

  .viewer-pill {
    padding: 0 10px;
  }

  .viewer-pill span {
    display: none;
  }

  .viewer-thumb {
    width: 64px;
    height: 72px;
  }

  .contact-head {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .contact-note {
    display: none;
  }

  .contact-grid {
    --contact-gap: 11px;
  }

  .photo-tile {
    border-radius: 14px;
  }

  .photo-tile__number {
    top: 8px;
    left: 8px;
  }

  .photo-tile__open {
    left: 10px;
    bottom: 9px;
    font-size: 9px;
  }

  .next-pet {
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 13px;
    padding: 10px 13px 10px 10px;
    border-radius: 19px;
  }

  .next-pet__copy strong {
    font-size: 23px;
  }

  .next-pet__copy small {
    display: none;
  }

  .next-pet__arrow {
    width: 36px;
    height: 36px;
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skeleton-stage {
    aspect-ratio: 4 / 4.7;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-side {
    justify-items: start;
  }

  .lightbox {
    padding: 0;
  }

  .lightbox__panel {
    width: 100%;
    height: 100dvh;
    padding: 12px 12px 14px;
  }

  .lightbox__bar h2 {
    font-size: 24px;
  }

  .lightbox__arrow {
    width: 38px;
    height: 38px;
  }

  .lightbox__arrow--prev {
    left: 2px;
  }

  .lightbox__arrow--next {
    right: 2px;
  }

  .lightbox__thumbs {
    justify-content: flex-start;
  }

  .lightbox__thumb {
    width: 47px;
    height: 56px;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(49px, 14vw, 68px);
  }

  .hero-duet {
    gap: 10px;
  }

  .duet-caption__name strong {
    font-size: 24px;
  }

  .duet-caption__name small {
    font-size: 8px;
  }

  .duet-caption__number {
    display: none;
  }

  .pet-tab__photo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .pet-tab--duo .pet-tab__photo {
    display: none;
  }

  .pet-tab--duo {
    gap: 0;
    padding-inline: 12px;
  }

  .pet-tab__copy strong {
    font-size: 15px;
  }

  .pet-tab__number {
    display: none;
  }

  .album-title {
    font-size: 44px;
  }

  .duo-title {
    font-size: 42px;
  }

  .duo-gallery {
    columns: 1;
  }

  .duo-card__open {
    opacity: 1;
    transform: translateY(0);
  }

  .viewer-frame {
    border-radius: 20px;
  }

  .viewer-track {
    aspect-ratio: 4 / 5;
  }

  .viewer-counter {
    min-height: 29px;
    padding: 0 8px;
    font-size: 8px;
  }

  .viewer-expand {
    width: 32px;
    height: 32px;
  }

  .contact-head h3 {
    font-size: 31px;
  }

  .next-pet {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }

  .next-pet__copy strong {
    font-size: 20px;
  }

  .next-pet__eyebrow {
    font-size: 7px;
  }

  .lightbox__bar {
    gap: 12px;
  }

  .lightbox__counter {
    font-size: 9px;
  }

  .lightbox__close {
    width: 36px;
    height: 36px;
  }
}

@media (hover: none) {
  .photo-tile__open {
    opacity: 1;
    transform: translateY(0);
  }

  .photo-tile::after {
    opacity: 0.55;
  }
}
