/* Nelavanka, a sample site. One stylesheet, never minified: a minifier folds animation-timeline
   into the animation shorthand and breaks the scroll animations (the Sinocare lesson), so every
   animation here is written in longhands. Tokens and dials from APPROACH.md section 1. */

/* Public Sans, latin plus the rupee sign in one file, weights 300 to 500 (the Geist swap of
   2026-09-27: Geist set cramped at 15 to 18px; this is the closest free face to SF Pro). */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bone: #F3EFE7;
  --ink: #1E1A16;
  --mid: #7A7169;   /* 4.2:1 on bone: large type and rules only, never small text */
  --line: #DCD5C9;
  --brass: #9C7A3C; /* 3.5:1 on bone: rings, the active chip's border, the sheet price at 28px */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: 16px;      /* page gutter */
  --gap: 24px;      /* grid gutter */
  --bar: 56px;      /* the fixed bar: bottom of the screen on a phone, top from 600px */
  --space: 72px;    /* between screens */
}
@media (min-width: 600px) {
  :root { --gut: 24px; --bar: 64px; --space: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding-block-end: var(--bar);
}
/* Paper grain: ink-tinted noise, one fixed layer over everything but the sheet, so bone reads as paper */
body::before {
  content: "";
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .118 0 0 0 0 .102 0 0 0 0 .086 2 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-transparency: reduce) { body::before { content: none; } }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
p, figure, ul { margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
main > section, main > .visit { margin-block-start: var(--space); }
main > .hero:first-child { margin-block-start: 0; }
.head { display: grid; gap: 14px; max-width: 620px; margin-block-end: 32px; }
.head p { font-size: 18px; font-weight: 300; line-height: 1.45; text-wrap: pretty; }
.small { font-size: 15px; }

@media (min-width: 600px) {
  body { padding-block-end: 0; }
  main { padding-block-start: var(--bar); }
  main > .hero:first-child { margin-block-start: calc(-1 * var(--bar)); }
  html { scroll-padding-block-start: calc(var(--bar) + 64px); }
}

/* ---- the bar: the name in the serif, one WhatsApp button in ink ---- */
.bar {
  position: fixed;
  z-index: 20;
  inset-inline: 0;
  inset-block-end: 0;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gut);
  background: var(--bone);
  border-block-start: 1px solid var(--line);
}
/* the bar as glass where the browser blurs: the room shows through as it scrolls under */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar { background: rgb(243 239 231 / 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--bone); } }
@media (min-width: 600px) {
  .bar { inset-block-end: auto; inset-block-start: 0; border-block-start: 0; border-block-end: 1px solid var(--line); }
}
.name { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--serif); font-size: 28px; line-height: 1; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--bone);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition-property: background-color, border-color, color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { background: #3A332C; border-color: #3A332C; }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }

/* ---- heroes: a photograph under a solid bone card, no gradient ---- */
.hero { position: relative; }
.room-hero { height: 100vh; height: 100svh; min-height: 480px; }
.room-hero .room { position: absolute; inset: 0; }
.still > picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  inset-block-end: var(--bar);
  display: grid;
  gap: 6px;
  padding: 16px var(--gut) 14px;
  background: var(--bone);
}
.card h1 { font-size: 44px; }
.card p { font-size: 15px; line-height: 1.4; }
.still .card { position: static; padding-block: 20px 0; gap: 10px; }
.hint { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hint-dot { flex: none; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px var(--brass); }
@media (min-width: 600px) {
  .still { height: 100vh; height: 100svh; min-height: 560px; }
  .still > picture { position: absolute; inset: 0; }
  .still > picture img { height: 100%; aspect-ratio: auto; }
  .card, .still .card { position: absolute; inset-inline: 24px auto; inset-block-end: 24px; width: clamp(360px, 34vw, 440px); padding: 24px; gap: 10px; }
  .card h1 { font-size: clamp(48px, 5.6vw, 72px); letter-spacing: -0.015em; }
  .card p { font-size: 16px; }
}

/* ---- the room: dots placed by CSS on the object-fit: cover crop, JavaScript off or on.
   --a is the image's width over height; --rw and --rh the size it renders at inside the box;
   build.js writes each dot's --x --y (landscape) and --mx --my (portrait), in percent. ---- */
.room { position: relative; overflow: hidden; container-type: size; --a: 1.5; }
.room picture, .room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room.port { --a: 0.5625; }
.dot {
  --px: var(--x);
  --py: var(--y);
  --rw: max(100cqw, 100cqh * var(--a));
  --rh: max(100cqh, 100cqw / var(--a));
  position: absolute;
  z-index: 2;
  inset-inline-start: calc((100cqw - var(--rw)) / 2 + var(--px) * var(--rw) / 100 - 24px);
  inset-block-start: calc((100cqh - var(--rh)) / 2 + var(--py) * var(--rh) / 100 - 24px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.port .dot { --px: var(--mx); --py: var(--my); }
@media (max-width: 599px) {
  .room-hero .room { --a: 0.5625; }
  .room-hero .dot { --px: var(--mx); --py: var(--my); }
  .room-hero .dot:not([data-mx]) { display: none; }
}
.dot::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--brass), 0 1px 8px rgb(30 26 22 / 0.45);
  transition: background-color 200ms ease-out;
}
.dot:hover::before, .dot.on::before, .dot[aria-expanded="true"]::before { background: var(--brass); }
.dot:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* ---- home 2: three rooms, three columns; on a phone one room a screen, snapping ---- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.rooms .room { aspect-ratio: 2 / 3; }
.room-label {
  position: absolute;
  z-index: 3;
  inset-inline-start: var(--gut);
  inset-block-end: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px 6px;
  background: var(--bone);
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
@media (max-width: 599px) {
  .rooms { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .rooms .room { flex: 0 0 100vw; height: 100vh; height: 100svh; aspect-ratio: auto; scroll-snap-align: start; }
  .rooms .room-label { inset-block-end: calc(var(--bar) + 16px); }
}

/* ---- horizontal rows: three columns, or a snapping row on a phone ---- */
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 599px) {
  .row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .row > * { flex: 0 0 82vw; scroll-snap-align: start; }
}
figcaption { margin-block-start: 10px; font-size: 15px; }

/* ---- home 3: the craft ---- */
.craft { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.craft .head { grid-column: 1 / -1; }
.craft img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .craft { grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: end; }
  .craft .head { grid-column: auto; margin-block-end: 0; padding-inline-end: 24px; }
}

/* ---- home 5: four facts under four drawn icons ---- */
.promises { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
.promises li { display: grid; gap: 14px; align-content: start; padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: 17px; line-height: 1.3; }
.promises svg { width: 32px; height: 32px; }
@media (min-width: 900px) {
  .promises { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .promises li { font-size: 20px; }
}

/* ---- visit: the map and the facts ---- */
.visit { display: grid; gap: 28px; }
.map { display: block; }
.map img { width: 100%; }
.facts { display: grid; gap: 28px; align-content: end; }
.facts section { display: grid; gap: 10px; }
.facts p { font-size: 18px; font-weight: 300; line-height: 1.45; }
.facts .actions { margin-block-start: 8px; }
main.top .facts h2 { font-size: 32px; }
@media (min-width: 900px) {
  .visit { grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
}

/* ---- the collection: chips, groups headed by their room, tiles ---- */
@media (max-width: 599px) {
  main.top { padding-block-start: 8px; }
}
.chips-bar { position: sticky; z-index: 10; inset-block-start: 0; background: var(--bone); }
main > .chips-bar { margin-block-start: 0; }
@media (min-width: 600px) {
  .chips-bar { inset-block-start: var(--bar); }
}
.chips { display: flex; gap: 8px; max-width: 1280px; margin-inline: auto; padding: 12px var(--gut); overflow-x: auto; scrollbar-width: none; }
.chips a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  transition-property: border-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.chips a:hover { border-color: var(--ink); }
.chips a.on, .chips a[aria-current="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
main > .groups { margin-block-start: 12px; }
.group { scroll-margin-block-start: 68px; }
.group + .group { margin-block-start: 72px; }
.group[hidden] + .group { margin-block-start: 0; } /* js/filter.js shows one group at a time */
.band { position: relative; margin-block-end: 28px; }
.band img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.band-label {
  position: absolute;
  inset-inline-start: var(--gut);
  inset-block-end: 16px;
  padding: 8px 12px 6px;
  background: var(--bone);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
}
.tiles {
  list-style: none;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 12px;
}
.tile a { display: grid; gap: 2px; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-block-end: 10px; }
.tile-name { font-size: 15px; line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 160ms ease-out; }
.tile-price { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile a:hover .tile-name { text-decoration-color: currentColor; }
.tile { scroll-margin-block-start: 140px; }
.under { max-width: 620px; font-size: 18px; font-weight: 300; line-height: 1.45; }
@media (min-width: 600px) {
  .band img { aspect-ratio: 21 / 9; }
  .band-label { inset-inline-start: 24px; inset-block-end: 24px; font-size: 36px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 44px var(--gap); margin-block-end: 56px; }
  .tile-name, .tile-price { font-size: 16px; }
}

/* ---- made to measure ---- */
.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px var(--gap); }
.swatches img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swatches span { display: block; margin-block-start: 10px; font-size: 15px; }
@media (max-width: 599px) {
  .swatches {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .swatches li { flex: 0 0 38vw; scroll-snap-align: start; }
}
.prices { list-style: none; padding: 0; max-width: 620px; margin-block-end: 20px; border-block-start: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-block-end: 1px solid var(--line); font-size: 18px; font-weight: 300; }
.prices [data-price] { font-weight: 500; font-variant-numeric: tabular-nums; }
.start { display: grid; gap: 28px; }
.start img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.start .head { margin-block-end: 0; gap: 18px; }
@media (min-width: 900px) {
  .start { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .start picture { max-width: 480px; }
}

/* ---- the showroom page ---- */
.quad { display: grid; gap: 28px var(--gap); }
.quad img, .door img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 600px) {
  .quad { grid-template-columns: 1fr 1fr; }
  .pair { gap: var(--gap); max-width: 960px; }
}
/* the workshop on ink, the one dark band on the site: bone type, the craft on a gallery wall */
main > .ink {
  max-width: none;
  padding-block: var(--space);
  padding-inline: max(var(--gut), calc((100% - 1280px) / 2 + var(--gut)));
  background: var(--ink);
  color: var(--bone);
}
.ink :focus-visible { outline-color: var(--bone); }
.door figcaption { margin-block-start: 14px; font-size: 18px; font-weight: 300; }

/* ---- privacy ---- */
.prose { max-width: 680px; padding-block-start: 48px; }
.prose section + section { margin-block-start: 20px; }
.prose h1 { margin-block-end: 20px; }
.prose p { font-size: 18px; font-weight: 300; line-height: 1.5; }

/* ---- the footer, with "sample site" on every page ---- */
.foot {
  max-width: 1280px;
  margin: var(--space) auto 0;
  padding: 28px var(--gut) 40px;
  border-block-start: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 16px; }
.foot nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
/* a 48px tap area around a link inside a sentence; the line box and the words do not move */
.foot p a, .prose a { padding: 15px 2px; margin-inline: -2px; }
.foot nav span { color: var(--mid); }
.foot-name { font-family: var(--serif); font-size: 18px; }

/* ---- the sheet: a <dialog> that slides up over a scrim (filled by js/sheet.js).
   Inside: .sheet-img (a picture), .sheet-body with .sheet-name, .sheet-meta (a dl of wood and
   size), .sheet-price, .sheet-note, .sheet-actions (the button and the floor link), and a
   .sheet-close button. Absent with JavaScript off: the tiles and dots are plain links. ---- */
.sheet {
  width: 100vw;
  max-width: 880px;
  max-height: 92vh;
  max-height: 92svh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 4px 4px 0 0;
  background: var(--bone);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet[open] {
  display: grid;
  animation-name: rise;
  animation-duration: 320ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet::backdrop { background: rgb(30 26 22 / 0.55); }
.sheet[open]::backdrop { animation-name: fade; animation-duration: 320ms; animation-timing-function: ease-out; }
.sheet-img img { width: 100%; max-height: 46vh; max-height: 46svh; object-fit: contain; }
.sheet-body { position: relative; display: grid; gap: 12px; align-content: start; padding: 20px var(--gut) 28px; }
.sheet-name { font-family: var(--serif); font-size: 36px; line-height: 1.02; margin: 0; }
.sheet-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; font-size: 15px; }
.sheet-meta dd { margin: 0; }
.sheet-price { font-size: 28px; color: var(--brass); font-variant-numeric: tabular-nums; }
.sheet-note { font-size: 15px; line-height: 1.45; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-block-start: 8px; }
.sheet-close {
  position: absolute;
  z-index: 2;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--bone);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 900px) {
  .sheet { margin-block-end: auto; border-radius: 4px; box-shadow: 0 24px 64px rgb(30 26 22 / 0.3); }
  .sheet[open] { grid-template-columns: 1fr 1fr; }
  .sheet-img img { max-height: none; height: 100%; object-fit: cover; }
  .sheet-body { padding: 48px 40px 40px; align-content: center; }
  .sheet-name { font-size: 44px; }
}

/* ---- motion: nothing loops, nothing on a timer; reduced motion turns every bit of it off ---- */
@keyframes up { from { opacity: 0; translate: 0 12px; } }
@keyframes pop { from { scale: 0; } }
@keyframes rise { from { translate: 0 100vh; } }
@keyframes fade { from { opacity: 0; } }

/* The one entrance, on every page with a hero: the photograph is there, the card rises at 80ms,
   and on Home the room's dots follow from 320ms (--o below). CSS alone, so it runs with JavaScript off. */
.card {
  animation-name: up;
  animation-duration: 400ms;
  animation-delay: 80ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
}

/* Tiles fade up as they enter: a scroll timeline where supported ... */
@supports (animation-timeline: view()) {
  .tile {
    animation-name: up;
    animation-duration: auto;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range-start: entry 0%;
    animation-range-end: entry 40%;
  }
}
/* ... and a class that js/motion.js adds where not (html.js set, .in added on entry). */
@supports not (animation-timeline: view()) {
  .js .tile:not(.in) { opacity: 0; translate: 0 12px; }
  .js .tile { transition: opacity 300ms ease-out, translate 300ms ease-out; }
  /* a row arrives as one reveal: 0, 60, 120, 180ms across it */
  .js .tile:nth-child(2n) { transition-delay: 60ms; }
  @media (min-width: 600px) {
    .js .tile:nth-child(4n+2) { transition-delay: 60ms; }
    .js .tile:nth-child(4n+3) { transition-delay: 120ms; }
    .js .tile:nth-child(4n) { transition-delay: 180ms; }
  }
}
/* Dots scale in once, 400ms, 80ms apart, when js/motion.js marks the room .seen. */
.js .room .dot::before { scale: 0; }
.js .room.seen .dot::before {
  scale: 1;
  animation-name: pop;
  animation-duration: 400ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  animation-delay: calc(var(--o, 0ms) + var(--d, 0ms));
}
.room-hero { --o: 320ms; } /* after the card */
.dot:nth-of-type(2) { --d: 80ms; }
.dot:nth-of-type(3) { --d: 160ms; }
.dot:nth-of-type(4) { --d: 240ms; }
.dot:nth-of-type(5) { --d: 320ms; }
.dot:nth-of-type(6) { --d: 400ms; }
.dot:nth-of-type(7) { --d: 480ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { animation: none !important; transition: none !important; }
  .js .tile:not(.in) { opacity: 1; translate: none; }
  .js .room .dot::before { scale: 1; }
}
