:root {
  --ae-bg: #f1f3f1;
  --ae-surface: #ffffff;
  --ae-surface-subtle: #f7f8f6;
  --ae-text: #171a19;
  --ae-muted: #626b67;
  --ae-border: #d8ddda;
  --ae-border-strong: #aeb7b2;
  --ae-radius-xs: 4px;
  --ae-radius-sm: 8px;
  --ae-radius-md: 12px;
  --ae-radius-lg: 16px;
  --ae-shadow-sm: 0 1px 2px rgba(17, 25, 22, 0.06);
  --ae-shadow-md: 0 14px 36px rgba(17, 25, 22, 0.09);
  --ae-focus: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent);
  --ae-header-height: 76px;
}

/* Stitch project selector: isolated from the catalog screens. */
.index-page {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 3.5vw, 48px);
  color: #171a19;
  background-color: #edf0ed;
  background-image: url("./assets/backgrounds/marble-calacatta.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.index-page::after {
  content: none;
}

.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: none;
  transform: translateZ(0);
}

.index-page .project-select-shell {
  width: min(1200px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(28px, 6vh, 58px);
}

.index-page .catalog-index-heading {
  position: static;
  width: 100%;
  transform: none;
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.6vh, 16px);
  padding: 0;
  text-align: center;
}

.index-page .catalog-index-heading img {
  display: block;
  width: clamp(180px, 20vw, 250px);
  height: auto;
  opacity: 0.94;
  filter:
    saturate(0.82)
    contrast(1.08)
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(0 -1px 1px rgba(62, 19, 29, 0.3));
}

.index-page .catalog-index-heading h1 {
  margin: 0;
  color: #171a19;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 1px rgba(56, 62, 59, 0.32);
}

