/* The immersive opening is one full viewport; the rest of the page scrolls
   normally. Overlay positioning is scoped to the opening, not the browser. */
body.immersive {
  overflow-x: clip;
  overflow-y: auto;
  background: var(--paper);
}
.immersive .site-header,
.immersive .hero-heading,
.immersive .scene-controls,
.immersive .world-shade,
.world-footer {
  position: absolute;
}
.immersive .hero {
  isolation: isolate;
}
.immersive .world-footer {
  position: absolute;
}
.immersive .world-shade {
  height: 100%;
  inset: 0;
}
.world-footer .scroll-next {
  text-decoration: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  min-height: 28px;
}
.off-duty {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  padding: 90px 44px 30px;
  scroll-margin-top: 0;
}
.off-duty-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.off-duty-heading {
  margin-bottom: 40px;
}
.off-duty-heading .section-label {
  font-size: 10px;
  letter-spacing: 1.8px;
}
.off-duty-heading h2 {
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 16px 0 14px;
}
.off-duty-heading > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.boxy-moments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.moment {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 27px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.moment-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.moment-number {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.moment h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-weight: 700;
  margin: 0;
}
.moment > p {
  font-size: 13px;
  line-height: 1.65;
  margin: 16px 0 0;
  color: var(--muted);
  min-height: 65px;
  max-width: 260px;
}
.moment-art {
  margin: 18px -8px 12px;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  flex: 1;
  min-height: 230px;
}
.moment-art img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.moment:hover .moment-art img {
  transform: translateY(-5px) rotate(-2deg);
}
.moment > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  min-height: 40px;
  font-size: 12px;
  color: var(--ink);
  margin-top: auto;
}
.moment > a span {
  font-size: 17px;
  color: var(--blue);
}
.moment > a:hover {
  color: var(--blue);
}
.off-duty-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 30px 0 8px;
  margin-top: 65px;
  font-size: 11px;
  color: var(--muted);
}
.off-duty-footer > span {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.off-duty-footer a {
  padding: 8px 0;
  color: var(--ink);
}
.off-duty-footer a:hover {
  color: var(--blue);
}
.offscreen .dust i {
  animation-play-state: paused;
}
@media (min-width: 1600px) {
  .off-duty {
    padding-top: 110px;
  }
  .moment {
    padding: 30px;
  }
  .moment h3 {
    font-size: 21px;
  }
  .moment > p {
    font-size: 14px;
  }
  .moment-art {
    min-height: 270px;
  }
}
@media (max-width: 1100px) {
  .off-duty {
    padding-inline: 28px;
  }
  .boxy-moments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .moment {
    padding: 27px;
  }
  .moment > p {
    max-width: none;
    min-height: 44px;
  }
  .moment-art {
    height: 290px;
    aspect-ratio: auto;
  }
}
@media (max-width: 640px) {
  .immersive .scene-controls {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .off-duty {
    padding: 60px 20px 22px;
  }
  .off-duty-heading {
    margin-bottom: 28px;
  }
  .off-duty-heading .section-label {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .off-duty-heading h2 {
    font-size: 36px;
    letter-spacing: -1.5px;
    max-width: 320px;
    margin-top: 14px;
  }
  .off-duty-heading > p {
    font-size: 12px;
  }
  .boxy-moments {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .moment {
    padding: 24px 24px 20px;
    border-radius: 14px;
  }
  .moment h3 {
    font-size: 20px;
  }
  .moment > p {
    font-size: 13px;
    min-height: 0;
    max-width: 300px;
    line-height: 1.65;
    margin-top: 13px;
  }
  .moment-art {
    margin-top: 14px;
    height: 260px;
    min-height: 0;
  }
  .moment > a {
    font-size: 12px;
  }
  .off-duty-footer {
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 40px;
    padding-top: 23px;
    font-size: 10px;
  }
  .off-duty-footer > span {
    display: none;
  }
  .world-footer .scroll-next {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .moment-art img {
    transition: none;
  }
  .moment:hover .moment-art img {
    transform: none;
  }
}
