/* Mercantil Plaza — editorial architecture site */

:root {
  /* Default palette: "Bone" */
  --bg: #f4f1ea;
  --bg-2: #ece8df;
  --ink: #0e0e0e;
  --ink-2: #2a2724;
  --muted: #6b6660;
  --hair: rgba(14, 14, 14, 0.14);
  --hair-strong: rgba(14, 14, 14, 0.4);
  --accent: #c7531b;
  --accent-ink: #f4f1ea;
  --img-filter: grayscale(1) contrast(1.05) brightness(0.96);

  /* Typography */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Spacing rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1640px;
}

[data-palette="lime"] {
  --accent: #c4f048;
  --accent-ink: #0e0e0e;
}
[data-palette="cobalt"] {
  --accent: #1e3df0;
  --accent-ink: #f4f1ea;
}
[data-palette="mono"] {
  --accent: #0e0e0e;
  --accent-ink: #f4f1ea;
}

[data-theme="dark"] {
  --bg: #0c0c0c;
  --bg-2: #161513;
  --ink: #f0ece4;
  --ink-2: #d8d4cc;
  --muted: #8e8a83;
  --hair: rgba(240, 236, 228, 0.16);
  --hair-strong: rgba(240, 236, 228, 0.42);
  --img-filter: grayscale(1) contrast(1.1) brightness(0.78);
}
[data-theme="dark"][data-palette="bone"] {
  --accent: #e07238;
}
[data-theme="dark"][data-palette="lime"] {
  --accent: #d4ff52;
  --accent-ink: #0e0e0e;
}
[data-theme="dark"][data-palette="cobalt"] {
  --accent: #6a7eff;
  --accent-ink: #0c0c0c;
}
[data-theme="dark"][data-palette="mono"] {
  --accent: #f0ece4;
  --accent-ink: #0c0c0c;
}

/* Type system variants */
[data-type="grotesk"] {
  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}
[data-type="serif"] {
  --f-display: "Instrument Serif", serif;
  --f-body: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 280ms ease, color 280ms ease;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* ---------- Utility ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; }
.h1 { font-family: var(--f-display); font-size: clamp(56px, 12vw, 220px); line-height: 0.88; letter-spacing: -0.04em; font-weight: 400; }
.h2 { font-family: var(--f-display); font-size: clamp(42px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.03em; font-weight: 400; }
.h3 { font-family: var(--f-display); font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -0.02em; font-weight: 400; }
[data-type="grotesk"] .h1,
[data-type="grotesk"] .h2,
[data-type="grotesk"] .h3 { font-weight: 500; letter-spacing: -0.045em; }

.hair { border-top: 1px solid var(--hair); }
.hair-strong { border-top: 1px solid var(--hair-strong); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.brand-img {
  height: 44px;
  width: auto;
  display: block;
}
[data-theme="dark"] .brand-img-dark { display: none; }
[data-theme="light"] .brand-img-light,
:root:not([data-theme]) .brand-img-light { display: none; }
.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 6px 2px;
  opacity: 0.8;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.langswitch {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  padding: 3px;
}
.langswitch button {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
}
.langswitch button.on {
  background: var(--ink);
  color: var(--bg);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 200ms;
}
.cta:hover { transform: translateY(-1px); }
.cta.accent { background: var(--accent); color: var(--accent-ink); }
.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair-strong);
}
.cta .arrow {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.cta .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 96px) 0 0;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}
/* Hero variants */
.hero-inner[data-variant="tower"] {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}
.hero-inner[data-variant="tower"] .hero-image {
  aspect-ratio: 21/9;
}
.hero-inner[data-variant="tower"] .hero-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hair-strong);
}
@media (min-width: 880px) {
  .hero-inner[data-variant="tower"] .hero-foot {
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 5vw, 80px);
  }
}
@media (min-width: 980px) {
  .hero-inner[data-variant="grid"] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
  }
  .hero-inner[data-variant="marquee"] {
    display: flex;
    flex-direction: column;
  }
}

.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.hero-eyebrow .blink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow .blink::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(64px, 16vw, 280px);
  line-height: 0.84;
  letter-spacing: -0.045em;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.hero-title .row {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.05em;
}
.hero-title .stretch { letter-spacing: -0.035em; }
.hero-title .italic { font-style: italic; }

