@font-face {
  font-family: Inter;
  src: url('assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Space Mono;
  src: url('assets/mono.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('assets/archivo-black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --header-height: 68px;
  --ink: #181818;
  --paper: #fbfbfa;
  --surface: #f2f2f1;
  --muted: #585857;
  --line: #dddddb;
  --paper-grain-opacity: .38;
  --glass-top: transparent;
  --glass-bottom: transparent;
  --glass-edge: transparent;
  --glass-underside: transparent;
  --wet-glass: linear-gradient(142deg, var(--glass-top), transparent 35% 64%, var(--glass-bottom));
  --mono: 'Space Mono', monospace;
  --gutter: clamp(1.2rem, 5.1vw, 5.5rem);
}
* { box-sizing: border-box; }
body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.5 Inter, system-ui, sans-serif;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  z-index: 8;
  top: 1rem;
  left: 1rem;
  padding: .65rem .9rem;
  color: white;
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.shell {
  width: min(100% - var(--gutter) * 2, 1510px);
  margin-inline: auto;
}
h1, h2, h3 { margin: 0; }

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  color: var(--ink);
  background: #fcfcfae6;
  border-bottom: 1px solid #20201f21;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: calc(var(--header-height) - 1px);
  gap: .75rem;
}
.brand {
  font-family: 'Archivo Black', Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.header-controls { display: flex; align-items: center; gap: .5rem; }
.book-link, .night-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 38px;
  padding: .48rem .7rem;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(155deg, #fff9, #faf9f536);
  box-shadow: inset 0 1px 0 #fff9, 0 2px 5px #22222209;
  font-size: .8rem;
}
.book-link { border-color: var(--muted); font-weight: 680; }
.book-link:hover, .night-button:hover { background: var(--surface); }
.theme-icon {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
}
.night-button { display: inline-grid; white-space: nowrap; }
.theme-option {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: center;
  gap: inherit;
}
.theme-option-night { opacity: max(0, calc(1 - 1.65 * var(--theme-progress, 0))); }
.theme-option-light { opacity: max(0, calc(1.65 * var(--theme-progress, 0) - .65)); }
.theme-icon-moon { box-shadow: inset -4px -2px currentColor; transform: rotate(-20deg); }
.grid-icon {
  color: currentColor;
  width: 12px;
  height: 12px;
  flex: none;
  display: inline-block;
  background:
    linear-gradient(currentColor 0 0) top left / 5px 5px no-repeat,
    linear-gradient(currentColor 0 0) top right / 5px 5px no-repeat,
    linear-gradient(currentColor 0 0) bottom left / 5px 5px no-repeat,
    linear-gradient(currentColor 0 0) bottom right / 5px 5px no-repeat;
}


.sequence {
  position: relative;
  --sequence-travel: 440svh;
  height: calc(100svh + var(--sequence-travel) * var(--sequence-duration, 1));
  background: #edebe6;
}
.sequence-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  isolation: isolate;
  overflow: clip;
  color: var(--ink);
  background: #edebe6;
}
.stage-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 51% 45%, #fdfcf9 3%, #efede8 51%, #d7d5cf 100%);
}
.stage-art::before, .gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('assets/paper-grain.png') repeat;
  opacity: var(--paper-grain-opacity);
}
.night-sky {
  position: absolute;
  inset: 0;
  opacity: var(--night, 0);
  background: radial-gradient(ellipse at 51% 36%, #b7b6b2, #575651 37%, #242422 78%, #161615);
}
.cloud-bank {
  --cloud-texture: url('assets/cloud-bank.webp');
  position: absolute;
  pointer-events: none;
}
.cloud-bank::before, .cloud-bank::after {
  content: '';
  position: absolute;
  inset: 0;
}
.cloud-bank::before {
  background: var(--cloud-texture) center / 100% 100% no-repeat;
}
.cloud-bank::after {
  opacity: var(--cloud-glow, 0);
  -webkit-mask: var(--cloud-texture) center / 100% 100% no-repeat;
  mask: var(--cloud-texture) center / 100% 100% no-repeat;
  background:
    radial-gradient(ellipse 18% 11% at var(--cloud-glow-x, 50%) var(--cloud-glow-y, 50%),
      #f6f6f6, #ededed99 31%, transparent 100%),
    radial-gradient(ellipse 27% 7% at calc(var(--cloud-glow-x, 50%) + 8%) calc(var(--cloud-glow-y, 50%) - 4%),
      #edededaa, transparent 100%),
    radial-gradient(ellipse 29% 15% at calc(var(--cloud-glow-x, 50%) - 7%) calc(var(--cloud-glow-y, 50%) + 5%),
      #ddd6, transparent 100%);
}
.cloud-back {
  inset: -36% -22% 10%;
  transform: translate3d(var(--sky-x, 0vw), var(--sky-y, 0vh), 0) rotate(168deg) scale(1.16);
}
.cloud-front {
  z-index: 2;
  inset: 30% -33% -51%;
  opacity: .88;
  transform: translate3d(var(--cloud-x, 0vw), var(--cloud-y, 0vh), 0) rotate(-11deg) scale(var(--cloud-depth, 1.15));
}
.reading-scrim {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 32%;
  pointer-events: none;
  opacity: var(--night, 0);
  background: linear-gradient(transparent, #171716db);
}
.shot { position: absolute; inset: 0; display: grid; pointer-events: none; }
.shot:focus, main:focus, .gallery h1:focus { outline: none; }
.shot.is-active a { pointer-events: auto; }
.shot:not(.is-active) a { pointer-events: none; }
.model-mount {
  --chapter-light-level: var(--chapter-light, 0);
  --chapter-light-source: rgb(255 255 255 / calc(.29 + .14 * var(--theme-progress, 0)));
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 1200px;
  perspective-origin: 50% 43%;
  filter: var(--model-focus, none);
  visibility: hidden;
}
.model-mount.is-in-frame { visibility: visible; }
.model-mount::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--chapter-light-level);
  background: var(--chapter-ambient-light);
}
.court-scene .model-mount {
  --chapter-ambient-light: radial-gradient(ellipse 48% 62% at 50% 6%, var(--chapter-light-source), transparent);
}
.mat-scene .model-mount {
  --chapter-ambient-light: radial-gradient(ellipse 53% 31% at 0% 63%, var(--chapter-light-source), transparent);
}
.field-scene .model-mount {
  --chapter-ambient-light: radial-gradient(ellipse 29% 19% at 81% 27%, var(--chapter-light-source), transparent);
}
.caption-window {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  overflow: clip;
  padding-top: .9rem;
}
.chapter-caption { transform: translate3d(0, var(--caption-y, 140%), 0); }
.field-scene .chapter-caption { color: #faf9f5; }
.sequence-progress {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 2px;
  background: #888781;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.intro-copy {
  align-self: center;
  text-align: center;
  padding-block: var(--header-height) 2.75rem;
  position: relative;
  z-index: 4;
  transform: var(--intro-pose, none);
}
.eyebrow {
  margin: 0 0 1.12rem;
  color: inherit;
  font: 400 .8rem/1.4 var(--mono);
  letter-spacing: .18em;
}
.intro h1 {
  color: #20201f;
  font-size: clamp(3.2rem, 10.15vw, 12.2rem);
  font-weight: 770;
  line-height: .83;
  letter-spacing: -.107em;
  padding-right: .107em;
}
@supports (background-clip: text) {
  .wordmark-dot {
    color: transparent;
    background:
      linear-gradient(112deg, transparent 38%, rgb(255 255 255 / var(--wordmark-glint, 0)) 50%, transparent 62%)
        var(--wordmark-sweep, 100%) 50% / 240% 100% no-repeat,
      linear-gradient(105deg, #333 12%, #5f5f5f 39%, #b2b2b2 50%, #686868 59%, #383838 90%);
    background-clip: text;
    filter: brightness(calc(1 + .5 * var(--theme-progress, 0)));
  }
}
@media (forced-colors: active) {
  .wordmark-dot { color: inherit; }
}
.intro-link, .scene-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  border: 1px solid;
  border-radius: 2rem;
}
.intro-link {
  border-color: #1f1f1ea8;
  background: linear-gradient(152deg, #fdfcfbed, #f5f3eed6);
  box-shadow: inset 0 1px 0 #fff9, 0 4px 12px #22222212;
  color: #222221;
  padding: .8rem 1.08rem;
  font-size: .875rem;
  font-weight: 650;
  transition: background .25s, color .25s, border .25s;
}
.intro-link { margin-block-start: 2.4rem; }
.intro-link:hover {
  background: #232221;
  color: white;
  box-shadow: inset 0 1px 0 #fff3, 0 4px 12px #22222217;
}
.scene-link {
  --scene-button-ink: #fafafa;
  --scene-button-surface: #202020;
  --scene-button-hover: #373737;
  min-height: 48px;
  padding: .65rem 1.22rem;
  color: var(--scene-button-ink);
  background: var(--scene-button-surface);
  border-color: var(--scene-button-ink);
  box-shadow: 0 5px 18px #0003;
  font-size: .9375rem;
  font-weight: 780;
  white-space: nowrap;
  transition: box-shadow .25s;
}
.field-scene .scene-link, :root[data-night-mode] .scene-link {
  --scene-button-ink: #191919;
  --scene-button-surface: #fafafa;
  --scene-button-hover: #e7e7e7;
}
.scene-link:hover {
  background-color: var(--scene-button-hover);
  box-shadow: 0 6px 20px #0004;
}
.scene-link:focus-visible {
  outline-color: #fafafa;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #191919, 0 0 0 5px #191919;
}
.sequence-icon {
  width: 11px;
  height: 7px;
  border-block: 1px solid currentColor;
  background: linear-gradient(currentColor 0 0) center / 11px 1px no-repeat;
}
.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3.4rem);
  left: 50%;
  display: grid;
  place-items: start center;
  width: 23px;
  height: 38px;
  border: 1px solid #47464483;
  border-radius: 20px;
  transform: translateX(-50%);
}
.scroll-cue i { width: 2px; height: 8px; margin-top: 7px; border-radius: 2px; background: currentColor; animation: scroll-wheel 2s ease-in-out infinite; }
@keyframes scroll-wheel {
  0%, 30%, 100% { transform: translateY(0); }
  60%, 75% { transform: translateY(9px); }
}
.chapter-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(2.4rem, 7.5vh, 6.7rem);
}
.chapter-caption h2 {
  font-size: clamp(3.2rem, 12.8vw, 14rem);
  font-weight: 760;
  line-height: .82;
  letter-spacing: -.10em;
}
.model {
  position: absolute;
  width: min(94vw, 1500px);
  aspect-ratio: 1.92;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform-style: preserve-3d;
  transform: var(--model-pose, none);
  color: #464542;
}
.model-plane {
  position: absolute;
  inset: 0;
  border: 1px solid #6866614f;
  border-radius: 2vw;
  color: inherit;
  background: linear-gradient(132deg, #fcfcfb, #e4e3e0 62%, #cbc9c5);
}
.model-plane:not(.model-under) {
  --surface-key: rgb(255 255 255 / calc(var(--chapter-light-level) * (.19 + .13 * var(--theme-progress, 0))));
  --surface-shade: rgb(0 0 0 / calc(var(--chapter-light-level) * .17));
  box-shadow:
    inset 0 1px 1px var(--glass-edge),
    inset 0 -1px 2px var(--glass-underside),
    var(--plane-shadow, inset 0 0 0 4px #ffffff88, 0 2px 6px #2a2a2b2b, 0 14px 42px #23222024);
}
.model-under {
  transform: translateZ(-22px);
  background: linear-gradient(122deg, #e8e7e5, #b2b0ac);
  box-shadow: 0 32px 60px #26252226, inset 0 0 0 4px #ffffff33;
}
.model-plane:not(.model-under)::before {
  position: absolute;
  inset: 5%;
  content: '';
  border: 1px solid currentColor;
  opacity: .57;
}
.model-plane:not(.model-under)::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  content: '';
  pointer-events: none;
  opacity: var(--surface-glint-strength, 0);
  background: linear-gradient(112deg, transparent 36%, #fff2 47%, #fff6 51%, #fff1 58%, transparent 68%);
  background-size: 235% 100%;
  background-position: var(--surface-glint, 0%) 50%;
}
.model-plane i { position: absolute; display: block; border: 1px solid currentColor; opacity: .72; }
.court-lines {
  --surface-texture: url('assets/court-hardwood.png') center / clamp(300px, 49vw, 660px) auto repeat;
  --surface-light: radial-gradient(ellipse 62% 73% at 50% 17%, var(--surface-key), transparent),
    linear-gradient(180deg, transparent 51%, var(--surface-shade));
  background: var(--surface-texture), var(--surface-light), linear-gradient(118deg, #faf9f6 6%, #eae8e2 51%, #cbc8bf);
}
.court-lines i:nth-child(1) {
  left: 50%; top: 5%; bottom: 5%;
  border-width: 0 0 0 1px;
  opacity: .42;
}
.court-lines i:nth-child(2) {
  width: 14%; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: .42;
}

.field-scene .model {
  width: min(108vw, 1640px);
  aspect-ratio: 2.05;
  color: #f8f7f4b0;
}
.field-scene .model-plane { border-color: #e7e5e175; }
.field-scene .model-under { background: linear-gradient(140deg, #74726f, #383735); box-shadow: 0 26px 70px #11111090; }
.field-lines {
  --surface-texture: url('assets/field-turf.png') center / 180px auto repeat;
  --surface-light: radial-gradient(ellipse 49% 80% at 85% 8%, var(--surface-key), transparent),
    linear-gradient(151deg, var(--surface-shade), transparent 71%);
  background: var(--surface-texture), var(--surface-light), linear-gradient(135deg, #5b5954, #373531);
}
.field-lines i {
  left: 50%;
  top: 5%; bottom: 5%;
  border-width: 0 0 0 1px;
  opacity: .55;
}
.field-lines i:nth-child(2) { left: 29%; opacity: .28; }
.field-lines i:nth-child(3) { left: 71%; opacity: .28; }
.mat-scene .model {
  width: min(72vw, 97vh, 1140px);
  aspect-ratio: 1;
  color: #dad8d3;
}
.mat-scene .model-plane, .mat-scene .model-plane::before { border-radius: 50%; }
.mat-scene .model-under { background: linear-gradient(130deg, #3c3b39, #98958f); }
.mat-lines {
  --surface-texture: url('assets/mat-rubber.png') center / 130px auto repeat;
  --surface-light: linear-gradient(106deg, var(--surface-key), transparent 46%, var(--surface-shade));
  background: var(--surface-texture), var(--surface-light), radial-gradient(circle at 43% 36%, #69665f, #494741 57%, #383732 100%);
  --plane-shadow: 0 12px 28px #22211f3b, inset 0 0 0 2px #ffffff21;
}
.mat-lines::before { display: none; }
.mat-lines i { inset: 19%; border-radius: 50%; opacity: .5; }

.contact-copy {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 27rem);
  align-items: end;
  align-self: center;
  column-gap: clamp(1.5rem, 5vw, 6rem);
  row-gap: 1.25rem;
  padding-block: var(--header-height) 2rem;
  transform: translate3d(0, var(--contact-y, 105vh), 0);
}
.contact-copy h2 {
  font-size: clamp(3.5rem, 9.5vw, 10.8rem);
  font-weight: 770;
  line-height: .86;
  letter-spacing: -.098em;
}
.contact-bio {
  max-width: 34ch;
  margin: clamp(1rem, 2.5vw, 1.85rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  line-height: 1.55;
}
.contact-details {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-self: end;
  padding: clamp(1.2rem, 2.2vw, 1.85rem);
  border: 1px solid #d8d5cd;
  border-radius: 1.35rem;
  background: linear-gradient(142deg, #fdfcf9ed, #e9e7dfba);
  box-shadow: inset 0 1px 0 #fff, 0 15px 36px #25221915;
  backdrop-filter: blur(4px);
}
.contact-details::before {
  position: absolute;
  z-index: -1;
  inset: -45% -25%;
  content: '';
  pointer-events: none;
  background: linear-gradient(121deg, transparent 37%, #ffffffb8 49%, transparent 62%);
  transform: translate3d(var(--contact-shine, 18%), 0, 0);
}
.instagram-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 46px;
  padding: .65rem .9rem;
  border: 1px solid #686868;
  border-radius: .85rem;
  background-color: #242424;
  color: #fbfbfa;
  font-size: .94rem;
  font-weight: 690;
  transition: background-color .2s ease;
}
.instagram-booking:hover { background-color: #3c3c3c; }
.instagram-booking:focus-visible { outline-color: var(--ink); }
.contact-hint {
  margin: .7rem 0 .9rem;
  color: var(--muted);
  font-size: .875rem;
}
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.contact-socials a {
  color: var(--muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .24em;
}
.contact-socials a:hover { color: var(--ink); text-decoration-color: currentColor; }

.contact-note {
  position: relative;
  grid-column: 1 / -1;
  margin: 0;
  padding-inline-end: 2.75rem;
  color: var(--muted);
  font-size: .875rem;
}
.editor-link {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}
.editor-link > span {
  position: relative;
  width: 10px;
  height: 8px;
  margin-top: 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .7;
}
.editor-link > span::before {
  content: '';
  position: absolute;
  bottom: 100%;
  inset-inline: 1px;
  height: 4px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.editor-link:is(:hover, :focus-visible) > span { opacity: 1; }

.shot.intro .scroll-cue {
  z-index: 4;
  transform: translate(-50%, var(--scroll-cue-y, 0vh));
}
.gallery { isolation: isolate; min-height: 100svh; padding-block: calc(var(--header-height) + 2.65rem) 4rem; }
.gallery::before { position: fixed; z-index: -1; }
.gallery-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gallery-clouds {
  inset: -29% -18% 13%;
  transform: rotate(171deg);
  opacity: .48;
}
.gallery-clouds::before { display: none; }
.back-link { display: inline-flex; gap: .7rem; align-items: center; color: var(--muted); font-size: .875rem; font-weight: 620; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.gallery-heading { padding-block: 3.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.gallery h1 {
  font-size: clamp(2.65rem, 8.6vw, 8.8rem);
  font-weight: 850;
  line-height: .86;
  letter-spacing: -.09em;
}
.gallery-count { color: var(--muted); margin: 1.3rem 0 0; font: .875rem/1.4 var(--mono); }
.empty-gallery {
  display: grid;
  place-items: center;
  min-height: clamp(235px, 29vw, 375px);
  border-radius: 22px;
  margin-block: 1.5rem 2rem;
  padding: 1rem;
  text-align: center;
  background: radial-gradient(ellipse, #eeedec, #fdfcfb 69%);
}
.empty-gallery p {
  margin: 0;
  color: var(--muted);
  text-shadow:
    0 0 .55em rgb(255 255 255 / calc(.38 * var(--theme-progress, 0))),
    0 0 1.3em rgb(255 255 255 / calc(.25 * var(--theme-progress, 0)));
}
.photo-grid {
  --photo-gap: clamp(.5rem, .95vw, .9rem);
  display: grid;
  gap: calc(var(--photo-gap) * 1.7);
  margin-block: 1.5rem 2rem;
}
.gallery-sports {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem clamp(.25rem, 1.4vw, .85rem);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}
.gallery-sports a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .5rem;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}
.gallery-sports a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: var(--ink);
  text-decoration-line: underline;
}
.photo-group {
  --photo-columns: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--photo-gap);
}
.photo-group--landscape { --photo-columns: 2; }
.photo-group--landscape .photo-tile:only-child { flex-basis: min(100%, 48rem); }
body:has(#gallery:not([hidden])),
body:has(#gallery:not([hidden])) .site-header { background: var(--gallery-background, #fff); }
.photo-tile {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - (var(--photo-columns) - 1) * var(--photo-gap)) / var(--photo-columns));
  aspect-ratio: var(--photo-ratio, 1);
  scroll-margin-block: calc(var(--header-height) + .5rem) .7rem;
  min-width: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
}
.photo-tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-tile.is-moving-photo img { visibility: hidden; }

.navigation-fade {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 8;
  background: var(--paper);
  opacity: 0;
}
.camera-cursor {
  position: fixed;
  z-index: 8;
  inset: 0 auto auto 0;
  display: none;
  pointer-events: none;
}
.camera-cursor::before {
  content: '';
  display: block;
  width: 25px;
  height: 25px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background-color: var(--ink);
  box-shadow: 0 0 0 1px #fff8, 0 1px 3px #0008;
  transform: translate(-50%, -50%) scale(.28);
  transition: transform .24s cubic-bezier(.22,.72,.24,1), background-color .22s ease;
}
@media (any-pointer: fine) {
  :root[data-camera-cursor]:not(:has(.lightbox[open])),
  :root[data-camera-cursor]:not(:has(.lightbox[open])) .photo-tile { cursor: none; }
  :root[data-camera-cursor]:not(:has(.lightbox[open])) .camera-cursor { display: block; }
  :root[data-camera-cursor="focus"] .camera-cursor::before {
    background-color: transparent;
    transform: translate(-50%, -50%) scale(1);
  }
}
@supports ((backdrop-filter: invert(1)) or (-webkit-backdrop-filter: invert(1))) and (mask-image: radial-gradient(black, transparent)) {
  .camera-cursor::before {
    --cursor-mask: radial-gradient(circle closest-side, #000 90%, transparent 100%);
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: grayscale(1) invert(1) contrast(3);
    backdrop-filter: grayscale(1) invert(1) contrast(3);
    mask-image: var(--cursor-mask);
  }
  :root[data-camera-cursor="focus"] .camera-cursor::before {
    --cursor-mask: radial-gradient(circle closest-side, transparent 77%, #000 86% 94%, transparent 100%);
  }
}

html.has-page-scrollbar { scrollbar-width: none; }
.page-scrollbar {
  position: fixed;
  z-index: 6;
  inset-block-start: calc(var(--header-height) + .85rem);
  inset-block-end: max(.85rem, env(safe-area-inset-bottom));
  inset-inline-end: max(.1rem, env(safe-area-inset-right));
  inline-size: 28px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body:has(.lightbox[open]) .page-scrollbar { display: none; }
.page-scrollbar::before {
  position: absolute;
  inset: 0 calc((100% - 5px) / 2);
  content: '';
  border-radius: 1rem;
  background: #85858525;
}
.page-scrollbar-thumb {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  inline-size: 16px;
  block-size: var(--scrollbar-thumb-height, 72px);
  border: 1px solid #706f6a4d;
  border-radius: 1rem;
  background: linear-gradient(155deg, #ffffffed 4%, #f6f6f6b8 41%, #d5d5d5a8 79%, #f4f4f4c4 100%);
  box-shadow: inset 0 1px 0 #fff, inset 1px 0 0 #ffffffa6, 0 3px 10px #1f1f1f20;
  backdrop-filter: blur(6px);
  transform: translate(-50%, var(--scrollbar-thumb-top, 0px));
  cursor: grab;
}
.page-scrollbar.is-dragging, .page-scrollbar.is-dragging .page-scrollbar-thumb { cursor: grabbing; }
.page-scrollbar:focus-visible { outline: none; }
.page-scrollbar:focus-visible .page-scrollbar-thumb { outline: 2px solid #595959; outline-offset: 2px; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color-scheme: dark;
  color: #f1f1f1;
  background: transparent;
}
.lightbox::backdrop {
  background: transparent;
  backdrop-filter: blur(0);
  transition: backdrop-filter 1.54s cubic-bezier(.37,.06,.53,.98);
}
.lightbox.has-depth::backdrop {
  backdrop-filter: blur(2px);
  transition-duration: 1.32s;
  transition-timing-function: cubic-bezier(.38,.05,.55,.95);
}
html:not(.has-page-scrollbar):has(#gallery:not([hidden])):not(:has(.lightbox[open])) { scrollbar-gutter: stable; }
html:has(.lightbox[open]) {
  overflow: hidden;
  scrollbar-width: none;
}
html.has-page-scrollbar::-webkit-scrollbar,
html:has(.lightbox[open])::-webkit-scrollbar { display: none; }
body:has(.lightbox[open]) {
  overflow: hidden;
  padding-inline-end: var(--gallery-scrollbar-width, 0px);
}
body:has(.lightbox[open]) .site-header { inset-inline-end: var(--gallery-scrollbar-width, 0px); }
.lightbox-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / auto minmax(0, 1fr) auto;
  gap: clamp(.55rem, 1.1vw, 1.1rem);
  width: 100%;
  height: 100%;
  padding-block: max(.65rem, env(safe-area-inset-top)) max(.7rem, env(safe-area-inset-bottom));
  padding-inline: max(.8rem, env(safe-area-inset-left)) max(.8rem, env(safe-area-inset-right));
}
.viewer-dim {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 4% 32%, #dedede2b, transparent 48%),
    radial-gradient(ellipse at 72% 6%, #e6e6e60d, transparent 48%),
    linear-gradient(113deg, #262626fa, #1b1b1bfa 54%, #121212fa);
}
.viewer-top, .viewer-control, .viewer-filmstrip { transition: opacity .36s ease; }
.lightbox:not(.is-ready) :is(.viewer-top, .viewer-control, .viewer-filmstrip) {
  opacity: 0;
  pointer-events: none;
}
.viewer-top {
  grid-area: 1 / 1 / 2 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
}
.viewer-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .65rem;
  color: #d9d9d9;
  font-size: .875rem;
  font-weight: 600;
}
.viewer-download:hover, .viewer-download:focus-visible { color: white; }
.viewer-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.viewer-photo {
  grid-area: 2 / 2 / 3 / 3;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
}
.viewer-photo:is(.is-draggable, .is-zoomed) { cursor: grab; }
.viewer-photo.is-zoomed { touch-action: none; }
.viewer-photo.is-dragging { cursor: grabbing; }
.viewer-photo img {
  grid-area: 1 / 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.viewer-photo.is-zoomed #lightbox-image {
  transform: translate3d(var(--photo-pan-x), var(--photo-pan-y), 0) scale(var(--photo-zoom));
}
.lightbox:is(.is-entering, .has-moving-photo) .viewer-photo img { visibility: hidden; }
.viewer-transition-image {
  position: fixed;
  z-index: 3;
  display: block;
  object-fit: contain;
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
}
.viewer-control {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c5c5;
  cursor: pointer;
  transition: color .24s, opacity .36s;
}
.viewer-control:hover:not(:disabled), .viewer-control:focus-visible { color: white; }
.viewer-control:disabled { visibility: hidden; }
.previous { grid-area: 2 / 1 / 3 / 2; align-self: center; }
.next { grid-area: 2 / 3 / 3 / 4; align-self: center; }
.viewer-chevron {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 1.4px 1.4px 0 0;
  transform: translateX(-2px) rotate(45deg);
}
.previous .viewer-chevron { transform: translateX(2px) rotate(-135deg); }
.close-icon { position: relative; width: 13px; height: 13px; }
.close-icon::before, .close-icon::after {
  position: absolute;
  inset: 50% 0 auto;
  height: 1.25px;
  content: '';
  background: currentColor;
  transform: rotate(45deg);
}
.close-icon::after { transform: rotate(-45deg); }
.viewer-filmstrip {
  grid-area: 3 / 2 / 4 / 3;
  justify-self: center;
  display: flex;
  gap: .36rem;
  max-width: 100%;
  min-width: 0;
  padding: .3rem .33rem .36rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #ffffff1c;
  border-radius: .75rem;
  background: linear-gradient(150deg, #ffffff12, #ffffff05 53%, #00000012);
  box-shadow: inset 0 1px 0 #ffffff13, 0 7px 24px #0003;
  backdrop-filter: blur(5px);
  scrollbar-width: thin;
  scrollbar-color: #838383 #1b1b1b;
}
.viewer-filmstrip button {
  flex: 0 0 auto;
  width: clamp(38px, 4.4vw, 62px);
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #f5f5f542;
  border-radius: 5px;
  background: #242424;
  color: #f5f5f5;
  opacity: .6;
  cursor: pointer;
}
.viewer-filmstrip img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.viewer-filmstrip button:hover, .viewer-filmstrip [aria-current] { opacity: 1; border-color: #f1f1f1; }
.viewer-filmstrip button:focus-visible { outline-offset: 1px; opacity: 1; }

@media (max-width: 960px) {
  .photo-group--portrait { --photo-columns: 2; }
}
@media (max-width: 620px) {
  .photo-group--landscape { --photo-columns: 1; }
  .viewer-photo { grid-column: 1 / -1; }
  .previous, .next { grid-row: 3; }
}
@media (max-width: 350px) {
  .photo-group--portrait { --photo-columns: 1; }
}
@media (max-height: 430px) and (orientation: landscape) {
  .lightbox-inner { gap: .35rem .6rem; padding-block: .3rem; }
  .viewer-control { width: 40px; height: 40px; }
  .viewer-filmstrip button { height: 32px; }
}
@media (max-width: 760px) {
  :root { --header-height: 61px; }
  .sequence { --sequence-travel: 370svh; }
  .intro h1 { font-size: clamp(3rem, 12vw, 6rem); }
  .cloud-front { left: -64%; right: -70%; }
  .cloud-back { left: -60%; right: -46%; }
  .model { width: 135vw; }
  .field-scene .model { width: 151vw; }
  .mat-scene .model { width: min(109vw, 75vh); }
  .chapter-caption {
    align-items: start;
    flex-direction: column;
    padding-bottom: max(2.1rem, env(safe-area-inset-bottom));
    gap: 1rem;
  }
  .chapter-caption h2 { font-size: clamp(3rem, 14.2vw, 6.5rem); }
  .contact-copy { grid-template-columns: 1fr; gap: 1.65rem; }
  .contact-copy h2 { font-size: clamp(3.25rem, 14.2vw, 6.5rem); }
  .contact-details { width: min(100%, 25rem); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .chapter-caption { padding-bottom: 1.25rem; }
  .chapter-caption h2 { font-size: clamp(2.5rem, 9vw, 5rem); }
  .intro h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
  .contact-copy { grid-template-columns: 1fr 1fr; gap: .9rem; padding-bottom: .5rem; }
  .contact-copy h2 { font-size: clamp(2.7rem, 8vw, 5.2rem); }
  .contact-bio { margin-top: .75rem; }
  .contact-details { padding: .85rem 1rem; }
}
@media (max-width: 620px) and (orientation: portrait) and (pointer: coarse) {
  .cloud-back, .cloud-front, .gallery-clouds {
    right: auto;
    bottom: auto;
    left: 50%;
    aspect-ratio: 24 / 13;
    translate: -50% 0;
  }
  .cloud-back {
    top: 4svh;
    width: max(208vw, 90svh);
    scale: calc(1 + .08 * var(--mobile-cloud-fill, 0));
  }
  .cloud-front {
    top: 48svh;
    width: max(230vw, 99svh);
    opacity: calc(.88 + .1 * var(--mobile-cloud-fill, 0));
    transform: translate3d(
      calc(-8vw + .45 * var(--sky-x, 0vw)),
      calc(9vh + 1.35 * var(--sky-y, 0vh) - 8svh * var(--mobile-cloud-fill, 0)),
      0
    ) rotate(-11deg) scale(calc(1.12 + .23 * var(--mobile-cloud-fill, 0)));
  }
  .gallery-clouds { top: 5svh; width: max(162vw, 78svh); }

  .intro h1 { font-size: clamp(2.55rem, 10.8vw, 4.25rem); }
  .intro-link { margin-block-start: 1.75rem; }
  .model { top: 46%; width: min(116vw, 58svh); }
  .field-scene .model { width: min(125vw, 63svh); }
  .mat-scene .model { width: min(99vw, 51svh); }
  .caption-window {
    bottom: max(3.25rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
    overflow: visible;
    padding-top: 0;
  }
  .chapter-caption {
    --caption-mist-color: var(--paper);
    position: relative;
    isolation: isolate;
    gap: .8rem;
    padding-bottom: 0;
    opacity: var(--mobile-caption-opacity, 0);
    transform: translate3d(0, var(--mobile-caption-offset, 0px), 0);
  }
  @media (prefers-reduced-motion: reduce) {
    .chapter-caption { opacity: 1; }
  }
  .field-scene .chapter-caption { --caption-mist-color: #171717; }
  .chapter-caption::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -1rem calc(-1 * var(--gutter)) -.85rem;
    pointer-events: none;
    background: radial-gradient(ellipse 77% 49% at 34% 48%, var(--caption-mist-color) 14%, transparent);
    opacity: .42;
  }
  .chapter-caption h2 {
    font-size: clamp(2.55rem, 13.2vw, 5.25rem);
    line-height: 1.04;
  }
  .contact-copy {
    row-gap: clamp(.75rem, 2.15svh, 1.15rem);
    padding-block: calc(var(--header-height) + .5rem) max(1.25rem, env(safe-area-inset-bottom));
  }
  .contact-copy h2 { font-size: clamp(2.5rem, 12vw, 4.4rem); }
  .contact-bio { margin-top: .8rem; font-size: .96rem; line-height: 1.45; }
  .contact-details { padding: clamp(1rem, 4.5vw, 1.25rem); }

  .gallery { padding-block-start: calc(var(--header-height) + 1.5rem); }
  .gallery-heading { padding-block: 2rem 1.1rem; }
  .gallery-count { margin-top: .8rem; }
  .lightbox-inner {
    gap: .45rem;
    padding-inline: max(.55rem, env(safe-area-inset-left)) max(.55rem, env(safe-area-inset-right));
  }
}
@media (min-width: 760px) and (min-height: 620px) {
  :root[data-ipad-layout] {
    --gutter: clamp(2.1rem, 4.5vw, 3.5rem);
  }
  [data-ipad-layout] :is(.book-link, .night-button) { min-height: 44px; }
  [data-ipad-layout] .intro h1 { font-size: clamp(3.6rem, 9.25vw, 8.7rem); }
  [data-ipad-layout] .chapter-caption {
    padding-bottom: max(clamp(2.6rem, 6svh, 4.75rem), env(safe-area-inset-bottom, 0px));
  }
  [data-ipad-layout] .chapter-caption h2 {
    font-size: clamp(3.9rem, 10vw, 8rem);
    line-height: .94;
  }
  [data-ipad-layout] :is(.cloud-back, .cloud-front, .gallery-clouds) {
    right: auto;
    bottom: auto;
    left: 50%;
    aspect-ratio: 24 / 13;
    translate: -50% 0;
  }
  [data-ipad-layout] .cloud-back { top: -21svh; width: max(144vw, 105svh); }
  [data-ipad-layout] .cloud-front { top: 39svh; width: max(158vw, 110svh); }
  [data-ipad-layout] .gallery-clouds { top: -11svh; width: max(123vw, 87svh); }
  [data-ipad-layout] .contact-copy {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, .85fr);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
  }
  [data-ipad-layout] .contact-copy h2 { font-size: clamp(3.3rem, 8vw, 7rem); }
  [data-ipad-layout] .gallery { padding-block-start: calc(var(--header-height) + 2rem); }
  [data-ipad-layout] .gallery-heading { padding-block: 2.55rem 1.35rem; }
  [data-ipad-layout] .photo-grid { --photo-gap: clamp(.75rem, 1.45vw, 1rem); }
  [data-ipad-layout] .viewer-filmstrip button { height: 44px; }
}
@media (min-width: 760px) and (min-height: 620px) and (orientation: landscape) {
  [data-ipad-layout] .model { width: calc(.9 * min(94vw, 1500px)); }
  [data-ipad-layout] .field-scene .model { width: calc(.9 * min(108vw, 1640px)); }
  [data-ipad-layout] .mat-scene .model { width: calc(.9 * min(72vw, 97vh, 1140px)); }
}
@media (min-width: 760px) and (min-height: 620px) and (orientation: portrait) {
  [data-ipad-layout] .cloud-back { top: 0; width: max(152vw, 106svh); }
  [data-ipad-layout] .cloud-front {
    top: 47svh;
    width: max(163vw, 113svh);
    transform: translate3d(calc(.5 * var(--sky-x, 0vw)), calc(.85 * var(--sky-y, 0vh)), 0)
      rotate(-11deg) scale(calc(1.03 + .14 * var(--mobile-cloud-fill, 0)));
  }
  [data-ipad-layout] .model { top: 47%; width: min(104vw, 82svh); }
  [data-ipad-layout] .field-scene .model { width: min(112vw, 89svh); }
  [data-ipad-layout] .mat-scene .model { width: min(84vw, 65svh); }
  [data-ipad-layout] .chapter-caption { align-items: start; flex-direction: column; gap: 1rem; }
  @media (prefers-reduced-motion: no-preference) {
    [data-ipad-layout] .caption-window {
      bottom: max(3.2rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
      overflow: visible;
      padding-top: 0;
    }
    [data-ipad-layout] .chapter-caption {
      padding-bottom: 0;
      opacity: var(--mobile-caption-opacity, 0);
      transform: translate3d(0, var(--mobile-caption-offset, 0px), 0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .model-plane:not(.model-under)::after { display: none; }
  .wordmark-dot { --wordmark-glint: 0; }
  *, *::before, *::after, .lightbox::backdrop { transition: none !important; animation: none !important; }
  .sequence, .sequence-stage { height: auto; }
  .sequence-stage { position: relative; overflow: visible; }
  .shot {
    position: relative;
    min-height: max(440px, 77svh);
    overflow: clip;
    isolation: isolate;
    scroll-margin-top: var(--header-height);
    background: radial-gradient(ellipse, #fcfbf8, #dad9d5);
  }
  .shot.intro {
    background: url('assets/cloud-bank.webp') center bottom / cover no-repeat, #f5f4ef;
  }
  .shot.intro::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url('assets/paper-grain.png') repeat;
    opacity: var(--paper-grain-opacity);
  }
  .field-scene { background: radial-gradient(ellipse at 50% 28%, #777671, #222220 72%); }
  .shot .model-mount { --chapter-light-level: .72; visibility: visible; filter: none; }
  .shot .model { transform: translateY(-6vh) rotateX(40deg) rotateZ(-13deg); }
  .shot .intro-copy, .shot .chapter-caption, .shot .contact-copy { transform: none; }
  .contact-details { --contact-shine: 18%; }
  .shot .scene-link { pointer-events: auto !important; }
  .stage-art, .cloud-front, .reading-scrim, .sequence-progress, .scroll-cue { display: none; }
}

.storm-weather {
  --rain-mask: radial-gradient(ellipse 58% 76% at 50% 46%, #000 25%, #000b 54%, transparent 100%);
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: var(--rain-mask);
  mask-image: var(--rain-mask);
  pointer-events: none;
}
:root[data-night-mode] { color-scheme: dark; }
.theme-icon-sun {
  background:
    radial-gradient(circle, currentColor 0 3px, transparent 3.3px),
    linear-gradient(currentColor 0 0) top center / 1px 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom center / 1px 2px no-repeat,
    linear-gradient(currentColor 0 0) left center / 2px 1px no-repeat,
    linear-gradient(currentColor 0 0) right center / 2px 1px no-repeat;
}

@supports not (color: color-mix(in srgb, white, black)) {
  :root[data-night-mode] {
    --ink: #f1f1f1;
    --paper: #141414;
    --surface: #242424;
    --muted: #b7b7b7;
    --line: #3b3b3b;
    --gallery-background: #141414;
    --paper-grain-opacity: 0;
    --glass-top: #fff2;
    --glass-bottom: #0008;
    --glass-edge: #fff8;
    --glass-underside: #000b;
  }
  :root[data-night-mode] .site-header { background: #171717ed; border-color: #ffffff20; }
  :root[data-night-mode] .skip-link { color: #181818; background: #efefef; }
  :root[data-night-mode] :is(.book-link, .night-button, .intro-link) {
    color: #ededed;
    border-color: #ffffff42;
    background: linear-gradient(150deg, #3a3a3ae6, #222222dc);
    box-shadow: inset 0 1px 0 #ffffff1c, 0 3px 12px #0002;
  }
  :root[data-night-mode] :is(.book-link, .night-button, .intro-link):hover {
    color: white;
    background: #444;
  }
  :root[data-night-mode] .night-button {
    border-color: #c9c9c9;
    background: #dddddd;
    color: #181818;
  }

  :root[data-night-mode] .night-button:hover { background: #ededed; color: #181818; }
  :root[data-night-mode] :is(.sequence, .sequence-stage) { background: #171717; }
  :root[data-night-mode] .stage-art {
    background: radial-gradient(ellipse at 48% 26%, #4a4a4a 0%, #262626 47%, #101010 100%);
  }
  :root[data-night-mode] .night-sky {
    background: radial-gradient(ellipse at 48% 33%, #616161, #343434 44%, #141414 87%, #0c0c0c);
  }
  :root[data-night-mode] .cloud-bank::before {
    filter: grayscale(1) brightness(.46) contrast(1.18);
  }
  :root[data-night-mode] .intro h1 { color: #f2f2f2; }
  :root[data-night-mode] .scroll-cue { border-color: #a5a5a5a0; }
  :root[data-night-mode] .court-lines {
    color: #e0e0e0;
    background: var(--wet-glass), var(--surface-texture), var(--surface-light), linear-gradient(118deg, #494949 6%, #2e2e2e 51%, #1a1a1a);
    --plane-shadow: inset 0 0 0 2px #ffffff15, 0 9px 38px #0008;
  }
  :root[data-night-mode] .court-scene .model-under {
    background: linear-gradient(122deg, #363636, #1a1a1a);
  }
  :root[data-night-mode] .mat-lines {
    color: #d4d4d4;
    background: var(--wet-glass), var(--surface-texture), var(--surface-light), radial-gradient(circle at 43% 36%, #474747, #2d2d2d 57%, #1d1d1d);
  }
  :root[data-night-mode] .mat-scene .model-under { background: linear-gradient(130deg, #282828, #414141); }
  :root[data-night-mode] .field-lines { background: var(--wet-glass), var(--surface-texture), var(--surface-light), linear-gradient(135deg, #3c3c3c, #1b1b1b); }
  :root[data-night-mode] .reading-scrim { background: linear-gradient(transparent, #101010dc); }
  :root[data-night-mode] .contact-details {
    border-color: #65656580;
    background: linear-gradient(142deg, #3b3b3bea, #232323d2);
    box-shadow: inset 0 1px 0 #ffffff16, 0 15px 36px #0004;
  }
  :root[data-night-mode] .contact-details::before {
    background: linear-gradient(121deg, transparent 37%, #ffffff21 49%, transparent 62%);
  }
  :root[data-night-mode] .back-link, :root[data-night-mode] .gallery-count { color: var(--muted); }
  :root[data-night-mode] .empty-gallery {
    background: radial-gradient(ellipse, #272727, #191919 71%);
  }
  :root[data-night-mode] .page-scrollbar::before { background: #b4b4b42b; }
  :root[data-night-mode] .viewer-dim {
    background:
      radial-gradient(ellipse at 8% 26%, #d5d5d52c, transparent 49%),
      radial-gradient(ellipse at 77% 9%, #a9a9a91b, transparent 43%),
      linear-gradient(113deg, #212121fa, #141414fa 54%, #090909fa);
  }
}

@media (max-width: 485px) {
  .header-controls { gap: .33rem; }
  .book-link, .night-button { padding-inline: .56rem; }
  .night-button { gap: .38rem; }
}
@media (max-width: 350px) {
  .brand { font-size: .9rem; }
  .header-inner { gap: .3rem; }
}
@media (max-width: 310px) {
  .site-header .shell { width: calc(100% - 1.25rem); }
  .brand { font-size: .8rem; }
  .book-link, .night-button { padding-inline: .42rem; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .storm-weather { display: none !important; }
  .cloud-bank::after { display: none; }
  :root[data-night-mode] .shot { background: radial-gradient(ellipse at 50% 26%, #3d3d3d, #191919 75%); }
  :root[data-night-mode] .field-scene { background: radial-gradient(ellipse at 50% 28%, #4b4b4b, #151515 72%); }
}

@supports (color: color-mix(in srgb, white, black)) {
  :root {
    --night-blend: calc(var(--theme-progress, 0) * 100%);
    --ink: color-mix(in srgb, #181818, #f1f1f1 var(--night-blend));
    --paper: color-mix(in srgb, #fbfbfa, #141414 var(--night-blend));
    --surface: color-mix(in srgb, #f2f2f1, #242424 var(--night-blend));
    --muted: color-mix(in srgb, #585857, #b7b7b7 var(--night-blend));
    --line: color-mix(in srgb, #dddddb, #3b3b3b var(--night-blend));
    --gallery-background: color-mix(in srgb, #fff, #141414 var(--night-blend));
    --paper-grain-opacity: calc(.38 * (1 - var(--theme-progress, 0)));
    --glass-top: color-mix(in srgb, transparent, #fff2 var(--night-blend));
    --glass-bottom: color-mix(in srgb, transparent, #0008 var(--night-blend));
    --glass-edge: color-mix(in srgb, transparent, #fff8 var(--night-blend));
    --glass-underside: color-mix(in srgb, transparent, #000b var(--night-blend));
  }
  .site-header {
    background-color: color-mix(in srgb, #fcfcfae6, #171717ed var(--night-blend));
    border-color: color-mix(in srgb, #20201f21, #ffffff20 var(--night-blend));
  }
  .skip-link { color: var(--paper); }
  .book-link {
    background: linear-gradient(155deg, color-mix(in srgb, #fff9, #3a3a3ae6 var(--night-blend)), color-mix(in srgb, #faf9f536, #222222dc var(--night-blend)));
  }
  .book-link:hover { background: var(--surface); }
  .night-button {
    color: #181818;
    background: linear-gradient(155deg, color-mix(in srgb, #fff9, #ededed var(--night-blend)), color-mix(in srgb, #faf9f536, #ddd var(--night-blend)));
  }
  .night-button:hover { background: color-mix(in srgb, #f2f2f1, #ededed var(--night-blend)); }

  :is(.sequence, .sequence-stage) { background-color: color-mix(in srgb, #edebe6, #171717 var(--night-blend)); }
  .stage-art {
    background: radial-gradient(ellipse at 51% 40%,
      color-mix(in srgb, #fdfcf9, #4a4a4a var(--night-blend)) 3%, color-mix(in srgb, #efede8, #262626 var(--night-blend)) 51%, color-mix(in srgb, #d7d5cf, #101010 var(--night-blend)));
  }
  .night-sky {
    background: radial-gradient(ellipse at 51% 36%,
      color-mix(in srgb, #b7b6b2, #616161 var(--night-blend)), color-mix(in srgb, #575651, #343434 var(--night-blend)) 37%,
      color-mix(in srgb, #242422, #141414 var(--night-blend)) 78%, color-mix(in srgb, #161615, #0c0c0c var(--night-blend)));
  }
  .cloud-bank::before {
    filter: grayscale(var(--theme-progress, 0))
      brightness(calc(1 - .54 * var(--theme-progress, 0)))
      contrast(calc(1 + .18 * var(--theme-progress, 0)));
  }
  .intro h1 { color: color-mix(in srgb, #20201f, #f2f2f2 var(--night-blend)); }
  .scroll-cue { border-color: color-mix(in srgb, #48463e83, #a5a5a5a0 var(--night-blend)); }
  .intro-link {
    color: var(--ink);
    border-color: color-mix(in srgb, #1f1f1ea8, #ffffff42 var(--night-blend));
    background: linear-gradient(152deg, color-mix(in srgb, #fdfcfbed, #3a3a3ae6 var(--night-blend)), color-mix(in srgb, #f5f3eed6, #222222dc var(--night-blend)));
  }
  .intro-link:hover { color: #fff; background: color-mix(in srgb, #232221, #444 var(--night-blend)); }

  .court-lines {
    color: color-mix(in srgb, #48453c, #e0e0e0 var(--night-blend));
    background: var(--wet-glass), var(--surface-texture), var(--surface-light), linear-gradient(118deg, color-mix(in srgb, #faf9f6, #494949 var(--night-blend)) 6%, color-mix(in srgb, #eae8e2, #2e2e2e var(--night-blend)) 51%, color-mix(in srgb, #cbc8bf, #1a1a1a var(--night-blend)));
    --plane-shadow: inset 0 0 0 4px color-mix(in srgb, #fff8, #ffffff15 var(--night-blend)),
      0 2px 6px #2a2a2b2b, 0 14px 42px color-mix(in srgb, #23222024, #0008 var(--night-blend));
  }
  .court-scene .model-under { background: linear-gradient(122deg, color-mix(in srgb, #e8e7e5, #363636 var(--night-blend)), color-mix(in srgb, #b2b0ac, #1a1a1a var(--night-blend))); }
  .mat-lines {
    color: color-mix(in srgb, #dad8d3, #d4d4d4 var(--night-blend));
    background: var(--wet-glass), var(--surface-texture), var(--surface-light), radial-gradient(circle at 43% 36%, color-mix(in srgb, #69665f, #474747 var(--night-blend)), color-mix(in srgb, #494741, #2d2d2d var(--night-blend)) 57%, color-mix(in srgb, #383732, #1d1d1d var(--night-blend)));
  }
  .mat-scene .model-under { background: linear-gradient(130deg, color-mix(in srgb, #3c3b39, #282828 var(--night-blend)), color-mix(in srgb, #98958f, #414141 var(--night-blend))); }
  .field-lines { background: var(--wet-glass), var(--surface-texture), var(--surface-light), linear-gradient(135deg, color-mix(in srgb, #5b5954, #3c3c3c var(--night-blend)), color-mix(in srgb, #373531, #1b1b1b var(--night-blend))); }
  .reading-scrim { background: linear-gradient(transparent, color-mix(in srgb, #171716db, #101010dc var(--night-blend))); }
  .contact-details {
    border-color: color-mix(in srgb, #d8d5cd, #65656580 var(--night-blend));
    background: linear-gradient(142deg, color-mix(in srgb, #fdfcf9ed, #3b3b3bea var(--night-blend)), color-mix(in srgb, #e9e7dfba, #232323d2 var(--night-blend)));
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff, #ffffff16 var(--night-blend)), 0 15px 36px color-mix(in srgb, #25221915, #0004 var(--night-blend));
  }
  .contact-details::before {
    background: linear-gradient(121deg, transparent 37%, color-mix(in srgb, #ffffffb8, #ffffff21 var(--night-blend)) 49%, transparent 62%);
  }
  .empty-gallery {
    background: radial-gradient(ellipse, color-mix(in srgb, #eeedec, #272727 var(--night-blend)), color-mix(in srgb, #fdfcfb, #191919 var(--night-blend)) 69%);
  }
  .page-scrollbar::before { background: color-mix(in srgb, #85858525, #b4b4b42b var(--night-blend)); }
  .viewer-dim {
    background:
      radial-gradient(ellipse at 4% 32%, color-mix(in srgb, #dedede2b, #d5d5d52c var(--night-blend)), transparent 48%),
      radial-gradient(ellipse at 72% 6%, color-mix(in srgb, #e6e6e60d, #a9a9a91b var(--night-blend)), transparent 48%),
      linear-gradient(113deg, color-mix(in srgb, #262626fa, #212121fa var(--night-blend)), color-mix(in srgb, #1b1b1bfa, #141414fa var(--night-blend)) 54%, color-mix(in srgb, #121212fa, #090909fa var(--night-blend)));
  }
}
