/* ============================================================
   THE PROPERTY EDIT — builds on colors_and_type.css + site.css + sell.css
   (tokens, nav, footer, .s-h, .s-p, .s-btn-*, .s-frame, reveals).
   All classes prefixed .pe- so they never collide with other pages.
   ============================================================ */

.pe-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 64px; }
.pe-label {
  font-family: var(--font-ui); font-weight: 500;
  font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--navy); opacity: .72; margin: 0;
}
.pe-link {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 21px; color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--navy-line);
  transition: border-color .2s ease, gap .25s ease;
}
.pe-link:hover { border-bottom-color: var(--navy); gap: 18px; }
.pe-link:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Editor placeholder — image slot awaiting Francesca's own photography */
.pe-slot {
  position: relative; margin: 0; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--stone-soft) 0 1px, transparent 1px 12px),
    var(--mist);
}
.pe-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pe-slug {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 10px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); opacity: .66;
}
.pe-slug b { font-weight: 600; color: var(--navy); opacity: 1; }

/* ---------- 1 · HERO — image-led, navy-grounded ---------- */
.pe-hero {
  --pe-nav-h: 112px;
  position: relative; z-index: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(660px, 96vh, 1080px);
  padding: calc(var(--pe-nav-h) + 32px) 0 96px;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy);
}
.pe-hero-media {
  position: absolute; inset: 0; z-index: -2; margin: 0;
  background:
    repeating-linear-gradient(135deg, rgba(244,242,237,.06) 0 1px, transparent 1px 14px),
    var(--navy);
}
.pe-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.pe-hero-media .pe-slug {
  left: auto; right: 64px; bottom: auto; top: calc(var(--pe-nav-h) + 24px);
  max-width: 34ch; text-align: right;
  color: var(--paper); opacity: .62;
}
.pe-hero-media .pe-slug b { color: var(--dusted); }
/* Restrained overlay — only needed once a photograph is in place */
.pe-hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,28,48,.42) 0%, rgba(20,28,48,0) 24%),
    linear-gradient(90deg, rgba(20,28,48,.55) 0%, rgba(20,28,48,.2) 50%, rgba(20,28,48,0) 75%),
    linear-gradient(180deg, rgba(20,28,48,0) 30%, rgba(20,28,48,.55) 62%, rgba(20,28,48,.85) 100%);
}
.pe-hero-copy { position: relative; width: 100%; }
.pe-hero .pe-label { color: var(--paper); opacity: .8; margin-bottom: 32px; }
.pe-hero-h {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 6.6vw, 112px);
  line-height: .98; letter-spacing: -.028em;
  color: var(--paper);
  max-width: 13ch; margin: 0;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(30,42,68,.3);
}
.pe-hero-h i { font-style: italic; }
.pe-hero-body {
  font-family: var(--font-ui);
  font-size: 17px; line-height: 1.75;
  color: var(--paper);
  max-width: 52ch; margin: 36px 0 44px;
  text-wrap: pretty;
}
.pe-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.pe-hero .pe-link {
  font-size: 20px; color: var(--paper);
  border-bottom-color: rgba(244,242,237,.4);
}
.pe-hero .pe-link:hover { border-bottom-color: var(--paper); }

/* ---------- 2 · OUR PERSPECTIVE ---------- */
.pe-persp { background: var(--white); padding: 144px 0; scroll-margin-top: 64px; }
.pe-persp-inner {
  display: grid; grid-template-columns: 7fr 5fr; gap: 104px;
  align-items: center;
}
.pe-persp .s-frame { aspect-ratio: 1024 / 683; border: 0; }
.pe-persp .s-frame img { object-position: 50% 22%; }
.pe-persp .s-h { max-width: 14ch; }
.pe-lede {
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 1.8vw, 25px); line-height: 1.45;
  color: var(--navy);
  max-width: 34ch; margin: 32px 0 24px;
  text-wrap: pretty;
}
.pe-persp .s-p { max-width: 46ch; margin-bottom: 36px; }