.hero-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--hair-strong);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.35;
  max-width: 38ch;
  color: var(--ink-2);
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-meta .row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hero-meta .row strong { color: var(--ink); font-weight: 500; }

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  background: var(--bg-2);
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.hero-image img,
.bldg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
  transition: filter 280ms ease, transform 600ms ease;
}
.hero-image:hover img { transform: scale(1.02); }
.hero-image .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, color-mix(in oklch, var(--bg) 55%, transparent) 100%);
}
.hero-image .tag {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
}
.hero-image .corner {
  position: absolute;
  bottom: 20px; right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--bg);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-image .corner .lat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* Grid variant cells */
.hero-inner[data-variant="grid"] .cell-title { grid-column: 1 / span 8; }
.hero-inner[data-variant="grid"] .cell-img { grid-column: 9 / -1; grid-row: 1 / span 2; }
.hero-inner[data-variant="grid"] .cell-meta { grid-column: 1 / span 4; }
.hero-inner[data-variant="grid"] .cell-sub { grid-column: 5 / span 4; }

/* Marquee variant */
.hero-inner[data-variant="marquee"] .hero-image {
  margin-top: 32px;
  aspect-ratio: 21/9;
}

/* ---------- Ticker band ---------- */
.tickerband {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 96px);
}
.tickerband .track {
  display: flex;
  gap: 64px;
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  animation: ticker 38s linear infinite;
}
.tickerband .track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.tickerband .track span::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Pitch ---------- */
.pitch {
  padding: clamp(80px, 12vw, 180px) 0;
}
.pitch-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 980px) {
  .pitch-inner { grid-template-columns: 1fr 1.4fr; gap: clamp(48px, 8vw, 120px); }
}
.pitch-lede {
  font-family: var(--f-display);
  font-size: clamp(42px, 5vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pitch-lede .italic { font-style: italic; color: var(--accent); }
.pitch-body p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 1em;
  text-wrap: pretty;
}
.pitch-body p + p { margin-top: 1.2em; }

/* ---------- Section header ---------- */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--hair);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 880px) {
  .section-head { grid-template-columns: 0.5fr 1fr 0.6fr; align-items: end; }
}
.section-head .meta { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { margin: 0; }
.section-head .aside {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 38ch;
  justify-self: end;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair-strong);
  border-left: 1px solid var(--hair-strong);
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }
.stat {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--hair-strong);
  border-right: 1px solid var(--hair-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  min-height: 200px;
}
.stat .n {
  font-family: var(--f-display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.stat .label {
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
}
.stat .sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat .ord {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Location diagram ---------- */
.loc-canvas {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hair-strong);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.loc-canvas .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 8.333% 12.5%;
  pointer-events: none;
}
.loc-canvas .compass {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-canvas .label-mp {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.loc-canvas .label-mp .dot {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 999px;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 35%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 35%, transparent); }
  50% { box-shadow: 0 0 0 14px color-mix(in oklch, var(--accent) 0%, transparent); }
}
.loc-canvas .label-mp .name {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.loc-canvas .pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.loc-canvas .pin .marker {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  transform: rotate(45deg);
}
.loc-canvas .pin .pname {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--bg);
  padding: 3px 6px;
  border: 1px solid var(--hair-strong);
  color: var(--ink);
}
.loc-canvas .pin .pdist {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.loc-canvas .ray {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%;
  height: 1px;
  background: var(--hair);
  transform-origin: 0 0;
  pointer-events: none;
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 980px) { .loc-grid { grid-template-columns: 1.6fr 1fr; } }
.loc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair-strong);
}
.loc-list .row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  align-items: baseline;
}
.loc-list .row .ord { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; }
.loc-list .row .nm { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; }
.loc-list .row .dm { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Floor stack ---------- */
.stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 980px) { .stack { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.stack-viz {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hair-strong);
}
.stack-viz .floor {
  display: grid;
  grid-template-columns: 56px 1fr 90px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
  align-items: center;
  cursor: pointer;
  transition: background 160ms;
  position: relative;
}
.stack-viz .floor:last-child { border-bottom: 0; }
.stack-viz .floor:hover { background: var(--bg-2); }
.stack-viz .floor.active { background: var(--ink); color: var(--bg); }
.stack-viz .floor.active .lvl,
.stack-viz .floor.active .meta { color: color-mix(in oklch, var(--bg) 70%, var(--ink)); }
.stack-viz .floor .lvl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.stack-viz .floor .bar {
  height: 12px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.stack-viz .floor .bar .seg {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--accent);
}
.stack-viz .floor .bar .seg.leased { background: var(--hair-strong); }
.stack-viz .floor .meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
}
.stack-viz .ground {
  padding: 10px 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  background: var(--bg-2);
}

