/* ============================================================
   BOĀ Studio: English editorial preview (MULTIPAGE-PREVIEW-01, revise)

   Direction (Shaked, 2026-11-24): quiet editorial architecture-studio
   pages. Ivory ground, restrained dark type, generous whitespace, a
   simple masthead (wordmark left, menu centre), small widely tracked
   serif capitals for headings, small sans text. No side rail, no cards,
   no boxed UI, no oversized marketing type.

   Type: Libre Caslon Text + Figtree (both SIL Open Font License), used as
   legally available stand-ins for the reference's typefaces.
   Image-free on purpose: no BOĀ image has an approved classification yet.

   Loaded after css/style.css and scoped to html.ed, so the homepage,
   legal pages and the Hebrew draft pages are unaffected.
   Contrast on #F5F1E6 (WCAG, measured): ink #383735 10.5:1,
   muted #6B665E 5.05:1, deep #1F1E1C 14.8:1. #D9D2C2 is decorative only.
   ============================================================ */

html.ed {
  --ed-bg: #F5F1E6;
  --ed-ink: #383735;
  --ed-deep: #1F1E1C;
  --ed-muted: #6B665E;
  --ed-line: #D9D2C2;

  --ed-serif: 'Libre Caslon Text', 'Iowan Old Style', Georgia, serif;
  --ed-sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --ed-gutter: clamp(1.25rem, 0.2rem + 5.1vw, 4.8rem);
  --ed-max: 80.625rem;
  --ed-caps-wide: 0.5em;
  --ed-caps: 0.3em;
  --ed-caps-ui: 0.18em;
  --ed-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Shared components from style.css (cookie banner, accessibility menu) */
  --color-cream: var(--ed-bg);
  --color-sand: var(--ed-line);
  --color-stone: var(--ed-ink);
  --color-charcoal: var(--ed-ink);
  --color-terracotta: var(--ed-deep);
  --color-dune: var(--ed-muted);
  --font-heading: var(--ed-serif);
  --font-body: var(--ed-sans);
  --border-thin: 1px solid var(--ed-line);

  background: var(--ed-bg);
  scroll-padding-top: 2rem;
}

html.ed.a11y-contrast-high {
  --ed-ink: var(--ed-deep);
  --ed-muted: var(--ed-deep);
  --ed-line: var(--ed-ink);
  --color-stone: var(--ed-deep);
  --border-thin: 1px solid var(--ed-deep);
}

html.ed body {
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ed-ink);
  background: var(--ed-bg);
  overflow-x: clip;
}

html.ed h1,
html.ed h2,
html.ed h3 {
  font-family: var(--ed-serif);
  font-weight: 700;
  color: var(--ed-ink);
  line-height: 1.6;
}

:where(html.ed) a {
  color: inherit;
}

html.ed :focus-visible {
  outline: 2px solid var(--ed-deep);
  outline-offset: 4px;
  border-radius: 1px;
}

html.ed ::selection {
  background: var(--ed-ink);
  color: var(--ed-bg);
}

/* Prose links: a quiet hairline underline */
.ed-prose a,
.ed-faq a,
.ed-note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--ed-muted);
  transition: text-decoration-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ed-prose a:hover,
  .ed-faq a:hover,
  .ed-note a:hover {
    text-decoration-color: var(--ed-ink);
  }
}

/* ---------------------------------------------------------- preview notice */
.ed-notice {
  margin: 0;
  padding: 0.5rem var(--ed-gutter);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ed-muted);
  border-bottom: 1px solid var(--ed-line);
}

.ed-notice__sub {
  display: none;
  text-transform: none;
  letter-spacing: 0.02em;
}

@media (min-width: 40rem) {
  .ed-notice__sub {
    display: inline;
  }
}

/* ---------------------------------------------------------- masthead */
.ed-mast {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--ed-gutter);
}

.ed-mast__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 2.75rem;
  /* Wordmark in the menu's family, weight and tracking, set larger so the
     studio name leads the masthead. */
  font-family: var(--ed-sans);
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ed-ink);
}

html.ed--hero .ed-mast__logo {
  color: var(--ed-on-image);
  text-shadow: 0 1px 12px rgb(24 22 19 / 0.35);
}

.ed-mast__nav {
  display: none;
}

.ed-mast__nav ul,
.ed-menu__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-mast__nav a,
.ed-menu__panel a {
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ed-ink);
}

/* Current page: heavier weight plus a hairline rule (never color alone) */
.ed-mast__nav a[aria-current="page"],
.ed-mast__nav a.is-section,
.ed-menu__panel a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.7em;
}

@media (hover: hover) and (pointer: fine) {
  .ed-mast__nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.7em;
  }
}

/* Mobile menu: native <details>, works without JavaScript */
.ed-menu__toggle {
  list-style: none;
  position: relative;
  display: block;
  width: 3rem;
  height: 2.75rem;
  margin-inline-end: -0.75rem;
  color: var(--ed-ink);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ed-menu__toggle::-webkit-details-marker {
  display: none;
}

.ed-menu__toggle::before,
.ed-menu__toggle::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  left: 0.75rem;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transition: transform 200ms var(--ed-ease-out);
}

.ed-menu__toggle::before {
  transform: translateY(-0.2rem);
}

.ed-menu__toggle::after {
  transform: translateY(0.2rem);
}

.ed-menu[open] .ed-menu__toggle::before {
  transform: rotate(45deg);
}

.ed-menu[open] .ed-menu__toggle::after {
  transform: rotate(-45deg);
}

.ed-menu__panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 1rem var(--ed-gutter) 2.5rem;
  background: var(--ed-bg);
  border-bottom: 1px solid var(--ed-line);
}

.ed-menu__panel li + li {
  border-top: 1px solid var(--ed-line);
}

.ed-menu__panel a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  font-size: 0.75rem;
}

@media (min-width: 64rem) {
  .ed-mast {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-block: 2.25rem;
  }

  .ed-mast__nav {
    display: block;
  }

  .ed-mast__nav ul {
    display: flex;
    gap: 1.75rem;
  }

  .ed-mast__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .ed-menu {
    display: none;
  }
}

/* ---------------------------------------------------------- page heading */
.ed-main {
  padding-inline: var(--ed-gutter);
}

.ed-head {
  max-width: var(--ed-max);
  margin-inline: auto;
  padding-block: clamp(2.17rem, 1.24rem + 3.72vw, 4.96rem) clamp(1.86rem, 1.24rem + 2.48vw, 3.41rem);
  text-align: center;
}

/* Small, widely tracked serif capitals. The trailing tracking is offset
   with matching inline-start padding so the line stays optically centred. */
.ed-title,
.ed-label {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.9;
  letter-spacing: var(--ed-caps-wide);
  text-transform: uppercase;
  text-wrap: balance;
  padding-inline-start: var(--ed-caps-wide);
}

.ed-title {
  font-size: 0.875rem;
  max-width: 60rem;
  margin-inline: auto;
}

@media (max-width: 39.99rem) {
  html.ed {
    --ed-caps-wide: 0.34em;
    --ed-hero-track: 0.26em;
  }
}

.ed-statement {
  max-width: 22em;
  margin: 2.5rem auto 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.5;
  color: var(--ed-deep);
  text-wrap: balance;
}

.ed-lead {
  max-width: 36rem;
  margin: 2rem auto 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  text-wrap: pretty;
}

/* Homepage intro: the reading serif, centred. */
.ed-lead--serif {
  max-width: 50rem;
  font-family: var(--ed-serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ed-ink);
}

/* Homepage intro: the opening question, one step above the reading text. */
html.ed .ed-lead-q {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ed-ink);
  text-wrap: balance;
}

.ed-lead--serif + .ed-lead--serif {
  margin-top: 1.45em;
}

@media (prefers-reduced-motion: no-preference) {
  html.ed:not(.a11y-reduce-motion) .ed-main {
    animation: ed-in 400ms var(--ed-ease-out) both;
  }
}

@keyframes ed-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------------------------------------------------------- sections */
.ed-section {
  max-width: var(--ed-max);
  margin-inline: auto;
  padding-block: clamp(2.1rem, 1.2rem + 3vw, 4.5rem);
}

/* Office design and residential lobbies: sections sit half as far apart. */
.ed-main--office .ed-section,
.ed-main--lobbies .ed-section,
.ed-main--services .ed-section {
  padding-block: clamp(1.4rem, 0.8rem + 2vw, 3rem);
}

.ed-main--office .ed-gallery {
  padding-block-end: clamp(1.4rem, 0.8rem + 2vw, 3rem);
}

/* On wide screens the sections share the gallery's leading edge: the
   width of the vertical label plus the gap beside it. */
@media (min-width: 64rem) {
  .ed-main--office {
    --ed-rail: calc(0.75rem + clamp(1.5rem, 2.5vw, 2.75rem));
  }

  .ed-main--office .ed-section {
    max-width: 100rem;
    padding-inline: var(--ed-rail);
  }

  /* Residential lobbies: the same edge as the project images above. */
  .ed-main--lobbies .ed-section:not(.ed-close) {
    max-width: 100rem;
    padding-inline: 0;
  }
}

.ed-label {
  text-align: center;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
}

/* Section label set on the leading edge instead of centred. */
.ed-label--start {
  text-align: start;
  padding-inline-start: 0;
}

/* Intro under a start-aligned label: same edge as the label. */
.ed-intro.ed-intro--start {
  margin-inline: 0;
  text-align: start;
}

.ed-intro {
  max-width: 34rem;
  margin: calc(-1 * clamp(0.75rem, 0.6rem + 0.6vw, 1.35rem)) auto clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
  text-align: center;
  color: var(--ed-muted);
  text-wrap: pretty;
}

/* Body paragraphs in a start-aligned section: ink, not the muted intro tone. */
.ed-intro.ed-intro--text {
  color: var(--ed-ink);
}

.ed-intro.ed-intro--text + .ed-intro--text {
  margin-top: 0;
}

/* ---------------------------------------------------------- entry grid (text-only) */
.ed-grid {
  display: grid;
  gap: 2.45rem 1.75rem;
}

@media (min-width: 40rem) {
  .ed-grid--2,
  .ed-grid--3,
  .ed-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .ed-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 4vw, 4rem);
  }
}

@media (min-width: 72rem) {
  .ed-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(2rem, 3vw, 3.5rem);
  }
}

/* Centred entry grids (homepage Services, Services page): every block on
   the page's centre axis, like the section labels and intros above them. */
.ed-grid--center {
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.ed-grid--center .ed-entry__text {
  max-width: 28em;
  margin-inline: auto;
  text-wrap: balance;
}

.ed-grid--center .ed-entry__meta {
  justify-content: center;
}

/* Seven steps: rows wrap around the centre, so a short last row stays
   centred instead of hanging off the start edge. */
@media (min-width: 40rem) {
  .ed-grid--4.ed-grid--center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }

  .ed-grid--4.ed-grid--center > .ed-entry {
    flex: 0 0 calc((100% - 2.5rem) / 2);
  }
}

@media (min-width: 72rem) {
  .ed-grid--4.ed-grid--center > .ed-entry {
    flex-basis: calc((100% - 3 * clamp(2rem, 3vw, 3.5rem)) / 4);
  }
}

/* A small image above an entry title: quiet, never wider than the text. */
.ed-entry__img {
  position: relative;
  max-width: 24rem;
  margin: 0 auto 2rem;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-entry__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-entry__credit {
  position: absolute;
  inset-inline-end: 0.75rem;
  inset-block-end: 0.6rem;
  font-family: var(--ed-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-on-image);
  text-shadow: 0 1px 10px rgb(24 22 19 / 0.45);
}

/* Scope of planning: one portrait on the centre axis above the steps. */
.ed-scope-img {
  max-width: min(20rem, 72vw);
  margin: 0 auto clamp(1.8rem, 1.2rem + 1.8vw, 3rem);
  aspect-ratio: 851 / 1114;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-scope-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-entry__index {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  font-variant-numeric: tabular-nums;
  color: var(--ed-muted);
}

.ed-entry__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: var(--ed-caps);
  text-transform: uppercase;
}

.ed-entry__title a {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .ed-entry__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.45em;
  }
}

.ed-entry__text {
  max-width: 34em;
  margin: 0;
  text-wrap: pretty;
}

.ed-entry__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block: -0.75rem;
  font-weight: 600;
  color: var(--ed-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.6em;
  text-decoration-color: var(--ed-muted);
}

@media (hover: hover) and (pointer: fine) {
  .ed-entry__meta a:hover {
    text-decoration-color: var(--ed-ink);
  }
}

.ed-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  margin: 1.25rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-muted);
}

/* ---------------------------------------------------------- facts */
.ed-facts {
  display: grid;
  gap: 2rem 2.5rem;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 30rem) {
  .ed-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .ed-facts:has(> :nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ed-facts:not(:has(> :nth-child(3))) {
    max-width: 34rem;
  }
}

.ed-facts dt,
.ed-figures dt {
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-muted);
}

.ed-facts dd {
  margin: 0.5rem 0 0;
  font-family: var(--ed-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ed-deep);
}

.ed-figures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem clamp(3rem, 8vw, 7.5rem);
  margin: 0;
  text-align: center;
}

.ed-figures > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.625rem;
}

.ed-figures dd {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ed-deep);
  white-space: nowrap;
}

.ed-note {
  max-width: 34rem;
  margin: 2.5rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  text-align: center;
  color: var(--ed-muted);
  text-wrap: pretty;
}

.ed-note--center {
  padding-bottom: clamp(2.4rem, 1.8rem + 2.4vw, 4.2rem);
}

/* ---------------------------------------------------------- lists and prose */
.ed-list,
.ed-questions {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* List set on the leading edge, under a leading-edge label. */
.ed-list--start {
  margin-inline: 0;
}

.ed-list li {
  position: relative;
  padding-inline-start: 1.75rem;
  text-wrap: pretty;
}

.ed-list li + li {
  margin-top: 1rem;
}

.ed-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 0.75rem;
  height: 1px;
  background: var(--ed-ink);
}

.ed-questions li {
  font-family: var(--ed-serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ed-ink);
  text-align: center;
  text-wrap: balance;
}

.ed-questions li + li {
  margin-top: 1.5rem;
}

.ed-prose {
  max-width: 34rem;
  margin: 0 auto;
}

.ed-prose p {
  margin: 0;
  text-wrap: pretty;
}

