/* BSI theme. Colours come from the theme config as --c-* on :root (partials/base.html.twig). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* widths and spacing of the former Elementor sites: header/hero 1280px, content --content (theme setting
     content_width, set in partials/base.html.twig), 5% side margins */
  --wide: 1280px;
  --side: 90%;
  --content-side: 90%;
  --radius: 0;
  --fs-body: var(--site-fs, 18px);
  --lh-body: var(--site-lh, 1.5);
  --fs-eyebrow: 25px;
  --fs-h1: 36px;
  --fs-h2: 26px;
  --fs-banner: 36px;
  /* "bold" of the former sites: their Inter was declared with weight normal only, the browser emboldened it */
  --bold: var(--site-bold, 600);
  /* section headings of burgstaller-steiner.at (Elementor "secondary") */
  --fs-section: 40px;
}
@media (max-width: 767px) {
  :root {
    --content-side: 80%;
    --fs-body: var(--site-fs-mobile, 16px);
    --fs-section: 28.8px;
    --fs-eyebrow: 20px;
    --fs-h1: 25px;
    --fs-banner: 25px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font: 400 var(--fs-body)/var(--lh-body) 'Inter', system-ui, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.15em; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

h1, h2, h3 {
  color: var(--c-heading);
  font-weight: var(--bold);
  line-height: 1.2;
  margin: 0 0 20px;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.15em; }
p, ul, ol { margin: 0 0 0.8em; }
strong { font-weight: var(--bold); }

.container {
  width: min(var(--content, 1024px), var(--content-side));
  margin-inline: auto;
}
.container--wide { width: min(var(--wide), var(--side)); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: 0.5rem 1rem; }

/* Buttons */
.button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-accent-text);
  font: 400 16px/1 'Inter', system-ui, sans-serif;
  text-decoration: none;
  padding: 12px 24px;
  cursor: pointer;
  transition: filter 0.2s;
}
.button:hover { color: var(--c-accent-text); filter: brightness(1.1); }
.button--light { background: #fff; color: #54595f; border: 2px solid #fff; }
.button--light:hover { color: #54595f; filter: none; background: transparent; color: #fff; }

/* Header */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height, 80px);
}
.site-header__logo img { width: var(--logo-width, 200px); height: auto; max-height: 60px; object-fit: contain; object-position: left center; }
.site-header__logo span { font-weight: 700; font-size: 1.25rem; color: var(--c-heading); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 5px 0; color: var(--c-text); font-size: 16px; line-height: 1.3; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--c-accent); }
.site-nav__toggle { display: none; }