.suite-list {
  display: flex;
  flex-direction: column;
}
.suite-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.suite-filter button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.suite-filter button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.suite-floor {
  border-top: 1px solid var(--hair-strong);
  padding: 24px 0;
}
.suite-floor .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.suite-floor .head .h {
  font-family: var(--f-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.suite-floor .head .s {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.suites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.suite {
  padding: 14px;
  border: 1px solid var(--hair-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background 160ms, transform 160ms;
  cursor: pointer;
}
.suite:hover { background: var(--bg-2); transform: translateY(-2px); }
.suite.leased { opacity: 0.5; cursor: not-allowed; }
.suite.leased:hover { transform: none; background: transparent; }
.suite .id { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.suite .sz { font-family: var(--f-display); font-size: 28px; letter-spacing: -0.02em; }
.suite .st { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }
.suite .st.av { color: var(--accent); }
.suite .st.lz { color: var(--muted); }
.suite .dot {
  position: absolute;
  top: 14px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.suite.leased .dot { background: var(--hair-strong); }

/* ---------- Amenities ---------- */
.amen-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair-strong);
}
.amen-grid .row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: center;
}
.amen-grid .row .ord { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; }
.amen-grid .row .k {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  transition: transform 200ms, color 200ms;
}
.amen-grid .row:hover .k { transform: translateX(8px); color: var(--accent); }
.amen-grid .row .v {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.amen-grid .row .v.add { color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 70px;
  gap: 8px;
}
.bldg-img {
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hair);
}
.bldg-img:hover img { transform: scale(1.03); }
.bldg-img.color img { filter: contrast(1.04) saturate(1.05); }
.bldg-img .cap {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 4px 8px;
  border: 1px solid var(--hair-strong);
}
.bldg-img.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-2),
      var(--bg-2) 8px,
      var(--bg) 8px,
      var(--bg) 16px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.bldg-img.placeholder .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid var(--hair-strong);
}
/* 10-cell editorial masonry */
.gallery .g1  { grid-column: 1 / span 7;  grid-row: span 6; }
.gallery .g2  { grid-column: 8 / span 5;  grid-row: span 4; }
.gallery .g3  { grid-column: 8 / span 5;  grid-row: span 2; }
.gallery .g4  { grid-column: 1 / span 4;  grid-row: span 4; }
.gallery .g5  { grid-column: 5 / span 4;  grid-row: span 4; }
.gallery .g6  { grid-column: 9 / span 4;  grid-row: span 4; }
.gallery .g7  { grid-column: 1 / span 6;  grid-row: span 5; }
.gallery .g8  { grid-column: 7 / span 6;  grid-row: span 5; }
.gallery .g9  { grid-column: 1 / span 6;  grid-row: span 4; }
.gallery .g10 { grid-column: 7 / span 6;  grid-row: span 4; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 56px; gap: 4px; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5,
  .gallery .g6, .gallery .g7, .gallery .g8, .gallery .g9, .gallery .g10 {
    grid-column: span 6;
    grid-row: span 3;
  }
}

/* ---------- Neighborhood ---------- */
.hood {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hair-strong);
}
@media (min-width: 720px) { .hood { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .hood { grid-template-columns: repeat(4, 1fr); } }
.hood-col {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--hair-strong);
  border-bottom: 1px solid var(--hair-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.hood-col h4 {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.hood-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hood-col li {
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hood-col li::after {
  content: "5min";
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.contact-lhs h3 { margin: 0 0 16px; }
.contact-lhs p { font-size: 18px; color: var(--ink-2); max-width: 32ch; line-height: 1.4; }
.contact-direct {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hair-strong);
}
.contact-direct .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-direct .ph { font-family: var(--f-display); font-size: 32px; letter-spacing: -0.02em; }
.contact-direct .em { font-family: var(--f-mono); font-size: 13px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hair-strong);
  border-left: 1px solid var(--hair-strong);
}
.field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hair-strong);
  border-right: 1px solid var(--hair-strong);
  padding: 16px;
  background: var(--bg);
  transition: background 160ms;
}
.field:focus-within { background: var(--bg-2); }
.field.full { grid-column: span 2; }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  border: 0;
  background: transparent;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  outline: none;
  letter-spacing: -0.01em;
  width: 100%;
  resize: none;
}
.field textarea { font-family: var(--f-body); font-size: 16px; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-submit {
  grid-column: span 2;
  padding: 24px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid var(--hair-strong);
  border-right: 1px solid var(--hair-strong);
}
.form-submit .note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 60%, transparent);
}
.form-submit button {
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
  margin-top: 80px;
}
footer .wrap { color: var(--bg); }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  border-top: 1px solid color-mix(in oklch, var(--bg) 18%, transparent);
  padding-top: 40px;
}
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-wm-wrap {
  margin: 0 0 32px;
  display: flex;
  align-items: flex-start;
}
.foot-wm-img {
  height: clamp(120px, 16vw, 220px);
  width: auto;
  display: block;
}
.foot-col h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 60%, transparent);
  margin: 0 0 12px;
  font-weight: 400;
}
.foot-col p, .foot-col a, .foot-col li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bg);
  white-space: pre-line;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.foot-col a:hover { color: var(--accent); }
