/* EDIFICE page — monochrome quiet-luxury over a fixed WebGL world.
   Inherits tokens.v4.css / styles.v6.css. Page-specific layout only. */

#edifice-world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
#edifice-world[data-off] { display: none; }

.world-caption {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.world-caption[data-off] { display: none; }
@media (max-width: 768px) { .world-caption { display: none; } }

body.edifice { background: var(--paper); }
body.edifice main { position: relative; z-index: 1; }

/* Grade lives in the render pipeline now (BP-003: grain + corrected vignette
   in-shader). The DOM overlays below are retired — kept as a comment so the
   A+B history isn't lost. If WebGL shuts off, the page degrades to flat
   editorial; no overlay grade is applied on top. */

/* Hero — transparent so the world reads behind it */
body.edifice .hero { min-height: 100dvh; display: flex; align-items: center; padding-top: var(--header-h, 72px); position: relative; }
/* soft paper scrim behind the hero copy so building edges never slice through text */
body.edifice .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, var(--paper, #f4f1ea) 0%, color-mix(in srgb, var(--paper, #f4f1ea) 72%, transparent) 46%, transparent 68%);
}
body.edifice .hero__inner { max-width: 880px; position: relative; }
body.edifice .hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0.6rem 0 1rem;
  max-width: 12ch;
}
body.edifice .hero__actions { margin-top: 1.75rem; }
body.edifice .hero__scroll {
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Proof strip — hairline rules, one honest line */
body.edifice .proof { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--paper) 88%, transparent); }
body.edifice .proof .wrap { padding-top: 1.1rem; padding-bottom: 1.1rem; }
body.edifice .proof p { margin: 0; font-size: 0.95rem; color: var(--muted); max-width: 70ch; }

/* Zones — tall panels floating over the world */
body.edifice .zone { min-height: 92dvh; display: flex; align-items: center; padding: var(--sec-pad) 0; }
body.edifice .zone__panel {
  max-width: 560px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2rem;
}
body.edifice .zone__panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
body.edifice .zone__outcome { font-size: 1.08rem; margin: 0 0 1.1rem; }
body.edifice .zone__items { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.9; }
body.edifice .zone:nth-of-type(odd) .wrap { display: flex; justify-content: flex-end; }

/* Care — quieter, solid paper, closes the world */
body.edifice .care { background: var(--paper); border-top: 1px solid var(--hairline); padding: var(--sec-pad) 0; position: relative; z-index: 1; }
body.edifice .care h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 0.6rem; letter-spacing: -0.01em; }
body.edifice .care__outcome { font-size: 1.08rem; margin: 0 0 1.1rem; }
body.edifice .care__items { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.9; max-width: 560px; }

/* Process — numbered, hairline-separated rows */
body.edifice .process { background: var(--paper); padding: var(--sec-pad) 0; position: relative; z-index: 1; }
body.edifice .process h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin: 0 0 2rem; }
body.edifice .process__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
body.edifice .process__list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
}
body.edifice .process__num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
body.edifice .process__list h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 600; }
body.edifice .process__list p { margin: 0; color: var(--muted); max-width: 56ch; }
body.edifice .process__time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  body.edifice .process__list li { grid-template-columns: 2.5rem 1fr; }
  body.edifice .process__time { grid-column: 2; }
}

/* Desk detail — comparison rows, no cards */
body.edifice .desk-detail { background: var(--paper); padding: var(--sec-pad) 0; border-top: 1px solid var(--hairline); position: relative; z-index: 1; }
body.edifice .desk-detail h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 20ch; }
body.edifice .desk-detail > .wrap > div > p { max-width: 62ch; color: var(--muted); }
body.edifice .compare { margin: 2.5rem 0; border-top: 1px solid var(--hairline); }
body.edifice .compare__head, body.edifice .compare__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--hairline);
}
body.edifice .compare__head span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
body.edifice .compare__row span:first-child { color: var(--muted); }
body.edifice .compare__row span:last-child { font-weight: 500; }
body.edifice .desk-detail__note { font-size: 0.95rem; max-width: 62ch; }
@media (max-width: 640px) {
  body.edifice .compare__head, body.edifice .compare__row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Pricing — one line, no numbers invented */
body.edifice .pricing { background: var(--paper); border-top: 1px solid var(--hairline); padding: 2.5rem 0; position: relative; z-index: 1; }
body.edifice .pricing p { margin: 0; max-width: 64ch; }

/* CTA */
body.edifice .cta { background: var(--paper); padding: calc(var(--sec-pad) * 1.2) 0; border-top: 1px solid var(--hairline); position: relative; z-index: 1; }
body.edifice .cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.015em; margin: 0 0 0.8rem; }
body.edifice .cta p { color: var(--muted); max-width: 52ch; }
body.edifice .cta .btn { margin-top: 1.25rem; }

body.edifice .site-footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  #edifice-world { display: none; }
  .world-caption { display: none; }
}
