:root {
  --bg: #08060a;
  --bg-soft: #120d16;
  --surface: rgba(19, 14, 25, 0.94);
  --surface-strong: rgba(12, 9, 17, 0.98);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f1ed;
  --muted: #bfb6c6;
  --accent: #f3df2e;
  --accent-strong: #ffeb58;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  --content: min(1320px, calc(100vw - 32px));
  --content-wide: min(1520px, calc(100vw - 32px));
  --font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(243, 223, 46, 0.08), transparent 28%),
    linear-gradient(180deg, #08060a 0%, #110c16 46%, #08060a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background:
    linear-gradient(180deg, rgba(8, 6, 10, 0.4), rgba(8, 6, 10, 0.72));
}

body.nav-open {
  overflow: hidden;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

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

button,
a.button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(243, 223, 46, 0.28);
  color: #111;
}

.delivery-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 220px 100%;
}

.delivery-progress.is-active {
  opacity: 1;
  animation: delivery-progress 1s linear infinite;
}

@keyframes delivery-progress {
  from { background-position: -220px 0; }
  to { background-position: calc(100vw + 220px) 0; }
}

.delivery-header {
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background 0.24s ease, border-color 0.24s ease, backdrop-filter 0.24s ease;
}

.delivery-header.scrolled {
  background: rgba(10, 7, 13, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.delivery-header__inner {
  width: var(--content-wide);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.delivery-brand {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.delivery-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.delivery-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.delivery-nav a:hover,
.delivery-nav a:focus-visible {
  color: var(--accent);
}

.delivery-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
  width: var(--content-wide);
  margin: 0 auto;
  padding: 34px 0 80px;
}

.button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-2px);
}

.button--secondary,
.button-link.secondary,
.button--ghost,
.button-link.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button-link.secondary:hover,
.button-link.secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible,
.button-link.ghost:hover,
.button-link.ghost:focus-visible {
  border-color: rgba(243, 223, 46, 0.5);
  color: var(--accent);
}

.button--small,
.button-link.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.72rem;
}

.panel {
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.94), rgba(12, 9, 17, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.delivery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 34px;
}

.delivery-eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.delivery-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.delivery-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-chip-row,
.hero-actions,
.inline-actions,
.tool-actions,
.download-actions,
.floorplan-variant-actions,
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chip-row {
  margin-top: 20px;
}

.hero-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 28px;
}

.hero-meta {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.meta-block {
  display: grid;
  gap: 6px;
}

.meta-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta-value {
  font-size: 1rem;
  line-height: 1.5;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 24px;
}

.section-card {
  padding: 28px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.section-kicker,
.section-meta,
.microcopy,
.asset-note,
.floorplan-caption,
.empty-state,
.coming-soon-card p {
  color: var(--muted);
}

.section-meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floorplan-stage__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #09070c;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 8px;
  gap: 18px;
  align-items: start;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 360px 420px;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: rgba(243, 223, 46, 0.5);
}

.gallery-card__image,
.gallery-card__media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  min-width: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 6, 10, 0.82);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.floorplan-workspace {
  display: grid;
  gap: 18px;
}

