/* Editorial layouts for the company profile, timeline and contact desk. */
:is(.company-page, .history-page, .contact-page) .wrap {
  max-width: 1540px;
}
:is(.company-page, .history-page, .contact-page) :is(.sub-intro, .sub-content) {
  padding-block: clamp(32px, 4.2vw, 66px);
}
:is(.company-page, .history-page, .contact-page) .sub-intro h1 {
  margin-block: .2em .22em;
  font-size: clamp(3.2rem, 6.7vw, 6.8rem);
  line-height: .95;
}
:is(.company-page, .history-page, .contact-page) .lead {
  text-wrap: pretty;
}
.ed-arrow {
  display: inline-block;
  position: relative;
  flex: none;
  width: 1.05em;
  height: 1em;
  color: currentColor;
  vertical-align: middle;
}
.ed-arrow::before, .ed-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .12em;
}
.ed-arrow::before {
  width: .84em;
  border-top: 1.5px solid;
}
.ed-arrow::after {
  width: .45em;
  height: .45em;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: translateY(-45%) rotate(45deg);
}
.ed-arrow-down { transform: rotate(90deg); }

/* Profile spread */
.profile-cover, .contact-heading, .chron-hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6.2vw, 104px);
}
.profile-summary h1 span { display: block; }
.profile-summary .lead { max-width: 47ch; }
.profile-paths {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1.8rem;
}
.profile-summary .profile-paths { margin-top: clamp(16px, 2.4vw, 38px); }
.profile-paths a, .contact-preamble > a, .office-links a {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 36px;
  color: var(--accent-text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .26em;
}
.profile-image { min-width: 0; }
.profile-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: center;
}
.profile-image figcaption {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  padding-top: .65rem;
}
.profile-work h2, .profile-directory h2 {
  margin: 0 0 clamp(20px, 2.6vw, 40px);
  font-size: clamp(2.4rem, 4.4vw, 4.25rem);
}
.profile-chapter {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.3fr);
  column-gap: clamp(22px, 6vw, 90px);
  border-top: 1px solid var(--rule);
  padding-block: clamp(20px, 2.5vw, 34px);
}
.profile-chapter:first-child { border-top-color: var(--ink); }
.profile-chapter:last-child { padding-bottom: 0; }
.profile-chapter h3 {
  margin: 0;
  font-family: var(--flyer-heading-font);
  font-size: clamp(1.35rem, 1.75vw, 1.85rem);
  font-weight: 625;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.profile-work .profile-chapter p {
  max-width: 66ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}
.profile-chapter p + p { margin-top: .65em; }
.company-page .profile-directory { background: var(--paper); }
.profile-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(28px, 4vw, 64px);
}
.profile-columns > div { border-top: 1px solid var(--rule); padding-top: 14px; }
.profile-columns h3 { font-size: 1rem; margin-bottom: .45rem; }
.profile-columns ul, .chron-guide ul { list-style: none; margin: 0; padding: 0; }
.profile-columns a { display: inline-block; padding-block: .25em; }

