/* CFE 625 landing page. Built only on the Cielibre tokens in styles.css (colors, type, spacing).
   Red (--accent) is an accent only: buttons, rules, markers. Never a background field.
   No gradients, no glow. Overlays on photos are flat charcoal at reduced opacity. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-m);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--text-link); }
a:hover { color: var(--text-link-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-display-headline); letter-spacing: var(--ls-display); line-height: var(--lh-tight); margin: 0; }
h2 { font-size: var(--text-display-l); }
h3 { font-size: var(--text-heading-l); font-weight: var(--fw-display-subhead); line-height: var(--lh-snug); }
p { margin: 0 0 var(--space-4); }

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-4); } }

/* small-caps section rule: the Cielibre eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.lede { font-size: var(--text-body-l); line-height: var(--lh-relaxed); color: var(--text-primary); max-width: 62ch; }
.muted { color: var(--text-secondary); }
.fine { font-size: var(--text-body-s); color: var(--text-secondary); }

section { padding: var(--space-24) 0; }
@media (max-width: 640px) { section { padding: var(--space-16) 0; } }
.band { background: var(--surface-band); }
.tonal { background: var(--surface-tonal-1); }
.sec-head { margin-bottom: var(--space-12); }
.sec-head h2 { margin-bottom: var(--space-4); max-width: 22ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-body-m);
  padding: 14px 22px; border-radius: var(--radius-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: filter 120ms ease, transform 80ms ease, background-color 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { filter: brightness(0.92); color: var(--text-on-accent); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-tonal-2); color: var(--text-primary); }
.btn-ghost.on-photo { color: var(--text-on-inverse); border-color: oklch(100% 0 0 / 0.55); }
.btn-ghost.on-photo:hover { background: oklch(100% 0 0 / 0.12); color: var(--text-on-inverse); }
.btn-lg { padding: 17px 28px; font-size: var(--text-body-l); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  color: var(--text-on-inverse);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: var(--surface-page); color: var(--text-primary); border-bottom-color: var(--border-default); }
.mark { font-family: var(--font-display); font-weight: 500; font-size: var(--text-heading-m); letter-spacing: 0.02em; text-decoration: none; color: inherit; }
.mark b { color: var(--accent); font-weight: 500; }
.topbar nav { display: flex; gap: var(--space-6); font-size: var(--text-body-s); font-weight: 500; }
.topbar nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.topbar nav a:hover { opacity: 1; }
.topbar .btn { padding: 9px 16px; font-size: var(--text-body-s); }
@media (max-width: 960px) { .topbar nav { display: none; } }
@media (max-width: 640px) { .topbar { padding: var(--space-3) var(--space-4); } }

/* ---------- parallax ---------- */
.parallax { position: relative; overflow: hidden; }
.parallax > .px-img {
  position: absolute; left: 0; right: 0; top: -10%; height: 120%;
  background-size: cover; background-position: center; will-change: transform;
}
.parallax > .px-shade { position: absolute; inset: 0; background: oklch(22% 0.003 286 / 0.55); }
.parallax > .px-body { position: relative; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--text-on-inverse); }
.hero .px-shade { background: oklch(22% 0.003 286 / 0.50); }
.hero .px-body { width: 100%; padding-top: 140px; padding-bottom: var(--space-16); }
.hero .eyebrow { color: oklch(100% 0 0 / 0.85); }
.hero h1 { font-size: var(--text-display-xl); max-width: 17ch; margin-bottom: var(--space-6); }
.hero .lede { color: oklch(100% 0 0 / 0.92); margin-bottom: var(--space-8); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .addr { margin-top: var(--space-12); font-size: var(--text-body-s); color: oklch(100% 0 0 / 0.78); }

/* ---------- key numbers strip ---------- */
.stats { padding: 0; background: var(--surface-page); border-bottom: 1px solid var(--border-default); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--space-10) var(--space-6); border-left: 1px solid var(--border-default); }
.stat:first-child { border-left: 0; }
.stat .k { font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.stat .v { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-top: var(--space-2); font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 0.5em; font-weight: 400; margin-left: 4px; }
.stat .s { font-size: var(--text-body-s); color: var(--text-secondary); margin-top: var(--space-1); }
@media (max-width: 860px) {
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-default); }
}
@media (max-width: 640px) { .stat { padding: var(--space-6) var(--space-4); } }