.ed-prose p + p {
  margin-top: 1.1em;
}

.ed-section--narrow .ed-prose {
  text-align: center;
}

/* ---------------------------------------------------------- FAQ */
/* ---------------------------------------------------------- split (About)
   Text on the page ground at the leading side, one full-bleed image on the
   trailing side filling the first screen (reference: normcph.com/about). */
.ed-split {
  display: grid;
  margin-inline: calc(-1 * var(--ed-gutter));
}

.ed-split__text {
  padding: clamp(3rem, 2rem + 4vw, 5rem) var(--ed-gutter) clamp(3.5rem, 2rem + 4vw, 5rem);
}

html.ed .ed-split__title {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.26em;
  padding-inline-start: 0.26em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ed-ink);
}

.ed-split__title::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 1.75rem auto 0;
  background: var(--ed-line);
}

/* FAQ and Contact: no short rule under the title. */
.ed-main--faq .ed-split__title::after,
.ed-main--contact .ed-split__title::after {
  content: none;
}

html.ed .ed-main--contact .ed-head--wash .ed-lead {
  margin-top: 0.75rem;
}

.ed-split__prose {
  max-width: 42rem;
  margin: 2.25rem auto 0;
  font-family: var(--ed-serif);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  color: var(--ed-ink);
}

.ed-split__prose p {
  margin: 0;
  text-wrap: pretty;
}

.ed-split__prose p + p {
  margin-top: 1.5em;
}

.ed-cta.ed-split__cta {
  max-width: 42rem;
  margin: 2.5rem auto 0;
  text-align: start;
}

.ed-split__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
}

.ed-split__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7rem;
  background: linear-gradient(to top, rgb(24 22 19 / 0.55), rgb(24 22 19 / 0));
  pointer-events: none;
}

.ed-split__credit {
  position: absolute;
  z-index: 1;
  inset-inline-end: var(--ed-gutter);
  inset-block-end: 1.25rem;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-on-image);
}

@media (min-width: 60rem) {
  .ed-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100svh - 7rem);
  }

  .ed-split__text {
    align-self: center;
    padding-inline: clamp(2.5rem, 1rem + 4vw, 6rem);
  }

  .ed-split__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  /* Contact: image on the leading side, form on the trailing side. The form
     stays first in source and on small screens. */
  .ed-split--media-start .ed-split__media {
    order: -1;
  }

  /* The image runs up behind the masthead to the top of the page. */
  html.ed--split .ed-mast {
    position: absolute;
    inset-inline: 0;
  }

  html.ed--split .ed-split {
    min-height: calc(100svh - 2.125rem);
  }

  html.ed--split .ed-split__text {
    padding-top: clamp(8rem, 6rem + 4vw, 10rem);
  }

}

@media print {
  .ed-split {
    display: block;
  }

  .ed-split__media {
    display: none;
  }
}

/* ---------------------------------------------------------- project gallery
   A row of images at one shared height (each grows by its aspect ratio),
   with "Projects" set vertically at both edges on wide screens. */
.ed-gallery {
  display: grid;
  gap: 1.5rem;
  max-width: 100rem;
  margin: 0 auto;
  padding-block: 0 clamp(2.1rem, 1.2rem + 3vw, 4.5rem);
}

html.ed .ed-gallery__label {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: var(--ed-caps-wide);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-gallery__label--end {
  display: none;
}

.ed-gallery__row {
  display: grid;
  gap: 2.5rem;
}

.ed-gallery__row .ed-fig {
  max-width: none;
  margin: 0;
}

.ed-gallery__row .ed-fig__frame {
  aspect-ratio: var(--ar);
}

/* Name above tag in every caption, so narrow and wide items read alike. */
.ed-gallery__row .ed-fig figcaption {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

/* Images are never cropped: each frame keeps the image's own proportions.
   A line holds two images at one shared height (each grows by its aspect
   ratio, --a); an odd image sits on its own line at a smaller width. */
.ed-line {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .ed-gallery__row {
    gap: clamp(2.25rem, 1.5rem + 1.5vw, 3.375rem);
  }

  .ed-line {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 1.6vw, 1.75rem);
  }

  .ed-line > * {
    flex: var(--a) 1 0;
    min-width: 0;
  }

  .ed-line--solo > * {
    flex: none;
    width: 58%;
  }

  /* Portrait pairs and near-square solos are held narrower so they do not
     tower over the landscape lines. */
  .ed-line--narrow {
    max-width: 52rem;
  }

  .ed-line--solo.ed-line--wide > * {
    width: 100%;
  }

  .ed-line--squarish > * {
    width: 40%;
  }
}

@media (min-width: 64rem) {
  .ed-gallery {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 2.5vw, 2.75rem);
  }

  html.ed .ed-gallery__label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
  }

  .ed-gallery__label--end {
    display: block;
  }
}

/* ---------------------------------------------------------- homepage showcase
   Rows of project cards (image, tracked title, line, meta) and full-bleed
   bands with a centred title over the image (reference: normcph.com). */
.ed-showcase {
  padding-block: clamp(1.8rem, 1.2rem + 2.4vw, 3.6rem);
}

.ed-showcase .ed-gallery {
  padding-block: 0;
}

@media (max-width: 63.99rem) {
  .ed-showcase .ed-gallery__label {
    display: none;
  }
}

/* Homepage showcases run the full width between the two vertical labels:
   the pair fills the line and the odd image spans it too. */
@media (min-width: 48rem) {
  .ed-showcase .ed-line--narrow {
    max-width: none;
  }

  .ed-showcase .ed-line--solo > * {
    width: 100%;
  }
}

/* ---------------------------------------------------------- project page
   One project told in images and text (reference: normcph.com project
   pages): wide images, a pair of images, and text blocks with a meta column
   on the leading side and justified serif text in the middle column. */
.ed-proj {
  display: grid;
  gap: clamp(1.8rem, 1.08rem + 2.16vw, 3.6rem);
  max-width: 100rem;
  margin: 0 auto;
  padding-block: 0 clamp(2.1rem, 1.2rem + 3vw, 4.5rem);
}

.ed-proj__img {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-proj__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-proj__credit {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-end: 0.9rem;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-on-image);
  text-shadow: 0 1px 10px rgb(24 22 19 / 0.45);
}

.ed-proj__pair {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.ed-proj__body {
  display: grid;
  gap: 1.75rem;
}

html.ed .ed-proj__title,
html.ed .ed-proj__label {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: var(--ed-caps-wide);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-proj__meta {
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0 0;
}

.ed-proj__meta dt {
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-proj__meta dd {
  margin: 0.25rem 0 0;
  font-family: var(--ed-serif);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ed-muted);
}

.ed-proj__text {
  max-width: 36rem;
  font-family: var(--ed-serif);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--ed-ink);
}

.ed-proj__text p {
  margin: 0;
  text-wrap: pretty;
}

.ed-proj__text p + p {
  margin-top: 1.25em;
}

@media (min-width: 48rem) {
  .ed-proj__pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* A pair at each image's own proportions: columns sized by aspect ratio so
   both images share one height and neither is cropped. */
.ed-proj__pair--fit .ed-proj__img img {
  object-fit: cover;
}

@media (min-width: 48rem) {
  .ed-proj__pair--fit {
    grid-template-columns: var(--pair, 1fr 1fr);
  }
}

@media (min-width: 64rem) {
  .ed-proj__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding-inline: clamp(1rem, 3vw, 3.5rem);
  }

  /* Start-aligned, no hyphenation: words never split across lines. */
  .ed-proj__text {
    max-width: none;
  }
}

/* Project text set between the images of a single project: a small
   label on the leading side, the description beside it. */
.ed-story {
  display: grid;
  gap: 1rem;
  padding-block: clamp(0.5rem, 0.2rem + 1vw, 1.25rem);
}

html.ed .ed-story__label {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: var(--ed-caps-wide);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-story__text {
  max-width: 40rem;
  font-family: var(--ed-serif);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--ed-ink);
}

.ed-story__text p {
  margin: 0;
  text-wrap: pretty;
}

.ed-story__text p + p {
  margin-top: 1em;
}

@media (min-width: 48rem) {
  .ed-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  html.ed .ed-story__label {
    padding-top: 0.35em;
  }
}

.ed-showcase--single {
  padding-top: 0;
}

html.ed .ed-card h2.ed-fig__name {
  margin-bottom: 0;
  font-size: inherit;
  line-height: inherit;
}

.ed-card figcaption {
  gap: 0;
}

.ed-card .ed-fig__name {
  margin-top: 0.5rem;
}

.ed-card__text {
  margin-top: 0.9rem;
  font-family: var(--ed-sans);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  max-width: 40rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ed-ink);
  text-wrap: pretty;
}

.ed-card__meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-muted);
}

/* The divider trails its item, so a wrapped line never starts with one. */
.ed-card__meta span:not(:last-child)::after {
  content: "|";
  margin-inline: 0.75em;
}

@media (max-width: 63.99rem) {
  .ed-card__meta {
    letter-spacing: 0.12em;
  }

  .ed-card__meta span:not(:last-child)::after {
    margin-inline: 0.55em;
  }
}

.ed-band {
  position: relative;
  display: block;
  /* Close to the image's own 1.85:1, so the ceiling is never cut off. */
  height: max(clamp(28rem, 80svh, 54rem), 51vw);
  margin-inline: calc(-1 * var(--ed-gutter));
  overflow: hidden;
  color: var(--ed-on-image);
  text-decoration: none;
  background: var(--ed-deep);
}

.ed-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.ed-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(24 22 19 / 0.8) 0%, rgb(24 22 19 / 0.64) 26%, rgb(24 22 19 / 0.18) 46%, rgb(24 22 19 / 0) 60%);
  pointer-events: none;
}

.ed-band__body {
  position: absolute;
  z-index: 1;
  inset-inline: var(--ed-gutter);
  bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.ed-band__title {
  font-family: var(--ed-serif);
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
  letter-spacing: 0.4em;
  padding-inline-start: 0.4em;
  text-transform: uppercase;
}

.ed-band__text {
  max-width: 44rem;
  font-size: 0.875rem;
  line-height: 1.65;
  text-wrap: balance;
}

.ed-band__credit {
  position: absolute;
  z-index: 1;
  inset-inline-end: var(--ed-gutter);
  bottom: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
}

@media (hover: hover) {
  .ed-band:hover .ed-band__text {
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1px;
  }
}

.ed-band:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 4px;
}

/* Contact: the same split, with the enquiry form in the text column. */
.ed-split__intro,
.ed-split__note {
  max-width: 40rem;
  margin: 2rem auto 0;
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: center;
  color: var(--ed-ink);
  text-wrap: pretty;
}

.ed-split__note {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: var(--ed-muted);
}

.ed-split__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.ed-split__form {
  margin-top: 3rem;
}

.ed-split--form .ed-form__grid {
  gap: 1.75rem 2rem;
}

/* FAQ: the same split, questions in the text column beside a portrait. */
.ed-split__faq {
  margin-top: 2.5rem;
}

.ed-split__faq .ed-faq {
  max-width: 40rem;
}

/* The portrait runs to the top of the page under the masthead veil and
   keeps the figure on its leading edge in view. */
.ed-split__media--portrait img {
  object-position: var(--ed-pos, 25% 50%);
}

.ed-split__media--portrait::after {
  display: none;
}

@media (min-width: 60rem) {
  /* A long text column scrolls past a portrait that stays in view. */
  .ed-split--sticky .ed-split__media {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100svh;
    min-height: 0;
  }

  .ed-split--sticky .ed-split__text {
    align-self: start;
    padding-bottom: clamp(4rem, 3rem + 3vw, 6rem);
  }
}

/* Section that follows the page heading directly, without a second top gap. */
.ed-section--flush {
  padding-top: 0;
}

.ed-faq {
  max-width: 40rem;
  margin: 0 auto;
}

.ed-faq__item {
  padding-block: 1.75rem;
  border-top: 1px solid var(--ed-line);
}

.ed-faq__item:last-child {
  border-bottom: 1px solid var(--ed-line);
}

.ed-faq dt {
  font-family: var(--ed-serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ed-deep);
  text-wrap: balance;
}

.ed-faq dd {
  margin: 0.625rem 0 0;
  text-wrap: pretty;
}

/* ---------------------------------------------------------- calls to action */
/* ---------------------------------------------------------- enquiry form
   Hairline fields on the page ground; labels in the menu's small capitals. */
.ed-form {
  --ed-error: #9A2F22;
  max-width: 40rem;
  margin-inline: auto;
}

.ed-form__grid {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 40rem) {
  .ed-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-form__field--full {
    grid-column: 1 / -1;
  }
}

.ed-form__field {
  display: grid;
  gap: 0.5rem;
}

.ed-form__field label {
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-form__opt {
  font-weight: 400;
  color: var(--ed-muted);
}

.ed-form input,
.ed-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--ed-muted);
  border-radius: 0;
  background: transparent;
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ed-ink);
  transition: border-color 150ms ease;
}

.ed-form textarea {
  resize: vertical;
}

.ed-form input:hover,
.ed-form textarea:hover {
  border-bottom-color: var(--ed-ink);
}

.ed-form input:focus-visible,
.ed-form textarea:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 4px;
  border-bottom-color: var(--ed-ink);
}

.ed-form [aria-invalid="true"] {
  border-bottom: 2px solid var(--ed-error);
}

.ed-form__error {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ed-error);
}

.ed-form__error:empty {
  min-height: 0;
}

.ed-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 2.5rem;
  padding: 0 2rem;
  border: 1px solid var(--ed-ink);
  border-radius: 0;
  background: var(--ed-ink);
  color: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ed-ease-out);
}

@media (hover: hover) {
  .ed-form__submit:hover {
    background: transparent;
    color: var(--ed-ink);
  }
}

.ed-form__submit:active {
  transform: scale(0.97);
}

.ed-form__submit:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 3px;
}

.ed-form__submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.ed-form__status {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.ed-form__status:empty {
  margin: 0;
}

.ed-form__status[data-state="error"] {
  color: var(--ed-error);
}

@media (forced-colors: active) {
  .ed-form input,
  .ed-form textarea {
    border-bottom-color: CanvasText;
  }
}

.ed-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.ed-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.75em;
  color: var(--ed-deep);
  transition: text-underline-offset 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ed-cta a:hover {
    text-underline-offset: 0.5em;
  }
}

