:root {
  --ink: #111;
  --muted: #777;
  --line: #e5e5e5;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  background: #f2f2f2;
}

.site-frame {
  width: min(1180px, calc(100% - 160px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
}

.header-frame {
  display: grid;
  gap: 18px;
  padding: 16px 0 22px;
}

.brand {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav a,
.site-nav button,
.nav-dropdown summary {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav button.active,
.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 20;
  display: grid;
  min-width: 250px;
  gap: 8px;
  padding: 13px 0 14px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.nav-panel button {
  display: block;
  width: 100%;
  padding: 0 18px;
  text-align: left;
  white-space: nowrap;
}

.rooms {
  padding-bottom: 44px;
}

.room {
  margin-bottom: 38px;
}

.room[hidden] {
  display: none;
}

.first-room {
  margin-bottom: 44px;
}

.project-start {
  margin-top: 96px;
}

.theme-first {
  margin-top: 0;
}

h1,
h2,
h3,
p,
  figure,
  dl {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.room-figure {
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

.room-figure img {
  height: auto;
  object-fit: contain;
}

.image-caption {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 6px;
  color: #111;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.32;
  text-transform: uppercase;
}

.image-caption span:nth-child(2) {
  text-align: center;
}

.image-caption span:nth-child(3) {
  text-align: right;
}

.hotspot {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(17, 17, 17, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  cursor: pointer;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.hotspot:focus {
  outline: none;
}

.hotspot:focus-visible {
  outline: 1px solid #111;
  outline-offset: 3px;
}

.hotspot:hover,
.hotspot:focus,
.hotspot.active {
  background: #111;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.18), 0 0 42px 22px rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.object-popover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(270px, calc(100% - 40px));
  padding: 15px 16px 14px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 160ms ease, transform 160ms ease;
}

.object-popover.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 10px));
}

.object-popover .label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.object-popover h3 {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.08;
}

.object-popover p {
  margin-top: 8px;
  color: #333;
  font-size: 11px;
  line-height: 1.42;
}

.object-popover dl {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 6px 12px;
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.object-popover dt {
  color: var(--muted);
  text-transform: uppercase;
}

.object-popover dd {
  margin: 0;
}

.object-popover a,
.supplier-pending {
  display: inline-block;
  margin-top: 13px;
  padding-bottom: 2px;
  font-size: 11px;
  font-weight: 400;
}

.object-popover a {
  border-bottom: 1px solid #111;
}

.supplier-pending {
  color: var(--muted);
  text-transform: uppercase;
}

.object-list,
.about,
.notes {
  display: grid;
  grid-template-columns: 260px minmax(0, 520px);
  gap: 48px;
  justify-content: end;
  padding: 26px 0 52px;
}

.object-list {
  border-top: 1px solid var(--line);
}

.object-list p,
.about p,
.notes p,
.contact p {
  color: #333;
  font-size: 12px;
  line-height: 1.55;
}

.object-list div p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.about div p + p {
  margin-top: 14px;
}

.about a {
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}

.object-list div p:first-of-type {
  margin-top: 12px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 48px;
  align-items: start;
  padding: 34px 0 84px;
  border-top: 1px solid var(--line);
}

.contact a {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid #111;
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-frame {
    width: min(100% - 48px, 1180px);
  }

  .header-frame {
    gap: 16px;
  }

  .site-nav {
    gap: 24px;
    flex-wrap: wrap;
  }

  .nav-panel {
    min-width: 220px;
  }

  .image-caption {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .image-caption span,
  .image-caption span:nth-child(2),
  .image-caption span:nth-child(3) {
    text-align: left;
  }

  .object-list,
  .about,
  .notes,
  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-frame {
    width: calc(100% - 24px);
  }

  .header-frame {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav,
  .site-nav a,
  .site-nav button,
  .nav-dropdown summary {
    font-size: 11px;
  }

  .site-nav {
    gap: 18px;
  }

  .nav-panel {
    top: calc(100% + 8px);
    min-width: 210px;
  }

  .image-caption {
    font-size: 10px;
  }

  .rooms {
    padding-bottom: 28px;
  }

  .room {
    margin-bottom: 30px;
  }

  .project-start {
    margin-top: 56px;
  }

  .hotspot {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .hotspot:hover,
  .hotspot:focus,
  .hotspot.active {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.18), 0 0 32px 16px rgba(255, 255, 255, 0.42);
  }

  .object-popover {
    right: 10px;
    bottom: 10px;
    left: 10px !important;
    top: auto !important;
    width: auto;
    max-height: min(52%, 280px);
    overflow: auto;
    padding: 13px 14px 12px;
    transform: translateY(8px);
  }

  .object-popover.visible {
    transform: translateY(0);
  }

  .object-popover h3 {
    font-size: 16px;
  }

  .object-popover dl {
    grid-template-columns: 54px 1fr;
    gap: 5px 10px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .object-list,
  .about,
  .notes,
  .contact {
    padding-bottom: 38px;
  }
}
