/* Wiseman Residential — editorial pages (company, residents, contact).
   Image-led bands built only from the direction's tokens, so the same markup reads
   native in every direction: --paper --paper-2 --ink --deep --brand --pad --ease --vh100
   and the type faces --serif / --sans (falling back sensibly). See ELEVATE.md. */

/* --ed-mute carried the eyebrows, the standfirst notes and the figure captions
   at 62% of the ink — 3.37:1 on Clerestory's cream, 4.33:1 on Tideline's paper.
   Both fail AA for text. It now points at the direction's own quiet stop (see
   core/base.css), which is measured against that direction's ground. */
.ed { --ed-display: var(--display, var(--serif, var(--sans))); --ed-mute: var(--ink-quiet);
      --ed-rule: color-mix(in srgb, var(--ink) 12%, transparent); }
.ed .ed-eyebrow { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ed-mute); }
.ed .ed-h1, .ed .ed-h2, .ed .ed-num { font-family: var(--ed-display); font-weight: 500; letter-spacing: -.018em; line-height: .96; }
.ed .ed-h2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); max-width: 18ch; }
.ed p { max-width: 58ch; }
.ed .ed-lede { font-size: clamp(1.05rem, 1.3vw, 1.28rem); line-height: 1.5; }
.ed .ed-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); transition: gap .35s var(--ease), border-color .35s var(--ease); }
.ed .ed-link:hover { gap: 16px; border-color: var(--ink); }
.ed .ed-link svg { width: 24px; height: 8px; stroke: currentColor; stroke-width: 1.1; fill: none; }
.ed .chip { display: inline-block; font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace; font-size: .66rem; letter-spacing: .08em;
  border: 1px solid var(--brand); color: var(--brand); padding: 2px 7px; vertical-align: middle; }
.ed .tnum { font-variant-numeric: tabular-nums; }

/* ---- hero: full-bleed photograph, copy inside the frame ---- */
.ed-hero { position: relative; min-height: clamp(520px, 78svh, 860px); display: flex; align-items: flex-end;
  padding-top: clamp(140px, 22vh, 240px); padding-bottom: clamp(44px, 7vh, 92px); overflow: clip; background: var(--deep, var(--ink)); color: var(--paper); isolation: isolate; }
.ed-hero .ed-img { position: absolute; inset: 0; z-index: 0; margin: 0; }
.ed-hero .ed-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.js .ed-hero .ed-img img { animation: ed-in 1.2s var(--ease) both; }
@keyframes ed-in { from { transform: scale(1.06); } to { transform: scale(1); } }
.ed-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--deep, var(--ink)) 84%, transparent) 0%, color-mix(in srgb, var(--deep, var(--ink)) 42%, transparent) 42%, transparent 72%),
              linear-gradient(to bottom, color-mix(in srgb, var(--deep, var(--ink)) 52%, transparent), transparent 30%); }
.ed-hero .ed-body { position: relative; z-index: 2; width: 100%; --focus: var(--paper); }
.ed-hero .ed-eyebrow { color: var(--paper-quiet); }
.ed-hero .ed-h1 { font-size: clamp(2.5rem, 6.4vw, 6.8rem); max-width: 14ch; margin-top: 14px; }
.ed-hero .ed-lede { margin-top: 20px; color: var(--paper-quiet); max-width: 50ch; }
.ed-hero .ed-cred { position: absolute; right: var(--pad); bottom: 18px; z-index: 2; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-mute); }

/* ---- stats row ---- */
.ed-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(20px, 3vw, 48px); padding-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(40px, 6vh, 72px); border-bottom: 1px solid var(--ed-rule); }
.ed-stats .ed-num { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.ed-stats span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-mute); }

/* ---- alternating photograph / copy bands ---- */
.ed-sec { padding-top: clamp(72px, 11vh, 160px); padding-bottom: clamp(72px, 11vh, 160px); }
.ed-sec + .ed-sec { padding-top: 0; }
.ed-band { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) { .ed-band { grid-template-columns: 1.1fr 1fr; } .ed-band.flip > .ed-fig { order: 2; } }
.ed-fig { margin: 0; position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: var(--ar, 4 / 5); }
.ed-fig.wide { aspect-ratio: 3 / 2; }
.ed-fig img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease); }
.ed-band:hover .ed-fig img { transform: scale(1.03); }
.ed-fig figcaption { position: absolute; left: 14px; bottom: 12px; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper);
  background: color-mix(in srgb, var(--deep, var(--ink)) 62%, transparent); padding: 4px 8px; }
