:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #f7f2e9;
  background: #102039;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 72% 12%, #203957 0, #152842 34%, #0c192d 85%);
}

button { font: inherit; }

.site-shell {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px 0 24px;
}

.site-header__intro { width: 100%; }

.eyebrow {
  margin: 0 0 13px;
  color: #d9b772;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.85vw, 39px);
  font-weight: 600;
  line-height: 1.17;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__description {
  margin: 14px 0 0;
  color: #d4b98d;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  white-space: nowrap;
}

.donate-link {
  position: absolute;
  top: 48px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #d9b772;
  border-radius: 4px;
  color: #f9e6b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.donate-link:hover { background: rgba(217, 183, 114, .16); }
.donate-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.donate-link span { font-size: 18px; line-height: .8; }

.stage {
  overflow: hidden;
  border: 1px solid rgba(222, 189, 123, .34);
  border-radius: 4px;
  background: #0b1624;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .22);
}

.viewer {
  position: relative;
  width: 100%;
  min-height: 580px;
  height: min(66vw, 680px);
  overflow: hidden;
  isolation: isolate;
  background: #0b1624;
}

.viewer__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: opacity 1.8s ease-in-out, filter .35s ease;
}

.viewer__image--proposed { opacity: 0; }
.viewer[data-view="proposed"] .viewer__image--proposed { opacity: 1; }
.viewer[data-location="soon"] .viewer__image { filter: blur(13px) brightness(.62); transform: scale(1.04); }
.viewer[data-location="soon"] .viewer__image--proposed { opacity: 0; }

.viewer__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 17, 29, .42), transparent 25%, transparent 58%, rgba(6, 12, 22, .86));
}

.viewer__topline {
  position: absolute;
  top: 23px;
  left: 25px;
  color: #fff9ec;
  font-family: Cinzel, Georgia, serif;
  font-size: 16px;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px #000;
}

.floorplan {
  position: absolute;
  z-index: 3;
  bottom: 23px;
  left: 24px;
  width: clamp(150px, 18vw, 220px);
  line-height: 0;
  opacity: .96;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .75));
}

.floorplan img { display: block; width: 100%; height: auto; border-radius: 3px; }

.floorplan__dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 14%;
  height: 10.9%;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.floorplan__dot:hover,
.floorplan__dot:focus-visible,
.floorplan__dot.is-active {
  outline: 2px solid #fff7df;
  outline-offset: 2px;
}

