/* All fonts are served from this site (no outside font services, so no visitor data leaves the site).
   Switzer: ITF Free Font License, self-hosting permitted (fonts/switzer/FFL.txt), official files unmodified.
   Inter: SIL Open Font License (fonts/inter/OFL.txt). */
@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer/Switzer-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer/Switzer-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'CC Accidenz Commons';
  src: url('fonts/CCAccidenzCommons-medium-cz.otf?v=4') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CC Accidenz Commons';
  src: url('fonts/CCAccidenzCommons-medium-cz.otf?v=4') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-brand: #AE1E2B;
  --color-brand-dark: #8E1823;
  --color-brand-tint: #F6E8EA;
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-ink: #111111;
  --color-body: #33333A;
  --color-muted: #75757C;
  --color-border: #E3E3E0;
  --radius: 2px;
  --max-width: 1160px;
  --font-family: "CC Accidenz Commons", "Akzidenz-Grotesk", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  /* Card corners: 3% of the card's own width (vertical % adjusted for the 429:480 shape),
     so a card looks the same at every size. Photos and panels in the same frame match. */
  --card-radius: 3% / 2.68%;
  --header-h: 52px;
  --panel: #F4F4F3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-cinematic), transform 800ms var(--ease-cinematic);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-cinematic), transform 800ms var(--ease-cinematic);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .main-nav-center a,
  .header-right a.quote-pill,
  .lang-switch {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-body);
  background-color: #FFFFFF;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Full-width bar — no max-width cap, so it never drifts toward center on wide screens */

.bar-container {
  padding: 0 clamp(56px, 4vw, 88px);
}

h1, h2, h3, h4 {
  font-family: var(--font-family);
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

p {
  color: var(--color-body);
  margin: 0 0 16px;
}

a {
  color: var(--color-brand);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: none;
  border-bottom: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 30px;
  width: auto;
  margin-left: -6px;
}

/* Header v2 — compact, centered nav, icon badge */

.header-inner-v2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav-center {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-nav-center a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 150ms ease;
  animation: nav-in 600ms var(--ease-cinematic) both;
}

.main-nav-center a:hover {
  color: var(--color-brand);
}

.main-nav-center a:nth-child(1) { animation-delay: 100ms; }
.main-nav-center a:nth-child(2) { animation-delay: 180ms; }
.main-nav-center a:nth-child(3) { animation-delay: 260ms; }
.main-nav-center a:nth-child(4) { animation-delay: 340ms; }
.main-nav-center a:nth-child(5) { animation-delay: 420ms; }

.header-right {
  grid-column: 3;
  justify-self: end;
}

.header-right a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.header-right a:hover {
  color: var(--color-brand);
}

.header-right a.quote-pill {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 150ms ease, transform 160ms var(--ease-out);
  animation: nav-in 600ms var(--ease-cinematic) both;
  animation-delay: 500ms;
}

.header-right a.quote-pill:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.header-right a.quote-pill:active {
  transform: scale(0.96);
}

/* Language switch (EN / DE) in the header corner. Equal side columns keep the
   page links centred on the page although the right side is now wider. */
.header-inner-v2 {
  grid-template-columns: 1fr auto 1fr;
}

.header-left {
  justify-self: start;
}

.header-right {
  display: flex;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 22px;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  color: var(--color-muted);
  animation: nav-in 600ms var(--ease-cinematic) both;
  animation-delay: 460ms;
}

.header-right .lang-switch a {
  color: var(--color-muted);
  font-weight: 500;
}

.header-right .lang-switch a[aria-current] {
  color: var(--color-ink);
}

.header-right .lang-switch a:hover {
  color: var(--color-brand);
}

@media (max-width: 720px) {
  .header-inner-v2 { grid-template-columns: auto auto; }
  .main-nav-center { display: none; }
}

.hero-logo-mark {
  position: absolute;
  top: 50%;
  right: clamp(40px, 6vw, 140px);
  transform: translate3d(var(--scroll-x, 0px), calc(-50% + var(--scroll-y, 0px)), 0) scale(var(--scroll-scale, 1));
  filter: blur(var(--scroll-blur, 0px));
  opacity: var(--scroll-opacity, 1);
  z-index: 1;
  width: min(27.5vw, 372px);
  height: auto;
  display: block;
  pointer-events: none;
  will-change: transform, filter, opacity;
}

.hero-logo-mark.is-entering {
  transition: filter 2.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-mark {
    transform: translateY(-50%) scale(1);
    filter: none;
    opacity: 1;
  }
}

/* About Us teaser */

.about-statement {
  background: #FFFFFF;
  padding: clamp(56px, 8vw, 120px) 0;
}

.about-statement-text {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.12rem, 2.08vw, 1.68rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-align: center;
  max-width: 62ch;
  margin: 0 auto;
}

.systems-track-wrap {
  position: relative;
}

.systems-track-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.systems-track-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.systems-track-scroll::-webkit-scrollbar {
  display: none;
}

.systems-track {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  padding: 0 clamp(40px, 4vw, 88px);
  width: max-content;
}

.systems-arrow {
  position: absolute;
  right: clamp(8px, 2vw, 32px);
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  color: var(--color-ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 160ms var(--ease-out);
}

.systems-arrow:hover {
  background: var(--color-ink);
  color: #fff;
}

.systems-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.systems-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.systems-dot {
  height: 6px;
  width: 10px;
  border-radius: 999px;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, transform 120ms var(--ease-out);
}

.systems-dot:active {
  transform: scale(0.85);
}

.systems-dot.is-active {
  width: 28px;
  background: var(--color-brand);
}

/* Metric cards — glass panels for Warming Systems / Precision Control / Clinical & Regulatory */

.metric-card {
  container-type: inline-size;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  aspect-ratio: 429 / 480;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--card-radius);
  background-origin: border-box;
  color: #fff;
  box-shadow: 0 2px 4px rgba(20, 4, 8, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  --u: calc(100cqw / 429);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.12), transparent 30%, rgba(255, 255, 255, 0.06) 62%, transparent 88%),
    radial-gradient(ellipse 90% 22% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 78%);
}

