:root {
  color-scheme: dark;
  --paper: #0c141a;
  --ink: #eef3ed;
  --rule: #374348;
  --muted: #b3c4c4;
  --aqua: #9edbd5;
}
.brand-cat img { filter: brightness(0) invert(.94); }
.site-footer span { color: var(--muted); }
.header-inner .contact { border-color: #77898d; }
.skip { color: var(--paper); }
:is(button, a, canvas):focus-visible { outline-color: var(--aqua); }
.play-room {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 78% 52%, #26414c66, transparent 70%),
    linear-gradient(118deg, #101a1e, #101820 62%, #171924);
}
.play-room::before, .play-room::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.play-room::before {
  background: radial-gradient(ellipse 130% 84% at 69% -30%,
    transparent 73%, #8594a008 93%, #a7bcce0c 96%, transparent);
}
.play-room::after { background: url("grain.png"); opacity: .045; }
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, .81fr) minmax(0, 1.19fr);
  align-items: center;
  padding-block: clamp(1.5rem, 3.2vw, 4rem) clamp(1rem, 2vw, 2rem);
}
.play-copy { padding-block: 2rem; z-index: 1; }
.exhibit-nav {
  display: inline-flex;
  padding: 3px;
  margin: 0 0 1.35rem;
  border: 1px solid #758b9580;
  border-radius: 2rem;
  background: #0c171e;
}
.exhibit-nav a {
  display: grid;
  place-items: center;
  padding: .42rem 1rem;
  min-width: 4.1rem;
  min-height: 34px;
  border-radius: inherit;
  font-size: .9rem;
  line-height: 1;
  color: #d0dddb;
}
.exhibit-nav a[aria-current="page"] { background: #d9e4df; color: #162725; }
.exhibit-nav a:not([aria-current]):hover { background: #25383e; }
.play-copy h1 {
  margin-left: -.06em;
  font-size: clamp(4.5rem, 7.9vw, 8.2rem);
  font-weight: 500;
  line-height: .89;
  letter-spacing: -.077em;
}
.play-copy h1 span { color: var(--aqua); }
.play-copy p {
  color: #ccdad9;
  max-width: 21em;
  margin-top: 1.3rem;
  font-size: clamp(1.06rem, 1.47vw, 1.45rem);
  letter-spacing: -.025em;
  line-height: 1.37;
}
.warm-copy, .fur-copy, .calvin-live .poster-copy, .fur-live .poster-copy { display: none; }
.calvin-live .warm-copy, .fur-live .fur-copy { display: inline; }
.save-art {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .7rem;
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
.save-art:hover { color: var(--aqua); }
.artwork-export {
  width: min(27rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(.9rem, 3.5vw, 1.4rem);
  border: 1px solid #738b8e;
  border-radius: 1rem;
  background: #152126;
  color: var(--ink);
  box-shadow: 0 1.5rem 6rem #03080cb3;
  overflow: auto;
  overscroll-behavior: contain;
}
.artwork-export:not([open]) { display: none; }
.artwork-export[open] { display: grid; gap: .9rem; }
.artwork-export::backdrop { background: #060c10d4; }
.export-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.export-heading h2 { font-size: clamp(1.65rem, 4vw, 2.15rem); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; }
.export-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #698084;
  border-radius: 50%;
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.export-proof {
  justify-self: center;
  width: min(100%, 50svh);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #576c70;
  background: radial-gradient(ellipse at 22% 20%, #2b4248, transparent 72%), #101a21;
}
.export-proof img { width: 100%; height: 100%; object-fit: contain; }
.export-proof img:not([src]) { visibility: hidden; }
.export-options { display: grid; align-content: start; gap: .6rem; }
.export-options p { color: #c8d5d4; font-size: .94rem; line-height: 1.4; }
.export-options p:empty, [data-export-hint] { display: none; }
.export-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.export-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem .95rem;
  border: 1px solid #81989a;
  border-radius: 2rem;
  background: transparent;
  font: inherit;
  font-size: .94rem;
  cursor: pointer;
}
.export-actions button, .export-actions button[hidden] + a { color: #102322; background: #dbe6df; border-color: #dbe6df; }
.export-actions > :hover, .export-close:hover { border-color: var(--aqua); }
@media (any-pointer: coarse) {
  .export-ready [data-export-hint] { display: block; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .artwork-export { width: min(38rem, calc(100% - 2rem)); }
  .artwork-export[open] { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: start; }
  .export-proof { grid-row: 1 / 3; width: min(100%, 65svh); align-self: center; }
  .export-heading, .export-options { grid-column: 2; }
}
.calvin-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, clamp(25rem, 44vw, 42rem), 67svh);
  aspect-ratio: 1;
  min-width: 0;
  outline: 1px solid #758b956e;
  outline-offset: -1px;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 17% 8%, #294d5e75, transparent 48%),
    radial-gradient(ellipse at 89% 84%, #30375880, transparent 59%),
    linear-gradient(145deg, #11232d, #09131c 57%, #181d32);
}
.calvin-art::before, .calvin-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* The arcs catch the light like the edge of a disc under a studio lamp. */
.calvin-art::before {
  z-index: -1;
  background:
    radial-gradient(ellipse 173% 95% at 2% -22%, transparent 67%, #538b9312 83%, #77b6c32b 92%, #97d4d961 93%, #5d9fb620 93.6%, transparent 96%),
    radial-gradient(ellipse 135% 91% at 111% 125%, transparent 67%, #737caf22 78%, #aba2d659 81.5%, #969dd227 82%, transparent 84%, #7588ae30 85%, transparent 86%);
}
.calvin-art::after {
  z-index: -1;
  background: url("grain.png");
  opacity: .055;
}
.calvin-poster, #calvin-model, #calvin-fur {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 4px 4px #050b15a1);
}
.calvin-poster { pointer-events: none; }
#calvin-model, #calvin-fur { visibility: hidden; touch-action: none; }
.calvin-live .calvin-art { cursor: grab; }
.calvin-dragging .calvin-art { cursor: grabbing; }
.calvin-live #calvin-model, .fur-live #calvin-fur { visibility: visible; }
.calvin-live .calvin-poster, .fur-live .calvin-poster { visibility: hidden; }
.play-controls {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(1.1rem, 4.5vw, 5rem);
  margin-top: 1.15rem;
  padding-top: .7rem;
  border-top: 1px solid #80939761;
  color: #d1deda;
  font-size: .94rem;
}
.calvin-live .play-controls, .fur-live .play-controls { display: grid; }
.spin-hint, .light-control { display: flex; align-items: center; gap: .8rem; }
.spin-hint { font-size: .87rem; }
.spin-hint .orbit-icon { flex-shrink: 0; }
.calvin-heating .spin-hint .orbit-icon { color: #e6ba7c; }
.calvin-cooling .spin-hint .orbit-icon { color: #beb0d6; }
.light-control { gap: 1.2rem; }
.light-control > span:first-child, .play-reset { white-space: nowrap; }
.calvin-pointer #calvin-model:focus-visible, .fur-pointer #calvin-fur:focus-visible { outline: none; }
.keyboard-cue, .play-room:not(.calvin-pointer, .fur-pointer):has(canvas:focus-visible) .pointer-cue { display: none; }
.play-room:not(.calvin-pointer, .fur-pointer):has(canvas:focus-visible) .keyboard-cue { display: inline; }
.light-scale {
  display: grid;
  align-items: center;
  position: relative;
  width: clamp(7rem, 14vw, 15rem);
  height: 44px;
}
.light-scale::before {
  content: "";
  position: absolute;
  inset: calc(50% + 6px) 8px auto;
  height: 4px;
  background: repeating-linear-gradient(to right, #89a6a4b0 0 1px, transparent 1px 12.5%);
  pointer-events: none;
}
.light-scale input {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
.light-scale input:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.light-scale input::-webkit-slider-runnable-track {
  height: 3px;
  background: #82999b;
  border-radius: 2px;
}
.light-scale input::-moz-range-track { height: 3px; background: #82999b; border-radius: 2px; }
.light-scale input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -8px;
  border-radius: 50%;
  border: 1px solid #405f60;
  box-shadow: 0 1px 2px #27434442;
  background: linear-gradient(155deg, #fff 8%, #bdcece 43%, #6f8b91 55%, #a1b8ba 75%, #e4edeb);
}
.light-scale input::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #405f60;
  background: linear-gradient(155deg, #fff 8%, #bdcece 43%, #6f8b91 55%, #a1b8ba 75%, #e4edeb);
}
.play-reset {
  justify-self: end;
  min-height: 44px;
  padding: 0 .1rem;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  cursor: pointer;
}
.play-reset:hover { color: var(--aqua); }
.fur-room { --aqua: #debea0; }
.fur-room .exhibit-nav a[aria-current="page"] { background: #eee0cd; color: #302820; }
.site-header:has(+ .fur-room) nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: .3em; }
.fur-art {
  background:
    radial-gradient(ellipse at 37% 38%, #38535665, transparent 64%),
    linear-gradient(134deg, #11232a, #1c292a 60%, #272a31);
}
.fur-art::before {
  background:
    radial-gradient(ellipse 145% 104% at 16% -35%, transparent 72%, #9da58d15 82%, #d0c0a738 87%, transparent 88%),
    radial-gradient(ellipse 132% 91% at 115% 131%, transparent 80%, #a5adc71b 85%, transparent 87%);
}
.fur-controls { grid-template-columns: minmax(0, 1fr) auto; }
.fur-live .fur-art { cursor: crosshair; }
.fur-controls .spin-hint { grid-column: 1; }
.brush-glyph {
  flex: none;
  width: 19px;
  height: 14px;
  transform: skew(-19deg);
  border-radius: 0 0 45% 0;
  background: repeating-linear-gradient(90deg, #d9c5ac 0 1px, transparent 1px 5px);
}
@media (max-width: 660px) and (orientation: portrait) {
  .play-layout { grid-template-columns: 1fr; padding-top: 2.15rem; }
  .play-copy { padding: 0; }
  .exhibit-nav { margin-bottom: .95rem; }
  .play-copy h1 { font-size: clamp(3rem, 10.5vw, 4.15rem); line-height: 1; }
  .play-copy h1 br { display: none; }
  .play-copy p { margin-top: .7rem; }
  .save-art { margin-top: .1rem; }
  .calvin-art { width: min(100%, 26rem); margin-top: .55rem; }
  .play-controls { grid-template-columns: 1fr auto; gap: 0 1rem; margin-top: .95rem; }
  .spin-hint { grid-column: 1 / -1; margin: .15rem 0 .2rem; }
  .light-control { gap: .7rem; }
  .light-scale { width: min(22vw, 8rem); }
}
@media (orientation: landscape) and (max-height: 540px) {
  .site-header:has(+ .play-room) .header-inner { min-height: 53px; }
  .play-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding-block: .6rem .4rem; }
  .play-copy { padding-block: .25rem; }
  .exhibit-nav { margin-bottom: .55rem; padding: 2px; }
  .exhibit-nav a { min-height: 32px; }
  .play-copy h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
  .play-copy h1 br { display: none; }
  .play-copy p { margin-top: .65rem; font-size: 1rem; }
  .save-art { margin-top: 0; }
  .calvin-art { width: min(100%, clamp(11rem, 61svh, 20rem)); }
  .play-controls { padding-top: .1rem; margin-top: .3rem; gap: 1rem; }
}
@media (min-width: 1500px) and (min-aspect-ratio: 2/1) {
  .calvin-art { width: min(100%, 68svh); }
}