/* ---------- 3 · SELLERS + BUYERS — equal halves on paper ---------- */
.pe-audience {
  background: var(--paper); padding: 136px 0 128px;
  border-top: 1px solid var(--navy-line);
}
.pe-aud-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
  align-items: start;
}
.pe-aud .pe-slot { aspect-ratio: 4 / 5; margin-bottom: 48px; }
.pe-aud .pe-label { margin-bottom: 22px; }
.pe-aud-h {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: 1.04; letter-spacing: -.022em;
  color: var(--navy);
  max-width: 14ch; margin: 0 0 28px;
  text-wrap: balance;
}
.pe-aud-h i { font-style: italic; }
.pe-aud .s-p { max-width: 46ch; }

.pe-shared {
  margin: 112px auto 0; max-width: 30ch;
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3;
  color: var(--navy); text-align: center;
  text-wrap: balance;
}

/* ---------- 4 · PRACTICAL SUPPORT ---------- */
.pe-support { background: var(--white); padding: 144px 0; }
.pe-support .s-h { max-width: 14ch; }
.pe-steps {
  list-style: none; margin: 80px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px;
}
.pe-step { padding-top: 28px; border-top: 1px solid var(--navy); }
.pe-step-n {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 18px; color: var(--navy); opacity: .6;
  margin-bottom: 14px;
}
.pe-step h3 {
  font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1;
  margin: 0 0 16px;
}
.pe-step p { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 36ch; text-wrap: pretty; }
.pe-support-close {
  margin: 88px 0 0; max-width: 46ch;
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 1.9vw, 26px); line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}

/* ---------- 5 · IN PRACTICE — unpublished case study ---------- */
.pe-case { background: var(--mist); padding: 128px 0 144px; }
.pe-draft {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  margin: 0 0 56px; padding: 14px 0;
  border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px; line-height: 1.6; letter-spacing: .08em;
  color: var(--ink);
}
.pe-draft b { color: var(--navy); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.pe-case-head {
  display: grid; grid-template-columns: 7fr 5fr; gap: 96px;
  align-items: end; margin-bottom: 64px;
}
.pe-case-head .pe-label { margin-bottom: 26px; }
.pe-case-h {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.02; letter-spacing: -.022em;
  color: var(--navy); margin: 0;
}
.pe-case-h i { font-style: italic; }
.pe-case-meta {
  font-family: var(--font-voice); font-style: italic;
  font-size: 22px; line-height: 1.45; color: var(--navy); margin: 0;
}

.pe-gallery {
  display: grid; grid-template-columns: 8fr 4fr; gap: 24px;
  margin-bottom: 96px;
}
.pe-gallery .pe-slot.lg { aspect-ratio: 3 / 2; grid-row: span 2; }
.pe-gallery .pe-slot.sm { aspect-ratio: auto; min-height: 0; }
.pe-gallery figcaption.pe-cap {
  grid-column: 1 / -1;
  font-family: var(--font-voice); font-style: italic;
  font-size: 17px; color: var(--navy); opacity: .8;
}

.pe-story {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 112px; row-gap: 56px;
  margin: 0; max-width: 1120px;
}
.pe-story div { margin: 0; }
.pe-story dt {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 1.9vw, 27px); line-height: 1.15;
  color: var(--navy); margin: 0 0 12px;
}
.pe-story dd { margin: 0; }
.pe-ph {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12.5px; line-height: 1.7; letter-spacing: .02em;
  color: var(--dusted-deep);
  max-width: 52ch; margin: 0;
}

/* ---------- 6 · CLOSING CONTACT ---------- */
.pe-close { background: var(--white); padding: 144px 0; }
/* TEMPORARILY HIDDEN — PROPERTY EDIT CASE STUDY — RESTORE WHEN READY
   While the case study is hidden, Practical Support (white) meets Closing
   directly. Give Closing the soft ivory paper tone so the two read as
   distinct sections, with slightly tightened padding to keep the rhythm.
   Only matches while the <template> wrapper is in place. */