/* Sticky header (theme setting sticky_header): stays at the top while scrolling; anchors stop below it */
.site-header--sticky { position: sticky; top: 0; z-index: 20; background: #fff; }
html:has(.site-header--sticky) { scroll-padding-top: var(--header-height, 80px); }
@media (max-width: 767px) {
  .site-header__inner { min-height: var(--header-height-mobile, var(--header-height, 80px)); }
  html:has(.site-header--sticky) { scroll-padding-top: var(--header-height-mobile, var(--header-height, 80px)); }
}

/* Scroll reveal (theme setting reveal, theme.js): blocks fade up, carousels slide in from the right; only with JS
   (html.reveal-on) and without reduced motion */
.reveal-on .reveal {
  opacity: 0; transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; transition-delay: var(--reveal-delay, 0ms);
}
.reveal-on .reveal--right { transform: translate3d(60px, 0, 0); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
/* hiding is instant: painted before theme.js ran (cached images), a block would otherwise start fading out and turn
   back after a few percent when it is revealed a moment later — no visible fade */
.reveal-on .reveal:not(.is-visible) { transition: none; }

/* Modules: 50px apart, the hero right under the header */
main > .module { margin-block: var(--space, 50px); }
main > .hero { margin-top: 0; margin-bottom: 50px; }

.hero__image { width: 100%; }

/* Intro: company line, heading, text; image (with caption) right or text right */
.eyebrow { font-size: var(--fs-eyebrow); line-height: 1; margin-bottom: 20px; color: var(--c-heading); }
.intro__grid { display: grid; gap: 40px; }
.intro__main { align-self: center; }
.intro__figure { margin: 0; }
.intro__image { width: 100%; }
.intro__figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; font-style: italic; }
.intro__text > :last-child { margin-bottom: 0; }

/* Box: tinted background, e.g. the services */
.box {
  background: var(--c-soft);
  padding: 50px;
}
.box > :last-child { margin-bottom: 0; }

/* Contact */
.contact__form { margin-top: 20px; }
.contact__form--boxed { background: var(--c-soft); padding: 50px; }

/* Banner: background image, small line, large text, button; content at the bottom left */
.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
  padding: 5%;
  background: var(--c-heading) var(--banner-image, none) center / cover no-repeat;
  color: #fff;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0) 60%);
}
/* widths in % of the banner, as on the former sites (the content box is 90% of it) */
.banner__content { position: relative; width: calc(45% / 0.9); }
.banner__kicker { color: #fff; font-size: 18px; font-weight: 400; margin-bottom: 15px; }
.banner__text { font-size: var(--fs-banner); font-weight: var(--bold); line-height: 1.1; margin-bottom: 20px; }
.banner__text > :last-child { margin-bottom: 0; }

/* Text pages, error page */
main { overflow-x: clip; }   /* blocks sliding in from the right never widen the page */
.text-page { width: min(52rem, var(--content-side)); padding-block: 2.5rem var(--space, 50px); }
.text-page h2 { margin-top: 1.8em; hyphens: auto; overflow-wrap: break-word; }
.text-page table { width: 100%; border-collapse: collapse; margin: 1em 0; table-layout: fixed; hyphens: auto; overflow-wrap: break-word; }
.text-page td, .text-page th { padding: 6px 12px 6px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #e2e2e2; }
.text-page td ul { margin: 0; padding-left: 1.2em; }
.text-page li + li { margin-top: .35em; }

.error-page { text-align: center; padding-block: var(--space, 50px); background: var(--c-soft); }
.error-page__code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; color: var(--c-accent); margin-bottom: 1rem; }

/* Forms (classes from bsi.php) */
.form-field { margin-bottom: 10px; }
.form-label { display: block; font-size: 16px; font-weight: var(--bold); line-height: 1; text-transform: uppercase; margin-bottom: 10px; }
.form-input {
  width: 100%;
  border: 1px solid var(--c-text);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
  font: 400 18px/1.4 'Inter', system-ui, sans-serif;
  padding: 10px 16px;
}
.form-input:focus { border-color: var(--c-accent); outline: 1px solid var(--c-accent); }
textarea.form-input { height: 115px; min-height: 0; resize: vertical; }
.required, .form-label .required { color: inherit; margin-left: 0.25em; }
.form-errors, .notices.red, .alert.error { color: #b00020; }
.has-errors .form-input { border-color: #b00020; }
.form-hint { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.form-hint__take { padding: 0; border: 0; background: none; color: var(--c-accent); font: inherit; font-weight: var(--bold); text-decoration: underline; cursor: pointer; }
.notices.green, .alert.success { background: var(--c-soft); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.form-columns { display: grid; gap: 0 10px; }
.form-buttons { margin-top: 10px; }
.form-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 18px;
  font-weight: var(--bold);
  line-height: 1;
  text-transform: uppercase;
  padding: 15px 30px;
}
.form-buttons .button::before {
  content: '';
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon-mail) center / contain no-repeat;
  mask: var(--icon-mail) center / contain no-repeat;
}
:root {
  --icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='1.5'/%3E%3Cpath d='m3 6.5 9 6.5 9-6.5'/%3E%3C/svg%3E");
}

/* Footer: three columns, the last one small with the links */
.site-footer { padding-bottom: 50px; }
.site-footer__columns { display: grid; gap: 20px; font-size: 16px; }
.site-footer__column > :last-child { margin-bottom: 0; }
.site-footer__column:last-child { font-size: 12px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.2em; list-style: none; margin: 1.2em 0 0; padding: 0; }

/* Tablet and up */
@media (min-width: 768px) and (max-width: 1024px) {
  .box { padding-block: 100px; }
}

@media (min-width: 768px) {
  .intro__grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .form-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .contact__form--boxed { width: 80%; }
  .contact__form--boxed .form-buttons .button { width: calc(50% - 5px); }
  .box > :not(h2) { margin-right: 100px; }
}

/* Up to tablet: tinted boxes reach the screen edges */
@media (max-width: 1024px) {
  .container--bleed { width: 100%; }
  .banner { min-height: 350px; }
  .site-footer__columns { gap: 40px; }
  .banner__content { width: calc(65% / 0.9); }
}

/* Desktop */
@media (min-width: 1025px) {
  body { font-size: var(--fs-body); }
  .intro--image .intro__grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 100px; }
  .intro--split .intro__grid { gap: 100px; }
  .intro--split .intro__text { max-width: 82%; }
  .intro--split .intro__main { align-self: start; }
  .contact--right .container { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
  .contact--right .contact__inner { grid-column: 2; }
  .contact__form--boxed { width: 60%; }
  .site-footer__columns { grid-template-columns: repeat(3, 1fr); font-size: 18px; }
  .site-footer__column { padding-right: 100px; }
  .intro--image h1 { max-width: 60%; }
  .intro--image .intro__text { max-width: 82%; }
}

/* Phone */
@media (max-width: 767px) {
  .site-header__logo img { width: var(--logo-width-mobile, calc(0.6 * var(--logo-width, 200px))); }
  .site-header__button { font-size: 12px; }
  .hero__container, .container--bleed-mobile { width: 100%; }
  .hero__image { height: 250px; object-fit: cover; }
  .box { padding: 40px 10%; }
  .contact__form--boxed { margin-inline: calc(-12.5%); padding: 40px 12.5%; }
  .banner { min-height: 500px; padding: 10%; }
  .banner__content { width: calc(70% / 0.8); }
  .banner__kicker { font-size: 20px; }
  .banner .button { font-size: 14px; }
  .site-footer .container { width: 90%; }
  .site-footer__columns { gap: 20px; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Modules of burgstaller-steiner.at (step 7). Sizes from the former Elementor site at 1440 px.
   --------------------------------------------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.icon { width: 1em; height: 1em; flex: none; }
.section-title { font-size: var(--fs-section); line-height: 1; margin-bottom: 25px; }
.lead { font-size: 20px; line-height: 1.5; }

/* Bands: tinted background across the page */
main > .band { background: var(--c-soft); padding-block: 50px; }
main > .band + .band { margin-top: calc(-1 * var(--space, 50px)); }
/* a text module with only a heading belongs to the module below; text and image rows follow each other closely */
main > .text--heading-only { margin-bottom: 0; }
main > .text--heading-only + .module { margin-top: 25px; }
main > .split:not(.band):has(+ .split:not(.band)) { margin-bottom: 0; }
main > .split:not(.band) + .split:not(.band) { margin-top: 50px; }

/* Buttons */
.button .icon { margin: 0 0 0 8px; vertical-align: -0.15em; }
.button--outline, .button--white, .button--outline-white {
  display: inline-flex; align-items: center; gap: 8px; font-weight: var(--bold); line-height: 1.1; padding: 12px 24px;
}
.button .icon:first-child { margin: 0; }
.button--outline { background: transparent; color: var(--c-text); border: 1px solid currentColor; }
.button--outline:hover { color: var(--c-accent); filter: none; }
.button--white { background: #fff; color: var(--c-accent); border: 1px solid #fff; }
.button--white:hover { color: var(--c-accent); }
.button--outline-white { background: transparent; color: #fff; border: 1px solid #fff; }
.button--outline-white:hover { color: #fff; background: rgb(255 255 255 / 0.12); filter: none; }

/* Menu on phones and tablets (theme.js): a panel over the page below the header, the header itself doesn't move;
   without JS the links wrap under the logo */
@media (max-width: 1024px) {
  .js .site-header:not(.site-header--sticky) { position: relative; z-index: 20; }
  .js .site-nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -10px;
    border: 0; background: none; color: var(--c-text); font-size: 26px; cursor: pointer;
  }
  .js .site-nav__close, .js .site-nav__toggle[aria-expanded="true"] .site-nav__open { display: none; }
  .js .site-nav__toggle[aria-expanded="true"] .site-nav__close { display: block; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }
  .js .site-nav.is-open { max-height: calc(100vh - 100%); overflow-y: auto; visibility: visible; transition: max-height 0.3s ease; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { padding: 16px 5vw; }
}
@media (prefers-reduced-motion: reduce) {
  .js .site-nav, .js .site-nav.is-open { transition: none; }
}

/* Title: centred company line and a large heading */
.title-block__inner {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  min-height: 250px; text-align: center;
}
.title-block__eyebrow { margin: 0; font-size: 24px; line-height: 1.3; }
.title-block__heading { margin: 0; font-size: 61px; line-height: 1; color: var(--c-accent); }
/* space above the first module (theme setting top_gap; default 0 = right under the header) */
main > .module:first-child { margin-top: var(--top-gap, 0); }
main > .title-block:first-child { margin-top: 20px; }
main > .title-block:has(+ .carousel) { margin-bottom: 0; }
main > .title-block + .carousel { margin-top: 5px; }

/* Image carousel */
.carousel__container { display: grid; gap: 5px; }
.carousel__track {
  --per-view: 3;
  --gap: 5px;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar, .tiles__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }
.carousel__image { width: 100%; height: 250px; object-fit: cover; }

/* Text with a check list and seals */
.checklist__grid { display: grid; gap: 40px; }
.checklist__text > :last-child { margin-bottom: 0; }
.checklist__items { list-style: none; margin: 0; padding: 0; }
.checklist__items li {
  display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 15px;
  border-bottom: 1px solid #ddd; color: var(--c-accent); font-size: 16px; font-weight: var(--bold); line-height: 1.3;
}
.checklist__items .icon { font-size: 14px; }
.seals { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; margin: 35px 0 0; padding: 0; }
.seals img { max-width: none; }
.seals--small { margin-top: 20px; }

/* Selling points */
.points__grid { display: grid; gap: 40px; }
.points__icon { display: block; font-size: 50px; color: var(--c-accent); margin-bottom: 27px; }
.points__heading { font-size: 20px; line-height: 1; margin-bottom: 20px; }
.points__text { font-size: 16px; line-height: 1.3; }
.points__text > :last-child { margin-bottom: 0; }
.points .seals { margin-top: 20px; }

/* Key figures */
.figures__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 0; list-style: none; margin: 0; padding: 0; }
.figures__item { flex: 1 1 30%; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.figures__number { color: var(--c-accent); font-size: 39px; font-weight: var(--bold); line-height: 1; font-variant-numeric: tabular-nums; }
.figures__label { font-size: 16px; line-height: 1.3; }

/* Text */
.text__body > :last-child { margin-bottom: 0; }
.text--lead .text__body { font-size: 20px; line-height: 1.5; }
.text--large .text__body { font-size: 25px; line-height: 1.3; }
.text--statement .text__body { font-size: 32px; font-weight: var(--bold); line-height: 1.3; }
.text__grid { display: grid; gap: 40px; }
.text__links { display: grid; gap: 8px; align-content: start; list-style: none; margin: 0; padding: 0; }
.text__links a {
  display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--c-soft);
  font-size: 16px; font-weight: var(--bold); line-height: 1.3; text-decoration: underline;
}
.text__link-image { width: 50px; height: 50px; border-radius: 50%; }

/* Text and image */
.split__grid { display: grid; gap: 30px; align-items: center; }
.split--heading-above .split__grid { align-items: start; }
main > .split.band { padding-block: 65px; }
.split__heading { margin-bottom: 20px; }
.split__heading--large { font-size: 32px; line-height: 1.3; }
.split__heading--medium { font-size: 25px; line-height: 1; }
.split__above .split__heading { font-size: var(--fs-section); line-height: 1; margin-bottom: 25px; }
.split__subtitle { margin: -18px 0 30px; font-size: 12.8px; }
.split__content { font-size: 16px; line-height: 1.3; }
.split__content > :last-child { margin-bottom: 0; }
.split__content a, .text__body a { font-weight: var(--bold); }
.split__accordion-heading { margin: 35px 0 10px; font-size: 20px; line-height: 1; }
.split__slogan { margin: 40px 0 0; color: var(--c-accent); font-size: 16px; font-weight: var(--bold); line-height: 1.3; }
.split__image { width: 100%; }
.split--left .split__media { order: -1; }

/* Accordion */
.accordion__item { border-bottom: 1px solid #d5d8dc; }
.accordion__title {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0;
  font-size: 16px; font-weight: var(--bold); line-height: 1.3; cursor: pointer; list-style: none;
}
.accordion__title::-webkit-details-marker { display: none; }
.accordion__icon { font-size: 15px; transition: transform 0.2s; }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); }
.accordion__body { padding-bottom: 20px; font-size: 16px; line-height: 1.3; }
.accordion__body ul { padding-left: 1.2em; }
.accordion__body > :last-child { margin-bottom: 0; }

/* Tiles: types and references */
.tiles__viewport { position: relative; }
.tiles__track {
  --per-view: 3;
  --peek: 80px;
  display: grid; grid-auto-flow: column; gap: 5px; list-style: none; margin: 0; padding: 0;
  grid-auto-columns: calc((100% - var(--peek) - (var(--per-view) - 1) * 5px) / var(--per-view));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tiles__item { scroll-snap-align: start; }
.tiles__link { position: relative; display: block; height: 450px; color: #fff; text-decoration: none; overflow: hidden; }
.tiles__link:hover { color: #fff; }
.tiles__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
a.tiles__link:hover .tiles__image { transform: scale(1.04); }
.tiles__link::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0) 55%);
}
.tiles__caption { position: absolute; inset: auto 35px 35px; z-index: 1; display: flex; flex-direction: column; }
.tiles__title { font-size: 25.6px; font-weight: var(--bold); line-height: 1; margin-bottom: 15px; }
.tiles__text { font-size: 16px; line-height: 1.3; }
.tiles__more { font-size: 14.4px; line-height: 1.5; text-decoration: underline; }
.tiles--small .tiles__title { font-size: 19.2px; margin-bottom: 5px; }
.tiles__arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  margin-top: -15px; border: 0; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 20px;
  cursor: pointer;
}
.tiles__arrow svg { width: 1em; height: 1em; }
.tiles__arrow--prev { left: 10px; }
.tiles__arrow--next { right: 10px; }
.tiles__button { display: flex; justify-content: flex-end; margin: 30px 0 0; }
.tiles__button--center { justify-content: center; }

/* Call to action with a portrait */
.cta__box { position: relative; display: flex; min-height: 384px; background: var(--c-accent); color: #fff; }
.cta__content { position: relative; z-index: 1; padding: 50px; }
.cta__kicker { margin: 0 0 10px; font-size: 10.24px; line-height: 1.3; }
.cta__heading { margin: 0 0 30px; color: #fff; font-size: 32px; line-height: 1.2; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.cta__link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; text-decoration: underline; }
.cta__link:hover { color: #fff; }
.cta__link-image { width: 67px; }
.cta__person { position: absolute; right: -125px; bottom: 0; width: 350px; margin: 0; }
.cta__person-image { width: 100%; }
.cta__person figcaption { position: absolute; left: 63px; bottom: 45px; display: flex; flex-direction: column; color: #fff; font-size: 12.8px; line-height: 1.3; }
.cta__person figcaption span { font-size: 10.24px; }

/* Team */
.team__title { font-size: 31.25px; line-height: 1; margin-bottom: 50px; }
.team__grid { display: grid; gap: 50px; list-style: none; margin: 0; padding: 0; }
.team__photo { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.team__photo--none { display: grid; place-items: center; background: var(--c-soft); color: var(--c-accent); font-size: 130px; }
.team__name { margin: 10px 0 0; font-size: 20px; line-height: 1; }
.team__role { margin: 10px 0 0; font-size: 10.24px; line-height: 1.3; }
.team__contact { display: flex; gap: 5px; margin: 20px 0 0; }
.round-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-accent); color: #fff; font-size: 15px;
}
.round-icon:hover { color: #fff; filter: brightness(1.1); }

/* Gallery (references) */
.gallery__title { font-size: var(--fs-section); line-height: 1; }
.gallery__intro { max-width: 50%; font-size: 12.8px; line-height: 1.5; }
.gallery__target { display: block; scroll-margin-top: 20px; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 20px 0; }
.gallery__filter {
  padding: 7px 14px; border-bottom: 3px solid transparent; font-size: 16px; font-weight: var(--bold);
  line-height: 1.3; text-decoration: none;
}
.gallery__filter--all { color: var(--c-accent); border-color: currentColor; }
.gallery:not(.gallery--js) .gallery__target:target ~ .gallery__filters .gallery__filter--all,
.gallery[data-filter] .gallery__filter--all { color: var(--c-text); border-color: transparent; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; list-style: none; margin: 0; padding: 0; }
.gallery__item { position: relative; aspect-ratio: 252 / 288; overflow: hidden; background: var(--c-soft); }
.gallery__image { width: 100%; height: 100%; object-fit: cover; }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 45%); }
.gallery__caption { position: absolute; inset: auto 13px 12px; z-index: 1; display: flex; flex-direction: column; color: #fff; }
.gallery__caption strong { font-size: 19.2px; line-height: 1.3; }
.gallery__caption span { margin-top: 1px; font-size: 12.8px; line-height: 1.3; }
.gallery__link { display: block; height: 100%; color: inherit; }
.gallery__link::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(255 255 255 / 0); transition: background-color .3s; }
.gallery__link:hover::before, .gallery__link:focus-visible::before { background: rgb(255 255 255 / .2); }
.gallery__caption { z-index: 2; }
/* with JS: pictures grow in as they load, filtered ones shrink away (not with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .gallery__image { transition: opacity .3s, transform .3s; }
  .js .gallery__image:not(.is-loaded) { opacity: 0; transform: scale(.5); }
  .gallery--js .gallery__item { transition: transform .35s, opacity .35s; }
  .gallery--js .gallery__item.is-out { transform: scale(0); opacity: 0; }
  .gallery--instant .gallery__item, .gallery--instant .gallery__image { transition: none; }
}
/* lightbox (theme.js) */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / .9); color: #fff; overscroll-behavior: contain; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100% - 140px); }
.lightbox__image { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; user-select: none; }
.lightbox__caption { text-align: center; line-height: 1.3; }
.lightbox__caption strong { display: block; font-size: 16px; }
.lightbox__caption span { font-size: 13px; opacity: .8; }
.lightbox__button { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; background: none; color: rgb(255 255 255 / .8); cursor: pointer; }
.lightbox__button:hover, .lightbox__button:focus-visible { color: #fff; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 10px; top: 50%; translate: 0 -50%; }
.lightbox__counter { position: absolute; top: 22px; left: 20px; font-size: 14px; opacity: .8; }

/* Contact, layout columns */
.contact--columns .contact__inner { display: grid; gap: 50px; }
.contact--columns .contact__heading { font-size: var(--fs-section); line-height: 1; margin-bottom: 40px; }
.contact--columns .contact__text { font-size: 16px; line-height: 1.3; }
.contact--columns .contact__text > p { max-width: 80%; margin-bottom: 40px; }
.contact--columns .contact__form { margin-top: 0; }
.contact--columns .contact__form--boxed { width: auto; margin: 0; padding: 50px; }
.contact--columns .form-buttons .button { width: 100%; }
.contact__boxes { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.contact__boxes li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; background: var(--c-soft); text-align: center; }
.contact__box-label { color: #3f444b; font-size: 12.8px; line-height: 1.5; }
.contact__boxes a, .contact__boxes strong { padding: 8px 0; color: var(--c-accent); font-size: 16px; font-weight: var(--bold); line-height: 1.3; }

/* Plain forms (theme setting form_style: plain): small labels, borderless fields */
.forms-plain .form-label { font-size: 12.8px; font-weight: 400; line-height: 1.5; text-transform: none; margin-bottom: 8px; }
.forms-plain .form-input { border: 0; font-size: 12.8px; line-height: 1.5; padding: 13px 16px; }
.forms-plain .form-input:focus { outline: 2px solid var(--c-accent); }
.forms-plain textarea.form-input { height: 62px; }
.forms-plain .form-buttons .button { flex-direction: row-reverse; font-size: 16px; font-weight: 400; text-transform: none; padding: 12px 24px; }
.forms-plain .form-field .checkboxes, .forms-plain .form-field label { font-size: 12.8px; }

/* Location */
.location__grid { display: grid; gap: 30px; }
.location__image { width: 100%; }
.location__name { margin: 0; font-size: 20px; font-weight: var(--bold); line-height: 1.2; }
.location__subtitle { margin: 2px 0 0; font-size: 12.8px; }
.location__section { margin-top: 30px; padding-top: 20px; border-top: 1px solid #ddd; font-size: 16px; line-height: 1.3; }
.location__section:last-child { padding-bottom: 20px; border-bottom: 1px solid #ddd; }
.location__section h3 { font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
.location__section p { margin-bottom: 4px; }
.location__section a { color: var(--c-accent); font-weight: var(--bold); }

/* Hero variants and the wide banner */
.hero__image--fixed { height: var(--hero-height); object-fit: cover; }
.banner--wide { min-height: 600px; padding: 64px; }
.banner--wide .banner__content { width: 50%; }
.banner--wide .banner__kicker { font-size: 16px; margin-bottom: 15px; }
.banner--wide .banner__text { font-size: var(--fs-section); line-height: 1; }

/* Footer with brand column */
.site-footer--brand { padding-block: 10px 50px; }
.site-footer--brand .site-footer__columns { font-size: 12.8px; line-height: 1.5; }
.site-footer--brand .site-footer__column h4 { margin: 0 0 20px; font-size: 16px; line-height: 1.3; }
.site-footer--brand .site-footer__column:last-child { font-size: inherit; }
.site-footer--brand .site-footer__column { padding-right: 0; }
.site-footer--brand .site-footer__links { flex-direction: column; margin-top: 1.5em; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__logo img { width: 350px; }
.site-footer__slogan { margin-top: auto; padding-top: 30px; color: var(--c-accent); font-size: 16px; font-weight: var(--bold); line-height: 1.3; }
.site-footer__slogan > :last-child { margin-bottom: 0; }
.site-footer__brand .seals { margin-top: 10px; }

/* Tablet and up */
@media (min-width: 768px) {
  .checklist__grid { grid-template-columns: 1fr 1fr; gap: 100px; }
  .points__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; }
  .text__grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .split__grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .split--2-3 .split__grid { grid-template-columns: 2fr 3fr; }
  .split--1-2 .split__grid { grid-template-columns: 300px 1fr; }
  .split--left.split--2-3 .split__grid { grid-template-columns: 3fr 2fr; }
  .split--left.split--1-2 .split__grid { grid-template-columns: 1fr 300px; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact--columns .contact__inner { grid-template-columns: 1fr 1fr; gap: 100px; }
  .location__grid { grid-template-columns: 614fr 360fr; gap: 50px; }
  .site-footer--brand .site-footer__column { text-align: right; }
  .site-footer--brand .site-footer__columns { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .site-footer--brand .site-footer__links { align-items: flex-end; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .carousel__container { gap: 10px; }
  .carousel__track { --per-view: 2; --gap: 10px; }
  .tiles__track { --per-view: 2; }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta__person { right: -20px; width: 280px; }
  .site-footer--brand .site-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer--brand .site-footer__brand { grid-column: 1 / -1; }
}

/* Desktop */
@media (min-width: 1025px) {
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .text--statement .text__body { max-width: 72%; }
}

/* Phone */
@media (max-width: 767px) {
  .title-block .container { width: 90%; }
  .title-block__inner { min-height: 200px; }
  .title-block__eyebrow { max-width: 50%; font-size: 16px; }
  .title-block__heading { font-size: 28.8px; }
  .carousel__container { width: 100%; gap: 10px; }
  .carousel__track { --per-view: 1; --gap: 10px; }
  .carousel__image { height: 200px; }
  .figures__list { gap: 30px 0; }
  .figures__item { flex-basis: 100%; gap: 8px; }
  .figures__number { font-size: 32px; }
  .text--large .text__body { font-size: 20px; }
  .text--statement .text__body { font-size: 24px; }
  .split__heading--large { font-size: 25px; }
  .tiles__track { --per-view: 1; --peek: 50px; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .text-page table { font-size: 14px; }
  .text-page td, .text-page th { padding-right: 8px; }
  .gallery__caption { inset: auto 10px 10px; }
  .gallery__caption strong { font-size: 15px; hyphens: manual; overflow-wrap: anywhere; }
  .gallery__caption span { font-size: 12px; }
  .gallery__intro { max-width: none; }
  .lightbox__figure { max-width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; translate: none; }
  .lightbox__image { max-height: calc(100dvh - 180px); }
  .cta__container { width: 90%; }
  .cta__box { flex-direction: column; }
  .cta__content { padding: 25px 25px 0; }
  .cta__heading { font-size: 24px; }
  .cta__buttons { flex-direction: column; align-items: stretch; }
  .cta__buttons .button { justify-content: center; }
  .cta__person { position: relative; right: auto; align-self: flex-end; width: 55%; margin-top: -60px; }
  .contact--columns .contact__form--boxed { margin-inline: -12.5%; padding: 40px 12.5%; }
  .banner--wide { min-height: 400px; padding: 10%; }
  .banner--wide .banner__content { width: 100%; }
  .site-footer--brand { padding-top: 50px; }
  .site-footer__logo img { width: 250px; }
}
