:root {
  color-scheme: dark;
  --canvas: #101517;
  --paper: #f5eedf;
  --gutter: clamp(16px, 4vw, 62px);
  --section-height: 100svh;
  font-family: system-ui, sans-serif;
  background: var(--canvas);
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.site-title {
  position: absolute;
  z-index: 1;
  inset: clamp(24px, 5vh, 48px) auto auto calc(var(--gutter) + clamp(20px, 5vw, 84px));
  margin: 0;
  font: 600 1rem/1 system-ui, sans-serif;
  letter-spacing: .01em;
}
main { overflow: clip; }
.zone {
  min-block-size: var(--section-height);
  display: grid;
  align-items: center;
  padding: 14px var(--gutter);
  scroll-margin: 20px;
}
.room {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.45fr);
  grid-template-areas: "details media";
  align-items: center;
  gap: clamp(18px, 4.3vw, 76px);
  min-block-size: calc(var(--section-height) - 28px);
  padding: clamp(30px, 5vw, 84px);
  border: 1px solid color-mix(in srgb, var(--accent) 27%, transparent);
  border-radius: clamp(16px, 3vw, 42px);
  background:
    radial-gradient(ellipse at var(--light, 76% 35%), var(--wash), transparent 72%),
    var(--base);
  color: var(--ink, var(--paper));
}
.zone:first-of-type .room { padding-block-start: clamp(88px, 13vh, 125px); }
[data-layout="rooms"] .room {
  transform-origin: center var(--room-edge, center);
  transform: translate3d(0, var(--room-shift, 0px), 0) scale(var(--room-scale, 1));
}
[data-layout="rooms"] .room > * {
  transform: translate3d(0, var(--content-shift, 0px), 0);
}
.details { grid-area: details; min-width: 0; }
h2 {
  margin: 0;
  font: 400 clamp(48px, 6.8vw, 115px)/.92 Georgia, serif;
  letter-spacing: -.073em;
  text-wrap: balance;
}
.wacky h2 { font-size: clamp(43px, 4.5vw, 81px); }
.marquee h2 { font-style: italic; font-weight: 400; }
.jeg h2 { font-size: clamp(70px, 10vw, 160px); }
.requirements {
  margin: clamp(18px, 3vh, 28px) 0 0;
  color: var(--ink, var(--paper));
  font-size: clamp(.813rem, 1.18vw, .975rem);
  line-height: 1.55;
}
.download {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: max-content;
  min-block-size: 54px;
  margin: clamp(19px, 3.5vh, 33px) 0 0;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--accent);
  color: var(--button-ink, #111619);
  font: 650 .925rem/1 system-ui, sans-serif;
  text-decoration: none;
}
a.download:hover { filter: brightness(1.1); }
.download:disabled {
  background: transparent;
  border-color: color-mix(in srgb, currentColor 40%, transparent);
  color: var(--ink, var(--paper));
  opacity: .66;
}
:focus-visible { outline: 3px solid var(--ink, var(--paper)); outline-offset: 5px; }
.media {
  grid-area: media;
  position: relative;
  margin: 0;
  min-width: 0;
  isolation: isolate;
}
.media-surface {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: clamp(10px, 1.35vw, 22px);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: 0 24px 55px -32px #000b;
  background: var(--mat, #25333a);
}
video { display: block; width: 100%; height: 100%; object-fit: contain; }
.playback {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff;
  background: #11191af2;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  cursor: pointer;
}
.playback[hidden] { display: none; }
.playback::before {
  content: "";
  margin-left: 3px;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
}
.playback[aria-label="Pause demo"]::before {
  width: 4px;
  height: 12px;
  margin: 0;
  padding-inline: 2px;
  border: 0;
  border-inline: 2px solid currentColor;
}
.typing {
  /* Wada 243. Slate and olive behind the published media, ivory on controls. */
  --base: #172329; --wash: #34454c; --accent: #ebd3a2; --mat: #25333a;
  --light: 71% 40%;
}
.wacky {
  /* Wada 253. Purple field and citrus accents. */
  --base: #2a122d; --wash: #501345; --accent: #f8ed43;
  --mat: #3d173c; --light: 74% 67%;
}
.turnkey {
  /* Wada 263. Sienna copper set into a deep slate field. */
  --base: #15242a; --wash: #34454c; --accent: #eeb480; --mat: #1b2c32;
}
.mouse {
  /* Wada 202. Mint and cobalt green optics. */
  --base: #142828; --wash: #27504c; --accent: #b5decc; --mat: #172e30;
}
.marquee {
  /* Wada 344. Black and deep blue, with amber light. */
  --base: #111314; --wash: #1c3260; --accent: #fdc57e; --mat: #111722;
}
.jeg {
  /* Wada 248. Cool lavender and dusty pink against plum. */
  --base: #231c30; --wash: #704357; --accent: #b5b1d8; --mat: #32243f;
}
.toilet {
  /* Wada 296. Pale glaze and a slate shadow. */
  --base: #ded3af; --wash: #f5ecc2; --accent: #34454c; --mat: #d5c8a2;
  --ink: #26363c; --button-ink: #f5eedf;
}
.placeholder::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, #fff1, transparent 35%, #0002);
  pointer-events: none;
}
.wacky .placeholder {
  background:
    radial-gradient(ellipse at 65% 140%, #f8ed4370, transparent 49%),
    repeating-linear-gradient(119deg, #f68c5000 0 12%, #f68c5040 13% 17%, #f68c5000 19% 24%),
    radial-gradient(ellipse at 47% 87%, #a33a4e, #3d173c 74%);
}
.turnkey .placeholder {
  background:
    radial-gradient(ellipse 25% 90% at 72% 56%, #ae522453, transparent),
    repeating-linear-gradient(90deg, transparent 0 10%, #eeb48050 10.15% 10.3%, #111c22b0 10.4% 11%, transparent 12% 13%),
    linear-gradient(124deg, #17242c 15%, #34454c 52%, #192b32 90%);
}
.mouse .placeholder {
  background:
    radial-gradient(circle at 72% 42%, #b5decc90, transparent 9%),
    repeating-radial-gradient(ellipse at 72% 42%, #96d1aa28 0 1px, transparent 2px 9%),
    radial-gradient(ellipse at 72% 42%, #27504c, #162225 70%);
}
.marquee .placeholder {
  background:
    radial-gradient(circle, #fdc57e85 0 12%, transparent 21%) 0 0 / 17px 17px,
    radial-gradient(ellipse at 28% 30%, #a46c3e 0, #211d25 32%, #151c2e 63%, #111314);
}
.jeg .placeholder {
  background:
    radial-gradient(ellipse 28% 120% at 62% 110%, #f37f9480, transparent 63%),
    radial-gradient(ellipse 65% 82% at 70% 101%, #b5b1d84d 0 49%, #b5b1d863 50%, transparent 51%),
    radial-gradient(ellipse 115% 110% at 28% 102%, #704357 2%, #32243f 71%, #231c30);
}
.toilet .placeholder {
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, #34454c28 15px, #fff4 16px),
    repeating-linear-gradient(90deg, transparent 0 53px, #34454c28 54px, #fff4 55px),
    radial-gradient(ellipse 75% 115% at 53% 10%, #f5ecc2, #d8a37b 105%);
}
@media (max-width: 740px) {
  :root { --gutter: clamp(12px, 4vw, 30px); }
  .site-title { inset-block-start: 29px; inset-inline-start: calc(var(--gutter) + 23px); }
  .zone { padding-block: 8px; }
  .room {
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "details" "media";
    gap: clamp(26px, 5svh, 56px);
  }
  .room {
    min-block-size: calc(var(--section-height) - 16px);
    padding: clamp(23px, 5.2vw, 40px);
  }
  .zone:first-of-type .room { padding-block-start: 76px; }
  h2 { font-size: clamp(47px, 11.6vw, 81px); }
  .wacky h2 { font-size: clamp(44px, 10.2vw, 76px); }
  .jeg h2 { font-size: clamp(64px, 16vw, 108px); }
  .requirements { margin-top: 15px; }
  .download { margin-top: 20px; }
  .playback { right: 7px; bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-layout] .room, [data-layout] .room > * { transform: none; }
}
@media (forced-colors: active) {
  .download, .playback { border: 1px solid ButtonText; }
  .download:disabled { opacity: 1; color: GrayText; border-color: GrayText; }
}
[data-layout] .zone:has(:focus-visible) .room,
[data-layout] .zone:has(:focus-visible) .room > * { transform: none; }

.sound-control { right: 72px; }
.sound-control::before, .sound-control[aria-pressed="true"]::before {
  content: "♪";
  margin: 0;
  border: 0;
  width: auto;
  height: auto;
  font: 23px/1 system-ui, sans-serif;
}
.sound-control[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 1px #11191a;
}
@media (max-width: 740px) { .sound-control { right: 66px; } }