.pe-support + template + .pe-close { background: var(--paper); padding: 128px 0 136px; }
.pe-close-inner { max-width: 900px; margin: 0 auto; padding: 0 64px; text-align: center; }
.pe-close .s-h { max-width: 14ch; margin: 0 auto; }
.pe-close-p {
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45;
  color: var(--navy);
  max-width: 40ch; margin: 28px auto 48px;
  text-wrap: pretty;
}
.pe-call-l {
  display: block; margin-bottom: 18px;
  font-family: var(--font-ui); font-weight: 500;
  font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--navy); opacity: .7;
}
.pe-calls { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 40px; }
.pe-calls .s-btn-navy { letter-spacing: .22em; }
.pe-calls .pe-num { letter-spacing: .06em; opacity: .85; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .pe-link { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pe-wrap, .pe-close-inner { padding-left: 40px; padding-right: 40px; }
  .pe-hero-media .pe-slug { right: 40px; }
  .pe-persp-inner, .pe-case-head { gap: 56px; }
  .pe-aud-grid { gap: 56px; }
  .pe-steps { gap: 40px; }
  .pe-story { column-gap: 56px; }
}

@media (max-width: 860px) {
  .pe-wrap, .pe-close-inner { padding-left: 24px; padding-right: 24px; }

  .pe-hero { --pe-nav-h: 72px; min-height: clamp(620px, 92vh, 900px); padding-bottom: 64px; }
  .pe-hero-media .pe-slug { right: 24px; left: 24px; text-align: left; max-width: none; }
  .pe-hero .pe-label { font-size: 9.5px; letter-spacing: .34em; margin-bottom: 20px; }
  .pe-hero-h { font-size: clamp(40px, 11vw, 60px); }
  .pe-hero-body { font-size: 16px; margin: 22px 0 32px; }
  .pe-hero-actions { flex-direction: column; align-items: stretch; gap: 22px; }
  .pe-hero-actions .s-btn-paper { justify-content: center; min-height: 52px; }
  .pe-hero .pe-link { align-self: flex-start; }

  .pe-persp, .pe-support, .pe-close { padding: 88px 0; }
  /* TEMPORARILY HIDDEN — case study; see Closing rule above */
  .pe-support + template + .pe-close { padding: 80px 0 88px; }
  .pe-persp-inner { grid-template-columns: 1fr; gap: 40px; }
  .pe-persp .s-h, .pe-support .s-h { max-width: none; }
  .pe-lede { font-size: 21px; margin: 24px 0 20px; }

  .pe-audience { padding: 88px 0; }
  .pe-aud-grid { grid-template-columns: 1fr; gap: 80px; }
  .pe-aud .pe-slot { aspect-ratio: 4 / 3; margin-bottom: 32px; }
  .pe-aud-h { font-size: 36px; max-width: none; margin-bottom: 22px; }
  .pe-shared { margin-top: 80px; font-size: 26px; text-align: left; }

  .pe-steps { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .pe-step p { max-width: none; }
  .pe-support-close { margin-top: 56px; font-size: 21px; }

  .pe-case { padding: 80px 0 96px; }
  .pe-draft { margin-bottom: 40px; }
  .pe-case-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .pe-case-meta { font-size: 20px; }
  .pe-gallery { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 64px; }
  .pe-gallery .pe-slot.lg { grid-column: 1 / -1; grid-row: auto; }
  .pe-gallery .pe-slot.sm { aspect-ratio: 4 / 5; }
  .pe-gallery .pe-slot.sm .pe-slug { font-size: 9px; left: 12px; right: 12px; bottom: 12px; }
  .pe-story { grid-template-columns: 1fr; row-gap: 36px; }

  .pe-close-p { font-size: 20px; margin: 22px auto 36px; }
  .pe-calls { flex-direction: column; align-items: stretch; }
  .pe-calls .s-btn-navy { justify-content: center; min-height: 52px; }
}