.metric-card--speed {
  background:
    radial-gradient(ellipse 70% 40% at 15% 0%, rgba(255, 255, 255, 0.16), transparent 72%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(0, 0, 0, 0.22), transparent 76%),
    linear-gradient(165deg, #c23244 0%, #ae1e2b 42%, #7c1420 100%);
  background-origin: border-box;
}

.metric-card--control {
  background:
    radial-gradient(ellipse 70% 35% at 100% 0%, rgba(255, 255, 255, 0.13), transparent 72%),
    radial-gradient(ellipse 65% 45% at 0% 100%, rgba(0, 0, 0, 0.26), transparent 76%),
    linear-gradient(160deg, #7a2b3a 0%, #5c2029 45%, #3a1218 100%);
  background-origin: border-box;
}

.metric-card--regulatory {
  background:
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(255, 255, 255, 0.10), transparent 74%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(174, 30, 43, 0.35), transparent 76%),
    linear-gradient(170deg, #3a1418 0%, #241012 55%, #14090a 100%);
  background-origin: border-box;
}

.metric-card__grain {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  z-index: 3;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.metric-card__title {
  position: absolute;
  z-index: 4;
  top: calc(24 * var(--u));
  left: calc(24 * var(--u));
  width: calc(381 * var(--u));
  margin: 0;
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: max(calc(22 * var(--u)), 13px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.metric-card__title small {
  display: block;
  margin-top: 0.3em;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: max(calc(14 * var(--u)), 11px);
  letter-spacing: 0;
  opacity: 0.78;
}

.metric-card__visual {
  position: absolute;
  z-index: 2;
}

.metric-card__gauge {
  top: calc(72 * var(--u));
  left: calc(52 * var(--u));
  width: calc(325 * var(--u));
  height: calc(190 * var(--u));
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 6;
}

.gauge-arc {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 386;
  stroke-dashoffset: 96;
  transform: rotate(-125deg);
  transform-origin: 100px 100px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.gauge-ticks line {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.4;
}

.metric-card__network {
  top: calc(85 * var(--u));
  left: 0;
  width: 100%;
  height: calc(150 * var(--u));
  opacity: 0.85;
}

.network-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.4;
}

.network-line--dim { stroke: rgba(255, 255, 255, 0.2); }

.network-node {
  fill: #fff;
}

.metric-card__metric {
  position: absolute;
  z-index: 5;
  top: calc(232 * var(--u));
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(6 * var(--u));
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(20, 4, 8, 0.15));
}

.metric-card__scale {
  top: calc(72 * var(--u));
  left: 0;
  width: 100%;
  height: calc(190 * var(--u));
}

.scale-base {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.2;
}

.scale-ticks line {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.4;
}

.scale-tick--accent {
  stroke: #fff;
  stroke-width: 2;
}

.scale-indicator-stem {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.4;
}

.scale-indicator {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.dot-number .dot-svg {
  display: block;
  height: calc(46 * var(--u));
  width: auto;
  fill: currentColor;
}

.metric-card__unit {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: calc(20 * var(--u));
  letter-spacing: -0.01em;
  line-height: 1;
  transform: translateY(calc(-4 * var(--u)));
  opacity: 0.92;
}

.metric-card__badge {
  position: absolute;
  z-index: 5;
  top: calc(246 * var(--u));
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: calc(26 * var(--u));
  letter-spacing: 0.01em;
  color: #fff;
}

/* Wide and raised enough for three-line captions to clear the button */
.metric-card__caption {
  position: absolute;
  z-index: 5;
  top: calc(302 * var(--u));
  left: calc(24 * var(--u));
  width: calc(381 * var(--u));
  margin: 0;
  text-align: center;
  font-family: var(--font-family);
  font-size: max(calc(14 * var(--u)), 11px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.metric-card__cta {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(24 * var(--u));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(38 * var(--u));
  padding: 0 calc(20 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1c1c1c;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: max(calc(12 * var(--u)), 10px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 3px rgba(20, 4, 8, 0.15);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.metric-card__cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 4, 8, 0.22);
}

/* Side section nav — a dot per section on a thin line; labels appear on hover/focus */

.section-nav {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 90;
  transform: translateY(-50%);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.section-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
}

.section-nav__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-nav__list::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.14);
}

.section-nav__fill {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 1;
  width: 1px;
  height: 0;
  transform: translateX(-50%);
  background: var(--color-brand);
  transition: height 300ms var(--ease-out);
}

.section-nav a {
  position: relative;
  z-index: 2;
  display: block;
  width: 20px;
  height: 12px;
}

.section-nav a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out);
}

.section-nav a:hover::before {
  border-color: var(--color-ink);
}

.section-nav a[aria-current="true"]::before {
  border-color: var(--color-brand);
  background: var(--color-brand);
  transform: translate(-50%, -50%) scale(1.3);
}

.section-nav__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.12);
  font-family: var(--font-family);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}

.section-nav a:focus-visible .section-nav__label {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Mouse only: on touch screens a tap would leave the label stuck over the content */
@media (hover: hover) and (pointer: fine) {
  .section-nav a:hover .section-nav__label {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 860px) {
  .section-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-nav,
  .section-nav__fill,
  .section-nav__label {
    transition: none;
  }
}

/* Expertise rail — metric cards in the swipeable rail, reusing the systems rail controls */

.expertise {
  --rail-pad: clamp(56px, 4vw, 88px);
  --rail-gap: clamp(24px, 2.9vw, 48px);
  --rail-cols: 5;
  padding: 0 0 clamp(72px, 9vw, 120px);
  /* The panel opens above the rail; stop the browser shifting the page to keep the rail still. */
  overflow-anchor: none;
}

/* Exactly --rail-cols cards fill the page margins, so the middle of the rail
   lines up with the centred dots and Request a Quote below it. */
.expertise .systems-track-wrap {
  container-type: inline-size;
}

.expertise .systems-track-scroll {
  scroll-padding-inline: var(--rail-pad);
  /* Fade the edges; the outer strip stays clear so the next card never shows as a sliver. */
  --rail-clear: calc(var(--rail-pad) - var(--rail-gap));
  -webkit-mask-image: linear-gradient(90deg, transparent var(--rail-clear), #000 var(--rail-pad), #000 calc(100% - var(--rail-pad)), transparent calc(100% - var(--rail-clear)));
  mask-image: linear-gradient(90deg, transparent var(--rail-clear), #000 var(--rail-pad), #000 calc(100% - var(--rail-pad)), transparent calc(100% - var(--rail-clear)));
}

.expertise-track {
  gap: var(--rail-gap);
  padding: 6px var(--rail-pad) 14px;
}

.expertise-track .metric-card {
  flex: 0 0 auto;
  width: calc((100cqw - 2 * var(--rail-pad) - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
  max-width: none;
  scroll-snap-align: start;
}

@media (min-width: 1680px) {
  .expertise { --rail-cols: 6; }
}

@media (max-width: 1279px) {
  .expertise { --rail-cols: 4; }
}

@media (max-width: 999px) {
  .expertise { --rail-cols: 3; }
}

/* Phones: fixed-width cards with the next one peeking in to invite a swipe. */
@media (max-width: 759px) {
  .expertise {
    --rail-pad: clamp(40px, 4vw, 88px);
  }
  .expertise .systems-track-scroll {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .expertise-track .metric-card {
    width: 210px;
  }
}

/* Clear of the fixed side nav, which sits in the right-hand gutter. */
.expertise .systems-arrow {
  right: 40px;
}

.expertise.is-static .systems-track {
  margin: 0 auto;
}

.expertise.is-static .systems-track-scroll {
  cursor: default;
}

.expertise.is-static .systems-arrow,
.expertise.is-static .systems-dots {
  display: none;
}

/* Expanded card — opens above the rail in the Termi/Nido row layout */

.expertise-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms var(--ease-cinematic);
}

.expertise-detail.is-open {
  grid-template-rows: 1fr;
}

.expertise-detail__inner {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.expertise-detail__row {
  padding: 8px 0 clamp(56px, 7vw, 96px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms var(--ease-out), transform 520ms var(--ease-cinematic);
}

.expertise-detail.is-open .expertise-detail__row {
  opacity: 1;
  transform: none;
}

.expertise-detail__row.is-swapping {
  animation: detail-swap 420ms var(--ease-out);
}

@keyframes detail-swap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.expertise-detail__close {
  position: absolute;
  top: 8px;
  right: clamp(56px, 4vw, 88px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.expertise-detail__close:hover {
  background: var(--color-ink);
  color: #fff;
}

.expertise-detail__close:active {
  transform: scale(0.92);
}

.expertise-track .metric-card.is-selected {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .expertise-detail,
  .expertise-detail__row {
    transition: none;
  }
  .expertise-detail__row.is-swapping {
    animation: none;
  }
}

.expertise-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}

/* Red pill CTA — same treatment as the header's Request a Quote */

.pill-cta {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 150ms ease, transform 160ms var(--ease-out);
}

.pill-cta:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.pill-cta:active {
  transform: scale(0.96);
}

/* Product row — large metric card beside a description + spec sheet (used by the expanded expertise card) */

.product-showcase {
  padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.product-row__card .metric-card {
  width: 100%;
  max-width: none;
}

.product-row__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 clamp(24px, 3vw, 40px);
}

.product-row__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.product-row__cta {
  margin-top: 24px;
}

/* Product detail (Termi / Nido) — sticky gallery beside a scrolling technical column */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}

.pdp + .pdp {
  margin-top: clamp(112px, 14vw, 200px);
}

.pdp--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
}

.pdp--reverse .pdp__media {
  order: 2;
}

.pdp__media {
  position: sticky;
  top: 96px;
}

.pdp-gallery__stage {
  position: relative;
  aspect-ratio: 429 / 480;
}

.pdp-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 350ms var(--ease-out);
}

.pdp-gallery__slide.is-active {
  opacity: 1;
}

.pdp-gallery__slide .metric-card {
  width: 100%;
  max-width: none;
}

/* Product photos dropped in later sit inside the same frame as the cards */
.pdp-gallery__slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--card-radius);
  background: var(--panel);
}

/* Studio photos fill the frame edge to edge */
.pdp-gallery__slide > img.is-cover {
  object-fit: cover;
}

.pdp-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pdp-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.pdp-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  aspect-ratio: 429 / 480;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F4F4F3;
  cursor: pointer;
  opacity: 0.62;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 200ms ease, outline-color 200ms ease, transform 160ms var(--ease-out);
}

.pdp-thumb:hover {
  opacity: 1;
}

.pdp-thumb:active {
  transform: scale(0.96);
}

.pdp-thumb[aria-current="true"] {
  opacity: 1;
  outline-color: var(--color-brand);
}

.pdp-thumb:focus-visible {
  outline-color: var(--color-ink);
}

/* Thumbnail = the full card laid out at 300px, scaled down to the 76px thumb */
.pdp-thumb__face {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  max-width: none;
  transform: scale(0.2533);
  transform-origin: top left;
  pointer-events: none;
}

.pdp-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pdp__info .product-row__title {
  margin-bottom: 14px;
}

.pdp__lede {
  margin: 0 0 clamp(28px, 3vw, 40px);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--color-ink);
  max-width: 34ch;
}

.pdp-highlights {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 16px;
  background: #F4F4F3;
}

.pdp-highlights__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdp-highlights ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.pdp-highlights li {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-ink);
}

.pdp-highlights li::marker {
  color: var(--color-brand);
}

.pdp-block {
  margin-top: clamp(40px, 4.5vw, 56px);
}

.pdp-block__title {
  margin: 0 0 8px;
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.pdp-block__sub {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.pdp-block__text {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-body);
  max-width: 60ch;
}

.pdp-block.spotlight-block .pdp-block__title {
  margin-bottom: 10px;
}

.pdp-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.pdp-options--stack {
  grid-template-columns: 1fr;
}

/* Model cards: the list measures its own width for the rule below */
.pdp-options--stack {
  container-type: inline-size;
}


/* Model cards — click a model to open its specifications (details/summary, one open at a time) */
.pdp-option {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pdp-option[open] {
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.05);
}

.pdp-option__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
}

.pdp-option__head::-webkit-details-marker {
  display: none;
}

/* Same chevron as the FAQ */
.pdp-option__head::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: -4px 2px 0 0;
  border-right: 1.5px solid var(--color-ink);
  border-bottom: 1.5px solid var(--color-ink);
  opacity: 0.55;
  transform: rotate(45deg);
  transition: transform 220ms var(--ease-out), margin 220ms var(--ease-out);
}

.pdp-option[open] > .pdp-option__head::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.pdp-option__head:hover .pdp-option__name {
  color: var(--color-brand);
}

.pdp-option__head:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
  border-radius: 12px;
}

.pdp-option__name {
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-ink);
  transition: color 150ms ease;
}

