@font-face {
  font-family: Merriweather;
  src: url('/immutable/bbff895ad97ee6c2/assets/fonts/merriweather-light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat Brush';
  src: url('/immutable/719563de0b82980a/assets/fonts/caveat-brush.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url('/immutable/012f33f9814bf961/assets/fonts/caveat.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Merriweather, Georgia, serif;
  font-weight: 300;
  transition:
    background-color 0.3s,
    color 0.3s;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button:disabled {
  cursor: default;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 3px;
}
.page-border {
  position: fixed;
  inset: 0;
  border: 5px solid var(--border);
  pointer-events: none;
  z-index: 100;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  background: var(--paper);
  padding: 12px;
  transform: translateY(-180%);
  z-index: 200;
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.theme-toggle {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  z-index: 30;
  transition:
    color 0.2s,
    transform 0.2s;
}
.theme-toggle:hover {
  color: var(--ink);
  transform: rotate(12deg);
}
.theme-toggle svg {
  width: 30px;
  height: 30px;
}
.moon-icon {
  display: none;
}
main {
  padding: 0 30px;
}
.hero {
  width: 1000px;
  max-width: 100%;
  margin: 36px auto 0;
  container-type: inline-size;
}
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  isolation: isolate;
}
.scene-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Both sides of each themed layer are explicit: delayed art must never reveal
   the opposite theme underneath it. Keep these rules together. */
.scene-night {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.scene-day {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.night .scene-day {
  opacity: 0;
}
.night .scene-night {
  opacity: 1;
}
.scene-hotspot {
  position: absolute;
  left: calc(var(--x) / 1536 * 100%);
  top: calc(var(--y) / 1024 * 100%);
  width: calc(var(--w) / 1536 * 100%);
  height: calc(var(--h) / 1024 * 100%);
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  z-index: 2;
}
.scene-hotspot:disabled {
  cursor: default;
}
.hotspot-pin {
  display: none;
}
.scene-hotspot:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 5px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  padding: 7px 12px;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 3px 10px #0000000c;
  font-family: 'Caveat Brush', cursive;
  font-size: 20px;
  font-size: 2cqw;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.scene-hotspot:hover,
.scene-hotspot:focus-visible {
  z-index: 3;
}
.scene-hotspot:hover .label,
.scene-hotspot:focus-visible .label {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* The arrow sits under the middle of its centred label, so it points at the
   middle of the object. Its glyph's downward tip is right of centre. */
.arrow {
  position: absolute;
  left: 50%;
  bottom: -24px;
  translate: -65% 0;
  font-size: 1.8em;
  line-height: 0.8;
  text-shadow: 0 1px var(--paper);
}
.left-screen .label,
.right-screen .label {
  bottom: auto;
  top: calc(100% + 22px);
}
.left-screen .arrow,
.right-screen .arrow {
  bottom: auto;
  top: -20px;
  transform: rotate(180deg);
}
.camera-toggle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
.dog-heart {
  position: absolute;
  left: 60%;
  top: 12%;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-size: 3cqw;
  color: #e86984;
  filter: drop-shadow(0 1px 2px #fff9);
  opacity: 0;
  pointer-events: none;
}
.dog.is-petted .dog-heart {
  animation: heart-float 1.25s ease-out forwards;
}
/* The Bible is a narrow spine beside the books; keep a usable target. */
.bible-toggle {
  min-width: 24px;
  min-height: 24px;
  left: calc((var(--x) + var(--w) / 2) / 1536 * 100%);
  transform: translateX(-50%);
}
/* Playing fetch: a squeak toy arcs from the toy bin into Maggie's mouth. */
.squeak-toy {
  position: absolute;
  left: calc(420 / 1536 * 100%);
  top: calc(730 / 1024 * 100%);
  width: 4cqw;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}
.toy-thrown .squeak-toy {
  animation: toy-toss 0.8s ease-in-out forwards;
}
.dog-squeak {
  position: absolute;
  left: 58%;
  top: -9%;
  padding: 3px 10px;
  border: 2px solid #1d1d1d;
  border-radius: 14px 14px 14px 3px;
  background: #fffef4;
  color: #1d1d1d;
  font-family: 'Caveat Brush', cursive;
  font-size: 22px;
  font-size: 2.1cqw;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.dog.is-squeaking .dog-squeak {
  animation: squeak-pop 1.2s ease-out forwards;
}
.dog.is-squeaking .dog-heart {
  animation: heart-float 1.25s ease-out 0.15s forwards;
}

.intro {
  padding-top: 10px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.intro > p {
  font-size: 17px;
  line-height: 1.6;
  margin: 20px 0 27px;
}
.intro strong {
  font-weight: 300;
  color: var(--strong);
}
.intro p a {
  border-bottom: 2px solid var(--line);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.intro p a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.signature {
  font-family: Caveat, cursive;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.4;
  letter-spacing: -2px;
  margin: 14px auto 9px;
  transform: rotate(-7deg);
  width: fit-content;
  color: var(--ink);
}
.signature span {
  margin-left: 4px;
}
.name-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
}
.name-trigger:hover {
  color: var(--accent);
}
.business-card {
  position: fixed;
  width: min(470px, calc(100vw - 40px));
  max-width: none;
  margin: auto;
  padding: 36px 36px 0;
  border: 1px solid #426250;
  border-radius: 15px;
  background: linear-gradient(135deg, #1b2a24, #101a18 75%);
  color: #f5f6ee;
  box-shadow: 0 24px 85px #0006;
  text-align: left;
  border-top: 4px solid #009951;
}
.business-card::backdrop {
  background: #12162580;
  backdrop-filter: blur(3px);
}
.business-card-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.business-card-logo img {
  display: block;
  width: 44px;
  height: auto;
}
.business-card-wordmark {
  font:
    700 24px/1.2 Arial,
    sans-serif;
  letter-spacing: 0.4px;
}
.business-card h2 {
  margin: 0 0 10px;
  font:
    300 28px/1.3 Merriweather,
    Georgia,
    serif;
  letter-spacing: -0.5px;
}
.business-card-title {
  margin: 0;
  color: #b9cabc;
  font:
    13px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.6px;
}
.business-card-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  color: #b5e5c5;
  font:
    13px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.3px;
}
.business-card-email {
  margin-top: 20px;
  border-top: 1px solid #b9d0be33;
}
.business-card-website {
  padding-bottom: 22px;
}
.business-card-contact:hover {
  color: #fff;
}
.business-card-contact > span:last-child {
  font-size: 22px;
  line-height: 1;
}
.business-card-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b9cabc;
  font:
    26px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.business-card-close:hover {
  color: #fff;
  background: #ffffff0a;
}
.business-card :focus-visible {
  outline-color: #a6e5bc;
  outline-offset: 4px;
}
@media (max-width: 420px) {
  .business-card {
    padding: 30px 25px 0;
  }
  .business-card-logo {
    margin-bottom: 27px;
  }
  .business-card h2 {
    font-size: 24px;
  }
  .business-card-contact {
    font-size: 12px;
  }
}
@media (max-height: 420px) {
  .business-card {
    padding-top: 20px;
  }
  .business-card-logo {
    margin-bottom: 16px;
  }
  .business-card-email {
    margin-top: 12px;
  }
  .business-card-website {
    padding-bottom: 16px;
  }
}

/* A quiet reading card, with room to scroll on short landscape screens. */
.quote-dialog,
.external-link-dialog {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--strong);
  box-shadow: 0 25px 90px #0006;
  text-align: left;
}
.quote-dialog::backdrop,
.external-link-dialog::backdrop {
  background: #101b2c99;
  backdrop-filter: blur(5px);
}
.quote-dialog[open],
.external-link-dialog[open] {
  display: flex;
  flex-direction: column;
}
.external-link-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.external-link-dialog h2 {
  margin: 0;
  font:
    400 34px/1.15 'Caveat Brush',
    cursive;
}
.external-link-dialog p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.external-link-dialog .external-link-url {
  color: var(--ink);
  font: 12px/1.6 monospace;
  overflow-wrap: anywhere;
}
.external-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.external-link-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font:
    14px/1.4 Arial,
    sans-serif;
  text-align: center;
  cursor: pointer;
}
.external-link-cancel {
  background: var(--paper);
  color: var(--strong);
}
.external-link-continue {
  background: color-mix(in srgb, var(--accent) 80%, var(--strong));
  color: var(--paper);
  border-color: var(--accent);
}
.external-link-actions > :hover {
  box-shadow: 0 0 0 2px var(--line);
}
.quote-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font:
    28px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.quote-close:hover {
  background: color-mix(in srgb, var(--strong) 8%, transparent);
}
.quote-heading {
  flex-shrink: 0;
  padding-right: 20px;
}
.quote-heading > p {
  margin: 0 0 7px;
  color: var(--ink);
  font:
    10px/1.5 Arial,
    sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.quote-heading h2 {
  margin: 0;
  font:
    400 36px/1.1 'Caveat Brush',
    cursive;
}
.quote-passage {
  min-height: 0;
  margin: 26px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.quote-passage blockquote {
  margin: 0 0 22px;
  padding-left: 20px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}
.quote-passage blockquote p,
.quote-aside {
  margin: 12px 0 0;
  font-size: 0.85em;
  opacity: 0.85;
}
.quote-statement {
  margin: 0;
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.65;
}
/* The golf invitation's mail link borrows the round action button's look. */
a.quote-next {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.quote-author {
  margin: 0 0 7px;
  font:
    700 12px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.4px;
}
.quote-source {
  display: inline-block;
  padding: 5px 0;
  color: var(--accent);
  font:
    12px/1.5 Arial,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-dialog .quote-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font:
    11px/1.5 Arial,
    sans-serif;
  text-align: left;
}
.quote-next {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--strong);
  font:
    12px/1.5 Arial,
    sans-serif;
  cursor: pointer;
}
.quote-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.quote-next span {
  margin-left: 8px;
  font-size: 18px;
}
@media (max-height: 500px) {
  .quote-dialog {
    padding: 22px 30px;
  }
  .quote-heading > p {
    display: none;
  }
  .quote-heading h2 {
    font-size: 28px;
  }
  .quote-passage {
    margin: 14px 0;
  }
  .quote-passage blockquote {
    margin-bottom: 12px;
  }
  .quote-passage blockquote p {
    font-size: 17px;
    line-height: 1.5;
  }
  .quote-author {
    display: inline;
    margin: 0 12px 0 0;
  }
  .quote-dialog .quote-actions {
    padding-top: 12px;
  }
}

/* The print border is HTML/CSS, so each original photo stays intact. */
.polaroid-dialog {
  position: fixed;
  width: fit-content;
  max-width: calc(100vw - 48px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #39342d;
  overflow: visible;
}
.polaroid-dialog::backdrop {
  background: #101723b8;
  backdrop-filter: blur(5px);
}
.polaroid-frame {
  width: fit-content;
  margin: 0;
  padding: 14px 14px 0;
  background: #fffef8;
  border: 1px solid #e2ddd2;
  box-shadow:
    0 24px 70px #0007,
    0 2px 6px #0003;
  transform: rotate(-1.5deg);
}
.polaroid-dialog[open] .polaroid-frame {
  animation: polaroid-appear 0.3s ease-out both;
}
.polaroid-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 160px;
  min-height: 100px;
  background: #e7e2d8;
  box-shadow: inset 0 0 0 1px #0001;
}
.polaroid-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(560px, calc(100vw - 84px));
  /* Reserve room for the caption, next button and the raised close control. */
  max-height: min(66dvh, calc(100dvh - 226px));
  object-fit: contain;
}
.polaroid-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  background: #f2eee7e8;
  color: #5b554b;
  text-align: center;
  font:
    14px/1.5 Arial,
    sans-serif;
}
.polaroid-status:empty {
  display: none;
}
.polaroid-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 3px 17px;
  font:
    24px/1.1 Caveat,
    cursive;
}
.polaroid-count {
  font:
    10px/1 Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #91897c;
  white-space: nowrap;
}
.polaroid-close {
  position: absolute;
  z-index: 1;
  top: -22px;
  right: -20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #252a30;
  color: #fff;
  font:
    28px/1 Arial,
    sans-serif;
  box-shadow: 0 3px 12px #0003;
  cursor: pointer;
}
.polaroid-controls {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.polaroid-next {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid #fff7;
  border-radius: 25px;
  background: #1b222ac9;
  color: #fff;
  font:
    13px/1.5 Arial,
    sans-serif;
  cursor: pointer;
}
.polaroid-next > span {
  margin-right: 6px;
  font-size: 20px;
  vertical-align: -1px;
}
.polaroid-next:hover,
.polaroid-close:hover {
  background: #38414b;
}
.polaroid-next:disabled {
  opacity: 0.6;
  cursor: wait;
}
.polaroid-dialog :focus-visible {
  outline-color: #fff;
  outline-offset: 4px;
}
@media (max-width: 420px), (max-height: 500px) {
  .polaroid-photo {
    max-height: min(66dvh, calc(100dvh - 190px));
  }
  .polaroid-caption {
    min-height: 58px;
    font-size: 20px;
    padding-bottom: 14px;
    gap: 8px;
  }
  .polaroid-frame {
    padding: 10px 10px 0;
  }
  .polaroid-controls {
    margin-top: 20px;
  }
}
@keyframes polaroid-appear {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(1deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1.5deg) scale(1);
  }
}
.quick-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font:
    12px/1.6 Arial,
    sans-serif;
  color: var(--ink);
}
.quick-links a:hover {
  color: var(--accent);
}
.quick-links > span {
  color: #b7afa3;
}
.projects {
  max-width: 800px;
  margin: 74px auto 0;
  scroll-margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
}
.section-heading > span {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.section-heading h2 {
  font:
    400 24px/1.3 'Caveat Brush',
    cursive;
  text-align: center;
  margin: 0;
}
.project-card {
  display: block;
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px #302c2610;
}
.project-card + .project-card {
  margin-top: 24px;
}
.game-preview {
  position: relative;
  background: #163b35;
  color: #eff8df;
  font:
    11px/1.5 'Courier New',
    monospace;
  overflow: hidden;
}
.game-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.game-preview .game-terminal {
  position: absolute;
  top: 15px;
  left: 17px;
  z-index: 1;
  opacity: 1;
  padding: 5px 8px;
  border-radius: 4px;
  background: #122c28bf;
}
.game-preview .game-prompt {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 95%;
  padding: 6px 11px;
  border-radius: 4px;
  background: #122c28bf;
}
.game-terminal {
  opacity: 0.7;
  font-size: 10px;
}
.game-prompt {
  display: block;
  text-align: center;
  letter-spacing: 3px;
  font-size: 10px;
}
.project-card:hover .game-prompt > span {
  animation: blink 1s steps(2, start) infinite;
}
.project-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
}
.project-caption h3 {
  font:
    400 25px 'Caveat Brush',
    cursive;
  margin: 0 0 5px;
  color: var(--strong);
}
.project-caption p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.project-arrow {
  font:
    26px Arial,
    sans-serif;
  color: var(--ink);
}
footer {
  text-align: center;
  margin: 65px 24px 30px;
  font:
    11px/1.7 Arial,
    sans-serif;
  color: var(--ink);
  opacity: 0.8;
}
footer span {
  padding: 0 8px;
}
/* "Hosted on American Cloud", on its own line beneath the signature line. */
footer .hosted-by {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 10px auto 0;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
}
footer .hosted-by:hover {
  color: var(--accent);
  opacity: 1;
}
footer .hosted-by span {
  padding: 0;
}
footer .hosted-by svg {
  display: block;
  flex: none;
}
footer .hosted-by strong {
  font-weight: 700;
  color: var(--strong);
}

/* The same artwork and coordinates remain visible at every viewport size. */
@media (max-width: 650px) {
  main {
    padding: 0 15px;
  }
  .hero {
    margin-top: 32px;
  }
  .intro {
    max-width: 480px;
    padding-top: 8px;
  }
  .intro > p {
    font-size: 14px;
    line-height: 1.85;
    margin: 20px 10px 21px;
  }
  .signature {
    font-size: 40px;
  }
  .theme-toggle {
    top: 8px;
    right: 8px;
  }
  .theme-toggle svg {
    width: 24px;
    height: 24px;
  }
  .quick-links {
    gap: 12px;
    font-size: 11px;
    margin-top: 26px;
  }
  .projects {
    margin: 50px auto 0;
    max-width: 480px;
  }
  .section-heading {
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .project-caption {
    padding: 18px;
  }
  .project-caption p {
    font-size: 11px;
  }
  .game-terminal {
    font-size: 8px;
  }
  .game-preview .game-terminal {
    top: 10px;
    left: 10px;
  }
  .game-preview .game-prompt {
    bottom: 11px;
    font-size: 8px;
    letter-spacing: 2px;
  }
  .scene-hotspot.dog {
    min-width: 44px;
    min-height: 44px;
  }
  .label {
    font-size: 14px;
  }
}
@media (hover: none) {
  /* Protect the illustration from missed taps while preserving page scrolling.
     Intro text and dialogs keep native zoom, selection, and touch callouts. */
  .scene {
    touch-action: pan-y;
  }
  .scene,
  .scene * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
  }
  /* Spread crowded targets as the scene shrinks. Each pin stays part of its
     original control, with a short leader connecting it to the artwork. */
  .scene {
    --pin-spread: max(0px, calc(40px - 4.6cqw));
  }
  /* Keep whole pin circles above neighboring artwork hit regions. */
  .scene-hotspot:has(.hotspot-pin) {
    z-index: 6;
  }
  /* Pins are the touch targets, so the small shelf objects need no enlarged boxes
     that would cover their neighbors' pins. */
  .bible-toggle {
    min-width: 0;
    min-height: 0;
  }
  .camera-toggle::before {
    content: none;
  }
  .scene-hotspot:not(:disabled):has(.hotspot-pin)::after {
    content: '';
    position: absolute;
    left: var(--pin-x, 50%);
    top: var(--pin-y, 50%);
    width: calc(hypot(var(--pin-dx, 0), var(--pin-dy, 0)) * var(--pin-spread));
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 0 1px #ffffff80;
    transform-origin: left center;
    transform: rotate(atan2(var(--pin-dy, 0), var(--pin-dx, 1)));
    pointer-events: none;
  }
  /* The bookcase shelves are the crowded corner: fan its three pins apart. */
  .camera-toggle {
    --pin-dx: -0.3;
    --pin-dy: -0.75;
  }
  .bible-toggle {
    --pin-dx: 0.85;
    --pin-dy: -0.2;
  }
  .emac {
    --pin-dx: 0.15;
    --pin-dy: 0.85;
  }
  .left-screen {
    --pin-dx: -0.4;
    --pin-dy: -0.55;
  }
  .right-screen {
    --pin-dx: 0.4;
    --pin-dy: -0.55;
  }
  /* Clear of Rebecca's chair on the smallest phones. */
  .golf-toggle {
    --pin-dx: 0.3;
    --pin-dy: 0.4;
  }
  .scene-hotspot:not(:disabled) .hotspot-pin {
    display: block;
    position: absolute;
    z-index: 1;
    left: calc(var(--pin-x, 50%) + var(--pin-dx, 0) * var(--pin-spread));
    top: calc(var(--pin-y, 50%) + var(--pin-dy, 0) * var(--pin-spread));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    touch-action: manipulation;
  }
  .hotspot-pin::before,
  .hotspot-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
  .hotspot-pin::before {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    background: var(--accent);
    box-shadow: 0 1px 5px #142b4da0;
    animation: hotspot-breathe 2s ease-in-out infinite;
  }
  .hotspot-pin::after {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 1px #ffffffd9;
    opacity: 0.7;
    animation: hotspot-pulse 2s ease-out infinite;
  }
  .scene-hotspot:not(:focus-visible) .label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .dog.is-petted .dog-heart,
  .dog.is-squeaking .dog-heart,
  .dog.is-squeaking .dog-squeak {
    opacity: 1;
  }
}

.night .theme-toggle {
  color: #c9d0ec;
}
.night .sun-icon {
  display: none;
}
.night .moon-icon {
  display: block;
}
@keyframes toy-toss {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translate(6cqw, -9cqw) rotate(200deg) scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(13cqw, -2.5cqw) rotate(360deg) scale(0.8);
  }
}
@keyframes squeak-pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  30% {
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  25% {
    opacity: 1;
    transform: translateY(-18px) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-55px) scale(1.15);
  }
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
@keyframes hotspot-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.88);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}
@keyframes hotspot-pulse {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.8);
  }
  75%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

body:has(dialog[open]) {
  overflow: hidden;
}
