/* ============================================================
   SECTION 2 — NEOPOLIS OVERVIEW  (editorial full-bleed split)
   ============================================================ */

/* ---------- Section shell ---------- */
.section-overview {
  position: relative;
  background: var(--jet);
  overflow: hidden;
  min-height: 100vh;
}

/* faint serif watermark — left-anchored so it stays behind content */
.ov-watermark {
  position: absolute;
  bottom: -4%;
  left: -1%;
  z-index: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---------- Full-bleed two-column grid ---------- */
.ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 100vh;
}

/* ---------- Left: content panel ---------- */
.ov-content-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: clamp(5rem, 8vh, 8rem);
  padding-bottom: clamp(4rem, 6vh, 6rem);
  /* align left edge with container in other sections */
  padding-left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

/* subtle vertical gold seam at the split */
.ov-content-panel::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(198, 161, 91, 0.28) 22%,
    rgba(198, 161, 91, 0.28) 78%,
    transparent
  );
  pointer-events: none;
}

.ov-content-inner {
  width: 100%;
  max-width: 580px;
  margin-left: auto; /* hug the image split at wide viewports */
}

/* thin gold rule above eyebrow */
.ov-accent-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.4rem;
}

.ov-content-inner .eyebrow {
  margin-bottom: 1.4rem;
  display: inline-block;
}

/* heading — calibrated for a 50vw column */
.section-overview .section-title {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  margin-bottom: 1.25rem;
  line-height: 1.04;
}

.ov-content-inner .lede {
  margin-bottom: 1.8rem;
  max-width: 50ch;
}

/* ---------- Stats 2 × 2 grid ---------- */
.ov-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 1.6rem;
}

.ov-fact {
  padding: 1.1rem 1.2rem 1.1rem 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.45s var(--ease);
}
.ov-fact:hover {
  background: rgba(198, 161, 91, 0.04);
}
/* right column — no right border */
.ov-fact:nth-child(even) {
  border-right: none;
  padding-left: 1.2rem;
  padding-right: 0;
}
/* bottom row — no bottom border */
.ov-fact:nth-child(3),
.ov-fact:nth-child(4) {
  border-bottom: none;
}

.ov-fact .n {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.ov-fact .l {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ---------- Highlights ---------- */
.ov-highlights {
  display: flex;
  flex-direction: column;
}

.ov-hl {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 0;
  border-top: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}
.ov-hl:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.ov-hl:hover {
  background: rgba(198, 161, 91, 0.03);
}

.ov-hl .ico {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.7rem;
  transition:
    border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.ov-hl:hover .ico {
  border-color: rgba(198, 161, 91, 0.5);
  background: rgba(198, 161, 91, 0.06);
}
.ov-hl .tx b {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--paper);
  display: block;
  line-height: 1.3;
}
.ov-hl .tx span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Right: image panel ---------- */
.ov-image-panel {
  position: relative;
  overflow: hidden;
}

.ov-image-wrap {
  position: absolute;
  inset: 0;
}

.ov-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* base scale gives headroom for parallax translateY without gaps */
  transform: scale(1.08) translateY(0);
  will-change: transform;
}

/* left gradient melts image into the dark content panel */
.ov-image-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--jet) 0%,
      rgba(0, 0, 0, 0.55) 16%,
      rgba(0, 0, 0, 0.1) 38%,
      transparent 56%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.18) 28%,
      transparent 50%
    );
  pointer-events: none;
}

/* corner bracket accents */
.ov-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}
.ov-corner.top-right {
  top: 2rem;
  right: 2rem;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}
.ov-corner.bottom-left {
  bottom: 2rem;
  left: 2rem;
  border-bottom: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

/* glassmorphic floating badge */
.ov-badge {
  position: absolute;
  bottom: 3rem;
  right: 2.5rem;
  z-index: 5;
  background: rgba(7, 7, 8, 0.58);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(198, 161, 91, 0.26);
  padding: 1.1rem 1.6rem;
  border-radius: 2px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  animation: floaty 7s var(--ease) infinite;
}
.ov-badge .n {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-soft);
  line-height: 1;
}
.ov-badge .l {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---------- Responsive: tablet / small desktop ---------- */
@media (max-width: 1000px) {
  .section-overview {
    min-height: auto;
  }
  .ov-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }
  /* image moves above the content on narrow screens */
  .ov-image-panel {
    order: -1;
    height: 60vw;
    min-height: 260px;
    max-height: 460px;
    position: relative;
  }
  .ov-content-panel {
    padding-left: var(--pad);
    padding-right: var(--pad);
    padding-top: 2.8rem;
    padding-bottom: 3.5rem;
  }
  .ov-content-panel::after {
    display: none;
  }
  .ov-content-inner {
    max-width: 100%;
    margin-left: 0;
  }
  .section-overview .section-title {
    font-size: clamp(2rem, 5.2vw, 3rem);
  }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 600px) {
  .ov-image-panel {
    height: 70vw;
    max-height: 380px;
  }
  .section-overview .section-title {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  }
  .ov-badge {
    bottom: 1.4rem;
    right: 1.2rem;
    padding: 0.85rem 1.1rem;
  }
  .ov-badge .n {
    font-size: 1.45rem;
  }
  .ov-corner {
    width: 36px;
    height: 36px;
  }
  .ov-corner.top-right {
    top: 1rem;
    right: 1rem;
  }
  .ov-corner.bottom-left {
    bottom: 1rem;
    left: 1rem;
  }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .ov-image-wrap img {
    transform: scale(1.08) !important;
  }
  .ov-badge {
    animation: none;
  }
}
