:root {
  --color-1: #f5f3ec;
  --color-2: #102d2a;
  --color-3: #0bb7ad;
  --color-4: #006963;
  --color-6: #a04b32;
  --color-7: #cbd8d2;
  --color-8: #49645d;
  --font-1: "Source Sans 3", system-ui, sans-serif;
  --font-2: "Source Sans 3", system-ui, sans-serif;
  --ferrule-width: 1240px;
  --ferrule-section: clamp(44px, 6vw, 78px);
}

main, #footer, #navigation {
  width: min(100%, var(--ferrule-width));
  margin-inline: auto;
}

main > section { scroll-margin-top: 58px; }
.skip { position: fixed; z-index: 100; inset: 8px auto auto 14px; transform: translateY(-160%); padding: 10px 16px; background: var(--color-2); color: white; }
.skip:focus { transform: none; }
.responsive-photo { display: contents; }
.responsive-photo > source { display: none; }
.m-text { font-size: 17px; line-height: 1.5; }
.m-text-4 { font-size: 16px; line-height: 1.45; }
.m-text-5 { font-size: clamp(22px, 2.45vw, 34px); line-height: 1.12; }
.m-text-6 { line-height: 1.4; }
.m-btn, .m-btn-2 {
  min-height: 44px;
  background: var(--color-4);
  color: white;
  font-weight: 650;
}
.m-btn-3 { min-height: 44px; }
.m-btn::before, .m-btn-2::before, .m-btn-3::before { content: none; }
.m-badge-3 { background: var(--color-4); color: white; }
@media (hover: hover) {
  .m-btn:hover, .m-btn-2:hover { color: white; }
  .m-btn-3:hover { color: var(--color-2); }
  .m-btn:hover, .m-btn-2:hover, .m-btn-3:hover, #services .stoll-row-link:hover {
    box-shadow: inset 0 0 0 2px currentColor;
  }
}

.nav__brand .stoll-nav-logo { width: 26px; height: auto; }
.nav__brand .stoll-nav-mark { width: 77px; height: auto; }
.nav__brand { gap: 5px; }
#navigation .nav__area { margin-left: clamp(6px, 2vw, 32px); }
#navigation .nav__overlay-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(28px, 8vw, 49px); }
#navigation .nav__overlay { overscroll-behavior: contain; }
html:has(.nav__overlay:not([hidden])) { overflow: hidden; }
#opening .op__band { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 9px; background: var(--color-1); }
#opening .op__main { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--radius-1); }
#opening .op__drift { transform: none; }
#opening .op__drift img { object-position: center; }
#opening .op__support { position: relative; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 9px; min-height: 0; }
#opening .op__support > .responsive-photo { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border-radius: 20px; }
#opening .op__support img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: inherit; }
[data-8b-live] #opening.is-staged .op__main { overflow: visible; }
[data-8b-live] #opening .op__support {
  animation: opening-support auto linear both;
  animation-timeline: --opening-t;
  animation-range: contain 0px contain calc(var(--opening-h) * .18);
  pointer-events: none;
}
@keyframes opening-support { from { opacity: 1; } to { opacity: 0; } }
#opening .op__claim {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: grid;
  place-items: start end;
  min-height: clamp(150px, 16vw, 195px);
  padding: clamp(18px, 2.5vw, 32px);
  background: radial-gradient(
    ellipse 100% 100% at top right,
    rgb(18 20 21 / 85%),
    rgb(18 20 21 / 73%) 62%,
    rgb(18 20 21 / 53%) 77%,
    transparent 100%
  );
}
#opening .op__claim img {
  width: clamp(184px, 20vw, 260px);
  height: auto;
  rotate: 12deg;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgb(0 0 0 / 70%));
}
#opening.is-staged .op__claim { opacity: 0; transition: opacity 140ms ease-out; }
#opening .op__cta .m-btn__icon { display: none; }
#opening .op__note { grid-column: 6 / 10; }
#opening .op__star { grid-column: 6 / 8; grid-row: 2; width: clamp(34px, 5cqw, 66px); margin: 0; }
#opening .op__second {
  min-height: 55svh;
  padding-block: clamp(42px, 8vh, 90px) clamp(32px, 6vh, 60px);
}
#opening .op__second .op__sides { grid-row: 3; grid-column: 4 / -1; margin-top: 24px; }
[data-8b-live] #opening.is-staged .op__second {
  background: linear-gradient(to bottom, transparent, var(--color-2) 72%);
}
#opening .stoll-proof {
  position: absolute;
  z-index: 3;
  right: clamp(9px, 2vw, 25px);
  bottom: clamp(9px, 2vw, 25px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  min-height: 44px;
  border-radius: 8px;
  background: #fff9ed;
  text-decoration: none;
}
#opening .stoll-proof img { width: 44px; height: auto; }
#opening .stoll-proof strong, #opening .stoll-proof small { display: block; }
#opening .stoll-proof small { font-size: .8rem; }
#opening.is-staged .stoll-proof { opacity: 0; visibility: hidden; pointer-events: none; }

