:root {
  --background: #ffffff;
  --fade-speed: 180ms;
  --focus-ring: #050a36;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--background);
}


[hidden] {
  display: none !important;
}

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.noscript-message {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 10000;
  margin: 0;
  padding: 0.75rem 1rem;
  font: 14px/1.4 Arial, Helvetica, sans-serif;
  color: #050a36;
  background: #ffffff;
  border: 1px solid #050a36;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  opacity: 1;
  transition: opacity 160ms ease;
  pointer-events: none;
}

body.is-loaded .loading-screen {
  opacity: 0;
}

.site,
.stage {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
}

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
  The JPEGs are 16:9. This frame keeps them perfectly proportional.
  Any extra browser area becomes clean white margin.
*/
.slide-frame {
  position: relative;
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
  touch-action: pan-y;
}

.slide-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.fade-image {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fade-speed) ease;
}

.fade-image.is-visible {
  opacity: 1;
}

/*
  Invisible link areas.
  They sit exactly over text baked into the JPEG exports.
  Press D while viewing the site to show/hide them for troubleshooting.
*/
.hotspot {
  position: absolute;
  z-index: 30;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible {
  color: #050a36;
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

body.debug-hotspots .hotspot {
  color: #050a36;
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  background: rgba(255, 230, 0, 0.36);
  outline: 1px solid rgba(5, 10, 54, 0.55);
}

.footer-hotspots,
.page17-hotspots,
.card-hotspots {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.footer-hotspots .hotspot,
.page17-hotspots .hotspot,
.card-hotspots .hotspot {
  pointer-events: auto;
}

/* Standard footer pages, e.g. page-2 through page-16 and page-18. */
.footer-brand {
  left: 3.8%;
  top: 89.35%;
  width: 12.0%;
  height: 4.0%;
}

.footer-about {
  left: 79.8%;
  top: 89.35%;
  width: 4.8%;
  height: 4.0%;
}

.footer-portfolio {
  left: 84.7%;
  top: 89.35%;
  width: 6.8%;
  height: 4.0%;
}

.footer-contact {
  left: 91.1%;
  top: 89.35%;
  width: 6.0%;
  height: 4.0%;
}

/* Contact page and business card footer shift left because Save Contact appears. */
body.is-contact-page .footer-about,
body.is-card-page .footer-about {
  left: 75.5%;
  width: 4.9%;
}

body.is-contact-page .footer-portfolio,
body.is-card-page .footer-portfolio {
  left: 80.3%;
  width: 5.8%;
}

.footer-save-contact {
  left: 86.3%;
  top: 89.35%;
  width: 10.2%;
  height: 4.0%;
}

/* Page 17 contact links. */
.page17-email-cta {
  left: 22.0%;
  top: 47.35%;
  width: 56.0%;
  height: 5.2%;
}

.page17-email {
  left: 7.4%;
  top: 62.6%;
  width: 18.2%;
  height: 2.9%;
}

.page17-phone {
  left: 7.4%;
  top: 65.0%;
  width: 9.4%;
  height: 2.8%;
}

.page17-pixelfed-design {
  left: 34.3%;
  top: 62.6%;
  width: 10.9%;
  height: 2.9%;
}

.page17-pixelfed-photography {
  left: 44.7%;
  top: 62.6%;
  width: 13.8%;
  height: 2.9%;
}

.page17-pixelfed-parkedslope {
  left: 58.4%;
  top: 62.6%;
  width: 8.4%;
  height: 2.9%;
}

.page17-instagram-design {
  left: 34.3%;
  top: 65.0%;
  width: 10.9%;
  height: 2.8%;
}

.page17-instagram-photography {
  left: 44.7%;
  top: 65.0%;
  width: 13.8%;
  height: 2.8%;
}

.page17-linkedin {
  left: 34.3%;
  top: 67.4%;
  width: 10.0%;
  height: 2.8%;
}

/* Business card links. */
.card-phone {
  left: 12.4%;
  top: 41.4%;
  width: 8.3%;
  height: 2.6%;
}

.card-email {
  left: 8.0%;
  top: 43.6%;
  width: 18.6%;
  height: 2.6%;
}

.card-website {
  left: 8.0%;
  top: 45.9%;
  width: 15.4%;
  height: 2.6%;
}

.card-pixelfed-design {
  left: 15.4%;
  top: 51.9%;
  width: 12.7%;
  height: 2.7%;
}

.card-pixelfed-photography {
  left: 28.4%;
  top: 51.9%;
  width: 16.5%;
  height: 2.7%;
}

.card-pixelfed-parkedslope {
  left: 45.2%;
  top: 51.9%;
  width: 9.4%;
  height: 2.7%;
}

.card-instagram-design {
  left: 15.4%;
  top: 54.2%;
  width: 12.7%;
  height: 2.7%;
}

.card-instagram-photography {
  left: 28.4%;
  top: 54.2%;
  width: 16.5%;
  height: 2.7%;
}

.card-linkedin {
  left: 15.4%;
  top: 56.5%;
  width: 10.4%;
  height: 2.7%;
}

@media (prefers-reduced-motion: reduce) {
  .fade-image,
  .loading-screen {
    transition: none;
  }
}