/* ---------- property ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: var(--space-10); } }
.spec { width: 100%; border-collapse: collapse; font-size: var(--text-body-m); }
.spec caption { text-align: left; font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); padding-bottom: var(--space-3); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 11px var(--space-3); border-top: 1px solid var(--border-default); }
.spec tr:nth-child(even) { background: var(--surface-tonal-1); }
.spec th { width: 38%; font-weight: 500; color: var(--text-secondary); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--border-default); }
.spec + .spec { margin-top: var(--space-10); }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-16); }
.audience .card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-6); }
.audience .card h3 { font-size: var(--text-heading-s); font-weight: 500; margin-bottom: var(--space-2); }
.audience .card p { margin: 0; font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-normal); }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* ---------- section opener (photo band) ---------- */
.opener { min-height: 62vh; display: flex; align-items: flex-end; color: var(--text-on-inverse); padding: 0; }
.opener .px-body { width: 100%; padding-top: var(--space-24); padding-bottom: var(--space-12); }
.opener .eyebrow { color: oklch(100% 0 0 / 0.85); }
.opener h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 20ch; }
.opener p { color: oklch(100% 0 0 / 0.9); max-width: 58ch; margin-top: var(--space-4); font-size: var(--text-body-l); }

/* ---------- gallery ---------- */
.tabs { display: inline-flex; gap: var(--space-1); background: var(--surface-tonal-2); padding: var(--space-1); border-radius: var(--radius-md); margin-bottom: var(--space-8); }
.tabs button { font: 600 var(--text-body-s) var(--font-body); color: var(--text-secondary); background: transparent; border: 0; padding: 10px 18px; border-radius: 6px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: var(--space-3); }
.photo-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-tonal-2); cursor: zoom-in; }
.photo-grid figure.wide { grid-column: span 2; }
.photo-grid figure.tall { grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 150ms ease; }
.photo-grid figure:hover img { transform: scale(1.03); }
.photo-grid figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.04em; color: var(--text-on-inverse); background: oklch(22% 0.003 286 / 0.7); padding: 4px 8px; border-radius: var(--radius-sm); }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 480px) { .photo-grid figure.wide { grid-column: span 2; } .photo-grid figure.tall { grid-row: span 1; } }

.pano-viewer { width: 100%; aspect-ratio: 16 / 8; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--neutral-800); }
.pano-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.pano-strip button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: none; position: relative; }
.pano-strip button[aria-current="true"] { border-color: var(--accent); }
.pano-strip img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pano-strip span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; color: var(--text-on-inverse); background: oklch(22% 0.003 286 / 0.7); padding: 2px 6px; border-radius: var(--radius-sm); }
@media (max-width: 760px) { .pano-strip { grid-template-columns: repeat(3, 1fr); } .pano-viewer { aspect-ratio: 4 / 3; } }
.pano-hint { margin-top: var(--space-3); }

/* lightbox */
.lightbox { margin: 0; position: fixed; inset: 0; z-index: 100; background: oklch(14% 0.002 286 / 0.94); display: none; align-items: center; justify-content: center; padding: var(--space-6); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--radius-md); }
.lightbox figcaption { color: var(--text-on-inverse); text-align: center; margin-top: var(--space-3); font-size: var(--text-body-s); }
.lightbox button { position: absolute; background: oklch(100% 0 0 / 0.1); color: var(--text-on-inverse); border: 0; width: 44px; height: 44px; border-radius: var(--radius-pill); cursor: pointer; font: 500 22px var(--font-body); }
.lightbox .x { top: var(--space-4); right: var(--space-4); }
.lightbox .prev { left: var(--space-4); top: 50%; }
.lightbox .next { right: var(--space-4); top: 50%; }

