/* Heattec – website styles, "heat behind glass"
   Frosted glass panels over warm ambient glows. Colors come from the admin
   (Colors::cssVars()); translucent variants use the --c-*-rgb triplets.
   Headings use DIN-like system fonts (Bahnschrift on Windows, DIN Alternate on Apple). */

:root {
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-head: Bahnschrift, "DIN Alternate", "DIN Next LT Pro", "D-DIN", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", var(--f-body);
  --wrap: 80rem;
  --wrap-narrow: 50rem;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --pad-s: clamp(1.5rem, 3vw, 2.25rem);
  --pad-m: clamp(2.75rem, 6vw, 4.5rem);
  --flow-gap: clamp(1.75rem, 3.5vw, 2.75rem); /* between plain rows that continue the same story */
  --pad-l: clamp(4.5rem, 10vw, 8rem);
  --header-h: 7.5rem;            /* updated by site.js */
  --topbar-h: 2.5rem;

  /* Radius hierarchy: large panels, cards, controls, pills */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Glass */
  --glass-light: rgb(var(--c-light-rgb) / .66);
  --glass-light-strong: rgb(var(--c-light-rgb) / .82);
  /* Surface for content tiles: no live blur (that is recalculated on every scroll frame
     and made scrolling stutter on some desktops), so a little more opaque instead. */
  --glass-tile: rgb(var(--c-light-rgb) / .86);
  --glass-dark: rgb(var(--c-dark-rgb) / .52);
  --glass-dark-strong: rgb(var(--c-dark-rgb) / .78);
  --glass-edge: rgb(255 255 255 / .55);
  --glass-edge-dark: rgb(255 255 255 / .14);
  --blur: saturate(160%) blur(18px);
  --shadow-warm: 0 1px 2px rgb(var(--c-dark-rgb) / .06), 0 12px 32px -12px rgb(var(--c-dark-rgb) / .22), 0 24px 60px -30px rgb(var(--c-accent-rgb) / .35);
  --shadow-soft: 0 1px 2px rgb(var(--c-dark-rgb) / .05), 0 10px 30px -18px rgb(var(--c-dark-rgb) / .3);
  --focus: 3px solid var(--c-accent-text);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) - var(--topbar-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* Ambient heat: soft warm glows behind all glass on the page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  transform: translateZ(0); /* own layer: stays put while scrolling without repainting */
  background:
    radial-gradient(40rem 32rem at 105% 8%, rgb(var(--c-accent-rgb) / .13), transparent 70%),
    radial-gradient(36rem 30rem at -10% 55%, rgb(var(--c-accent-rgb) / .08), transparent 70%),
    radial-gradient(50rem 40rem at 60% 110%, rgb(var(--c-dark-rgb) / .07), transparent 70%),
    var(--c-light);
}
img, picture, video, iframe { max-width: 100%; height: auto; display: block; }
/* Images that fill a frame: the <picture> wrapper must fill it too. */
.hero__media picture, .row__bg picture, .card__media picture, .gallery__item picture, .carousel__track picture, .cta__media picture { height: 100%; }
a { color: var(--c-accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, figure, table, blockquote { margin: 0 0 1.1em; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-dark); color: var(--c-on-dark); padding: .75rem 1.1rem; font-weight: 700; border-radius: var(--r-sm);
}
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gap)); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.preview-bar { position: relative; z-index: 60; background: var(--c-accent); color: var(--c-on-accent); text-align: center; padding: .5rem 1rem; font-weight: 700; }

/* ============================================================ header */
/* The whole header is sticky; the top bar scrolls away, the glass bar stays. */
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 50; }
.topbar { background: var(--c-dark); color: var(--c-on-dark); font-size: .875rem; height: var(--topbar-h); }
.topbar a:not(.btn) { color: var(--c-on-dark); text-decoration: none; }
.topbar a:hover { color: var(--c-accent-on-dark); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 100%; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar__contact a { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem 0; }
.topbar__contact svg { width: 1rem; height: 1rem; color: var(--c-accent-on-dark); }
.langs ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: .2rem; border-radius: var(--r-pill); background: rgb(255 255 255 / .08); }
.langs a { display: block; padding: .15rem .6rem; font-weight: 600; letter-spacing: .04em; border-radius: var(--r-pill); font-size: .8rem; }
.langs abbr { text-decoration: none; }
.langs a[aria-current] { background: var(--c-light); color: var(--c-dark); }

/* The navigation is a floating pane of glass, aligned with the content.
   The glass lives on ::before: an element with backdrop-filter would stop the dropdown
   and the mobile menu inside it from blurring the page behind them. */
.mainbar {
  position: relative; isolation: isolate;
  width: calc(100% - 2 * var(--gap) + 1.5rem);
  max-width: calc(var(--wrap) - 2 * var(--gap) + 2.5rem);
  margin: .7rem auto 0;
  border-radius: var(--r-pill);
}
.mainbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / .07), transparent 60%), rgb(var(--c-menu-bg-rgb) / .84);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgb(var(--c-menu-text-rgb) / .12);
  box-shadow: 0 14px 44px -20px rgb(0 0 0 / .6), inset 0 1px 0 rgb(var(--c-menu-text-rgb) / .12);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled .mainbar::before { background: linear-gradient(180deg, rgb(255 255 255 / .07), transparent 60%), rgb(var(--c-menu-bg-rgb) / .75); box-shadow: 0 18px 50px -20px rgb(0 0 0 / .55), inset 0 1px 0 rgb(var(--c-menu-text-rgb) / .12); }
.mainbar .wrap { max-width: none; padding: 0 .75rem 0 1rem; }
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; color: var(--c-menu-text); text-decoration: none; flex-shrink: 0; }
.brand img { max-height: 2.5rem; width: auto; }
.brand__text { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; }

.nav__list { display: flex; align-items: center; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
/* Links fill their item, so the whole width is clickable and hover/active colours span the full row. */
.nav__item > .nav__link { flex: 1 1 auto; }
.nav__link {
  display: block; padding: .65rem .7rem .45rem; color: var(--c-menu-text); text-decoration: none;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem; border-radius: var(--r-pill);
  white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--c-menu-hover); background: rgb(var(--c-menu-text-rgb) / .08); }