.pdp-option__meta {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: right;
}

.pdp-option__specs {
  margin: 0 24px;
  padding: 2px 0 8px;
  border-top: 1px solid var(--color-border);
}

.pdp-option[open] .pdp-option__specs {
  animation: spec-in 280ms var(--ease-out);
}

.pdp-option__specs-label {
  margin: 16px 0 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pdp-option__specs .kv-row:last-child {
  border-bottom: 0;
}

@keyframes spec-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-option[open] .pdp-option__specs {
    animation: none;
  }
}

/* Phones: name above its description, chevron to the right of both */
@media (max-width: 600px) {
  .pdp-option__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    padding: 16px 20px;
  }
  .pdp-option__head::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .pdp-option__meta {
    margin-left: 0;
    text-align: left;
  }
  .pdp-option__specs {
    margin: 0 20px;
  }
}

/* Narrow list (smaller laptops, tablets, phones): description under the model name,
   using the card's full width, so it stays on one line where possible */
@container (max-width: 620px) {
  .pdp-option__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .pdp-option__head::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .pdp-option__meta {
    margin-left: 0;
    text-align: left;
  }
}

.pdp__lede--long {
  max-width: 62ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
}

.pdp-block__text a,
.faq__item p a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pdp-block__text a:hover,
.faq__item p a:hover {
  color: var(--color-brand);
}