.foot-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklch, var(--bg) 18%, transparent);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 60%, transparent);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 14px 18px 14px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: transform 200ms ease;
}
.float-cta:hover { transform: translateY(-2px); }

/* ---------- Cursor blob (accent) ---------- */
.cursor-blob {
  position: fixed;
  pointer-events: none;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 999px;
  mix-blend-mode: multiply;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, width 220ms ease, height 220ms ease;
  opacity: 0;
}
[data-theme="dark"] .cursor-blob { mix-blend-mode: screen; }

/* ---------- Hero color image override ---------- */
.hero-image.color img,
.hero-image.color { /* opt-out of B&W treatment */ }
.hero-image.color img {
  filter: contrast(1.04) saturate(1.05);
}

/* ---------- Before / After slider ---------- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--hair-strong);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba .ba-after {
  /* Clipped from the right by --pct */
  clip-path: inset(0 calc(100% - var(--pct, 50%)) 0 0);
}
.ba .ba-label {
  position: absolute;
  top: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--hair-strong);
  pointer-events: none;
  z-index: 2;
}
.ba .ba-label.before { left: 18px; }
.ba .ba-label.after { right: 18px; }
.ba .ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  left: var(--pct, 50%);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 40%, transparent);
}
.ba .ba-knob {
  position: absolute;
  top: 50%;
  left: var(--pct, 50%);
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: ew-resize;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.ba .ba-knob:hover,
.ba.dragging .ba-knob {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
}
.ba .ba-knob::before,
.ba .ba-knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.ba .ba-knob::before {
  left: 14px;
  transform: translateY(-50%) rotate(225deg);
}
.ba .ba-knob::after {
  right: 14px;
}
.ba .ba-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: color-mix(in oklch, var(--ink) 78%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
}
.ba.dragging .ba-hint { opacity: 0; }

.ba-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ba-meta .col strong {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 4px;
  font-weight: 400;
}

/* ---------- Street View embed ---------- */
.sv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  border: 1px solid var(--hair-strong);
  overflow: hidden;
}
.sv-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.sv-frame .sv-corner {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--hair-strong);
  z-index: 2;
  pointer-events: none;
}
.sv-frame .sv-corner::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.sv-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--hair);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sv-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* ---------- Reveal animations (disabled) ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- Mobile responsive ---------- */

/* Disable cursor blob on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-blob { display: none !important; }
}

/* Stack-viz: only sticky on desktop */
@media (max-width: 979px) {
  .stack-viz {
    position: static;
    top: auto;
  }
}