/* Historical entries and period index */
.chron-hero {
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, .75fr);
  align-items: end;
}
.history-page .chron-intro h1 { max-width: 17ch; }
.chron-intro .chron-latest:not(.btn) {
  display: grid;
  text-decoration: none;
  color: var(--ink);
  padding: .8rem 0 .2rem;
  border-top: 2px solid var(--accent);
}
.chron-latest-label, .chron-guide nav > h2 {
  font: 650 .82rem/1.35 'DM Sans', Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.chron-latest-label { color: var(--muted); }
.chron-latest-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: .12em;
  color: var(--accent-text);
  font: 700 clamp(2.5rem, 4.1vw, 4.5rem)/.98 var(--display);
}
.chron-latest-year .ed-arrow { font-size: .58em; }
.chron-latest-title { font-size: .98rem; line-height: 1.4; }
.chron-latest:hover .chron-latest-title { text-decoration: underline; text-underline-offset: .23em; }
.chron-columns {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(150px, .45fr) minmax(0, 1.7fr);
  gap: clamp(32px, 6.3vw, 106px);
}
.chron-guide { position: sticky; top: 20px; }
.chron-guide nav > h2 { margin: 0 0 .8rem; }
.chron-guide li + li { border-top: 1px solid var(--rule); }
.chron-guide nav a {
  display: block;
  width: fit-content;
  padding-block: .55rem;
  font-variant-numeric: tabular-nums;
}
.chron-content .chron-guide p {
  max-width: 25ch;
  margin-top: 1.2rem;
  font-size: .9rem;
  line-height: 1.5;
}
.chron-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  --year-width: clamp(3.3rem, 7.1vw, 7rem);
  --copy-gap: clamp(1.4rem, 3.2vw, 3rem);
}
.chron-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: var(--year-width) minmax(0, 1fr);
  padding-bottom: clamp(26px, 3.3vw, 49px);
  scroll-margin-top: 1rem;
}
.chron-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.12rem;
  bottom: -1.12rem;
  left: var(--year-width);
  border-left: 1px solid var(--field-line);
}
.chron-timeline li::after {
  content: "";
  position: absolute;
  left: var(--year-width);
  top: 1.12rem;
  width: .55rem;
  height: .55rem;
  transform: translate(-43%, -50%);
  border: 2px solid var(--accent-text);
  background: var(--paper);
  border-radius: 50%;
}
.chron-timeline li:target::after, .chron-timeline li:last-child::after { background: var(--accent); }
.chron-timeline li:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.chron-timeline li:last-child { padding-bottom: 0; }
.chron-year {
  padding-top: .03em;
  color: var(--accent-text);
  font: 700 clamp(1.7rem, 2.7vw, 2.85rem)/1.02 var(--display);
  font-variant-numeric: tabular-nums;
}
.chron-timeline li > div { min-width: 0; padding-left: var(--copy-gap); }
.chron-timeline h2 {
  max-width: 31ch;
  margin: 0 0 .4em;
  font: 700 clamp(1.55rem, 2.45vw, 2.55rem)/1.07 var(--display);
  text-transform: none;
  letter-spacing: -.012em;
}
.chron-timeline p {
  line-height: 1.58;
  overflow-wrap: break-word;
}
.chron-timeline p + p { margin-top: .46em; }
.chron-timeline p + h2 { margin-top: .85em; }
.chron-outro {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding-block: 20px;
}

/* Contact desk */
.contact-heading { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.contact-heading .lead { max-width: 47ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.contact-page .contact-heading h1 {
  max-width: none;
  font-size: clamp(3.2rem, 5.3vw, 5.5rem);
}
.contact-preamble > a { margin-top: .4rem; }
.contact-page .contact-grid {
  grid-template-columns: minmax(0, 1.38fr) minmax(296px, .82fr);
  gap: clamp(32px, 5.2vw, 88px);
  align-items: start;
}
.contact-sheet { min-width: 0; }
.contact-sheet h2, .office-sheet h2 {
  margin: 0 0 .4em;
  font-size: clamp(2.15rem, 3.5vw, 3.4rem);
}
.contact-page .form-mode {
  max-width: 60ch;
  font-size: .94rem;
  line-height: 1.45;
}
.contact-sheet .form-status { margin-top: 1rem; }
.contact-sheet .form-status:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.contact-sheet .contact-form { max-width: none; margin-top: 1rem; }
.contact-fields { min-width: 0; border: 0; margin: 0; padding: 0; }
.contact-fields legend {
  margin: 0 0 .85rem;
  padding: 0;
  font: 400 .94rem/1.45 'DM Sans', Arial, sans-serif;
  color: var(--muted);
}
.contact-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}
.contact-inputs > :nth-child(n + 3) { grid-column: 1 / -1; }
.contact-inputs label { font-size: 1rem; line-height: 1.4; }
.contact-sheet .contact-inputs :is(input:not([type=checkbox]), textarea) {
  display: block;
  margin-top: .35rem;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
}
.contact-sheet .contact-inputs textarea { min-height: 7em; }
.contact-inputs .consent { max-width: 64ch; font-size: .94rem; line-height: 1.5; }
.office-sheet {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 34px);
  border-top: 3px solid var(--accent);
  background: var(--panel);
}
.office-sheet h2 { font-size: clamp(2rem, 2.8vw, 2.85rem); }
.office-sheet address { display: block; margin: 0; color: var(--muted); font-style: normal; }
.office-sheet address strong { color: var(--ink); font-weight: 650; }
.office-direct { display: grid; justify-items: start; gap: .2rem; margin-block: .65rem .95rem; }
.office-sheet .btn { min-height: 40px; text-decoration: none; }
.office-section { margin-top: 1.2rem; padding-top: 1.05rem; border-top: 1px solid var(--rule); }
.office-sheet .office-section h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.office-hours { font-size: .96rem; }
.office-hours > div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .13rem; }
.office-hours dt { color: var(--muted); }
.office-hours dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.office-section .office-zone { font-size: .82rem; margin-top: .45rem; }
.office-links { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .05rem 1rem; }
.office-links a { font-size: .92rem; }