.product-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.pdp__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: clamp(40px, 4.5vw, 56px);
}

.pdp__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  text-decoration: none;
  transition: color 150ms ease;
}

.pdp__link:hover {
  color: var(--color-brand);
}

@media (max-width: 960px) {
  .pdp,
  .pdp--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .pdp--reverse .pdp__media {
    order: 0;
  }
  .pdp__media {
    position: static;
    width: min(100%, 460px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-gallery__slide,
  .pdp-thumb {
    transition: none;
  }
}

/* Callout — short red rule over a pull statement */

.callout {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 340px;
}

.callout::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-brand);
  opacity: 0.6;
  margin-bottom: 14px;
}

.callout__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
}

.callout__text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-body);
  margin: 10px 0 0;
}

/* Exploded view — product image with callouts staggered around it */

.exploded {
  padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px);
}

.exploded__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px) minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "c1 fig ."
    ".  fig c2"
    "c3 fig ."
    ".  fig c4";
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.exploded .callout {
  margin-top: 0;
}

.exploded__figure {
  grid-area: fig;
  justify-self: center;
  width: min(100%, 500px);
  margin: 0;
}

/* Callouts mirror around the image: flush edges face it from both sides. */
.exploded__c1,
.exploded__c3 {
  justify-self: end;
  text-align: right;
}

.exploded__c1::before,
.exploded__c3::before {
  margin-left: auto;
}

.exploded__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Numbered layer markers on the image, named in the legend below it */
.exploded__stage {
  position: relative;
}

.layer-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.28);
  transform: translate(-50%, -50%);
}

.layer-legend {
  display: grid;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-body);
}

.layer-legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.layer-legend__num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  transform: translateY(-1px);
}

.exploded__c1 { grid-area: c1; }
.exploded__c2 { grid-area: c2; }
.exploded__c3 { grid-area: c3; }
.exploded__c4 { grid-area: c4; }

/* Ticker — full-width band of key facts drifting sideways; scroll nudges it further (script.js). */

.ticker {
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px) 0;
  border-block: 1px solid rgba(17, 17, 17, 0.08);
}

.ticker__shift {
  transform: translate3d(var(--ticker-shift, 0px), 0, 0);
  will-change: transform;
}

.ticker__track {
  display: flex;
  width: max-content;
  /* The track holds four groups and drifts by two of them per loop */
  animation: ticker-drift 150s linear infinite;
  animation-play-state: paused;
}

.ticker.is-running .ticker__track {
  animation-play-state: running;
}

@keyframes ticker-drift {
  to { transform: translate3d(-50%, 0, 0); }
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

/* Alternate ink and soft grey so the run of phrases has a rhythm. With an odd number of
   phrases, every second group starts on grey so the pattern carries across groups. */
.ticker__item:nth-child(even),
.ticker__group--alt .ticker__item {
  color: #A9A9A6;
}

.ticker__group--alt .ticker__item:nth-child(even) {
  color: var(--color-ink);
}

.ticker__mark {
  width: auto;
  height: 0.62em;
  margin: 0 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
  .ticker__shift {
    transform: none;
  }
}

/* FAQ */

.faq {
  padding: clamp(72px, 9vw, 120px) 0;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq__eyebrow {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.faq__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 20px;
}

.faq__lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 30ch;
  margin: 0 0 28px;
}

.faq__more {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
}

.faq__more a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__more a:hover {
  color: var(--color-brand);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--color-ink);
  transition: color 150ms ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: -4px 4px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
  transition: transform 220ms var(--ease-out), margin 220ms var(--ease-out);
}

.faq__item[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.faq__item summary:hover {
  color: var(--color-brand);
}

.faq__item p {
  margin: -4px 0 22px;
  max-width: 60ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-body);
}

@media (max-width: 960px) {
  .product-row {
    grid-template-columns: 1fr;
  }
  .product-row__card {
    width: min(100%, 460px);
    margin: 0 auto;
  }
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .exploded__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas:
      "fig fig"
      "c1  c2"
      "c3  c4";
    row-gap: clamp(28px, 5vw, 40px);
    align-items: start;
  }
  .exploded__c1,
  .exploded__c3 {
    justify-self: start;
    text-align: left;
  }
  .exploded__c1::before,
  .exploded__c3::before {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .product-row__cols {
    grid-template-columns: 1fr;
  }
  .exploded__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "fig" "c1" "c2" "c3" "c4";
  }
}

