/* --- Shared text roles --- */

.scene-lead { max-width: 38rem; font-size: 1.05rem; }
.scene--blueprint .scene-lead { color: var(--blueprint-muted); }
.scene--paper .scene-lead { color: var(--paper-muted); }

.scene-note { font-size: 0.88rem; max-width: 40rem; }
.scene--blueprint .scene-note { color: var(--blueprint-muted); }
.scene--paper .scene-note { color: var(--paper-muted); }

/* --- Field annotation: the mono "plotted note" treatment for key figures --- */

.field-mark {
  width: 0.65em;
  height: 0.65em;
  fill: currentcolor;
  opacity: 0.6;
  margin-right: 0.5em;
  vertical-align: middle;
  flex: none;
}

/* --- Waypoint mark: the CTA, styled as a plotted point, not a pill button --- */

.waypoint {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.5rem;
  padding: 0.85em 1.5em 0.85em 1.1em;
  border: 1px solid currentcolor;
  text-decoration: none;
  font-family: var(--font-data);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.waypoint::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid currentcolor;
  border-radius: 50%;
  flex: none;
}
.waypoint--primary {
  background: var(--paper-accent-fill);
  border-color: var(--paper-accent-fill);
  color: var(--paper-accent-fill-ink);
}
.scene--blueprint .waypoint--primary {
  background: var(--blueprint-accent);
  border-color: var(--blueprint-accent);
  color: var(--blueprint-bg-deep);
}
.waypoint--secondary {
  background: transparent;
}
.scene--blueprint .waypoint--secondary { color: var(--blueprint-ink); }
.scene--paper .waypoint--secondary { color: var(--paper-ink); }
.waypoint--secondary:hover { background: rgb(255 255 255 / 0.08); }

/* --- Hero --- */

.scene--hero {
  text-align: left;
  position: relative;
  overflow: hidden;
  background: var(--blueprint-bg);
}
.hero-bg {
  position: absolute;
  inset: -8% -4%;
  background-image: url("/media/gallery/exterior-facade-twin-townhouses.webp");
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) contrast(340%) brightness(0.62);
  mix-blend-mode: screen;
  opacity: 0.8;
  clip-path: inset(0 0% 0 0);
  transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Draw-in start state, applied only by JS right before the transition runs —
   if JS never runs, the background stays fully visible (correct fallback). */
.hero-bg--reveal-start { clip-path: inset(0 100% 0 0); }
@media (prefers-reduced-motion: reduce) {
  .hero-bg--reveal-start { clip-path: inset(0 0% 0 0); transition: none; }
}
.scene--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Guarantees text-column contrast regardless of what the photo shows underneath:
     fully opaque blueprint behind the left ~65% (where every line of copy sits),
     only fading toward the photo on the empty right side. */
  background: linear-gradient(90deg, var(--blueprint-bg) 0%, var(--blueprint-bg) 62%, rgb(14 47 82 / 0.5) 85%, var(--blueprint-bg) 100%);
}
.scene--hero .scene__sheet { position: relative; z-index: 1; }
.scene--hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-style: italic;
  font-weight: 400;
}
.hero-plot {
  margin: 2rem 0 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--blueprint-line);
  display: block;
  max-width: 34rem;
}
.hero-plot__row {
  font-family: var(--font-data);
  font-size: 1.35rem;
  color: var(--blueprint-ink);
  margin: 0;
}
.hero-plot__row + .hero-plot__row { margin-top: 0.6em; }
.hero-plot__label { white-space: nowrap; }
.hero-plot__value { color: var(--blueprint-accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) {
  .hero-plot { padding: 1rem 1.1rem; }
  .hero-plot__row {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    font-size: 0.82rem;
  }
  .hero-plot__value { font-size: 1.1rem; }
}

/* --- Value / comparable valuation --- */

.field-calc {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--blueprint-line);
  font-family: var(--font-data);
  font-size: 0.95rem;
  max-width: 42rem;
}
.field-calc__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4em 0;
  border-bottom: 1px dashed var(--blueprint-line);
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .field-calc { padding: 1rem 1.1rem; font-size: 0.86rem; }
}
.field-calc__row:last-child { border-bottom: none; }
.field-calc__label { color: var(--blueprint-muted); }
.field-calc__value { color: var(--blueprint-ink); font-variant-numeric: tabular-nums; }
.field-calc__row--total .field-calc__value { color: var(--blueprint-accent); font-weight: 600; }

