.home-page .top {
  background: #25201d;
  color: #f7eee3;
  border-color: #58483c;
}

.home-page .top .button {
  background: #efd9c3;
  color: #261f1a;
}

.rain-hero {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(530px, calc(100svh - 114px), 830px);
  padding: 0;
  isolation: isolate;
  background: #24211f;
}

.rain-hero .show-hero-layout {
  display: flex;
  min-height: 0;
  align-items: flex-start;
  padding: clamp(25px, 4.2vh, 46px) 0 0;
  z-index: 2;
  pointer-events: none;
}

.rain-hero .show-copy {
  pointer-events: auto;
  width: fit-content;
  max-width: 70%;
}

.rain-hero .show-copy h1 {
  font-size: clamp(3rem, 4.65vw, 5.3rem);
  line-height: .94;
  letter-spacing: -.071em;
  text-wrap: balance;
  margin-bottom: 12px;
}

.rain-hero .show-copy p { margin-bottom: 16px; }

.rain-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
}

.rain-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #151619ab, transparent 46%),
    linear-gradient(0deg, #171311dd, transparent 20%);
}

.rain-art {
  --scene-ratio: 1.778;
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, calc(100cqh * var(--scene-ratio)));
  height: max(100cqh, calc(100cqw / var(--scene-ratio)));
  transform: translate3d(calc(-50% + var(--room-x, 0px)), calc(-50% + var(--room-y, 0px)), 0) scale(var(--room-scale, 1.05));
  transform-origin: 50% 58%;
}

.rain-art img {
  width: 100%;
  height: 100%;
}

#home-rain {
  position: absolute;
  inset: 0 auto auto 0;
  width: 34%;
  height: 59%;
  opacity: .65;
  pointer-events: none;
  clip-path: polygon(0 0, 51% 0, 98% 20%, 98% 97%, 0 100%);
}

.room-display { position: absolute; inset: 0; z-index: 1; }

.room-spot {
  position: absolute;
  left: var(--spot-x);
  bottom: var(--floor);
  height: var(--chair-height);
  aspect-ratio: var(--chair-aspect);
  max-width: 31%;
  min-width: 44px;
  transform: translate3d(calc(-50% + var(--chair-x, 0px)), var(--chair-y, 0px), 0) scale(var(--chair-scale, 1));
  transform-origin: 50% 100%;
  color: #fff5e7;
}

.room-spot-visitor { --spot-x: 23%; --chair-height: 43%; --floor: 17%; --chair-aspect: .66; }
.room-spot-task { --spot-x: 50%; --chair-height: 49%; --floor: 13%; --chair-aspect: .69; }
.room-spot-executive { --spot-x: 77%; --chair-height: 49%; --floor: 18%; --chair-aspect: .61; }

.room-spot::before {
  content: "";
  position: absolute;
  inset: auto -13% -5% -13%;
  height: 17%;
  background: radial-gradient(ellipse, #100e0ed9 0%, #1b171483 42%, transparent 74%);
  pointer-events: none;
}

.room-chair-image, .room-chair-reflection {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.room-chair-image { filter: brightness(.89) contrast(1.06) drop-shadow(0 5px 6px #14111270); }
.room-chair-reflection {
  top: 100%;
  transform: translateY(52%) scaleY(-.52);
  transform-origin: center top;
  filter: blur(2.1px) brightness(.76);
  opacity: .26;
  mask-image: linear-gradient(0deg, #000 0%, #0006 16%, transparent 56%);
}

.room-spot-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.room-spot-trigger:focus-visible {
  outline: 2px solid #ffe0a9;
  outline-offset: -2px;
  border-radius: 4px;
}

.room-spot:has([aria-expanded=true]) { z-index: 1; }

.room-spot-callout {
  position: absolute;
  left: 66%;
  top: 43%;
  transform: translateY(-50%);
  white-space: nowrap;
  animation: room-label-in .17s ease-out;
}

@keyframes room-label-in { from { opacity: 0; } to { opacity: 1; } }

.room-spot-executive .room-spot-callout {
  left: auto;
  right: 66%;
}

.room-spot-executive .room-spot-callout a { flex-direction: row-reverse; }

.room-spot-callout a {
  display: flex;
  align-items: center;
  color: #fff4e5;
  text-decoration: none;
}

.room-spot-line {
  width: clamp(27px, 5vw, 80px);
  min-height: 44px;
  background: linear-gradient(#f3dfc7, #f3dfc7) center / 100% 1px no-repeat;
}

.room-spot-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e9d2b9;
  background: #25201dee;
  font-size: .86rem;
  font-weight: 650;
}

.room-spot-callout a:hover .room-spot-name, .room-spot-callout a:focus-visible .room-spot-name {
  background: #f1dcc3;
  color: #261f1a;
}

.room-tap-hint { display: none; }
@media (hover: none) { .room-hover-hint { display: none; } .room-tap-hint { display: inline; } }

.rain-hero .hero-index {
  z-index: 2;
  align-self: end;
  border-color: #e0cbb14b;
}

#rain-motion {
  padding: 6px 0 6px 7px;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.room-collection {
  width: min(800px, calc(100% - 28px));
  max-height: calc(100svh - 30px);
  padding: clamp(15px, 3.2vw, 38px);
  border: 1px solid #c5ad98;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

.room-collection::backdrop { background: #161312c9; }
.room-collection-head { display: flex; gap: 14px; justify-content: space-between; align-items: start; }
.room-collection-head h2 { font-weight: 400; margin: 0 0 4px; }
.room-collection-head p { margin: 0; color: var(--muted); }
.room-picks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.room-picks .tile-item { padding-bottom: 10px; margin: 0; animation: none; }
.room-picks .tile-item .media { aspect-ratio: 1; }
.room-picks .tile h2 { font-size: .85rem; }

@media (max-width: 690px) {
  .rain-hero { min-height: 0; grid-template-rows: auto auto auto; }
  .rain-hero .show-hero-layout { padding: 30px 0 18px; }
  .rain-hero .show-copy { max-width: none; }
  .rain-hero .show-copy h1 { font-size: clamp(2.7rem, 9.6vw, 4.55rem); }
  .rain-hero .show-copy h1 br { display: block; }
  .rain-stage { position: relative; inset: auto; aspect-ratio: 1.36; }
  .rain-stage::after {
    background: linear-gradient(180deg, #24211f 0%, transparent 18%, transparent 84%, #24211f 100%);
  }
  .rain-art { left: 54%; }
  .room-spot-visitor { --spot-x: 20%; --chair-height: 54%; --floor: 19%; }
  .room-spot-task { --chair-height: 63%; --floor: 15%; }
  .room-spot-executive { --spot-x: 80%; --chair-height: 63%; --floor: 20%; }
  .room-spot-line { width: 20px; }
  .room-spot-name { font-size: .77rem; padding-inline: 8px; gap: 6px; }
  .rain-hero .hero-index { padding-top: 6px; }
  .room-visual-note { display: none; }
  .room-picks { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