.ed-close {
  text-align: center;
  padding-bottom: clamp(2.75rem, 1.65rem + 3.3vw, 4.95rem);
}

.ed-close .ed-intro {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--ed-ink);
}

/* ---------------------------------------------------------- footer */
.ed-foot {
  display: grid;
  gap: 2.25rem;
  padding: clamp(2.17rem, 1.24rem + 2.48vw, 3.72rem) var(--ed-gutter) 2.25rem;
  border-top: 1px solid var(--ed-line);
}

.ed-foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2.5rem 3.5rem;
}

.ed-foot__mark {
  justify-self: start;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ed-ink);
}

/* Brand block: the mark plus one plain identity line (Hebrew and Latin name). */
.ed-foot__brand {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.5rem;
}

.ed-foot__id {
  margin: 0;
  max-width: 34ch;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ed-muted);
  text-wrap: pretty;
}

/* Instagram: one tracked caps link under the identity line, in the mark's
   voice but a step smaller, so it reads as part of the brand block. A faint
   hairline underline keeps it from reading as a column heading. */
.ed-foot__social {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-top: 0.25rem;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ed-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
  transition: text-decoration-color 150ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .ed-foot__social:hover {
    text-decoration-color: currentColor;
  }
}

@media (min-width: 64rem) {
  .ed-foot {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .ed-foot__cols {
    grid-template-columns: repeat(3, auto);
    justify-self: end;
    margin-inline-end: 8%;
  }

  .ed-foot__copy {
    grid-column: 1 / -1;
  }
}

.ed-foot__head {
  margin: 0 0 1rem;
  font-family: var(--ed-sans) !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  line-height: 1.5 !important;
}

.ed-foot__cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-foot__cols a,
.ed-foot__btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: 2rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ed-ink);
  text-decoration: none;
  text-align: start;
}

@media (hover: hover) and (pointer: fine) {
  .ed-foot__cols a:hover,
  .ed-foot__btn:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }
}

.ed-foot__copy {
  margin: 0;
  padding-bottom: 4.5rem;   /* clears the fixed accessibility button */
  font-size: 0.6875rem;
  color: var(--ed-muted);
}

/* ---------------------------------------------------------- shared components, tuned */
/* main.js's outside-click handler treats a click on the "Aa" glyph as an
   outside click and closes the panel it just opened. Pre-existing issue on
   the homepage; avoided here without changing main.js. */
html.ed .a11y-toggle__mark {
  pointer-events: none;
}

html.ed .a11y-toggle {
  width: 44px;
  height: 44px;
  box-shadow: none;
}

html.ed .a11y-panel {
  border: 1px solid var(--ed-line);
  box-shadow: 0 24px 48px -28px rgb(31 30 28 / 0.35);
}

html.ed.a11y-highlight-links .ed-mast__nav a,
html.ed.a11y-highlight-links .ed-entry__title a {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html.ed .ed-menu__toggle::before,
  html.ed .ed-menu__toggle::after,
  html.ed .ed-cta a {
    transition: none;
  }
}

html.ed.a11y-reduce-motion .ed-menu__toggle::before,
html.ed.a11y-reduce-motion .ed-menu__toggle::after,
html.ed.a11y-reduce-motion .ed-cta a {
  transition: none;
}

@media print {
  .ed-notice,
  .ed-menu,
  .a11y-toggle,
  .cookie-banner {
    display: none !important;
  }
}

/* ============================================================
   Image-led pages (dor-session, 2026-11-24)
   Direction: the reference project page's opening. A full-bleed image,
   the page title set in white tracked serif capitals over it, one
   category line, one sentence at the foot; then images and text in
   alternating rhythm on the ivory ground.
   Images: the five project-* files, approved by Dor/Shaked on
   2026-11-24 for display as "Design concept" with generic names only.
   White text sits on a measured scrim (see --ed-scrim), never on bare
   image.
   ============================================================ */
html.ed {
  --ed-on-image: #FFFFFF;
  /* Measured: the brightest image pixel under any hero text stays at
     4.5:1 or better against white for small text, 3:1 or better for the
     large title (Playwright pixel sampling at 390, 768 and 1440 wide). */
  --ed-scrim:
    radial-gradient(ellipse 60% 34% at 50% 50%, rgb(24 22 19 / 0.32), rgb(24 22 19 / 0) 100%),
    radial-gradient(ellipse 28% 20% at 6% 7%, rgb(24 22 19 / 0.3), rgb(24 22 19 / 0) 100%),
    linear-gradient(180deg,
      rgb(24 22 19 / 0.66) 0%,
      rgb(24 22 19 / 0.5) 22%,
      rgb(24 22 19 / 0.54) 55%,
      rgb(24 22 19 / 0.7) 100%);
  --ed-img-outline: rgb(0 0 0 / 0.1);
}

/* Masthead laid over the hero. Absolute with no inset-block keeps its
   static position under the preview notice, so the hero starts there. */
html.ed--hero .ed-mast {
  position: absolute;
  inset-inline: 0;
}

html.ed--hero .ed-mast__nav a,
html.ed--hero .ed-menu__toggle {
  color: var(--ed-on-image);
}

html.ed--hero .ed-mast__nav a {
  text-shadow: 0 1px 12px rgb(24 22 19 / 0.35);
}

html.ed--hero :is(.ed-mast__logo, .ed-mast__nav, .ed-menu__toggle, .ed-hero):focus-visible,
html.ed--hero :is(.ed-mast__nav, .ed-hero) :focus-visible {
  outline-color: var(--ed-on-image);
}

html.ed--hero .ed-menu[open] .ed-menu__toggle {
  color: var(--ed-on-image);
}

/* ---------------------------------------------------------- hero */
.ed-main--hero {
  animation: none !important;
}

.ed-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  /* Viewport minus the preview notice above it, so the foot line stays
     inside the first screen. */
  height: calc(100svh - 2.125rem);
  min-height: 32rem;
  max-height: 64rem;
  margin-inline: calc(-1 * var(--ed-gutter));
  overflow: hidden;
  color: var(--ed-on-image);
  background: var(--ed-deep);
}

.ed-hero--short {
  height: 72svh;
  min-height: 28rem;
}

.ed-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ed-focus, 50% 50%);
}

.ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ed-scrim);
  pointer-events: none;
}

.ed-hero__body {
  align-self: center;
  padding: 7rem var(--ed-gutter) 2rem;
  text-align: center;
}

html.ed .ed-hero__title {
  max-width: 21em;
  margin: 0 auto;
  font-family: var(--ed-serif);
  font-weight: 400;
  /* 24px floor keeps the title in WCAG's large-text class on phones. */
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.45;
  letter-spacing: var(--ed-hero-track, 0.4em);
  padding-inline-start: var(--ed-hero-track, 0.4em);
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ed-on-image);
}

/* One-line title (homepage): larger, never wraps; sized so the
   tracked line fits a 320px screen. */
html.ed .ed-hero__title--line {
  max-width: none;
  font-size: clamp(1.125rem, 0.5rem + 2.4vw, 2.375rem);
  white-space: nowrap;
}

@media (max-width: 39.99rem) {
  html.ed .ed-hero__title--line {
    letter-spacing: 0.2em;
    padding-inline-start: 0.2em;
  }
}

.ed-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 1.75rem 0 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
}

.ed-hero__tags span + span::before {
  content: "|";
  margin-inline-end: 1.25rem;
  font-weight: 400;
}

.ed-hero__foot {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  padding: 0 var(--ed-gutter) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  text-align: center;
}

.ed-hero__line {
  max-width: 40rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  text-wrap: balance;
}

.ed-hero__credit {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .ed-hero__foot {
    grid-template-columns: 1fr minmax(0, 40rem) 1fr;
    align-items: end;
  }
  .ed-hero__line {
    grid-column: 2;
  }
  .ed-hero__credit {
    grid-column: 3;
    justify-self: end;
  }
  .ed-hero__foot:not(:has(.ed-hero__line)) .ed-hero__credit {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------- figures */
.ed-fig {
  max-width: var(--ed-max);
  margin: 0 auto;
}

.ed-fig__frame {
  position: relative;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-fig__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  outline: 1px solid var(--ed-img-outline);
  outline-offset: -1px;
  pointer-events: none;
}

.ed-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-fig--wide .ed-fig__frame {
  aspect-ratio: 16 / 9;
}

.ed-fig--square {
  max-width: 46rem;
}

.ed-fig--square .ed-fig__frame {
  aspect-ratio: 1292 / 1218;
}

.ed-fig--tall .ed-fig__frame {
  aspect-ratio: 4 / 5;
}

.ed-fig figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
}

.ed-fig__name {
  font-family: var(--ed-serif);
  font-weight: 700;
  letter-spacing: var(--ed-caps);
  color: var(--ed-ink);
}

.ed-fig__tag {
  color: var(--ed-muted);
}

.ed-pair {
  display: grid;
  gap: 3rem;
  max-width: var(--ed-max);
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .ed-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

/* Two images of different proportions side by side at one shared height:
   each item grows by its own aspect ratio (--grow = width / height). */
.ed-duo {
  display: grid;
  gap: 3rem;
  max-width: var(--ed-max);
  margin: 0 auto;
}

.ed-duo .ed-fig__frame {
  aspect-ratio: var(--ar);
}

@media (min-width: 48rem) {
  .ed-duo {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .ed-duo > * {
    flex: var(--grow) 1 0;
    min-width: 0;
  }
}

.ed-plate {
  padding-block: clamp(1.2rem, 0.6rem + 2.4vw, 3rem);
}

/* Two-paragraph lead under a hero */
.ed-lead + .ed-lead {
  margin-top: 1.1em;
}

/* Project page prose: one step up from body, centred column */
.ed-prose--lead {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* A figure that opens a project page. The whole figure is the target;
   the name takes the hover underline so the link reads as a link. */
.ed-fig-link {
  display: block;
  max-width: var(--ed-max);
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}

.ed-fig-link .ed-fig__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.6em;
  text-decoration-color: var(--ed-line);
  transition: text-decoration-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ed-fig-link:hover .ed-fig__name {
    text-decoration-color: var(--ed-ink);
  }
}

/* Scroll reveal: progressive enhancement, CSS only, motion opt-in. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.ed:not(.a11y-reduce-motion) .ed-fig {
      animation: ed-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes ed-rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
}

/* Hero entrance: once per page view. */
@media (prefers-reduced-motion: no-preference) {
  html.ed:not(.a11y-reduce-motion) .ed-hero__img {
    animation: ed-settle 1600ms var(--ed-ease-out) both;
  }
  html.ed:not(.a11y-reduce-motion) .ed-hero__body,
  html.ed:not(.a11y-reduce-motion) .ed-hero__foot {
    animation: ed-in 700ms var(--ed-ease-out) 200ms both;
  }
}

@keyframes ed-settle {
  from {
    transform: scale(1.06);
  }
}

@media print {
  .ed-hero {
    height: auto;
    min-height: 0;
    color: var(--ed-ink);
    background: none;
  }
  .ed-hero::before,
  .ed-hero__img {
    display: none;
  }
  html.ed--hero .ed-mast {
    position: static;
  }
  html.ed--hero .ed-mast__nav a,
  html.ed--hero .ed-mast__logo {
    color: var(--ed-ink);
    text-shadow: none;
  }
}

@media print {
  html.ed .ed-hero__title { color: var(--ed-ink); }
}

/* ---------------------------------------------------------- services page
   After the reference studio page: the work as a left-aligned grid of
   images with captions, then scope and fit as two lists on a tinted band. */
html.ed {
  --ed-tint: #EBE5D8;
}

.ed-areas__grid {
  display: grid;
  gap: 3rem clamp(1.5rem, 3vw, 3rem);
}

.ed-area__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ed-area__img {
  margin: 0 0 1.5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-area__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid var(--ed-img-outline);
  outline-offset: -1px;
}

@media (prefers-reduced-motion: no-preference) {
  html.ed:not(.a11y-reduce-motion) .ed-area__img img {
    transition: transform 600ms var(--ed-ease-out);
  }

  @media (hover: hover) and (pointer: fine) {
    html.ed:not(.a11y-reduce-motion) .ed-area__link:hover .ed-area__img img {
      transform: scale(1.02);
    }
  }
}

html.ed .ed-area__title {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--ed-ink);
}

@media (hover: hover) and (pointer: fine) {
  .ed-area__link:hover .ed-area__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }
}

.ed-area__text {
  max-width: 34rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ed-ink);
  text-wrap: pretty;
}

.ed-area__meta {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-muted);
}

@media (min-width: 40rem) {
  .ed-areas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The band runs edge to edge; its two lists sit on the page grid. */
.ed-tint {
  display: grid;
  gap: 3.5rem;
  margin-inline: calc(-1 * var(--ed-gutter));
  padding-block: clamp(2.275rem, 1.3rem + 2.6vw, 3.9rem);
  padding-inline: max(var(--ed-gutter), calc((100% - var(--ed-max)) / 2));
  background: var(--ed-tint);
}

html.ed .ed-tint__head {
  margin: 0 0 1.75rem;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-tint__intro {
  max-width: 30rem;
  margin: -0.5rem 0 2rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ed-muted);
}

.ed-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--ed-line);
}

.ed-steps li:last-child {
  border-bottom: 1px solid var(--ed-line);
}

.ed-steps__n {
  grid-row: span 2;
  padding-top: 0.2em;
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  font-variant-numeric: tabular-nums;
  color: var(--ed-muted);
}

.ed-steps__t {
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ed-ink);
}

.ed-steps__d {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ed-muted);
  text-wrap: pretty;
}

.ed-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
}

.ed-fit dt {
  font-size: 0.6875rem;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-muted);
}

.ed-fit dd {
  margin: 0.5rem 0 0;
  font-family: var(--ed-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ed-deep);
}

@media (min-width: 60rem) {
  .ed-tint {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 7rem);
  }

  .ed-steps li {
    grid-template-columns: 3rem minmax(0, 12rem) minmax(0, 1fr);
    column-gap: 1rem;
    align-items: baseline;
  }

  .ed-steps__n {
    grid-row: auto;
  }

  .ed-steps__d {
    margin-top: 0;
  }
}

/* Project meta with a visually hidden title: no gap above the first row. */
.ed-proj__aside > .visually-hidden + .ed-proj__meta {
  margin-top: 0;
}