.spotlight-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.spotlight-text {
  font-size: 0.9rem;
  color: var(--color-body);
  margin: 0;
}

.spotlight-block .kv-row {
  padding: 10px 0;
  font-size: 0.85rem;
}

.spotlight-block .kv-label {
  font-size: 0.7rem;
}

.spotlight-block .kv-value {
  font-size: 0.85rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
}

/* Subpages — the landing page's header, type and components on every other page */

main [id] {
  scroll-margin-top: 96px;
}

.main-nav-center a[aria-current="page"] {
  color: var(--color-brand);
}

/* Page hero — eyebrow and title across the top, lede in the content column below */

.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 7vw, 120px)) 0 clamp(48px, 6vw, 88px);
}

.page-hero__grid,
.split-row,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  column-gap: clamp(32px, 6vw, 96px);
}

.page-hero__grid {
  row-gap: clamp(24px, 3vw, 40px);
}

.page-hero__head {
  grid-column: 1 / -1;
}

.page-hero__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin: 0;
  max-width: 17ch;
}

/* Optional lead-in line at the top of a lede */
.page-hero__lead {
  display: block;
  margin-bottom: 10px;
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.page-hero__lede a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.page-hero__lede a:hover {
  color: var(--color-brand);
}

/* Short titles that should hold one line on desktop (wrapping is left to .nowrap-wide) */
.page-hero__title--wide {
  max-width: none;
}

.page-hero__lede {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-ink);
  max-width: 60ch;
}

/* First section on pages that open straight into a product layout */
.page-main {
  padding: calc(var(--header-h) + clamp(40px, 5vw, 80px)) 0 clamp(72px, 9vw, 120px);
}

/* Split rows — title on the left, copy in the content column, hairlines between */

.split-section {
  padding: 0 0 clamp(72px, 9vw, 120px);
}

.split-row {
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--color-border);
}

.split-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.split-row__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
}

.split-row__body p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60ch;
}

.split-row__body > :last-child {
  margin-bottom: 0;
}

.split-row__body a:not(.pdp__link) {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.split-row__body a:not(.pdp__link):hover {
  color: var(--color-brand);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--color-ink);
}

/* Product tiles — the products overview, laid out like the landing card rail */

.product-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 3vw, 48px) clamp(20px, 2.4vw, 40px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.product-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 429 / 480;
}

.product-tile__media .metric-card {
  width: 100%;
  max-width: none;
}

.product-tile__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--card-radius);
}

.product-tile__soon {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: var(--card-radius);
  background: var(--panel);
}

.product-tile__soon img {
  width: 18%;
  height: auto;
  opacity: 0.18;
}

.product-tile__body {
  padding-top: 24px;
}

.status-pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill--muted {
  background: var(--panel);
  color: var(--color-muted);
}

.product-tile__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 6px;
}

.product-tile .pdp__eyebrow {
  margin-bottom: 14px;
}

.product-tile__text {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-body);
}

.product-tile.is-soon .product-tile__title {
  color: var(--color-muted);
}

@media (max-width: 1100px) {
  .product-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-hero__grid,
  .split-row,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
  .page-hero__lede {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .product-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Lines without imagery yet don't need a full-height empty frame on a phone */
  .product-tile.is-soon .product-tile__media {
    aspect-ratio: 2 / 1;
  }
  .product-tile.is-soon .product-tile__soon {
    border-radius: 10px;
  }
}

/* Spec sheet — key/value list joined by a hairline leader */

.kv-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.kv-label {
  flex: 0 0 auto;
  max-width: 40%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.kv-dots {
  flex: 1;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  height: 0;
  transform: translateY(-4px);
}

.kv-value {
  flex: 0 0 auto;
  max-width: 52%;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
}

/* Legal pages (Imprint, Privacy policy, Cookies) */

.legal-row .split-row__body a,
.form-check a,
.form-error a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-row .split-row__body a:hover,
.form-check a:hover,
.form-error a:hover {
  color: var(--color-brand);
}

.page-hero__meta {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Open items from the legal draft; must be resolved before publishing */
mark.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #FFE98A;
  color: var(--color-ink);
}

.legal-table-wrap {
  margin: 4px 0 16px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legal-table td {
  color: var(--color-ink);
}

/* Contact form: spam trap kept off screen; send error message */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--color-brand-tint);
  font-size: 0.9rem;
  color: var(--color-ink);
}

/* Document list — hairline rows, status as a soft pill */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--color-border);
}

.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.doc-list .doc-name {
  font-size: 0.98rem;
  color: var(--color-ink);
}

.doc-status {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Contact — company panel beside the form */

.contact-section {
  padding: 0 0 clamp(72px, 9vw, 120px);
}

.contact-grid {
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 96px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 16px;
  background: var(--panel);
}

.contact-panel__title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 18px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink);
}

.info-list .label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.info-list a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-list a:hover {
  color: var(--color-brand);
}

/* Form — soft grey fields, pill submit */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--panel);
  color: var(--color-ink);
  transition: border-color 150ms ease, background 150ms ease;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--color-border);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--color-border);
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

button.pill-cta {
  border: 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Purchase type radios and the consent checkbox */
.form-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.form-choice legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-choice .form-choice__option,
.form-check label {
  display: flex;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-ink);
  cursor: pointer;
}

.form-choice input,
.form-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-brand);
}