.value-highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--blueprint-accent);
  border-left: 1px solid var(--blueprint-accent);
  padding-left: 1.1rem;
  max-width: 42rem;
}

/* --- Specs: a ruled measurement schedule --- */

.spec-table { width: 100%; max-width: 40rem; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--paper-line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { padding: 0.7em 0; text-align: left; font-weight: 400; }
.spec-table th {
  color: var(--paper-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-data);
  font-weight: 400;
}
.spec-table td {
  text-align: right;
  font-family: var(--font-data);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

/* --- Feng shui: orientation plot --- */

.orientation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; max-width: 38rem; }
.orientation-item { display: flex; gap: 1rem; align-items: flex-start; }
.orientation-item__mark {
  flex: none;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--blueprint-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-data); font-size: 0.7rem; color: var(--blueprint-accent);
  margin-top: 0.2rem;
}
.orientation-item__mark svg { width: 0.85rem; height: 0.85rem; }
.orientation-item p { margin: 0; }
.orientation-item strong { color: var(--blueprint-ink); }

.fengshui-cue { margin: 1.5rem 0 1.75rem; font-style: italic; }

/* --- Gallery: numbered plates --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.75rem 1.25rem;
}
.plate { margin: 0; }
.plate__frame {
  border: 1px solid var(--paper-line);
  padding: 0.4rem;
  background: var(--paper-surface);
}
.plate img { width: 100%; height: 13rem; object-fit: cover; display: block; }
.plate figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--paper-muted);
  letter-spacing: 0.02em;
}
.plate figcaption b { color: var(--paper-accent); font-weight: 600; }

/* --- Location --- */

.landmark-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; max-width: 28rem; }
.landmark-list li {
  display: flex; align-items: baseline; gap: 0.75em;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--font-data);
  font-size: 0.92rem;
}
.landmark-list li::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.4em solid var(--paper-accent);
}

/* --- FAQ --- */

.faq-list { display: grid; gap: 1.75rem; max-width: 42rem; margin-top: 1rem; }
.faq-item { border-top: 1px solid var(--paper-line); padding-top: 1.25rem; }
.faq-item h3 { margin-bottom: 0.4em; }
.faq-item p { margin: 0; color: var(--paper-muted); }

/* --- Contact --- */

#lead-form { display: grid; gap: 1.1rem; max-width: 30rem; margin-top: 1rem; }
#lead-form label {
  display: grid; gap: 0.35rem;
  font-family: var(--font-data);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blueprint-muted);
}
#lead-form input, #lead-form textarea {
  padding: 0.65em 0.75em;
  border: 1px solid var(--blueprint-muted);
  background: rgb(255 255 255 / 0.04);
  color: var(--blueprint-ink);
  font: inherit;
  font-family: var(--font-body);
}
#lead-form input:focus, #lead-form textarea:focus {
  outline: 2px solid var(--blueprint-accent);
  outline-offset: 1px;
}
#lead-form button {
  justify-self: start;
  font-family: var(--font-data);
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.form-status--ok { color: var(--ok); }
.form-status--error { color: var(--err); }
.form-note { font-size: 0.8rem; color: var(--blueprint-muted); margin: -0.35rem 0 0; }
.form-note a { color: var(--blueprint-accent); }

/* Honeypot field: off-screen (not display:none) so it still occupies layout
   for simple scrapers, but is unreachable by keyboard/AT users. Kept as an
   external class rather than an inline style so it stays compatible with a
   strict CSP style-src that allows no inline styles. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
