/* =========================================================================
   Component styles (one section per component, in alphabetical order).
   Uses the tokens from site.css.
   ========================================================================= */

/* ---- Breadcrumbs ---------------------------------------------------------- */
.crumbs { margin-bottom: 1.5rem; font-size: 0.85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.section--dark .crumbs a { color: var(--dark-text); }
.section--dark .crumbs [aria-current] { color: #fff; }
.section--dark .crumbs li:not(:last-child)::after { color: rgba(255, 255, 255, 0.3); }

/* ---- Client logos --------------------------------------------------------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logos li {
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  aspect-ratio: 3 / 2;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos li:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }

/* ---- Carousel (home news) ---------------------------------------------------
   3 cards on desktop, 2 on tablet, 1 (+ a peek of the next) on phones. Swipe works natively. */
.carousel__controls { display: flex; align-items: center; gap: 0.5rem; }
.carousel__controls .btn { margin-right: 0.5rem; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.carousel__btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.carousel__btn .carousel__play, .carousel__btn[aria-pressed='true'] .carousel__pause { display: none; }
.carousel__btn[aria-pressed='true'] .carousel__play { display: block; }
.carousel__track {
  --carousel-gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--carousel-gap)) / 3);
  gap: var(--carousel-gap);
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; display: flex; }
.carousel__slide > .card { flex: 1; }
.carousel [data-reveal] { opacity: 1; transform: none; }
@media (max-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - var(--carousel-gap)) / 2); } }
@media (max-width: 640px) {
  .carousel__track { grid-auto-columns: 85%; }
  .carousel__controls .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { padding-block: var(--section); }
.cta-band__box {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: var(--radius-l);
  background: radial-gradient(circle at 100% 0%, rgb(var(--accent-rgb) / 0.55), transparent 55%), var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__box::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  z-index: -1;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--brand-blue) 0 33%, var(--brand-red) 33% 66%, var(--brand-green) 66%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.18;
}
@media (min-width: 900px) { .cta-band__box { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { margin: 0; max-width: 56ch; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 2rem; font-size: 0.95rem; }
.site-footer a:not(.btn) { color: var(--dark-text); text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; align-items: start; } }
.site-footer__logo { display: inline-block; color: #fff; }
.site-footer__logo svg { width: 140px; height: auto; }
.site-footer__tagline {
  margin: 1.25rem 0 1.5rem;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: #fff;
}
.social { display: flex; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.site-footer .social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-footer .social a:hover, .site-footer .social a:focus-visible { transform: translateY(-2px); text-decoration: none; color: #fff; }
.social .social--youtube:hover { background: #ff0000; box-shadow: 0 8px 20px -8px rgba(255, 0, 0, 0.7); }
.social .social--linkedin:hover { background: #0a66c2; box-shadow: 0 8px 20px -8px rgba(10, 102, 194, 0.8); }
.site-footer__title {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__newsletter p { max-width: 52ch; }
.site-footer__cols { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 700px) { .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__mail { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.addresses, .links, .legal { margin: 0; padding: 0; list-style: none; }
.addresses { display: grid; gap: 1rem; }
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer address strong { color: #fff; font-weight: 600; }
.links { display: grid; gap: 0.55rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.85rem;
}
.site-footer__bottom p { margin: 0; }
.legal { display: flex; gap: 1.5rem; }

/* Newsletter form on dark background */
.newsletter { gap: 0.9rem; max-width: 520px; }
.newsletter label, .newsletter .check { color: var(--dark-text); }
.newsletter .field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---- Forms (Blazor validation output) ------------------------------------- */
.validation-message { font-size: 0.82rem; color: var(--error); font-weight: 500; }
.section--dark .validation-message, .site-footer .validation-message { color: #ff9b91; }
.field .invalid, .check .invalid { border-color: var(--error) !important; outline-color: var(--error); }
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.form-card__title { margin-bottom: 1rem; font-size: var(--step-1); }

/* ---- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
/* Frosted background on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile panel and mega menu inside the header box. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 18, 32, 0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.site-header__logo { display: block; color: var(--brand-black); flex: none; }
/* Logo keeps its colours on hover (no blue link colour) */
.site-header__logo:hover, .site-header__logo:focus-visible { color: var(--brand-black); }
.site-header__logo svg { width: 118px; height: auto; }
.nav__toggle { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav__panel { display: flex; align-items: center; gap: 1.25rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav__link:hover, .nav__link[aria-expanded='true'] { background: var(--surface-2); color: var(--ink); }
.nav__link[aria-current='page'], .nav__link.is-active { color: var(--accent-text); }
.nav__link .icon-chevron { transition: transform 0.2s var(--ease); }
.nav__link[aria-expanded='true'] .icon-chevron { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 290px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu a { display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.menu a:hover, .menu a[aria-current='page'] { background: var(--surface-2); }
.menu__label { font-weight: 600; font-size: 0.93rem; }
.menu__desc { font-size: 0.82rem; color: var(--muted); }
.menu__label { display: inline-flex; align-items: center; gap: 0.4rem; }
.menu__label .icon-external { color: var(--muted); }
.menu__badge {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.menu--mega { position: fixed; top: calc(var(--header-h) - 4px); left: 50%; width: min(1100px, calc(100vw - 2 * var(--gutter))); padding: 0; }
.mega { display: grid; grid-template-columns: 260px 1fr; }
.mega__intro { padding: 1.75rem; background: var(--dark-bg); color: var(--dark-text); border-radius: var(--radius) 0 0 var(--radius); }
.mega__title { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: #fff; }
.mega__text { font-size: 0.9rem; margin-bottom: 1.25rem; }
.mega__intro .btn { color: #fff; white-space: nowrap; }
.mega__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.5rem; padding: 1.5rem; }
.mega__group-title {
  margin: 0 0 0.35rem;
  padding: 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__group a { padding: 0.4rem 0.8rem; font-size: 0.92rem; font-weight: 500; }
@media (min-width: 1100px) and (max-width: 1240px) { .mega__groups { grid-template-columns: repeat(2, 1fr); } }

/* Mobile / tablet (keep in sync with `desktop` in wwwroot/js/site.js) */
@media (max-width: 1099px) {
  .nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -0.5rem;
    border: 0;
    border-radius: var(--radius-s);
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .nav__toggle .icon-close, .nav__toggle[aria-expanded='true'] .icon-menu { display: none; }
  .nav__toggle[aria-expanded='true'] .icon-close { display: block; }
  .nav__panel {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem var(--gutter) 2rem;
    background: var(--surface);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav__panel.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.05rem; border-radius: 0; }
  .nav__link:hover, .nav__link[aria-expanded='true'] { background: none; }
  .menu, .menu--mega {
    position: static;
    width: auto;
    min-width: 0;
    padding: 0 0 0.75rem;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .menu.is-open { display: block; transform: none; }
  .mega { grid-template-columns: 1fr; }
  .mega__intro { display: none; }
  .mega__groups { grid-template-columns: 1fr; padding: 0; gap: 1rem; }
  .nav__cta { width: 100%; }
}

/* ---- News card / product card --------------------------------------------- */
.clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .yt, .video-card .yt { border-radius: 0; }
.product-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.85), rgba(11, 18, 32, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.08) 31px 32px);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}

/* ---- Page hero ------------------------------------------------------------ */
.page-hero { padding-block: clamp(2rem, 1.6rem + 1.8vw, 3.5rem); overflow: hidden; }
.page-hero__inner { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (min-width: 900px) { .page-hero.has-image .page-hero__inner { grid-template-columns: 1.05fr 0.95fr; } }
.page-hero h1 { font-size: var(--step-5); margin-bottom: 0.35em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
/* Cover pictures (inner pages + home hero): rounded image floating on an offset blue gradient plate. */
.page-hero__media,
.hero__media {
  --cover-offset: clamp(10px, 0.5rem + 1vw, 22px);
  --cover-radius: 24px;
  position: relative;
  isolation: isolate;
  margin: 0 var(--cover-offset) var(--cover-offset) 0;
}
.page-hero__media::before,
.hero__media::before {
  content: '';
  position: absolute;
  inset: var(--cover-offset) calc(-1 * var(--cover-offset)) calc(-1 * var(--cover-offset)) var(--cover-offset);
  z-index: -1;
  border-radius: var(--cover-radius);
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.75), rgb(var(--accent-rgb) / 0.12) 70%);
}
.page-hero__media picture,
.hero__media picture { display: block; overflow: hidden; border-radius: var(--cover-radius); box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.6); }
.page-hero__media img,
.hero__media img {
  display: block;
  width: 100%;
  border-radius: var(--cover-radius);
  transition: transform 1.2s var(--ease);
}
.page-hero__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero__media:hover img,
.hero__media:hover img { transform: scale(1.03); }

/* ---- YouTube (click to load) ---------------------------------------------- */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark-bg); border-radius: var(--radius); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 18, 32, 0.55));
  cursor: pointer;
}
.yt__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}
.yt__play:hover .yt__icon, .yt__play:focus-visible .yt__icon { transform: scale(1.08); }
.yt__note { position: absolute; left: 0.75rem; bottom: 0.5rem; margin: 0; font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); pointer-events: none; }

/* =========================================================================
   Page-specific styles
   ========================================================================= */

/* ---- Article (news post) -------------------------------------------------- */
.article-head { padding-block: clamp(2rem, 1.6rem + 1.8vw, 3.5rem) clamp(4rem, 3.5rem + 3vw, 6rem); }
.article-head h1 { font-size: var(--step-4); }
.article-body { padding-bottom: var(--section); }
.article-media { margin-top: calc(-1 * clamp(3rem, 2.5rem + 2.5vw, 4.5rem)); margin-bottom: 2rem; }
.article-media img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 2.5rem; }
.article-gallery figure, .gallery figure, .video { margin: 0; }
.article-gallery img, .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: 0; }
figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.back { margin-top: 3rem; }
.flip { transform: rotate(180deg); }

/* ---- Careers -------------------------------------------------------------- */
.careers__media img { width: 100%; border-radius: var(--radius-l); }
.positions { margin: 0 0 3rem; padding: 0; list-style: none; }
.positions li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.positions h2 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.positions__meta { color: var(--accent-text); font-weight: 600; font-size: 0.9rem; }

/* ---- Contact page --------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.4fr 1fr; } }
.info-block + .info-block { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.mail { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.contact .mail { font-size: var(--step-1); }
.offices, .follow { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.offices li { display: flex; gap: 0.75rem; }
.offices .icon { flex: none; margin-top: 0.2rem; color: var(--brand-red); }
.offices address { font-style: normal; line-height: 1.55; }
.offices address strong { color: var(--ink); }
.follow { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.follow a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.follow a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-s); color: var(--ink); }
.follow .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; color: #fff; }
.follow .icon-youtube { background: #ff0000; }
.follow .icon-linkedin { background: #0a66c2; }

/* ---- Content page --------------------------------------------------------- */
.updated { font-size: 0.9rem; color: var(--muted); }
.page-prose { margin-inline: auto; }

/* ---- Downloads ------------------------------------------------------------ */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.doc__cover { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.25rem; background: var(--surface-2); color: var(--brand-red); }
.doc__cover img { max-height: 100%; width: auto; object-fit: contain; box-shadow: var(--shadow); }
.doc__cover picture { display: contents; }
.doc__title { margin: 0; font-size: var(--step-1); }
.doc__title a { color: var(--ink); text-decoration: none; }

/* ---- Home ----------------------------------------------------------------- */
.hero { padding-block: clamp(2.25rem, 1.75rem + 2.5vw, 4rem) 0; overflow: hidden; }
.hero__inner { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 2rem; }
/* Home hero: software visual (app window built from real screenshots) */
.app-visual { position: relative; margin: 1.5rem 0 2.5rem; isolation: isolate; }
.app-visual::before {
  content: '';
  position: absolute;
  inset: -10% -6% -14% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 60% 45%, rgb(var(--accent-rgb) / 0.45), transparent 65%);
  filter: blur(30px);
}
.app-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.app-window__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 36px;
  padding: 0 0.9rem;
  background: #eef1f6;
  border-bottom: 1px solid var(--line);
}
.app-window__title { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.app-window img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.app-panel {
  position: absolute;
  left: -6%;
  bottom: -14%;
  width: 52%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
/* Zoomed crop of the screenshot (shows the result table); adjust translate to show another area */
.app-panel { aspect-ratio: 16 / 8; }
.app-panel picture { display: block; height: 100%; }
.app-panel img { display: block; width: 160%; max-width: none; height: auto; transform: translate(-5%, -30%); }
.app-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgb(var(--accent-rgb) / 0.9);
}
.app-chip--1 { top: -16px; right: 6%; }
.app-chip--2 { right: -2%; bottom: 8%; background: #fff; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.app-chip--2 .icon { color: var(--brand-green); }
/* Gentle but visible motion: window drifts slowly, panel and tags float on their own rhythm. */
@media (prefers-reduced-motion: no-preference) {
  .app-window { animation: drift 14s ease-in-out infinite; }
  .app-panel { animation: float-panel 10s ease-in-out infinite; }
  .app-chip--1 { animation: float-chip 7s ease-in-out infinite 0.6s; }
  .app-chip--2 { animation: float-chip 8.5s ease-in-out infinite 1.4s; }
}
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -10px); } }
@keyframes float-panel { 0%, 100% { transform: translate(0, 0) rotate(-1deg); } 50% { transform: translate(10px, -20px) rotate(0.5deg); } }
@keyframes float-chip { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.04); } }
@media (max-width: 640px) {
  .app-panel { left: -2%; width: 60%; bottom: -10%; }
  .app-chip { font-size: 0.7rem; padding: 0.4rem 0.7rem; }
  .app-chip--1 { top: -30px; right: 0; }
  .app-chip--2 { right: 0; }
  .app-visual { margin-top: 2.25rem; }
}

.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0; border-top: 1px solid var(--dark-line); }
.hero__stats div { display: flex; flex-direction: column; padding: 1.25rem 1rem 1.5rem 0; }
.hero__stats div + div { padding-left: clamp(1rem, 0.5rem + 2vw, 2rem); border-left: 1px solid var(--dark-line); }
/* Number first visually, label first in the HTML (dt before dd) */
.hero__stats dd {
  order: -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(90deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats dt { display: grid; gap: 0.2rem; margin-top: 0.6rem; font-size: 0.88rem; }
.hero__stats dt strong { color: #fff; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 600px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--dark-line); }
  .hero__stats div { flex-direction: row; align-items: baseline; gap: 1rem; padding: 1rem 0; }
  .hero__stats dd { min-width: 3.2ch; }
}
.intro__media img { width: 100%; height: auto; }
.platforms { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 800px) { .platforms { grid-template-columns: 1fr 1fr; } }
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  border-radius: var(--radius-l);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.platform img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.platform::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 32, 0.05) 20%, rgba(11, 18, 32, 0.92) 85%); }
.platform:hover img { transform: scale(1.04); }
.platform__body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.platform h3 { color: #fff; font-size: var(--step-3); }
.platform p { max-width: 46ch; color: rgba(255, 255, 255, 0.85); }
.platform .link-arrow { color: #fff; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.catalog__group {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.catalog__group:nth-child(3n + 2) { border-top-color: var(--brand-red); }
.catalog__group:nth-child(3n + 3) { border-top-color: var(--brand-green); }
.catalog__group h3 { font-size: var(--step-1); }
.catalog__group p { font-size: 0.93rem; color: var(--muted); }
.catalog__group ul { margin: 0; padding: 0; list-style: none; }
.catalog__group a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.catalog__group a:hover { color: var(--accent-text); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.values li { padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.values__num { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 700; color: var(--accent-text); }
.values h3 { font-size: var(--step-1); }
.values p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.characteristics { display: grid; gap: 2rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 900px) { .characteristics { grid-template-columns: 0.8fr 1.2fr; } }
.checklist { display: grid; gap: 0.25rem 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.checklist .icon { flex: none; margin-top: 0.2rem; color: var(--brand-green); }
.home-contact { align-items: start; }

/* ---- Not found ------------------------------------------------------------ */
.notfound { min-height: 60vh; display: grid; align-items: center; }
.quick { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }

/* ---- Product page --------------------------------------------------------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.highlight { padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--surface); }
.highlight__num { display: block; margin-bottom: 0.75rem; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--accent-text); }
.highlight__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.highlight p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.product-body { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .product-body:has(.toc) { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 2rem); } }
.toc__title { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 1023px) {
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; }
  .toc a { margin: 0; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }
}
/* Structure diagram (tree: root → branches → items) */
.structure { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .structure--with-image { grid-template-columns: 1.15fr 0.85fr; } }
.structure__media img { width: 100%; height: auto; }
.tree { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.tree__root {
  display: grid;
  place-items: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: var(--dark-bg);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tree__root span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.tree__branches { display: grid; gap: 1rem; margin: 0; padding: 0 0 0 2rem; list-style: none; position: relative; }
.tree__branch { position: relative; display: grid; grid-template-columns: minmax(9rem, 11rem) 1fr; gap: 0 1.25rem; align-items: center; }
/* Connector lines */
.tree__branches::before { content: ''; position: absolute; left: 1rem; top: 1.4rem; bottom: 1.4rem; border-left: 2px solid var(--accent); }
.tree__branches::after { content: ''; position: absolute; left: 0; top: 50%; width: 1rem; border-top: 2px solid var(--accent); }
.tree__branch::before { content: ''; position: absolute; left: -1rem; top: 50%; width: 1rem; border-top: 2px solid var(--accent); }
.tree__node {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.tree__items { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.tree__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-s);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
a.tree__item { color: var(--accent-text); }
a.tree__item:hover { border-color: var(--accent); color: var(--accent-text-hover); }
@media (max-width: 640px) {
  .tree { grid-template-columns: 1fr; gap: 1rem; }
  .tree__root span { writing-mode: horizontal-tb; transform: none; }
  .tree__branches { padding-left: 1.25rem; }
  .tree__branches::before { left: 0.25rem; top: 0; }
  .tree__branches::after { display: none; }
  .tree__branch { grid-template-columns: 1fr; gap: 0.5rem; }
  .tree__branch::before { left: -1rem; top: 1.3rem; width: 1rem; }
}

/* Vector diagrams inside Markdown text */
.prose img.diagram, img[src$='.svg'] { border: 0 !important; box-shadow: none !important; background: none !important; border-radius: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.downloads a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.downloads a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.downloads span { display: grid; flex: 1; }
.downloads small { color: var(--muted); }
.downloads .icon-file { color: var(--brand-red); }
.downloads .icon-download { color: var(--accent); }

/* ---- Software overview ---------------------------------------------------- */
.jump {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.jump ul { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.jump a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.jump a:hover { border-color: var(--accent); color: var(--accent-text); }
.covers { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; padding: 0; list-style: none; }

/* ---- Team ----------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: clamp(1.25rem, 1rem + 1vw, 2rem); margin: 0; padding: 0; list-style: none; }

/* ---- Tutorials ------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.filters button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.video-card__title { margin: 0; font-size: var(--step-1); }
.gallery-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.gallery-tools .filters { margin: 0; }
.gallery-search { min-width: min(100%, 18rem); }
.gallery-search input { width: 100%; min-height: 44px; padding: 0.6rem 0.9rem; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.gallery-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.15); }
.gallery-count { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 600; text-decoration: underline; cursor: pointer; }
.news-card__title { margin: 0; font-size: var(--step-1); }
.news-card__title a, .card__body h3 a { color: var(--ink); text-decoration: none; }

/* Images inside cards/pictures fill their box */
.card__media picture, .person__photo picture, .platform picture { display: contents; }

/* ---- Notice on the home page for visitors sent back from a free tool ---------- */
.tool-notice { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.tool-notice__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.tool-notice p { margin: 0; color: var(--ink); }

/* ---- Diagrams (SVG) in articles: use the full width of the content column; click opens a zoom view --------- */
.prose:has(.diagram-zoom) { max-width: none; }
.prose:has(.diagram-zoom) > :not(:has(.diagram-zoom)):not(.feature-cols) { max-width: 72ch; }
.diagram-zoom { display: block; width: 100%; margin: 2rem 0; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.diagram-zoom::after {
  content: 'Click to enlarge'; position: absolute; right: 0.5rem; bottom: 0.5rem; padding: 0.25rem 0.65rem;
  border-radius: 999px; background: rgba(11, 18, 32, 0.78); color: #fff; font-size: 0.75rem; line-height: 1.4; pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
}
.diagram-zoom:hover::after, .diagram-zoom:focus-visible::after { opacity: 1; }
.diagram-zoom:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.prose img.diagram { display: block; width: 100%; max-width: none; height: auto; margin: 0 auto; }

/* The PIM network graphic is a compact illustration: keep it at its original, smaller size (still click to enlarge). */
.diagram-zoom:has(img[src*='pim-network']) { max-width: 360px; margin-inline: 0; }

/* ---- "Main features": two columns on wide screens (less scrolling) ------------------------------------------ */
.prose:has(.feature-cols) { max-width: none; }
.prose:has(.feature-cols) > :not(.feature-cols):not(:has(.diagram-zoom)) { max-width: 72ch; }
.prose .feature-cols { display: grid; gap: 0 4rem; max-width: none; }
@media (min-width: 760px) { .feature-cols { grid-template-columns: 1fr 1fr; } }
.feature-col { margin-bottom: 0.25rem; }
.feature-col h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.feature-stack:first-child > .feature-col:first-child h3, .feature-stack:last-child > .feature-col:first-child h3 { margin-top: 0; }
/* PIM page: on wide screens the network graphic sits on the right of the text so the page is balanced. */
@media (min-width: 960px) {
  .diagram-zoom:has(img[src*='pim-network']) { float: right; width: 400px; max-width: 38%; margin: 0.5rem 0 1.5rem 3rem; }
  .prose:has(img[src*='pim-network']) .feature-cols, .prose:has(img[src*='pim-network']) h2 { clear: both; }
}

/* ---- Enlarged picture: the picture centred on a dark background; a click anywhere closes it ------------------ */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.zoom-dialog {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 1.5rem; border: 0;
  background: rgba(11, 18, 32, 0.92); cursor: zoom-out; overflow: hidden;
  align-items: center; justify-content: center;
}
.zoom-dialog[open] { display: flex; }
.zoom-dialog::backdrop { background: rgba(11, 18, 32, 0.92); }
.zoom-dialog img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  background: #fff !important; border: 0 !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-l) !important; margin: 0 !important;
}

/* ---- Pages with imageLayout: thumbs – a picture stays right next to the text it belongs to, but small -------- */
.prose--thumbs .with-pic { margin: 1rem 0 1.5rem; }
.prose--thumbs .with-pic > p:has(> picture) img, .prose--thumbs .with-pic .pic-row img {
  display: block; width: 100%; height: auto; margin: 0; padding: 0.35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s);
}
.prose--thumbs .with-pic > p:has(> picture), .prose--thumbs .with-pic .pic-row > p { margin: 0; }
.prose--thumbs .with-pic .pic-row { display: grid; gap: 0.6rem; }
.prose--thumbs .with-pic > :first-child { margin-top: 0; }
.prose--thumbs .with-pic > :first-child > :last-child { margin-bottom: 0; }
@media (min-width: 700px) {
  .prose--thumbs .with-pic { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 1.5rem; align-items: start; }
  .prose--thumbs .with-pic > :first-child { grid-column: 1; }
  .prose--thumbs .with-pic > :last-child { grid-column: 2; grid-row: 1; }
}
@media (max-width: 699px) { .prose--thumbs .with-pic > :last-child { max-width: 16rem; margin-top: 0.75rem; } }
/* Two pictures that belong to one sentence: side by side, so they stay about as tall as the text. */
.prose--thumbs .with-pic .pic-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.prose--thumbs .with-pic .pic-row img { aspect-ratio: 1 / 1; object-fit: contain; }
@media (min-width: 700px) { .prose--thumbs .with-pic:has(.pic-row) { grid-template-columns: minmax(0, 1fr) 17.5rem; } }
/* A single photo that is not a screenshot (e.g. I-COILS): a little larger beside its text. */
@media (min-width: 700px) { .prose--thumbs-large .with-pic { grid-template-columns: minmax(0, 1fr) 22rem; } }
.prose--thumbs-large .with-pic > p:has(> picture) img, .prose--thumbs-large .with-pic .pic-row img { padding: 0; background: none; border: 0; box-shadow: none; border-radius: var(--radius); }

/* ---- Product pages without an "On this page" menu: text left, gallery right (balanced on wide screens) ------- */
@media (min-width: 1024px) {
  .product-body:not(:has(.toc)):has(.product-aside) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .product-body:not(:has(.toc)):has(.product-aside) .prose { max-width: none; }
  .product-aside .gallery { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Heading above the highlight cards (e.g. "Benefits") */
.highlights__title { margin: 0 0 1.25rem; font-size: var(--step-3); }

/* A table whose cells are pictures (About page: the two teams side by side): headings above, pictures below, no table borders. */
.prose table:has(picture) { display: table; width: calc(100% + 1.8rem); margin: 2rem 0 2rem -0.9rem; table-layout: fixed; border: 0; border-collapse: separate; border-spacing: 0.9rem 0; background: none; }
.prose table:has(picture) thead, .prose table:has(picture) tr { background: none; }
.prose table:has(picture) th { padding: 0 0 0.75rem; border: 0; background: none; text-align: left; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); font-weight: 700; }
.prose table:has(picture) td { padding: 0; border: 0; vertical-align: top; }
.prose table:has(picture) img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 47%; margin: 0; }
@media (max-width: 640px) { .prose table:has(picture) th { font-size: var(--step-0); } }

/* ---- layout: split-sections – every section is a row: text on one side, its picture on the other (alternating) -- */
.prose--split { max-width: none; }
.split-row { display: grid; gap: 1.5rem 4rem; align-items: center; margin: 0 0 3.5rem; }
.split-row:last-child { margin-bottom: 0; }
.split-row__text > h2 { margin-top: 0; }
.split-row__text p { max-width: 60ch; }
.split-row__media p { margin: 0; }
.split-row__media img { display: block; width: 100%; height: auto; margin: 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius-l); box-shadow: var(--shadow); border: 0; }
@media (min-width: 900px) {
  .split-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-row:nth-of-type(even) .split-row__media { order: -1; }
}

/* Very wide cover picture: shown whole (not cropped to 4:3) */
.page-hero__media.is-wide img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* layout: left – the text column starts at the left edge of the page (same edge as the page title), not centred */
.page-prose.prose--left { margin-inline: 0; }
/* Text-only sections that follow each other: side by side in columns. Text that comes before the first section stays a normal reading column. */
.prose--split > p, .prose--split > ul { max-width: 72ch; }
.prose--split > p:last-of-type { margin-bottom: 2.5rem; }
.split-cols { display: grid; gap: 0 4rem; margin: 0 0 3.5rem; }
.split-cols > div > h2 { margin-top: 0; }
@media (min-width: 900px) { .split-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* layout: split-right – text on the left, a small picture always on the right; text-only sections stay under each other */
.prose--split-right .split-row { gap: 1.5rem 3rem; align-items: start; margin-bottom: 2.5rem; }
.prose--split-right .split-row__media img { aspect-ratio: 3 / 2; }
.prose--split-right .split-cols { display: block; margin: 0; }
.prose--split-right .split-cols > div { max-width: 72ch; margin-bottom: 2.5rem; }
@media (min-width: 900px) {
  .prose--split-right .split-row { grid-template-columns: minmax(0, 1fr) 20rem; }
  .prose--split-right .split-row:nth-of-type(even) .split-row__media { order: 0; }
  .prose--split-right .split-row__text { max-width: 60ch; }
}

/* ---- Team page: departments as labelled blocks of cards ------------------------------------------------------ */
.team-rows { display: grid; gap: 3rem; }
.team-row { display: grid; gap: 3rem; }
@media (min-width: 900px) { .team-row--duo { grid-template-columns: 1fr 1fr; } }
.team-group { --tone: var(--brand-blue); }
.team-group--engineering { --tone: var(--brand-green); }
.team-group--technical { --tone: var(--dark-bg); }
.team-group__head { display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--tone); font-size: var(--step-2); }
.team-group__head span { color: var(--ink); }
.team-group__head small { padding: 0.1rem 0.6rem; border-radius: 999px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--tone); }
.people--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.team-row:not(.team-row--duo) .people--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }
.person { --tone: var(--brand-blue); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: box-shadow 0.2s, transform 0.2s; }
.person--engineering { --tone: var(--brand-green); }
.person--technical { --tone: var(--dark-bg); }
.person:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-3); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.6s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__body { padding: 0.9rem 1rem 1.1rem; border-top: 3px solid var(--tone); }
.person h3 { margin: 0 0 0.15rem; font-size: 1.02rem; line-height: 1.3; }
.person p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }

/* Logo wall in the original logo colours (References page) */
.logos--color img { filter: none; opacity: 1; }
/* References: every logo in its own equal tile (no grid lines), separated by space and a soft shadow */
.logos--color { gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); border: 0; }
.logos--color li { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 4px 14px -6px rgba(11, 18, 32, 0.18); aspect-ratio: 5 / 3; padding: 0.55rem 0.6rem; transition: box-shadow 0.2s, transform 0.2s; }
.logos--color li:hover { box-shadow: 0 2px 4px rgba(11, 18, 32, 0.08), 0 12px 24px -10px rgba(11, 18, 32, 0.28); transform: translateY(-2px); }
.logos--color a { display: grid; place-items: center; }
.logos--color picture { display: grid; place-items: center; width: 100%; }
.logos--color img { max-height: 4rem; max-width: 100%; margin: auto; }

/* Enlarged chart: scrollable, wide enough to read (a phone scrolls sideways or pinches) */
.zoom-dialog.zoom-dialog--chart { overflow: auto; padding: 0.75rem; }
.zoom-dialog.zoom-dialog--chart[open] { display: block; }
.zoom-dialog--chart img { width: max(100%, 1100px); max-width: none; max-height: none; height: auto; }
.zoom-dialog__hint { position: sticky; left: 0; top: 0; z-index: 1; display: inline-block; margin: 0 0 0.6rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; color: #fff; background: rgba(255, 255, 255, 0.16); }