.form-check label {
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-check input {
  margin-top: 2px;
}

.form-success {
  display: none;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 16px;
  background: var(--panel);
}

.form-success strong {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.form-success.is-visible {
  display: block;
  animation: form-success-in 420ms var(--ease-out);
}

@keyframes form-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-success.is-visible {
    animation: none;
  }
}

@media (max-width: 860px) {
  .contact-panel {
    position: static;
    order: 2;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Footer — light grey panel: logo + company line, rule, four link columns */

.site-footer {
  padding: clamp(48px, 6vw, 96px) 12px 12px;
  font-size: 0.85rem;
}

.footer-panel {
  background: #F4F4F3;
  border-radius: 12px;
  padding: clamp(36px, 3.5vw, 48px) 0 clamp(28px, 3vw, 40px);
}

.footer-brand {
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  display: block;
  width: auto;
  height: clamp(34px, 3.2vw, 46px);
}

.footer-company {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: clamp(24px, 3vw, 32px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col-title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
}

.footer-col a,
.footer-policies a {
  font-size: 0.86rem;
  color: #5A5A60;
  text-decoration: none;
}

.footer-col a,
.footer-policies a {
  transition: color 150ms ease;
}

.footer-col a:hover,
.footer-policies a:hover {
  color: var(--color-brand);
}

.footer-meta {
  display: grid;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-meta p {
  margin: 0;
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #5A5A60;
}

.footer-legal {
  font-size: 0.75rem;
  color: #9A9EA3;
}

@media (max-width: 760px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .kv-row { flex-wrap: wrap; }
  .kv-label { max-width: 100%; }
  .kv-dots { display: none; }
  .kv-value { max-width: 100%; text-align: left; }
}

/* Cinematic scroll-tied video scene (Home) */

.scroll-scene {
  position: relative;
  height: 500vh;
}

/* Link targets at the hero's three snap stops */
.scene-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Sections that receive focus from the side nav don't need a ring around the whole block */
[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.scroll-scene__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #FCFAFA url('images/hero-bg.jpg') center / cover no-repeat;
}

.scroll-scene__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  will-change: transform;
}

.scroll-scene__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(253, 248, 248, 0.72);
  opacity: 0;
  transition: opacity 0.2s linear;
}

.scroll-scene__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  /* script.js blends --wash-rgb from brand red through deep red to navy as the hero scrolls */
  --wash-rgb: 174, 30, 43;
  background: linear-gradient(180deg, rgba(var(--wash-rgb), 0.68) 0%, rgba(var(--wash-rgb), 0.28) 45%, rgba(var(--wash-rgb), 0.68) 100%);
  will-change: opacity;
}

.scroll-scene__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

.scene-panel--1 { opacity: 1; }

.scene-panel [data-stagger] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(var(--text-blur, 0px));
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-panel.is-visible [data-stagger] {
  opacity: 1;
  transform: translateY(0);
}

.scene-eyebrow {
  display: block;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1D3045;
  margin: 0 0 18px;
}

.scene-title {
  font-family: 'Switzer', var(--font-family);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #1D3045;
  max-width: 680px;
  margin: 0 0 16px;
}

.scene-panel--1 .scene-title {
  max-width: none;
}

/* Keeps the hero's first line on one line where there's room; wraps normally on phones. */
@media (min-width: 768px) {
  .nowrap-wide {
    white-space: nowrap;
  }
}

.scene-sub {
  font-family: 'Switzer', var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
  color: #1D3045;
  opacity: 0.82;
  max-width: 520px;
  margin: 0;
}

.scene-footnote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 3vh, 32px);
  text-align: center;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1D3045;
  margin: 0;
}

.scene-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1D3045;
  pointer-events: auto;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.scene-cta:hover {
  background: #1D3045;
  color: #FFFFFF;
}

.scene-panel--light .scene-eyebrow,
.scene-panel--light .scene-title,
.scene-panel--light .scene-sub {
  color: #1D3045;
}

.scene-panel--3 .hero-logo-mark { display: none; }

@media (max-width: 700px) {
  .scene-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .hero-logo-mark {
    top: 31%;
    right: -3vw;
    width: min(40.4vw, 247px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-panel [data-stagger] { transition: none; }
}

/* Laptop and tablet: one gentle corner size on every card (phones keep the proportional corner) */
@media (min-width: 768px) {
  :root {
    --card-radius: 16px;
  }
}

/* ==========================================================================
   Tablet and phone
   Desktop (1024px and wider, with a mouse) is fixed: everything below is
   scoped to max-width: 1023px, or to touch screens via (hover: none).
   Tablet = 768–1023px, phone = up to 767px.
   ========================================================================== */

/* Menu button and panel exist on every page but only show below 1024px */
.menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 1023px) {
  /* ---- Header: page links move into the menu ---- */
  .header-inner-v2 {
    grid-template-columns: 1fr auto;
  }
  .main-nav-center {
    display: none;
  }
  .header-right {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .menu-toggle {
    display: inline-grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--color-ink);
    transition: transform 240ms var(--ease-out);
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: -4px;
    border-radius: 10px;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
  }
  .mobile-menu[hidden] {
    display: none;
  }
  .mobile-menu.is-open {
    opacity: 1;
    transform: none;
  }
  .mobile-menu__inner {
    display: flex;
    flex-direction: column;
    padding: 8px 40px 28px;
  }
  .mobile-menu__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-family: 'Switzer', var(--font-family);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    text-decoration: none;
  }
  .mobile-menu__link[aria-current="page"] {
    color: var(--color-brand);
  }
  /* Language switch beside the menu button, with finger-sized links */
  .lang-switch {
    margin-right: 10px;
  }
  .header-right .lang-switch a {
    padding: 13px 3px;
  }
  .mobile-menu__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding-top: 18px;
  }
  .mobile-menu__contact a {
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--color-body);
    text-decoration: none;
  }

  /* ---- Page gutters ---- */
  .bar-container {
    padding: 0 40px;
  }
  .expertise {
    --rail-pad: 40px;
  }
  .expertise-detail__close {
    right: 40px;
  }

  /* ---- Hero: the headline flows freely; the desktop line break would strand a word ---- */
  .br-desktop {
    display: none;
  }

  /* ---- Hero: the full-height frame follows the visible screen (browser bars included) ---- */
  .scroll-scene__sticky {
    height: 100vh;
    height: 100dvh;
  }
  /* The background video is portrait (1184 x 1640). Sized to the screen width it ends
     above the bottom of a tall phone or tablet screen, so size it to the screen height
     instead (118 %, leaving room for the scroll drift), centred, sides cropped. */
  .scroll-scene__video {
    left: 50%;
    width: max(100%, calc(118vh * 1184 / 1640));
    width: max(100%, calc(118dvh * 1184 / 1640));
    margin-left: calc(max(100%, calc(118vh * 1184 / 1640)) / -2);
    margin-left: calc(max(100%, calc(118dvh * 1184 / 1640)) / -2);
  }

  /* ---- Smallest labels get a readable floor ---- */
  .metric-card__cta {
    font-size: max(calc(12 * var(--u)), 11px);
  }
  .metric-card__unit {
    font-size: max(calc(20 * var(--u)), 12px);
  }
  .status-pill,
  .doc-status,
  .pdp-option__specs-label,
  .form-field label,
  .form-choice legend,
  .info-list .label {
    font-size: 0.72rem;
  }
}

