*{box-sizing:border-box}html{color-scheme:dark;--ink:#f0efea;--muted:#b6b7b5;--line:rgba(224,225,224,.22);--panel:#191a1a;--field:#000}html[data-theme=light]{color-scheme:light;--ink:#202222;--muted:#4e5353;--line:rgba(24,26,27,.22);--panel:#dedfdc;--field:#fff}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--field);color:var(--ink);font-family:var(--brand-type);-webkit-font-smoothing:antialiased}button,a{color:inherit;font:inherit;-webkit-tap-highlight-color:transparent}button{border:0;padding:0;background:none;cursor:pointer}a{text-decoration:none}button:focus-visible,a:focus-visible{outline:1px solid currentColor;outline-offset:5px}#space,#intromount{position:fixed;inset:0}#space{z-index:0}#gallery{display:block;width:100%;height:100%;touch-action:none}#gallery:focus{outline:none}#intromount{z-index:1}#intromount:empty{display:none}
.mast,.controls{position:fixed;left:max(32px,env(safe-area-inset-left));right:max(32px,env(safe-area-inset-right));z-index:5;pointer-events:none;display:flex;align-items:center;justify-content:space-between;color:var(--ink)}.mast{top:max(24px,env(safe-area-inset-top))}.mast button,.mast nav,.controls button{pointer-events:auto}.mast .wordmark{min-height:41px}.mast nav{display:flex;gap:26px;align-items:center}.nav-button,.text-close,.index-footer>*{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;letter-spacing:normal;min-height:41px}.nav-button:hover,.text-close:hover,.index-footer>*:hover{opacity:.7}.index-glyph{display:grid;grid-template-columns:repeat(2,3px);gap:2px}.index-glyph i{width:3px;height:3px;display:block;background:currentColor}.theme-glyph{width:12px;height:12px;border-radius:100%;border:1px solid currentColor;background:linear-gradient(90deg,currentColor 50%,transparent 50%)}
.controls{bottom:max(23px,env(safe-area-inset-bottom));gap:20px;font-size:12px;line-height:1.4;letter-spacing:normal}.controls[hidden]{display:none}.instructions{color:var(--ink)}.instructions b{font-weight:400;opacity:.6;margin:0 5px}.touch{display:none}.position{display:flex;gap:16px;align-items:center}.count,.meta{font-weight:400;font-size:11px;letter-spacing:normal;font-variant-numeric:tabular-nums}.count{opacity:.78}.meta{color:var(--muted)}
dialog{padding:0;background:var(--panel);color:var(--ink);border:0;}dialog::backdrop{background:rgba(10,10,10,.66)}#archive{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0}
#archive[open]{display:flex;flex-direction:column}.sheet-header,.index-footer{display:flex;align-items:center;justify-content:space-between}.sheet-header,.index-footer{margin:0 clamp(22px,5vw,78px)}.sheet-header{flex:none;padding:clamp(24px,5vh,58px) 0 18px;border-bottom:1px solid var(--line)}.sheet-header>div{display:flex;gap:18px;align-items:baseline}h1{margin:0;font-size:clamp(32px,5vw,69px);font-weight:400;line-height:1;letter-spacing:normal}.text-close span{font-size:25px;font-weight:300;line-height:.75}.index-body{overflow:auto;overscroll-behavior:contain;flex:1;padding:3px clamp(22px,5vw,78px) 30px}.index-section{padding:24px 0 22px;border-bottom:1px solid var(--line)}.index-section h2{margin:0 0 12px;font-size:16px;font-weight:400;letter-spacing:normal}.index-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(6px,1.5vw,22px)}.index-print{display:grid;grid-template-rows:1fr auto;justify-items:start;gap:6px;min-width:0;font:400 11px/1.4 var(--brand-type)}.index-print img{width:100%;height:clamp(90px,15vh,145px);object-fit:contain;object-position:left bottom}.index-print img{filter:grayscale(1);transition:filter .22s ease}.index-print:is(:hover,:focus-visible) img{filter:grayscale(0)}.index-footer{padding:8px 0 max(8px,env(safe-area-inset-bottom));font-size:13px}.index-footer>*{font-size:13px}
.no-script{position:fixed;top:40%;left:12%;z-index:30}.no-script a{text-decoration:underline}
@media(pointer:coarse){.desktop{display:none}.touch{display:inline}}
@media(max-width:670px){.mast,.controls{left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}.mast{top:max(12px,env(safe-area-inset-top))}.mast nav{gap:14px}.nav-button{font-size:13px}.controls{bottom:max(16px,env(safe-area-inset-bottom));font-size:10px;gap:5px}.position{gap:7px}.position .count{font-size:9px}.instructions b{margin:0 2px}.index-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:15px}.index-print img{height:110px}.index-section{padding:18px 0}.sheet-header{padding-top:24px}}
@media(max-width:450px) and (pointer:fine){.desktop{max-width:170px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
body[data-screen="gallery"] .mast{color:#fff;mix-blend-mode:difference}

body[data-screen="intro"] #space{visibility:hidden}
body:has(#intromount:is([data-intro-phase="cover"],[data-intro-phase="reel"])) .mast{color:white;text-shadow:0 1px 3px rgba(0,0,0,.8)}
body:has(#intromount:is([data-intro-phase="reveal"], [data-intro-phase="film"])) .mast{color:white;mix-blend-mode:difference}
body[data-screen="gallery"] .controls{mix-blend-mode:difference;color:#fff}
body[data-screen="gallery"] .instructions{color:inherit}
@media(prefers-reduced-motion:reduce){.index-print img{transition:none}}

.nav-button,.text-close,.index-footer,.index-section h2,.cindy-intro__gate,.cindy-intro__cue,.position,#archive-title { text-transform: uppercase; }
.index-signature { margin: clamp(20px,4vh,40px) clamp(22px,5vw,78px) 0; }
#archive .sheet-header { padding-top:12px; }
.mast nav { gap: 2px; }
.mast {
  --mast-top: max(24px, env(safe-area-inset-top));
  top: var(--mast-top);
  justify-content: flex-end;
}
#replay {
  position: absolute; left: 0; top: 50%;
  transform: translate(0,-50%);
  line-height: 1.2;
  transition: transform 480ms cubic-bezier(.16,.7,.24,1), opacity 280ms ease-out;
}
body[data-screen="intro"]:has(#intromount:not([data-intro-phase="reveal"], [data-intro-phase="film"], [data-intro-phase="gate"])) #replay {
  visibility: hidden;
  transform: translateY(calc(-100% - var(--mast-top) - 12px));
  opacity: 0;
  pointer-events: none;
  transition: none;
}
@media (max-width:670px) {
  .mast { --mast-top: max(12px,env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion:reduce) { #replay { transition:none; } }
.nav-icon { width: 44px; height: 44px; position: relative; }
body[data-screen="intro"]:not(.intro-music) .mast .sound-toggle { display: none; }
.sound-wave { display:inline-flex; align-items:center; justify-content:center; gap:2px; width:20px; height:18px; }
.sound-wave i { width:2px; height:3px; background:currentColor; border-radius:2px; }
.sound-toggle[aria-pressed="true"] i { height:var(--bar,8px); animation:sound-wave .85s ease-in-out infinite alternate; }
.sound-wave i:nth-child(2) { --bar:14px; animation-delay:-.58s; }
.sound-wave i:nth-child(3) { --bar:17px; animation-delay:-.2s; }
.sound-wave i:nth-child(4) { --bar:11px; animation-delay:-.76s; }
.sound-wave i:nth-child(5) { --bar:6px; animation-delay:-.32s; }
@keyframes sound-wave { from {transform:scaleY(.4)} to {transform:scaleY(1)} }
@media (prefers-reduced-motion:reduce) { .sound-toggle[aria-pressed="true"] i { animation:none; } }
.nav-icon > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-button#theme { margin-inline-start: 10px; }
.nav-tip {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  font-size: 11px; line-height: 1.4; pointer-events: none; opacity: 0;
}
.nav-icon:focus-visible .nav-tip { opacity: 1; }
@media (hover:hover) { .nav-icon:hover .nav-tip { opacity: 1; } }
body:has(#contact-links:popover-open) #contact-open .nav-tip { opacity: 0; }
#contact-links {
  position: fixed; inset: auto; top: calc(max(24px, env(safe-area-inset-top)) + 51px);
  right: max(32px, env(safe-area-inset-right)); margin: 0; padding: 5px 15px;
  width: 176px; max-width: calc(100vw - 36px); border: 1px solid var(--line);
  color: var(--ink); background: var(--panel); box-shadow: 0 5px 18px #0002;
}
#contact-links a {
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
  font-size: 13px; text-transform: uppercase;
}
#contact-links a + a { border-top: 1px solid var(--line); }
.link-arrow { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; }
#contact-links .link-arrow { color: var(--muted); }
#contact-links a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width:670px) {
  .nav-button#theme { margin-inline-start: 4px; }
  #contact-links { top: calc(max(12px,env(safe-area-inset-top)) + 50px); right: max(18px, env(safe-area-inset-right)); }
}

@media (any-hover:hover) and (any-pointer:fine) and (forced-colors:none) {
  :root { --ring-cursor: url("./brand/cursor-ring.svg") 8 8, auto; }
  html, body, button, a, .cindy-intro button, dialog, [popover], dialog::backdrop { cursor: var(--ring-cursor); }
}

.gallery-caption { display: grid; justify-items: start; gap: 3px; }
.site-credit { font-size: 10px; line-height: 1.4; color: #c7c7c7; }
.site-credit a { pointer-events: auto; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-credit a:is(:hover,:focus-visible) { text-decoration-thickness: 2px; }
@media (pointer:coarse) {
  .site-credit a { display: inline-flex; align-items: center; min-height: 24px; }
}

.hold-hint { display: none; }
@media (max-width:670px) and (orientation:portrait) {
  .touch .hold-hint { display:inline; }
  .touch .swipe-hint { display:none; }
}

#archive-viewer {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: max(12px, env(safe-area-inset-top)) max(20px, 4vw, env(safe-area-inset-right))
           max(20px, 4vh, env(safe-area-inset-bottom)) max(20px, 4vw, env(safe-area-inset-left));
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pinch-zoom;
}
#archive-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
#archive-viewer::backdrop {
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  opacity: 1;
  transition: opacity 760ms ease;
}
#archive-viewer form {
  margin: 0;
  justify-self: end;
  position: relative;
  z-index: 1;
  transition: opacity 380ms ease;
}
#archive-viewer .text-close { min-height: 44px; }
.archive-photo-stage { display: grid; place-items: center; container-type: size; }
.archive-photo-frame {
  width: min(100cqw, calc(100cqh * var(--photo-aspect)));
  aspect-ratio: var(--photo-aspect);
}
.archive-photo-surface {
  width: 100%;
  height: 100%;
  transform-origin: top left;
  transform: translate(0, 0) scale(1);
  filter: grayscale(0);
  transition: transform 920ms cubic-bezier(.28, .05, .18, 1), filter 650ms ease;
}
.archive-photo-surface img { display: block; width: 100%; height: 100%; object-fit: contain; }
.index-print[data-viewing] img { visibility: hidden; }
#archive-viewer[data-at-thumbnail] .archive-photo-surface {
  transform: translate(var(--from-x, 0px), var(--from-y, 0px)) scale(var(--from-scale-x, 1), var(--from-scale-y, 1));
  filter: var(--from-filter, grayscale(1));
  transition-duration: 680ms, 500ms;
}
#archive-viewer[data-at-thumbnail]::backdrop,
#archive-viewer[data-at-thumbnail] form { opacity: 0; transition-duration: 500ms; }
#archive-viewer[data-placing]::backdrop,
#archive-viewer[data-placing] form,
#archive-viewer[data-placing] .archive-photo-surface { transition: none; }
@media (prefers-reduced-motion: reduce) {
  #archive-viewer::backdrop, #archive-viewer form, #archive-viewer .archive-photo-surface { transition: none; }
}