/* ---------- concepts ---------- */
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.concept { margin: 0; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.concept .img { position: relative; cursor: zoom-in; }
.concept img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag-render { position: absolute; top: var(--space-3); left: var(--space-3); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); background: var(--surface-card); padding: 5px 9px; border-radius: var(--radius-sm); border-left: 3px solid var(--accent); }
.concept figcaption { padding: var(--space-5) var(--space-6) var(--space-6); }
.concept h3 { font-size: var(--text-heading-m); font-weight: 500; margin-bottom: var(--space-2); }
.concept p { margin: 0; font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-normal); }
@media (max-width: 960px) { .concepts { grid-template-columns: 1fr; } }

/* ---------- income ---------- */
.income { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: center; }
.income .photo { border-radius: var(--radius-lg); overflow: hidden; }
.income .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); }
.checks li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-8); border-top: 1px solid var(--border-default); }
.checks li:last-child { border-bottom: 1px solid var(--border-default); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 2px; background: var(--accent); }
@media (max-width: 900px) { .income { grid-template-columns: 1fr; } }

/* ---------- site plan ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.plan { margin: 0; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.plan .img { background: var(--neutral-0); padding: var(--space-4); cursor: zoom-in; flex: 1; display: flex; align-items: center; }
.plan.photo .img { padding: 0; }
.plan img { width: 100%; height: auto; }
.plan.photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.plan figcaption { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-default); font-size: var(--text-body-s); }
.plan figcaption b { font-weight: 600; display: block; font-size: var(--text-caption); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; }
.bounds { margin-top: var(--space-10); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-10); align-items: start; }
.bounds td.num, .bounds th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .plans, .bounds { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: start; }
.mono { font-family: var(--font-mono); font-size: var(--text-body-s); word-break: break-all; }
.verify { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; }
.verify img { width: 200px; height: 200px; margin: 0 auto var(--space-4); image-rendering: pixelated; padding: 10px; background: var(--neutral-0); }
.verify .cap { font-family: var(--font-display); font-size: var(--text-heading-m); font-weight: 500; }
.verify .sub { font-size: var(--text-body-s); color: var(--text-secondary); margin-top: var(--space-1); }
.appraisal { margin-top: var(--space-10); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-8); background: var(--surface-card); }
.appraisal .big { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; margin: var(--space-2) 0 var(--space-4); }
.appraisal .big small { font-size: 0.45em; font-weight: 400; color: var(--text-secondary); margin-left: 6px; }
.appraisal .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
/* direct children only */
.appraisal .split > div { border-top: 2px solid var(--border-metal); padding-top: var(--space-2); }
.appraisal .split .k { font-size: var(--text-caption); color: var(--text-secondary); letter-spacing: 0.04em; }
.appraisal .split .v { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .appraisal .split { grid-template-columns: 1fr; } }

/* ---------- why SLP ---------- */
.map-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-6); align-items: stretch; }
#map { width: 100%; min-height: 520px; border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--surface-tonal-2); z-index: 0; }
.neighbors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-default); max-height: 520px; overflow-y: auto; }
.neighbors li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--border-default); cursor: pointer; }
.neighbors li:hover { background: var(--surface-tonal-1); }
.neighbors li.self { cursor: default; }
.neighbors .logo { width: 56px; height: 32px; display: flex; align-items: center; justify-content: center; }
.neighbors .logo img { max-width: 56px; max-height: 32px; object-fit: contain; }
.neighbors .logo .pin-self { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--red-100); }
.neighbors b { font-weight: 600; display: block; font-size: var(--text-body-s); }
.neighbors span { font-size: var(--text-caption); color: var(--text-secondary); line-height: 1.35; display: block; }
.nb-pin { position: relative; width: 0; height: 0; cursor: pointer; }
.maplibregl-popup-content { font: 400 var(--text-body-s) var(--font-body); color: var(--text-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.nb-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-700); border: 2px solid var(--neutral-0); }
.nb-line { position: absolute; left: 0; top: 0; height: 1px; background: var(--neutral-500); transform-origin: 0 0; }
.nb-pin .logo-pin { position: absolute; }
.logo-pin { background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px 5px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.logo-pin img { width: 100%; height: 100%; max-width: 100% !important; max-height: 100% !important; object-fit: contain; }
.self-pin { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.self-pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--neutral-0); box-shadow: var(--shadow-md); flex: none; }
.self-pin b { font: 600 12px var(--font-body); color: var(--text-on-inverse); background: var(--neutral-700); padding: 3px 7px; border-radius: var(--radius-sm); }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } #map { min-height: 380px; } .neighbors { max-height: none; } }