/* ---- Tablet (768–1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Larger hero type to suit the bigger screen */
  .scene-title {
    font-size: clamp(2.3rem, 5vw, 2.9rem);
  }
  .scene-sub {
    font-size: 1.12rem;
  }
  /* Hero: headline in the left part, molecule on the right, no overlap */
  .nowrap-wide {
    white-space: normal;
  }
  .scene-panel--1 .scene-title {
    max-width: 56%;
  }
  .scene-panel--1 .scene-sub {
    max-width: 50%;
  }
  .hero-logo-mark {
    right: 5vw;
    width: min(30vw, 300px);
  }
}

/* ---- Phone (up to 767px) ---- */
@media (max-width: 767px) {
  .bar-container {
    padding: 0 20px;
  }
  .mobile-menu__inner {
    padding: 4px 20px 24px;
  }
  .logo-img {
    height: 26px;
  }
  .header-right a.quote-pill {
    padding: 9px 14px;
  }

  /* Hero: deep navy with white type (RingConn-inspired). No molecule on phones. */
  .scene-panel--1 {
    background:
      radial-gradient(ellipse 130% 60% at 80% 18%, rgba(174, 30, 43, 0.30), transparent 72%),
      radial-gradient(ellipse 90% 40% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
      linear-gradient(170deg, #22384f 0%, #15243a 55%, #0b1422 100%);
  }
  .scene-panel--1 .hero-logo-mark {
    display: none;
  }
  /* Text block at the bottom of the screen, above the small line; same type as the next hero screen */
  .scene-panel--1 .bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  }
  .scene-panel--1 .scene-title {
    max-width: 100%;
    text-align: left;
    color: #fff;
  }
  .scene-panel--1 .scene-sub {
    max-width: 100%;
    text-align: left;
    color: rgba(255, 255, 255, 0.82);
  }
  .scene-actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
  }
  .scene-actions a {
    flex: 1 1 0;
    margin: 0;
    padding: 15px 10px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    pointer-events: auto;
  }
  .scene-actions .scene-cta {
    padding: 14px 10px;
    color: #fff;
  }
  .scene-actions .scene-cta:hover {
    background: #fff;
    color: #15243a;
  }
  .scene-footnote {
    left: 20px;
    right: 20px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    padding: 0;
    text-align: left;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.66);
  }
  .scene-footnote::before {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    margin: 0 0 12px;
    background: currentColor;
    opacity: 0.6;
  }

  /* Card carousel: wider cards (their text scales with the card), next one peeking; swipe instead of the arrow */
  .expertise {
    --rail-pad: 20px;
    --rail-gap: 14px;
  }
  .expertise .systems-track-scroll {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .expertise-track .metric-card {
    width: min(76vw, 300px);
  }
  .expertise .systems-arrow {
    display: none;
  }
  .expertise-detail__close {
    right: 20px;
  }
  /* Room for the close button above the card instead of on its corner */
  .expertise-detail__row {
    padding-top: 60px;
  }

  /* Gallery: all five thumbnails fit across */
  .pdp-gallery__thumbs {
    gap: 10px;
  }
  .pdp-thumb {
    width: 58px;
  }
  .pdp-thumb__face {
    transform: scale(0.1933);
  }

  .site-footer {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ---- Touch screens and narrow windows: comfortable tap targets ---- */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  .footer-col {
    gap: 0;
  }
  .footer-col a,
  .footer-policies a {
    display: block;
    padding: 10px 0;
  }
  .footer-col-title {
    margin-bottom: 6px;
  }
  .pdp__link {
    display: inline-block;
    padding: 12px 0;
  }
  .info-list a,
  .mobile-menu__contact a {
    display: inline-block;
    padding-block: 10px;
    margin-block: -10px;
  }
  .form-choice .form-choice__option {
    min-height: 44px;
  }
  .form-check label {
    padding: 10px 0;
  }
  .metric-card__cta {
    height: max(calc(38 * var(--u)), 34px);
  }
  .systems-dot {
    position: relative;
  }
  .systems-dot::after {
    content: '';
    position: absolute;
    inset: -14px -3px;
  }
}


/* ==========================================================================
   Phone, RingConn-inspired: clean header, quote bar on product pages,
   swipeable galleries with dash indicators, section tabs, filled + outline pill pairs,
   and a homepage that introduces the products while their pages hold the details.
   ========================================================================== */

.page-tabs,
.buy-bar {
  display: none;
}

@media (max-width: 767px) {
  /* ---- Header: logo and menu; the quote button lives in the menu and the product-page bar ---- */
  .header-right a.quote-pill {
    display: none;
  }
  .mobile-menu__cta {
    align-self: flex-start;
    margin-top: 22px;
    padding: 14px 26px;
    font-size: 0.76rem;
  }

  /* ---- Pill pairs: filled + outline, side by side ---- */
  .pdp__actions,
  .product-row__actions {
    display: flex;
    gap: 10px;
  }
  .pdp__actions > a,
  .product-row__actions > a:not([href^="mailto:"]) {
    flex: 1 1 0;
  }
  .pdp__actions .pill-cta,
  .product-row__actions .pill-cta {
    padding: 15px 14px;
    text-align: center;
    font-size: 0.72rem;
  }
  .pdp__actions .pdp__link:not([href^="mailto:"]),
  .product-row__actions .pdp__link,
  .product-tile .pdp__link {
    display: inline-block;
    padding: 14px 18px;
    border: 1px solid var(--color-ink);
    border-radius: 999px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-ink);
  }
  /* Pill labels stay on one line; the arrow is implied by the pill */
  .pdp__actions .pdp__link:not([href^="mailto:"]),
  .product-row__actions .pdp__link {
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    letter-spacing: 0.06em;
  }
  .pdp__actions .pdp__link span[aria-hidden],
  .product-row__actions .pdp__link span[aria-hidden] {
    display: none;
  }
  .pdp__actions .pdp__link[href^="mailto:"] {
    flex-basis: 100%;
    padding: 4px 0;
  }
  .pdp__actions {
    flex-wrap: wrap;
  }

  /* ---- Galleries: swipe between views; dashes instead of thumbnails ---- */
  .pdp-gallery__stage {
    display: flex;
    aspect-ratio: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .pdp-gallery__stage::-webkit-scrollbar {
    display: none;
  }
  .pdp-gallery__slide {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    opacity: 1;
    scroll-snap-align: center;
  }
  .pdp-gallery__thumbs {
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    overflow: visible;
  }
  .pdp-thumb {
    width: 16px;
    height: 3px;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 2px;
    background: var(--color-border);
    opacity: 1;
    outline: 0;
    transition: width 220ms var(--ease-out), background 220ms ease;
  }
  .pdp-thumb > * {
    display: none;
  }
  .pdp-thumb[aria-current="true"] {
    width: 30px;
    background: var(--color-brand);
  }
  .pdp-thumb::after {
    content: '';
    position: absolute;
    inset: -16px -3px;
  }

  /* Card carousel: dashes too */
  .systems-dot {
    width: 16px;
    height: 3px;
    border-radius: 2px;
  }
  .systems-dot.is-active {
    width: 30px;
  }

  /* ---- Product info ---- */
  .pdp {
    gap: 28px;
  }
  /* Key features as tick rows */
  .pdp-highlights ul {
    list-style: none;
    padding-left: 0;
    gap: 12px;
  }
  .pdp-highlights li {
    position: relative;
    padding-left: 30px;
  }
  .pdp-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--color-brand-tint);
  }
  .pdp-highlights li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: calc(0.12em + 4px);
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--color-brand);
    border-bottom: 2px solid var(--color-brand);
    transform: rotate(45deg);
  }
  /* The open model reads as the selected option */
  .pdp-option[open] {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand);
  }

  /* ---- Homepage: Termi and Nido as short introductions; their pages hold the full details ---- */
  #products .pdp-highlights,
  #products .pdp-block,
  #products .callout {
    display: none;
  }
  #products .pdp__lede {
    margin-bottom: 22px;
  }
  #products .pdp__actions {
    margin-top: 0;
  }
  #products .pdp + .pdp {
    margin-top: 80px;
  }

  /* ---- Product pages: section tabs under the header ---- */
  .page-tabs {
    display: flex;
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    gap: 24px;
    margin-top: var(--header-h);
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
  }
  .page-tabs::-webkit-scrollbar {
    display: none;
  }
  .page-tabs a {
    flex: 0 0 auto;
    padding: 14px 0 11px;
    border-bottom: 2px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease;
  }
  .page-tabs a[aria-current="true"] {
    color: var(--color-ink);
    border-bottom-color: var(--color-ink);
  }
  .page-tabs + .page-main {
    padding-top: 24px;
  }

  /* ---- Product pages: quote bar fixed to the bottom of the screen ---- */
  .buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 24px rgba(17, 17, 17, 0.06);
  }
  .buy-bar__name {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.25;
  }
  .buy-bar__name strong {
    font-family: 'Switzer', var(--font-family);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--color-ink);
  }
  .buy-bar__name span {
    font-size: 0.74rem;
    color: var(--color-muted);
  }
  .buy-bar .pill-cta {
    flex-shrink: 0;
    padding: 14px 22px;
    font-size: 0.72rem;
  }
  .buy-bar + .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* Phone hero buttons: shown on phones only (styled in the phone section) */