/* Parent of the current page */
.nav__item.is-current > .nav__link { background: rgb(var(--c-menu-active-rgb) / .2); box-shadow: inset 0 0 0 1px rgb(var(--c-menu-active-rgb) / .45); }
/* The current page itself (stronger than the parent tint above, also on mobile) */
.nav__item > .nav__link[aria-current="page"], .nav__item > .nav__link[aria-current="page"]:hover {
  background: var(--c-menu-active); color: var(--c-menu-on-active);
  box-shadow: 0 8px 20px -10px rgb(var(--c-menu-active-rgb) / .9);
}
.nav__toggle { background: none; border: 0; padding: .5rem .35rem; margin-left: -.4rem; cursor: pointer; color: var(--c-menu-text); align-self: center; border-radius: var(--r-pill); }
.nav__toggle:hover { color: var(--c-menu-hover); }
@media (min-width: 80.0625em) {
  /* Top level: the pill is on the item, so the arrow of a submenu sits inside it. */
  .nav__list > .nav__item { border-radius: var(--r-pill); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
  .nav__list > .nav__item > .nav__link,
  .nav__list > .nav__item > .nav__link:hover,
  .nav__list > .nav__item > .nav__link:focus-visible,
  .nav__list > .nav__item > .nav__link[aria-current="page"] { background: none; box-shadow: none; }
  .nav__list > .nav__item.has-sub > .nav__link { padding-right: .2rem; }
  .nav__list > .nav__item > .nav__toggle { margin-left: 0; padding: .55rem .75rem .55rem .3rem; }
  .nav__list > .nav__item:hover { background: rgb(var(--c-menu-text-rgb) / .08); }
  .nav__list > .nav__item:hover > .nav__link, .nav__list > .nav__item:hover > .nav__toggle { color: var(--c-menu-hover); }
  .nav__list > .nav__item.is-current { background: rgb(var(--c-menu-active-rgb) / .2); box-shadow: inset 0 0 0 1px rgb(var(--c-menu-active-rgb) / .45); }
  .nav__list > .nav__item:has(> .nav__link[aria-current="page"]) { background: var(--c-menu-active); box-shadow: 0 8px 20px -10px rgb(var(--c-menu-active-rgb) / .9); }
  .nav__list > .nav__item:has(> .nav__link[aria-current="page"]) > .nav__link,
  .nav__list > .nav__item:has(> .nav__link[aria-current="page"]) > .nav__toggle { color: var(--c-menu-on-active); }
}
.nav__chev { display: block; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: translateY(2px) rotate(-135deg); }
.nav__sub {
  display: none; position: absolute; top: calc(100% + .6rem); left: 0; min-width: 17rem; list-style: none; margin: 0; padding: .45rem;
  background: rgb(var(--c-menu-bg-rgb) / .9); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgb(var(--c-menu-text-rgb) / .12); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .6);
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; } /* hover bridge */
.nav__sub.is-open { display: flex; flex-direction: column; gap: .45rem; animation: pop .18s var(--ease); }
.nav__sub .nav__link { padding: .6rem .8rem; font-size: 1rem; border-radius: var(--r-sm); }
.nav__sub .nav__link[aria-current="page"] { box-shadow: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Opening a submenu: the links fade in downwards, one after another. */
@keyframes sub-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sub-item-in { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: none; } }
.nav__sub.is-open > .nav__item { animation: sub-item-in .4s var(--ease) both; }
.nav__sub.is-open > .nav__item:nth-child(2) { animation-delay: .04s; }
.nav__sub.is-open > .nav__item:nth-child(3) { animation-delay: .08s; }
.nav__sub.is-open > .nav__item:nth-child(4) { animation-delay: .12s; }
.nav__sub.is-open > .nav__item:nth-child(5) { animation-delay: .16s; }
.nav__sub.is-open > .nav__item:nth-child(6) { animation-delay: .2s; }
.nav__sub.is-open > .nav__item:nth-child(n+7) { animation-delay: .24s; }