.ed-copy .ed-eyebrow { margin-bottom: 14px; }
.ed-copy .ed-h2 + p { margin-top: 18px; }
.ed-copy p + p { margin-top: 12px; }
.ed-copy .ed-big { font-family: var(--ed-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.01em; }

/* ---- full-bleed interlude ---- */
.ed-bleed { position: relative; min-height: clamp(380px, 56svh, 640px); overflow: clip; background: var(--deep, var(--ink)); color: var(--paper); display: flex; align-items: flex-end; padding-top: 80px; padding-bottom: clamp(36px, 6vh, 72px); }
.ed-bleed .ed-img { position: absolute; inset: 0; margin: 0; }
.ed-bleed .ed-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.ed-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--deep, var(--ink)) 82%, transparent), transparent 60%); pointer-events: none; }
.ed-bleed .ed-body { position: relative; z-index: 1; }
.ed-bleed .ed-h2 { color: var(--paper); }
.ed-bleed p { color: var(--paper-quiet); }

/* ---- photo doors: the whole tile is the link ---- */
.ed-doors { display: grid; gap: clamp(18px, 2.4vw, 32px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ed-door { position: relative; display: grid; gap: 12px; color: inherit; }
.ed-door .ed-fig { aspect-ratio: 3 / 4; }
.ed-door h3 { font-family: var(--ed-display); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.1; letter-spacing: -.01em; }
.ed-door h3::after { content: ""; position: absolute; inset: 0; }
.ed-door p { font-size: .94rem; color: var(--ed-mute); }
.ed-door:hover .ed-fig img, .ed-door:focus-within .ed-fig img { transform: scale(1.03); }
.ed-door .ed-tag { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); background: color-mix(in srgb, var(--deep, var(--ink)) 70%, transparent); padding: 5px 9px; }

/* ---- urgent path ---- */
.ed-urgent { display: grid; gap: 22px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--ink); }
@media (min-width: 900px) { .ed-urgent { grid-template-columns: 1fr 1fr; } }
.ed-urgent .ed-tel { font-family: var(--ed-display); font-size: clamp(1.9rem, 3.6vw, 3.2rem); letter-spacing: -.01em; line-height: 1; display: inline-block; margin-top: 8px; }
.ed-urgent ol { list-style: none; display: grid; gap: 14px; }
.ed-urgent li { display: grid; grid-template-columns: 2ch 1fr; gap: 12px; align-items: baseline; }
.ed-urgent li b { font-family: var(--ed-display); font-size: 1.1rem; }
.ed-urgent li p { font-size: .94rem; color: var(--ed-mute); }

/* ---- rule list (pipeline, routes) ---- */
.ed-rows { list-style: none; border-top: 1px solid var(--ed-rule); }
.ed-row { display: grid; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--ed-rule); }
@media (min-width: 760px) { .ed-row { grid-template-columns: clamp(9rem, 18vw, 16rem) minmax(0, 1fr) auto; align-items: baseline; }
  .ed-row > h3, .ed-row > p, .ed-row > div { justify-self: start; } }
.ed-row h3 { font-family: var(--ed-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.15; }
.ed-row p { font-size: .95rem; }
.ed-row .ed-cite, .ed-row .ed-state { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-mute); white-space: nowrap; }
.ed-row .ed-state { justify-self: end; }
.ed-row .ed-cite { grid-column: 2; }

/* ---- office map + address ---- */
.ed-office { display: grid; gap: clamp(24px, 3vw, 48px); align-items: stretch; }
@media (min-width: 900px) { .ed-office { grid-template-columns: 1fr 1.4fr; } }
.ed-map { min-height: 380px; }
.ed-addr .ed-big { margin-top: 12px; }
.ed-addr p + p { margin-top: 10px; }

/* ---- quiet note for anything the client must supply ---- */
.ed-note { border-left: 1px solid var(--brand); padding: 4px 0 4px 18px; font-size: .92rem; color: var(--ed-mute); max-width: 60ch; }

/* ---- form (demo) ---- */
.ed-form { display: grid; gap: 16px; max-width: 640px; }
.ed-form label { display: grid; gap: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-mute); }
.ed-form input, .ed-form select, .ed-form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); padding: 10px 0; border-radius: 0; }
.ed-form textarea { min-height: 120px; resize: vertical; }
.ed-form input:focus, .ed-form select:focus, .ed-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.ed-form .ed-two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.ed-form button { justify-self: start; background: var(--ink); color: var(--paper); padding: 13px 22px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }

/* ---- contact "write it down": form rides up beside the image ---- */
.ed-write { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .ed-write { grid-template-columns: 1fr 1.15fr; }
  .ed-write > .ed-fig { position: sticky; top: 92px; } }
.ed-write > .ed-fig { aspect-ratio: 4 / 5; }
.ed-writebody .ed-h2 { margin-top: 12px; }
.ed-writebody .ed-h2 + p { margin-top: 16px; max-width: 44ch; }
.ed-writebody .ed-form { margin-top: 28px; max-width: 560px; }

@media (prefers-reduced-motion: reduce) { .js .ed-hero .ed-img img { animation: none; } .ed-fig img, .ed-link { transition: none; } }
