:root {
  color-scheme: light;
  background: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

body {
  font-family: "Courier New", ui-monospace, monospace;
}

.deck {
  display: flex;
  width: 100vw;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

.deck::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #fff;
}

.slide > img {
  display: block;
  width: min(100vw, 177.777778svh);
  height: min(100svh, 56.25vw);
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.contact-links {
  position: fixed;
  z-index: 10;
  top: max(16px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0a0a0a;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  opacity: 0.55;
}

.contact-links a:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 3px;
}

.contact-links img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
}

.contact-links img[src*="linkedin"] {
  filter: grayscale(1) contrast(999%);
}

.edge-nav {
  position: fixed;
  z-index: 11;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 88px;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
  opacity: 0.56;
  transform: translateY(-50%);
  transition: opacity 180ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.edge-nav--previous {
  left: max(4px, env(safe-area-inset-left));
}

.edge-nav--next {
  right: max(4px, env(safe-area-inset-right));
}

.edge-nav svg {
  width: 38px;
  height: 54px;
  padding: 9px;
  overflow: visible;
  border: 1px solid rgb(17 17 17 / 22%);
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.edge-nav:hover,
.edge-nav:focus-visible {
  opacity: 0.86;
}

.edge-nav:hover svg,
.edge-nav:focus-visible svg {
  border-color: rgb(17 17 17 / 30%);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 3px 16px rgb(0 0 0 / 9%);
}

.edge-nav:focus-visible {
  outline: none;
}

.edge-nav:focus-visible svg {
  box-shadow: 0 0 0 2px #111, 0 3px 16px rgb(0 0 0 / 9%);
}

.edge-nav--previous:active,
.edge-nav--previous.is-pressed {
  opacity: 1;
  transform: translateY(-50%) translateX(-3px) scale(0.92);
}

.edge-nav--next:active,
.edge-nav--next.is-pressed {
  opacity: 1;
  transform: translateY(-50%) translateX(3px) scale(0.92);
}

.edge-nav[hidden] {
  display: none;
}

.navigation-cue {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  color: #767676;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.14;
  transform: translateX(-50%);
  transition: opacity 280ms ease, transform 280ms ease;
}

.navigation-cue.is-count-only {
  opacity: 0.34;
}

.navigation-cue.is-edge {
  opacity: 0.14;
}

.navigation-cue.is-edge.is-hinting {
  opacity: 0.62;
}

.cue-arrow {
  display: inline-block;
  color: #0a0a0a;
  font-size: 15px;
  line-height: 0.7;
  letter-spacing: 0;
}

.navigation-cue.is-home.is-hinting .cue-arrow {
  animation: cue-left 1.8s ease-in-out 2;
}

.navigation-cue.is-end #cueLabel {
  order: 1;
}

.navigation-cue.is-end .cue-arrow {
  order: 2;
}

.navigation-cue.is-end #cueSeparator {
  order: 3;
}

.navigation-cue.is-end #cueCount {
  order: 4;
}

.navigation-cue.is-end.is-hinting .cue-arrow {
  animation: cue-right 1.8s ease-in-out 2;
}

.navigation-cue.is-count-only #cueLabel,
.navigation-cue.is-count-only #cueSeparator,
.navigation-cue.is-count-only .cue-arrow,
.cue-arrow[hidden] {
  display: none;
}

@keyframes cue-left {
  0%, 100% { transform: translateX(0); opacity: 0.45; }
  50% { transform: translateX(-8px); opacity: 1; }
}

@keyframes cue-right {
  0%, 100% { transform: translateX(0); opacity: 0.45; }
  50% { transform: translateX(8px); opacity: 1; }
}

@media (max-width: 600px) {
  .contact-links {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }

  .contact-links a {
    width: 30px;
    height: 30px;
  }

  .contact-links img {
    width: 16px;
    height: 16px;
  }

  .edge-nav {
    width: 46px;
    height: 76px;
  }

  .edge-nav--previous {
    left: max(0px, env(safe-area-inset-left));
  }

  .edge-nav--next {
    right: max(0px, env(safe-area-inset-right));
  }

  .edge-nav svg {
    width: 32px;
    height: 46px;
    padding: 8px;
  }

  .navigation-cue {
    bottom: max(12px, env(safe-area-inset-bottom));
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck {
    scroll-behavior: auto;
  }

  .navigation-cue.is-home .cue-arrow,
  .navigation-cue.is-end .cue-arrow {
    animation: none;
  }

  .edge-nav {
    transition: none;
  }
}