.menu-btn {
  display: none; align-items: center; justify-content: center; gap: .6rem; background: none; border: 0;
  width: 35px; height: 35px; flex: 0 0 35px; border-radius: var(--r-pill); padding: 0; cursor: pointer; color: var(--c-menu-text); font-weight: 600;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 1.2rem; height: 2px; background: currentColor; position: relative; transition: transform .2s var(--ease); border-radius: 2px; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 80em) {
  .menu-btn { display: inline-flex; }
  .mainbar { width: calc(100% - 1rem); margin-top: .5rem; border-radius: var(--r-pill); }
  .mainbar .wrap { padding: 0 1rem; }
  .mainbar__inner { min-height: 3.9rem; }
  .brand img { max-height: 2.5rem; }
  /* The menu opens as a glass panel over the page, below the bar. */
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + .5rem);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    border-radius: var(--r-lg); background: rgb(var(--c-menu-bg-rgb) / .93); border: 1px solid rgb(var(--c-menu-text-rgb) / .12);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .6);
  }
  /* Opening the menu: the panel fades in and the items drop in one after another (same as submenus). */
  .nav.is-open { display: block; animation: sub-in .35s var(--ease) both; }
  .nav.is-open > .nav__list > .nav__item { animation: sub-item-in .4s var(--ease) both; }
  .nav.is-open > .nav__list > .nav__item:nth-child(2) { animation-delay: .04s; }
  .nav.is-open > .nav__list > .nav__item:nth-child(3) { animation-delay: .08s; }
  .nav.is-open > .nav__list > .nav__item:nth-child(4) { animation-delay: .12s; }
  .nav.is-open > .nav__list > .nav__item:nth-child(5) { animation-delay: .16s; }
  .nav.is-open > .nav__list > .nav__item:nth-child(6) { animation-delay: .2s; }
  .nav.is-open > .nav__list > .nav__item:nth-child(7) { animation-delay: .24s; }
  .nav.is-open > .nav__list > .nav__item:nth-child(n+8) { animation-delay: .28s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .45rem; padding: .5rem; }
  /* Each item is a grid: row 1 = link + arrow, row 2 = the submenu. The background of hover/current
     states is a layer of the item (::before) that covers exactly row 1, so the arrow is included
     and an open submenu is not coloured along. */
  .nav__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .nav__item::before {
    content: ""; grid-row: 1; grid-column: 1 / -1; align-self: stretch;
    border-radius: var(--r-sm); transition: background-color .5s var(--ease), box-shadow .5s var(--ease), border-radius .5s var(--ease);
  }
  .nav__item > .nav__link { grid-row: 1; grid-column: 1; position: relative; z-index: 1; padding: .8rem 1rem; border-radius: var(--r-sm); }
  .nav__item:not(.has-sub) > .nav__link { grid-column: 1 / -1; }
  .nav__item > .nav__toggle { grid-row: 1; grid-column: 2; position: relative; z-index: 1; margin: 0; padding: .8rem 1rem; align-self: stretch; }
  .nav__item > .nav__link, .nav__item > .nav__link:hover, .nav__item > .nav__link:focus-visible,
  .nav__item > .nav__link[aria-current="page"], .nav__item.is-current > .nav__link { background: none; box-shadow: none; }
  /* Hover / keyboard focus (not while pointing at the open submenu below it) */
  .nav__item:is(:hover, :has(> :focus-visible)):not(:has(.nav__sub:hover))::before { background: rgb(var(--c-menu-text-rgb) / .08); }
  .nav__item:is(:hover, :has(> :focus-visible)):not(:has(.nav__sub:hover)) > :is(.nav__link, .nav__toggle) { color: var(--c-menu-hover); }
  /* Parent of the current page */
  .nav__item.is-current::before { background: rgb(var(--c-menu-active-rgb) / .2); box-shadow: inset 0 0 0 1px rgb(var(--c-menu-active-rgb) / .45); }
  /* The current page itself: one pill including the arrow */
  .nav__item:has(> .nav__link[aria-current="page"])::before { background: var(--c-menu-active); box-shadow: 0 8px 20px -10px rgb(var(--c-menu-active-rgb) / .9); }
  .nav__item:has(> .nav__link[aria-current="page"]) > :is(.nav__link, .nav__toggle) { color: var(--c-menu-on-active); }
  .nav__item > .nav__sub { grid-row: 2; grid-column: 1 / -1; transition: border-radius .5s var(--ease), background-color .5s var(--ease); }
  /* An open submenu joins its item: square corners where they meet. */
  .nav__item:has(> .nav__sub.is-open)::before { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .nav__item > .nav__sub.is-open { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; animation: sub-in .35s var(--ease) both; }
  .nav__sub { position: static; min-width: 0; flex-basis: 100%; border: 0; box-shadow: none; background: rgb(var(--c-menu-text-rgb) / .05); padding: .25rem; margin: 0 0 .25rem; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__sub::before { display: none; }
  .topbar__contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar__contact svg { width: 1.15rem; height: 1.15rem; }
  .topbar__contact a { padding: .45rem .25rem; }
}

/* The page opening (image or dark heading) runs under the floating glass header. */
main { margin-top: calc(-1 * (var(--header-h) - var(--topbar-h)) - 1px); }
.row--hero:first-child .hero__content { padding-top: calc(var(--header-h) - var(--topbar-h) + clamp(2.5rem, 7vw, 5rem)); }

/* ============================================================ page head (pages without hero) */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-dark); color: var(--c-on-dark);
  padding: calc(var(--header-h) - var(--topbar-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.25rem, 5vw, 3.75rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(34rem 22rem at 88% 110%, rgb(var(--c-accent-rgb) / .55), transparent 70%),
    radial-gradient(28rem 18rem at 70% -30%, rgb(var(--c-accent-rgb) / .22), transparent 70%),
    linear-gradient(120deg, var(--c-dark) 40%, var(--c-dark-2));
}
.page-head__title { margin: 0; max-width: 22ch; }
.page-head__meta { margin: .9rem 0 0; opacity: .85; }
.crumbs { margin-bottom: 1.1rem; }
.crumbs ol {
  display: inline-flex; flex-wrap: wrap; list-style: none; margin: 0; padding: .35rem .9rem; font-size: .875rem;
  border-radius: var(--r-pill); background: rgb(255 255 255 / .08); border: 1px solid var(--glass-edge-dark);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 .5rem; opacity: .5; }
.crumbs a { color: var(--c-on-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { opacity: .75; }
.featured { margin-top: calc(-1 * clamp(1.25rem, 3vw, 2rem)); position: relative; z-index: 2; }
.featured picture, .featured img { border-radius: var(--r-lg); box-shadow: var(--shadow-warm); }

/* ============================================================ rows & grid */
.row { position: relative; }
.row--pad-none { padding: 0; }
.row--pad-s { padding: var(--pad-s) 0; }
.row--pad-m { padding: var(--pad-m) 0; }
.row--pad-l { padding: var(--pad-l) 0; }
.content > .row--bg-none.row--pad-m:not(.row--w-full) + .row--bg-none.row--pad-m:not(.row--w-full) { padding-top: 0; }
/* Plain rows after each other read as one story: a smaller gap than between real sections. */
.content > .row--bg-none.row--pad-m:not(.row--w-full):has(+ .row--bg-none.row--pad-m:not(.row--w-full)) { padding-bottom: var(--flow-gap); }
/* A row with only a heading belongs to the content below it. */
.content > .row--bg-none:has(+ .row--bg-none):has(> .row__inner > .grid--single > .col > :is(h2, h3, h4):only-child),
.content > .row--bg-none:has(+ .row--bg-none):has(> .row__inner > .grid--single > .col > .prose:only-child > :is(h2, h3, h4):only-child) { padding-bottom: 0; }
/* …and the row after such a heading starts at the top, directly below it (no vertical centring). */
.content > .row:has(> .row__inner > .grid--single > .col > :is(h2, h3, h4):only-child) + .row--center .grid,
.content > .row:has(> .row__inner > .grid--single > .col > .prose:only-child > :is(h2, h3, h4):only-child) + .row--center .grid { align-items: start; }
/* A call-to-action is a section of its own: it keeps the full distance to the text above it. */
.content > .row--bg-none.row--pad-m:not(.row--w-full) + .row--bg-none.row--pad-m:not(.row--w-full):has(> .row__inner .cta) { padding-top: calc(var(--pad-m) - var(--flow-gap)); }
.row__inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.row--w-narrow .row__inner { max-width: calc(var(--wrap-narrow) + 2 * var(--gap)); }
.row--w-wide .row__inner { max-width: 92rem; }
.row--w-full .row__inner { max-width: none; padding: 0; }

.row--bg-soft {
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgb(var(--c-accent-rgb) / .09), transparent 70%),
    radial-gradient(30rem 20rem at 100% 100%, rgb(var(--c-accent-rgb) / .07), transparent 70%),
    var(--c-soft);
}
.row--bg-dark, .row--bg-image { background: var(--c-dark); color: var(--c-on-dark); overflow: hidden; isolation: isolate; }
.row--bg-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(32rem 22rem at 100% 0%, rgb(var(--c-accent-rgb) / .35), transparent 70%),
    radial-gradient(26rem 18rem at 0% 100%, rgb(var(--c-accent-rgb) / .18), transparent 70%);
}
.row--bg-accent {
  color: var(--c-on-accent);
  background: radial-gradient(40rem 26rem at 90% 0%, rgb(255 255 255 / .22), transparent 70%), var(--c-accent);
}
.row--bg-dark a:not(.btn), .row--bg-image a:not(.btn) { color: var(--c-accent-on-dark); }
.row--bg-accent a:not(.btn) { color: var(--c-on-accent); }
.row__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.row__bg img { width: 100%; height: 100%; object-fit: cover; }
.row__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--c-dark-rgb) / .78), rgb(var(--c-dark-rgb) / .35)); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap) calc(var(--gap) * 1.25); }
.row--center .grid { align-items: center; }
.col { grid-column: span 12; min-width: 0; }
.col > :last-child { margin-bottom: 0; }
@media (min-width: 48em) {
  .col--3, .col--4, .col--5, .col--6, .col--7, .col--8, .col--9 { grid-column: span 6; }
}
@media (min-width: 64em) {
  .col--1 { grid-column: span 1; } .col--2 { grid-column: span 2; } .col--3 { grid-column: span 3; }
  .col--4 { grid-column: span 4; } .col--5 { grid-column: span 5; } .col--6 { grid-column: span 6; }
  .col--7 { grid-column: span 7; } .col--8 { grid-column: span 8; } .col--9 { grid-column: span 9; }
  .col--10 { grid-column: span 10; } .col--11 { grid-column: span 11; } .col--12 { grid-column: span 12; }
}
.grid--single .col { grid-column: 1 / -1; }
/* Photo side on the left (alternating text/photo rows); on small screens the text always comes first. */
@media (min-width: 64em) {
  .row--reverse .grid > .col:first-child { order: 2; }
}
/* Media in a reading-width row stays centred. */
.row--w-narrow .figure picture, .row--w-narrow .figure figcaption { margin-inline: auto; }
.row--w-narrow .figure figcaption { text-align: center; }