.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.point { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6); }
.point .n { font-family: var(--font-display); font-size: var(--text-display-m); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.point h3 { font-size: var(--text-heading-s); font-weight: 600; font-family: var(--font-body); margin: var(--space-2) 0; letter-spacing: 0; }
.point p { font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-normal); margin: 0; }
.point sup a, sup a { font-size: 10px; text-decoration: none; font-weight: 600; margin-left: 1px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
.sub-head { margin: var(--space-16) 0 var(--space-6); }
.sub-head h3 { font-size: var(--text-display-m); font-weight: 500; }
.sources { margin-top: var(--space-10); font-size: var(--text-caption); color: var(--text-tertiary); line-height: var(--lh-normal); }
.sources ol { padding-left: var(--space-5); margin: var(--space-2) 0 0; columns: 2; column-gap: var(--space-8); }
.sources li { break-inside: avoid; margin-bottom: 4px; }
.sources a { color: var(--text-secondary); word-break: break-word; }
@media (max-width: 760px) { .sources ol { columns: 1; } }

/* ---------- contact ---------- */
.contact { color: var(--text-on-inverse); padding: 0; }
.contact .px-shade { background: oklch(22% 0.003 286 / 0.72); }
.contact .px-body { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: var(--space-6); }
.contact .lede { color: oklch(100% 0 0 / 0.9); }
.contact .eyebrow { color: oklch(100% 0 0 / 0.85); }
.contact .direct { margin-top: var(--space-8); font-size: var(--text-body-s); color: oklch(100% 0 0 / 0.8); }
.contact .direct a { color: var(--text-on-inverse); }
.form { background: var(--surface-card); color: var(--text-primary); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-lg); }
.form h3 { font-size: var(--text-heading-l); font-weight: 500; margin-bottom: var(--space-6); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--text-body-s); font-weight: 500; margin-bottom: 6px; }
.field label .opt { color: var(--text-tertiary); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 var(--text-body-m) var(--font-body); color: var(--text-primary);
  background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 11px 12px; transition: border-color 120ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus-ring); outline-offset: 0; border-color: var(--accent); }
.field textarea { min-height: 96px; resize: vertical; }
.phone { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-2); }
.form .btn { width: 100%; justify-content: center; margin-top: var(--space-2); }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-msg { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); font-size: var(--text-body-s); display: none; }
.form-msg.ok { display: block; background: var(--surface-tonal-1); border-left: 3px solid var(--state-success); }
.form-msg.err { display: block; background: var(--surface-accent-subtle); border-left: 3px solid var(--state-danger); }
.form .fine { margin: var(--space-4) 0 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } .phone { grid-template-columns: 120px 1fr; } .form { padding: var(--space-6); } }

/* ---------- footer ---------- */
footer { padding: var(--space-10) 0; font-size: var(--text-body-s); color: var(--text-secondary); border-top: 1px solid var(--border-default); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }

/* floating WhatsApp button on small screens */
.wa-float { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 60; display: none; box-shadow: var(--shadow-lg); }
@media (max-width: 760px) { .wa-float.show { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax > .px-img { transform: none !important; }
}

/* =====================================================================
   v2 · Operator Demo layout on Cielibre tokens (Oct 13)
   Heavy two-tone headlines, numbered eyebrows, white cards on a light
   aluminum stage, KPI-style stat cards. Jost/Work Sans, charcoal + red.
   ===================================================================== */
h1, h2 { font-weight: 600; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.sec-head h2 { max-width: 20ch; }
.hero h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.0; max-width: 15ch; }
.hero h1 em { color: oklch(100% 0 0 / 0.92); font-weight: 400; display: block; font-size: 0.62em; line-height: 1.15; margin-top: var(--space-3); letter-spacing: -0.01em; }
.opener h2 { font-size: clamp(36px, 5vw, 64px); }
.opener h2 em { color: oklch(100% 0 0 / 0.75); }
.contact h2 em { color: oklch(100% 0 0 / 0.75); }
.sub-head h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }

/* numbered eyebrow: "01  THE PROPERTY" */
.eyebrow { color: var(--accent); }
.eyebrow::before { display: none; }
.eyebrow .num { font-variant-numeric: tabular-nums; margin-right: var(--space-2); }
.eyebrow .num::after { content: "·"; margin-left: var(--space-2); }
.hero .eyebrow, .opener .eyebrow, .contact .eyebrow { color: oklch(100% 0 0 / 0.9); }

/* hero badge (sale / lease) */
.badge { display: inline-flex; align-items: stretch; margin-bottom: var(--space-6); border-radius: var(--radius-sm); overflow: hidden; font-size: var(--text-caption); letter-spacing: 0.14em; text-transform: uppercase; }
.badge span { background: var(--neutral-0); color: var(--text-primary); padding: 8px 12px; font-weight: 600; }
.badge b { background: var(--accent); color: var(--text-on-accent); padding: 8px 12px; font-weight: 600; }

/* light aluminum stage, white cards */
body { background: var(--surface-tonal-1); }
section#property, section#gallery, section#income, section#legal, section#slp { background: var(--surface-tonal-1); }
.tonal { background: var(--surface-tonal-2); }

/* KPI stat cards lifted over the hero */
.stats { background: transparent; border: 0; position: relative; z-index: 2; margin-top: -88px; padding: 0 0 var(--space-4); }
.stats .grid { gap: var(--space-4); }
.stat { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.stat:first-child { border-left: 1px solid var(--border-default); }
.stat .v { order: 1; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(32px, 3.8vw, 52px); margin: 0; }
.stat .s { order: 2; margin-top: var(--space-1); }
.stat .k { order: 3; margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--border-default); color: var(--text-primary); }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: 1px solid var(--border-default); } .stat:nth-child(n+3) { border-top: 1px solid var(--border-default); } .stats { margin-top: -56px; } }
@media (max-width: 640px) { .stat { padding: var(--space-4); } .stat .k { margin-top: var(--space-3); } }

/* cards: 14px radius, 1px border, soft lift on hover */
.spec { background: var(--surface-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--border-default); }
.spec caption { padding-left: 2px; }
.spec tr:nth-child(even) { background: var(--surface-tonal-1); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.lot { margin: var(--space-8) 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); border: 1px solid var(--border-default); cursor: zoom-in; }
.lot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lot figcaption { padding: var(--space-3) var(--space-4); font-size: var(--text-body-s); color: var(--text-secondary); }

.features { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.features li { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-4); display: flex; gap: var(--space-3); align-items: flex-start; }
.features svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.features b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-heading-s); line-height: 1.2; }
.features span { font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-snug); }
@media (max-width: 1100px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .features { grid-template-columns: 1fr; } }

.audience { margin-top: var(--space-6); }
.audience .card { padding: 0; overflow: hidden; border-radius: var(--radius-lg); transition: box-shadow 150ms ease, transform 150ms ease; }
.audience .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.audience .card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.audience .card .body { padding: var(--space-5) var(--space-6) var(--space-6); }
.audience .card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-heading-m); letter-spacing: -0.01em; }