#services, #prices, #work, #team, #reviews, #emergency, #contact {
  padding-block: var(--ferrule-section);
}
#services .sv__head, #work .wk__head, #team .tm__head, #reviews .rv__head {
  margin-bottom: clamp(24px, 3.5vw, 48px);
}
#services .sv__pic { aspect-ratio: 16 / 10; }
#services .stoll-row-link { width: fit-content; min-height: 40px; background: var(--color-4); color: white; }
#prices .stoll-funding-mark { width: 54px; height: auto; }
#team .tm__head { margin-bottom: 0; }
#team .tm__title > .tm__locality { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
#team .speyer-dom { flex: none; width: clamp(52px, 6vw, 84px); height: auto; }
#emergency .em__foot { display: block; max-width: 52ch; }
#reviews .rv__card img { width: 100%; height: auto; }
#reviews .rv__card { gap: 14px; padding: clamp(12px, 1.5vw, 20px); }
.stoll-contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.stoll-contact-options a { min-height: 48px; padding: 8px 16px; line-height: 1.25; text-align: center; white-space: normal; }
#contact .ct__ways > a { width: fit-content; }
#footer .ft__mark span { font-size: clamp(95px, 16vw, 175px); }
.agency-credit a { display: inline-block; padding-block: 2px; color: inherit; text-underline-offset: .2em; white-space: nowrap; }