/* ============================================================ hero */
.row--hero { padding: 0; }
.row--hero .row__inner { max-width: none; padding: 0; }
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  color: var(--c-on-dark);
  min-height: clamp(24rem, 62vh, 40rem);
  background:
    radial-gradient(40rem 30rem at 85% 100%, rgb(var(--c-accent-rgb) / .5), transparent 70%),
    radial-gradient(30rem 22rem at 20% 0%, rgb(var(--c-accent-rgb) / .18), transparent 70%),
    linear-gradient(135deg, var(--c-dark) 30%, var(--c-dark-2));
}
.hero--s { min-height: clamp(18rem, 40vh, 26rem); }
.hero--l { min-height: clamp(30rem, 88vh, 52rem); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--has-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(var(--c-dark-rgb) / .35) 0%, transparent 30%),
    linear-gradient(90deg, rgb(var(--c-dark-rgb) / .82) 0%, rgb(var(--c-dark-rgb) / .55) 45%, rgb(var(--c-dark-rgb) / .12) 100%),
    radial-gradient(50rem 30rem at 80% 120%, rgb(var(--c-accent-rgb) / .4), transparent 70%);
}
.hero__content {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gap) clamp(3rem, 8vw, 6rem);
}
/* Text directly on the photo; the darkened left side of the image keeps it readable. */
.hero__panel { max-width: 44rem; }
.hero__title, .hero__subtitle { text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 1rem 0 0; opacity: .92; }
.hero__actions { margin: 1.75rem 0 0; }
/* Signature: a glowing heating element along the bottom edge. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--c-accent) 20%, var(--c-accent) 80%, transparent);
  box-shadow: 0 0 24px 4px rgb(var(--c-accent-rgb) / .55);
}


/* Service tiles float over the bottom of the hero: keep the button clear of them. */
.row--hero:has(+ .row .feature) .hero__content { padding-bottom: calc(clamp(3rem, 8vw, 6rem) + clamp(2.5rem, 6vw, 4.5rem)); }
.row--hero + .row:has(.feature) { padding-top: 0; background: transparent; }
.row--hero + .row:has(.feature) .row__inner { margin-top: calc(-1 * clamp(2.5rem, 6vw, 4.5rem)); z-index: 3; }
.row--hero + .row:has(.feature)::before { display: none; }
.row--hero + .row:has(.feature) .feature { background: rgb(var(--c-light-rgb) / .84); }

/* ============================================================ text */
.prose { text-wrap: pretty; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ol { padding-left: 1.4em; }
.prose ol > li::marker { color: var(--c-accent-text); font-weight: 700; }
.prose li { margin-bottom: .45em; }
/* Bullet lists: glowing heat dots instead of standard bullets. */
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.7rem; }
.prose ul > li::before {
  content: ""; position: absolute; left: .25rem; top: .6em; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .16);
}
/* A list inside a list item (e.g. the types under "Scope 5"): compact tags. */
.prose ul ul, .prose ol ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .3rem; padding: 0; }
.prose ul ul > li, .prose ol ul > li {
  margin: 0; padding: .3rem .8rem; font-size: .9rem; line-height: 1.35;
  border-radius: var(--r-pill); background: rgb(var(--c-accent-rgb) / .08); border: 1px solid rgb(var(--c-accent-rgb) / .22);
}
.prose ul ul > li::before, .prose ol ul > li::before { display: none; }
.prose blockquote { margin-left: 0; padding: 1rem 1.25rem; font-size: 1.15em; border-radius: var(--r-md); background: var(--glass-light); border: 1px solid var(--glass-edge); border-left: 4px solid var(--c-accent); }
.prose img { margin: 1rem 0; border-radius: var(--r-md); }