@media (max-width: 880px) {
  .chron-columns { grid-template-columns: minmax(130px, .33fr) minmax(0, 1.5fr); gap: 28px; }
  .contact-page .contact-grid { gap: 26px; grid-template-columns: minmax(0, 1.2fr) minmax(264px, .85fr); }
  .profile-cover, .contact-heading { column-gap: 28px; }
}

@media (max-width: 700px) {
  .profile-cover, .chron-hero, .contact-heading, .contact-page .contact-grid, .chron-columns { grid-template-columns: minmax(0, 1fr); }
  .profile-cover { gap: 22px; }
  .profile-summary h1 span { display: inline; }
  .profile-image img { aspect-ratio: 2.05; }
  .profile-summary .profile-paths { margin-top: .75rem; }
  .profile-chapter { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .chron-hero { gap: 20px; }
  .chron-latest-year { display: inline-flex; gap: .6rem; }
  .chron-intro .chron-latest:not(.btn) { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem 1rem; }
  .chron-latest-label { grid-column: 1 / -1; }
  .chron-latest-year { margin: .06em 0; }
  .chron-guide { position: static; }
  .chron-guide nav > h2 { margin-bottom: .3rem; }
  .chron-guide ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
  .chron-guide li + li { border: 0; }
  .chron-guide nav a { padding-block: .3rem; font-size: .94rem; }
  .chron-content .chron-guide p { max-width: 56ch; margin-top: .5rem; }
  .chron-timeline { --year-width: 3.75rem; --copy-gap: 1.05rem; }
  .chron-timeline li::after, .chron-timeline li:not(:last-child)::before { top: .85rem; }
  .chron-timeline li:not(:last-child)::before { bottom: -.85rem; }
  .contact-heading { gap: .2rem; }
  .contact-page .contact-heading h1 { max-width: none; }
  .contact-page .contact-grid { gap: 32px; }
}
@media (max-width: 580px) {
  .profile-columns { grid-template-columns: minmax(0, 1fr); }
  .profile-columns ul { display: flex; flex-wrap: wrap; column-gap: 1.2rem; }
}
@media (max-width: 430px) {
  .contact-inputs { grid-template-columns: minmax(0, 1fr); }
  .profile-paths { column-gap: 1.15rem; }
}

/* Imprint: a single, typeset company record. */
.imprint-page {
  padding-block: clamp(26px, 3.2vw, 48px) clamp(36px, 5vw, 76px);
  color: var(--ink);
  background: var(--paper);
}
.imprint-document { max-width: 1390px; }
.imprint-title {
  padding-bottom: clamp(18px, 2.2vw, 32px);
  border-bottom: 2px solid var(--ink);
}
.imprint-title h1 {
  margin: .14em 0 0;
  font-size: clamp(2.75rem, calc(2.4rem + 2.6vw), 5.3rem);
  line-height: .96;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.imprint-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(20px, 2.1vw, 32px);
}
.imprint-body > section { min-width: 0; container-type: inline-size; }
.imprint-body h2 {
  margin: 0 0 .45em;
  font: 700 clamp(1.65rem, calc(1.45rem + .8vw), 2.3rem)/1.07 var(--display);
  text-transform: none;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}
.imprint-identity address {
  display: block;
  margin: 0;
  color: var(--ink);
  font-style: normal;
  line-height: 1.48;
}
.imprint-body a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.imprint-body a:hover { color: var(--accent-hover); }
.imprint-lines { margin: 1.1rem 0 .5rem; }
.imprint-lines > div, .imprint-record > div {
  display: grid;
  align-items: baseline;
  column-gap: 1.3rem;
}
.imprint-lines > div { grid-template-columns: 3.6rem minmax(0, 1fr); padding-block: .16rem; }
.imprint-body dt {
  color: var(--muted);
  font-size: .94rem;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.imprint-body dd { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.imprint-contact { display: inline-flex; align-items: center; gap: .45em; min-height: 2.4em; }
.imprint-record > div {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
  padding-block: .7rem;
}
.imprint-record > div:last-child { border-bottom: 1px solid var(--rule); }
.imprint-record dd { font-weight: 600; }
@container (max-width: 24rem) {
  .imprint-record > div { grid-template-columns: minmax(0, 1fr); gap: .12em; }
}
@container (max-width: 14rem) {
  .imprint-lines > div { grid-template-columns: minmax(0, 1fr); }
  .imprint-lines > div + div { margin-top: .34rem; }
}