@media (min-width: 768px) {
  .scene-actions {
    display: none;
  }
}

/* Phone hero background: slowly moving warm light behind the navy, with the brand mark
   as a faint watermark above it; the text stays on top */
@media (max-width: 767px) {
  .scene-panel--1 {
    isolation: isolate;
  }
  .scene-panel--1::before,
  .scene-panel--1::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
  }
  .scene-panel--1 .bar-container,
  .scene-panel--1 .scene-footnote {
    z-index: 1;
  }
  .scene-panel--1 .bar-container {
    position: relative;
  }
  .scene-panel--1::before {
    inset: -25%;
    background:
      radial-gradient(38% 26% at 30% 28%, rgba(196, 40, 58, 0.55), transparent 70%),
      radial-gradient(34% 24% at 76% 22%, rgba(120, 44, 96, 0.45), transparent 70%),
      radial-gradient(44% 30% at 58% 52%, rgba(60, 110, 170, 0.32), transparent 70%);
    filter: blur(18px);
    animation: hero-glow 16s ease-in-out infinite alternate;
  }
  .scene-panel--1::after {
    top: calc(var(--header-h) - 2vh);
    right: -18vw;
    width: 78vw;
    aspect-ratio: 220 / 432;
    background: url('webexport/logo/ronotherm-icon-white.svg') center / contain no-repeat;
    opacity: 0.08;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
  }
}

@keyframes hero-glow {
  0% { transform: translate3d(-7%, -4%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(7%, 6%, 0) rotate(14deg) scale(1.14); }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .scene-panel--1::before {
    animation: none;
  }
}

/* TEMPORARY: larger small text on the cards, previewed with ?cardtext=larger (script.js). */
.cardtext-larger .metric-card__cta {
  height: max(calc(38 * var(--u)), 28px);
  font-size: max(calc(12 * var(--u)), 12px);
}
.cardtext-larger .metric-card__caption,
.cardtext-larger .metric-card__title small {
  font-size: max(calc(14 * var(--u)), 12.5px);
}
.cardtext-larger .metric-card__unit {
  font-size: max(calc(20 * var(--u)), 13px);
}

/* Error page (404.html) */
.page-hero--error {
  min-height: 58vh;
}

.page-hero--error .page-hero__lede p {
  margin: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.page-hero--error .page-hero__lede .error-help {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* The intro's underlined-link style is for links in running text, not these buttons */
.page-hero--error .error-actions a {
  text-decoration: none;
}

.page-hero--error .error-actions .pill-cta,
.page-hero--error .error-actions .pill-cta:hover {
  color: #fff;
}

.page-hero--error .error-actions .pdp__link {
  color: var(--color-ink);
}

.page-hero--error .error-actions .pdp__link:hover {
  color: var(--color-brand);
}

.error-help a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-help a:hover {
  color: var(--color-brand);
}