/* ============================================================ tables */
/* Table card: title on top (never scrolls away), the table itself scrolls sideways when it is wider
   than the screen; soft shadows at the edges show there is more. */
.table-block {
  --tbl-bg: var(--c-light);
  margin: 0 0 1.5rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgb(var(--c-dark-rgb) / .1); background: var(--tbl-bg); box-shadow: var(--shadow-soft);
}
.table-block__title {
  margin: 0; padding: 1rem 1.1rem .8rem;
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--c-dark);
}
.table-scroll {
  position: relative; max-width: 100%; overflow-x: auto;
  background:
    linear-gradient(to right, var(--tbl-bg) 30%, rgb(var(--c-light-rgb) / 0)) left center / 3rem 100% no-repeat local,
    linear-gradient(to left, var(--tbl-bg) 30%, rgb(var(--c-light-rgb) / 0)) right center / 3rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .16), transparent) left center / 1rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .16), transparent) right center / 1rem 100% no-repeat scroll,
    var(--tbl-bg);
  scrollbar-width: thin; scrollbar-color: rgb(var(--c-accent-rgb) / .6) transparent;
}
.table-scroll:focus-visible { outline: var(--focus); outline-offset: 3px; }
.table-scroll > table { margin: 0; }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .95rem; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.prose caption {
  caption-side: top; text-align: left; padding: 1rem 1.1rem .75rem;
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--c-dark);
}
.prose th, .prose td {
  padding: .7rem 1rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgb(var(--c-dark-rgb) / .07);
  min-width: 5.5rem; max-width: 24rem;
}
.prose tbody tr:last-child > *, .prose table > tr:last-child > * { border-bottom: 0; }
/* Column headers: a clear, calm header band. */
.prose thead th {
  background: rgb(var(--c-accent-rgb) / .1); color: var(--c-dark);
  font-weight: 700; font-size: .85rem; letter-spacing: .01em;
  border-bottom: 1px solid rgb(var(--c-accent-rgb) / .3);
}
.prose thead tr + tr th { font-weight: 600; color: var(--c-muted); padding-top: .35rem; }
.prose thead tr:has(+ tr) th { border-bottom: 0; padding-bottom: .35rem; }
/* Rows: calm alternating tint and a hover highlight. */
.prose tbody tr:nth-child(even) > * { background: rgb(var(--c-dark-rgb) / .025); }
.prose tbody tr:hover > * { background: rgb(var(--c-accent-rgb) / .06); }
/* Row headers (e.g. the model name) stay visible while scrolling sideways. */
.prose th[scope="row"] {
  position: sticky; left: 0; z-index: 1;
  font-weight: 700; white-space: nowrap; background: var(--tbl-bg, var(--c-light));
  box-shadow: inset -1px 0 0 rgb(var(--c-dark-rgb) / .08);
}
.prose tbody tr:nth-child(even) > th[scope="row"] { background: linear-gradient(rgb(var(--c-dark-rgb) / .025), rgb(var(--c-dark-rgb) / .025)), var(--c-light); }
.prose tbody tr:hover > th[scope="row"] { background: linear-gradient(rgb(var(--c-accent-rgb) / .06), rgb(var(--c-accent-rgb) / .06)), var(--c-light); }
.prose thead th:first-child { position: sticky; left: 0; z-index: 2; background: linear-gradient(rgb(var(--c-accent-rgb) / .1), rgb(var(--c-accent-rgb) / .1)), var(--c-light); }
/* Headings typed inside cells (old content): no big heading margins. */
.prose td :is(h2, h3, h4, h5), .prose th :is(h2, h3, h4, h5) { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.prose td > p:last-child, .prose th > p:last-child { margin-bottom: 0; }
/* Dark rows */
.row--bg-dark .table-block { --tbl-bg: var(--c-dark-2); border-color: var(--glass-edge-dark); }
.row--bg-dark .table-block__title, .row--bg-dark .prose caption, .row--bg-dark .prose thead th { color: inherit; }
.row--bg-dark .prose th[scope="row"], .row--bg-dark .prose thead th:first-child { background: var(--c-dark-2); }
@media (max-width: 40em) {
  .prose table { font-size: .875rem; }
  .prose th, .prose td { padding: .6rem .75rem; min-width: 4.75rem; }
  .prose caption, .table-block__title { padding: .85rem .85rem .6rem; font-size: 1.05rem; }
}
.row--bg-dark .prose li::marker, .row--bg-image .prose li::marker { color: var(--c-accent-on-dark); }
.row--bg-dark .prose ul ul > li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); }
.sep { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c-dark-rgb) / .18), transparent); margin: 2.5rem 0; }
.row--bg-dark .sep { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .2), transparent); }
.spacer--s { height: 1rem; } .spacer--m { height: 2.5rem; } .spacer--l { height: 5rem; }