.floorplan-stage {
  min-height: 420px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.floorplan-stage__pdf {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.floorplan-list {
  display: grid;
  gap: 12px;
}

.floorplan-item {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.floorplan-item.is-active {
  border-color: rgba(243, 223, 46, 0.55);
}

.video-frame,
.tour-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #09070c;
}

.video-vertical-card {
  display: grid;
  gap: 18px;
}

.video-vertical-player {
  width: min(420px, 100%);
  max-height: 78vh;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #09070c;
}

.asset-list {
  display: grid;
  gap: 12px;
}

.asset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.asset-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.coming-soon-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.coming-soon-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.download-panel {
  position: sticky;
  top: 108px;
  padding: 24px;
}

.download-panel h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.download-actions {
  margin-top: 18px;
}

.warning-list,
.property-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.warning-item {
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.property-summary__row {
  display: grid;
  gap: 4px;
}

.floorplan-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.floorplan-stage-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: skeleton-shimmer 1.1s linear infinite;
}

@keyframes skeleton-shimmer {
  to { transform: translateX(100%); }
}

.hero--loading,
.content-grid--loading {
  pointer-events: none;
}

.skeleton-eyebrow {
  width: 160px;
  height: 14px;
  margin-bottom: 14px;
}

.skeleton-title {
  width: 78%;
  height: clamp(84px, 15vw, 180px);
}

.skeleton-copy {
  width: 72%;
  height: 18px;
  margin-top: 20px;
}

.skeleton-copy--short {
  width: 46%;
}

.hero-actions--loading {
  margin-top: 28px;
}

.skeleton-button {
  width: 180px;
  height: 52px;
}

.skeleton-button--full {
  width: 100%;
}

.skeleton-line {
  width: 100%;
  height: 18px;
}

.skeleton-section {
  width: 220px;
  height: 44px;
  margin-bottom: 22px;
}

.photo-card--skeleton .gallery-card__media {
  aspect-ratio: 4 / 5;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 7, 13, 0.94);
  box-shadow: var(--shadow);
}

.toast--error {
  border-color: rgba(243, 223, 46, 0.55);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 10, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  display: grid;
  gap: 18px;
}

.lightbox-layout {
  display: grid;
  gap: 18px;
}

.lightbox-dialog.has-stage-panel .lightbox-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: start;
}

.lightbox-main {
  display: grid;
  gap: 14px;
}

.lightbox-media-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.lightbox-media {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: transparent;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-caption {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-caption span {
  opacity: 0.8;
}

.lightbox-version-strip,
.stage-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.version-chip,
.stage-tag {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.version-chip.is-active,
.stage-tag.is-selected {
  border-color: rgba(243, 223, 46, 0.65);
  background: rgba(243, 223, 46, 0.12);
  color: var(--accent);
}

.lightbox-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 10, 0.95);
  box-shadow: var(--shadow);
}

.stage-panel h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.stage-panel__head,
.stage-panel__section,
.stage-panel__section-head {
  display: grid;
  gap: 10px;
}

.stage-panel__section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.stage-panel__subhead {
  display: block;
  margin-top: 8px;
}

.stage-panel textarea,
.stage-box-editor textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  resize: vertical;
}

.stage-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-panel__actions {
  display: grid;
  gap: 12px;
}

.stage-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stage-reference-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
}

.stage-reference-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.stage-reference-card strong {
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.stage-reference-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.stage-reference-card.is-selected {
  border-color: rgba(243, 223, 46, 0.65);
  box-shadow: inset 0 0 0 1px rgba(243, 223, 46, 0.25);
}

.stage-box-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-box {
  position: absolute;
  border: 2px solid rgba(243, 223, 46, 0.92);
  background: rgba(243, 223, 46, 0.12);
  box-shadow: inset 0 0 0 1px rgba(8, 6, 10, 0.2);
}

.stage-box.is-draft {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.08);
}

.stage-box span {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 8px;
  background: rgba(8, 6, 10, 0.84);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-box-editor-list {
  display: grid;
  gap: 12px;
}

.stage-box-editor {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stage-box-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty-state--compact {
  padding: 16px;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1120px) {
  .delivery-hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .download-panel {
    position: static;
  }

  .lightbox-dialog.has-stage-panel .lightbox-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding-top: 24px;
  }

  .delivery-header__inner {
    min-height: 72px;
    gap: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .delivery-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    background: rgba(10, 7, 13, 0.97);
    border: 1px solid var(--line);
  }

  .delivery-nav.is-open {
    display: flex;
  }

  .delivery-header__actions {
    margin-left: auto;
  }

  .hero-actions,
  .download-actions,
  .floorplan-variant-actions,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-masonry {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .coming-soon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-card,
  .delivery-hero,
  .hero-meta,
  .download-panel {
    padding: 20px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
  }

  .delivery-title {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
