/* Shared editorial layout. Page styles provide imagery and colour, never a separate type scale. */
:root {
  --layout-gutter: max(6vw, calc((100vw - 1600px) / 2));
  --section-space: clamp(64px, 7vw, 100px);
  --title-size: clamp(50px, 5.5vw, 88px);
  --heading-size: clamp(36px, 4vw, 60px);
  --card-title-size: clamp(25px, 2.3vw, 34px);
  /* Match the final film caption's title, anchored 14% above the viewport bottom. */
  --cover-top: max(calc(var(--nav-height) + 110px), calc(86svh - var(--title-size) * 2.2 - 160px));
  --cover-height: max(100svh, calc(var(--cover-top) + var(--title-size) * 3.3 + 270px));
  --cover-bottom: 70px;
}
/* All principal covers use the same frame and text origin. */
.inner-page .page-cover {
  position: relative;
  display: block;
  min-height: var(--cover-height);
  height: auto;
  max-height: none;
  padding: var(--cover-top) var(--layout-gutter) var(--cover-bottom);
}
.inner-page .page-cover-copy {
  position: relative;
  z-index: 1;
  display: block;
  height: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.page-cover .portfolio-hero-copy > div:not(.bread),
.page-cover .agency-hero-bottom { display: contents; }
.inner-page .page-cover .bread {
  position: absolute;
  top: calc(var(--nav-height) + 28px - var(--cover-top));
  left: 0;
  right: 0;
  margin: 0;
  font: 400 12px/1.5 Roboto, Arial, sans-serif;
  gap: 14px;
}
.inner-page .page-cover .eyebrow {
  font: 500 12px/1.5 Roboto, Arial, sans-serif;
  letter-spacing: 1.7px;
  margin: 0 0 22px;
}
.inner-page .page-cover h1 {
  font: 600 var(--title-size)/1.08 Muli, Arial, sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 24px;
  max-width: 1100px;
  min-height: 2.16em;
  text-wrap: pretty;
  overflow-wrap: normal;
}
.inner-page .page-cover h1 em { font-family: Georgia, serif; font-weight: 400; }
.inner-page .page-cover-copy > p:not(.eyebrow),
.inner-page .portfolio-hero-copy > div:not(.bread) > p:not(.eyebrow),
.inner-page .agency-hero-bottom > p {
  font: 400 17px/1.75 Roboto, Arial, sans-serif;
  max-width: 530px;
  min-height: 3.5em;
  margin: 0;
}
.inner-page .page-cover :is(.text-button, .services-link, .history-link, .contact-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font: 400 14px/1.5 Roboto, Arial, sans-serif;
  gap: 32px;
  min-height: 52px;
  padding: 14px 0;
  margin: 22px 0 0;
}
.inner-page .page-cover .text-button > span { display: flex; line-height: 1; }
.inner-page .page-cover :is(.text-button, .services-link, .history-link, .contact-primary) svg { width: 25px; height: 25px; }
.page-cover :is(.services-hero-caption, .contact-hero-note, .history-hero-signature) {
  right: var(--layout-gutter);
  bottom: 25px;
  max-width: 380px;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}
.page-cover .contact-hero-note { border: 0; padding: 0; text-align: right; }
.page-cover .contact-hero-note span { font-size: 12px; margin-top: 5px; }
/* The illustrated story keeps its artwork, within the same cover frame. */
.history-page .page-cover-copy { position: relative; z-index: 1; }
.history-page .page-cover h1 { max-width: 670px; }
.history-page .page-cover-copy > p:not(.eyebrow) { max-width: 420px; }
.history-page .history-hero-art { top: var(--nav-height); bottom: 35px; }
/* Articles use one smaller tier so long editorial headlines stay readable. */
.newsletter-page .page-cover { --title-size: clamp(40px, 4.4vw, 64px); }
.newsletter-page .page-cover h1 { max-width: 1100px; min-height: 0; }
.newsletter-page .page-cover-copy > p:not(.eyebrow) { max-width: 700px; }
body .stage .journey-copy :is(h1, h2), html[lang=de] .stage .journey-copy h1 {
  font-size: var(--title-size); line-height: 1.08; letter-spacing: -.04em;
}
/* Shared hierarchy and rhythm throughout public content; dialogs retain their own scale. */
body main :is(.home-section, .portfolio-intro, .portfolio-selection, .portfolio-next,
  .services-section, .history-founder, .history-journey, .history-next,
  .contact-conversation, .contact-visit, .section-line, .featured-edition, .management-intro) h2 {
  font: 600 var(--heading-size)/1.12 Muli, Arial, sans-serif;
  letter-spacing: -.04em;
}
body main :is(.portfolio-card, .property-card, .service-card, .edition-card) h3 {
  font: 600 var(--card-title-size)/1.2 Muli, Arial, sans-serif;
  letter-spacing: -.035em;
}
body main :is(.services-section, .portfolio-intro, .portfolio-selection, .portfolio-next,
  .history-founder, .history-journey, .history-next, .contact-conversation, .contact-visit,
  .home-section) {
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}
body main :is(.services-section, .portfolio-intro, .portfolio-selection, .portfolio-next,
  .history-founder, .history-next, .contact-conversation, .contact-visit, .home-section) {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.inner-page .page-shell { max-width: none; }
body main .page-intro h1 {
  font: 600 var(--title-size)/1.08 Muli, Arial, sans-serif;
  letter-spacing: -.04em;
}
/* Fixed ratios for equivalent images, without cropping illustrations or PDF covers. */
.portfolio-page .portfolio-image,
.agency-page .property-card .property-visual,
.services-interior > img { aspect-ratio: 4 / 3; }
.portfolio-page .portfolio-card:first-child .portfolio-image,
.portfolio-page .portfolio-grid.is-single .portfolio-image,
.services-transform-images img,
.history-project-photo > img { aspect-ratio: 16 / 9; }
.history-portrait > img,
.services-health-photo > img { aspect-ratio: 4 / 5; }
@media (max-width: 1100px) {
  :root { --title-size: clamp(48px, 6.2vw, 68px); --heading-size: clamp(36px, 4.5vw, 50px); }
}
@media (min-width: 701px) and (max-width: 1279px) {
  :root { --cover-top: max(calc(var(--nav-height) + 110px), calc(76svh - var(--title-size) * 2.2 - 160px)); }
}
@media (max-width: 900px) {
  .history-page .page-cover { display: block; }
  .history-page .history-hero-art { position: absolute; inset: 0; width: 100%; margin: 0; height: 100%; opacity: .22; }
  .history-page .history-hero-art img { height: 100%; object-fit: cover; object-position: 62% center; }
  .history-page .history-years { margin-left: calc(-1 * var(--layout-gutter)); margin-right: calc(-1 * var(--layout-gutter)); }
}
@media (max-width: 700px) {
  :root {
    --layout-gutter: 7vw;
    --section-space: 64px;
    --title-size: clamp(38px, 10vw, 56px);
    --heading-size: clamp(32px, 8.5vw, 40px);
    --card-title-size: 27px;
    /* Leave room for wrapped headings and touch targets on narrow screens. */
    --cover-height: max(740px, 100svh);
    --cover-top: clamp(260px, calc(83svh - var(--title-size) * 2.2 - 150px), 370px);
    --cover-bottom: 70px;
  }
  .inner-page .page-cover .bread { top: calc(var(--nav-height) + 24px - var(--cover-top)); font-size: 11px; }
  .inner-page .page-cover .eyebrow { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 20px; }
  .inner-page .page-cover h1 { max-width: none; margin-bottom: 24px; }
  .inner-page .page-cover-copy > p:not(.eyebrow),
  .inner-page .portfolio-hero-copy > div:not(.bread) > p:not(.eyebrow),
  .inner-page .agency-hero-bottom > p { font-size: 15px; line-height: 1.75; max-width: 100%; min-height: 5.25em; }
  .inner-page .page-cover :is(.text-button, .services-link, .history-link, .contact-primary) { font-size: 13px; margin-top: 20px; }
  .page-cover :is(.services-hero-caption, .contact-hero-note) { left: var(--layout-gutter); right: var(--layout-gutter); max-width: none; bottom: 22px; text-align: left; font-size: 10px; }
  .newsletter-page .page-cover { --title-size: clamp(36px, 9.5vw, 48px); }
  .portfolio-page .portfolio-card:first-child .portfolio-image,
  .portfolio-page .portfolio-grid.is-single .portfolio-image,
  .services-transform-images img { aspect-ratio: 4 / 3; }
  .services-health-photo > img { aspect-ratio: 4 / 3; }
}