.figure { margin: 0 0 1.25rem; }
.figure picture, .figure img { border-radius: var(--r-lg); }
.figure picture { overflow: hidden; width: fit-content; max-width: 100%; border-radius: var(--r-lg); }
/* A loose image in a single column is centred (like "aligncenter" on the old site). */
.grid--single > .col > .figure picture, .grid--single > .col > .figure figcaption { margin-inline: auto; }
.grid--single > .col > .figure figcaption { text-align: center; }
.ta-center .figure picture, .figure.ta-center picture { margin-inline: auto; }
.figure a.lb picture img { transition: transform .5s var(--ease); }
.figure a.lb:hover picture img { transform: scale(1.03); }
.figure figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .6rem; }
/* Text after a photo in the same column gets some air. */
.figure + .prose, .figure + h2, .figure + h3, .video + .prose, .gallery + .prose { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.row--bg-dark .figure figcaption { color: inherit; opacity: .85; }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, rgb(255 255 255 / .18), transparent 60%), var(--c-accent);
  color: var(--c-on-accent); border-color: rgb(var(--c-accent-rgb) / .9);
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 10px 24px -10px rgb(var(--c-accent-rgb) / .8);
}
.btn--primary:hover { background-color: var(--c-accent-hover); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 14px 30px -10px rgb(var(--c-accent-rgb) / .9); }
.btn--outline {
  background: rgb(var(--c-light-rgb) / .7); color: var(--c-dark); border-color: rgb(var(--c-dark-rgb) / .35);
}
.btn--outline:hover { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); }
.btn--on-dark, .row--bg-dark .btn--outline, .row--bg-image .btn--outline, .hero .btn--outline { color: var(--c-on-dark); background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .35); }
.row--bg-dark .btn--outline:hover, .btn--on-dark:hover { background: var(--c-on-dark); color: var(--c-dark); }
.row--bg-accent .btn--primary { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); box-shadow: 0 10px 24px -12px rgb(var(--c-dark-rgb) / .7); }
.row--bg-accent .btn--outline { color: var(--c-on-accent); border-color: currentColor; background: rgb(255 255 255 / .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

/* ============================================================ call-to-action */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(15rem, 28vw, 21rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--r-xl); color: var(--c-on-dark);
  background:
    radial-gradient(34rem 20rem at 85% 120%, rgb(var(--c-accent-rgb) / .55), transparent 70%),
    radial-gradient(26rem 16rem at 10% -20%, rgb(var(--c-accent-rgb) / .2), transparent 70%),
    linear-gradient(135deg, var(--c-dark), var(--c-dark-2));
  box-shadow: var(--shadow-warm);
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta--has-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 22rem at 50% 130%, rgb(var(--c-accent-rgb) / .45), transparent 70%),
    linear-gradient(180deg, rgb(var(--c-dark-rgb) / .55), rgb(var(--c-dark-rgb) / .72));
}
.cta--accent { color: var(--c-on-accent); background: radial-gradient(34rem 20rem at 90% -10%, rgb(255 255 255 / .25), transparent 70%), var(--c-accent); }
.cta--accent.cta--has-media::before { background: linear-gradient(180deg, rgb(var(--c-accent-rgb) / .78), rgb(var(--c-accent-rgb) / .9)); }
.cta::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent); box-shadow: 0 0 20px 3px rgb(var(--c-accent-rgb) / .5);
}
.cta--accent::after { display: none; }
.cta__content { max-width: 48rem; }
.cta__logo { margin: 0 auto 1.25rem; width: fit-content; }
.cta__logo img { max-height: 5rem; width: auto; margin: 0 auto; border-radius: var(--r-sm); }
/* In a column next to other content: fill the height of the row (like the old site). */
.grid:not(.grid--single) > .col > .cta:only-child { height: 100%; min-height: clamp(18rem, 32vw, 26rem); }
/* Full-width section (old site: a whole row with a background photo): edge to edge. */
.row--w-full .cta { border-radius: 0; box-shadow: none; min-height: clamp(18rem, 30vw, 26rem); padding-inline: max(var(--gap), calc((100% - var(--wrap)) / 2 + var(--gap))); }
.row--w-full .cta::after { left: 0; right: 0; }
.cta__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 .5em; color: inherit; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.cta__text { font-size: 1.1rem; opacity: .92; margin: 0 auto 1.6rem; max-width: 42rem; }
.cta__actions { margin: 0; }
.btn--dark { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); box-shadow: 0 10px 24px -12px rgb(var(--c-dark-rgb) / .7); }
.btn--dark:hover { background: var(--c-dark-2); }

/* ============================================================ glass tiles: features */
.feature {
  position: relative; height: 100%;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--glass-tile); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-warm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:has(.feature__link):hover { transform: translateY(-4px); }
.feature__icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem;
  border-radius: var(--r-md); color: var(--c-on-accent);
  background: linear-gradient(145deg, rgb(255 255 255 / .25), transparent 60%), var(--c-accent);
  box-shadow: 0 10px 22px -10px rgb(var(--c-accent-rgb) / .9);
}
.feature__icon svg { width: 1.55rem; height: 1.55rem; }
.feature__title { margin-bottom: .45em; font-size: 1.3rem; }
/* Tile without icon (e.g. an overview of products): a short heat-coloured line instead. */
.feature--plain .feature__title::before {
  content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 1rem; border-radius: 3px;
  background: var(--c-accent); box-shadow: 0 0 12px rgb(var(--c-accent-rgb) / .6);
}
/* Several rows of tiles directly after each other read as one grid. */
.content > .row:has(.feature):has(+ .row .feature) { padding-bottom: calc(var(--gap) * .6); }
.content > .row:has(.feature) + .row:has(.feature) { padding-top: calc(var(--gap) * .6); }
.feature p { color: var(--c-muted); }
.feature__link { font-weight: 700; text-decoration: none; }
.feature__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole tile clickable */
.feature__link:hover { text-decoration: underline; }
.feature:focus-within { outline: var(--focus); outline-offset: 3px; }
.feature__link:focus-visible { outline: none; }
.row--bg-dark .feature, .row--bg-image .feature { background: rgb(255 255 255 / .06); border-color: var(--glass-edge-dark); color: var(--c-on-dark); }
.row--bg-dark .feature p, .row--bg-image .feature p { color: inherit; opacity: .85; }

