.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.story-track {
  position: relative;
  background: var(--paper);
}
.story-stage {
  position: relative;
  max-width: 1600px;
  margin: auto;
}
.story-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  align-items: center;
  min-height: 730px;
  padding: 50px 7% 100px;
  gap: 30px;
  scroll-margin-top: 15px;
  overflow: hidden;
}
.chapter-copy {
  position: relative;
  z-index: 3;
}
.chapter-number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chapter-copy h2 {
  font-size: clamp(34px, 3.6vw, 55px);
  margin: 28px 0 20px;
  line-height: 1.15;
}
.chapter-copy h2 span {
  color: var(--coral-dark);
}
.chapter-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.chapter-visual {
  position: relative;
  width: 100%;
  height: 570px;
  isolation: isolate;
}
.scene-circle {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  left: 7%;
  top: 4%;
  background: #f4ede2;
  border-radius: 50%;
  z-index: -1;
}
.report-card {
  position: absolute;
  top: 7%;
  left: 15%;
  width: 280px;
  border-radius: 27px;
  padding: 9px;
  background: var(--paper);
  box-shadow: 0 14px 40px #33281f1c;
  rotate: -7deg;
  z-index: 2;
}
.report-photo {
  position: relative;
}
.report-photo img {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  object-position: center 35%;
}
.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.lost {
  color: #8c2f1b;
  background: #fff0e8;
}
.report-card-body {
  padding: 17px 13px 15px;
}
.report-card-body > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-card h3 {
  font: 500 30px var(--display);
}
.report-card-body > div > .icon {
  color: var(--coral);
}
.report-card-body > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.location-label {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 13px;
  font-size: 12px;
}
.location-label .icon {
  width: 17px;
  height: 17px;
}
.report-map {
  position: absolute;
  right: 0;
  top: 15%;
  width: 50%;
  height: 330px;
  border: 6px solid white;
  border-radius: 28px;
  overflow: hidden;
  rotate: 10deg;
  box-shadow: 0 7px 30px #33281f0d;
}
.big-pin {
  position: absolute;
  display: grid;
  place-items: center;
  right: 22%;
  top: 39%;
  width: 51px;
  height: 51px;
  background: var(--coral);
  color: white;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #e8674a22,
    0 0 0 60px #e8674a10;
}
.big-pin .icon {
  width: 25px;
  height: 25px;
}
.scene-sticker {
  position: absolute;
  left: 44%;
  bottom: 8%;
  background: var(--teal);
  color: white;
  border: 6px solid var(--paper);
  border-radius: 999px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  rotate: 6deg;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 8px 20px #33281f17;
}
.scene-sticker .icon {
  width: 20px;
  height: 20px;
}
#alert {
  background: #edf0e8;
}
.neighborhood {
  position: absolute;
  inset: 6% 0 4%;
  overflow: hidden;
  border-radius: 40px;
  border: 8px solid var(--paper);
  box-shadow: 0 10px 40px #33281f0d;
  rotate: -3deg;
}
.neighborhood .map-art {
  background-color: #e3e7d8;
}
.park-label {
  position: absolute;
  right: 11%;
  bottom: 15%;
  font-size: 10px;
  letter-spacing: 2px;
  color: #4f654c;
}
.alert-pet {
  position: absolute;
  width: 78px;
  height: 78px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid var(--paper);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px #33281f20;
}
.alert-pet img {
  width: 100%;
  height: 100%;
  object-position: 50% 32%;
}
.alert-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border: 1px solid #e8674a55;
  border-radius: 50%;
  background: #e8674a08;
  transform: scale(var(--alert-spread, 1));
}
.ring-a {
  width: 160px;
  height: 160px;
}
.ring-b {
  width: 280px;
  height: 280px;
}
.ring-c {
  width: 410px;
  height: 410px;
}
.neighbor {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font: 500 22px var(--display);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 4px 10px #33281f20;
}
.neighbor > span {
  position: absolute;
  bottom: -4px;
  right: -6px;
  width: 19px;
  height: 19px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid white;
}
.neighbor > span .icon {
  width: 11px;
  height: 11px;
}
.n-one {
  left: 14%;
  top: 22%;
  background: #e7c5ab;
}
.n-two {
  right: 15%;
  top: 34%;
  background: #c7d9c0;
}
.n-three {
  left: 25%;
  bottom: 18%;
  background: #e1d3eb;
}
.notification {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fffdf9f5;
  padding: 15px;
  border: 1px solid white;
  border-radius: 20px;
  box-shadow: 0 12px 30px #33281f15;
  z-index: 2;
  backdrop-filter: blur(12px);
}
.notification strong {
  font-size: 13px;
}
.notification > div > span {
  font-size: 11px;
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.notification-one {
  left: 9%;
  top: 4%;
  rotate: 3deg;
}
.notification-two {
  bottom: 4%;
  right: -2%;
  rotate: 4deg;
}
.coral {
  background: #ffe2d6;
  color: var(--coral-dark);
}
.check-mark {
  color: var(--green);
}
#connect {
  background: #fff8ee;
}
.connect-visual .scene-circle {
  background: #f5e4d9;
}
.match-card {
  position: absolute;
  left: 16%;
  top: 9%;
  width: 340px;
  padding: 20px;
  background: var(--paper);
  border-radius: 28px;
  rotate: 5deg;
  box-shadow: 0 14px 40px #33281f12;
}
.match-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 22px var(--display);
  margin-bottom: 20px;
}
.match-heading .icon {
  color: var(--coral);
  width: 23px;
  height: 23px;
}
.match-photos {
  display: flex;
  gap: 10px;
  position: relative;
}
.match-photos > div {
  position: relative;
  width: 50%;
}
.match-photos img {
  height: 185px;
  width: 100%;
  border-radius: 16px;
  object-position: 50% 30%;
}
.match-photos > div:nth-child(2) img {
  object-position: 60% 35%;
  transform: scaleX(-1);
}
.match-photos > div > span {
  position: absolute;
  bottom: 9px;
  left: 9px;
  background: var(--paper);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 20px;
}
.match-photos > div:last-of-type > span {
  background: var(--teal);
  color: white;
}
.match-link {
  display: grid;
  place-items: center;
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  width: 43px;
  height: 43px;
  background: var(--paper);
  border-radius: 50%;
  color: var(--coral);
  box-shadow: 0 4px 9px #33281f15;
}
.match-details {
  display: flex;
  gap: 17px;
  margin: 16px 0 2px;
  font-size: 11px;
  color: var(--teal);
}
.match-details > span {
  display: flex;
  gap: 4px;
  align-items: center;
}
.match-details .icon {
  width: 14px;
  height: 14px;
}
.message {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  font-size: 14px;
}
.message > span:not(.message-avatar) {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 21px;
  box-shadow: 0 8px 22px #33281f14;
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #dac2a9;
  font: 500 20px var(--display);
}
.message-in {
  bottom: 20%;
  left: 0%;
  rotate: -5deg;
}
.message-in > span:not(.message-avatar) {
  background: var(--paper);
  border-radius: 21px 21px 21px 5px;
}
.message-in .icon {
  color: var(--coral);
  width: 18px;
  height: 18px;
}
.message-out {
  bottom: 7%;
  right: 0%;
  rotate: 4deg;
}
.message-out > span:not(.message-avatar) {
  background: var(--teal);
  color: var(--paper);
  border-radius: 21px 21px 5px 21px;
}
.message-out .message-avatar {
  background: #e4d6b9;
}
.message-out .icon {
  width: 17px;
  height: 17px;
}
.sighting-chip {
  position: absolute;
  top: 0%;
  right: 0%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 12px 15px;
  border-radius: 20px;
  background: #dfeee7;
  color: var(--teal);
  rotate: -5deg;
}
.sighting-chip .icon {
  width: 17px;
  height: 17px;
}
#home {
  background: #eaf0e5;
}
#home .chapter-copy h2 span {
  color: var(--teal);
}
.reunion-frame {
  position: absolute;
  inset: 3% 1% 8%;
  border-radius: 190px 190px 36px 36px;
  overflow: hidden;
  rotate: 3deg;
  border: 8px solid var(--paper);
  box-shadow: 0 15px 40px #33281f1a;
}
.reunion-frame img {
  height: 100%;
  width: 100%;
  object-position: 53% 50%;
}
.reunion-badge {
  position: absolute;
  left: 7%;
  right: -1%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px;
  background: var(--paper);
  border-radius: 24px;
  rotate: -3deg;
  box-shadow: 0 12px 30px #33281f16;
}
.reunion-badge strong {
  font: 500 24px var(--display);
}
.reunion-badge div > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.reunion-badge > .icon {
  margin-left: auto;
}
.reunion-heart {
  position: absolute;
  right: -1%;
  top: 5%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 6px solid var(--paper);
  background: var(--coral);
  color: var(--paper);
  border-radius: 50%;
  rotate: 14deg;
  box-shadow: 0 5px 15px #33281f15;
}
.reunion-heart .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}
.chapter-nav {
  display: none;
}
.story-caption {
  display: block;
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
}
/* Each scene is composed on a stable canvas, scaled to the space available. */
.scene-content {
  display: contents;
}
.story-progress {
  display: none;
}
.story-enhanced .story-track {
  height: 420svh;
}
.story-enhanced .story-stage {
  height: 100svh;
  position: sticky;
  top: 0;
  overflow: hidden;
  max-width: none;
}
.story-enhanced .story-panels {
  height: 100%;
  max-width: 1512px;
  margin: auto;
  position: relative;
}
.story-enhanced .story-panel {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  padding-top: 30px;
  padding-bottom: 110px;
  opacity: 0;
  visibility: hidden;
  background: transparent;
}
.story-enhanced .chapter-copy {
  opacity: var(--copy-opacity, 1);
}
.story-enhanced .chapter-visual {
  height: min(610px, calc(100svh - 180px));
  scale: 1;
}
.story-enhanced .scene-content {
  display: block;
  position: absolute;
  width: 560px;
  height: 570px;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  scale: var(--scene-scale, 1);
}
.story-enhanced [data-depth] {
  will-change: translate;
}
.story-enhanced .story-progress {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #33281f0a;
}
.story-progress span {
  display: block;
  height: 100%;
  background: var(--coral);
  transform: scaleX(var(--story-progress, 0));
  transform-origin: left;
}
.story-enhanced .chapter-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  position: absolute;
  bottom: 44px;
  left: 50%;
  translate: -50% 0;
  z-index: 5;
  border-radius: 999px;
  background: #fffdf9f5;
  border: 1px solid #33281f12;
  padding: 6px 15px;
  box-shadow: 0 4px 14px #33281f08;
  backdrop-filter: blur(12px);
}
.chapter-nav > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.chapter-nav > a .icon {
  width: 19px;
  height: 19px;
}
.chapter-nav > a[aria-current] {
  color: var(--coral-dark);
  background: #fbe6dc;
}
.chapter-nav > a:hover {
  background: #f4ede2;
}
.chapter-line {
  width: 15px;
  height: 1px;
  background: #33281f24;
}
.story-enhanced .story-caption {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  font-size: 10px;
  padding: 13px;
  letter-spacing: 0.3px;
}