/* FAQ answers that run to more than one paragraph. */
.ed-faq dd p {
  margin: 0;
}

.ed-faq dd p + p {
  margin-top: 0.75em;
}

/* ---------------------------------------------------------- services v3
   Intro text beside a modest portrait image (not full height), the stages
   of planning as a grid of cards on the tinted band, project fit as a row. */
.ed-svc-intro {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 0.9rem + 2.4vw, 3.3rem) clamp(0.6rem, 0.3rem + 1.2vw, 1.5rem);
}

html.ed .ed-svc-intro__title {
  margin: 0 0 2rem;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: var(--ed-caps);
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-svc-intro__prose {
  max-width: 36rem;
  font-family: var(--ed-serif);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--ed-ink);
}

.ed-svc-intro__prose p {
  margin: 0;
  text-wrap: pretty;
}

.ed-svc-intro__prose p + p {
  margin-top: 1.25em;
}

.ed-cta.ed-svc-intro__cta {
  margin: 2.25rem 0 0;
  text-align: start;
}

.ed-svc-intro__img {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ed-line);
}

.ed-svc-intro__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  outline: 1px solid var(--ed-img-outline);
  outline-offset: -1px;
}

@media (min-width: 56rem) {
  .ed-svc-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    column-gap: clamp(3rem, 8vw, 9rem);
    align-items: center;
  }

  .ed-svc-intro__img {
    justify-self: end;
  }
}

.ed-tint.ed-tint--stages {
  display: block;
}

.ed-stages {
  display: grid;
  gap: 0 clamp(1.5rem, 2.5vw, 2.5rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ed-stage {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--ed-line);
}

.ed-stage__n {
  display: block;
  font-family: var(--ed-serif);
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ed-muted);
}

html.ed .ed-stage__t {
  margin: 1.25rem 0 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ed-deep);
}

.ed-stage__d {
  max-width: 20rem;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ed-ink);
  text-wrap: pretty;
}

@media (min-width: 36rem) {
  .ed-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .ed-stages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ed-fit--row {
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .ed-fit--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Services, centred: area captions, stage cards (last row centred) and
   the project-fit row all share the page's centre axis. */
.ed-main--services > .visually-hidden:first-child + .ed-areas {
  padding-top: clamp(1.5rem, 0.9rem + 2.4vw, 3rem);
}

.ed-areas--center .ed-areas__grid {
  max-width: 64rem;
  margin-inline: auto;
}

.ed-areas--center .ed-area {
  text-align: center;
}

.ed-areas--center .ed-area__text {
  margin-inline: auto;
}

/* Wellness: no project page yet. The image whitens and "Coming soon"
   shows on hover; touch screens have no hover, so they show it always. */
.ed-area__img--soon {
  position: relative;
}

.ed-area__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(245 241 230 / 0.62);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-ink);
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .ed-area:hover .ed-area__soon {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.ed:not(.a11y-reduce-motion) .ed-area__soon {
    transition: opacity 200ms var(--ed-ease-out);
  }
}

@media (hover: none), (pointer: coarse) {
  .ed-area__soon {
    opacity: 1;
  }
}

.ed-tint--stages {
  text-align: center;
}

.ed-tint--stages .ed-stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 64rem;
  margin-inline: auto;
}

.ed-tint--stages .ed-stage {
  flex: 0 0 100%;
}

.ed-tint--stages .ed-stage__d {
  margin-inline: auto;
}

@media (min-width: 36rem) {
  .ed-tint--stages .ed-stage {
    flex-basis: calc((100% - clamp(1.5rem, 2.5vw, 2.5rem)) / 2);
  }
}

@media (min-width: 64rem) {
  .ed-tint--stages .ed-stage {
    flex-basis: calc((100% - 3 * clamp(1.5rem, 2.5vw, 2.5rem)) / 4);
  }
}

.ed-fit-sec .ed-fit--row {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

/* Homepage intro: the question and both paragraphs at one size, aligned
   to the start of a centred reading column. */
.ed-head--intro {
  text-align: start;
}

html.ed .ed-head--intro .ed-lead-q,
.ed-head--intro .ed-lead--serif {
  max-width: 50rem;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  letter-spacing: 0;
  text-wrap: pretty;
}

html.ed .ed-head--intro .ed-lead-q {
  margin-bottom: 1.45em;
}

.ed-head--intro .ed-lead--serif {
  margin-top: 0;
}

.ed-head--intro .ed-lead--serif + .ed-lead--serif {
  margin-top: 1.45em;
}

/* Contact portrait: the whole photograph, never cropped, set inside the
   media column on the page background. */
.ed-split__media--whole {
  background: none;
}

.ed-split__media--whole::after {
  display: none;
}

.ed-split__media--whole img {
  inset: clamp(1.5rem, 1rem + 2vw, 3rem) var(--ed-gutter);
  width: calc(100% - 2 * var(--ed-gutter));
  height: calc(100% - 2 * clamp(1.5rem, 1rem + 2vw, 3rem));
  object-fit: contain;
  object-position: 50% 50%;
}

@media (max-width: 59.99rem) {
  .ed-split__media--whole {
    aspect-ratio: 3 / 4;
  }
}

@media (min-width: 60rem) {
  /* Clear the masthead that sits over the split page. */
  .ed-split__media--whole img {
    inset-block: clamp(7.5rem, 6rem + 3vw, 9rem) clamp(2rem, 1rem + 2vw, 3.5rem);
    height: calc(100% - clamp(7.5rem, 6rem + 3vw, 9rem) - clamp(2rem, 1rem + 2vw, 3.5rem));
  }
}

/* Homepage intro: starts on the gallery's leading image edge. */
.ed-head--intro {
  max-width: 100rem;
}

.ed-head--intro .ed-lead--serif {
  margin-inline: 0;
}

.ed-head--intro .ed-lead--serif:first-child,
.ed-head--intro > .ed-lead--serif:first-of-type {
  margin-top: 0;
}

@media (min-width: 64rem) {
  .ed-head--intro {
    padding-inline-start: calc(0.75rem + clamp(1.5rem, 2.5vw, 2.75rem));
  }
}

/* FAQ: the questions in one quiet column. */
.ed-faqpage {
  max-width: 40rem;
  margin-inline: auto;
}

.ed-faqpage .ed-faq {
  max-width: none;
  margin: 0;
}

/* FAQ, About, Contact: the page image as a pale wash behind the heading and
   the first block of text, fading into the page ground. Decorative only; the
   text stays on near-paper tones so its contrast holds. */
.ed-wash {
  /* Secondary text a step darker, so it holds 4.5:1 over the wash. */
  --ed-muted: #5C5851;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: calc(-1 * var(--ed-gutter));
  padding-inline: var(--ed-gutter);
}

.ed-wash::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  max-height: clamp(34rem, 105svh, 62rem);
  background: var(--ed-wash-img) var(--ed-wash-pos, 50% 28%) / cover no-repeat;
  opacity: var(--ed-wash-opacity, 0.22);
  filter: saturate(0.85) blur(var(--ed-wash-blur, 0px));
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  pointer-events: none;
}

/* The page title keeps the larger serif with its short rule. */
.ed-head--wash {
  padding-bottom: clamp(1.625rem, 0.975rem + 1.95vw, 2.6rem);
}

.ed-head--wash .ed-lead {
  margin-top: 2rem;
}

/* About: the studio text, then the call to action, before the footer. */
.ed-wash--about {
  padding-bottom: clamp(2.4rem, 1.8rem + 2.4vw, 4.2rem);
}

.ed-wash--about .ed-split__prose {
  margin-top: 0;
}

/* Contact: the form in one centred column. */
.ed-contactform {
  max-width: 42rem;
  margin-inline: auto;
  padding-bottom: clamp(2.4rem, 1.8rem + 2.4vw, 4.2rem);
}

.ed-contactform .ed-form__grid {
  gap: 1.75rem 2rem;
}

.ed-contactform .ed-split__note {
  text-align: start;
  margin-inline: 0;
}

@media print {
  .ed-wash::before {
    display: none;
  }
}

/* ---------------------------------------------------------- projects menu
   "Projects" opens a short list of project categories on hover or keyboard
   focus. The link itself leads to the projects overview, so touch screens
   reach every category without hover. */
.ed-mast__nav .ed-nav__has-sub {
  position: relative;
}

.ed-mast__nav .ed-nav__sub {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 50%;
  display: block;
  min-width: 15.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--ed-bg);
  border: 1px solid var(--ed-line);
  box-shadow: 0 12px 32px -16px rgb(24 22 19 / 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -0.25rem);
}

html.ed .ed-mast__nav .ed-nav__sub a {
  display: flex;
  width: 100%;
  color: var(--ed-ink);
  text-shadow: none;
  white-space: nowrap;
}

.ed-mast__nav .ed-nav__sub li + li {
  border-top: 1px solid var(--ed-line);
}

.ed-mast__nav .ed-nav__has-sub:hover > .ed-nav__sub,
.ed-mast__nav .ed-nav__sub:focus-within,
.ed-mast__nav .ed-nav__trigger[aria-expanded="true"] + .ed-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: no-preference) {
  html.ed:not(.a11y-reduce-motion) .ed-mast__nav .ed-nav__sub {
    transition: opacity 160ms var(--ed-ease-out), transform 160ms var(--ed-ease-out), visibility 0s linear 160ms;
  }

  html.ed:not(.a11y-reduce-motion) .ed-mast__nav .ed-nav__has-sub:hover > .ed-nav__sub,
  html.ed:not(.a11y-reduce-motion) .ed-mast__nav .ed-nav__sub:focus-within,
  html.ed:not(.a11y-reduce-motion) .ed-mast__nav .ed-nav__trigger[aria-expanded="true"] + .ed-nav__sub {
    transition-delay: 0s;
  }
}

/* A small down chevron marks the item that opens a list. */
.ed-mast__nav .ed-nav__trigger::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-inline-start: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}

/* Mobile menu: the categories sit indented under Projects. */
.ed-menu__panel .ed-nav__sub {
  padding-inline-start: 1.25rem;
  border-top: 1px solid var(--ed-line);
}

.ed-menu__panel .ed-nav__sub a {
  min-height: 2.75rem;
  font-weight: 400;
}

/* ---------------------------------------------------------- project lists */
.ed-areas--list {
  padding-top: 0;
}

.ed-areas--center .ed-areas__grid--single {
  max-width: 31rem;
}

@media (min-width: 40rem) {
  .ed-areas__grid--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ed-areas--center .ed-area__meta {
  margin-top: 0.875rem;
}

/* Services: what working with the studio includes, as a quiet ruled list
   (title on the leading side, one line of detail beside it on wide screens). */
.ed-offer {
  text-align: center;
}

.ed-offer__list {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
  text-align: start;
  border-bottom: 1px solid var(--ed-line);
}

.ed-offer__item {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--ed-line);
}

html.ed .ed-offer__t {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--ed-ink);
}

.ed-offer__d {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ed-ink);
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .ed-offer__item {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: baseline;
  }
}

/* Homepage hero: the title, tags and line stacked together, centred at
   the bottom of the image. */
.ed-hero__foot--stack {
  grid-row: 2;
  gap: 0;
}

@media (min-width: 48rem) {
  .ed-hero__foot--stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed-hero__foot--stack .ed-hero__line {
    grid-column: auto;
  }
}

/* Small and quiet, like a caption on the image: a tracked serif title,
   then the tags and one short line in small sans. */
html.ed .ed-hero__title--foot {
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  line-height: 1.4;
  letter-spacing: 0.5em;
  padding-inline-start: 0.5em;
}

/* The full title stays on one line down to 320px. */
@media (max-width: 39.99rem) {
  html.ed .ed-hero__title--foot {
    font-size: clamp(0.75rem, 3.6vw, 0.875rem);
    letter-spacing: 0.16em;
    padding-inline-start: 0.16em;
  }
}

.ed-hero__foot--stack .ed-hero__tags {
  margin: 0.75rem 0 0;
  font-size: 0.625rem;
}

.ed-hero__foot--stack .ed-hero__line {
  max-width: 46rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
}

/* "Projects" only opens the category list; it is a button, not a page link.
   It takes the menu's link styling. */
.ed-nav__trigger {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-ink);
  cursor: pointer;
}

.ed-nav__trigger.is-section {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.7em;
}

html.ed--hero .ed-nav__trigger {
  color: var(--ed-on-image);
  text-shadow: 0 1px 12px rgb(24 22 19 / 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .ed-nav__trigger:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.7em;
  }
}

/* Mobile menu: Projects is a group label above its categories. */
.ed-menu__group {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--ed-caps-ui);
  text-transform: uppercase;
  color: var(--ed-muted);
}

/* Services: the areas of work in the homepage gallery layout. Wellness has
   no page yet; its image whitens with "Coming soon" on hover. */
.ed-main--services > .visually-hidden:first-child + .ed-showcase--services {
  padding-top: clamp(1.5rem, 0.9rem + 2.4vw, 3rem);
}

@media (hover: hover) and (pointer: fine) {
  .ed-card:hover .ed-area__soon {
    opacity: 1;
  }
}

@media (min-width: 48rem) {
  /* Two portraits side by side would stand far taller than the first row;
     a narrower, centred row keeps the two rows close in height. */
  .ed-showcase--services .ed-line--narrow {
    max-width: 52rem;
    margin-inline: auto;
  }
}

/* Services: the second pair of images on the leading side, "Working with
   the studio" beside them on wide screens; stacked on small ones. */
.ed-svcrow {
  display: grid;
  gap: 2.8rem;
}

.ed-offer--side {
  text-align: start;
}

.ed-offer--side .ed-label {
  padding-inline-start: 0;
}

.ed-offer--side .ed-offer__list {
  max-width: none;
  margin: 1.75rem 0 0;
}

@media (min-width: 48rem) {
  .ed-offer--side .ed-offer__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.375rem;
  }
}

@media (min-width: 64rem) {
  .ed-svcrow {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1rem + 3vw, 4.5rem);
    align-items: start;
  }

  .ed-showcase--services .ed-svcrow .ed-line--narrow {
    max-width: none;
    margin-inline: 0;
  }
}

.ed-offer--side .ed-label {
  text-align: start;
}