/* ============================================================ gallery, carousel, logos */
.gallery { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0 0 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) {
  .gallery--cols-3, .gallery--cols-4, .gallery--cols-5, .gallery--cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64em) {
  .gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery--cols-5 { grid-template-columns: repeat(5, 1fr); }
  .gallery--cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.gallery__item a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-soft); border-radius: var(--r-md); box-shadow: var(--shadow-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item a:hover img { transform: scale(1.05); }

.carousel { position: relative; margin-bottom: 1.25rem; container-type: inline-size; }
.carousel__track {
  --per: 1;
  display: grid; grid-auto-flow: column; gap: .9rem;
  grid-auto-columns: calc((100% - (var(--per) - 1) * .9rem) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  list-style: none; scrollbar-width: none;
  /* Room for the soft shadow of the slides (a scroll area clips everything outside it);
     the negative margin keeps the photos exactly where they were. */
  --shadow-room: 14px;
  padding: 4px var(--shadow-room) 24px; margin: -4px calc(-1 * var(--shadow-room)) -24px;
  scroll-padding-inline: var(--shadow-room);
}
.carousel__track::-webkit-scrollbar { display: none; }
@container (min-width: 34rem) { .carousel__track { --per: 2; } }
@container (min-width: 56rem) { .carousel__track { --per: 3; } }
.carousel__track > li { scroll-snap-align: start; }
.carousel__track a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-soft); border-radius: var(--r-md); }
.carousel__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carousel__track a:hover img { transform: scale(1.04); }
/* Controls: one glass pill at the bottom of the photos (same design as the photo popup). */
.carousel__nav {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: .1rem; padding: .25rem;
  border-radius: var(--r-pill); color: #fff;
  background: rgb(var(--c-dark-rgb) / .55); border: 1px solid rgb(255 255 255 / .18);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  /* Compact shadow that stays within the photos (it used to spill past their bottom edge). */
  box-shadow: 0 4px 14px -6px rgb(0 0 0 / .55);
}
.carousel:not(.is-scrollable) .carousel__nav { display: none; }
.carousel__btn {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.carousel__btn svg { width: 1.2rem; height: 1.2rem; }
.carousel__btn:hover:not([disabled]) { background: var(--c-accent); color: var(--c-on-accent); }
.carousel__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__count[hidden] { display: none; }
.carousel__count { min-width: 3.4rem; padding: 0 .2rem; text-align: center; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.logos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: .9rem; list-style: none; margin: 0; padding: 0;
}
.logos li {
  display: grid; place-items: center; min-height: 7.25rem; padding: 1.1rem 1.25rem;
  border-radius: var(--r-md); background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.logos li:has(a):hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos picture { display: contents; }
/* Logos keep their own proportions: at most 65 px high and never wider than the tile. */
.logos img { width: auto; height: auto; max-width: 100%; max-height: 65px; object-fit: contain; margin: 0 auto; }
@media (max-width: 40em) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .logos li { min-height: 5.5rem; padding: .8rem; }
  .logos img { max-height: 48px; }
}

/* Logo ticker: a continuous, endless strip; fades out at both edges. */
.ticker { position: relative; }
.ticker__viewport {
  position: relative; /* hidden helper texts inside the logos stay inside the strip (otherwise the page widens) */
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  cursor: grab; padding: 6px 0 18px; margin: -6px 0 -18px; /* room for the tile shadows */
}
.ticker__viewport::-webkit-scrollbar { display: none; }
.ticker.is-dragging .ticker__viewport { cursor: grabbing; user-select: none; }
.ticker__viewport:focus-visible { outline: var(--focus); outline-offset: 4px; border-radius: var(--r-md); }
.ticker__track { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; width: max-content; }
.ticker__track > li {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 14rem; height: 7rem; margin-right: .9rem; padding: 1rem 1.25rem;
  border-radius: var(--r-md); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft);
}
.ticker__track a { display: grid; place-items: center; width: 100%; height: 100%; }
.ticker__track picture { display: contents; }
.ticker__track img { width: auto; height: auto; max-width: 100%; max-height: 65px; object-fit: contain; pointer-events: none; }
/* Fade in when loaded (only when the script runs; without it the logos are simply visible). */
.ticker.is-ready .ticker__track img { opacity: 0; transition: opacity .5s var(--ease); }
.ticker.is-ready .ticker__track img.is-loaded { opacity: 1; }
@media (max-width: 40em) {
  .ticker__track > li { width: 10.5rem; height: 5.5rem; padding: .75rem; }
  .ticker__track img { max-height: 44px; }
}

/* ============================================================ video & embeds */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--c-dark); margin-bottom: 1.25rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-warm); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background:
    radial-gradient(30rem 20rem at 50% 120%, rgb(var(--c-accent-rgb) / .45), transparent 70%),
    linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: var(--c-on-dark); border: 0; cursor: pointer; padding: 1rem;
}
.video__icon {
  width: 4.75rem; height: 4.75rem; border-radius: 50%; position: relative;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .3);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .25s var(--ease), background-color .25s;
}
.video__play:hover .video__icon { transform: scale(1.06); background: var(--c-accent); }
.video__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent transparent transparent #fff;
}
.video__label { font-weight: 700; font-size: 1.1rem; }
.video__note { font-size: .85rem; opacity: .8; }
/* YouTube/Vimeo players pasted as an iframe (old content): always 16:9. */
.embed iframe[src*="youtube"], .embed iframe[src*="youtu.be"], .embed iframe[src*="vimeo"] {
  display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg);
}
/* On desktop a video in a single column is two thirds wide and centred. */
@media (min-width: 64em) {
  .grid--single > .col > .video,
  .grid--single > .col > .embed:has(iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="vimeo"]) {
    width: calc(100% * 2 / 3); margin-inline: auto;
  }
}
.embed--gated .embed__placeholder { border: 1px dashed rgb(var(--c-dark-rgb) / .25); padding: 1.75rem; text-align: center; background: var(--glass-light); border-radius: var(--r-lg); color: var(--c-dark); }

/* ============================================================ cards (blog, projects) */
.cards { display: grid; gap: calc(var(--gap) * 1.1); list-style: none; margin: 0 0 2rem; padding: 0; grid-template-columns: 1fr; }
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); color: var(--c-dark);
  background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-accent-text); background: radial-gradient(circle at 50% 120%, rgb(var(--c-accent-rgb) / .25), transparent 70%); }
.card__placeholder svg { width: 2.5rem; height: 2.5rem; }
.card__body { padding: 1.15rem 1.25rem 1.4rem; }
.card__title { font-size: 1.25rem; margin-bottom: .4rem; }
.card__title a { color: var(--c-dark); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__title a:hover { text-decoration: underline; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: var(--focus); outline-offset: 4px; }
.card__meta {
  display: inline-block; font-size: .8rem; font-weight: 600; margin: 0 0 .6rem; padding: .15rem .6rem; border-radius: var(--r-pill);
  background: rgb(var(--c-accent-rgb) / .12); color: var(--c-dark);
}
.card__text { margin: 0; color: var(--c-muted); font-size: .98rem; }
.empty { color: var(--c-muted); }

.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.pager a, .pager span {
  display: inline-block; min-width: 2.75rem; padding: .55rem .9rem; text-align: center; border-radius: var(--r-pill); text-decoration: none;
  background: var(--glass-light); border: 1px solid rgb(var(--c-dark-rgb) / .12);
}
.pager a { color: var(--c-dark); }
.pager a:hover { border-color: var(--c-dark); }
.pager [aria-current] { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); font-weight: 700; }