.floorplan__dot:focus-visible { box-shadow: 0 0 0 5px #10233e; }

.viewer__controls {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 25px;
  display: flex;
  gap: 10px;
}

.viewer__controls[hidden] { display: none; }

.donation-trigger {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  min-width: 248px;
  padding: 10px 17px;
  transform: translateX(50%);
  border: 1px solid #d9b772;
  border-radius: 4px;
  background: rgba(9, 20, 34, .94);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
  color: #f7f2e9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.donation-trigger:hover,
.donation-trigger[aria-expanded="true"] { background: #263b53; color: #f7f2e9; }
.donation-trigger:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.donation-trigger svg { flex: none; padding: 1px; transition: transform .2s ease; }
.donation-trigger svg path { fill: none; stroke: currentColor; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.donation-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.donation-trigger[hidden] { display: none; }

.donation-panel {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: 86px;
  display: flex;
  flex-direction: column;
  width: min(880px, calc(100% - 48px));
  max-height: calc(100% - 130px);
  transform: translateX(50%);
  overflow: hidden;
  border: 1px solid rgba(217, 183, 114, .85);
  border-radius: 7px;
  background: rgba(10, 22, 38, .64);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .58);
  backdrop-filter: blur(3px);
}

.donation-panel[hidden] { display: none; }
.donation-panel__close { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #10233a; border-radius: 50%; background: #10233a; color: #f7f2e9; cursor: pointer; }
.donation-panel__close:hover { background: #354b64; }
.donation-panel__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.donation-panel__close svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.donation-panel__heading { display: flex; align-items: baseline; gap: 18px; padding: 15px 54px 15px 20px; border-bottom: 1px solid #b89152; background: #d9b772; color: #10233a; }
.donation-panel__heading strong { font-family: Cinzel, Georgia, serif; font-size: 16px; font-weight: 500; }
.donation-panel__heading small { margin-left: auto; color: #263b53; font-size: 11px; white-space: nowrap; }
.donation-panel__scroll { min-height: 0; overflow: auto; scrollbar-color: #d9b772 #1c3048; scrollbar-width: thin; }
.donation-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 13px; }
.donation-table__title-col { width: 54%; }
.donation-table__price-col { width: 16%; }
.donation-table__status-col { width: 30%; }
.donation-table th,
.donation-table td { padding: 9px 10px; vertical-align: middle; border-bottom: 1px solid rgba(210, 222, 232, .16); }
.donation-table th:not(:last-child),
.donation-table td:not(:last-child) { border-right: 1px solid rgba(210, 222, 232, .47); }
.donation-table thead th { position: sticky; z-index: 1; top: 0; background: rgba(28, 48, 72, .76); color: #eac987; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.donation-table tbody th[scope="row"] { font-weight: 500; line-height: 1.4; }
.donation-table .donation-table__section th,
.donation-table .donation-table__section td { padding-top: 11px; padding-bottom: 10px; background: rgba(38, 59, 83, .7); }
.donation-table .donation-table__section th { color: #e7c47f; font-family: Cinzel, Georgia, serif; font-size: 13px; font-weight: 600; }
.donation-table td:nth-child(2) { color: #f0d69d; font-weight: 700; white-space: nowrap; }
.donation-table td:last-child { text-align: center; }
.donation-action { display: inline-block; padding: 7px 12px; border: 1px solid #d9b772; border-radius: 3px; color: #f8e4b9; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.donation-action:hover { background: #d9b772; color: #122743; }
.donation-action:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.donation-status--donated { color: #ff6b6b; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 901px) {
  .donation-table th:first-child,
  .donation-table td:first-child { padding-left: 30px; padding-right: 30px; }
  .donation-table th:nth-child(2),
  .donation-table td:nth-child(2),
  .donation-table th:nth-child(3),
  .donation-table td:nth-child(3) { padding-right: 30px; padding-left: 30px; }
}

.view-button {
  min-height: 48px;
  min-width: 278px;
  padding: 11px 21px;
  border: 1px solid #d9b772;
  border-radius: 4px;
  background: rgba(9, 20, 34, .88);
  color: #f7f2e9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.view-button:hover { transform: translateY(-2px); background: #28405a; }
.view-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.view-button--envision {
  position: relative;
  border-color: #ffe6ab;
  background: #e8c77c;
  box-shadow: 0 0 0 2px rgba(244, 217, 149, .4), 0 0 24px 6px rgba(232, 199, 124, .6);
  color: #10233e;
  font-size: 14px;
}

.view-button--envision::after { position: absolute; inset: -6px; border: 1px solid #cfaf69; border-radius: 8px; content: ""; pointer-events: none; }
.view-button--envision:hover { background: #f5d996; box-shadow: 0 0 0 2px rgba(244, 217, 149, .6), 0 0 30px 9px rgba(232, 199, 124, .8); }
.view-button__guide { position: absolute; z-index: 2; top: -2px; left: calc(50% - 24px); width: 48px; height: 60px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(7, 24, 43, .85)) drop-shadow(0 0 8px rgba(244, 217, 149, .85)); animation: hand-guide 4.6s ease-in-out .2s both; }
.view-button__guide[hidden] { display: none; }

@keyframes hand-guide {
  0% { opacity: 0; transform: translate(-170px, -85px) rotate(-22deg) scale(.88); }
  12% { opacity: 1; }
  32% { transform: translate(-95px, -120px) rotate(-10deg) scale(1); }
  58%, 67% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
  72% { transform: translateY(9px) rotate(0) scale(.94); }
  78%, 83% { transform: translate(0) rotate(0) scale(1); }
  88% { transform: translateY(9px) rotate(0) scale(.94); }
  94% { transform: translate(0) rotate(0) scale(1); }
  100% { opacity: 0; transform: translate(0) rotate(0) scale(1); }
}

.coming-soon {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.coming-soon[hidden] { display: none; }

.coming-soon span {
  max-width: 450px;
  padding: 18px 24px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .91);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(19px, 2.5vw, 30px);
  line-height: 1.35;
}

.site-footer { padding: 18px 0 28px; color: #aebdca; font-size: 11px; }

@media (max-width: 900px) {
  h1, .site-header__description { white-space: normal; }
}

@media (max-width: 700px) {
  .site-shell { width: min(100% - 32px, 520px); }
  .site-header { flex-direction: column-reverse; align-items: stretch; padding: 16px 0 18px; }
  .donate-link { position: static; align-self: flex-end; margin-bottom: 18px; }
  h1 { font-size: clamp(27px, 7.7vw, 37px); }
  .site-header__description { margin-top: 10px; font-size: 13px; }
  .viewer { height: min(145vw, 660px); min-height: 450px; }
  .viewer__image { object-position: center; }
  .viewer__topline { top: 16px; left: 16px; font-size: 13px; }
  .floorplan { width: clamp(133px, 34vw, 178px); bottom: 145px; left: 14px; }
  .viewer__controls { right: 12px; bottom: 13px; left: 12px; gap: 8px; }
  .donation-trigger { bottom: 70px; min-height: 44px; min-width: 0; width: min(280px, calc(100% - 24px)); padding: 8px 12px; font-size: 12px; }
  .donation-panel { bottom: 125px; width: calc(100% - 18px); max-height: calc(100% - 145px); }
  .donation-panel__heading { display: block; padding: 11px 50px 11px 12px; }
  .donation-panel__heading strong { display: block; font-size: 14px; }
  .donation-panel__heading small { display: block; margin-top: 4px; }
  .donation-table { font-size: 11px; }
  .donation-table__title-col { width: 49%; }
  .donation-table__price-col { width: 21%; }
  .donation-table__status-col { width: 30%; }
  .donation-table th, .donation-table td { padding: 8px 4px; }
  .donation-table thead th { font-size: 9px; letter-spacing: 0; }
  .donation-table .donation-table__section th { font-size: 10px; }
  .donation-action { padding: 6px 5px; font-size: 9px; }
  .view-button { width: 100%; min-width: 0; min-height: 54px; padding: 8px; font-size: 12px; }
  .view-button--envision { font-size: 12px; line-height: 1.2; }
  .coming-soon { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .view-button__guide { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