/* Tablet & smaller adjustments */
@media (max-width: 880px) {
  .topbar-inner { height: 56px; gap: 16px; }
  .brand-img { height: 36px; }
  .cta { padding: 9px 12px 9px 14px; font-size: 10px; letter-spacing: 0.14em; }
  .langswitch { font-size: 9px; }
  .langswitch button { padding: 4px 8px; }
  .topright { gap: 10px; }

  .section { padding: clamp(56px, 9vw, 100px) 0; }
  .section-head { gap: 16px; margin-bottom: 32px; }

  /* Stats grid: cleaner 2-up on small */
  .stat { min-height: 160px; padding: 20px 16px 18px; }
  .stat .n { font-size: clamp(36px, 10vw, 56px); }

  /* Pitch: tighter */
  .pitch { padding: clamp(56px, 9vw, 110px) 0; }
  .pitch-lede { font-size: clamp(34px, 8vw, 56px); }

  /* Location diagram pins compress */
  .loc-canvas { aspect-ratio: 4/3; }
  .loc-canvas .pin .pname { font-size: 9px; padding: 2px 4px; }
  .loc-canvas .pin .pdist { font-size: 8px; }
  .loc-canvas .label-mp .name { font-size: 18px; }

  /* Suite grid tighter */
  .suites { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
  .suite { padding: 12px; }
  .suite .sz { font-size: 24px; }

  /* Hero feet — stack */
  .hero-inner[data-variant="tower"] .hero-foot { grid-template-columns: 1fr; gap: 20px; }
  .hero-inner[data-variant="tower"] .hero-image { aspect-ratio: 16/9; }

  /* Before/After tighter */
  .ba { aspect-ratio: 4/3; }
  .ba .ba-label { font-size: 9px; padding: 4px 8px; top: 12px; }
  .ba .ba-label.before { left: 12px; }
  .ba .ba-label.after { right: 12px; }
  .ba .ba-knob { width: 44px; height: 44px; }
  .ba-meta { font-size: 10px; gap: 16px; }
  .ba-meta .col strong { font-size: 18px; }

  /* Footer logo not too huge on mobile */
  .foot-wm-img { height: clamp(80px, 22vw, 140px); }
  .foot-grid { gap: 24px; padding-top: 28px; }

  /* Form fields tighter type */
  .field input, .field select { font-size: 18px; }

  /* Amenities row compact */
  .amen-grid .row { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 14px 0; }
  .amen-grid .row .ord { font-size: 10px; }

  /* Location list */
  .loc-list .row .nm { font-size: 18px; }
  .loc-list .row { grid-template-columns: 20px 1fr auto; gap: 10px; }

  /* Hood columns */
  .hood-col { padding: 22px 18px 24px; min-height: 200px; }
  .hood-col h4 { font-size: 22px; }
  .hood-col li { font-size: 14px; }

  /* Ticker slower scroll, smaller text */
  .tickerband .track { font-size: clamp(22px, 6vw, 36px); gap: 40px; animation-duration: 28s; }
  .tickerband .track span { gap: 40px; }

  /* Smaller floating CTA on mobile */
  .float-cta { padding: 10px 14px; font-size: 10px; letter-spacing: 0.14em; }

  /* Street view */
  .sv-frame { aspect-ratio: 4/3; }
}

/* Phone-sized */
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .topbar-inner { height: 52px; }
  .brand-img { height: 30px; }
  .nav { display: none; }
  .form { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .form-submit { grid-column: span 1; flex-direction: column; align-items: stretch; gap: 14px; }
  .form-submit button { width: 100%; justify-content: center; }
  .gallery { grid-auto-rows: 56px; gap: 4px; }
  .float-cta { right: 12px; bottom: 12px; }

  /* Hero CTAs full-width stack */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .cta { justify-content: center; }

  /* Section heads stack tighter */
  .section-head .aside { font-size: 14px; }

  /* Tweaks panel scale slightly on small screens */
  .twk-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
}

/* Very small */
@media (max-width: 420px) {
  .stat { min-height: 140px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .float-cta span:not(.arrow) { display: none; }
  .float-cta { padding: 12px; }
}

