/* StorLuxury — shared styles. Palette is drawn from the Twain renderings:
   midnight sky, cobalt diamond panels, stacked stone, and twilight amber. */
:root {
  --ink: #0a1424;
  --ink-2: #101d33;
  --ink-3: #18294a;
  --line: rgba(196, 214, 245, 0.14);
  --cobalt: #2f6fe0;
  --cobalt-2: #5b8ff0;
  --sky: #a9c4ef;
  --stone: #b9a68f;
  --amber: #e7a35a;
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --text: #e9eef7;
  --muted: #9fb0cc;
  --text-dark: #14203a;
  --muted-dark: #56627a;
  --ok: #4cc38a;
  --hold: #e7a35a;
  --leased: #6b778d;
  --radius: 14px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 16px; letter-spacing: 0.005em; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: 26px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(10,20,36,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid { background: rgba(10, 20, 36, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font: 600 15px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; }
.brand-word b { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #dfe7f5; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 16px; justify-content: center; border: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,20,36,.7) 0%, rgba(10,20,36,.25) 55%, rgba(10,20,36,0) 80%),
    linear-gradient(180deg, rgba(10,20,36,.55) 0%, rgba(10,20,36,.05) 35%, rgba(10,20,36,.55) 70%, var(--ink) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 160px 0 88px; }
.hero h1 { max-width: 900px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lede { color: #d7e1f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(231,163,90,.14); border: 1px solid rgba(231,163,90,.45); color: #f6d3a8;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(231,163,90,.25); }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-light { background: var(--paper); color: var(--text-dark); }
.section-light .lede, .section-light .muted { color: var(--muted-dark); }
.section-light a { color: var(--cobalt); }
.section-alt { background: var(--ink-2); }
.section-head { display: grid; gap: 8px; margin-bottom: 48px; max-width: 760px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 500 44px/1 var(--serif); color: #fff; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--paper-2); border: 1px solid var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.amenity { background: var(--paper); padding: 30px 28px; }
.amenity svg { width: 34px; height: 34px; color: var(--cobalt); margin-bottom: 18px; }
.amenity h3 { font-size: 24px; margin-bottom: 8px; }
.amenity p { color: var(--muted-dark); margin: 0; font-size: 15px; }

/* Split media */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px;
  background: var(--cobalt); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* Unit classes */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.class-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  display: flex; flex-direction: column; gap: 6px;
}
.class-card .dims { font: 500 34px/1.1 var(--serif); color: #fff; }
.class-card .meta { color: var(--muted); font-size: 14px; }
.class-card p { color: #c7d3e8; font-size: 15px; margin: 10px 0 18px; flex: 1; }
.class-card .avail { font-size: 13px; color: var(--ok); font-weight: 600; letter-spacing: .04em; }
.class-card button { align-self: flex-start; }

/* Site map */
.map-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1000px) { .map-body { grid-template-columns: minmax(0, 1fr); } }
.map-scroll { overflow-x: auto; padding: 24px 18px; -webkit-overflow-scrolling: touch; }
.map-scroll svg { min-width: 760px; width: 100%; height: auto; display: block; }
.map-hint { display: none; font-size: 13px; color: var(--muted); padding: 0 18px 14px; }
@media (max-width: 900px) { .map-hint { display: block; } }

.unit rect.body { fill: #20365e; stroke: #0a1424; stroke-width: .6; transition: fill .15s; cursor: pointer; }
.unit .label { fill: #dce6f7; font: 600 5px var(--sans); pointer-events: none; text-anchor: middle; }
.unit .door { stroke: var(--sky); stroke-width: 1.4; opacity: .7; pointer-events: none; }
.unit:hover rect.body, .unit:focus-visible rect.body { fill: var(--cobalt); }
.unit:focus { outline: none; }
.unit:focus-visible rect.body { stroke: var(--amber); stroke-width: 1.2; }
.unit.is-selected rect.body { fill: var(--amber); }
.unit.is-selected .label { fill: var(--ink); }
.unit.is-held rect.body { fill: #5b4a35; cursor: not-allowed; }
.unit.is-leased rect.body { fill: #2a3346; cursor: not-allowed; }
.unit.is-dim { opacity: .28; }
.map-ground { fill: #0d1a2e; }
.map-aisle { fill: #142540; }
.map-text { fill: var(--muted); font: 600 6px var(--sans); letter-spacing: .25em; }
.map-street { fill: #1c2b45; }

.unit-panel { border-left: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 360px; min-width: 0; }
.unit-panel .spec { align-self: stretch; }
@media (max-width: 1000px) { .unit-panel { border-left: 0; border-top: 1px solid var(--line); min-height: 0; } }
.unit-panel .empty { color: var(--muted); }
.unit-panel h3 { margin: 0; font-size: 34px; }
.unit-panel .cls { color: var(--amber); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.spec div { background: var(--ink-2); padding: 12px 14px; }
.spec dt { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.spec dd { margin: 2px 0 0; font-weight: 600; color: #fff; }
.unit-panel ul { margin: 0; padding-left: 18px; color: #c7d3e8; font-size: 14px; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-available { background: rgba(76,195,138,.15); color: var(--ok); }
.status-held { background: rgba(231,163,90,.15); color: var(--hold); }
.status-leased { background: rgba(107,119,141,.25); color: #b5bfd0; }

/* Form */
.form-card { background: #fff; color: var(--text-dark); border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(10,20,36,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted-dark); }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #cfd6e3; background: #fbfcfe;
  font: 15px/1.4 var(--sans); color: var(--text-dark);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
textarea { min-height: 110px; resize: vertical; }
.selected-units { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; align-items: center; padding: 8px; border: 1px dashed #cfd6e3; border-radius: 10px; }
.selected-units .empty { color: var(--muted-dark); font-size: 14px; padding-left: 6px; }
.unit-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 14px; font-weight: 600; }
.unit-tag button { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted-dark); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.error { color: #b42318; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success h3 { font-size: 40px; }

/* Location card (home) */
.loc-card { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 20px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.loc-card img { height: 100%; object-fit: cover; min-height: 320px; }
.loc-card .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.loc-card .soon { border: 1px dashed var(--line); background: transparent; }
@media (max-width: 860px) { .loc-card { grid-template-columns: 1fr; } }
.loc-future { margin-top: 18px; padding: 28px; border-radius: 20px; border: 1px dashed var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 40px/1 var(--serif); color: var(--amber); display: block; margin-bottom: 12px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--paper-2); padding: 20px 0; }
.faq summary { cursor: pointer; font: 500 24px/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted-dark); margin: 12px 0 0; max-width: 760px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Simple pages */
.page { padding: 150px 0 100px; }
.page .prose { max-width: 760px; }
.page .prose h2 { font-size: 32px; margin-top: 40px; }
.page .prose p, .page .prose li { color: #c7d3e8; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