/* ------------------------------------------------ project page typography
   Text placement and sizes after normcph.com/project/dynaudio-montergade:
   a large, light, widely tracked title with small tags under it; a narrow
   facts column; a justified serif column on the page's centre line. */
.ed-head--proj {
  padding-block: clamp(2.113rem, 1.3rem + 3.25vw, 4.55rem) clamp(1.625rem, 1.137rem + 1.95vw, 2.925rem);
}

.ed-head--proj .ed-title {
  max-width: none;
  font-weight: 400;
  font-size: clamp(1.125rem, 0.8rem + 1.4vw, 1.875rem);
  line-height: 1.35;
  letter-spacing: 0.5em;
  padding-inline-start: 0.5em;
}

.ed-head__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin: 1.1rem 0 0;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ed-head__tags span + span::before {
  content: '|' / '';
  margin-inline: 1em;
}

.ed-head--proj .ed-lead {
  max-width: 46rem;
  margin-top: 2.25rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.ed-main--project .ed-proj__aside > .visually-hidden + .ed-proj__meta,
.ed-main--lobbies .ed-proj__aside > .visually-hidden + .ed-proj__meta {
  margin-top: 0;
}

.ed-proj__meta {
  gap: 1.5rem;
}

.ed-proj__meta dd {
  margin-top: 0.15rem;
  line-height: 1.4;
  color: var(--ed-ink);
}

/* A section name reads as one more fact label, not as a heading. */
html.ed .ed-proj__label {
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: var(--ed-caps-ui);
}

.ed-proj__text {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (max-width: 63.99rem) {
  .ed-proj__body {
    gap: 2.5rem;
  }

  .ed-proj__aside {
    text-align: center;
  }

  .ed-proj__text {
    justify-self: center;
  }

  .ed-proj__text p {
    text-align: start;
  }
}

@media (max-width: 39.99rem) {
  .ed-head--proj .ed-title {
    letter-spacing: 0.3em;
    padding-inline-start: 0.3em;
  }
}

@media (min-width: 64rem) {
  .ed-proj__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 35.5rem) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6.5vw, 6rem);
    padding-inline: clamp(1rem, 5vw, 4.5rem);
  }

  .ed-proj__text {
    font-size: 1.0625rem;
    line-height: 1.75rem;
  }

  .ed-proj__text p {
    text-align: justify;
    hyphens: none;
    text-wrap: wrap;
  }
}

/* A drawing on the page ground beside the concept, with the material
   samples below the text. Both sheets are transparent and shown whole. */
.ed-proj__spread {
  display: grid;
  gap: 2rem;
}

.ed-proj__sheet {
  margin: 0;
}

.ed-proj__sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.ed-proj__spreadtext {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  order: -1;
}

.ed-proj__spreadtext .ed-proj__text {
  max-width: 35.5rem;
}

@media (min-width: 48rem) {

  .ed-proj__spread {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .ed-proj__sheet--main {
    grid-row: 1 / 3;
  }

  .ed-proj__spreadtext {
    order: 0;
  }
}

@media (min-width: 64rem) {
  .ed-proj__spreadtext {
    padding-block-start: clamp(0.5rem, 2vw, 2rem);
  }

  .ed-proj__spreadtext .ed-proj__text p {
    text-align: start;
  }
}

@media (max-width: 63.99rem) {
  html.ed .ed-proj__spreadtext .ed-proj__label {
    text-align: start;
  }
}

/* The same spread mirrored: text and small image first, large image after. */
@media (min-width: 48rem) {
  .ed-proj__spread--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: clamp(1rem, 1.6vw, 1.5rem);
  }

  .ed-proj__spread--flip .ed-proj__sheet--main {
    grid-area: 1 / 2 / 3 / 3;
  }

  .ed-proj__spread--flip .ed-proj__spreadtext {
    grid-area: 1 / 1;
  }

  .ed-proj__spread--flip .ed-proj__sheet--side {
    grid-area: 2 / 1;
  }
}

@media (min-width: 64rem) {
  .ed-proj__spread--flip .ed-proj__spreadtext {
    padding-block: 0 clamp(1.5rem, 3vw, 3rem);
  }

  /* The small image fills its column down to the foot of the large one. */
  .ed-proj__spread--flip .ed-proj__sheet--side {
    position: relative;
    align-self: stretch;
    min-height: 16rem;
  }

  .ed-proj__spread--flip .ed-proj__sheet--side img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }

  /* The description starts on the large image's leading edge below it. */
  .ed-proj__body--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: clamp(1rem, 1.6vw, 1.5rem);
    padding-inline: 0;
  }

  .ed-proj__body--flip .ed-proj__text {
    max-width: 35.5rem;
  }

  .ed-proj__spread--flip .ed-proj__spreadtext {
    padding-inline-end: clamp(1rem, 2vw, 2.5rem);
  }
}

@media (max-width: 47.99rem) {
  .ed-proj__spread--flip .ed-proj__sheet--side {
    width: 62%;
  }
}

/* Card rows: the category line of every card in a row sits on one line,
   whatever the length of the text above it. */
@media (min-width: 48rem) {
  .ed-line {
    align-items: stretch;
  }

  .ed-line .ed-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .ed-line > .ed-card {
    height: auto;
  }

  .ed-line .ed-card figcaption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
  }

  .ed-line .ed-card__meta {
    margin-top: auto;
    padding-top: 1rem;
  }
}

/* A line break chosen for wide cards; narrow ones wrap on their own. */
@media (max-width: 47.99rem) {
  .ed-br {
    display: none;
  }
}

/* A moodboard, shown whole, beside a wide image with the concept under it. */
.ed-proj__detail {
  display: grid;
  gap: 2rem;
}

.ed-proj__detail > div {
  display: grid;
  gap: clamp(1.75rem, 2.5vw, 2.5rem);
  align-content: start;
}

.ed-proj__detail .ed-proj__spreadtext {
  order: 0;
  padding-block: 0;
}

@media (min-width: 48rem) {
  .ed-proj__detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: clamp(1rem, 1.6vw, 1.5rem);
  }
}

/* Tablets: the large image runs the height of the column beside it. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .ed-proj__spread--flip .ed-proj__sheet--main {
    align-self: stretch;
  }

  .ed-proj__spread--flip .ed-proj__sheet--main img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* Homepage intro: smaller reading text, close to the image above it and to
   the selected work below. */
.ed-head--intro {
  padding-block: clamp(2rem, 1.4rem + 1.8vw, 3.25rem) clamp(0.5rem, 0.25rem + 0.5vw, 1rem);
}

.ed-head--intro .ed-lead--serif {
  max-width: 48rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0313rem);
}

/* A drawing on white paper, laid on the page ground. */
.ed-proj__sheet--paper {
  isolation: isolate;
  background: var(--ed-bg);
}

.ed-proj__sheet--paper img {
  mix-blend-mode: multiply;
}

/* Office design: the description sits close under the title, on wide lines. */
.ed-head--tight .ed-lead {
  max-width: 66rem;
  margin-top: 1rem;
}

.ed-head--tight .ed-lead + .ed-lead {
  margin-top: 0.9em;
}

/* A project that opens with a tall image, its facts and text beside it. */
.ed-proj__spread--open .ed-proj__spreadtext {
  order: 0;
  gap: 2.5rem;
}

.ed-proj__spread--open .ed-proj__meta {
  margin: 0;
}

@media (min-width: 48rem) {
  .ed-proj__spread--open {
    column-gap: clamp(1.5rem, 4vw, 4rem);
  }

  .ed-proj__spread--open .ed-proj__spreadtext {
    grid-row: 1 / 3;
    align-self: end;
    padding-block: 0;
  }
}

@media (max-width: 47.99rem) {
  .ed-proj__spread--open .ed-proj__meta {
    text-align: center;
  }
}

.ed-head--proj .ed-lead,
.ed-head--tight .ed-lead {
  text-wrap: balance;
}