.concept, .plan, .point, .verify, .appraisal, .form { border-radius: var(--radius-lg); }
.concept:hover, .plan:hover { box-shadow: var(--shadow-md); }
.point .n { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(28px, 3vw, 40px); }
.plan.wide { margin-bottom: var(--space-6); }
.plans .plan.wide { grid-column: 1 / -1; margin-bottom: 0; }
.plan .img img { image-rendering: auto; }
.appraisal .big { font-weight: 600; letter-spacing: -0.02em; }
.tabs { border-radius: var(--radius-md); }
.stats .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats .grid { gap: var(--space-3); } .stat .v { font-size: 28px; } .stat .s { font-size: 12px; } }

/* concept animations */
.concepts.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.concept video, .concept .img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--neutral-800); }
.concept .replay { position: absolute; right: var(--space-3); bottom: var(--space-3); font: 600 var(--text-caption) var(--font-body); color: var(--text-primary); background: var(--surface-card); border: 0; border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer; }
.concept .replay:hover { filter: brightness(0.92); }
.concept-today .concept.wide { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; }
.concept-today .concept.wide .img { cursor: zoom-in; }
.concept-today figcaption { padding: var(--space-8); }
#build .sub-head { margin: var(--space-12) 0 var(--space-4); }
@media (max-width: 900px) { .concepts.two-up, .concept-today .concept.wide { grid-template-columns: 1fr; } }

/* CTA bands + sources at the bottom */
.cta-band { background: var(--surface-inverse); color: var(--text-on-inverse); padding: var(--space-10) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cta-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.015em; line-height: 1.15; max-width: 26ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.src-wrap { padding: var(--space-10) 0; background: var(--surface-tonal-1); }
.sources { margin: 0; }
.sources summary { cursor: pointer; font-weight: 600; color: var(--text-secondary); font-size: var(--text-body-s); }
.sources[open] summary { margin-bottom: var(--space-3); }
.wa-float.show { display: inline-flex; }

/* KPI tiles (Operator Demo style) */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.kpi { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; min-height: 210px; }
.kpi .v { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(34px, 4vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 0.38em; font-weight: 400; color: var(--text-secondary); margin-left: 6px; letter-spacing: 0; }
.kpi .s { margin-top: var(--space-3); font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-snug); }
.kpi .k { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-default); font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } .kpi { min-height: 0; } .kpi .k { margin-top: var(--space-4); } }

/* ---------- mobile: menu button, bottom action bar ---------- */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px; border-radius: var(--radius-md); flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 120ms ease, opacity 120ms ease; }
.topbar.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.topbar.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .topbar { flex-wrap: wrap; }
  .topbar .top-cta { margin-left: auto; }
  .topbar.menu-open { background: var(--surface-page); color: var(--text-primary); border-bottom-color: var(--border-default); }
  .topbar.menu-open nav { display: flex; flex-direction: column; width: 100%; order: 10; gap: 0; padding: var(--space-2) 0 var(--space-4); font-size: var(--text-body-l); }
  .topbar.menu-open nav a { padding: var(--space-3) 0; border-top: 1px solid var(--border-default); opacity: 1; }
}
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .topbar .top-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .wa-float, .wa-float.show { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--surface-page); border-top: 1px solid var(--border-default); box-shadow: 0 -4px 12px oklch(0% 0 0 / 0.06); transform: translateY(110%); transition: transform 150ms ease; }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { justify-content: center; padding: 13px 12px; }
  body { padding-bottom: 72px; }
  .hero .ctas .btn { width: 100%; justify-content: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .cta-actions { width: 100%; }
  .pano-viewer { min-height: 280px; }
}