.project-select-grid {
  width: min(860px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.project-choice {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.12 / 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(68, 75, 71, 0.28);
  border-radius: 8px;
  color: #171a19;
  background-image: url("./assets/backgrounds/marble-calacatta.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: normal;
  text-decoration: none;
  box-shadow:
    inset 2px 2px 5px rgba(50, 56, 53, 0.16),
    inset -2px -2px 4px rgba(255, 255, 255, 0.88),
    inset 0 0 24px rgba(255, 255, 255, 0.14),
    0 -1px 0 rgba(255, 255, 255, 0.76),
    0 8px 16px -13px rgba(38, 44, 41, 0.46);
  isolation: isolate;
  transition: border-color 110ms ease-out, box-shadow 140ms ease-out;
}

.project-choice-vibe {
  background-color: #edf0ed;
}

.project-choice-zephyra {
  background-color: #edf0ed;
}

.project-choice-arrow {
  position: absolute;
  top: clamp(18px, 2.4vw, 30px);
  right: clamp(18px, 2.4vw, 30px);
  z-index: 3;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 -1px 1px rgba(40, 45, 42, 0.28);
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-choice-vibe .project-choice-arrow,
.project-choice-name-vibe {
  color: #003f3f;
}

.project-choice-zephyra .project-choice-arrow,
.project-choice-name-zephyra {
  color: #571d27;
}

.project-choice-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: clamp(10px, 1.6vh, 16px);
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-choice-name {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(40px, 4.25vw, 62px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 1px rgba(32, 38, 35, 0.38);
}

.project-choice-name-vibe {
  font-family: "Vibe Object", Inter, Arial, sans-serif;
  font-weight: 400;
}

.project-choice-name-zephyra {
  font-family: "Zephyra Object", Georgia, serif;
  font-weight: 500;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.project-choice-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #303633;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 650;
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 -1px 1px rgba(54, 60, 57, 0.26);
}

.project-choice-action span {
  font-size: 1.2em;
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-choice:hover,
.project-choice:focus-visible {
  border-color: rgba(23, 26, 25, 0.56);
  box-shadow:
    inset 0 0 0 2px rgba(29, 35, 32, 0.28),
    inset 0 3px 2px -2px rgba(30, 36, 33, 0.52),
    inset 3px 0 2px -2px rgba(34, 40, 37, 0.38),
    inset 0 -3px 2px -2px rgba(255, 255, 255, 0.96),
    inset -3px 0 2px -2px rgba(255, 255, 255, 0.84),
    inset 0 19px 24px -14px rgba(38, 44, 41, 0.54),
    inset 9px 0 17px -12px rgba(42, 48, 45, 0.34),
    inset -9px 0 17px -12px rgba(255, 255, 255, 0.76),
    inset 0 -9px 15px -10px rgba(255, 255, 255, 0.96),
    inset 0 0 30px rgba(38, 44, 41, 0.11),
    0 0 0 1px rgba(23, 26, 25, 0.08);
  outline: none;
}

.project-choice:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(29, 35, 32, 0.28),
    inset 0 3px 2px -2px rgba(30, 36, 33, 0.52),
    inset 3px 0 2px -2px rgba(34, 40, 37, 0.38),
    inset 0 -3px 2px -2px rgba(255, 255, 255, 0.96),
    inset -3px 0 2px -2px rgba(255, 255, 255, 0.84),
    inset 0 19px 24px -14px rgba(38, 44, 41, 0.54),
    inset 9px 0 17px -12px rgba(42, 48, 45, 0.34),
    inset -9px 0 17px -12px rgba(255, 255, 255, 0.76),
    inset 0 -9px 15px -10px rgba(255, 255, 255, 0.96),
    0 0 0 3px rgba(23, 26, 25, 0.22);
}

.project-choice:active {
  box-shadow:
    inset 0 0 0 3px rgba(25, 31, 28, 0.36),
    inset 0 4px 3px -2px rgba(28, 34, 31, 0.58),
    inset 4px 0 3px -2px rgba(32, 38, 35, 0.42),
    inset 0 -4px 3px -2px rgba(255, 255, 255, 0.98),
    inset -4px 0 3px -2px rgba(255, 255, 255, 0.86),
    inset 0 24px 28px -15px rgba(38, 44, 41, 0.6),
    inset 11px 0 20px -13px rgba(42, 48, 45, 0.38),
    inset -11px 0 20px -13px rgba(255, 255, 255, 0.72),
    inset 0 -11px 17px -10px rgba(255, 255, 255, 0.98);
}

.project-choice:hover .project-choice-content,
.project-choice:hover .project-choice-arrow,
.project-choice:focus-visible .project-choice-content,
.project-choice:focus-visible .project-choice-arrow {
  transform: translateY(5px);
  transition-delay: 45ms;
}

.project-choice:active .project-choice-content,
.project-choice:active .project-choice-arrow {
  transform: translateY(7px);
  transition-delay: 0ms;
}

.project-choice:hover .project-choice-action span,
.project-choice:focus-visible .project-choice-action span {
  transform: translateX(4px);
  transition-delay: 45ms;
}

.project-choice:active .project-choice-action span {
  transition-delay: 0ms;
}

@media (max-width: 680px) {
  .index-page {
    padding: clamp(12px, 4vw, 18px);
  }

  .index-page .project-select-shell {
    gap: clamp(14px, 2.8vh, 24px);
  }

  .index-page .catalog-index-heading {
    gap: clamp(5px, 1vh, 10px);
  }

  .index-page .catalog-index-heading img {
    width: min(176px, 54vw);
  }

  .index-page .catalog-index-heading h1 {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .project-select-grid {
    width: min(260px, 100%);
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    gap: clamp(10px, 2vh, 14px);
  }

  .project-choice {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: clamp(16px, 5vw, 22px);
  }

  .project-choice-arrow {
    top: 16px;
    right: 16px;
    font-size: 26px;
  }

  .project-choice-content {
    gap: 7px;
  }

  .project-choice-name {
    font-size: clamp(36px, 10.5vw, 42px);
  }

  .project-choice-action {
    font-size: 14px;
  }
}

@media (max-height: 640px) {
  .index-page {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .index-page .project-select-shell {
    gap: 10px;
  }

  .project-select-grid {
    width: min(205px, 100%);
    gap: 8px;
  }

  .index-page .catalog-index-heading {
    gap: 3px;
  }

  .index-page .catalog-index-heading img {
    width: min(142px, 46vw);
  }

  .index-page .catalog-index-heading h1 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .project-choice {
    padding: 14px 18px;
  }

  .project-choice-name {
    font-size: clamp(34px, 11vw, 48px);
  }

  .project-choice-action {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-background {
    filter: none;
  }

  .project-choice,
  .project-choice-arrow,
  .project-choice-content,
  .project-choice-action span {
    transition: none;
  }
}

/* Stitch reference: Arsenal East - Symmetric Twin Slabs. */
@font-face {
  font-family: "AE EB Garamond";
  src: url("./assets/fonts/eb-garamond-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AE Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.index-page {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 64px);
  color: #363132;
  background-color: #fef8f8;
  background-image: url("./assets/backgrounds/marble-symmetric-twin-slabs.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.index-page .project-select-shell {
  width: min(1024px, 100%);
  height: auto;
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 64px;
  margin: 0;
}

.index-page .catalog-index-heading {
  position: static;
  width: auto;
  transform: none;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  text-align: center;
}

.index-page .catalog-logo-plaque {
  width: clamp(84px, 13.34vw, 192px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background-color: #fef8f8;
  background-image: url("./assets/backgrounds/marble-symmetric-twin-slabs.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.4),
    inset -1px -1px 2px rgba(255, 255, 255, 0.8);
}

.index-page .catalog-index-heading img {
  width: 54%;
  height: auto;
  display: block;
  opacity: 0.9;
  filter:
    saturate(0.86)
    contrast(1.04)
    drop-shadow(1px 1px 1px rgba(255, 255, 255, 0.7))
    drop-shadow(-1px -1px 1px rgba(53, 15, 24, 0.22));
}

.index-page .catalog-index-heading h1 {
  margin: 0;
  color: #6b1f2d;
  font-family: "AE EB Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow:
    1px 1px 1px rgba(255, 255, 255, 0.8),
    -1px -1px 1px rgba(0, 0, 0, 0.4);
}

.index-page .project-select-grid {
  width: min(800px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
}

.index-page .project-choice {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  padding: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #363132;
  background-color: #fef8f8;
  background-image: url("./assets/backgrounds/marble-symmetric-twin-slabs.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  text-decoration: none;
  box-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.1),
    -1px -1px 3px rgba(255, 255, 255, 0.8);
  isolation: isolate;
  transition: border-color 180ms ease, box-shadow 300ms ease;
}

.index-page .project-choice-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  transition: transform 300ms ease;
}

.index-page .project-choice-name {
  display: block;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-family: "AE EB Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  text-shadow:
    1px 1px 1px rgba(255, 255, 255, 0.7),
    -1px -1px 1px rgba(0, 0, 0, 0.3);
}

.index-page .project-choice-vibe,
.index-page .project-choice-name-vibe,
.index-page .project-choice-vibe .project-choice-action {
  color: #004b4b;
}

.index-page .project-choice-zephyra,
.index-page .project-choice-name-zephyra,
.index-page .project-choice-zephyra .project-choice-action {
  color: #6b1f2d;
}

.index-page .project-choice-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: inherit;
  font-family: "AE Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: none;
}

.index-page .project-choice-action-icon {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 300ms ease;
}

.index-page .project-choice:hover,
.index-page .project-choice:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.9),
    inset 0 8px 15px rgba(0, 0, 0, 0.1);
  outline: none;
}

.index-page .project-choice:focus-visible {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.9),
    inset 0 8px 15px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(107, 31, 45, 0.28);
}

.index-page .project-choice:hover .project-choice-content,
.index-page .project-choice:focus-visible .project-choice-content {
  transform: translateY(2px);
}

.index-page .project-choice:hover .project-choice-action-icon,
.index-page .project-choice:focus-visible .project-choice-action-icon {
  transform: translate(2px, -2px);
}

.index-page .project-choice:active {
  box-shadow:
    inset 3px 3px 7px rgba(0, 0, 0, 0.24),
    inset -3px -3px 7px rgba(255, 255, 255, 0.92),
    inset 0 10px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 680px) {
  .index-page {
    padding: 18px;
  }

  .index-page .project-select-shell {
    width: min(300px, 100%);
    gap: 18px;
  }

  .index-page .catalog-index-heading {
    gap: 8px;
  }

  .index-page .catalog-logo-plaque {
    width: 84px;
  }

  .index-page .catalog-index-heading h1 {
    font-size: 30px;
    letter-spacing: 0.12em;
  }

  .index-page .project-select-grid {
    width: min(260px, 100%);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .index-page .project-choice {
    width: 100%;
    padding: 24px;
  }

  .index-page .project-choice-name {
    font-size: 32px;
  }

  .index-page .project-choice-action {
    font-size: 12px;
  }

  .index-page .project-choice-action-icon {
    font-size: 20px;
  }
}

@media (max-height: 640px) {
  .index-page {
    padding: 10px;
  }

  .index-page .project-select-shell {
    width: min(220px, 100%);
    gap: 8px;
  }

  .index-page .catalog-index-heading {
    gap: 4px;
  }

  .index-page .catalog-logo-plaque {
    width: 64px;
  }

  .index-page .catalog-index-heading h1 {
    font-size: 24px;
    letter-spacing: 0.1em;
  }

  .index-page .project-select-grid {
    width: min(205px, 100%);
    gap: 8px;
  }

  .index-page .project-choice {
    padding: 18px;
  }

  .index-page .project-choice-name {
    font-size: 28px;
  }

  .index-page .project-choice-action {
    font-size: 10px;
  }

  .index-page .project-choice-action-icon {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-page .project-choice,
  .index-page .project-choice-content,
  .index-page .project-choice-action-icon {
    transition: none;
  }
}

body[data-project="VIBE"] {
  --brand: #003f3f;
  --brand-strong: #002f30;
  --brand-accent: #3c9d89;
  --brand-highlight: #e33d24;
  --brand-soft: #e8f3f0;
  --brand-line: #b9d9d1;
  --object-font: "Vibe Object", "AE Manrope", Inter, Arial, sans-serif;
}

body[data-project="ZEPHYRA"] {
  --brand: #571d27;
  --brand-strong: #42151d;
  --brand-accent: #a56f52;
  --brand-highlight: #a56f52;
  --brand-soft: #f5ece8;
  --brand-line: #dfc9be;
  --object-font: "AE EB Garamond", Georgia, serif;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  color: var(--ae-text);
  background: var(--ae-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a.project-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--ae-radius-sm);
  padding: 11px 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  line-height: 1.2;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

button:hover,
a.project-link:hover {
  background: var(--brand-strong);
}

button:active,
a.project-link:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.unit-card:focus-visible {
  outline: none;
  box-shadow: var(--ae-focus);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

button.secondary {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

button.secondary:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

input,
select {
  min-height: 46px;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
  padding: 10px 12px;
  color: var(--ae-text);
  background: var(--ae-surface);
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:hover,
select:hover {
  border-color: var(--ae-border-strong);
}

label {
  gap: 6px;
  color: var(--ae-muted);
  font-size: 12px;
  font-weight: 600;
}

/* Project selection */

.index-page {
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 56px);
  color: #171a19;
  background: #f1f1ef;
}

.project-select-shell {
  width: min(1120px, 100%);
  min-height: calc(100dvh - clamp(40px, 8vw, 112px));
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: clamp(40px, 8vh, 88px);
}

.catalog-index-heading {
  position: static;
  width: 100%;
  transform: none;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: clamp(12px, 4vh, 42px);
  text-align: center;
}

.catalog-index-heading img {
  width: clamp(220px, 28vw, 360px);
}

.catalog-index-heading h1 {
  color: #171a19;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
}

.project-select-card {
  position: static;
  width: 100%;
  transform: none;
  align-self: stretch;
  display: grid;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.object-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.object-card-button {
  min-height: clamp(230px, 34vh, 390px);
  border: 1px solid #cfd4d1;
  border-radius: var(--ae-radius-sm);
  background: #fff;
  box-shadow: var(--ae-shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.object-card-button::before {
  inset: 0 auto 0 0;
  width: 6px;
  height: auto;
  background: #171a19;
}

.object-card-button[data-project="VIBE"]::before {
  background: #003f3f;
}

.object-card-button[data-project="ZEPHYRA"]::before {
  background: #571d27;
}

.object-card-button::after {
  content: "\2197";
  position: absolute;
  top: 22px;
  right: 24px;
  color: #707773;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.object-card-button:hover,
.object-card-button:focus-visible {
  border-color: #7f8984;
  background: #fff;
  box-shadow: var(--ae-shadow-md);
  transform: translateY(-3px);
}

.object-card-name {
  font-size: clamp(42px, 6vw, 78px);
}

/* Catalog chrome */

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--ae-header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1560px) / 2));
  border-bottom: 1px solid rgba(216, 221, 218, 0.9);
  background: rgba(241, 243, 241, 0.94);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.catalog-home {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--ae-text);
  text-decoration: none;
}

.catalog-home img {
  display: block;
  width: clamp(150px, 14vw, 220px);
  height: auto;
}

.catalog-home span {
  padding-left: 18px;
  border-left: 1px solid var(--ae-border-strong);
  color: var(--ae-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-project-toggle {
  min-width: 260px;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
  background: var(--ae-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.catalog-project-toggle a {
  min-height: 46px;
  color: #5f6864;
  font-size: 14px;
  transition: color 180ms ease, background-color 180ms ease;
}

.catalog-project-toggle a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.catalog-project-toggle a.active,
body[data-project="VIBE"] .catalog-project-toggle a.active,
body[data-project="ZEPHYRA"] .catalog-project-toggle a.active {
  color: #fff;
  background: var(--brand);
}

.catalog-shell {
  width: min(1560px, calc(100% - 40px));
  padding: 24px 0 130px;
}

.filter-toggle {
  font-size: 15px;
}

.filters {
  position: sticky;
  top: calc(var(--ae-header-height) + 12px);
  z-index: 25;
  grid-template-columns: minmax(260px, 1.65fr) minmax(150px, 0.62fr) minmax(140px, 0.55fr) minmax(170px, 0.7fr) auto auto auto;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(17, 25, 22, 0.07);
  backdrop-filter: blur(16px);
}

.filters-close {
  display: none;
}

.view-switch {
  min-height: 46px;
  border-color: var(--ae-border);
  border-radius: var(--ae-radius-sm);
}

.view-switch button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  color: var(--ae-muted);
  background: #fff;
  font-size: 13px;
}

.view-switch button:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.view-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
}

.catalog-meta {
  min-height: 38px;
  margin-bottom: 12px;
  color: var(--ae-muted);
  font-size: 14px;
}

.selected-bar {
  justify-content: flex-end;
}

.selected-chip {
  min-height: 34px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--brand-line);
  border-radius: var(--ae-radius-sm);
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 13px;
}

.selected-chip button {
  min-width: 24px;
  min-height: 24px;
}

.catalog-notice,
.empty-state {
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-md);
  background: var(--ae-surface);
  box-shadow: none;
}

/* Unit cards */

.units-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.unit-card {
  display: grid;
  grid-template-areas:
    "identity"
    "plan"
    "body";
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-md);
  background: var(--ae-surface);
  box-shadow: var(--ae-shadow-sm);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.unit-card:hover,
.unit-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--ae-border));
  background: var(--ae-surface);
  box-shadow: 0 12px 28px rgba(17, 25, 22, 0.10);
  transform: translateY(-2px);
}

.unit-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent), var(--ae-shadow-sm);
}

.unit-identity {
  grid-area: identity;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  color: #fff;
  background: var(--brand);
}

.unit-plan {
  grid-area: plan;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--ae-border);
  background: #fff;
}

.unit-plan img {
  padding: 12px;
  object-fit: contain;
}

.unit-badge {
  top: auto;
  right: auto;
  bottom: 10px;
  left: 12px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--ae-radius-xs);
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.unit-body {
  grid-area: body;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  padding: 15px;
}

.unit-title {
  min-width: 0;
  display: grid;
  justify-content: start;
  align-content: center;
  align-items: start;
  gap: 4px;
}

.unit-title h2 {
  color: #fff;
  font-family: var(--object-font);
  font-size: 27px;
  font-size-adjust: 0.5;
  font-weight: 500;
  line-height: 1;
}

.unit-title span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

.unit-price {
  margin: 0;
  color: #fff;
  font-family: var(--object-font);
  font-size: clamp(20px, 1.65vw, 27px);
  font-size-adjust: 0.5;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.unit-facts {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(62px, 0.65fr);
  gap: 7px;
}

.unit-facts div {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 9px;
  border: 0;
  border-bottom: 2px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
}

.unit-facts small {
  color: var(--ae-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.unit-facts span {
  color: var(--ae-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.unit-floor-fact {
  display: none !important;
}

.unit-actions {
  gap: 8px;
  margin-top: 10px;
}

.unit-actions button:first-child {
  min-height: 46px;
  color: #fff;
  background: var(--brand);
}

.unit-actions .select-unit {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  border-color: var(--brand-line);
  color: var(--brand);
  background: var(--brand-soft);
}

.unit-actions .select-unit:hover,
.unit-actions .select-unit.is-selected {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* Desktop row view */

.units-grid.list-view {
  gap: 8px;
}

.units-grid.list-view .unit-card {
  min-height: 108px;
  grid-template-columns: 132px 150px 180px minmax(360px, 1fr) auto;
  grid-template-areas: "title plan price facts actions";
  grid-template-rows: 1fr;
  align-items: stretch;
}

.units-grid.list-view .unit-identity,
.units-grid.list-view .unit-body {
  display: contents;
}

.units-grid.list-view .unit-title {
  grid-area: title;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  color: #fff;
  background: var(--brand);
}

.units-grid.list-view .unit-title h2 {
  font-size: 25px;
}

.units-grid.list-view .unit-title span {
  display: block;
  color: #fff;
  font-size: 10px;
}

.units-grid.list-view .unit-plan {
  grid-area: plan;
  min-width: 0;
  min-height: 106px;
  aspect-ratio: auto;
  border-right: 1px solid var(--ae-border);
  border-bottom: 0;
}

.units-grid.list-view .unit-plan img {
  padding: 8px;
}

.units-grid.list-view .unit-badge {
  display: none;
}

.units-grid.list-view .unit-price {
  grid-area: price;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 14px 16px;
  color: #fff;
  background: var(--brand);
  font-size: 20px;
  text-align: left;
  text-overflow: ellipsis;
}

.units-grid.list-view .unit-facts {
  grid-area: facts;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(60px, 0.62fr);
  align-content: center;
  gap: 7px;
  margin: 0;
  padding: 12px;
}

.units-grid.list-view .unit-actions {
  grid-area: actions;
  align-content: center;
  grid-template-columns: auto 46px;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
  padding: 12px;
  border-left: 1px solid var(--ae-border);
}

/* Selection and utility controls */

.selection-dock {
  width: min(980px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-md);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(17, 25, 22, 0.16);
}

.selection-dock-total {
  color: var(--brand);
  font-size: 19px;
}

.scroll-top-button {
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--brand) 70%, #fff);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 10px 28px rgba(17, 25, 22, 0.18);
  font-size: 20px;
}

/* Dialogs */

dialog {
  overflow: visible;
  max-width: none;
  max-height: none;
}

dialog::backdrop {
  background: rgba(16, 19, 18, 0.58);
  backdrop-filter: blur(6px);
}

.unit-modal,
.request-modal,
.plan-lightbox {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ae-radius-lg);
  background: var(--ae-surface);
  box-shadow: 0 28px 80px rgba(10, 14, 12, 0.26);
}

.unit-modal {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-color: #c8d0cc;
  border-radius: var(--ae-radius-sm);
  background: #f4f6f3;
}

.modal-header {
  position: relative;
  z-index: 2;
  min-height: 62px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ae-border);
  background: #fff;
  backdrop-filter: none;
}

.unit-modal .modal-header {
  min-height: 66px;
  padding: 11px 16px 11px 20px;
  border-bottom-color: #c8d0cc;
}

.modal-header h2 {
  color: var(--ae-text);
  font-size: 22px;
  font-weight: 750;
}

.unit-modal-heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.unit-modal-eyebrow {
  overflow: hidden;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.unit-modal-title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.unit-modal .modal-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.unit-modal-floor {
  overflow: hidden;
  color: var(--ae-muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close-modal {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--ae-border);
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 0;
}

.close-modal::before,
.close-modal::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.close-modal::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-modal::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-modal:hover {
  color: #fff;
  background: var(--brand);
}

.modal-content {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.modal-plan {
  min-height: 0;
  height: 100%;
  max-height: calc(100dvh - 130px);
  border: 1px solid #cbd4d0;
  border-radius: var(--ae-radius-xs);
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.modal-plan img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 12px;
  object-fit: contain;
}

.modal-content aside {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid #cbd4d0;
  border-radius: var(--ae-radius-xs);
  background: #fff;
  overflow: hidden;
}

.unit-modal-price {
  display: grid;
  gap: 5px;
  padding: 15px;
  border-bottom: 1px solid var(--ae-border);
}

.unit-modal-price span {
  color: var(--ae-muted);
  font-size: 10px;
  font-weight: 650;
}

.unit-modal-price strong {
  color: var(--brand);
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}

.details-list {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.details-list div {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border-bottom: 1px solid #e1e6e3;
}

.details-list div:last-child {
  border-bottom: 0;
}

.details-list dt {
  color: var(--ae-muted);
  font-size: 10px;
  font-weight: 650;
}

.details-list dd {
  color: var(--ae-text);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

#requestSingle {
  min-height: 48px;
  justify-self: stretch;
  margin: 13px;
  border-radius: 5px;
}

.request-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.request-content {
  min-height: 0;
  gap: 12px;
  padding: 16px 18px 18px;
  overflow: hidden;
}

.request-list {
  gap: 0;
  padding: 0;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
  background: var(--ae-surface-subtle);
  overflow: hidden;
}

.request-list div {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ae-border);
}

.request-list div:last-child {
  border-bottom: 0;
}

.success-box,
.request-error {
  padding: 11px 12px;
  border-radius: var(--ae-radius-sm);
}

.success-box {
  border: 1px solid var(--brand-line);
  color: var(--brand);
  background: var(--brand-soft);
}

.plan-lightbox {
  width: min(1280px, calc(100vw - 24px));
  height: min(920px, calc(100dvh - 24px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.plan-lightbox-content {
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.lightbox-plan {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lightbox-plan img,
.plan-lightbox-content > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1280px) {
  .units-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.65fr)) auto auto auto;
  }

  .filters > button:last-child {
    grid-column: auto;
  }

  .units-grid.list-view .unit-card {
    grid-template-columns: 116px 126px 160px minmax(300px, 1fr) auto;
  }
}

@media (max-width: 980px) {
  .catalog-home span {
    display: none;
  }

  .filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters label:first-child {
    grid-column: 1 / -1;
  }

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

  .units-grid.list-view .unit-card {
    grid-template-columns: 96px minmax(155px, 0.72fr) minmax(220px, 1.28fr) 46px;
    grid-template-areas: "title price facts actions";
  }

  .units-grid.list-view .unit-plan {
    display: none;
  }

  .units-grid.list-view .unit-title {
    padding-inline: 10px;
  }

  .units-grid.list-view .unit-title h2 {
    font-size: 22px;
  }

  .units-grid.list-view .unit-price {
    padding-inline: 8px;
    font-size: clamp(14px, 1.8vw, 17px);
  }

  .units-grid.list-view .unit-actions {
    grid-template-columns: 46px;
    padding: 0;
  }

  .units-grid.list-view .unit-actions button:first-child {
    display: none;
  }

  .modal-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }
}

@media (max-width: 680px) {
  :root {
    --ae-header-height: 64px;
  }

  body.filters-open {
    overflow: hidden;
  }

  body.filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(16, 19, 18, 0.48);
    backdrop-filter: blur(4px);
  }

  .index-page {
    padding: 18px;
  }

  .project-select-shell {
    min-height: calc(100dvh - 36px);
    gap: 30px;
  }

  .catalog-index-heading {
    justify-items: center;
    gap: 14px;
    padding-top: 10px;
    text-align: center;
  }

  .catalog-index-heading img {
    width: min(260px, 78vw);
  }

  .catalog-index-heading h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .object-switch {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .object-card-button {
    min-height: clamp(150px, 24dvh, 210px);
  }

  .object-card-name {
    font-size: clamp(38px, 14vw, 58px);
  }

  .catalog-header {
    min-height: var(--ae-header-height);
    gap: 10px;
    padding: 9px 10px;
  }

  .catalog-home img {
    width: 118px;
  }

  .catalog-project-toggle {
    min-width: 0;
    width: min(210px, 58vw);
  }

  .catalog-project-toggle a {
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .catalog-shell {
    width: calc(100% - 16px);
    padding: 10px 0 170px;
  }

  .filter-toggle {
    position: sticky;
    top: calc(var(--ae-header-height) + 6px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-bottom: 10px;
    border-radius: var(--ae-radius-sm);
    box-shadow: var(--ae-shadow-sm);
  }

  .filters {
    display: none;
    position: fixed;
    inset: auto 10px 10px;
    z-index: 80;
    max-height: calc(100dvh - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 16px;
    border-radius: var(--ae-radius-lg);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .filters.expanded {
    display: grid;
  }

  .filters-close {
    display: grid;
    grid-column: 1 / -1;
    place-items: center;
    justify-self: end;
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    color: var(--brand);
    background: var(--brand-soft);
    border-color: var(--brand-line);
  }

  .filters-close::before,
  .filters-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .filters-close::before {
    transform: rotate(45deg);
  }

  .filters-close::after {
    transform: rotate(-45deg);
  }

  .filters label:first-of-type {
    grid-column: 1 / -1;
  }

  .filters .view-switch,
  .filters > button:not(.filters-close) {
    grid-column: span 1;
  }

  .catalog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 2px 10px;
    font-size: 13px;
  }

  .selected-bar {
    width: 100%;
    justify-content: flex-start;
  }

  .units-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .unit-card {
    border-radius: var(--ae-radius-md);
  }

  .unit-card:hover,
  .unit-card:focus-within {
    transform: none;
  }

  .units-grid.grid-view .unit-identity {
    min-height: 86px;
    padding: 13px;
  }

  .units-grid.grid-view .unit-plan {
    aspect-ratio: 4 / 3;
  }

  .unit-body {
    padding: 13px;
  }

  .unit-title h2 {
    font-size: 22px;
  }

  .unit-price {
    margin: 0;
    font-size: 21px;
  }

  .unit-facts {
    gap: 6px;
  }

  .unit-facts div {
    min-height: 50px;
    padding: 7px 8px;
  }

  .unit-facts small {
    font-size: 11px;
  }

  .unit-facts span {
    font-size: 14px;
  }

  .units-grid.grid-view .unit-actions {
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: stretch;
  }

  .units-grid.grid-view .unit-actions .select-unit {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  /* Variant 11 row: identity, price and action above; facts below. */
  .units-grid.list-view .unit-card {
    min-height: 112px;
    grid-template-columns: 62px minmax(0, 1fr) 44px;
    grid-template-areas:
      "title price actions"
      "facts facts facts";
    grid-template-rows: 59px auto;
  }

  .units-grid.list-view .unit-title {
    grid-area: title;
    min-width: 0;
    min-height: 59px;
    gap: 3px;
    padding: 7px 6px;
    border-bottom: 1px solid var(--brand-line);
  }

  .units-grid.list-view .unit-title h2 {
    font-size: 18px;
    line-height: 1;
  }

  .units-grid.list-view .unit-title span {
    font-size: 8px;
  }

  .units-grid.list-view .unit-plan {
    display: none;
  }

  .units-grid.list-view .unit-price {
    grid-area: price;
    min-width: 0;
    min-height: 59px;
    overflow: hidden;
    padding: 7px 8px;
    border-bottom: 1px solid var(--brand-line);
    color: #fff;
    background: var(--brand);
    font-size: clamp(11px, 3.35vw, 13px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .units-grid.list-view .unit-facts {
    grid-area: facts;
    width: 100%;
    min-height: 52px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(44px, 0.62fr);
    align-content: center;
    gap: 5px;
    padding: 4px;
  }

  .units-grid.list-view .unit-facts div {
    min-width: 0;
    min-height: 42px;
    padding: 6px 7px;
  }

  .units-grid.list-view .unit-facts small {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .units-grid.list-view .unit-facts span {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .units-grid.list-view .unit-actions {
    grid-area: actions;
    width: 44px;
    min-height: 59px;
    margin: 0;
    border-bottom: 1px solid var(--brand-line);
    border-left: 0;
    background: var(--brand);
    overflow: hidden;
  }

  .units-grid.list-view .unit-actions button:first-child {
    display: none;
  }

  .units-grid.list-view .unit-actions .select-unit {
    width: 44px;
    min-width: 44px;
    height: 59px;
    min-height: 59px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    overflow: hidden;
  }

  .units-grid.list-view .unit-actions .select-unit:hover {
    color: #fff;
    background: var(--brand-strong);
  }

  .units-grid.list-view .unit-actions .select-unit.is-selected {
    color: #fff;
    background: transparent;
  }

  .selection-dock {
    bottom: 8px;
    width: calc(100% - 16px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .selection-dock > div:first-child,
  .selection-dock-total {
    grid-column: span 1;
  }

  .selection-dock button {
    min-height: 44px;
  }

  .scroll-top-button {
    right: 12px;
    bottom: var(--selection-dock-offset, 12px);
    width: 46px;
    height: 46px;
  }

  .unit-modal,
  .request-modal {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    height: auto;
    max-height: calc(100dvh - 12px);
    border-radius: var(--ae-radius-md);
  }

  .modal-header {
    min-height: 52px;
    padding: 7px 10px 7px 12px;
  }

  .unit-modal .modal-header {
    min-height: 52px;
    padding: 6px 8px 6px 12px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .unit-modal .modal-header h2 {
    font-size: 18px;
  }

  .close-modal {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .unit-modal .close-modal {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .modal-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(135px, 33dvh) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .modal-plan {
    width: 100%;
    height: 100%;
    max-height: 33dvh;
    border: 0;
    border-bottom: 1px solid var(--ae-border);
    border-radius: 0;
  }

  .modal-plan img {
    padding: 5px;
  }

  .modal-content aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 7px;
    padding: 8px;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .unit-modal-price {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    gap: 3px;
    padding: 0;
    border: 0;
  }

  .unit-modal-price span {
    font-size: 8px;
  }

  .unit-modal-price strong {
    font-size: 18px;
  }

  .details-list {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border-radius: 0;
    background: var(--ae-border);
  }

  .details-list div,
  .details-list div:last-child {
    min-width: 0;
    min-height: 38px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2px;
    padding: 5px;
    border: 0;
    background: #fff;
  }

  .details-list div:nth-child(6) {
    grid-column: span 2;
  }

  .details-list dt {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .details-list dd {
    overflow: hidden;
    width: 100%;
    font-size: 10px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #requestSingle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    min-height: 44px;
    justify-self: end;
    margin: 0;
    padding: 9px 13px;
    font-size: 10px;
  }

  .request-content {
    gap: 8px;
    padding: 10px;
  }

  .request-content label {
    gap: 4px;
    font-size: 11px;
  }

  .request-content input {
    min-height: 44px;
  }

  .request-list div {
    padding: 6px 8px;
    font-size: 12px;
  }

  .plan-lightbox {
    width: calc(100vw - 10px);
    height: calc(100dvh - 10px);
    border-radius: var(--ae-radius-md);
  }

  .plan-lightbox-content {
    padding: 6px;
  }
}

@media (max-width: 374px) {
  .catalog-home img {
    width: 104px;
  }

  .catalog-project-toggle {
    width: 192px;
  }

  .units-grid.list-view .unit-card {
    grid-template-columns: 58px minmax(0, 1fr) 44px;
    grid-template-areas:
      "title price actions"
      "facts facts facts";
  }

  .units-grid.list-view .unit-title {
    min-width: 0;
    padding-inline: 5px;
  }

  .units-grid.list-view .unit-title h2 {
    font-size: 17px;
  }

  .units-grid.list-view .unit-price {
    padding-inline: 6px;
    font-size: 10px;
  }

  .units-grid.list-view .unit-facts {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px;
    gap: 3px;
  }

  .units-grid.list-view .unit-facts div {
    padding-inline: 5px;
  }

  .units-grid.list-view .unit-facts span {
    font-size: 12px;
  }

  .modal-content {
    grid-template-rows: minmax(130px, 32dvh) auto;
  }

  .modal-plan {
    max-height: 32dvh;
  }
}

@media (max-height: 650px) and (max-width: 680px) {
  .modal-content {
    grid-template-rows: minmax(115px, 28dvh) auto;
    gap: 6px;
    padding: 6px;
  }

  .modal-plan {
    max-height: 28dvh;
  }

  .details-list div,
  .details-list div:last-child {
    min-height: 32px;
    padding: 3px 6px;
  }

  .details-list dt {
    font-size: 10px;
  }

  .details-list dd {
    font-size: 11px;
  }

  #requestSingle {
    min-height: 40px;
  }
}

@media (max-height: 650px) and (min-width: 681px) {
  .unit-modal,
  .request-modal {
    max-height: calc(100dvh - 12px);
  }

  .modal-header {
    min-height: 50px;
    padding: 4px 10px 4px 14px;
  }

  .close-modal {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .modal-content {
    gap: 10px;
    padding: 10px;
  }

  .modal-content aside {
    gap: 8px;
  }

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

  .details-list div,
  .details-list div:last-child {
    min-height: 40px;
    grid-template-columns: 1fr;
    gap: 1px;
    align-items: start;
    padding: 5px 8px;
    border-right: 1px solid var(--ae-border);
    border-bottom: 1px solid var(--ae-border);
  }

  .details-list div:nth-child(even) {
    border-right: 0;
  }

  .details-list div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .details-list dt {
    font-size: 10px;
  }

  .details-list dd {
    width: 100%;
    font-size: 11px;
  }

  #requestSingle,
  #requestSubmit {
    min-height: 40px;
  }

  .request-content {
    gap: 6px;
    padding: 8px 10px 10px;
  }

  .request-content input {
    min-height: 40px;
  }

  .request-list div {
    padding: 5px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Project selection: vertical stone gates. */
.index-page.index-gates {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  margin: 0;
  padding: clamp(18px, 4vh, 46px) clamp(14px, 4vw, 58px);
  overflow: hidden;
  color: #f2e4d6;
  background-color: #6b1f2d;
  background-image: url("./assets/backgrounds/marble-symmetric-twin-slabs.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  background-attachment: initial;
}

.index-page.index-gates::before {
  content: none;
}

.index-page.index-gates::after {
  content: none;
}

.index-page.index-gates .project-select-shell {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
}

.index-page.index-gates .catalog-index-heading {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
  transform: none;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.index-page.index-gates .catalog-logo-sand {
  display: block;
  width: clamp(230px, 22vw, 320px);
  aspect-ratio: 258.59 / 78.85;
  background-color: #d5bd98;
  -webkit-mask: url("./assets/arsenal-east/logo-arsenal-east.svg") center / contain no-repeat;
  mask: url("./assets/arsenal-east/logo-arsenal-east.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(17, 2, 7, 0.32));
}

.index-page.index-gates .catalog-index-title {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: #f0e2d4;
  font-family: "Zephyra Object", Georgia, serif;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 2px 3px rgba(19, 3, 8, 0.3);
}

.index-page.index-gates .project-select-grid {
  align-self: center;
  width: min(690px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 24px);
}

.index-page.index-gates .project-gate-frame {
  position: relative;
  display: block;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(244, 228, 218, 0.2);
  border-radius: 6px;
  background: rgba(25, 8, 13, 0.42);
  box-shadow:
    inset 0 9px 18px rgba(0, 0, 0, 0.34),
    0 18px 40px rgba(22, 4, 9, 0.25);
}

.index-page.index-gates .project-gate {
  position: relative;
  width: 100%;
  height: clamp(225px, 38vh, 340px);
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  display: grid;
  align-content: end;
  border: 1px solid rgba(67, 47, 40, 0.28);
  border-radius: 4px;
  color: #2b2420;
  text-align: left;
  text-decoration: none;
  background-color: #dfd4c6;
  background-image: url("./assets/backgrounds/marble-calacatta.webp");
  background-position: center;
  background-size: cover;
  box-shadow:
    0 13px 22px rgba(15, 2, 6, 0.42),
    inset 0 2px 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 280ms cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 280ms ease;
}

.index-page.index-gates .project-gate::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: #806c56;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
  opacity: 0.62;
}

.index-page.index-gates .project-gate:hover {
  transform: translateY(5px);
  box-shadow:
    0 7px 13px rgba(15, 2, 6, 0.34),
    inset 0 8px 13px rgba(83, 49, 45, 0.12);
}

.index-page.index-gates .project-gate:active {
  transform: translateY(11px);
  filter: saturate(1.08);
  box-shadow:
    0 2px 5px rgba(15, 2, 6, 0.32),
    inset 0 13px 20px rgba(81, 47, 41, 0.2),
    inset 0 0 0 2px rgba(105, 38, 51, 0.32);
}

.index-page.index-gates .project-gate:focus-visible {
  outline: 3px solid #d5bd98;
  outline-offset: 4px;
}

.index-page.index-gates .project-gate-index {
  display: block;
  margin-bottom: 10px;
  font-family: "AE Manrope", Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.index-page.index-gates .project-gate-name {
  display: block;
  max-width: 100%;
  font-family: "AE EB Garamond", Georgia, serif;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: 0;
  white-space: nowrap;
}

.index-page.index-gates .project-gate-vibe .project-gate-name {
  color: #315e56;
}

.index-page.index-gates .project-gate-zephyra .project-gate-name {
  color: #751d31;
}

@media (max-width: 620px) {
  .index-page.index-gates {
    min-height: 520px;
    padding: 18px 12px;
  }

  .index-page.index-gates .catalog-index-heading {
    gap: 7px;
  }

  .index-page.index-gates .catalog-logo-sand {
    width: 210px;
  }

  .index-page.index-gates .catalog-index-title {
    font-size: 36px;
  }

  .index-page.index-gates .project-select-grid {
    width: min(340px, 100%);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .index-page.index-gates .project-gate-frame {
    padding: 6px;
  }

  .index-page.index-gates .project-gate {
    height: 128px;
    padding: 16px 20px;
  }

  .index-page.index-gates .project-gate::before {
    top: 50%;
    right: 18px;
    left: auto;
    width: 4px;
    height: 34px;
    transform: translateY(-50%);
  }

  .index-page.index-gates .project-gate-name {
    font-size: 36px;
  }
}

@media (max-height: 660px) {
  .index-page.index-gates {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .index-page.index-gates .catalog-logo-sand {
    width: 168px;
  }

  .index-page.index-gates .catalog-index-title {
    font-size: 30px;
  }

  .index-page.index-gates .project-gate {
    height: 174px;
  }
}

@media (max-width: 620px) and (max-height: 660px) {
  .index-page.index-gates .project-gate {
    height: 108px;
  }

  .index-page.index-gates .project-gate-index {
    margin-bottom: 6px;
  }

  .index-page.index-gates .project-gate-name {
    font-size: 32px;
  }
}

/* Catalog chrome: approved prototype 19, Docked Search. */
.catalog-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1560px) / 2));
  border-bottom: 1px solid var(--ae-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(17, 25, 22, 0.03);
  backdrop-filter: blur(16px);
}

.catalog-home {
  grid-column: 1;
}

.catalog-home img {
  width: clamp(150px, 12vw, 190px);
}

.catalog-home span {
  display: none;
}

.catalog-project-toggle {
  grid-column: 3;
  width: 330px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--brand-line);
  border-radius: var(--ae-radius-sm);
  background: var(--brand-soft);
}

.catalog-project-toggle a {
  min-height: 46px;
  border-radius: 5px;
  color: var(--brand);
  font-family: var(--object-font);
  font-size: 15px;
  font-weight: 500;
}

.catalog-project-toggle a:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 55%, #fff);
}

.catalog-project-toggle a.active,
body[data-project="VIBE"] .catalog-project-toggle a.active,
body[data-project="ZEPHYRA"] .catalog-project-toggle a.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--brand) 18%, transparent);
}

.catalog-shell {
  width: min(1560px, calc(100% - 40px));
  padding-top: 20px;
}

.filters {
  top: 100px;
  grid-template-columns:
    minmax(280px, 1fr)
    repeat(3, minmax(126px, 0.34fr))
    150px
    112px
    132px;
  gap: 10px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--brand-line);
  border-radius: var(--ae-radius-md);
  background: color-mix(in srgb, var(--brand-soft) 88%, #fff);
  box-shadow: 0 10px 24px rgba(17, 25, 22, 0.07);
  backdrop-filter: blur(16px);
}

.filters label {
  min-width: 0;
}

.filters label:first-of-type input {
  min-height: 54px;
  border-color: var(--brand-line);
  background: #fff;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(17, 25, 22, 0.07);
}

.filters input,
.filters select {
  width: 100%;
  background-color: #fff;
}

.filters .view-switch,
.filters > button:not(.filters-close) {
  min-height: 46px;
}

.filters #resetFilters {
  color: var(--brand);
  border-color: var(--brand-line);
  background: color-mix(in srgb, var(--brand-soft) 74%, #fff);
}

.filters #resetFilters:hover {
  color: #fff;
  background: var(--brand);
}

@media (max-width: 1280px) {
  .catalog-header {
    padding-inline: 20px;
  }

  .filters {
    grid-template-columns:
      minmax(230px, 1.25fr)
      repeat(3, minmax(116px, 0.52fr))
      142px
      104px;
  }

  .filters #requestSelected {
    display: none;
  }
}

@media (max-width: 980px) {
  .catalog-header {
    min-height: 82px;
  }

  .catalog-project-toggle {
    width: min(330px, 46vw);
  }

  .filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .filters label:first-of-type {
    grid-column: 1 / -1;
  }

  .filters .view-switch,
  .filters > button:not(.filters-close) {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  :root {
    --ae-header-height: 128px;
  }

  .catalog-header {
    min-height: var(--ae-header-height);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 10px;
  }

  .catalog-home,
  .catalog-project-toggle {
    grid-column: 1;
  }

  .catalog-home img {
    width: 116px;
  }

  .catalog-project-toggle {
    width: min(330px, 100%);
  }

  .catalog-project-toggle a {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .catalog-shell {
    width: calc(100% - 16px);
    padding-top: 10px;
  }

  .filter-toggle {
    top: calc(var(--ae-header-height) + 6px);
    min-height: 48px;
    border: 1px solid var(--brand-line);
    color: #fff;
    background: var(--brand);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 16%, transparent);
  }

  .filter-toggle:hover {
    background: var(--brand-strong);
  }

  .filters {
    display: none;
    position: fixed;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: auto 10px 10px;
    z-index: 80;
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-color: var(--brand-line);
    background: color-mix(in srgb, var(--brand-soft) 92%, #fff);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .filters.expanded {
    display: grid;
  }

  .filters label:first-of-type,
  .filters .filters-close {
    grid-column: 1 / -1;
  }

  .filters label:first-of-type input {
    min-height: 50px;
  }

  .filters .view-switch,
  .filters > button:not(.filters-close) {
    grid-column: span 1;
  }

  .filters #requestSelected {
    display: block;
  }
}

@media (max-width: 390px) {
  .filters {
    inset: auto 8px 8px;
    gap: 8px;
    padding: 12px;
  }

  .filters label {
    font-size: 11px;
  }

  .filters input,
  .filters select,
  .filters button {
    font-size: 12px;
  }
}