/* A band of images that share one height, each at its own proportions. */
.ed-proj__band {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

@media (min-width: 48rem) {
  .ed-proj__band {
    display: flex;
  }

  .ed-proj__band > * {
    flex: var(--a) 1 0;
    min-width: 0;
  }
}

/* Facts start on the images' leading edge, on every project page. */
@media (min-width: 64rem) {
  .ed-proj__body {
    padding-inline: 0;
  }
}

/* The concept text starts right beside its label. */
@media (min-width: 64rem) {
  .ed-proj__body--near {
    grid-template-columns: max-content minmax(0, 35.5rem);
    column-gap: 2.75rem;
  }
}

/* A sheet's name, under it. */
.ed-proj__sheet figcaption.ed-proj__label {
  margin-top: 1.25rem;
}

/* Image credit on a pale floor: dark type instead of white. */
.ed-proj__credit--dark {
  color: var(--ed-deep);
  text-shadow: none;
}

/* ------------------------------------------------------------- smartphone
   A shorter, larger-typed scroll for phones: images reach the screen edges,
   facts and lists sit in two columns, every control is a full touch target. */
html.ed {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html.ed a,
html.ed button,
html.ed summary {
  touch-action: manipulation;
}

@media (hover: none) {
  html.ed .ed-fig-link:active,
  html.ed .ed-area__link:active,
  html.ed .ed-band:active,
  html.ed .ed-cta a:active,
  html.ed .ed-foot a:active,
  html.ed .ed-menu__panel a:active {
    opacity: 0.65;
  }
}

@media (max-width: 47.99rem) {
  /* Type: nothing under 12px, reading text at 15px and up. */
  .ed-card__text,
  .ed-entry__text,
  .ed-stage__d,
  .ed-faq dd,
  .ed-list li,
  .ed-head--proj .ed-lead {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .ed-card__meta,
  .ed-fig .ed-fig__name,
  .ed-menu__toggle,
  .ed-head__tags,
  .ed-proj__meta dt,
  .ed-figures dt,
  .ed-fit dt,
  .ed-entry__index,
  .ed-foot__head,
  .ed-foot__social,
  .ed-foot__copy,
  .ed-band__credit,
  .ed-proj__credit,
  .ed-hero__tags,
  .ed-form label,
  .ed-form__opt,
  html.ed .ed-proj__label {
    font-size: 0.75rem;
  }

  .ed-hero__tags,
  .ed-head__tags {
    letter-spacing: 0.1em;
  }

  .ed-hero__foot--stack .ed-hero__line {
    font-size: 0.875rem;
  }

  .ed-proj__meta dd {
    font-size: 0.9375rem;
  }

  /* Project pages: wide images run edge to edge. */
  .ed-proj__img--wide,
  .ed-proj__pair > .ed-proj__img,
  .ed-proj__band > .ed-proj__sheet,
  .ed-proj__detail .ed-proj__sheet,
  .ed-proj__sheet--main {
    margin-inline: calc(-1 * var(--ed-gutter));
  }

  .ed-proj__img--wide {
    aspect-ratio: 4 / 3;
  }

  .ed-proj__sheet figcaption {
    padding-inline: var(--ed-gutter);
  }

  .ed-proj__spread--flip .ed-proj__sheet--side {
    justify-self: end;
    margin-inline-end: calc(-1 * var(--ed-gutter));
  }

  .ed-proj__spread:not(.ed-proj__spread--flip) .ed-proj__sheet--side {
    margin-inline: calc(-0.5 * var(--ed-gutter));
  }

  /* Facts: two columns on the reading edge. */
  .ed-proj__aside,
  .ed-proj__spread--open .ed-proj__meta {
    text-align: start;
  }

  .ed-proj__meta {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }

  .ed-proj__body {
    gap: 2rem;
  }

  .ed-proj__body--near {
    gap: 0.75rem;
  }

  /* Menu: larger rows, scrolls inside the screen when it is long. */
  .ed-menu__panel {
    max-height: calc(100dvh - 7.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .ed-menu__panel a,
  .ed-menu__group {
    font-size: 0.875rem;
  }

  .ed-menu__panel .ed-nav__sub a {
    min-height: 3rem;
  }

  /* Footer: two columns, 44px rows. */
  .ed-foot__cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }

  .ed-foot__cols a,
  .ed-foot__btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .ed-foot__mark {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .ed-foot__cols li + li {
    margin-top: 0;
  }

  .ed-foot__copy {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 39.99rem) {
  /* Process: the number beside its text. */
  .ed-stage {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 0.5rem;
    padding-block: 1.1rem 1.25rem;
    text-align: start;
  }

  .ed-stage__n {
    grid-row: 1 / 3;
    font-size: 1.375rem;
    line-height: 1.5;
  }

  .ed-stage__t {
    margin-top: 0;
  }

  .ed-stage__d {
    max-width: none;
    margin-inline: 0;
  }

  /* Planning list: the same shape. */
  .ed-grid--3 {
    gap: 0;
  }

  .ed-grid--3 .ed-entry {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 0.5rem;
    padding-block: 1.1rem;
    border-top: 1px solid var(--ed-line);
  }

  .ed-grid--3 .ed-entry__index {
    grid-row: 1 / 3;
    margin: 0;
    line-height: 1.75rem;
  }

  .ed-grid--3 .ed-entry__title {
    margin-top: 0;
  }

  /* Project fit: two by two. */
  .ed-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }
}

@media (max-width: 47.99rem) {
  .ed-hero__foot--stack .ed-hero__tags,
  .ed-form__opt,
  html.ed .ed-foot .ed-foot__head,
  html.ed .ed-form label span,
  .ed-facts dt {
    font-size: 0.75rem;
  }

  .ed-hero__foot--stack .ed-hero__tags span {
    font-size: 0.75rem;
  }

  /* Wrapped category tags stack without a stray divider. */
  .ed-main--lobbies .ed-head__tags {
    letter-spacing: 0.06em;
  }

  .ed-main--lobbies .ed-head__tags span + span::before {
    margin-inline: 0.6em;
  }

  .ed-proj__aside:has(dl) + .ed-proj__text {
    margin-top: 1.25rem;
  }

  .ed-proj__body:not(.ed-proj__body--near) > .ed-proj__text {
    margin-top: 0;
  }

  .ed-proj__spread:not(.ed-proj__spread--flip) .ed-proj__sheet--side figcaption {
    padding-inline: calc(0.5 * var(--ed-gutter));
  }
}

@media (max-width: 39.99rem) {
  html.ed .ed-stage .ed-stage__t {
    margin-top: 0;
    line-height: 1.75;
  }

  .ed-foot__cols > div:last-child {
    grid-column: 1 / -1;
  }

  .ed-foot__cols > div:last-child ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }

  .ed-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
}

/* Folded lists and two-column texts on phones. */
html.ed [hidden] {
  display: none !important;
}

.ed-fold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: start;
  color: inherit;
  cursor: pointer;
}

.ed-fold::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline: 0.25rem;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 160ms var(--ed-ease-out);
}

.ed-fold[aria-expanded="true"]::after {
  transform: translateY(0.1rem) rotate(225deg);
}

@media (prefers-reduced-motion: reduce) {
  .ed-fold::after {
    transition: none;
  }
}

html.a11y-reduce-motion .ed-fold::after {
  transition: none;
}

@media (max-width: 47.99rem) {
  .ed-section.is-fold {
    padding-block: 0;
    border-top: 1px solid var(--ed-line);
  }

  .ed-section.is-fold .ed-label {
    margin-bottom: 0;
  }

  .ed-section.is-fold .ed-fold {
    min-height: 3.75rem;
  }

  .ed-section.is-fold .ed-intro {
    margin: 0 0 1rem;
  }

  .ed-section.is-fold .ed-list {
    padding-bottom: 1.5rem;
  }

  .ed-section.is-fold .ed-grid {
    padding-bottom: 1.75rem;
  }

  .ed-offer__item.is-fold,
  .ed-faq__item.is-fold {
    gap: 0;
    padding-block: 0.25rem;
  }

  .ed-offer__item.is-fold .ed-offer__d,
  .ed-faq__item.is-fold dd {
    margin-top: 0;
    padding-bottom: 1.1rem;
  }

  .ed-faq__item.is-fold dt {
    font-size: 1.0625rem;
  }
}

/* Phones: the design process band folds under its centred heading. */
@media (max-width: 47.99rem) {
  .ed-tint--stages.is-fold {
    padding-block: 1.25rem;
  }

  .ed-tint--stages.is-fold .ed-label {
    margin-bottom: 0;
  }

  .ed-tint--stages.is-fold .ed-fold {
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.5rem;
  }

  .ed-tint--stages.is-fold .ed-intro {
    margin-top: 0.75rem;
  }
}

@media (max-width: 39.99rem) {
  /* Process and planning: two columns of short texts. */
  .ed-stages,
  .ed-grid.ed-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
  }

  .ed-stages {
    margin-top: 1.25rem;
  }

  .ed-stage,
  .ed-grid--3 .ed-entry {
    display: block;
    padding-block: 0.9rem 1rem;
  }

  .ed-stage__n,
  .ed-grid--3 .ed-entry__index {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  html.ed .ed-stage .ed-stage__t {
    margin-top: 0.15rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  html.ed .ed-grid--3 .ed-entry__title {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .ed-stage__d,
  .ed-grid--3 .ed-entry__text {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-wrap: pretty;
  }

  /* Portrait pairs sit side by side with a short caption. */
  .ed-line--narrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .ed-line--narrow .ed-fig__frame {
    aspect-ratio: 3 / 4 !important;
  }

  .ed-line--narrow .ed-fig__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ed-line--narrow .ed-card__text {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .ed-line--narrow .ed-fig .ed-fig__name {
    letter-spacing: 0.1em;
  }

  .ed-line--narrow .ed-card__meta {
    margin-top: 0.6rem;
    letter-spacing: 0.04em;
  }

  .ed-showcase--services .ed-gallery__row > .ed-line > :first-child .ed-fig__frame {
    aspect-ratio: 1 !important;
  }

  .ed-showcase--services .ed-fig__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ed-gallery__row,
  .ed-line {
    row-gap: 2rem;
  }

  .ed-main--office .ed-head--tight .ed-lead {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

@media (max-width: 39.99rem) {
  .ed-tint--stages .ed-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 1.25rem;
  }

  .ed-tint--stages .ed-stage:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Services: every project image at the lobby image's size. */
  .ed-showcase--services .ed-line--narrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ed-showcase--services .ed-gallery__row .ed-line .ed-fig__frame,
  .ed-showcase--services .ed-gallery__row > .ed-line > :first-child .ed-fig__frame {
    aspect-ratio: 1705 / 922 !important;
  }

  .ed-showcase--services .ed-fig__frame img {
    object-position: 50% 62%;
  }

  .ed-showcase--services .ed-line--narrow .ed-card__text {
    margin-top: 0.9rem;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .ed-showcase--services .ed-line--narrow .ed-fig .ed-fig__name {
    letter-spacing: var(--ed-caps-ui);
  }

  .ed-fold {
    padding-block: 0.6rem;
  }

  .ed-section.is-fold {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--ed-line);
  }

  /* Folds that follow each other read as one list with single rules. */
  .ed-section.is-fold:has(+ .ed-section.is-fold) {
    margin-bottom: 0;
  }

  .ed-section.is-fold + .ed-section.is-fold {
    border-top: 0;
  }

  /* Short captions: the tags stack instead of breaking after the divider. */
  .ed-line--narrow .ed-card__meta {
    display: grid;
    gap: 0.1rem;
  }

  .ed-line--narrow .ed-card__meta span:not(:last-child)::after {
    content: none;
  }
}

@media (max-width: 47.99rem) {
  /* Café concept, Na’ale House: the large image separates the two texts. */
  .ed-proj__spread--flip .ed-proj__sheet--main {
    order: -2;
  }

  .ed-fold:focus-visible {
    outline-offset: 0;
  }
}

@media (max-width: 39.99rem) {
  /* The café sign stays in view in the wide crop. */
  .ed-showcase--services .ed-fig__frame img[src*="concept-cafe-counter"] {
    object-position: 50% 40%;
  }
}

@media (max-width: 39.99rem) {
  .ed-tint--stages .ed-stages {
    display: grid;
  }

  .ed-tint--stages .ed-stage__d {
    margin-inline: 0;
  }
}

@media (max-width: 47.99rem) {
  /* Homepage projects: one under the other, every image the same size. */
  .ed-showcase:not(.ed-showcase--services) .ed-line--narrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ed-showcase:not(.ed-showcase--services) .ed-gallery__row .ed-line .ed-fig__frame {
    aspect-ratio: 1 !important;
  }

  .ed-showcase:not(.ed-showcase--services) .ed-fig__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ed-showcase:not(.ed-showcase--services) .ed-line--narrow .ed-card__text {
    margin-top: 0.9rem;
  }

  .ed-showcase:not(.ed-showcase--services) .ed-line--narrow .ed-card__meta {
    display: flex;
    margin-top: 1rem;
    letter-spacing: 0.12em;
  }

  .ed-showcase:not(.ed-showcase--services) .ed-line--narrow .ed-card__meta span:not(:last-child)::after {
    content: "|";
  }
}

@media (max-width: 47.99rem) {
  .ed-main--office .ed-head--tight .ed-lead {
    max-width: none;
    font-size: clamp(0.75rem, 3.3vw, 0.875rem);
    text-wrap: pretty;
  }

  .ed-showcase:not(.ed-showcase--services) .ed-line > * {
    width: 100%;
  }
}

@media (max-width: 47.99rem) {
  /* Project facts: a compact list on the left, label and value on one line. */
  .ed-main .ed-proj__meta,
  .ed-proj__meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.4rem 1.25rem !important;
  }

  .ed-proj__meta > div {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: baseline;
  }

  .ed-proj__meta dt {
    margin: 0;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .ed-proj__meta dd {
    margin: 0 !important;
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}

@media (max-width: 47.99rem) {
  /* Café concept: the facts stand beside the ceiling lights; the AM/PM
     column closes the page. */
  .ed-proj--cafe {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 2rem;
  }

  .ed-proj--cafe :is(.ed-proj__pair, .ed-proj__body, .ed-proj__spread) {
    display: contents;
  }

  .ed-proj--cafe :is(.ed-proj__pair > *, .ed-proj__spread > *, .ed-proj__body > *) {
    grid-column: 1 / -1;
  }

  .ed-proj--cafe .ed-proj__pair > :first-child {
    order: 1;
  }

  .ed-proj--cafe .ed-proj__aside {
    grid-column: 1;
    order: 2;
    align-self: center;
  }

  .ed-proj--cafe .ed-proj__spread .ed-proj__sheet--side {
    grid-column: 2;
    order: 3;
    justify-self: stretch;
    width: auto;
    margin: 0;
  }

  .ed-proj--cafe .ed-proj__body > .ed-proj__text {
    order: 4;
  }

  .ed-proj--cafe .ed-proj__spread .ed-proj__sheet--main {
    order: 5;
  }

  .ed-proj--cafe .ed-proj__spreadtext {
    order: 6;
  }

  .ed-proj--cafe .ed-proj__pair > :last-child {
    order: 7;
  }

  .ed-proj--cafe .ed-proj__meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem !important;
  }

  .ed-proj--cafe .ed-proj__meta > div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.1rem;
  }
}

@media (max-width: 47.99rem) {
  html.ed .ed-offer__item :is(h2, h3) {
    font-size: 0.9375rem;
  }
}

@media (max-width: 47.99rem) {
  /* Homepage band: title on one line, description on two. */
  .ed-band__body {
    inset-inline: 0.5rem;
  }

  .ed-band__title {
    font-size: clamp(0.75rem, 0.25rem + 2.8vw, 0.9375rem);
    letter-spacing: 0.22em;
    padding-inline-start: 0.22em;
    white-space: nowrap;
  }

  .ed-band__text {
    font-size: clamp(0.75rem, 3.35vw, 0.875rem);
  }
}

/* ---------------------------------------------------------- legal pages
   Title and intro as on the FAQ page, then one hairline row per section:
   heading on the left, text on the right. On phones the rows fold. */
.ed-legal {
  max-width: 64rem;
  margin-inline: auto;
  padding-bottom: clamp(2.4rem, 1.8rem + 2.4vw, 4.2rem);
}

.ed-legal__date {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ed-muted);
}

.ed-legal__head .ed-lead {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  text-wrap: pretty;
}

.ed-legal__item {
  display: grid;
  gap: 0.75rem;
  padding-block: 2rem;
  border-top: 1px solid var(--ed-line);
}

.ed-legal__item:last-child {
  border-bottom: 1px solid var(--ed-line);
}

html.ed .ed-legal__t {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ed-deep);
  text-wrap: balance;
}

.ed-legal__d {
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.ed-legal__d > * {
  margin: 0;
}

.ed-legal__d > * + * {
  margin-top: 0.9rem;
}

.ed-legal__d ul {
  padding-inline-start: 1.1rem;
  list-style: disc;
}

.ed-legal__d li + li {
  margin-top: 0.4rem;
}

.ed-legal__d li::marker {
  color: var(--ed-muted);
}

.ed-legal__d strong {
  font-weight: 600;
}

.ed-legal__d a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.ed-foot__cols a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.ed-consent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ed-legal__d > .ed-consent {
  margin-top: 1.25rem;
}

.ed-consent__btn {
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid var(--ed-ink);
  background: transparent;
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, color 150ms ease;
}

.ed-consent__btn[aria-pressed="true"] {
  background: var(--ed-ink);
  color: var(--ed-bg);
}

@media (hover: hover) and (pointer: fine) {
  .ed-consent__btn:hover {
    background: var(--ed-ink);
    color: var(--ed-bg);
  }
}

.ed-consent__btn:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .ed-consent__btn[aria-pressed="true"] {
    background: Highlight;
    color: HighlightText;
  }
}

@media (min-width: 48rem) {
  .ed-legal__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: baseline;
  }
}

@media (max-width: 47.99rem) {
  html.ed .ed-legal__t {
    font-size: 0.9375rem;
  }

  .ed-legal__head .ed-lead {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .ed-legal__item.is-fold {
    gap: 0;
    padding-block: 0.25rem;
  }

  .ed-legal__item.is-fold .ed-legal__d {
    padding-bottom: 1.25rem;
  }

  .ed-consent__btn {
    flex: 1 1 9rem;
    padding-inline: 0.5rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
}

@media (max-width: 47.99rem) {
  /* Homepage opening image on phones, in the image's own proportions. */
  .ed-main--home .ed-hero {
    height: min(calc(100svh - 2.125rem), 137.4vw);
    min-height: 28rem;
  }

  .ed-main--home .ed-hero__img {
    object-position: 50% 50%;
  }
}

/* ---------------------------------------------------------- language switch */
.ed-lang {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ed-ink);
  white-space: nowrap;
}

.ed-lang > a,
.ed-lang > [aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}

.ed-lang > a {
  position: relative;
  touch-action: manipulation;
}

/* Wider touch area, away from the menu button. */
.ed-lang > a::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: -0.5rem 0;
}

html.ed[lang="he"] .ed-lang > a::before {
  inset-inline: 0 -0.5rem;
}

.ed-lang > [aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

.ed-lang__sep {
  opacity: 0.6;
}

html.ed--hero .ed-lang {
  color: var(--ed-on-image);
  text-shadow: 0 1px 12px rgb(24 22 19 / 0.35);
}

html.ed--hero .ed-lang > a:focus-visible {
  outline-color: var(--ed-on-image);
}

@media (hover: hover) and (pointer: fine) {
  .ed-lang > a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.4em;
  }
}

@media (min-width: 64rem) {
  .ed-lang {
    justify-self: end;
    margin-inline-end: -0.5rem;
  }
}

@media (max-width: 63.99rem) {
  .ed-mast {
    gap: 0.25rem;
  }

  .ed-mast__logo {
    margin-inline-end: auto;
  }
}

@media print {
  .ed-lang {
    display: none;
  }

  html.ed--hero .ed-lang {
    color: var(--ed-ink);
  }
}

/* ---------------------------------------------------------- Hebrew
   The same pages in Hebrew, right to left. Latin names keep the brand
   families; Hebrew is set in Frank Ruhl Libre (serif) and Heebo (sans).
   Hebrew has no capitals, so wide tracking becomes light tracking and
   headings gain a little size. */
html.ed[lang="he"] {
  --ed-serif: 'Libre Caslon Text', 'Frank Ruhl Libre', 'Times New Roman', serif;
  --ed-sans: 'Figtree', 'Heebo', Arial, sans-serif;
  --ed-caps-wide: 0.1em;
  --ed-caps-ui: 0.04em;
  --ed-hero-track: 0.1em;
}

html.ed[lang="he"] :is(.ed-mast__logo, .ed-foot__mark) {
  letter-spacing: 0.18em;
}

html.ed[lang="he"] :is(.ed-title, .ed-label, .ed-split__title, .ed-hero__title, .ed-band__title, .ed-fig__name, .ed-proj__label):not([lang="en"]) {
  letter-spacing: 0.08em !important;
}

html.ed[lang="he"] :is(.ed-title, .ed-fig__name)[lang="en"] {
  letter-spacing: 0.26em !important;
}

html.ed[lang="he"] :is(.ed-card__meta, .ed-head__tags, .ed-hero__tags, .ed-notice, .ed-fold, .ed-foot__head, .ed-consent__btn, .ed-form label, .ed-proj__meta dt, .ed-facts dt, .ed-form__submit, .ed-cta a, .ed-entry__title, .ed-menu__panel a, .ed-menu__group, .ed-mast__nav a, .ed-nav__trigger, .ed-legal__date) {
  letter-spacing: 0.04em !important;
}

html.ed[lang="he"] :is(.ed-label, .ed-title):not([lang="en"]) {
  font-size: 1.0625rem;
}

html.ed[lang="he"] .ed-head--proj .ed-title:not([lang="en"]) {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}

html.ed[lang="he"] .ed-fig__name:not([lang="en"]) {
  font-size: 1rem;
}

html.ed[lang="he"] .ed-hero__title:not([lang="en"]) {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
}

html.ed[lang="he"] .ed-band__title:not([lang="en"]) {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
}

html.ed[lang="he"] :is(.ed-hero__tags, .ed-head__tags, .ed-card__meta, .ed-foot__head, .ed-proj__meta dt, .ed-cta a, .ed-form__submit, .ed-form label, .ed-consent__btn) {
  font-size: 0.8125rem;
}

html.ed[lang="he"] .ed-entry__title {
  font-size: 0.9375rem;
}

html.ed[lang="he"] :is(.ed-proj__label, .ed-proj__sheet figcaption) {
  font-size: 0.875rem;
  letter-spacing: 0.04em !important;
}

html.ed[lang="he"] .ed-mast__nav :is(a, .ed-nav__trigger) {
  font-size: 0.8125rem;
}

html.ed[lang="he"] .ed-menu__panel :is(a, .ed-menu__group) {
  font-size: 1rem;
}

html.ed[lang="he"] .ed-hero__line {
  font-size: 0.9375rem;
}

/* Stacked letters read from top to bottom. */
@media (min-width: 64rem) {
  html.ed[lang="he"] .ed-gallery__label {
    direction: ltr;
    unicode-bidi: isolate-override;
  }
}

html.ed[lang="he"] .ed-fold::after {
  border-inline-end: 0;
  border-inline-start: 1px solid currentColor;
}

html.ed[lang="he"] .ed-foot__copy {
  direction: ltr;
  text-align: right;
}

html.ed[lang="he"] .ed-fig__name {
  line-height: 1.75rem;
}

@media (min-width: 64rem) {
  html.ed[lang="he"] .ed-gallery__label {
    font-size: 0.9375rem;
    letter-spacing: 0.2em;
  }
}

/* A heading inside a project text block. */
html.ed .ed-proj__text > .ed-proj__label {
  margin-bottom: 0.6rem;
  text-align: start;
}

.ed-main--project .ed-proj__aside > .ed-proj__meta:first-child {
  margin-top: 0;
}

@media (max-width: 47.99rem) {
  html.ed[lang="en"] .ed-proj__body--solo > .ed-proj__text > .ed-proj__label {
    font-size: clamp(0.625rem, 2.95vw, 0.75rem);
    letter-spacing: 0.04em;
  }
}

.ed-proj__body.ed-proj__body--solo {
  display: block;
}

.ed-proj__body--solo > .ed-proj__text {
  max-width: 35.5rem;
  margin: 0;
}

@media (min-width: 48rem) {
  html.ed .ed-offer__item .ed-offer__t {
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------- running text
   One voice for every text the visitor reads: the project pages' serif, with
   the same tracking, in two sizes. The sans is for navigation, tags, labels,
   buttons, the form and the footer only. */
html.ed {
  --ed-text: 1.0625rem;
  --ed-text-lh: 1.65;
  --ed-text-sm: 0.9375rem;
}

@media (max-width: 47.99rem) {
  html.ed {
    --ed-text: 1rem;
    --ed-text-lh: 1.5;
    --ed-text-sm: 0.875rem;
  }
}

html.ed .ed-main :is(.ed-lead, .ed-intro, .ed-list li, .ed-offer__d, .ed-faq dd, .ed-faq dd p, .ed-card__text, .ed-entry__text, .ed-stage__d, .ed-legal__d, .ed-split__prose p, .ed-split__note, .ed-hero__line, .ed-band__text, .ed-proj__text p) {
  font-family: var(--ed-serif);
  letter-spacing: 0.02em;
}

html.ed .ed-main :is(.ed-lead, .ed-split__prose p, .ed-proj__text p) {
  font-size: var(--ed-text);
  line-height: var(--ed-text-lh);
}

html.ed .ed-main :is(.ed-intro, .ed-list li, .ed-offer__d, .ed-faq dd, .ed-faq dd p, .ed-card__text, .ed-entry__text, .ed-stage__d, .ed-legal__d, .ed-split__note, .ed-hero__line) {
  font-size: var(--ed-text-sm);
  line-height: 1.65;
}

html.ed .ed-main.ed-main--legal .ed-lead,
html.ed .ed-main.ed-main--office .ed-head--tight .ed-lead,
html.ed .ed-main .ed-head--proj .ed-lead {
  font-size: var(--ed-text-sm);
  line-height: 1.65;
}

/* One heading style, the project title's: the serif in regular weight, set in
   tracked capitals. Only the size follows the level; long headings (questions,
   sections) take less tracking so they stay readable. */
html.ed .ed-main :is(.ed-title, .ed-label, .ed-split__title, .ed-fig__name, .ed-offer__t, .ed-legal__t, .ed-faq dt, .ed-entry__title, .ed-stage__t) {
  font-family: var(--ed-serif);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ed-ink);
}

html.ed .ed-main :is(.ed-label, .ed-title):not(.ed-head--proj .ed-title) {
  font-size: 1.0625rem;
  letter-spacing: 0.26em;
  padding-inline-start: 0.26em;
}

html.ed .ed-main :is(.ed-label--start, .ed-offer--side .ed-label, .ed-section.is-fold .ed-label, .ed-section--start .ed-label) {
  padding-inline-start: 0;
}

html.ed .ed-main .ed-fig__name {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

html.ed .ed-main :is(.ed-offer__t, .ed-legal__t, .ed-faq dt, .ed-entry__title, .ed-stage__t) {
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

@media (max-width: 47.99rem) {
  html.ed .ed-main :is(.ed-label, .ed-title):not(.ed-head--proj .ed-title) {
    font-size: 0.9375rem;
    letter-spacing: 0.2em;
    padding-inline-start: 0.2em;
  }

  html.ed .ed-main :is(.ed-offer--side .ed-label, .ed-section.is-fold .ed-label) {
    padding-inline-start: 0;
  }

  html.ed .ed-main :is(.ed-offer__t, .ed-legal__t, .ed-faq dt, .ed-entry__title, .ed-stage__t) {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

/* Hebrew has no capitals: the same regular serif, lightly tracked, larger. */
html.ed[lang="he"] .ed-main :is(.ed-offer__t, .ed-legal__t, .ed-faq dt, .ed-entry__title, .ed-stage__t) {
  font-size: 1.0625rem;
  letter-spacing: 0.04em !important;
}

html.ed[lang="he"] .ed-main :is(.ed-fig__name, .ed-band__title):not([lang="en"]) {
  font-size: 1.0625rem;
}

html.ed[lang="he"] .ed-main :is(.ed-label, .ed-title):not(.ed-head--proj .ed-title, [lang="en"]) {
  font-size: 1.1875rem;
  padding-inline-start: 0;
}

html.ed[lang="he"] .ed-main .ed-fig__name[lang="en"] {
  letter-spacing: 0.2em !important;
}

/* English titles on Hebrew pages keep the English tracking. */
html.ed[lang="he"] :is(.ed-hero__title, .ed-band__title)[lang="en"] {
  letter-spacing: 0.4em;
  padding-inline: 0;
}

html.ed[lang="he"] .ed-hero__title[lang="en"] {
  letter-spacing: 0.5em;
}

@media (max-width: 39.99rem) {
  html.ed[lang="he"] .ed-hero__title[lang="en"] {
    letter-spacing: 0.16em;
  }
}

@media (max-width: 47.99rem) {
  html.ed[lang="he"] .ed-band__title[lang="en"] {
    letter-spacing: 0.22em;
  }
}

html.ed .ed-main :is(.ed-offer__t, .ed-legal__t, .ed-faq dt) .ed-fold {
  font-size: inherit;
  font-weight: 400;
}

@media (max-width: 47.99rem) {
  html.ed .ed-main.ed-main--office .ed-head--tight .ed-lead {
    font-size: clamp(0.6875rem, 3.2vw, 0.875rem);
    letter-spacing: 0;
  }

  html.ed .ed-main .ed-band__text {
    font-size: clamp(0.6875rem, 3.2vw, 0.875rem);
    letter-spacing: 0;
  }

  html.ed .ed-main--office .ed-section:not(.ed-close) .ed-label,
  html.ed .ed-main--lobbies .ed-section:not(.ed-close) .ed-label {
    padding-inline-start: 0;
  }
}

/* Phones: a compact footer with tighter rows and smaller gaps. */
@media (max-width: 47.99rem) {
  html.ed .ed-foot {
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 0;
  }

  html.ed .ed-foot__cols {
    gap: 0.5rem 1.5rem;
  }

  html.ed .ed-foot .ed-foot__head {
    margin-bottom: 0;
  }

  html.ed .ed-foot__cols a,
  html.ed .ed-foot__btn {
    min-height: 1.5rem;
  }

  html.ed .ed-foot__mark {
    min-height: 1.5rem;
  }

  /* Identity line stays with the mark, clearly apart from the link columns. */
  html.ed .ed-foot__brand {
    gap: 0.25rem;
    padding-bottom: 0.75rem;
  }

  html.ed .ed-foot__cols a,
  html.ed .ed-foot__btn,
  html.ed .ed-foot .ed-foot__head {
    line-height: 1.3 !important;
  }

  html.ed .ed-foot__copy {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Lobbies, From Concept to Space: comfortable line length in the two columns. */
#q-h ~ .ed-grid--2 .ed-entry__text {
  max-width: 44ch;
}

/* Phones: folded section headings at the project-name size. */
@media (max-width: 47.99rem) {
  html.ed .ed-main .ed-section.is-fold .ed-label {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    line-height: 1.6;
  }

  html.ed[lang="he"] .ed-main .ed-section.is-fold .ed-label {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  html.ed .ed-main .ed-section.is-fold .ed-fold {
    min-height: 3.25rem;
  }
}

/* Phones: a shorter contact page with tighter field rhythm. */
@media (max-width: 47.99rem) {
  html.ed .ed-main--contact .ed-head--wash {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  html.ed .ed-main--contact .ed-wash {
    gap: 0;
    row-gap: 0;
  }

  html.ed .ed-main--contact .ed-contactform {
    margin-top: 0;
    padding-bottom: 1.5rem;
  }

  html.ed .ed-main--contact .ed-split__form {
    margin-top: 0.75rem;
  }

  html.ed .ed-main--contact .ed-contactform .ed-form__grid {
    gap: 0.875rem;
  }

  html.ed .ed-main--contact .ed-form__field {
    gap: 0;
  }

  html.ed .ed-main--contact .ed-form input {
    min-height: 2.5rem;
    padding-block: 0.375rem;
  }

  html.ed .ed-main--contact .ed-form textarea {
    min-height: 4.5rem;
    height: 4.5rem;
    padding-block: 0.375rem;
  }

  html.ed .ed-main--contact .ed-form__submit {
    margin-top: 1.5rem;
  }

  html.ed .ed-main--contact .ed-split__note {
    margin-top: 1.25rem;
  }
}

/* Service pages: two-paragraph leads share one comfortable centred measure. */
@media (min-width: 48rem) {
  html.ed .ed-main--office .ed-head--tight .ed-lead {
    max-width: 50rem;
    margin-inline: auto;
  }
}

/* Hebrew titles: the start padding matches the Hebrew tracking so the
   title sits centred over the lines below it. */
html.ed[lang="he"] .ed-split__title {
  padding-inline-start: 0.08em;
}

/* About and FAQ share one quiet title size (given in session). */
html.ed :is(.ed-main--contact, .ed-main--about, .ed-main--faq) .ed-split__title {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
}

/* Contact (given in session): very quiet. No visible title; phone and
   office email as two small lines, then a short three-field form, all
   aligned to the start edge of the page with small gaps. */
html.ed .ed-main--contact .ed-head--contact,
html.ed .ed-main--contact .ed-contactform {
  max-width: 20rem;
  margin-inline: auto;
  text-align: start;
}

html.ed .ed-main--contact .ed-head--contact {
  padding-block: clamp(2rem, 1.25rem + 3vw, 4rem) 0;
}

html.ed .ed-reach {
  margin: 0;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ed-ink);
}

html.ed .ed-reach > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
}

html.ed .ed-reach dt {
  font-weight: 600;
}

html.ed .ed-reach dd {
  margin: 0;
}

html.ed .ed-reach a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: inherit;
  text-decoration: none;
  unicode-bidi: isolate;
}

@media (hover: hover) and (pointer: fine) {
  html.ed .ed-reach a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

html.ed .ed-reach a:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 2px;
}

html.ed .ed-main--contact .ed-contactform {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

html.ed .ed-main--contact .ed-split__form {
  margin-top: 1.5rem;
}

html.ed .ed-main--contact .ed-form {
  max-width: 20rem;
  margin-inline: 0;
}

html.ed .ed-main.ed-main--contact .ed-contactform .ed-form__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.375rem;
}

html.ed .ed-main.ed-main--contact .ed-form__field {
  gap: 0.125rem;
}

html.ed .ed-main--contact .ed-form__field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ed-muted);
}

html.ed .ed-main.ed-main--contact .ed-form input {
  min-height: 2.25rem;
  padding-block: 0.25rem;
}

html.ed .ed-main.ed-main--contact .ed-form :is(input, textarea) {
  border-bottom-color: color-mix(in srgb, var(--ed-muted) 55%, transparent);
  font-size: 1rem;
}

html.ed .ed-main.ed-main--contact .ed-form textarea {
  min-height: 2.25rem;
  height: auto;
  padding-block: 0.25rem;
  line-height: 1.6875rem;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
  max-height: 8rem;
}

html.ed .ed-main.ed-main--contact .ed-form textarea {
  scrollbar-width: none;
}

html.ed .ed-main.ed-main--contact .ed-form textarea::-webkit-scrollbar {
  display: none;
}

html.ed .ed-main.ed-main--contact .ed-form__submit {
  display: inline-flex;
  min-height: 2.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ed-ink);
  font-size: 0.75rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.45em;
  transition: text-decoration-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  html.ed .ed-main.ed-main--contact .ed-form__submit:hover {
    background: transparent;
    color: var(--ed-ink);
    text-decoration-color: currentColor;
  }
}

html.ed .ed-main.ed-main--contact .ed-split__note {
  max-width: 20rem;
  margin: 0.5rem 0 0;
  text-align: start;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ed-muted);
}

@media (max-width: 47.99rem) {
  html.ed .ed-main--contact .ed-head--contact {
    padding-top: 1.75rem;
  }

  html.ed .ed-main--contact .ed-split__form {
    margin-top: 1.25rem;
  }

  html.ed .ed-main--contact .ed-head--contact,
  html.ed .ed-main--contact .ed-contactform {
    max-width: 17rem;
  }
}

/* About, FAQ and Contact (given in session): the background image behind
   the text sits a little darker. */
html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash::before {
  opacity: 0.32;
}

/* Secondary text a step darker again, so it holds 4.5:1 over the darker image. */
html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash {
  --ed-muted: #46423C;
}

/* About, FAQ and Contact (trial, given in session): from tablet width up the
   page ground stays plain, the text sits on the left and the image is a
   framed picture on the right, level with the start of the text. Phones keep
   the soft wash behind the text. */
.ed-wash__media {
  display: none;
}

@media (min-width: 48rem) {
  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: clamp(2.5rem, 1rem + 4vw, 6rem);
    row-gap: 0;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: var(--ed-gutter);
    padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash::before {
    display: none;
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__text {
    display: contents;
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__text > * {
    grid-column: 1;
    min-width: 0;
    width: 100%;
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__text > header {
    grid-row: 1;
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__text > :not(header) {
    grid-row: 2;
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__text > :not(header) ~ :not(header) {
    grid-row: 3;
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__media {
    display: block;
    grid-column: 2;
    grid-row: 2 / span 2;
    position: sticky;
    top: 2rem;
    width: 100%;
  }

  /* The whole picture, never cropped; held within the viewport height. */
  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 4rem);
  }

  /* Physical sides in both languages: image right, text left. */
  html.ed[lang="he"] :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  html.ed[lang="he"] :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__text > * {
    grid-column: 2;
  }

  html.ed[lang="he"] :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__media {
    grid-column: 1;
  }
}

/* Contact (given in session): the details and the form sit as one group,
   centred on the height of the image. */
@media (min-width: 48rem) {
  html.ed .ed-main--contact .ed-wash {
    grid-template-rows: auto;
    align-items: center;
    padding-top: clamp(2rem, 1.25rem + 3vw, 4rem);
  }

  html.ed .ed-main--contact .ed-wash__text {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  html.ed[lang="he"] .ed-main--contact .ed-wash__text {
    grid-column: 2;
  }

  html.ed .ed-main--contact .ed-wash__media {
    grid-row: 1;
    position: static;
  }

  html.ed .ed-main.ed-main--contact .ed-head--contact {
    padding-top: 0;
  }
}

/* About (trial, given in session): the picture sits inside the text, as on
   the project pages. It floats to the right beside the opening paragraphs
   and the text runs on under it at full width. */
@media (min-width: 48rem) {
  html.ed .ed-main--about .ed-wash {
    display: block;
    max-width: calc(46rem + 2 * var(--ed-gutter));
  }

  html.ed .ed-main--about .ed-wash__text {
    display: block;
  }

  html.ed .ed-main--about .ed-split__prose {
    display: flow-root;
    max-width: none;
  }

  html.ed .ed-main.ed-main--about .ed-wash__media {
    float: right;
    position: static;
    width: 44%;
    margin: 0.4rem 0 1.5rem clamp(1.75rem, 1rem + 2vw, 3rem);
  }

  html.ed .ed-main.ed-main--about .ed-wash__media img {
    width: 100%;
    max-height: none;
  }
  html.ed .ed-main--about .ed-cta.ed-split__cta {
    max-width: none;
  }
}

/* Contact and FAQ (given in session): image on the left, text on the right,
   the text centred on the height of the image; tighter spacing. */
@media (min-width: 48rem) {
  html.ed :is(.ed-main--contact, .ed-main--faq) .ed-wash {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  html.ed :is(.ed-main--contact, .ed-main--faq) .ed-wash__text > *,
  html.ed .ed-main--contact .ed-wash__text {
    grid-column: 2;
  }

  html.ed :is(.ed-main--contact, .ed-main--faq) .ed-wash__media {
    grid-column: 1;
  }

  html.ed[lang="he"] :is(.ed-main--contact, .ed-main--faq) .ed-wash {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  html.ed[lang="he"] :is(.ed-main--contact, .ed-main--faq) .ed-wash__text > *,
  html.ed[lang="he"] .ed-main--contact .ed-wash__text {
    grid-column: 1;
  }

  html.ed[lang="he"] :is(.ed-main--contact, .ed-main--faq) .ed-wash__media {
    grid-column: 2;
  }

  /* FAQ: the picture sits level with the middle of the questions. */
  html.ed .ed-main--faq .ed-wash__media {
    grid-row: 2;
    align-self: center;
    position: static;
  }

  html.ed .ed-main--faq .ed-faq__item {
    padding-block: 1rem;
  }

  html.ed .ed-main--faq .ed-faq dd {
    margin-top: 0.375rem;
  }

  /* Contact: tighter rhythm between the lines of text and fields. */
  html.ed .ed-main.ed-main--contact .ed-contactform .ed-form__grid {
    gap: 0.125rem;
  }

  html.ed .ed-main.ed-main--contact .ed-split__form {
    margin-top: 1rem;
  }

  html.ed .ed-main.ed-main--contact .ed-form__submit {
    margin-top: 0.25rem;
  }

  html.ed .ed-main.ed-main--contact .ed-split__note {
    margin-top: 0.25rem;
  }
}

/* Contact (given in session): the text sits close to the picture, and its
   first and last lines are the same distance from the picture's top and
   bottom edges. */
@media (min-width: 48rem) {
  html.ed .ed-main--contact .ed-wash,
  html.ed[lang="he"] .ed-main--contact .ed-wash {
    grid-template-columns: minmax(0, 23rem) minmax(0, 20rem);
    justify-content: center;
    column-gap: clamp(2rem, 1rem + 2.5vw, 3.5rem);
  }

  html.ed[lang="he"] .ed-main--contact .ed-wash {
    grid-template-columns: minmax(0, 20rem) minmax(0, 23rem);
  }

  html.ed .ed-main.ed-main--contact .ed-contactform {
    padding-bottom: 0;
  }

  html.ed .ed-main.ed-main--contact .ed-head--contact,
  html.ed .ed-main.ed-main--contact .ed-contactform {
    max-width: none;
    margin-inline: 0;
  }

  html.ed .ed-main.ed-main--contact .ed-split__note {
    margin-bottom: 0;
  }
}

/* FAQ (given in session): like About, the picture sits inside the list. It
   floats to the left; the questions beside it are shortened to fit, and the
   ones after it run the full width. */
@media (min-width: 48rem) {
  html.ed .ed-main--faq .ed-wash {
    display: block;
    max-width: calc(48rem + 2 * var(--ed-gutter));
  }

  html.ed .ed-main--faq .ed-wash__text {
    display: block;
  }

  html.ed .ed-main--faq .ed-faqpage {
    max-width: none;
  }

  html.ed .ed-main--faq .ed-faqpage__list {
    display: flow-root;
  }

  html.ed .ed-main.ed-main--faq .ed-wash__media {
    float: left;
    position: static;
    width: 40%;
    margin: 0 clamp(1.75rem, 1rem + 2vw, 3rem) 1.5rem 0;
  }

  html.ed .ed-main.ed-main--faq .ed-wash__media img {
    width: 100%;
    max-height: none;
  }

  html.ed .ed-main--faq .ed-faq__item {
    display: flow-root;
  }
}

/* Phones (given in session): the picture sits beside the text here too, on
   the plain page ground. About floats it right and FAQ left, with the text
   running round it; Contact sets it in a narrow column beside the form. */
@media (max-width: 47.99rem) {
  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash::before {
    display: none;
  }

  html.ed :is(.ed-main--about, .ed-main--faq) .ed-wash__media {
    display: block;
    width: 42%;
  }

  html.ed :is(.ed-main--about, .ed-main--faq) .ed-wash__media img {
    display: block;
    width: 100%;
    height: auto;
  }

  html.ed .ed-main--about .ed-wash__media {
    float: right;
    margin: 0.3rem 0 0.75rem 1rem;
  }

  html.ed .ed-main--about .ed-split__prose {
    display: flow-root;
  }

  html.ed .ed-main--faq .ed-wash__media {
    float: left;
    margin: 0 1rem 0.75rem 0;
  }

  html.ed .ed-main--faq .ed-faqpage__list,
  html.ed .ed-main--faq .ed-faq__item {
    display: flow-root;
  }

  html.ed .ed-main--contact .ed-wash {
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    align-items: center;
    column-gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  html.ed .ed-main--contact .ed-wash__media {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  html.ed .ed-main--contact .ed-wash__media img {
    display: block;
    width: 100%;
    height: auto;
  }

  html.ed .ed-main--contact .ed-wash__text {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  html.ed[lang="he"] .ed-main--contact .ed-wash {
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  }

  html.ed[lang="he"] .ed-main--contact .ed-wash__media {
    grid-column: 2;
  }

  html.ed[lang="he"] .ed-main--contact .ed-wash__text {
    grid-column: 1;
  }

  html.ed .ed-main.ed-main--contact .ed-head--contact,
  html.ed .ed-main.ed-main--contact .ed-contactform {
    max-width: none;
    margin-inline: 0;
    padding-block: 0;
  }

  html.ed .ed-main.ed-main--contact .ed-form {
    max-width: none;
  }

  html.ed .ed-main.ed-main--contact .ed-reach {
    font-size: 0.8125rem;
  }

  html.ed .ed-main.ed-main--contact .ed-split__form {
    margin-top: 0.75rem;
  }
}

/* Home on phones (given in session, reference normcph.com): one project
   across the width, then two side by side, repeating. Plain flex (no
   subgrid: Safari mis-sized the nested rows); js/pages.js evens out the
   caption lines of each pair so they start on the same lines. */
@media (max-width: 47.99rem) {
  html.ed .ed-showcase:not(.ed-showcase--services) .ed-gallery__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.25rem 0.75rem;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line {
    display: contents;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line > :is(.is-solo, .is-pair) {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line > .is-solo {
    flex-basis: 100%;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line .ed-fig figcaption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 0;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line .ed-fig figcaption > * {
    margin: 0;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line .ed-fig figcaption > .ed-fig__name {
    margin-top: 0.75rem;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line .ed-fig figcaption > .ed-card__text {
    margin-top: 0.5rem;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-line .ed-fig figcaption > .ed-card__meta {
    margin-top: 0.5rem;
  }

  /* Same frames as the reference: a wide frame for the single project, a
     tall one for each of the pair (the images fill their frames). */
  html.ed .ed-showcase:not(.ed-showcase--services) .ed-gallery__row .ed-line > .is-solo .ed-fig__frame {
    aspect-ratio: 4 / 3 !important;
  }

  html.ed .ed-showcase:not(.ed-showcase--services) .ed-gallery__row .ed-line > .is-pair .ed-fig__frame {
    aspect-ratio: 3 / 4 !important;
  }

  html.ed .ed-showcase .ed-gallery__row .ed-line > .is-pair .ed-card__text {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  html.ed .ed-showcase .ed-gallery__row .ed-line > .is-pair .ed-fig__name {
    font-size: 0.6875rem;
  }
}

/* Phones (given in session, reference normcph.com): the picture opens the
   page across the full width, and the title and text follow below it. */
.ed-wash__top {
  display: none;
}

@media (max-width: 47.99rem) {
  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__top {
    display: block;
    margin-inline: calc(-1 * var(--ed-gutter));
  }

  html.ed :is(.ed-main--about, .ed-main--faq, .ed-main--contact) .ed-wash__top img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 50%;
  }

  html.ed .ed-main.ed-main--about .ed-wash__media,
  html.ed .ed-main.ed-main--faq .ed-wash__media,
  html.ed .ed-main.ed-main--contact .ed-wash__media {
    display: none;
  }

  html.ed .ed-main--contact .ed-wash,
  html.ed[lang="he"] .ed-main--contact .ed-wash {
    display: block;
    padding-top: 0;
  }

  html.ed :is(.ed-main--about, .ed-main--faq) .ed-head--wash {
    padding-top: 2rem;
  }

  html.ed .ed-main.ed-main--contact .ed-wash__text {
    padding-top: 1.75rem;
  }
}

/* Home, phones only (given in session): Empire shows a short name, on one
   line where it fits. */
.ed-name-short {
  display: none;
}

@media (max-width: 47.99rem) {
  html.ed .ed-showcase .ed-name-full {
    display: none;
  }

  html.ed .ed-showcase .ed-name-short {
    display: inline;
  }
}

/* Hebrew About (given in session): the English title shows on phones only;
   on larger screens it stays available to screen readers. */
@media (min-width: 48rem) {
  html.ed .ed-split__title.ed-title--phone {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* About on phones (given in session): the text moves up under the title, and
   the title block sits centred between the picture and the text. */
@media (max-width: 47.99rem) {
  html.ed .ed-main--about .ed-head--wash {
    padding-top: 1.5rem;
    padding-bottom: 1.3125rem;
  }

  html.ed .ed-main--about .ed-split__title::after {
    margin-top: 1rem;
  }

  html.ed .ed-main--about .ed-split__prose {
    margin-top: 0;
  }
}