/* infrastructure photo cards + schools */
.infra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.infra-card { margin: 0; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.infra-card .img { position: relative; cursor: zoom-in; }
.infra-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.infra-card .credit { position: absolute; right: var(--space-2); bottom: var(--space-2); font-size: 10px; color: var(--text-on-inverse); background: oklch(22% 0.003 286 / 0.65); padding: 2px 6px; border-radius: var(--radius-sm); }
.infra-card figcaption { padding: var(--space-5) var(--space-6) var(--space-6); }
.infra-card .n { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; }
.infra-card h4 { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-heading-s); font-weight: 600; }
.infra-card p { margin: 0; font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-snug); }
.schools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.school { background: var(--surface-card); border: 1px solid var(--border-default); border-top: 3px solid var(--accent); border-radius: var(--radius-md); padding: var(--space-5); }
.school b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-heading-s); margin-bottom: var(--space-2); }
.school span { font-size: var(--text-body-s); color: var(--text-secondary); line-height: var(--lh-snug); }
@media (max-width: 900px) { .infra { grid-template-columns: 1fr; } .schools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .schools { grid-template-columns: 1fr; } }

/* ---------- cleaner top menu (no wordmark), red underline on hover / active ---------- */
.topbar { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.topbar nav { gap: var(--space-8); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar nav a { position: relative; opacity: 0.88; padding: var(--space-3) 0; transition: opacity 120ms ease, color 120ms ease; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 150ms ease; }
.topbar nav a:hover, .topbar nav a.active { opacity: 1; }
.topbar nav a:hover::after, .topbar nav a.active::after { transform: scaleX(1); }
.topbar.solid nav a.active { color: var(--accent); }
@media (max-width: 960px) {
  .topbar nav { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: var(--text-body-l); }
  .topbar.menu-open nav a::after { display: none; }
  .topbar.menu-open nav a.active { color: var(--accent); }
}

/* hero: NAI-style two-tone headline + highlight chips */
.hero h1 { max-width: 22ch; }
.hero h1 em { color: var(--red-300); font-weight: 600; font-size: 1em; display: block; margin-top: 0; letter-spacing: -0.02em; line-height: 1.0; }
.hero-points { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-points li { font-size: var(--text-body-s); font-weight: 600; letter-spacing: 0.02em; color: var(--text-on-inverse); border: 1px solid oklch(100% 0 0 / 0.45); border-radius: var(--radius-pill); padding: 6px 14px; background: oklch(22% 0.003 286 / 0.35); }

/* hero headline: all white, brand-red bar underneath (Oct 13) */
.hero h1 em { color: var(--text-on-inverse); }
.hero h1::after { content: ""; display: block; width: 96px; height: 6px; background: var(--accent); border-radius: 2px; margin-top: var(--space-5); }

/* school cards with logos */
.schools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.school { display: flex; flex-direction: column; }
.school .slogo { height: 56px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: var(--space-4); }
.school.more { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-6); align-items: center; }
.school.more .mlogos { grid-row: span 2; display: flex; gap: var(--space-4); align-items: center; }
.school.more .mlogos img { height: 48px; width: auto; }
.hire-note { margin: var(--space-6) 0 var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface-card); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-family: var(--font-display); font-size: var(--text-heading-s); font-weight: 500; }
@media (max-width: 900px) { .schools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .schools { grid-template-columns: 1fr; } .school.more { grid-template-columns: 1fr; } .school.more .mlogos { grid-row: auto; margin-bottom: var(--space-3); } }

/* language switcher */
.lang-switch { display: flex; gap: 2px; margin-left: auto; margin-right: var(--space-4); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.lang-switch a { color: inherit; text-decoration: none; opacity: 0.7; padding: 6px 7px; border-radius: var(--radius-sm); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 960px) {
  .lang-switch { order: 11; width: 100%; margin: 0; display: none; padding-bottom: var(--space-3); font-size: 13px; }
  .topbar.menu-open .lang-switch { display: flex; }
}
/* CJK: system Chinese fonts after the Latin faces */
html[lang^="zh"] body { font-family: "Work Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] .stat .v, html[lang^="zh"] .kpi .v { font-family: "Jost", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; letter-spacing: 0; }
html[lang="ja"] body { font-family: "Work Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .stat .v, html[lang="ja"] .kpi .v { font-family: "Jost", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; letter-spacing: 0; }