.back { padding-bottom: var(--pad-m); }
.back__link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: var(--r-pill); background: var(--glass-light); border: 1px solid rgb(var(--c-dark-rgb) / .12);
}
.back__link::before { content: "‹"; font-size: 1.2em; line-height: 1; }
.back__link:hover { background: var(--c-dark); color: var(--c-on-dark); }

/* ============================================================ forms */
.contact .form {
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg);
  background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-warm);
  color: var(--c-dark);
}
.row--bg-dark .contact .form, .row--bg-image .contact .form { background: rgb(var(--c-light-rgb) / .92); }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 0 1.25rem; }
@media (min-width: 40em) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field__opt { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #767676; border-radius: var(--r-sm);
  background: #fff; color: #1a1a1a; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-dark); box-shadow: 0 0 0 3px rgb(var(--c-accent-rgb) / .45); }
.field--error input, .field--error textarea { border: 2px solid #b3261e; }
.field__error { color: #b3261e; font-weight: 600; margin: .35rem 0 0; }
.form__privacy { font-size: .9rem; color: var(--c-muted); }
.form__privacy a { color: var(--c-accent-text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 1rem; }
.notice { padding: 1rem 1.25rem; border-radius: var(--r-md); margin-bottom: 1.5rem; background: var(--glass-light-strong); border: 1px solid var(--glass-edge); border-left: 5px solid; color: var(--c-dark); box-shadow: var(--shadow-soft); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--ok { border-left-color: #1e7a34; }
.notice--error { border-left-color: #b3261e; }
.notice a:not(.btn) { color: #8c1d18; }

/* ============================================================ footer */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-dark); color: var(--c-on-dark); padding: var(--pad-m) 0 0; font-size: .95rem;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36rem 20rem at 10% -10%, rgb(var(--c-accent-rgb) / .28), transparent 70%),
    radial-gradient(30rem 20rem at 100% 110%, rgb(var(--c-accent-rgb) / .12), transparent 70%);
}
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c-accent-rgb) / .8), transparent); }
.site-footer a:not(.btn) { color: var(--c-on-dark); }
.site-footer a:not(.btn):hover { color: var(--c-accent-on-dark); }
.footer__grid { display: grid; gap: 2rem var(--gap); grid-template-columns: repeat(3, 1fr); }
.footer__col { min-width: 0; }
/* Mobile and tablet: company details first (full width, centred), then navigation and links side by side. */
@media (max-width: 64em) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .footer__col--company {
    grid-column: 1 / -1; order: -1; text-align: center;
    padding-bottom: 1.75rem; border-bottom: 1px solid rgb(255 255 255 / .1);
  }
  .footer__col--company address { margin-bottom: .75rem; }
  .footer__col--nav, .footer__col--links { text-align: center; }
}
@media (max-width: 64em) {
  /* Bottom bar: centred, like the company details above it. */
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
  .footer__meta { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 40em) {
  .footer__links li { margin-bottom: .55rem; }
  .footer__links a { display: inline-block; padding: .1rem 0; }
}
.footer__title { font-size: 1.1rem; margin-bottom: .9rem; color: var(--c-accent-on-dark); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .4rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
address { font-style: normal; margin-bottom: 1rem; line-height: 1.75; }
.footer__small { opacity: .8; font-size: .9rem; margin: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .875rem; opacity: .9;
}
.footer__bottom p { margin: 0; }
.footer__meta { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ============================================================ cookie notice */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 40rem;
  padding: 1.35rem; border-radius: var(--r-lg); color: var(--c-on-dark);
  background: var(--glass-dark-strong); border: 1px solid var(--glass-edge-dark);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(var(--c-accent-rgb) / .15);
  animation: pop .3s var(--ease);
}
.cookie a:not(.btn) { color: var(--c-accent-on-dark); }
.cookie__text { margin: 0 0 1rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie .btn { font-size: 1rem; padding: .7rem 1.2rem; }

/* ============================================================ lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: #fff; background: rgb(12 12 12 / .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: lb-in .2s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
  flex: 1; min-height: 0; width: 100%; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox__figure img {
  max-width: min(100%, 100rem); max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-md); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
  transition: opacity .2s var(--ease);
}
.lightbox__figure img.is-loading { opacity: .25; }
.lightbox__figure figcaption { margin-top: .8rem; max-width: 50rem; text-align: center; font-size: .95rem; opacity: .9; }
.lightbox__figure figcaption:empty { display: none; }
/* Bottom pill with previous, counter, next and close. */
.lightbox__bar {
  display: flex; align-items: center; gap: .15rem; padding: .3rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / .8);
}
.lightbox__btn {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lightbox__btn svg { width: 1.35rem; height: 1.35rem; }
.lightbox__btn:hover { background: rgb(255 255 255 / .15); }
.lightbox__btn--close:hover { background: var(--c-accent); color: var(--c-on-accent); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lightbox__btn[hidden], .lightbox__sep[hidden], .lightbox__count[hidden] { display: none; }
.lightbox__count { min-width: 4.25rem; text-align: center; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.lightbox__sep { width: 1px; height: 1.6rem; margin: 0 .3rem; background: rgb(255 255 255 / .22); }
body.no-scroll { overflow: hidden; }

/* ============================================================ fallbacks & preferences */
/* Browsers without blur: use nearly solid panels so text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-light: rgb(var(--c-light-rgb) / .94);
    --glass-light-strong: rgb(var(--c-light-rgb) / .97);
    --glass-dark: rgb(var(--c-dark-rgb) / .86);
    --glass-dark-strong: rgb(var(--c-dark-rgb) / .95);
  }
}
/* Visitors who ask for less transparency or more contrast get solid surfaces. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root {
    --glass-light: var(--c-light);
    --glass-light-strong: var(--c-light);
    --glass-dark: var(--c-dark);
    --glass-dark-strong: var(--c-dark);
    --blur: none;
  }
  body::before { background: var(--c-light); }
  .mainbar::before, .nav__sub, .nav { background: var(--c-menu-bg) !important; }
  .feature, .card, .logos li { border-color: rgb(var(--c-dark-rgb) / .25); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .feature:hover, .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .cookie, .carousel__nav, .skip { display: none !important; }
  main { margin-top: 0; }
  .page-head, .hero { background: none; color: #000; }
  body::before { display: none; }
}