.ferrule-dialog {
  width: min(100% - 28px, 440px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--color-7);
  border-radius: 13px;
  background: var(--color-1);
  color: var(--color-2);
}
.image-viewer::backdrop, .ferrule-dialog::backdrop { background: #102d2abf; }
html:has(.image-viewer[open]) { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: fit-content; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.site-dialog-header { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.image-viewer img { display: block; width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); margin: 0; box-shadow: 0 16px 48px #0005; }
.image-viewer .certificate-close { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: white; color: var(--color-2); box-shadow: 0 2px 8px #0003; cursor: pointer; }
.image-viewer .certificate-close svg { width: 18px; height: 18px; }
.ferrule-dialog { width: min(100% - 28px, 520px); padding: clamp(16px, 4vw, 28px); }
.ferrule-dialog h2 { font-size: clamp(1.45rem, 5vw, 1.85rem); line-height: 1.12; }
.ferrule-dialog .stoll-contact-options { margin-block: 16px 10px; padding: 0; background: none; border: 0; }
.ferrule-dialog .enquiry-call { display: inline-block; min-height: 44px; padding-block: 10px; color: var(--color-4); font-weight: 650; background: none; text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 761px) {
  #opening .op__line { font-size: min(5.3vw, 68px); }
  #services .sv__title span,
  #prices .pr__title span,
  #work .wk__title span,
  #team .tm__title span,
  #reviews .rv__title span,
  #contact .ct__title span { font-size: min(4.6vw, 55px); }
  #services .sv__row {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .62fr) minmax(0, 1fr);
    padding-block: 20px;
  }
  #services .sv__word { font-size: min(3.4vw, 42px, calc(39cqw / (var(--len) * .64))); }
  #emergency .em__number span { font-size: min(8vw, 105px); }
}

@media (max-width: 760px) {
  .nav__brand .stoll-nav-logo { width: 22px; }
  .nav__brand .stoll-nav-mark { width: 61px; }
  #opening .op__first { min-height: 500px; }
  #opening .op__l1 { font-size: min(9.5vw, 52px); }
  #opening .op__l2 { font-size: min(8.7vw, 49px); }
  #opening .op__l3 { font-size: min(11.6vw, 63px); }
  #opening .op__note { grid-column: 1 / -1; padding-top: 5px; }
  #opening .op__star { grid-area: 3 / 11 / 4 / -1; justify-self: end; margin-right: 4px; }
  #opening .op__band { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; }
  #opening .op__main { border-radius: 20px; }
  #opening .op__support { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 8px; }
  #opening .op__support > .responsive-photo { border-radius: 16px; }
  #opening .stoll-proof { gap: 6px; }
  #opening .stoll-proof img { width: 36px; }
  #opening .op__cta { grid-column: 1 / -1; margin-top: 9px; }
  #opening .op__second .op__line { font-size: min(11vw, 56px); }
  #opening .op__second .op__sides { grid-column: 1 / -1; grid-row: 5; margin-top: 0; }
  #services .sv__word { font-size: min(10vw, calc(100cqw / (var(--len) * .53))); }
  #services .sv__pic { aspect-ratio: 3 / 2; }
  #reviews .rv__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-1); }
  #reviews .rv__row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(88%, 350px); }
  #reviews .rv__item { scroll-snap-align: start; }
  #contact .stoll-contact-options { grid-template-columns: minmax(0, 1fr); }
  #services .sv__title span, #prices .pr__title span, #work .wk__title span,
  #team .tm__title span, #reviews .rv__title span {
    font-size: min(10vw, calc(100cqw / (var(--len) * .53)));
  }
}

@media (max-width: 360px) {
  .ferrule-dialog .stoll-contact-options { grid-template-columns: 1fr; gap: 7px; }
  .ferrule-dialog .stoll-contact-options a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  #navigation { transition: none; }
  #opening .op__first { position: relative; top: auto; }
}

/* Shared navigation and footer on every route. */
#navigation .nav__menu { display: inline-flex; }
#navigation .nav__bar { min-width: 0; }
#navigation .nav__group { list-style: none; padding: 0; }
#navigation .nav__overlay { gap: clamp(18px, 3vh, 32px); }
#navigation .nav__overlay-links { list-style: none; padding: 0; margin: 0; }
#navigation .nav__overlay-links a { font-weight: 400; line-height: 1.15; text-transform: uppercase; letter-spacing: -.02em; color: var(--color-2); }
#navigation .nav__overlay-links a[aria-current] { color: var(--color-4); text-decoration: underline; text-underline-offset: .18em; }
#navigation .nav__site-links { display: flex; flex-wrap: wrap; gap: 8px; }
#navigation .nav__overlay-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#navigation .nav__overlay-foot .nav__email { flex-basis: 100%; width: fit-content; }
#navigation .nav__close svg { width: 20px; height: 20px; }
#navigation .m-btn-2 { color: white; background: var(--color-4); gap: 8px; }
#navigation .m-btn-3, #navigation .m-icon-btn { color: var(--color-2); background: white; }
#footer .ft__links { padding: 0; list-style: none; margin: 0; }
#footer a { color: inherit; }
#footer .ft__lead { font-weight: 400; text-transform: none; }
#footer .ft__mark { margin: 0; line-height: .9; font-weight: 400; text-transform: uppercase; }
#footer .ft__base { line-height: 1.5; }
#work .wk__examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 30px); margin-top: clamp(32px, 5vw, 60px); }
#work .wk__example a { display: block; border-radius: var(--radius-1); overflow: hidden; }
#work .wk__example img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #e5e7de; }
#work .wk__example figcaption { margin-top: 12px; max-width: 34ch; }
@media (min-width: 881px) {
  #navigation .nav__area { margin-left: 0; }
  #navigation .nav__group { gap: 2px; }
  #navigation .nav__group a { padding-inline: 12px; }
}
@media (max-width: 760px) {
  #navigation .nav__bar { gap: 5px; }
  #navigation .nav__brand { padding-inline: 10px; }
  #navigation .nav__book { padding-inline: 12px; font-size: 13px; }
  #navigation .nav__menu { padding-inline: 12px; }
  #navigation .nav__overlay-links a { min-height: 46px; font-size: clamp(25px, 7.5vw, 38px); }
  #work .wk__examples { grid-template-columns: 1fr; gap: 28px; }
  #work .wk__example img { max-height: 510px; }
}
