:root {
  --ink: #0b1a2d;
  --ruby: #c81e3a;
  --hot: #ff5a3c;
  --cream: #faf6f1;
  --cream-2: #f0e8df;
  --card: #ffffff;
  --muted: #5c6570;
  --line: rgba(11, 26, 45, 0.08);
  --wine: #5c1a2e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --cond: "Barlow Condensed", system-ui, sans-serif;
  --photo: url("assets/3875-ruby-hero.jpg");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: min(88svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
}

.building {
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center 42%;
  filter: saturate(1.05) contrast(1.02);
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 26, 45, 0.3) 0%, transparent 28%, transparent 40%, rgba(11, 26, 45, 0.78) 100%),
    linear-gradient(90deg, rgba(11, 26, 45, 0.28) 0%, transparent 50%);
}

.top,
.hero-copy,
.scroll-hook {
  position: relative;
  z-index: 2;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--ruby);
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(200, 30, 58, 0.4);
}

.brand strong {
  display: block;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.brand span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.age-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.age-pill em {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--hot);
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-style: normal;
  font-weight: 800;
  font-size: 0.95rem;
}

.age-pill span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 7rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.35rem 4.75rem;
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hot);
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.sub {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact {
  display: grid;
  gap: 0.1rem;
  min-width: min(100%, 220px);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(11, 26, 45, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.contact:hover {
  transform: translateY(-1px);
  border-color: var(--hot);
}

.contact .label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

.contact .value {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.contact.email .value {
  color: #ffb4a0;
  font-size: 1.05rem;
}

.scroll-hook {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-hook:hover {
  background: #fff;
}

.chev {
  font-size: 1rem;
  color: var(--ruby);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ——— PAGE 2: scores → map → amenities ——— */
.loc {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--ink);
  padding: 2.75rem 1.35rem 2.75rem;
}

.loc-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ruby);
}

/* Walkability NAP */
.scores-block {
  text-align: center;
  margin-bottom: 1.75rem;
}

.scores-block h2 {
  margin: 0 0 1.25rem;
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.scores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.score {
  min-width: 9.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(11, 26, 45, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.score-n {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--ruby);
}

.score-l {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.score-t {
  font-size: 0.78rem;
  color: var(--muted);
}

.score-note {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Map stands out */
.map-card {
  background: var(--card);
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(11, 26, 45, 0.1);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.map-frame {
  min-height: 420px;
  background: #dfe6ef;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.1) contrast(1.04);
}

.map-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
}

.pin-live {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7dffa8;
}

.map-card-foot a {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  opacity: 0.9;
}

.map-card-foot a:hover {
  color: var(--hot);
}

/* Amenities stand out */
.amenities-block {
  margin-bottom: 1.25rem;
}

.amenities-block h2 {
  margin: 0 0 1rem;
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.perk-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.perk-strip li {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: var(--card);
  border: 2px solid rgba(200, 30, 58, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(11, 26, 45, 0.06);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.perk-strip li:hover {
  border-color: rgba(200, 30, 58, 0.45);
  transform: translateY(-2px);
}

.perk-strip strong {
  display: block;
  font-family: var(--cond);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: var(--ruby);
}

.tenant-soon {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

.tenant-soon-badge {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tenant-soon-body h3 {
  margin: 0 0 0.2rem;
  font-family: var(--cond);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tenant-soon-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.85;
}

.tenant-soon-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.map-foot {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  color: var(--ink);
}

.map-foot a {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ruby);
  border-bottom: 2px solid rgba(200, 30, 58, 0.3);
}

.map-foot a:hover {
  border-bottom-color: var(--ruby);
}

.map-foot span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .perk-strip {
    grid-template-columns: 1fr 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 300px;
  }

  .score {
    min-width: 7.5rem;
  }

  .score-n {
    font-size: 2.8rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 78svh;
  }

  .perk-strip {
    grid-template-columns: 1fr;
  }

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

  .contact .value {
    font-size: 1.1rem;
  }

  .scroll-hook {
    font-size: 0.62rem;
    max-width: calc(100% - 2rem);
    white-space: normal;
    text-align: center;
  }

  .score-note {
    font-size: 0.82rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-hook {
    animation: none;
  }
  .contact,
  .perk-strip li {
    transition: none;
  }
}
