/* Loaded before the page styles so the first painted frame is the intro cream. */
html[data-intro-pending],
html[data-intro-playing] {
  overflow: hidden;
  overscroll-behavior: none;
}
html[data-intro-pending] body,
html[data-intro-playing] body { touch-action: pinch-zoom; }
/* Keep the header's layout space so the final photo lands without a shift. */
html:is([data-intro-pending],[data-intro-playing]) :is(.opening-header,.desk-system-bar,.desk-dock,.assistant-launcher,.travel-preview-notice,.site-update-banner) {
  visibility: hidden;
  pointer-events: none;
}
html[data-intro-pending]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #faf8f4;
}
@media (prefers-reduced-motion: reduce), print {
  html[data-intro-pending]::before { display: none; }
}

/* The shared opening fades into the requested page. */
body > .photo-flashback {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: #51483e;
  touch-action: pinch-zoom;
}
.photo-flashback .flashback-backdrop { position: absolute; inset: 0; background: #faf8f4; }
html[data-intro-playing] .opening-portrait[data-opening-docking] { visibility: hidden; }
.photo-flashback .flashback-memory-frame,
.photo-flashback .flashback-photographs { position: absolute; inset: 0; overflow: hidden; }
.photo-flashback .flashback-memory-frame { border-radius: clamp(6px, .7vw, 10px); }
body .photo-flashback img.flashback-memory { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; opacity: 1; border-radius: inherit; pointer-events: none; }
.photo-flashback .flashback-memory-frame[data-cover=true] { border-radius: 0; background: #faf8f4; mask-image: linear-gradient(to bottom, #000 82%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); }
body .photo-flashback .flashback-memory-frame[data-cover=true] img.flashback-memory { object-fit: contain; object-position: bottom center; mask-image: linear-gradient(to right, transparent, #0003 4%, #0009 9%, #000 18%, #000 82%, #0009 91%, #0003 96%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #0003 4%, #0009 9%, #000 18%, #000 82%, #0009 91%, #0003 96%, transparent); }
.photo-flashback .flashback-mark { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; color: #51483e; }
.photo-flashback .intro-monogram { display: block; width: clamp(108px, 12vw, 176px); height: auto; overflow: visible; }
.flashback-progress { position: absolute; inset: 0; font: 400 clamp(15px, 1.3vw, 19px)/1 'Huninn', 'Helvetica Neue', sans-serif; font-variant-numeric: tabular-nums; }
.flashback-progress-value { position: absolute; top: calc(env(safe-area-inset-top, 0px) + clamp(24px, 4vw, 56px)); }
.flashback-progress-value { left: clamp(20px, 4vw, 64px); display: flex; font-size: clamp(32px, 3.5vw, 56px); }
.flashback-digit-window { display: block; width: .65em; height: 1em; overflow: hidden; }
.flashback-digit-track { display: flex; flex-direction: column; transition: transform 110ms cubic-bezier(.25,.7,.25,1); will-change: transform; }
.flashback-digit-track > span { display: block; flex: 0 0 1em; height: 1em; line-height: 1; text-align: center; }
@media (max-width: 760px) {
  .photo-flashback .intro-monogram { width: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  body > .photo-flashback { display: none; }
}
@media print {
  .photo-flashback { display: none !important; }
}
